/* Focus League teaser. Static, no dependencies, no tracking. */

@font-face { font-family: 'Space Grotesk'; src: url('assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('assets/fonts/JetBrainsMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --orange: #fc5d10;
  --orange-deep: #c94504;
  --ink: #000;
  --panel: #101010;
  --panel-2: #181818;
  --line: #2a2a2a;
  --text: #fff;
  --mute: #a8a8a8;
  --grass-a: #1c6b34;
  --grass-b: #186030;
  --gold: #f4c542;
  --silver: #c7ced6;
  --bronze: #cd8a4f;
  --gutter: clamp(16px, 5vw, 72px);
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--text); background: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { top: 16px; }

h2 { font: 700 clamp(2.3rem, 6.2vw, 5.4rem)/1 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: #d6d6d6; max-width: 34em; }
.fine { font-size: .82rem; color: var(--mute); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 .82rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.eyebrow i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--orange); border-radius: 50%; font-size: .68rem; letter-spacing: 0; }

/* Split headings */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.word > span { display: inline-block; }
.js [data-split]:not(.in) .word > span { transform: translateY(110%) rotate(6deg); }
.js [data-split] .word > span { transition: transform .9s var(--out); transition-delay: calc(var(--i) * 55ms); transform-origin: left bottom; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s var(--out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Intro ─────────────────────────────── */
.intro { display: none; }
.js .intro { display: grid; position: fixed; inset: 0; z-index: 60; place-items: center; background: #000; pointer-events: none; }
.intro-ring { grid-area: 1/1; width: min(46vmin, 300px); }
.intro-track, .intro-arc { fill: none; stroke-width: 3; }
.intro-track { stroke: #222; }
.intro-arc { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-dot { grid-area: 1/1; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.intro-time { grid-area: 1/1; margin-top: 76px; font: 700 .95rem var(--mono); color: var(--mute); letter-spacing: .08em; }
.intro.done { display: none; }

/* ── Cursor ────────────────────────────── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 50; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #fff; border-radius: 50%; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: width .25s var(--out), height .25s var(--out), margin .25s var(--out), opacity .3s; }
  .cursor.on { opacity: 1; }
  .cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
}

/* ── HUD ───────────────────────────────── */
.hud { display: none; }
.js .hud { display: flex; position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: rgba(16, 16, 16, .86); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 99px; font: 700 .82rem var(--mono); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--spring); }
.hud.on { opacity: 1; transform: none; }
.hud-ring { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); position: relative; }
.hud-ring i { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: ping 2s infinite; }
.hud-sep { width: 1px; height: 14px; background: var(--line); }
.hud-coins { display: inline-flex; align-items: center; gap: 6px; }
.hud-coins b { display: inline-block; }
.hud-coins b.bump { animation: bump .5s var(--spring); }
.coin-glyph { display: inline-block; width: .95em; height: .95em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a8, #fc9a2a 45%, var(--orange) 75%); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25); vertical-align: -.1em; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.5); color: var(--orange); } }

.toast { position: fixed; left: 50%; bottom: 72px; z-index: 45; max-width: calc(100vw - 32px); padding: 12px 20px; background: #fff; color: #000; font-weight: 700; font-size: .95rem; border-radius: 12px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .5s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Hero ──────────────────────────────── */
.hero { position: relative; }
.js .hero { height: 260vh; height: 260svh; }
.hero-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 30px); min-height: 100svh; padding: 72px var(--gutter); overflow: hidden; background: #000; }
.js .hero-stage { position: sticky; top: 0; height: 100svh; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; left: 50%; top: 50%; width: 110vmax; height: 110vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(252, 93, 16, .17), transparent 55%); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.14); opacity: .7; } }
.hero-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid #3a3a3a; border-radius: 99px; font: 700 .76rem var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .55); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.logo-wrap { position: relative; width: min(74vw, 62vh, 760px); }
.logo { display: block; width: 100%; height: auto; overflow: visible; }
.lt { transform-box: fill-box; transform-origin: center; }
.logo-eye { transition: none; }
.hero-tag { position: relative; font: 700 clamp(1.1rem, 2.7vw, 2rem)/1.15 var(--display); letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.hero-cue { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.hero-cue i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); animation: dribble 1.2s cubic-bezier(.5, .05, .5, 1) infinite alternate; }
@keyframes dribble { to { transform: translateY(14px) scale(1.1, .85); } }
.hero-flood { position: absolute; inset: 0; background: var(--orange); opacity: 0; pointer-events: none; }
.js [data-hero-text] { opacity: 0; }
.js.intro-done [data-hero-text] { opacity: var(--t, 1); }

/* ── Manifest ──────────────────────────── */
.manifest { background: var(--orange); color: #000; }
.js .manifest { height: 230vh; }
.manifest-stage { display: grid; place-items: center; min-height: 100svh; padding: 60px var(--gutter); }
.js .manifest-stage { position: sticky; top: 0; height: 100svh; }
.manifest-text { max-width: 19em; font: 700 clamp(2.1rem, 6.6vw, 6rem)/1.02 var(--display); letter-spacing: -.035em; }
.mw { display: inline-block; opacity: .16; transition: opacity .25s, transform .4s var(--out); transform: translateY(.12em); }
.mw.on { opacity: 1; transform: none; }

/* ── Marquee ───────────────────────────── */
.marquee { overflow: hidden; padding: clamp(18px, 3vw, 34px) 0; background: #000; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: clamp(20px, 3vw, 44px); font: 700 clamp(2.6rem, 8vw, 7rem)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; will-change: transform; }
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.marquee-track b { flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--orange); }

/* ── Page wire ─────────────────────────── */
.wire-layer { position: relative; }
#wire-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
#wire-path, #wire-ghost { fill: none; stroke-width: 3; stroke-linecap: round; }
#wire-ghost { stroke: #1d1d1d; }
#wire-path { stroke: var(--orange); }
#wire-head { fill: var(--orange); filter: drop-shadow(0 0 10px var(--orange)); }
.wire-layer > section { position: relative; z-index: 1; }

/* ── Scenes ────────────────────────────── */
.scene-stage { min-height: 100svh; padding: clamp(56px, 8vh, 96px) var(--gutter); }
.js .scene-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.section { padding: clamp(80px, 12vh, 160px) var(--gutter); }

/* Focus */
.js .scene-focus { height: 340vh; }
.scene-focus .scene-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 18px clamp(24px, 5vw, 80px); align-items: center; }
.focus-copy { grid-row: 1 / 3; }
.steps { display: grid; margin-top: 28px; }
.step { padding-left: 18px; border-left: 3px solid var(--orange); }
.step h3 { font: 700 1.3rem var(--display); margin-bottom: 6px; }
.step p { color: #d6d6d6; max-width: 30em; }
.js .step { grid-area: 1 / 1; opacity: 0; transform: translateX(-20px); transition: opacity .35s, transform .55s var(--out); pointer-events: none; }
.js .step.on { opacity: 1; transform: none; }
html:not(.js) .step + .step { margin-top: 20px; }

.clock { position: relative; justify-self: center; width: min(100%, 62vh, 520px); aspect-ratio: 1; }
.clock-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.clock-track, .clock-arc { fill: none; stroke-width: 16; }
.clock-track { stroke: #1b1b1b; }
.clock-arc { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 14px rgba(252, 93, 16, .55)); }
.clock-ticks { transform-origin: 200px 200px; }
.clock-ticks line { stroke: #3b3b3b; stroke-width: 2; }
.clock-ticks line.major { stroke: #8a8a8a; stroke-width: 3; }
.clock-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.clock-label { font: 700 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.clock-time { font: 700 clamp(3rem, 9.6vmin, 6.2rem)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock-coins { display: inline-flex; align-items: center; gap: 8px; font: 700 clamp(1rem, 2.4vmin, 1.3rem) var(--mono); color: var(--orange); }
.clock-coins b { font-variant-numeric: tabular-nums; }
.clock-stamp { position: absolute; left: 50%; top: 73%; padding: 6px 14px; background: var(--orange); color: #000; font: 700 .85rem var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; transform: translate(-50%, 0) rotate(-8deg) scale(0); transition: transform .5s var(--spring); }
.clock.done .clock-stamp { transform: translate(-50%, 0) rotate(-8deg) scale(1); }
.clock.drink .clock-arc { stroke: #ffd24a; filter: drop-shadow(0 0 20px rgba(255, 210, 74, .7)); }
.clock-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.seg { display: inline-flex; padding: 4px; background: var(--panel-2); border-radius: 12px; }
.seg-btn { min-height: 44px; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--mute); transition: background .25s, color .25s, transform .3s var(--spring); }
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed="true"] { background: var(--orange); color: #000; }
.drink { min-height: 44px; padding: 8px 18px; border-radius: 12px; background: rgba(252, 93, 16, .14); color: #ffb48a; font-weight: 700; font-size: .92rem; transition: background .25s, color .25s, transform .3s var(--spring); }
.drink:hover { transform: translateY(-2px); }
.drink[aria-pressed="true"] { background: #ffd24a; color: #000; }
.drink[aria-pressed="true"] .bolt { display: inline-block; animation: bump .6s var(--spring) infinite alternate; }
.coin-fly { position: fixed; z-index: 30; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; }

/* Market */
.js .scene-market { height: 340vh; }
.market-stage { display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 28px); padding-bottom: 28px; }
.market-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: end; }
.market-head .eyebrow { grid-column: 1 / -1; margin-bottom: 6px; }
.market-head h2 { font-size: clamp(2rem, 5vw, 4.4rem); }
.stats { display: flex; gap: clamp(18px, 3vw, 44px); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font: 700 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.stats dd { font: 700 clamp(1.6rem, 3.6vw, 3rem)/1.05 var(--mono); color: var(--orange); font-variant-numeric: tabular-nums; }
.cards-viewport { flex: 1; min-height: 0; margin: 0 calc(var(--gutter) * -1); perspective: 1400px; overflow: hidden; }
.cards { display: flex; height: 100%; align-items: center; gap: clamp(14px, 2vw, 28px); width: max-content; padding: 10px var(--gutter); will-change: transform; transform-style: preserve-3d; }
.card { flex: none; width: clamp(214px, 21vw, 290px); aspect-ratio: 3 / 4; max-height: 100%; perspective: 1000px; }
.card-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; text-align: left; transform-style: preserve-3d; transition: transform .75s var(--out); border-radius: 18px; }
.card.flip .card-btn { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); backface-visibility: hidden; overflow: hidden; }
.card-front::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(252, 93, 16, .28), transparent 62%); }
.card.top .card-face { border-color: var(--gold); }
.card-back { transform: rotateY(180deg); justify-content: center; gap: 9px; }
.card-rating { position: relative; font: 700 clamp(3.2rem, 5.6vw, 4.8rem)/.9 var(--display); letter-spacing: -.04em; }
.card-pos { position: relative; align-self: flex-start; margin-top: 8px; padding: 3px 9px; font: 700 .74rem var(--mono); color: #000; background: var(--orange); border-radius: 5px; }
.card-tier { position: absolute; right: 16px; top: 18px; font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.card.top .card-tier { color: var(--gold); }
.card-silhouette { position: absolute; right: -14%; bottom: 17%; width: 76%; fill: rgba(255, 255, 255, .07); }
.card-name { position: relative; margin-top: auto; font: 700 1.2rem/1.1 var(--display); letter-spacing: -.02em; }
.card-price { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 700 .92rem var(--mono); color: var(--orange); }
.attr { display: grid; grid-template-columns: 1fr 26px; gap: 2px 6px; font-size: .78rem; color: #d6d6d6; }
.attr b { font: 700 .8rem var(--mono); text-align: right; color: #fff; }
.attr i { grid-column: 1 / -1; display: block; height: 5px; background: #2a2a2a; border-radius: 3px; overflow: hidden; }
.attr i::after { content: ''; display: block; height: 100%; width: var(--v); background: var(--orange); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--out) .25s; }
.card.flip .attr i::after { transform: none; }
.market-fine { flex: none; padding-right: 150px; }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.team-copy .lead { margin-top: 18px; }
.team-copy h2 { font-size: clamp(2.1rem, 4.8vw, 4.2rem); }
.ctl-title { display: flex; gap: 8px; margin: 26px 0 10px; font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.ctl-title output { color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-weight: 700; font-size: .86rem; color: #d6d6d6; transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring); }
.chip:hover { border-color: var(--orange); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #000; }
.chip.mono { font-family: var(--mono); }
.tactic-note { min-height: 3em; margin-top: 10px; font-size: .95rem; color: #d6d6d6; }
.lines { display: grid; gap: 10px; margin: 8px 0 10px; }
.line-row { display: grid; grid-template-columns: 96px 1fr 36px; gap: 12px; align-items: center; font-size: .9rem; }
.line-row b { font: 700 1.05rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.line-bar { height: 10px; background: #1d1d1d; border-radius: 5px; overflow: hidden; }
.line-bar i { display: block; height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, var(--orange-deep), var(--orange)); border-radius: 5px; transition: width .9s var(--spring); }

.pitch-wrap { perspective: 1400px; }
.pitch { position: relative; width: min(100%, 76vh, 480px); margin-inline: auto; aspect-ratio: 100 / 136; background: repeating-linear-gradient(0deg, var(--grass-a) 0 12.5%, var(--grass-b) 12.5% 25%); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(40, 200, 90, .35); transform: rotateX(var(--tilt, 0deg)); transform-origin: 50% 80%; transition: transform .2s linear; }
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .5; }
.pitch-sweep { position: absolute; inset: -30% 0; background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, .1) 50%, transparent 60%); animation: sweep 5.5s linear infinite; pointer-events: none; }
@keyframes sweep { from { transform: translateY(-60%); } to { transform: translateY(60%); } }
.players { position: absolute; inset: 0; transition: transform .9s var(--spring); }
.player { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%, -50%); transition: left .85s var(--spring), top .85s var(--spring); transition-delay: var(--d, 0ms); }
.player i { display: block; width: clamp(28px, 8.2vw, 42px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); border: 3px solid var(--orange); }
.player.gk i { border-color: var(--gold); }
.player span { font: 700 clamp(.58rem, 1.6vw, .7rem) var(--mono); background: rgba(0, 0, 0, .72); padding: 1px 5px; border-radius: 4px; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 7vh, 80px); }
.rules li { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.rules b { display: block; font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--display); color: var(--orange); margin-bottom: 8px; letter-spacing: -.03em; }
.rules span { color: #d6d6d6; font-size: .96rem; }

/* League */
.js .scene-league { height: 440vh; }
.league-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; gap: 16px clamp(24px, 5vw, 72px); align-items: center; }
.league-head { align-self: end; }
.league-head h2 { font-size: clamp(2.2rem, 5.6vw, 5rem); }
.league-lead { margin-top: 14px; }
.ladder { display: flex; flex-direction: column-reverse; gap: 8px; align-self: start; }
.rung { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font: 700 clamp(.9rem, 1.5vw, 1.1rem) var(--display); color: #777; transition: color .35s, background .35s, border-color .35s, transform .5s var(--spring); }
.rung::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #333; transition: background .3s, box-shadow .3s; }
.rung.past { color: #d6d6d6; }
.rung.past::before { background: var(--orange); }
.rung.now { background: var(--orange); border-color: var(--orange); color: #000; transform: scale(1.03); }
.rung.now::before { background: #000; box-shadow: 0 0 0 4px rgba(0, 0, 0, .25); }
.table-card { position: relative; grid-column: 2; grid-row: 1 / 3; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.table-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.table-top b { font: 700 1.3rem var(--display); }
.table-top span { font: 700 .78rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.table { position: relative; height: calc(8 * var(--row)); --row: clamp(38px, 6.2vh, 54px); }
.row { position: absolute; left: 0; right: 0; height: var(--row); display: grid; grid-template-columns: 30px 1fr 42px; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; font-size: .96rem; transform: translateY(calc(var(--rank) * var(--row))); transition: transform .7s var(--spring), background .3s; }
.row em { font: 700 .86rem var(--mono); font-style: normal; color: var(--mute); }
.row b { font: 700 .92rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.row.me { background: var(--orange); color: #000; font-weight: 700; z-index: 2; box-shadow: 0 8px 30px rgba(252, 93, 16, .4); }
.row.me em { color: #000; }
.row:not(.me).top1 em { color: var(--gold); }
.row:not(.me).top2 em { color: var(--silver); }
.table-flag { position: absolute; inset: auto 18px 18px auto; padding: 6px 12px; background: #fff; color: #000; font: 700 .8rem var(--mono); text-transform: uppercase; border-radius: 6px; z-index: 3; transform: rotate(-6deg) scale(0); transition: transform .45s var(--spring); }
.table-flag.on { transform: rotate(-6deg) scale(1); }
.table-card.champ { border-color: var(--gold); box-shadow: 0 0 60px rgba(244, 197, 66, .3); }

/* Match report */
.section-match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.match-copy h2 { font-size: clamp(2.1rem, 4.8vw, 4.2rem); }
.match-copy .lead { margin-top: 18px; }
.report { padding: clamp(20px, 3vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.report-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1rem); }
.report-score span:first-child { text-align: left; color: var(--orange); }
.report-score span:last-child { text-align: right; }
#report-score { font: 700 clamp(2.2rem, 5vw, 3.8rem)/1 var(--mono); white-space: nowrap; }
#report-score.pop { animation: bump .7s var(--spring); }
.rail { position: relative; height: 4px; margin: 56px 6px 40px; background: #2a2a2a; border-radius: 2px; }
.rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--orange); border-radius: 2px; }
.rail-ball { position: absolute; left: var(--p, 0%); top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--orange); }
.rail-ball output { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font: 700 .78rem var(--mono); color: #fff; white-space: nowrap; }
.rail-ev { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #000; border: 3px solid var(--orange); transform: scale(0); transition: transform .45s var(--spring); }
.rail-ev.on { transform: scale(1); }
.rail-ev.card { background: var(--gold); border: 0; border-radius: 2px; width: 10px; height: 14px; margin-left: -5px; }
.rail-ev.save { border-color: #fff; }
.report-line { min-height: 3.1em; font-size: 1rem; color: #e4e4e4; }
.report-line b { color: var(--orange); font-family: var(--mono); margin-right: 6px; }

/* Bento */
.bento-head { margin-bottom: clamp(26px, 5vh, 56px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .5s var(--out), border-color .3s; }
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, -50%) var(--my, -50%), rgba(252, 93, 16, .18), transparent 65%); pointer-events: none; }
.tile:hover { border-color: #4a4a4a; transform: translateY(-5px); }
.tile h3 { margin-top: auto; font: 700 1.25rem var(--display); letter-spacing: -.01em; }
.tile p { margin-top: 6px; font-size: .92rem; color: #cfcfcf; }
.tile-wide, .tile-offline, .tile-lang { grid-column: span 2; }
.tile-art { position: relative; height: 150px; margin-bottom: 16px; }
.js .tile { opacity: 0; transform: translateY(40px) scale(.96); }
.js .tile.in { opacity: 1; transform: none; transition: opacity .6s, transform .8s var(--out), border-color .3s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.js .tile.in:hover { transform: translateY(-5px); transition-delay: 0ms; }

/* art: blocking */
.block-art { display: grid; place-items: center; }
.shield { position: relative; z-index: 2; width: 84px; height: 84px; }
.shield svg { width: 100%; height: 100%; fill: var(--orange); filter: drop-shadow(0 0 22px rgba(252, 93, 16, .6)); }
.shield .check { fill: none; stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.app { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px; background: #3b3b3b; animation: bounceoff 3.2s var(--out) infinite; animation-delay: var(--dl); --fx: var(--sx); }
.a1 { --sx: -260px; --sy: -40px; --ox: -120px; --oy: -70px; --dl: 0s; background: #5f6cff; }
.a2 { --sx: 260px; --sy: -60px; --ox: 130px; --oy: -80px; --dl: .55s; background: #e04ca7; }
.a3 { --sx: -280px; --sy: 40px; --ox: -150px; --oy: 75px; --dl: 1.1s; background: #2fb97a; }
.a4 { --sx: 280px; --sy: 50px; --ox: 160px; --oy: 70px; --dl: 1.6s; background: #e8b52a; }
.a5 { --sx: -180px; --sy: -90px; --ox: -210px; --oy: -30px; --dl: 2.1s; background: #39a8e0; }
.a6 { --sx: 200px; --sy: 90px; --ox: 220px; --oy: 10px; --dl: 2.6s; background: #d65555; }
@keyframes bounceoff {
  0% { transform: translate(var(--sx), var(--sy)) rotate(0); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translate(calc(var(--sx) * .17), calc(var(--sy) * .17)) rotate(40deg) scale(1); }
  50% { transform: translate(calc(var(--sx) * .17), calc(var(--sy) * .17)) rotate(40deg) scale(.7, 1.2); }
  85% { opacity: 1; }
  100% { transform: translate(var(--ox), var(--oy)) rotate(-120deg) scale(.6); opacity: 0; }
}
/* art: movement */
.move-art { display: grid; place-items: center; }
.move-art svg { position: absolute; height: 100%; }
.mv-track, .mv-arc { fill: none; stroke-width: 9; }
.mv-track { stroke: #242424; }
.mv-arc { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mv-num { display: flex; flex-direction: column; align-items: center; }
.mv-num b { font: 700 1.25rem var(--mono); font-variant-numeric: tabular-nums; }
.mv-num span { font-size: .7rem; color: var(--mute); }
/* art: drink */
.drink-art { display: grid; place-items: center; }
.can { font-size: 74px; line-height: 1; animation: zap 1.6s var(--spring) infinite alternate; filter: drop-shadow(0 0 22px rgba(255, 210, 74, .7)); }
@keyframes zap { from { transform: rotate(-8deg) scale(.92); } to { transform: rotate(6deg) scale(1.1); } }
.x2 { position: absolute; right: 10%; top: 8%; font: 700 2.1rem var(--display); color: #ffd24a; animation: bump 1.6s infinite; }
/* art: kits */
.kits-art { display: flex; align-items: center; justify-content: center; gap: 4px; }
.kit { width: 44%; max-height: 100%; fill: var(--orange); animation: sway 3s ease-in-out infinite alternate; transform-origin: 50% 12%; }
.kit-b { fill: #fff; animation-delay: -1.5s; }
.kit-b .stripe { fill: var(--orange); }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
/* art: friends */
.friends-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fr-link { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 1; animation: linkdraw 4s var(--out) infinite alternate; vector-effect: non-scaling-stroke; }
@keyframes linkdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fr { position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: #fff; color: #000; font: 700 1.1rem var(--display); animation: floaty 3s ease-in-out infinite alternate; }
.f1 { left: 13%; top: 50%; } .f2 { left: 32%; top: 24%; animation-delay: -.6s; background: var(--orange); }
.f3 { left: 50%; top: 50%; animation-delay: -1.2s; } .f4 { left: 69%; top: 24%; animation-delay: -1.8s; background: var(--orange); } .f5 { left: 87%; top: 50%; animation-delay: -2.4s; }
@keyframes floaty { to { transform: translateY(-14px); } }
/* art: timer style */
.style-art { display: grid; place-items: center; }
.style-ring { display: grid; place-items: center; width: 126px; height: 126px; border-radius: 50%; border: 9px solid var(--orange); font: 700 1.3rem var(--mono); animation: stylecycle 8s linear infinite; }
@keyframes stylecycle {
  0%, 20% { border-color: var(--orange); border-width: 9px; color: #fff; }
  25%, 45% { border-color: #38bdf8; border-width: 3px; color: #bae6fd; }
  50%, 70% { border-color: #f472b6; border-width: 14px; color: #fbcfe8; }
  75%, 95% { border-color: #a3e635; border-width: 5px; color: #d9f99d; }
  100% { border-color: var(--orange); border-width: 9px; }
}
/* art: offline */
.offline-art { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding-bottom: 22px; }
.offline-art i { width: 16px; background: #2d2d2d; border-radius: 4px; }
.offline-art i:nth-child(1) { height: 26px; } .offline-art i:nth-child(2) { height: 50px; } .offline-art i:nth-child(3) { height: 74px; } .offline-art i:nth-child(4) { height: 98px; }
.offline-art b { position: absolute; left: 50%; bottom: 62px; width: 124px; height: 5px; margin-left: -62px; background: var(--orange); border-radius: 3px; transform: rotate(-38deg); animation: slash 2.6s var(--out) infinite alternate; transform-origin: center; }
@keyframes slash { from { clip-path: inset(0 100% 0 0); } 45%, to { clip-path: inset(0); } }
/* art: languages */
.lang-art { display: flex; align-items: center; overflow: hidden; }
.lang-roll { height: 2.6rem; overflow: hidden; font: 700 clamp(1.3rem, 2vw, 1.7rem)/2.6rem var(--display); color: var(--orange); }
.lang-roll span { display: block; animation: roll 7.5s var(--out) infinite; white-space: nowrap; }
@keyframes roll { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-100%); } 66%, 94% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }

/* Finale */
.finale { position: relative; z-index: 2; display: grid; place-items: center; min-height: 100svh; padding: 80px var(--gutter) 90px; text-align: center; background: radial-gradient(circle at 50% 42%, #1f0b02, #000 60%); }
.finale-stage { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.finale-mark { width: min(46vw, 28vh, 260px); }
.gmark { display: block; width: 100%; overflow: visible; }
.finale-mark.blink .gmark { animation: nod .32s; }
@keyframes nod { 50% { transform: scaleY(.9); } }
.finale-title { font-size: clamp(2.6rem, 8vw, 7rem); }
.finale-score { color: #d6d6d6; font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 32em; font-variant-numeric: tabular-nums; }
.finale-score b { color: var(--orange); }
.finale-actions { display: flex; gap: 10px; }
.platform { padding: 8px 18px; border: 1px solid #4a4a4a; border-radius: 99px; font: 700 .85rem var(--mono); }
.back { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; background: var(--orange); color: #000; font-weight: 700; border-radius: 12px; text-decoration: none; transition: transform .35s var(--spring), background .2s; }
.back:hover { background: #fff; transform: translateY(-3px) scale(1.03); }
.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 22px var(--gutter) 84px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mute); background: #000; }
.foot a { color: #fff; }

/* ── Responsive ────────────────────────── */
@media (max-width: 960px) {
  .scene-focus .scene-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: 12px; padding-block: 28px 74px; }
  .focus-copy { grid-row: auto; }
  .focus-copy h2 { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .focus-copy .eyebrow { margin-bottom: 8px; }
  .steps { margin-top: 12px; }
  .step h3 { font-size: 1.08rem; margin-bottom: 2px; }
  .step p { font-size: .9rem; line-height: 1.4; }
  .clock { width: min(68vw, 34svh); }
  .clock-stamp { top: 70%; font-size: .72rem; }
  .seg-btn { padding: 6px 12px; }
  .market-head { grid-template-columns: minmax(0, 1fr); }
  .market-stage { padding-block: 32px 74px; }
  .market-fine { padding-right: 0; }
  .card { width: min(66vw, 42svh * .75, 260px); }
  /* The pitch goes above its controls, so a choice is seen as it is made. */
  .team-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .team-copy { display: contents; }
  .team-copy > * { order: 3; }
  .team-copy > .eyebrow, .team-copy > h2, .team-copy > .lead { order: 1; }
  .pitch-wrap { order: 2; margin-top: 24px; }
  .pitch { width: min(100%, 460px); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .league-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; gap: 12px; padding-block: 28px 74px; }
  .league-head h2 { font-size: clamp(1.9rem, 8.4vw, 3rem); }
  .league-head .eyebrow { margin-bottom: 8px; }
  .league-lead { font-size: .92rem; margin-top: 8px; }
  .ladder { flex-direction: row; gap: 4px; }
  .rung { flex: 1; min-width: 0; justify-content: center; padding: 8px 2px; font-size: .68rem; white-space: nowrap; }
  .rung::before { display: none; }
  .table-card { grid-column: 1; grid-row: auto; padding: 12px; }
  .table { --row: clamp(29px, 4.5svh, 42px); }
  .row { font-size: .84rem; padding: 0 8px; }
  .table-top { margin-bottom: 4px; }
  .section-match { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .tile-offline, .tile-lang { grid-column: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-wide, .tile-offline, .tile-lang { grid-column: auto; }
  .logo-wrap { width: min(84vw, 56vh); }
  .line-row { grid-template-columns: 88px 1fr 30px; }
  .stats dd { font-size: 1.5rem; }
  .market-head h2 { font-size: clamp(1.8rem, 7.8vw, 2.6rem); }
  .a1, .a3, .a5 { --sx: -190px; --ox: -110px; }
  .a2, .a4, .a6 { --sx: 190px; --ox: 120px; }
}

/* Small phones: the pinned scenes must still fit one screen. */
@media (max-width: 960px) and (max-height: 660px) {
  .scene-focus .eyebrow, .league-head .eyebrow, .league-lead { display: none; }
  .scene-focus .scene-stage, .league-stage { align-content: start; padding-block: 16px 64px; gap: 8px; }
  .focus-copy h2, .league-head h2 { font-size: 1.6rem; }
  .steps { margin-top: 6px; }
  .step p { font-size: .8rem; line-height: 1.32; }
  .clock { width: min(52vw, 28svh); }
  .clock-time { font-size: 2.1rem; }
  .clock-label { font-size: .62rem; }
  .clock-coins { font-size: .78rem; }
  .clock-controls { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .seg-btn, .drink { min-height: 36px; padding: 4px 9px; font-size: .78rem; }
  .table { --row: 31px; }
  .table-card { padding: 10px; }
}

/* ── Reduced motion: everything lands, nothing travels ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
.rm .hero, .rm .manifest, .rm .scene-focus, .rm .scene-market, .rm .scene-league { height: auto; }
.rm .hero-stage, .rm .manifest-stage, .rm .scene-stage { position: relative; height: auto; overflow: visible; }
.rm .mw { opacity: 1; transform: none; }
.rm .step { grid-area: auto; opacity: 1; transform: none; margin-bottom: 16px; }
.rm .cards-viewport { overflow-x: auto; }
.rm .intro, .rm .cursor { display: none; }
.rm .tile, .rm .reveal { opacity: 1; transform: none; }
.rm #wire-svg { display: none; }
.rm .app, .rm .hero-cue { display: none; }

/* Native swipe instead of scroll-jacking on touch-only narrow screens */
.touch-cards .scene-market { height: auto; }
.touch-cards .market-stage { position: relative; height: auto; min-height: 0; overflow: visible; }
.touch-cards .cards-viewport { flex: none; height: min(62svh, 420px); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.touch-cards .card { scroll-snap-align: center; }
