/* ==========================================================
   Mediarostermatesmi — Emerald Motion theme
   Spacing scale: 4, 8, 16, 24, 40, 64
   ========================================================== */
:root {
  --c-black: #050807;
  --c-ink: #08110d;
  --c-panel: #0b1712;
  --c-emerald: #10b981;
  --c-emerald-bright: #34d399;
  --c-emerald-deep: #065f46;
  --c-cream: #f3ecd8;
  --c-cream-soft: #d9d1bb;
  --c-gold: #c9a54c;
  --c-gold-bright: #e6c979;
  --c-danger: #fca5a5;
  --c-on-emerald: #03140d;
  --line-gold: rgba(201, 165, 76, 0.34);
  --line-emerald: rgba(52, 211, 153, 0.28);
  --glass: linear-gradient(145deg, rgba(16, 185, 129, 0.10), rgba(8, 17, 13, 0.82) 55%, rgba(201, 165, 76, 0.07));
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --radius: 18px;
  --radius-lg: 24px;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bahnschrift", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --ball-x: 64%;
  --ball-y: 72%;
  --goal-x: 50%;
  --goal-y: 34%;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-cream);
  background-color: var(--c-black);
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(16, 185, 129, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 20%, rgba(201, 165, 76, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(6, 95, 70, 0.18), transparent 70%);
  background-attachment: fixed;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, p, li, a, span, strong, td, th, dt, dd, label, button, address, caption, legend, figcaption, small {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--c-cream);
}

a { color: var(--c-emerald-bright); text-underline-offset: 3px; }
a:hover { color: var(--c-gold-bright); }

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--c-gold-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--c-gold);
  color: #140f02;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(5, 8, 7, 0.94);
  color: var(--c-cream);
  border-bottom: 1px solid var(--line-gold);
}

.header-inner {
  max-width: 1240px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-inner > * { min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--c-cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--c-gold-bright); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 1rem; line-height: 1.1; min-width: 0; }

.primary-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.nav-list > li { min-width: 0; }
.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--c-cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: rgba(16, 185, 129, 0.16); color: var(--c-cream); }
.nav-link[aria-current="page"] { background: rgba(201, 165, 76, 0.16); color: var(--c-gold-bright); }

.header-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-emerald);
  color: var(--c-on-emerald);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
  transition: background-color 0.2s ease;
}
.header-cta:hover { background: var(--c-emerald-bright); color: var(--c-on-emerald); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  background: rgba(8, 17, 13, 0.9);
  color: var(--c-cream);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 768px) and (max-width: 1023px) {
  .brand-name { font-size: 0.85rem; }
  .nav-link { padding: 8px 8px; font-size: 0.82rem; }
  .header-cta { padding: 8px 12px; font-size: 0.78rem; }
  .header-inner { padding: 0 16px; gap: 8px; }
}

@media (max-width: 767px) {
  .header-inner { height: 50px; padding: 0 16px; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 0.9rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    padding: 72px 24px 40px;
    background: rgba(5, 8, 7, 0.98);
    color: var(--c-cream);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-link { padding: 16px; font-size: 1.1rem; border: 1px solid var(--line-emerald); border-radius: 14px; }
  .header-cta { margin-left: auto; padding: 8px 12px; font-size: 0.78rem; }
}

/* ---------------- Buttons ---------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--c-emerald); color: var(--c-on-emerald); border-color: var(--c-emerald); }
.btn-primary:hover { background: var(--c-emerald-bright); color: var(--c-on-emerald); border-color: var(--c-emerald-bright); }
.btn-ghost { background: rgba(5, 8, 7, 0.6); color: var(--c-cream); border-color: var(--line-gold); }
.btn-ghost:hover { background: rgba(201, 165, 76, 0.16); color: var(--c-gold-bright); border-color: var(--c-gold); }

/* ---------------- Sections ---------------- */
.section { margin-block: 64px; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--c-gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.section-title { margin: 0 0 16px; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.section-lead { margin: 0; color: var(--c-cream-soft); font-size: 1.05rem; }

.glass-panel {
  background: rgba(5, 12, 9, 0.78);
  color: var(--c-cream);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.12);
}

.data-note {
  margin: 40px 0 0;
  padding: 16px 24px;
  border-left: 3px solid var(--c-gold);
  border-radius: 8px;
  background: rgba(201, 165, 76, 0.07);
  color: var(--c-cream-soft);
  font-size: 0.9rem;
}

/* ---------------- Reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.hero > * { min-width: 0; }

.hero-content {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    radial-gradient(ellipse 50% 80% at 95% 20%, rgba(16, 185, 129, 0.16), transparent 70%),
    rgba(5, 12, 9, 0.78);
}
.hero-content > * { margin: 0; min-width: 0; max-width: 820px; }
.hero-title { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.hero-lead { color: var(--c-cream-soft); font-size: 1.05rem; }

.title-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-gold);
  background: linear-gradient(90deg, rgba(201, 165, 76, 0.16), rgba(5, 8, 7, 0.4));
  color: var(--c-cream);
  width: fit-content;
  max-width: 100%;
}
.title-badge-trophy { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px rgba(201, 165, 76, 0.55)); }
.title-badge-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.title-badge-kicker { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-gold-bright); }
.title-badge-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--c-cream); }

.hero-score-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-emerald);
  background: rgba(0, 0, 0, 0.45);
  color: var(--c-cream);
  font-family: var(--font-display);
  width: fit-content;
}
.chip-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-emerald-bright); }
.chip-score { font-size: 1.2rem; font-weight: 800; color: var(--c-gold-bright); font-variant-numeric: tabular-nums; }
.chip-note { font-size: 0.85rem; color: var(--c-cream-soft); }

/* ---------------- Shot game (tunnel) ---------------- */
.shot-game { margin-block: 40px 64px; }
.shot-game-head { max-width: 780px; margin-bottom: 24px; }

.tunnel-scene {
  position: relative;
  min-height: clamp(480px, 72vh, 700px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 55% 45% at 50% 42%, #134d37 0%, #06170f 42%, #020403 78%);
  color: var(--c-cream);
  box-shadow: 0 0 80px rgba(16, 185, 129, 0.18), inset 0 0 120px rgba(0, 0, 0, 0.7);
}

.tunnel-backdrop {
  position: absolute;
  inset: 0;
}

.tunnel-exit-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 34%;
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(236, 253, 245, 0.9) 0%, rgba(52, 211, 153, 0.55) 30%, rgba(16, 185, 129, 0.12) 60%, transparent 72%);
  filter: blur(6px);
  animation: exitPulse 4s ease-in-out infinite;
}

.tunnel-ring {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 92%;
  height: 92%;
  border: 2px solid rgba(52, 211, 153, 0.55);
  border-radius: 48% 48% 8% 8% / 60% 60% 8% 8%;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35), inset 0 0 24px rgba(16, 185, 129, 0.2);
  transform: translate(-50%, -50%) scale(var(--ring-scale, 0.3));
  opacity: var(--ring-opacity, 0.55);
  animation: tunnelFlow 5s linear infinite;
  animation-delay: var(--ring-delay, 0s);
}
.tunnel-ring:nth-child(even) { border-color: rgba(201, 165, 76, 0.45); box-shadow: 0 0 20px rgba(201, 165, 76, 0.25); }
.tunnel-ring-1 { --ring-scale: 0.12; --ring-delay: 0s; }
.tunnel-ring-2 { --ring-scale: 0.22; --ring-delay: -0.625s; }
.tunnel-ring-3 { --ring-scale: 0.34; --ring-delay: -1.25s; }
.tunnel-ring-4 { --ring-scale: 0.48; --ring-delay: -1.875s; }
.tunnel-ring-5 { --ring-scale: 0.64; --ring-delay: -2.5s; }
.tunnel-ring-6 { --ring-scale: 0.82; --ring-delay: -3.125s; }
.tunnel-ring-7 { --ring-scale: 1.02; --ring-delay: -3.75s; --ring-opacity: 0.35; }
.tunnel-ring-8 { --ring-scale: 1.25; --ring-delay: -4.375s; --ring-opacity: 0.2; }

.tunnel-floor-grid,
.tunnel-ceiling-lights {
  position: absolute;
  left: -40%;
  right: -40%;
  background-size: 100% 48px, 72px 100%;
}
.tunnel-floor-grid {
  top: 42%;
  bottom: -30%;
  transform-origin: top center;
  transform: perspective(520px) rotateX(64deg);
  background-image:
    repeating-linear-gradient(0deg, rgba(52, 211, 153, 0.3) 0 2px, transparent 2px 48px),
    repeating-linear-gradient(90deg, rgba(201, 165, 76, 0.2) 0 2px, transparent 2px 72px);
  animation: floorRun 1.1s linear infinite;
}
.tunnel-ceiling-lights {
  top: -30%;
  bottom: 58%;
  transform-origin: bottom center;
  transform: perspective(520px) rotateX(-64deg);
  background-image:
    repeating-linear-gradient(180deg, rgba(236, 253, 245, 0.35) 0 3px, transparent 3px 48px),
    repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0 2px, transparent 2px 72px);
  animation: ceilingRun 1.1s linear infinite;
}

/* Corner floodlight boxes removed from the tunnel scene */
.stadium-floodlight { display: none; }

.floodlight-beam {
  position: absolute;
  top: 10%;
  width: 60%;
  height: 90%;
  opacity: 0.5;
  mix-blend-mode: screen;
  background: conic-gradient(from 170deg at 50% 0%, transparent 0deg, rgba(52, 211, 153, 0.35) 10deg, rgba(236, 253, 245, 0.18) 16deg, transparent 26deg);
  transform-origin: 50% 0%;
  animation: beamSweep 7s ease-in-out infinite alternate;
}
.floodlight-beam-left { left: -12%; }
.floodlight-beam-right { right: -12%; animation-delay: -3.5s; animation-direction: alternate-reverse; }

.tunnel-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 45%, rgba(2, 4, 3, 0.85) 100%);
  pointer-events: none;
}

/* ---- Goal net target ---- */
.goal-net-target {
  position: absolute;
  z-index: 1;
  left: var(--goal-x);
  top: var(--goal-y);
  width: min(28%, 320px);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.5));
  animation: goalAppear 0.8s ease 0.6s backwards;
}
.goal-net-mesh {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.goal-frame { filter: drop-shadow(0 0 6px rgba(230, 201, 121, 0.7)); }
.goal-flash {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.is-scored .goal-net-mesh { animation: netBulge 0.8s cubic-bezier(0.2, 0.8, 0.3, 1); }
.is-scored .goal-flash { animation: goalFlash 1.4s ease-out; }
.is-scored .goal-net-target { animation: goalShake 0.5s ease-out; }

.formation-overlay-433 {
  position: absolute;
  top: 6%;
  right: 3%;
  width: min(30%, 320px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.35));
}
.formation-player circle {
  fill: rgba(6, 41, 29, 0.95);
  stroke: var(--c-emerald-bright);
  stroke-width: 2.5;
}
.formation-player-star circle { fill: var(--c-gold); stroke: var(--c-gold-bright); }
.formation-label {
  fill: var(--c-cream);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
}
.formation-player {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.formation-player:nth-child(1) { animation-delay: 1.6s; }
.formation-player:nth-child(2) { animation-delay: 1.75s; }
.formation-player:nth-child(3) { animation-delay: 1.85s; }
.formation-player:nth-child(4) { animation-delay: 1.95s; }
.formation-player:nth-child(5) { animation-delay: 2.05s; }
.formation-player:nth-child(6) { animation-delay: 2.15s; }
.formation-player:nth-child(7) { animation-delay: 2.25s; }
.formation-player:nth-child(8) { animation-delay: 2.35s; }
.formation-player:nth-child(9) { animation-delay: 2.45s; }
.formation-player:nth-child(10) { animation-delay: 2.55s; }
.formation-player:nth-child(11) { animation-delay: 2.7s; }
.formation-link {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
  animation: drawLink 1.2s ease 2.8s backwards;
}

/* ---- Clickable football ---- */
.tunnel-football-ball {
  position: absolute;
  z-index: 5;
  left: var(--ball-x);
  top: var(--ball-y);
  width: clamp(56px, 8vw, 104px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(720deg);
  -webkit-tap-highlight-color: transparent;
  animation: ballTravel 2.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.tunnel-football-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.75));
  animation: ballFloat 3.4s ease-in-out 2.8s infinite;
  transition: filter 0.25s ease;
}
.tunnel-football-ball:hover .tunnel-football-svg,
.tunnel-football-ball:focus-visible .tunnel-football-svg {
  filter: drop-shadow(0 0 26px rgba(230, 201, 121, 0.95));
}
.tunnel-football-ball.is-resetting {
  animation: ballRespawn 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}
.tunnel-football-ball.is-shooting {
  left: var(--goal-x);
  top: var(--goal-y);
  transform: translate(-50%, -50%) scale(0.3) rotate(1080deg);
  pointer-events: none;
  cursor: default;
  animation: ballShot 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.tunnel-football-ball.is-shooting .tunnel-football-svg { animation: none; }

.shot-hint {
  position: absolute;
  z-index: 4;
  left: var(--ball-x);
  top: calc(var(--ball-y) + clamp(36px, 5.5vw, 64px));
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  background: rgba(5, 8, 7, 0.75);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
  animation: hintIn 0.6s ease 2.9s backwards, hintPulse 2.4s ease-in-out 3.5s infinite;
}
.is-shot-active .shot-hint { opacity: 0; }

.goal-celebration {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 58%;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(230, 201, 121, 0.8), 0 0 60px rgba(16, 185, 129, 0.6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.is-scored .goal-celebration { animation: goalText 1.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }

/* ---------------- Keyframes ---------------- */
@keyframes tunnelFlow {
  0% { transform: translate(-50%, -50%) scale(0.06); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
@keyframes floorRun { to { background-position: 0 48px, 0 0; } }
@keyframes ceilingRun { to { background-position: 0 -48px, 0 0; } }
@keyframes exitPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes beamSweep { from { transform: rotate(-10deg); } to { transform: rotate(12deg); } }
@keyframes nodeIn { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes drawLink { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
@keyframes ballTravel {
  0% { left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.06) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  60% { left: 54%; top: 60%; transform: translate(-50%, -50%) scale(1.25) rotate(520deg); }
  100% { left: var(--ball-x); top: var(--ball-y); transform: translate(-50%, -50%) scale(1) rotate(720deg); opacity: 1; }
}
@keyframes ballFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12%) rotate(16deg); }
}
@keyframes ballShot {
  0% { left: var(--ball-x); top: var(--ball-y); transform: translate(-50%, -50%) scale(1) rotate(720deg); opacity: 1; }
  10% { transform: translate(-50%, -50%) scale(1.12) rotate(760deg); }
  50% { top: calc(var(--goal-y) - 7%); transform: translate(-50%, -50%) scale(0.6) rotate(920deg); }
  80% { left: var(--goal-x); top: var(--goal-y); transform: translate(-50%, -50%) scale(0.34) rotate(1040deg); }
  100% { left: var(--goal-x); top: calc(var(--goal-y) + 4%); transform: translate(-50%, -50%) scale(0.3) rotate(1080deg); opacity: 1; }
}
@keyframes ballRespawn {
  0% { left: var(--ball-x); top: var(--ball-y); transform: translate(-50%, -50%) scale(0.1) rotate(0deg); opacity: 0; }
  100% { left: var(--ball-x); top: var(--ball-y); transform: translate(-50%, -50%) scale(1) rotate(720deg); opacity: 1; }
}
@keyframes netBulge {
  0% { transform: scale(1, 1); }
  30% { transform: scale(1.08, 1.14) translateY(-2%); }
  55% { transform: scale(0.97, 0.95); }
  80% { transform: scale(1.02, 1.03); }
  100% { transform: scale(1, 1); }
}
@keyframes goalShake {
  0%, 100% { transform: translate(-50%, -50%); }
  20% { transform: translate(calc(-50% - 4px), -50%) rotate(-1deg); }
  45% { transform: translate(calc(-50% + 4px), -50%) rotate(1deg); }
  70% { transform: translate(calc(-50% - 2px), -50%); }
}
@keyframes goalFlash {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes goalAppear { from { opacity: 0; transform: translate(-50%, -40%) scale(0.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes goalText {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  35% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1.05); }
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hintPulse { 0%, 100% { box-shadow: 0 0 0 rgba(230, 201, 121, 0); } 50% { box-shadow: 0 0 16px rgba(230, 201, 121, 0.45); } }
@keyframes pinPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 899px) {
  :root { --ball-x: 40%; --ball-y: 70%; --goal-x: 50%; --goal-y: 22%; }
  .hero { padding: 24px 16px 0; }
  .hero-content { padding: 24px; }
  .shot-game { margin-block: 40px; }
  .tunnel-scene { min-height: 440px; }
  .formation-overlay-433 { width: 38%; top: 36%; right: 3%; }
  .goal-net-target { width: 38%; }
  .goal-celebration { top: 48%; }
}

/* ---------------- Stats ---------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
}
.stat-grid > * { min-width: 0; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-emerald);
  background: var(--glass);
  color: var(--c-cream);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-gold-bright);
  text-shadow: 0 0 20px rgba(230, 201, 121, 0.35);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--c-cream-soft); font-size: 0.95rem; }

/* ---------------- Entry scoreboard cards ---------------- */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.entry-grid > * { min-width: 0; }
.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(12, 30, 22, 0.92), rgba(4, 9, 7, 0.95));
  color: var(--c-cream);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.entry-card::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 6px;
  background: radial-gradient(circle, var(--c-emerald-bright) 0 2px, transparent 2.5px) 0 0 / 10px 6px;
  opacity: 0.7;
}
.entry-card:hover { transform: translateY(-4px); border-color: var(--c-emerald); box-shadow: 0 0 40px rgba(16, 185, 129, 0.25); }
.entry-card > * { margin: 0; }
.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.entry-index { color: var(--c-gold); }
.entry-comp { color: var(--c-cream-soft); }
.entry-metric {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-emerald-bright);
  text-shadow: 0 0 22px rgba(52, 211, 153, 0.45);
}
.entry-title { font-size: 1.3rem; }
.entry-text { color: var(--c-cream-soft); }
.entry-link { margin-top: auto; font-weight: 700; color: var(--c-gold-bright); text-decoration: none; }
.entry-link:hover { color: var(--c-emerald-bright); text-decoration: underline; }

/* ---------------- Timeline ---------------- */
.timeline-wrap { position: relative; padding-left: 40px; max-width: 880px; }
.timeline-track {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.16);
}
.timeline-progress {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-emerald), var(--c-gold));
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  transform-origin: top center;
  transform: scaleY(var(--progress, 1));
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-emerald);
  background: var(--glass);
  color: var(--c-cream);
  min-width: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--c-emerald);
  background: var(--c-black);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.timeline-item.is-visible::before { background: var(--c-gold); border-color: var(--c-gold-bright); }
.timeline-item > * { margin: 0; }
.timeline-head { display: flex; flex-direction: column; gap: 8px; }
.timeline-date { color: var(--c-gold); font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.timeline-title { margin: 0; font-size: 1.25rem; }
.timeline-text { color: var(--c-cream-soft); }
.timeline-chip {
  align-self: flex-start;
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-gold);
  background: rgba(201, 165, 76, 0.14);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------------- Scoreboards ---------------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.feature-split > * { min-width: 0; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.feature-copy > * { margin: 0; }
.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.scoreboard-grid > * { min-width: 0; }
.scoreboard {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(12, 30, 22, 0.92), rgba(3, 8, 6, 0.96));
  color: var(--c-cream);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14), 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 64px rgba(16, 185, 129, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.scoreboard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
}
.scoreboard-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.scoreboard-comp { color: var(--c-gold-bright); }
.scoreboard-venue { color: var(--c-emerald-bright); }
.scoreboard-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.scoreboard-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.team-crest {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.team-crest-arsenal { background: radial-gradient(circle at 30% 30%, #1f8f63, #064e3b); color: var(--c-cream); border: 2px solid var(--c-gold); box-shadow: 0 0 20px rgba(16, 185, 129, 0.45); }
.team-crest-psg { background: radial-gradient(circle at 30% 30%, #2b3550, #0c1224); color: var(--c-cream); border: 2px solid #9aa5c4; }
.team-name { font-weight: 700; font-size: 0.95rem; }
.scoreboard-score { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.score-digits {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-digit {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 76, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: var(--c-gold-bright);
  text-shadow: 0 0 18px rgba(230, 201, 121, 0.5);
}
.score-sep { color: var(--c-cream-soft); }
.score-status {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-emerald-bright);
  text-align: center;
}
.scoreboard-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-gold);
  color: var(--c-cream-soft);
  font-size: 0.9rem;
}

/* ---------------- Glass cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.card-grid > * { min-width: 0; }
.glass-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-emerald);
  background: var(--glass);
  color: var(--c-cream);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.glass-card > * { margin: 0; }
.card-kicker { color: var(--c-gold); font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }
.card-title { font-size: 1.25rem; }
.card-text { color: var(--c-cream-soft); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background: linear-gradient(120deg, rgba(6, 95, 70, 0.55), rgba(5, 8, 7, 0.9) 60%, rgba(201, 165, 76, 0.16));
  color: var(--c-cream);
}
.cta-copy { flex: 1 1 320px; min-width: 0; }

/* ---------------- Sub-page hero ---------------- */
.page-hero { position: relative; padding: 64px 0 40px; border-bottom: 1px solid var(--line-emerald); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(16, 185, 129, 0.18), transparent 70%);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: 40px;
  align-items: center;
}
.page-hero-grid > * { min-width: 0; }
.page-hero-text { display: flex; flex-direction: column; gap: 16px; }
.page-hero-text > * { margin: 0; }
.page-title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.page-lead { color: var(--c-cream-soft); font-size: 1.1rem; max-width: 760px; }
.page-hero-graphic { width: 100%; max-width: 220px; height: auto; justify-self: center; filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.35)); }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--c-cream-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--c-gold); }
.breadcrumb a { color: var(--c-emerald-bright); }

/* ---------------- Article layout ---------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: start;
}
.article-layout > * { min-width: 0; }
.prose { max-width: 780px; }
.prose-section + .prose-section { margin-top: 40px; }
.prose h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.prose h3 { margin: 24px 0 8px; font-size: 1.2rem; color: var(--c-gold-bright); }
.prose p { margin: 0 0 16px; color: var(--c-cream-soft); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; color: var(--c-cream-soft); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--c-emerald-bright); }
.prose strong { color: var(--c-cream); }

.callout {
  margin: 24px 0;
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-gold);
  background: rgba(201, 165, 76, 0.08);
  color: var(--c-cream);
}
.callout p:last-child { margin-bottom: 0; }

.aside-stack { display: grid; gap: 24px; }
.aside-stack > * { min-width: 0; }
.fact-list { margin: 0; display: grid; gap: 16px; }
.fact-list div { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-emerald); }
.fact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list dt { color: var(--c-gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.fact-list dd { margin: 0; color: var(--c-cream); font-weight: 600; }

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-emerald);
  background: rgba(5, 12, 9, 0.75);
  color: var(--c-cream);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table caption { padding: 16px; text-align: left; color: var(--c-gold-bright); font-family: var(--font-display); font-weight: 700; }
.data-table th, .data-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-emerald); }
.data-table th { background: rgba(16, 185, 129, 0.12); color: var(--c-gold-bright); font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.data-table td { color: var(--c-cream-soft); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(16, 185, 129, 0.06); color: var(--c-cream); }

/* ---------------- Player cards ---------------- */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  align-items: start;
}
.player-grid > * { min-width: 0; }
.player-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-emerald);
  background: var(--glass);
  color: var(--c-cream);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.player-card.is-expanded { border-color: var(--c-gold); box-shadow: 0 0 40px rgba(201, 165, 76, 0.2); }
.player-card > * { margin: 0; }
.player-card-top { display: flex; align-items: center; gap: 16px; }
.player-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.player-meta > * { margin: 0; }
.player-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--c-emerald);
  background: radial-gradient(circle at 30% 25%, #1b5e45, #04110b 70%);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}
.player-avatar-havertz { border-color: var(--c-gold); background: radial-gradient(circle at 30% 25%, #6b5520, #0d0a03 70%); color: var(--c-cream); }
.player-avatar-saka { background: radial-gradient(circle at 30% 25%, #1f6b50, #04110b 70%); color: var(--c-gold-bright); }
.player-avatar-odegaard { background: radial-gradient(circle at 30% 25%, #17584a, #03100c 70%); color: var(--c-gold-bright); }
.player-avatar-rice { background: radial-gradient(circle at 30% 25%, #235e3f, #04110b 70%); color: var(--c-gold-bright); }
.player-avatar-saliba { background: radial-gradient(circle at 30% 25%, #134f3b, #020a07 70%); color: var(--c-gold-bright); }
.player-avatar-gabriel { background: radial-gradient(circle at 30% 25%, #1a4d36, #020a07 70%); color: var(--c-gold-bright); }
.player-avatar-raya { background: radial-gradient(circle at 30% 25%, #2a5a2a, #041004 70%); color: var(--c-gold-bright); }
.player-avatar-trossard { background: radial-gradient(circle at 30% 25%, #1c6655, #03110d 70%); color: var(--c-gold-bright); }
.player-role { color: var(--c-gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.player-name { font-size: 1.35rem; }
.player-summary { color: var(--c-cream-soft); }
.player-quickstats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr));
  gap: 8px;
}
.quickstat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-emerald);
  background: rgba(0, 0, 0, 0.4);
  color: var(--c-cream);
  text-align: center;
  min-width: 0;
}
.quickstat dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-cream-soft); }
.quickstat dd { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--c-gold-bright); }
.player-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  background: rgba(5, 8, 7, 0.6);
  color: var(--c-cream);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.player-toggle:hover { background: rgba(201, 165, 76, 0.14); color: var(--c-gold-bright); }
.toggle-icon { flex: none; font-size: 1.3rem; line-height: 1; transition: transform 0.25s ease; }
.player-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(45deg); }
.player-profile { display: grid; gap: 24px; padding-top: 24px; border-top: 1px dashed var(--line-gold); }
.player-profile > * { margin: 0; }
.profile-text { color: var(--c-cream-soft); }
.rating-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rating-row { display: grid; gap: 8px; }
.rating-row-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; color: var(--c-cream); }
.rating-bar { display: block; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.rating-fill { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--c-emerald), var(--c-gold)); }
.rating-6 { width: 60%; } .rating-7 { width: 70%; } .rating-8 { width: 80%; } .rating-9 { width: 90%; } .rating-10 { width: 100%; }

.formation-figure { margin: 0; display: grid; gap: 16px; }
.formation-figure svg { width: 100%; max-width: 420px; height: auto; justify-self: center; }
.formation-figure figcaption { color: var(--c-cream-soft); font-size: 0.9rem; text-align: center; }

/* ---------------- Legal ---------------- */
.legal-layout { max-width: 860px; }
.legal-meta { color: var(--c-gold); font-size: 0.9rem; margin: 0; }
.legal-section { padding: 24px; margin-bottom: 24px; border-radius: var(--radius); border: 1px solid var(--line-emerald); background: rgba(8, 17, 13, 0.7); color: var(--c-cream); }
.legal-section h2 { margin: 0 0 16px; font-size: 1.35rem; }
.legal-section p, .legal-section li { color: var(--c-cream-soft); }
.legal-section p { margin: 0 0 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 16px; padding-left: 24px; }
.legal-section li { margin-bottom: 8px; }

/* ---------------- Contact ---------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-layout > * { min-width: 0; }
.contact-form { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-gold); background: var(--glass); color: var(--c-cream); }
.form-field { display: grid; gap: 8px; margin-bottom: 24px; }
.form-label { font-weight: 700; color: var(--c-cream); }
.form-hint { margin: 0; font-size: 0.85rem; color: var(--c-cream-soft); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 165, 76, 0.45);
  background: rgba(0, 0, 0, 0.5);
  color: var(--c-cream);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: #a39c87; }
.form-input:hover { border-color: var(--c-gold); }
.form-input:focus-visible { border-color: var(--c-emerald-bright); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
.form-input.is-invalid { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; }
.form-textarea { min-height: 160px; resize: vertical; }
.form-select option { background: var(--c-ink); color: var(--c-cream); }
.form-error { margin: 0; font-size: 0.88rem; color: var(--c-danger); }
.form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-check input { flex: none; width: 20px; height: 20px; margin-top: 4px; accent-color: var(--c-emerald); }
.form-check input.is-invalid { outline: 2px solid #f87171; outline-offset: 2px; }
.form-status { margin: 0 0 24px; padding: 16px; border-radius: 12px; border: 1px solid var(--c-emerald); background: rgba(16, 185, 129, 0.14); color: var(--c-cream); }
.form-status.is-success { border-color: var(--c-emerald); background: rgba(16, 185, 129, 0.16); color: var(--c-cream); }
.form-status.is-error { border-color: #f87171; background: rgba(248, 113, 113, 0.12); color: var(--c-cream); }

.contact-details { display: grid; gap: 24px; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.detail-list li { display: grid; gap: 4px; }
.detail-label { color: var(--c-gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }

.map-block {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(52, 211, 153, 0.12) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(52, 211, 153, 0.12) 46px 48px),
    linear-gradient(135deg, #07130e, #0c1e16);
  color: var(--c-cream);
}
.map-park-green { position: absolute; left: 8%; top: 12%; width: 30%; height: 30%; border-radius: 40% 60% 50% 40%; background: rgba(16, 185, 129, 0.28); border: 1px solid rgba(52, 211, 153, 0.4); }
.map-road-main { position: absolute; left: -10%; right: -10%; top: 52%; height: 14px; background: rgba(201, 165, 76, 0.35); transform: rotate(-8deg); }
.map-road-cross { position: absolute; top: -10%; bottom: -10%; left: 58%; width: 10px; background: rgba(243, 236, 216, 0.22); transform: rotate(12deg); }
.map-road-ring { position: absolute; left: 30%; top: 20%; width: 60%; height: 70%; border: 6px solid rgba(243, 236, 216, 0.12); border-radius: 50%; }
.map-pin {
  position: absolute;
  left: 60%;
  top: 48%;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  background: var(--c-gold);
  border: 3px solid var(--c-cream);
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 0 20px rgba(201, 165, 76, 0.7);
}
.map-pin-pulse {
  position: absolute;
  left: calc(60% - 20px);
  top: calc(48% - 20px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--c-emerald-bright);
  animation: pinPulse 2s ease-out infinite;
}
.map-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line-gold);
  background: rgba(5, 8, 7, 0.88);
  color: var(--c-cream);
  font-size: 0.9rem;
}
.map-caption strong { color: var(--c-gold-bright); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line-gold); background: #030605; color: var(--c-cream); }
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-inner > * { min-width: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-text { margin: 0; color: var(--c-cream-soft); font-size: 0.92rem; }
.footer-heading { margin: 0 0 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--c-cream-soft); text-decoration: none; }
.footer-links a:hover { color: var(--c-gold-bright); text-decoration: underline; }
.footer-cookie-btn { padding: 0; border: 0; background: transparent; color: var(--c-emerald-bright); font: inherit; cursor: pointer; text-decoration: underline; text-align: left; }
.footer-cookie-btn:hover { background: transparent; color: var(--c-gold-bright); }
.footer-address { font-style: normal; color: var(--c-cream-soft); font-size: 0.92rem; line-height: 1.8; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--line-emerald);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--c-cream-soft);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 1080px;
  margin-inline: auto;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-gold);
  background: rgba(6, 14, 10, 0.97);
  color: var(--c-cream);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cookie-inner { display: grid; gap: 16px; }
.cookie-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--c-gold-bright); }
.cookie-text { margin: 0; color: var(--c-cream-soft); font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { padding: 8px 16px; font-size: 0.9rem; }
.cookie-prefs { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-emerald); }
.cookie-option { display: flex; align-items: center; gap: 12px; color: var(--c-cream); }
.cookie-option input { width: 18px; height: 18px; accent-color: var(--c-emerald); }
.cookie-prefs .btn { justify-self: start; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .feature-split { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-graphic { max-width: 160px; justify-self: start; }
  .page-hero { padding: 40px 0 24px; }
  .cta-band { padding: 24px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 24px 24px; }
}
@media (max-width: 399px) {
  .container { padding-inline: 16px; }
  .header-inner { padding: 0 12px; }
  .brand-name { font-size: 0.78rem; }
  .brand-mark { width: 24px; height: 24px; }
  .header-cta { padding: 6px 10px; font-size: 0.72rem; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero { padding: 16px 12px 0; }
  .hero-content { padding: 24px 16px; }
  .tunnel-scene { min-height: 380px; }
  .title-badge { padding: 16px; gap: 12px; }
  .shot-hint { font-size: 0.64rem; }
  .team-crest { width: 44px; height: 44px; font-size: 0.72rem; }
  .score-digit { padding: 4px 8px; }
  .score-digits { font-size: 2rem; gap: 4px; }
  .scoreboard { padding: 24px 16px; }
  .scoreboard-body { gap: 8px; }
  .team-name { font-size: 0.82rem; }
  .timeline-wrap { padding-left: 32px; }
  .timeline-track { left: 8px; }
  .timeline-item::before { left: -31px; }
  .timeline-item, .glass-card, .stat, .player-card, .contact-form, .legal-section { padding: 24px 16px; }
  .entry-card { padding: 40px 16px 24px; }
  .entry-card::before { left: 16px; right: 16px; }
  .btn { padding: 12px 16px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .footer-inner, .footer-bottom { padding-inline: 16px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .is-scored .goal-celebration { opacity: 1; }
  .is-scored .goal-flash { opacity: 0.8; }
}