/* ==========================================================
   Questswatchptch — Copper Arena theme
   Spacing scale: 4, 8, 16, 24, 40, 64px
   ========================================================== */
:root {
  --charcoal-950: #100e0c;
  --charcoal-900: #15120f;
  --charcoal-800: #1c1814;
  --charcoal-700: #26211c;
  --charcoal-600: #322b25;
  --copper: #d98a55;
  --copper-bright: #f0a674;
  --copper-deep: #9c5a2c;
  --burnt: #e8763a;
  --burnt-deep: #cc5500;
  --cream: #f5ead9;
  --cream-muted: #d9c9b2;
  --error: #ffb393;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --radius-card: 20px;
  --glow-copper: 0 0 0 1px rgba(217, 138, 85, 0.35), 0 0 28px rgba(232, 118, 58, 0.16);
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-score: Consolas, "Courier New", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream);
  background-color: var(--charcoal-900);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 138, 85, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(204, 85, 0, 0.08), transparent 70%);
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--cream);
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw + 0.9rem, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.2vw + 0.9rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p, li, a, dt, dd, td, th, span, label, address, figcaption, button, nav { overflow-wrap: anywhere; }
p { margin: 0 0 var(--space-3); }
a { color: var(--copper-bright); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--copper-bright); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  padding: 8px 16px; border-radius: 8px;
  background: var(--copper-bright); color: var(--charcoal-900);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--copper-bright), var(--copper));
  color: var(--charcoal-900);
  box-shadow: 0 0 20px rgba(232, 118, 58, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, #f8c49d, var(--copper-bright));
  color: var(--charcoal-900);
  box-shadow: 0 0 28px rgba(240, 166, 116, 0.55);
}
.btn-ghost {
  background: rgba(38, 33, 28, 0.7);
  color: var(--cream);
  border-color: rgba(217, 138, 85, 0.65);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(217, 138, 85, 0.2);
  color: var(--cream);
  border-color: var(--copper-bright);
}
.btn-compact { padding: 8px 16px; font-size: 0.9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 60;
  background: rgba(16, 14, 12, 0.94);
  color: var(--cream);
  border-bottom: 1px solid rgba(217, 138, 85, 0.4);
  box-shadow: 0 1px 18px rgba(232, 118, 58, 0.15);
}
.site-header-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--cream); text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; flex-shrink: 0; }
.brand:hover { color: var(--copper-bright); }
.brand-mark-handball-icon { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(232, 118, 58, 0.5)); }
.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--cream-muted); text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(217, 138, 85, 0.16); color: var(--cream); }
.nav-link[aria-current="page"] { color: var(--copper-bright); box-shadow: inset 0 -2px 0 var(--copper); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.nav-toggle {
  display: none; width: 40px; height: 40px; padding: 8px; border-radius: 10px; cursor: pointer;
  background: rgba(38, 33, 28, 0.9); color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.6);
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: var(--copper-bright); color: var(--copper-bright); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Generic sections ---------- */
.section { padding: var(--space-6) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--space-5); }
.section-intro { color: var(--cream-muted); }
.kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burnt); margin-bottom: var(--space-3); }
.lead { font-size: 1.15rem; color: var(--cream-muted); margin-bottom: var(--space-4); }
.panel {
  background: rgba(38, 33, 28, 0.62);
  color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.38);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--glow-copper);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split-copy > .btn { margin-top: var(--space-2); }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.check-list li { position: relative; padding-left: var(--space-4); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--burnt); color: var(--burnt); box-shadow: 0 0 8px rgba(232, 118, 58, 0.7); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-5); align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.hero-stat {
  display: flex; flex-direction: column-reverse; gap: 12px; padding: var(--space-3);
  border-radius: 16px; border: 1px solid rgba(217, 138, 85, 0.35);
  background: rgba(28, 24, 20, 0.7); color: var(--cream);
}
.hero-stat-value { margin: 0; font-family: var(--font-score); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--copper-bright); text-shadow: 0 0 12px rgba(232, 118, 58, 0.5); }
.hero-stat-label { font-size: 0.85rem; color: var(--cream-muted); }
.hero-visual { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }
.hero-stage {
  position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 28px; border: 1px solid rgba(217, 138, 85, 0.5);
  background: radial-gradient(circle at 50% 45%, #3a2416 0%, #1c1612 45%, #0d0b09 100%);
  color: var(--cream);
  box-shadow: 0 0 40px rgba(232, 118, 58, 0.25), inset 0 0 60px rgba(0, 0, 0, 0.6);
  perspective: 600px;
}
.arena-floor-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(204, 85, 0, 0.3), transparent);
  color: var(--cream);
}
.arena-tunnel-graphic { position: absolute; inset: 0; transform-style: preserve-3d; }
.tunnel-ring {
  position: absolute; left: 50%; top: 45%; width: 70%; aspect-ratio: 1 / 1; border-radius: 50%;
  border: 3px solid rgba(240, 166, 116, 0.75);
  box-shadow: 0 0 22px rgba(232, 118, 58, 0.55), inset 0 0 22px rgba(232, 118, 58, 0.35);
  transform: translate(-50%, -50%) translateZ(var(--ring-z, -400px));
  opacity: 0.7;
  animation: tunnel-rush 6s linear infinite;
}
.tunnel-ring:nth-child(1) { --ring-z: -900px; animation-delay: 0s; }
.tunnel-ring:nth-child(2) { --ring-z: -720px; animation-delay: -1s; }
.tunnel-ring:nth-child(3) { --ring-z: -540px; animation-delay: -2s; }
.tunnel-ring:nth-child(4) { --ring-z: -360px; animation-delay: -3s; }
.tunnel-ring:nth-child(5) { --ring-z: -180px; animation-delay: -4s; }
.tunnel-ring:nth-child(6) { --ring-z: 0px; animation-delay: -5s; }
@keyframes tunnel-rush {
  0% { transform: translate(-50%, -50%) translateZ(-1000px); opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.8; }
  100% { transform: translate(-50%, -50%) translateZ(380px); opacity: 0; }
}
.flying-handball-graphic {
  position: absolute; left: 50%; top: 45%; width: 30%; aspect-ratio: 1 / 1; z-index: 3;
  transform: translate(-50%, -20%) scale(0.7);
  filter: drop-shadow(0 0 18px rgba(240, 166, 116, 0.6));
  animation: ball-flight 4s cubic-bezier(.45, 0, .35, 1) infinite;
}
.handball-spin { width: 100%; height: 100%; animation: ball-spin 1.1s linear infinite; }
.handball-sphere-svg { width: 100%; height: 100%; }
@keyframes ball-flight {
  0% { transform: translate(-50%, -60%) scale(0.12); opacity: 0; }
  10% { opacity: 1; }
  72% { transform: translate(-50%, 40%) scale(0.85); opacity: 1; }
  80% { transform: translate(-50%, 55%) scale(0.7); opacity: 1; }
  100% { transform: translate(-50%, 55%) scale(0.6); opacity: 0; }
}
@keyframes ball-spin { to { transform: rotate(360deg); } }
.goal-net-graphic { position: absolute; left: 50%; bottom: 6%; width: 62%; aspect-ratio: 3 / 2; transform: translateX(-50%); z-index: 2; }
.goal-net-scroll-layer {
  position: absolute; inset: 0; transform-origin: 50% 0;
  transform: scaleY(calc(1 - var(--net-push, 0) * 0.14)) skewX(calc(var(--net-push, 0) * -6deg));
  transition: transform .25s ease-out;
}
.goal-net-mesh { position: absolute; inset: 0; transform-origin: 50% 40%; animation: net-catch 4s cubic-bezier(.45, 0, .35, 1) infinite; }
.goal-net-svg, .goal-frame-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.goal-frame-svg { transition: filter .3s ease; }
.goal-net-graphic.is-stretched .goal-frame-svg { filter: drop-shadow(0 0 10px rgba(240, 166, 116, 0.9)); }
.goal-net-graphic.is-hit .goal-net-mesh { animation: net-burst .75s ease-out; }
@keyframes net-catch {
  0%, 70% { transform: none; }
  78% { transform: scale(0.92) translateY(5%); }
  88% { transform: scale(1.02); }
  100% { transform: none; }
}
@keyframes net-burst {
  0% { transform: none; }
  30% { transform: scale(0.86) translateY(8%); filter: brightness(1.6); }
  60% { transform: scale(1.04); }
  100% { transform: none; }
}
.shot-controls { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.shot-status { margin: 0; font-size: 0.9rem; color: var(--cream-muted); }

/* ---------- Entry cards (match-card styled links) ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.entry-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-4); border-radius: var(--radius-card); text-decoration: none;
  background: linear-gradient(160deg, rgba(50, 43, 37, 0.8), rgba(21, 18, 15, 0.9));
  color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.38);
  box-shadow: var(--glow-copper);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.entry-card:hover, .entry-card:focus-visible {
  background: linear-gradient(160deg, rgba(62, 50, 40, 0.9), rgba(26, 21, 17, 0.95));
  color: var(--cream);
  transform: translateY(-4px);
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 1px var(--copper-bright), 0 0 36px rgba(232, 118, 58, 0.35);
}
.entry-card-stage { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burnt); padding-right: 72px; }
.entry-card-stat { display: flex; flex-direction: column; gap: 12px; }
.entry-card-stat-value { display: block; font-family: var(--font-score); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--copper-bright); text-shadow: 0 0 14px rgba(232, 118, 58, 0.5); }
.entry-card-stat-label { display: block; font-size: 0.88rem; color: var(--cream-muted); }
.entry-card-title { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: var(--cream); }
.entry-card-text { display: block; color: var(--cream-muted); }
.entry-card-cta { display: block; margin-top: auto; font-weight: 700; color: var(--copper-bright); }
.entry-card-net-icon { position: absolute; top: var(--space-4); right: var(--space-4); width: 56px; height: 38px; transform-origin: 50% 20%; transition: transform .3s ease; }
.entry-card:hover .entry-card-net-icon, .entry-card:focus-visible .entry-card-net-icon { animation: net-burst .7s ease-out; }

/* ---------- Scoreboard ---------- */
.scoreboard-arena { perspective: 1000px; margin-bottom: var(--space-5); }
.scoreboard-curve {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(180deg, #221b16 0%, #120f0c 100%);
  color: var(--cream);
  border: 2px solid var(--copper);
  border-radius: 50% 50% 24px 24px / 70px 70px 24px 24px;
  box-shadow: 0 0 30px rgba(232, 118, 58, 0.35), inset 0 0 40px rgba(217, 138, 85, 0.12);
  transform: rotateX(6deg);
}
.scoreboard-caption { font-size: 0.85rem; color: var(--cream-muted); letter-spacing: 0.06em; margin-bottom: var(--space-4); padding: 0 var(--space-4); }
.scoreboard-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--space-3); }
.scoreboard-team { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.scoreboard-team-name { font-weight: 700; font-size: 0.95rem; color: var(--cream); }
.scoreboard-digits { font-family: var(--font-score); font-size: clamp(3rem, 10vw, 6rem); font-weight: 700; line-height: 1; color: var(--copper-bright); text-shadow: 0 0 18px rgba(232, 118, 58, 0.8), 0 0 4px rgba(255, 220, 190, 0.6); }
.scoreboard-separator { font-family: var(--font-score); font-size: clamp(2rem, 6vw, 4rem); line-height: 1.2; color: var(--burnt); }
.scoreboard-halves { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-4); }
.scoreboard-half { padding: 4px 16px; border-radius: 999px; background: rgba(217, 138, 85, 0.14); color: var(--cream); font-size: 0.85rem; }
.scoreboard-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-3); }
.timeline-moment {
  display: flex; flex-direction: column; gap: 12px; padding: var(--space-4) var(--space-3);
  border-radius: 16px; border: 1px solid rgba(217, 138, 85, 0.3);
  background: rgba(28, 24, 20, 0.75); color: var(--cream);
}
.timeline-moment-highlight { border-color: var(--copper-bright); box-shadow: 0 0 24px rgba(232, 118, 58, 0.35); }
.timeline-clock { font-family: var(--font-score); font-size: 0.85rem; color: var(--burnt); }
.timeline-score { font-family: var(--font-score); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--copper-bright); }
.timeline-note { margin: 0; font-size: 0.92rem; color: var(--cream-muted); }
.scoreboard-timeline .timeline-moment:nth-child(2) { transition-delay: .06s; }
.scoreboard-timeline .timeline-moment:nth-child(3) { transition-delay: .12s; }
.scoreboard-timeline .timeline-moment:nth-child(4) { transition-delay: .18s; }
.scoreboard-timeline .timeline-moment:nth-child(5) { transition-delay: .24s; }
.scoreboard-timeline .timeline-moment:nth-child(6) { transition-delay: .3s; }
.scoreboard-timeline .timeline-moment:nth-child(7) { transition-delay: .36s; }
.scoreboard-timeline .timeline-moment:nth-child(8) { transition-delay: .42s; }

/* ---------- Save stage ---------- */
.save-stage-panel { padding: var(--space-4); }
.save-stage-svg { width: 100%; height: auto; }
.save-keeper-figure { transform-box: fill-box; transform-origin: 50% 100%; animation: keeper-dive 5s ease-in-out infinite; }
.save-ball-shot { transform-box: fill-box; transform-origin: center; animation: save-ball-path 5s ease-in infinite; }
.save-flash-text { font-family: var(--font-display); font-size: 30px; fill: var(--copper-bright); transform-box: fill-box; transform-origin: center; animation: save-flash 5s ease-out infinite; }
@keyframes keeper-dive {
  0%, 40% { transform: none; }
  52%, 70% { transform: translate(40px, -20px) rotate(22deg); }
  88%, 100% { transform: none; }
}
@keyframes save-ball-path {
  0% { transform: translate(0, 0) scale(1.5); opacity: 0; }
  12% { transform: translate(0, 0) scale(1.4); opacity: 1; }
  52% { transform: translate(114px, -122px) scale(1); opacity: 1; }
  64% { transform: translate(170px, -200px) scale(0.9); opacity: 1; }
  72%, 100% { transform: translate(170px, -200px) scale(0.9); opacity: 0; }
}
@keyframes save-flash {
  0%, 50% { opacity: 0; transform: scale(0.8); }
  56% { opacity: 1; transform: scale(1.12); }
  66% { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; }
}

/* ---------- Match cards ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); align-items: start; }
.match-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4); overflow: hidden;
  padding: var(--space-4); border-radius: var(--radius-card);
  background: linear-gradient(165deg, rgba(50, 43, 37, 0.85), rgba(19, 16, 13, 0.95));
  color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.38);
  box-shadow: var(--glow-copper);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.match-card.is-open { border-color: var(--copper-bright); box-shadow: 0 0 0 1px var(--copper-bright), 0 0 36px rgba(232, 118, 58, 0.3); }
.match-card-head { display: flex; flex-direction: column; gap: var(--space-1); }
.match-card-stage { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burnt); }
.match-card-venue { font-size: 0.88rem; color: var(--cream-muted); }
.match-card-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-2); align-items: end; text-align: center; }
.match-card-team { display: flex; flex-direction: column; gap: 12px; }
.match-card-team-name { font-size: 0.88rem; font-weight: 600; color: var(--cream-muted); }
.match-card-team-goals { font-family: var(--font-score); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--cream); }
.match-card-team-win .match-card-team-name { color: var(--cream); }
.match-card-team-win .match-card-team-goals { color: var(--copper-bright); text-shadow: 0 0 16px rgba(232, 118, 58, 0.6); }
.match-card-divider { font-family: var(--font-score); font-size: 2rem; line-height: 1.2; color: var(--burnt); }
.margin-meter { display: grid; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; }
.margin-meter-home { background: linear-gradient(90deg, var(--copper-deep), var(--copper-bright)); color: var(--cream); }
.margin-meter-away { background: rgba(217, 201, 178, 0.28); color: var(--cream); }
.margin-meter-final { grid-template-columns: 24fr 23fr; }
.margin-meter-semi { grid-template-columns: 29fr 26fr; }
.margin-meter-qf { grid-template-columns: 60fr 54fr; }
.margin-meter-leg1 { grid-template-columns: 28fr 28fr; }
.margin-meter-leg2 { grid-template-columns: 32fr 26fr; }
.margin-meter-label { margin: -12px 0 0; font-size: 0.85rem; color: var(--cream-muted); }
.match-card-toggle, .roster-play-button {
  align-self: flex-start; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem;
  background: rgba(217, 138, 85, 0.14); color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.6);
  transition: background-color .2s ease;
}
.match-card-toggle:hover, .match-card-toggle:focus-visible, .roster-play-button:hover, .roster-play-button:focus-visible { background: rgba(217, 138, 85, 0.3); color: var(--cream); }
.match-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; }
.match-card-fact { display: flex; flex-direction: column-reverse; gap: 12px; padding: var(--space-3); border-radius: 12px; background: rgba(16, 14, 12, 0.6); color: var(--cream); }
.match-card-fact dt { font-size: 0.8rem; color: var(--cream-muted); }
.match-card-fact dd { margin: 0; font-weight: 700; color: var(--copper-bright); }
.goal-burst-graphic, .roster-goal-burst {
  position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 166, 116, 0.9), rgba(204, 85, 0, 0) 70%);
  color: var(--cream);
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  z-index: 2;
}
.match-card.is-goal .goal-burst-graphic, .roster-card.is-goal .roster-goal-burst { animation: goal-pop .9s ease-out; }
@keyframes goal-pop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}

/* ---------- Court ---------- */
.court-explorer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.court-graphic { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.court-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 16px rgba(232, 118, 58, 0.25)); }
.court-marker {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  transform: translate(-50%, -50%);
  font: inherit; font-size: 0.72rem; font-weight: 800; line-height: 1;
  background: var(--charcoal-700); color: var(--cream);
  border: 2px solid var(--copper);
  box-shadow: 0 0 10px rgba(232, 118, 58, 0.4);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.court-marker:hover, .court-marker:focus-visible { background: var(--charcoal-600); color: var(--cream); transform: translate(-50%, -50%) scale(1.1); }
.court-marker.is-active { background: var(--copper-bright); color: var(--charcoal-900); border-color: var(--cream); box-shadow: 0 0 0 4px rgba(240, 166, 116, 0.35), 0 0 22px rgba(240, 166, 116, 0.8); }
.court-marker-gk { left: 5%; top: 50%; }
.court-marker-ds { left: 18%; top: 34%; }
.court-marker-lb { left: 70%; top: 27%; }
.court-marker-cb { left: 66%; top: 50%; }
.court-marker-rb { left: 70%; top: 73%; }
.court-marker-lw { left: 91%; top: 15%; }
.court-marker-rw { left: 91%; top: 85%; }
.court-marker-pv { left: 83%; top: 50%; }
.court-panel-title { font-size: 1.15rem; color: var(--copper-bright); }
.court-panel p:last-child { margin-bottom: 0; }

/* ---------- Trophy ---------- */
.trophy-3d-graphic { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-5) var(--space-4); perspective: 800px; min-height: 380px; }
.trophy-halo {
  position: absolute; left: 50%; top: 45%; width: 260px; max-width: 90%; aspect-ratio: 1 / 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240, 166, 116, 0.35), rgba(204, 85, 0, 0.08) 55%, transparent 70%);
  color: var(--cream);
  animation: halo-pulse 4s ease-in-out infinite;
}
.trophy-spin { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; transform-style: preserve-3d; transform: rotateY(-12deg); animation: trophy-sway 8s ease-in-out infinite; }
.trophy-cup {
  position: relative; width: 130px; height: 140px; border-radius: 14px 14px 70px 70px;
  background: linear-gradient(100deg, #6e3b1c 0%, #d98a55 22%, #fbd9b8 38%, #d98a55 52%, #8a4a22 76%, #e0a070 100%);
  color: var(--charcoal-900);
  box-shadow: inset -12px -10px 24px rgba(0, 0, 0, 0.45), inset 10px 6px 18px rgba(255, 230, 205, 0.35), 0 0 30px rgba(232, 118, 58, 0.4);
  overflow: visible;
}
.trophy-cup::before {
  content: ""; position: absolute; left: -6px; right: -6px; top: -10px; height: 22px; border-radius: 50%;
  background: linear-gradient(90deg, #7a4220, #f6c9a0, #b8652f);
  color: var(--charcoal-900);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35);
}
.trophy-cup-shine {
  position: absolute; top: 18px; left: 22px; width: 18px; height: 90px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.85), rgba(255, 245, 230, 0));
  color: var(--charcoal-900);
  animation: shine-sweep 4s ease-in-out infinite;
}
.trophy-handle { position: absolute; top: 22px; width: 50px; height: 66px; border: 10px solid #b8652f; border-radius: 50%; z-index: -1; box-shadow: 0 0 12px rgba(232, 118, 58, 0.4); }
.trophy-handle-left { left: -36px; border-right-color: transparent; }
.trophy-handle-right { right: -36px; border-left-color: transparent; }
.trophy-stem { width: 28px; height: 50px; background: linear-gradient(90deg, #6e3b1c, #f0a674, #7a4220); color: var(--charcoal-900); }
.trophy-base {
  display: flex; align-items: center; justify-content: center; width: 170px; height: 48px; border-radius: 8px;
  background: linear-gradient(180deg, #3a2a20, #15100c);
  color: var(--copper-bright);
  border-top: 4px solid #d98a55;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}
.trophy-plate { font-family: var(--font-score); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; }
@keyframes trophy-sway { 0%, 100% { transform: rotateY(-22deg); } 50% { transform: rotateY(22deg); } }
@keyframes shine-sweep { 0%, 100% { transform: translateX(0); opacity: .85; } 50% { transform: translateX(70px); opacity: .4; } }
@keyframes halo-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.stat-inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: 0 0 var(--space-4); }
.stat-inline-item { display: flex; flex-direction: column-reverse; gap: 12px; padding: var(--space-3); border-radius: 14px; border: 1px solid rgba(217, 138, 85, 0.3); background: rgba(28, 24, 20, 0.7); color: var(--cream); }
.stat-inline-value { margin: 0; font-family: var(--font-score); font-size: 1.6rem; font-weight: 700; color: var(--copper-bright); }
.stat-inline-label { font-size: 0.82rem; color: var(--cream-muted); }

/* ---------- Sub-page layout ---------- */
.page-hero { padding: var(--space-6) 0 var(--space-5); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.page-hero-graphic { padding: var(--space-4); }
.page-hero-graphic svg { width: 100%; height: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-3); }
.stat-card { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: var(--space-4); }
.stat-card-value { margin: 0; font-family: var(--font-score); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--copper-bright); text-shadow: 0 0 14px rgba(232, 118, 58, 0.45); }
.stat-card-label { font-size: 0.9rem; color: var(--cream-muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.prose h2 { margin-top: var(--space-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-4); color: var(--copper-bright); }
.prose ul, .prose ol { padding-left: var(--space-4); margin: 0 0 var(--space-3); }
.prose li { margin-bottom: var(--space-2); }
.prose strong { color: var(--cream); }
.aside-title { font-size: 1.1rem; color: var(--copper-bright); }
.aside-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.aside-list li { display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-3); border-bottom: 1px solid rgba(217, 138, 85, 0.2); }
.aside-list-label { font-size: 0.82rem; color: var(--cream-muted); }
.aside-list-value { font-weight: 700; color: var(--cream); }
.data-table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); border-radius: 16px; border: 1px solid rgba(217, 138, 85, 0.35); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table caption { text-align: left; padding: var(--space-3); font-weight: 700; color: var(--copper-bright); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(217, 138, 85, 0.18); vertical-align: top; }
.data-table thead th { background: rgba(217, 138, 85, 0.16); color: var(--cream); font-weight: 700; }
.data-table tbody tr:hover { background: rgba(217, 138, 85, 0.07); color: var(--cream); }
.continue-block { margin-top: 0; }

/* ---------- Roster cards ---------- */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); align-items: start; }
.roster-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4); overflow: hidden;
  padding: var(--space-4); border-radius: var(--radius-card);
  background: linear-gradient(165deg, rgba(50, 43, 37, 0.85), rgba(19, 16, 13, 0.95));
  color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.38);
  box-shadow: var(--glow-copper);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.roster-card-featured { border-color: var(--copper-bright); box-shadow: 0 0 0 1px var(--copper-bright), 0 0 30px rgba(232, 118, 58, 0.35); }
.roster-card-top { display: flex; gap: var(--space-3); align-items: center; }
.roster-role-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-bright), var(--copper-deep));
  color: var(--charcoal-900); font-weight: 800; font-size: 0.85rem;
  transition: box-shadow .25s ease;
}
.roster-card-title { margin: 0; font-size: 1.1rem; }
.roster-card-role { margin: var(--space-1) 0 0; font-size: 0.85rem; color: var(--cream-muted); }
.roster-mini-court-graphic { width: 100%; height: auto; }
.roster-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: 0; }
.roster-stat { display: flex; flex-direction: column-reverse; gap: 12px; }
.roster-stat dt { font-size: 0.75rem; color: var(--cream-muted); }
.roster-stat dd { margin: 0; font-family: var(--font-score); font-weight: 700; font-size: 1.2rem; color: var(--copper-bright); }
.roster-card-text { margin: 0; font-size: 0.95rem; color: var(--cream-muted); }

/* Replay reaction */
.roster-goal-flash {
  position: absolute; left: 50%; top: 36%; z-index: 3; pointer-events: none;
  padding: 8px 22px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.08em; line-height: 1.2;
  background: rgba(16, 14, 12, 0.9); color: var(--copper-bright);
  border: 2px solid var(--copper-bright);
  box-shadow: 0 0 28px rgba(232, 118, 58, 0.7);
  text-shadow: 0 0 12px rgba(232, 118, 58, 0.8);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
}
.roster-card.is-goal { border-color: var(--copper-bright); box-shadow: 0 0 0 1px var(--copper-bright), 0 0 44px rgba(232, 118, 58, 0.6); }
.roster-card.is-goal .roster-goal-flash {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: roster-flash 1.3s ease-out forwards;
}
.roster-card.is-goal .roster-role-badge { box-shadow: 0 0 0 4px rgba(240, 166, 116, 0.4), 0 0 20px rgba(240, 166, 116, 0.9); }
.roster-card.is-goal .roster-mini-court-graphic circle {
  fill: var(--burnt);
  transform-box: fill-box; transform-origin: center;
  animation: roster-marker-pulse .42s ease-in-out 3;
}
@keyframes roster-flash {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  32% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}
@keyframes roster-marker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.7); }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-weight: 600; color: var(--cream); }
.form-field input[type="text"], .form-field input[type="email"], .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; font: inherit;
  background: rgba(16, 14, 12, 0.8); color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.5);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--copper-bright); outline-offset: 2px; border-color: var(--copper-bright); }
.form-field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2); }
.form-field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--copper); }
.form-field-check label { flex: 1; font-weight: 400; }
.form-field-check .form-error { flex-basis: 100%; }
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.form-error { margin: 0; font-size: 0.88rem; color: var(--error); }
.form-success { margin: 0; padding: var(--space-3); border-radius: 12px; background: rgba(217, 138, 85, 0.18); color: var(--cream); border: 1px solid var(--copper); }
.contact-details { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-map-graphic {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden;
  background-color: #1f1a15;
  background-image:
    linear-gradient(rgba(217, 138, 85, 0.12) 2px, transparent 2px),
    linear-gradient(90deg, rgba(217, 138, 85, 0.12) 2px, transparent 2px),
    linear-gradient(35deg, transparent 46%, rgba(240, 166, 116, 0.35) 46%, rgba(240, 166, 116, 0.35) 50%, transparent 50%),
    linear-gradient(-20deg, transparent 60%, rgba(204, 85, 0, 0.3) 60%, rgba(204, 85, 0, 0.3) 63%, transparent 63%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  color: var(--cream);
  border: 1px solid rgba(217, 138, 85, 0.45);
  box-shadow: var(--glow-copper);
}
.contact-map-pin { position: absolute; left: 50%; top: 45%; width: 36px; height: 36px; transform: translate(-50%, -100%) rotate(-45deg); border-radius: 50% 50% 50% 0; background: var(--burnt); color: var(--charcoal-900); box-shadow: 0 0 20px rgba(232, 118, 58, 0.8); animation: pin-bob 2.4s ease-in-out infinite; }
.contact-map-pin::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--charcoal-900); color: var(--cream); }
.contact-map-label { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 10px; background: rgba(16, 14, 12, 0.9); color: var(--cream); font-size: 0.9rem; }
@keyframes pin-bob { 0%, 100% { transform: translate(-50%, -100%) rotate(-45deg); } 50% { transform: translate(-50%, -115%) rotate(-45deg); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space-6); padding: var(--space-6) 0 var(--space-4); background: var(--charcoal-950); color: var(--cream); border-top: 1px solid rgba(217, 138, 85, 0.4); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); }
.footer-brand-col { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.footer-text { margin: 0; color: var(--cream-muted); }
.footer-address { font-style: normal; color: var(--cream-muted); line-height: 1.8; }
.footer-heading { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-bright); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-links a { color: var(--cream-muted); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--copper-bright); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(217, 138, 85, 0.2); }
.footer-copy { margin: 0; font-size: 0.88rem; color: var(--cream-muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: var(--space-3); }
.cookie-banner-inner {
  max-width: 1000px; margin: 0 auto; padding: var(--space-4); border-radius: var(--radius-card);
  display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center;
  background: rgba(21, 18, 15, 0.96); color: var(--cream);
  border: 1px solid var(--copper);
  box-shadow: 0 0 32px rgba(232, 118, 58, 0.35);
}
.cookie-banner-text { flex: 1 1 320px; margin: 0; font-size: 0.95rem; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cookie-prefs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding-top: var(--space-3); border-top: 1px solid rgba(217, 138, 85, 0.25); }
.cookie-pref-option { display: inline-flex; gap: var(--space-2); align-items: center; color: var(--cream); }
.cookie-pref-option input { width: 18px; height: 18px; accent-color: var(--copper); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .scoreboard-curve.reveal { transform: rotateX(20deg) translateY(24px); }
.js .scoreboard-curve.reveal.is-visible { transform: rotateX(6deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-link { padding: 8px; font-size: 0.86rem; }
}
@media (max-width: 900px) {
  .hero-grid, .split-grid, .page-hero-grid, .article-layout, .court-explorer, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .site-header-inner { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    padding: var(--space-3) var(--space-4) var(--space-4);
    background: var(--charcoal-950); color: var(--cream);
    border-bottom: 1px solid var(--copper);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: var(--space-1); }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .section { padding: var(--space-5) 0; }
  .section + .section { padding-top: var(--space-4); }
  .hero { padding: var(--space-5) 0; }
  .hero-stats, .stat-inline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .court-marker { width: 32px; height: 32px; font-size: 0.62rem; }
  .scoreboard-curve { border-radius: 50% 50% 20px 20px / 40px 40px 20px 20px; }
}
@media (max-width: 399.98px) {
  .container { padding: 0 var(--space-3); }
  .brand { font-size: 0.82rem; gap: var(--space-1); }
  .brand-mark-handball-icon { width: 24px; height: 24px; }
  .header-actions { gap: var(--space-1); }
  .header-cta { padding: 6px 12px; font-size: 0.74rem; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-stats, .stat-inline, .match-card-facts, .roster-stats { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .match-card-team-goals { font-size: 2rem; }
  .court-marker { width: 26px; height: 26px; font-size: 0.55rem; border-width: 1px; }
  .cookie-banner { padding: var(--space-2); }
  .cookie-banner-inner { padding: var(--space-3); }
  .trophy-3d-graphic { min-height: 320px; }
  .entry-card-stat-value { font-size: 1.8rem; }
  .roster-goal-flash { font-size: 1.3rem; padding: 6px 16px; }
}

/* ---------- Reduced motion: disable animation & transition only ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}