/* Match Explainer - "stadium night" theme: dark glass panels over a liquid-pitch backdrop, lime accent, floodlit turf.
   Team colours stay colour-blind safe and are never the only cue (blue circles, orange rounded squares). */
:root {
  /* tokens kept as hex so the contrast tests can read them */
  --bg: #07170F; --panel: #0E2619; --card: #0E2619; --text: #EEF1E2; --muted: #B7C4AE; --head: #F4EFD8; --navy: #F4EFD8;
  --accent: #C9E265; --on-accent: #0B2A18; --focus: #C9E265; --ok: #8FD694;
  --home: #2E75B6; --away: #B75410; --home-ink: #8CC0F5; --away-ink: #F5A66B;
  --lawn: #0B3D24; --lawn2: #145C31; --cream: #F4EFD8; --cream-dim: #CFD8C3; --lime: #C9E265;
  --edge: rgba(244, 239, 216, .16); --edge2: rgba(244, 239, 216, .3); --glass: rgba(14, 38, 25, .78);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px; --gap: 16px;
  font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: transparent; min-height: 100vh; display: flex; flex-direction: column; }   /* transparent: the fixed backdrop canvas shows through */
h1, h2, h3 { color: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible, h2[tabindex="-1"]:focus-visible { outline: none; }   /* headings are focused by the router for screen readers, not for sighted users */
h1 { font-size: 2.1rem; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .lede { max-width: 62rem; } .loading { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- backdrop (flow.js): the liquid pitch behind everything, dimmed on inner pages ----- */
#backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -10; }
#dim { position: fixed; inset: 0; z-index: -8; background: linear-gradient(180deg, rgba(5, 20, 12, .62) 0%, rgba(5, 20, 12, .88) 100%); transition: opacity .6s; }
body.is-landing #dim { opacity: 0; }
#grain { position: fixed; inset: -20%; z-index: -7; opacity: .3; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.1 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
body.is-landing #grain { opacity: .42; }
body.bg-animated #grain { animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ----- header, nav, footer ----- */
.top { background: rgba(6, 22, 14, .74); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 5; color: var(--head); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--head); text-decoration: none; font-family: var(--display); }
.picker { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--head); }
select { font: inherit; padding: 6px 10px; border: 1px solid var(--edge2); border-radius: 10px; background: #0E2619; color: var(--text); max-width: 60vw; }
#nav { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
#nav a { padding: 10px 14px; text-decoration: none; color: var(--cream-dim); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s; }
#nav a:hover { color: #fff; }
#nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 16px 36px; outline: none; }
body:not(.is-landing) main { animation: rise .4s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.foot { background: rgba(3, 12, 8, .82); color: var(--muted); padding: 18px 16px; font-size: .9rem; border-top: 1px solid var(--edge); }
.foot p { max-width: 1180px; margin: 0 auto 6px; } .foot a { color: var(--accent); } .foot .small { font-size: .85rem; }

/* ----- glass cards and basic controls ----- */
.card { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: var(--gap); box-shadow: 0 12px 36px rgba(0, 0, 0, .32); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); } .grid2 > .card { margin-bottom: 0; } .grid2.panels { margin-top: var(--gap); }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .card { padding: 14px; } h1 { font-size: 1.55rem; } }
.center { text-align: center; }
.eyebrow { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 2px 10px; }
.badge .term { border-bottom-color: var(--on-accent); }
.note { background: rgba(255, 200, 87, .12); border-left: 4px solid #FFC857; padding: 8px 12px; border-radius: 8px; margin: 12px 0 0; color: var(--text); }
.error { background: rgba(255, 99, 99, .12); border-left: 4px solid #FF6B6B; padding: 12px 16px; border-radius: 8px; }
code { background: rgba(244, 239, 216, .1); padding: 1px 6px; border-radius: 6px; }
.btn { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--edge2); background: rgba(244, 239, 216, .07); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: rgba(244, 239, 216, .16); }
.btn[aria-pressed="true"], .btn.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.toolbar { padding-bottom: 8px; }
.pill { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--head); background: rgba(6, 22, 14, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--edge2); }
.swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.swatch.home { background: var(--home); border-radius: 50%; } .swatch.away { background: var(--away); border-radius: 3px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: #fff; }
.chip.home { background: var(--home); } .chip.away { background: var(--away); }
.tok { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; font: 800 .75rem/1 var(--font); color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.tok.home { background: radial-gradient(circle at 35% 30%, #5B9BE0, var(--home)); border-radius: 50%; } .tok.away { background: radial-gradient(circle at 35% 30%, #E58A4A, var(--away)); border-radius: 8px; }
.crest { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; font: 800 .6rem/1 var(--font); letter-spacing: .04em; color: #fff; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.crest.home { background: radial-gradient(circle at 35% 30%, #5B9BE0, var(--home)); border-radius: 50%; } .crest.away { background: radial-gradient(circle at 35% 30%, #E58A4A, var(--away)); border-radius: 10px; }
.crest.big { width: 78px; height: 78px; font-size: 1.1rem; border-width: 3px; }
.crest.big.away { border-radius: 22px; }
.switch { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--edge2); background: rgba(244, 239, 216, .06); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.switch i { width: 30px; height: 17px; border-radius: 99px; background: rgba(244, 239, 216, .28); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .2s, background .2s; }
.switch[aria-pressed="true"] i { background: var(--accent); } .switch[aria-pressed="true"] i::after { transform: translateX(13px); background: var(--on-accent); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
input[type=range] { accent-color: var(--accent); }
.slider-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin: 10px 0; }
.slider-row input[type=range] { width: 100%; height: 28px; }
.tabs { display: flex; gap: 4px; background: rgba(244, 239, 216, .07); padding: 4px; border-radius: 999px; margin: 6px 0 12px; }
.tab { flex: 1; border: 0; background: none; color: var(--text); padding: 7px 10px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--muted); margin: 10px 0; align-items: center; }
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 8px 0 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 700; text-align: right; }
.scroll { overflow-x: auto; }
.term { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: help; border-bottom: 2px dotted var(--accent); }
#tip { position: fixed; z-index: 40; max-width: 300px; background: rgba(8, 26, 17, .96); color: var(--text); padding: 10px 12px; border-radius: 12px; font-size: .9rem; border: 1px solid var(--edge2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none; }
#tip b { display: block; margin-bottom: 2px; color: var(--accent); } #tip[hidden] { display: none; }
table.plain { width: 100%; border-collapse: collapse; font-size: .95rem; } table.plain th, table.plain td { text-align: left; padding: 8px; border-bottom: 1px solid var(--edge); }
table.plain th { color: var(--head); } table.plain td.num, table.plain th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.plain tr.hl th, table.plain tr.hl td { background: rgba(201, 226, 101, .12); font-weight: 700; }
.shotinfo { min-height: 3em; background: rgba(244, 239, 216, .07); border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.gl dt { font-weight: 700; color: var(--head); margin-top: 14px; } .gl dd { margin: 2px 0 0; }
ul.bars { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
ul.bars li { display: grid; grid-template-columns: 9.5em 1fr 3.5em; gap: 10px; align-items: center; font-size: .92rem; }
ul.bars i { display: block; height: 12px; border-radius: 6px; background: var(--accent); } ul.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.listen { display: inline-flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.voice-pick { max-width: 16em; } .voice-hint { font-size: .85rem; }

/* ----- summary: fixtures strip, scoreboard, possession, stats ----- */
.fixtures ul { display: flex; gap: 10px; list-style: none; padding: 0 0 8px; margin: 0 0 var(--gap); overflow-x: auto; scroll-snap-type: x proximity; }
.fx { display: flex; flex-direction: column; gap: 8px; min-width: 176px; padding: 11px 13px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--edge); color: var(--text); text-decoration: none; scroll-snap-align: start; transition: transform .15s, border-color .15s; }
.fx:hover { transform: translateY(-2px); border-color: var(--edge2); }
.fx.on { border-color: var(--accent); background: rgba(40, 70, 28, .82); box-shadow: 0 0 0 1px var(--accent), 0 10px 26px rgba(0, 0, 0, .4); }
.fx-stage { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.fx-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.2rem; color: var(--head); }
.fx-teams { font-size: .78rem; color: var(--muted); }
.scoreboard { padding: 22px 20px 26px; background: radial-gradient(120% 140% at 50% -20%, rgba(201, 226, 101, .13), transparent 55%), var(--glass); }
.board3 { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 5vw, 64px); flex-wrap: wrap; margin: 8px 0 6px; }
.board3 .side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 9rem; }
.tname { font-family: var(--display); font-size: 1.55rem; font-weight: 700; color: var(--head); }
.board3 .score { font-family: var(--display); font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; color: var(--head); letter-spacing: .02em; text-shadow: 0 4px 30px rgba(201, 226, 101, .25); }
.poss { display: flex; height: 32px; border-radius: 999px; overflow: hidden; margin: 8px 0; font-weight: 700; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.poss span { display: flex; align-items: center; padding: 0 14px; min-width: 56px; }
.poss .h { background: var(--home); } .poss .a { background: var(--away); justify-content: flex-end; }
.stats { width: 100%; border-collapse: collapse; }
.stats th, .stats td { padding: 9px 6px; border-bottom: 1px solid var(--edge); text-align: center; vertical-align: middle; }
.stats th[scope=row] { font-weight: 600; color: var(--head); width: 36%; } .stats td { width: 32%; }
.stats .val { font-weight: 700; font-size: 1.08rem; }
.stats .bar { height: 6px; border-radius: 3px; margin-top: 5px; background: rgba(244, 239, 216, .12); position: relative; }
.stats .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.stats td.h .bar i { right: 0; background: var(--home-ink); } .stats td.a .bar i { left: 0; background: var(--away-ink); }
.stats .sub { color: var(--muted); font-size: .85rem; } .stats thead th { font-size: .95rem; color: var(--head); }

/* ----- the stage: stadium frame, floodlit turf, overlay cards ----- */
.stage { position: relative; border-radius: 20px; overflow: hidden; padding: 52px 14px 14px; isolation: isolate; border: 1px solid var(--edge);
  background: radial-gradient(120% 70% at 50% 0%, #17402A 0%, #07170F 62%, #040C08 100%); box-shadow: 0 22px 60px rgba(0, 0, 0, .55); }
.crowd { position: absolute; left: 0; right: 0; top: 0; height: 40%; z-index: 0; opacity: .95; pointer-events: none;
  background: radial-gradient(circle at 25% 50%, rgba(255, 205, 140, .55) 0 1.1px, transparent 1.7px) 0 0 / 9px 8px, radial-gradient(circle at 70% 40%, rgba(160, 190, 255, .45) 0 1px, transparent 1.6px) 4px 3px / 11px 9px,
    radial-gradient(circle at 50% 60%, rgba(255, 120, 110, .4) 0 1px, transparent 1.5px) 2px 6px / 13px 10px, linear-gradient(#0b1812, #0e2a1a);
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.ads { position: absolute; left: 14px; right: 14px; top: 46px; height: 14px; z-index: 1; display: flex; gap: 3.2em; justify-content: center; overflow: hidden; border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #0B3D24, #12552F, #0B3D24); border-top: 1px solid rgba(201, 226, 101, .55); }
.ads span { font: 700 8px/14px var(--font); letter-spacing: .35em; color: rgba(244, 239, 216, .8); white-space: nowrap; }
.hud { position: absolute; left: 14px; right: 14px; top: 9px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hud .pill { max-width: calc(100% - 110px); } .hud .tilt { margin-left: auto; padding: 5px 13px; font-size: .85rem; background: rgba(6, 22, 14, .72); }
.hud .caption { min-height: 0; }
.hud .tilt[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.turf { position: relative; z-index: 2; margin-top: 14px; border-radius: 0 0 12px 12px; padding: 2.2% 2.6%; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  background: radial-gradient(90% 70% at 50% 35%, rgba(255, 255, 220, .24), transparent 62%), radial-gradient(140% 120% at 50% 50%, transparent 50%, rgba(0, 0, 0, .62) 100%), linear-gradient(#26823D, #1B6631);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .5); }
.turf::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .6  0 0 0 0 .4  0 0 0 1.4 -.45'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
.stage[data-tilt="on"] .turf { transform: perspective(1150px) rotateX(34deg) scale(.97); transform-origin: 50% 100%; margin-top: -21%; }
.board { position: relative; }
.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
svg.pitch { width: 100%; height: auto; display: block; overflow: visible; }
svg.pitch text { font-family: var(--font); }
svg.pitch g[tabindex]:focus-visible { outline: none; } svg.pitch g[tabindex]:focus-visible > :nth-child(2) { stroke: var(--accent); stroke-width: 1; }

/* ----- replay: transport bar, callout, move panels ----- */
.transport { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 18px; flex-wrap: wrap; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--edge); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 1.05rem; font-weight: 800; cursor: pointer; flex: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.round:hover { filter: brightness(1.08); }
.time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; min-width: 2.6em; }
.transport input[type=range] { flex: 1 1 160px; min-width: 120px; height: 8px; border-radius: 99px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 0%), rgba(244, 239, 216, .2) var(--fill, 0%)); }
.transport input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.transport input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.seg { display: inline-flex; background: rgba(244, 239, 216, .08); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: none; color: var(--text); padding: 5px 12px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.switches { margin: 14px 0 6px; }
.callout { position: absolute; width: 224px; transform: translate(18px, -118%); padding: 10px 12px; border-radius: 16px; font-size: .78rem; color: var(--text); pointer-events: none;
  background: rgba(8, 28, 18, .74); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); border: 1px solid var(--edge2); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); transition: left .06s linear, top .06s linear; }
.callout.flip { transform: translate(calc(-100% - 18px), -118%); } .callout.below { transform: translate(18px, 16%); } .callout.flip.below { transform: translate(calc(-100% - 18px), 16%); }
.callout dd { white-space: nowrap; }
.callout[hidden] { display: none; }
.callout header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .callout strong { color: var(--head); font-size: .92rem; line-height: 1.2; }
.callout .tok { width: 22px; height: 22px; font-size: .68rem; }
.callout dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; } .callout dt { color: var(--muted); } .callout dd { margin: 0; text-align: right; font-weight: 700; }
ol.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
ol.steps li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; color: var(--muted); }
ol.steps li .n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 239, 216, .14); color: var(--text); font-size: .78rem; font-weight: 800; }
ol.steps li.on { background: rgba(201, 226, 101, .14); color: var(--text); font-weight: 600; } ol.steps li.on .n { background: var(--accent); color: var(--on-accent); }
.squad { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; } .squad li { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; background: rgba(244, 239, 216, .08); border-radius: 999px; }
.panel h2 { margin-bottom: .4em; }

/* ----- pitch page: players panel ----- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; margin-bottom: var(--gap); }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.split > .panel { margin-bottom: 0; }
.plist { list-style: none; padding: 0; margin: 0; max-height: 540px; overflow: auto; display: grid; gap: 4px; }
.prow { width: 100%; display: grid; grid-template-columns: 26px 1fr auto 52px 26px; gap: 8px; align-items: center; text-align: left; background: rgba(244, 239, 216, .05); border: 1px solid transparent; border-radius: 12px; padding: 6px 8px; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.prow:hover, .prow:focus-visible { background: rgba(201, 226, 101, .13); border-color: rgba(201, 226, 101, .55); }
.pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: rgba(244, 239, 216, .14); }
.tbar { height: 6px; border-radius: 3px; background: rgba(244, 239, 216, .14); overflow: hidden; } .tbar i { display: block; height: 100%; background: var(--accent); }
.prow b { text-align: right; font-variant-numeric: tabular-nums; }

/* ----- moments list ----- */
.moments { display: grid; grid-template-columns: 290px 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr; }
  .moments .mlist { display: flex; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }   /* a swipeable strip, so the replay is not buried under ten rows */
  .moments .mlist li { flex: none; width: 190px; scroll-snap-align: start; }
}
@media (max-width: 600px) { .callout { display: none; } }   /* the caption already says what is happening; a card would cover a small pitch */
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mitem { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: var(--text); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.mitem:hover { border-color: var(--edge2); transform: translateX(2px); }
.mitem[aria-current="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); background: rgba(40, 70, 28, .82); }
.mclock { font-weight: 800; color: var(--head); font-variant-numeric: tabular-nums; min-width: 3.4em; }
.mbody { display: flex; flex-direction: column; font-size: .92rem; } .mbody strong { color: var(--head); }
.redcard { display: flex; align-items: center; gap: 14px; }
.card-icon { width: 34px; height: 46px; background: #E53935; border-radius: 5px; display: inline-block; flex: none; box-shadow: 0 4px 14px rgba(229, 57, 53, .4); }
.replay { margin-bottom: var(--gap); }
.caption { font-weight: 600; margin: 0; }

/* ----- landing page ----- */
body.is-landing .top, body.is-landing .foot, body.is-landing .skip { display: none; }
body.is-landing main { max-width: none; padding: 0; animation: none; }
.lp { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; color: var(--cream);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 0 2vw; padding: clamp(16px, 2.6vw, 40px) clamp(18px, 4vw, 56px); isolation: isolate; }
.lp-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 30, 16, .92) 0%, rgba(6, 30, 16, .72) 34%, rgba(6, 30, 16, .1) 62%, rgba(6, 30, 16, 0) 100%), radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .5), transparent 60%); }
.lp-copy { grid-column: 1; grid-row: 1; align-self: center; max-width: 42rem; padding: 2vh 0; }
.lp-eyebrow { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin: 0 0 1rem; }
.lp h1 { color: var(--cream); font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: .98; margin: 0 0 1.1rem; font-weight: 800; letter-spacing: -.025em; text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.lp h1 em { color: var(--lime); font-style: italic; }
.lp h1:focus { outline: none; }
.lp-sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.5; max-width: 30rem; color: #E9EBD9; margin: 0 0 1.8rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 1.6rem; }
.lp-btn { display: inline-flex; gap: 10px; align-items: center; background: var(--cream); color: var(--lawn); font-weight: 800; font-size: 1.1rem; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .18s ease, background .18s ease; }
.lp-btn:hover { background: var(--lime); transform: translateY(-2px); }
.lp-link { color: var(--cream); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lp-link:hover { color: var(--lime); }
.lp :focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lp-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.lp-feats li { font-size: .88rem; padding: 6px 12px; border: 1px solid rgba(244, 239, 216, .45); border-radius: 999px; background: rgba(6, 30, 16, .78); color: var(--cream); }
.lp-trailwrap { grid-column: 2; grid-row: 1; align-self: end; position: relative; margin-bottom: 1vh; display: flex; flex-direction: column; align-items: flex-end; }
svg.trail { width: 100%; height: auto; max-height: 62vh; display: block; overflow: visible; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.lp-caption { margin: .5rem 0 0; font-size: .85rem; color: var(--cream); background: rgba(6, 30, 16, .78); padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(244, 239, 216, .35); }
svg.trail path.line, svg.trail path.glow { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 3.4s cubic-bezier(.3, .6, .2, 1) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
svg.trail .ball { opacity: 0; animation: pop .5s ease-out var(--d, 0s) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
svg.trail .runner { animation: bob 1.6s ease-in-out infinite alternate; }
svg.trail .runner:nth-of-type(2n) { animation-delay: -.5s; }
@keyframes bob { from { translate: 0 -.5px; } to { translate: 0 .5px; } }
.lp-copy > * { animation: lift .8s cubic-bezier(.2, .7, .2, 1) both; }
.lp-copy > *:nth-child(2) { animation-delay: .08s; } .lp-copy > *:nth-child(3) { animation-delay: .16s; } .lp-copy > *:nth-child(4) { animation-delay: .24s; } .lp-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes lift { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.lp-matches { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 1.2rem; }
.lp-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-right: 6px; }
.lp-chip { color: var(--cream); text-decoration: none; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(6, 30, 16, .78); border: 1px solid rgba(244, 239, 216, .5); transition: background .15s, color .15s, transform .15s; }
.lp-chip:hover { background: var(--cream); color: var(--lawn); transform: translateY(-1px); }
.lp-credit { grid-column: 1 / -1; grid-row: 3; font-size: .78rem; color: #D5DCC7; margin: 1rem 0 0; }
.lp-credit a { color: var(--cream); }
@media (max-width: 860px) {
  .lp { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding-top: 28px; }
  .lp-copy { grid-row: 1; max-width: none; padding: 0; }
  .lp-trailwrap { grid-column: 1; grid-row: 2; margin-top: 1.4rem; }
  .lp-matches { grid-row: 3; } .lp-credit { grid-row: 4; }
  .lp-scrim { background: linear-gradient(180deg, rgba(6, 30, 16, .9) 0%, rgba(6, 30, 16, .6) 45%, rgba(6, 30, 16, .25) 100%); }
  .lp-caption { text-align: left; }
  .callout { width: 160px; font-size: .7rem; }
}
body.still *, body.still *::before, body.still *::after { animation: none !important; transition: none !important; }
body.still main { opacity: 1; transform: none; }
/* final-state view: reduced motion, or #home?still for screenshots */
.lp-still svg.trail .runner, .lp-still .lp-copy > * { animation: none !important; }
.lp-still svg.trail path.line, .lp-still svg.trail path.glow { animation: none !important; stroke-dashoffset: 0; }
.lp-still svg.trail .ball { animation: none !important; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  svg.trail path.line, svg.trail path.glow { stroke-dashoffset: 0; }
  svg.trail .ball { opacity: 1; }
  .stage[data-tilt="on"] .turf { transition: none; }
}
