/* ===== Alap ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --red: #e63946;
  --red-glow: rgba(230, 57, 70, 0.55);
  --red-soft: rgba(230, 57, 70, 0.12);
  --white: #f8f9fa;
  --muted: #9aa0a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --font-display: 'Anton', 'Oswald', Impact, sans-serif;
  --font-sub: 'Oswald', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(230, 57, 70, 0.08), transparent 60%),
    radial-gradient(800px 500px at 50% 100%, rgba(255, 255, 255, 0.04), transparent 70%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Stadion fénysugarak ===== */
.stadium-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: floatLight 14s ease-in-out infinite alternate;
}

.light-1 { top: -30vmax; left: -20vmax; background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 60%); }
.light-2 { top: -30vmax; right: -20vmax; background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 60%); animation-delay: -3s; }
.light-3 { bottom: -40vmax; left: -10vmax; background: radial-gradient(circle, rgba(230,57,70,0.45), transparent 60%); animation-delay: -7s; }
.light-4 { bottom: -40vmax; right: -10vmax; background: radial-gradient(circle, rgba(230,57,70,0.3), transparent 60%); animation-delay: -10s; }

@keyframes floatLight {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.25; }
  50%  { transform: translate(4vw, 3vh) scale(1.05); opacity: 0.45; }
  100% { transform: translate(-3vw, 2vh) scale(0.95); opacity: 0.3; }
}

/* ===== Részecskék (por a fényben) ===== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ===== Pályavonal-háló (halvány) ===== */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.6;
}

/* ===== Topbar ===== */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  font-family: var(--font-sub);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 12, 0.5);
}

.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
.status-dot.small { width: 6px; height: 6px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.lang { color: var(--white); font-weight: 700; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  text-align: center;
}

/* ===== Logó színpad ===== */
.logo-stage {
  position: relative;
  width: clamp(260px, 36vw, 460px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.logo-glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  filter: blur(55px);
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.logo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.7));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: logoBreath 5s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.015); }
}

.logo-stage:hover .logo { transform: scale(1.06) rotate(-1.5deg); }
.logo-stage:hover .logo-glow { opacity: 1; }
.logo-stage:active .logo { transform: scale(0.98); }

.logo-shadow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(10px);
}

/* ===== Főcím ===== */
.headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
}

.headline .word {
  position: relative;
  display: inline-block;
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.headline .word:nth-child(1) { animation-delay: 0.1s; }
.headline .word:nth-child(2) { animation-delay: 0.25s; }
.headline .word:nth-child(3) { animation-delay: 0.4s; color: var(--red); }
.headline .word:nth-child(4) { animation-delay: 0.55s; }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

.headline .word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  transform: translate(3px, 3px);
  z-index: -1;
}

.kicker {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.5;
  font-weight: 300;
}

/* ===== Visszaszámláló ===== */
.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
}

.countdown {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 6px 10px;
  position: relative;
}

.unit + .unit { border-left: 1px dashed var(--line); }
.sep {
  align-self: center;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--red);
  opacity: 0.7;
  padding-bottom: 18px;
}

.digits {
  display: flex;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(230,57,70,0.25);
}

.digit {
  display: inline-block;
  min-width: 0.6em;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.digit.flip { animation: flipDigit 0.5s ease; }
@keyframes flipDigit {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); color: var(--red); }
  100% { transform: translateY(0) scale(1); }
}

.label {
  margin-top: 8px;
  font-family: var(--font-sub);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-target {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.target-label { color: var(--red); margin-right: 6px; font-weight: 600; }
.target-date { color: var(--white); font-family: var(--font-sub); letter-spacing: 0.08em; }

/* ===== Játékos háttérkép ===== */
.player-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.player-img {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  height: 92vh;
  max-height: 920px;
  width: auto;
  object-fit: contain;
  opacity: 0.28;
  filter: contrast(1.1) saturate(0.85) blur(0.5px);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 55%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 55%, #000 35%, transparent 80%);
  animation: playerFloat 9s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes playerFloat {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-50%) translateY(-12px) scale(1.015); }
}

.player-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(10, 10, 12, 0.55) 70%, rgba(10, 10, 12, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.6) 0%, transparent 30%, transparent 70%, rgba(10, 10, 12, 0.85) 100%);
  z-index: 1;
}

/* ===== Kontakt ===== */
.contact {
  position: relative;
  z-index: 2;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 12px;
  border: 1px solid rgba(230,57,70,0.4);
  border-radius: 999px;
  background: var(--red-soft);
  margin-bottom: 18px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 36px;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px 28px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 50%), rgba(230,57,70,0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.contact-card:hover::before { opacity: 1; }

.contact-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #b21e2a);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px var(--red-glow);
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-name {
  font-family: var(--font-sub);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
  width: fit-content;
}
.contact-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-row:hover { color: var(--white); }

.contact-action {
  display: flex;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 24px var(--red-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover {
  background: #ff4d5b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--red-glow);
}
.btn-primary:active { transform: translateY(0); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 24px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  font-family: var(--font-sub);
}
.footer-sep { color: var(--red); }

/* ===== Ripple ===== */
.ripple-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--red);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.9;
  animation: rippleOut 0.8s ease-out forwards;
}
.ripple.alt { border-color: var(--white); }
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

/* ===== Konfetti darabok ===== */
.confetti {
  position: fixed;
  width: 8px;
  height: 12px;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 998;
  animation: confettiFall 1.4s ease-out forwards;
}
@keyframes confettiFall {
  to {
    transform: translate(var(--cx), var(--cy)) rotate(var(--cr));
    opacity: 0;
  }
}

/* ===== Reszponzív ===== */
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; font-size: 11px; }
  .hero { padding: 36px 18px 60px; }
  .logo-stage { width: 60vw; }
  .countdown { padding: 12px 10px; gap: 4px; border-radius: 12px; }
  .unit { min-width: 60px; padding: 4px 6px; }
  .unit + .unit { border-left: none; }
  .sep { font-size: 22px; padding-bottom: 12px; }
  .digits { font-size: 32px; }
  .label { font-size: 9px; }
  .contact-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 22px;
  }
  .contact-avatar { margin: 0 auto; }
  .contact-info { align-items: center; }
  .contact-action { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
