/* Pookie's Leaderboard. The palette is Gamba's own; fonts are served from this site. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap; src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/geist.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/geist-mono.woff2') format('woff2'); }

:root {
  --bg: #10131c;
  --bg-deep: #0c0f16;
  --panel: #161a25;
  --panel-2: #1c212e;
  --panel-3: #252b3a;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f6fa;
  --soft: #b4bccb;
  --muted: #7d8699;
  --green: #2ef396;
  --green-hi: #55f7ab;
  --green-ink: #06130c;
  --acc: 46 243 150; /* the accent as r g b, for see-through tints */
  --glass: rgba(16, 19, 28, .86);
  --glass-2: rgba(22, 26, 37, .88);
  --race-a: #1a1f2c;
  --race-b: #141822;
  --card-back: #141924; /* the intro cards: back, face tint, corner marks, big letter */
  --card-face: #e3e8e0;
  --card-ink: #0d9a5c;
  --card-letter: #10131c;
  --gold: #f5c84c;
  --silver: #c3cde0;
  --bronze: #d98a55;
  --red: #ff4658;
  --kick: #53fc18;
  --discord: #5865f2;
  --r: 16px;
  --max: 1120px;
  --pad: clamp(18px, 4vw, 40px);
  --nav: 68px;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-site='cs'] {
  --bg: #1b1b1b;
  --bg-deep: #151515;
  --panel: #212121;
  --panel-2: #2a2a2a;
  --panel-3: #3b3b3b;
  --soft: #c2c2c2;
  --muted: #8a8a8a;
  --green: #ffa142;
  --green-hi: #ffb469;
  --green-ink: #1b1b1b;
  --acc: 255 161 66;
  --glass: rgba(27, 27, 27, .86);
  --glass-2: rgba(33, 33, 33, .9);
  --race-a: #262626;
  --race-b: #1d1d1d;
  --card-back: #1b1b1b;
  --card-face: #ece4da;
  --card-ink: #d9730a;
  --card-letter: #1b1b1b;
}
/* each side only shows its own parts */
:root:not([data-site='cs']) [data-view='cs'], :root[data-site='cs'] [data-view='gamba'] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 20px); overflow-x: clip; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html, body { transition: background-color .5s var(--ease); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
em { font-style: normal; color: var(--green); }
b, strong { font-weight: 600; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(var(--acc) / .3); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--green); color: var(--green-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.cw { text-transform: uppercase; }
.label { font: 500 12.5px/1.2 var(--body); letter-spacing: 0; color: var(--muted); }

/* ---------- intro (plays on every visit; the timing is pure CSS so it always clears itself) ----------
   The hand of cards is adapted from "Card Fan Preloader" by Kedhareswer Naidu on 21st.dev (MIT License). */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; overflow: hidden; animation: introEnd 0s linear 4.65s forwards; }
.no-intro .intro { display: none; }
@keyframes introEnd { to { visibility: hidden; pointer-events: none; } }
.intro-cols { position: absolute; inset: 0; display: flex; }
.intro-cols i { flex: 1; background: var(--bg-deep); box-shadow: 1px 0 0 var(--bg-deep); animation: colUp .78s cubic-bezier(.76, 0, .24, 1) calc(3.6s + var(--c) * 55ms) forwards; }
.intro-cols i:nth-child(1) { --c: 0; }
.intro-cols i:nth-child(2) { --c: 1; }
.intro-cols i:nth-child(3) { --c: 2; }
.intro-cols i:nth-child(4) { --c: 3; }
.intro-cols i:nth-child(5) { --c: 4; }
@keyframes colUp { to { transform: translateY(-101%); } }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; animation: innerOut .45s ease 3.4s forwards; }
.intro-inner::before { content: ''; position: absolute; left: 50%; top: 42%; width: max(620px, 62vw); height: max(620px, 62vw); translate: -50% -50%; background: radial-gradient(closest-side, rgb(var(--acc) / .17), transparent); animation: introFade 1s ease .2s both; pointer-events: none; }
@keyframes innerOut { to { opacity: 0; transform: translateY(-22px); } }

/* the cards sweep in along an arc face down, then turn over one by one */
.fan { --cw: clamp(40px, 13.4vw, 124px); position: relative; width: calc(var(--cw) * 6); height: calc(var(--cw) * 2.25); margin-bottom: clamp(16px, 3vw, 28px); }
.pc { position: absolute; left: 50%; top: 0; width: var(--cw); aspect-ratio: 54 / 78; margin-left: calc(var(--cw) / -2); transform-origin: 50% 330%; transform: rotate(var(--a)); perspective: 700px; animation: deal .62s cubic-bezier(.2, .8, .2, 1) calc(.12s + var(--o) * 75ms) both; }
@keyframes deal { from { transform: rotate(-66deg); opacity: 0; } 35% { opacity: 1; } }
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: flip .65s cubic-bezier(.3, .7, .2, 1) calc(.8s + var(--i) * 95ms) both; }
@keyframes flip { from { transform: rotateY(180deg); } }
.pc-face { position: absolute; inset: 0; border-radius: 9%; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 12px 26px rgba(0, 0, 0, .5); }
.pc-front { display: grid; place-items: center; background: linear-gradient(155deg, #fff 30%, var(--card-face)); color: var(--card-letter); }
.pc-front b { font: 800 calc(var(--cw) * .66)/1 var(--display); letter-spacing: -.04em; }
.pc-idx { position: absolute; left: 9%; top: 6%; display: grid; justify-items: center; gap: calc(var(--cw) * .02); font: 700 calc(var(--cw) * .2)/1 var(--display); color: var(--card-ink); }
.pc-idx svg { width: calc(var(--cw) * .15); height: calc(var(--cw) * .15); fill: currentColor; stroke: none; }
.pc-idx-b { left: auto; top: auto; right: 9%; bottom: 6%; transform: rotate(180deg); }
.pc-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 36%, rgb(var(--acc) / .4) 50%, transparent 64%); transform: translateX(-130%); animation: glint .8s ease calc(2.25s + var(--i) * 60ms) both; }
@keyframes glint { to { transform: translateX(130%); } }
.pc-back { transform: rotateY(180deg); display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgb(var(--acc) / .13) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgb(var(--acc) / .13) 0 2px, transparent 2px 9px), var(--card-back); box-shadow: inset 0 0 0 2px rgb(var(--acc) / .6), 0 12px 26px rgba(0, 0, 0, .5); }
.pc-back img { width: 46%; border-radius: 22%; }
:root[data-site='cs'] .pc-back img { width: 50%; border-radius: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }

.intro-sub { position: relative; font: 800 clamp(30px, 9vw, 96px)/1.05 var(--display); letter-spacing: -.025em; overflow: hidden; padding-bottom: .14em; }
.intro-sub em { display: inline-block; animation: subIn .85s var(--ease) 1.5s both; }
@keyframes subIn { from { transform: translateY(110%); } }
@keyframes introFade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.stuck { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.nav-in { max-width: calc(var(--max) + 2 * var(--pad)); height: var(--nav); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-pfp { width: 34px; height: 34px; border-radius: 50%; flex: none; padding: 1.5px; background: var(--green); }
.brand-pfp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.brand-name { font: 700 17px/1.1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.nav-social { display: flex; align-items: center; gap: 6px; }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--soft); transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.ico svg { width: 16px; height: 16px; }
.ico:hover { transform: translateY(-1px); }
.ico-kick { color: var(--kick); }
.ico-discord { color: #8b9dff; }
.ico-x { color: var(--text); }
.ico-x svg { width: 14px; height: 14px; }
.ico-x:hover { background: #fff; border-color: #fff; color: #000; }
.ico-kick:hover { background: var(--kick); border-color: var(--kick); color: #061003; }
.ico-discord:hover { background: var(--discord); border-color: var(--discord); color: #fff; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.live-tag i, .pill-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.nav-links { position: relative; display: flex; gap: 2px; margin: 0 auto; }
.nav-ind { position: absolute; left: 0; top: 50%; width: 0; height: 34px; margin-top: -17px; border-radius: 9px; background: rgba(255, 255, 255, .07); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s; }
.nav-links a { position: relative; padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--soft); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--text); }
.nav-in > .btn { margin-left: auto; }
@media (min-width: 961px) { .nav-links + .btn { margin-left: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; }
.btn-primary { position: relative; overflow: hidden; background: var(--green); color: var(--green-ink); box-shadow: 0 12px 28px -14px rgb(var(--acc) / .7), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { background: var(--green-hi); transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgb(var(--acc) / .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active, .btn-ghost:active { transform: translateY(0) scale(.985); }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--panel-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }

/* ---------- shared ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.paused, .paused * { animation-play-state: paused !important; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px rgb(var(--acc) / .18); }
.dot.off { background: var(--gold); box-shadow: 0 0 0 3px rgba(245, 200, 76, .18); }
.spot { position: relative; isolation: isolate; }
.spot::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--acc) / .07), transparent 65%); }
.spot:hover::after { opacity: 1; }
.avatar { position: relative; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); font: 600 13px/1 var(--body); color: var(--muted); overflow: hidden; flex: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--nav) + 58px + clamp(24px, 5vw, 64px)) var(--pad) clamp(36px, 6vw, 76px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(880px 520px at 18% -6%, rgb(var(--acc) / .13), transparent 70%), radial-gradient(640px 460px at 96% 4%, rgba(39, 151, 255, .07), transparent 70%); }
.hero-glow { position: absolute; left: 0; top: 0; z-index: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--acc) / .1), transparent); opacity: 0; pointer-events: none; transition: opacity .6s; will-change: transform; }
.hero-glow.on { opacity: 1; }
/* the glow lives in its own layer that fades out before the bottom of the hero, so it never stops in a hard line */
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); mask-image: linear-gradient(to bottom, #000 55%, transparent 96%); }
.hero-in { position: relative; z-index: 2; perspective: 1400px; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
h1 { font-size: clamp(40px, 5.9vw, 72px); line-height: .98; letter-spacing: -.045em; }
h1 em { white-space: nowrap; }
.lede { font-size: clamp(16px, 1.55vw, 18px); color: var(--soft); max-width: 46ch; }
.lede b { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fine { font-size: 13px; color: var(--muted); }
.hero-fine a { text-decoration: underline; text-underline-offset: 3px; }
.hero-fine a:hover { color: var(--soft); }

.pill { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 14px 4px 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--soft); max-width: 100%; }
.pill img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.pill-live { border-color: rgba(255, 70, 88, .5); background: rgba(255, 70, 88, .09); color: #ffd6da; transition: background .2s, transform .2s var(--ease), opacity .7s var(--ease); }
.pill-live:hover { background: rgba(255, 70, 88, .16); transform: translateY(-1px); }
.pill-live i { color: var(--red); flex: none; }
.pill-live b { color: #fff; }
.pill-live svg { width: 14px; height: 14px; }

.code { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 12px; border-radius: 14px; border: 1.5px dashed rgb(var(--acc) / .42); background: rgb(var(--acc) / .05); text-align: left; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.code:hover { border-color: var(--green); background: rgb(var(--acc) / .09); }
.code:active { transform: scale(.985); }
.code-ico { width: 28px; height: 28px; border-radius: 8px; }
.code-text { display: grid; gap: 5px; }
.code-value { font: 800 20px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--green); min-width: 6.9ch; }
.code-copy { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgb(var(--acc) / .12); color: var(--green); transition: background .2s, color .2s; }
.code-copy svg { width: 17px; height: 17px; }
.code-copy .i-done, .code.done .code-copy .i-copy { display: none; }
.code.done .code-copy .i-done { display: block; }
.code.done { border-style: solid; border-color: var(--green); }
.code.done .code-copy { background: var(--green); color: var(--green-ink); }

.race { position: relative; transform-style: preserve-3d; transition: transform .3s var(--ease), opacity .7s var(--ease); padding: 24px; border-radius: 22px; background: linear-gradient(180deg, var(--race-a), var(--race-b)); border: 1px solid var(--line-2); box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9); }
.race::before { content: ''; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--acc) / .75), transparent); }
.race-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.race-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); }
.race-pool { margin: 12px 0 2px; font: 800 clamp(48px, 6.2vw, 68px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.race-sub { font-size: 14px; color: var(--soft); }
.cd-wrap { margin: 20px 0 6px; display: grid; gap: 10px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd div { padding: 12px 0 10px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); text-align: center; }
.cd b { display: block; margin-bottom: 6px; font: 600 clamp(20px, 2.4vw, 26px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.cd span { font: 500 11.5px/1 var(--body); color: var(--muted); }
.race-top { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.race-top li { display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; height: 50px; border-bottom: 1px solid var(--line); font-size: 14px; }
.race-top .pos { font: 600 13px/1 var(--mono); color: var(--muted); }
.race-top li:nth-child(1) .pos { color: var(--gold); }
.race-top li:nth-child(2) .pos { color: var(--silver); }
.race-top li:nth-child(3) .pos { color: var(--bronze); }
.race-top .avatar { width: 28px; height: 28px; font-size: 11px; }
.race-top .name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-top .nums { text-align: right; font: 500 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.race-top .nums small { display: block; font: 400 12px/1.3 var(--body); color: var(--muted); }
.race-top .nums b { color: var(--green); font-weight: 600; }
.race-skel { height: 50px; border-bottom: 1px solid var(--line); }
.race-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--green); }
.race-more svg { transition: transform .2s var(--ease); }
.race-more:hover svg { transform: translateX(3px); }

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floaters img { position: absolute; left: var(--x); top: var(--y); width: calc(56px * var(--s)); height: auto; translate: -50% -50%; rotate: var(--r); border-radius: 24%; opacity: .5; box-shadow: 0 0 0 1px rgb(var(--acc) / .22), 0 16px 30px rgba(0, 0, 0, .5); animation: bob 8s ease-in-out infinite alternate; will-change: transform; }
.floaters img:nth-child(even) { animation-duration: 10s; animation-direction: alternate-reverse; }
.floaters img.far { filter: blur(2px); opacity: .32; }
@keyframes bob { to { translate: -50% calc(-50% - 14px); rotate: calc(var(--r) + 5deg); } }

/* ---------- sections ---------- */
.section { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(64px, 9vw, 116px) var(--pad) 0; }
.head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.head p { color: var(--soft); max-width: 54ch; }
.head .status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.fine { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--soft); }

/* perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { padding: 24px 22px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .7s var(--ease), opacity .7s var(--ease); }
.perk:hover { border-color: rgb(var(--acc) / .35); }
.perk-big { font: 800 clamp(38px, 4.4vw, 52px)/1 var(--display); letter-spacing: -.045em; color: var(--green); }
.perk h3 { margin: 16px 0 6px; font-size: 17px; }
.perk p { color: var(--soft); font-size: 14.5px; line-height: 1.5; }

/* board */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stat { padding: 16px 18px 15px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.stat .label { display: block; margin-bottom: 10px; }
.stat b { font: 700 clamp(20px, 2.5vw, 26px)/1.1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat:first-child b { color: var(--green); }

.split { display: flex; gap: 6px; margin-bottom: 30px; }
.seg { --c: var(--green); flex: 1 1 0; min-width: 62px; display: grid; gap: 5px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--c); overflow: hidden; white-space: nowrap; transition: flex-grow .45s var(--ease), background .2s; }
.seg[data-p='1'] { --c: var(--gold); }
.seg[data-p='2'] { --c: var(--silver); }
.seg[data-p='3'] { --c: var(--bronze); }
.seg span { font: 600 12.5px/1 var(--body); color: var(--c); }
.seg b { font: 600 clamp(14px, 1.9vw, 18px)/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.seg small { font: 400 11.5px/1 var(--mono); color: var(--muted); }
.split:hover .seg { flex-grow: 10 !important; }
.split .seg:hover { flex-grow: 24 !important; background: var(--panel-2); }

.podium { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 14px; align-items: end; margin-bottom: 14px; perspective: 1200px; }
.pod { --c: var(--green); position: relative; padding: 24px 16px 20px; border-radius: 20px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, var(--panel)), var(--panel) 58%); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); transform-style: preserve-3d; transition: transform .25s var(--ease), opacity .7s var(--ease); }
.pod[data-p='1'] { --c: var(--gold); order: 2; padding-top: 32px; padding-bottom: 28px; }
.pod[data-p='2'] { --c: var(--silver); order: 1; }
.pod[data-p='3'] { --c: var(--bronze); order: 3; }
.pod-place { position: absolute; top: 14px; left: 16px; font: 700 13px/1 var(--body); color: var(--c); }
.pod .avatar-wrap { position: relative; width: clamp(60px, 10vw, 84px); margin: 0 auto 14px; }
.pod[data-p='1'] .avatar-wrap { width: clamp(72px, 12vw, 104px); }
.pod .avatar { width: 100%; aspect-ratio: 1; font-size: 22px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--c); }
.pod .vip { position: absolute; right: -10px; bottom: -8px; width: 38px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.pod-name { font: 700 clamp(16px, 2.2vw, 20px)/1.2 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-wager { margin-top: 12px; display: grid; gap: 6px; justify-items: center; }
.pod-wager b { font: 600 clamp(14px, 1.9vw, 17px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.pod-prize { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 10px; font: 600 clamp(15px, 2.2vw, 19px)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }

.table { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.thead, .row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 110px; align-items: center; gap: 12px; padding: 0 20px; }
.thead { height: 44px; border-bottom: 1px solid var(--line); }
.thead span:nth-child(n+3), .row > :nth-child(n+3) { text-align: right; }
.row { min-height: 62px; border-bottom: 1px solid var(--line); transition: background .2s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255, 255, 255, .025); }
.row-pos { font: 500 14px/1 var(--mono); color: var(--muted); }
.row.paid .row-pos { color: var(--green); }
.row-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .avatar { width: 34px; height: 34px; }
.row-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-vip { display: flex; align-items: center; gap: 5px; margin-top: 2px; font: 400 12.5px/1.2 var(--body); color: var(--muted); }
.row-vip img { width: 18px; }
.row-wager { font: 500 14.5px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.row-prize-m { display: none; font-size: 12px; color: var(--green); }
.row-prize { font: 500 14.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.row.paid .row-prize { color: var(--green); }
.cut { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 10px 20px; margin-top: -1px; background: rgb(var(--acc) / .05); border-top: 1px dashed rgb(var(--acc) / .4); border-bottom: 1px dashed rgb(var(--acc) / .4); }
.cut b { font: 600 13px/1 var(--body); color: var(--green); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.skel { height: 62px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- the CSBattle side ---------- */
.hero-cs::before { background: radial-gradient(880px 520px at 18% -6%, rgb(var(--acc) / .12), transparent 70%), radial-gradient(640px 460px at 96% 4%, rgba(255, 255, 255, .04), transparent 70%); }
.hero-cs .floaters img { border-radius: 50%; box-shadow: none; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); opacity: .55; }
.hero-cs .floaters img.far { filter: blur(2px) drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); opacity: .3; }
.pill-cs img { width: 22px; height: auto; border-radius: 0; margin-left: 3px; }
.code-cs .code-ico { width: 26px; height: auto; border-radius: 0; }
.cs-pool { display: flex; align-items: center; gap: 14px; }
.cs-pool small { align-self: flex-end; margin: 0 0 8px -4px; font: 600 16px/1 var(--body); letter-spacing: 0; color: var(--soft); }
.cs-coin { width: clamp(44px, 5vw, 56px); height: auto; filter: drop-shadow(0 8px 16px rgb(var(--acc) / .35)); animation: coinSpin 4.5s var(--ease) infinite; }
@keyframes coinSpin { 0%, 62% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
.cs-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 6px; }
.cs-seg { --c: var(--gold); display: grid; gap: 8px; justify-items: center; padding: 12px 0 11px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); border-top: 2px solid var(--c); }
.cs-seg[data-p='2'] { --c: var(--silver); }
.cs-seg[data-p='3'] { --c: var(--bronze); }
.cs-seg span { font: 600 12.5px/1 var(--body); color: var(--c); }
.cs-seg b { display: inline-flex; align-items: center; font: 600 clamp(18px, 2.2vw, 22px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.coin-i { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; margin-right: .35em; }
.hero-cs .race-top .nums b { display: inline-flex; align-items: center; }
.race-top li.open .name { color: var(--muted); }
.cs-podium .pod-wager b { display: inline-flex; align-items: center; }
.cs-podium .pod-prize { display: inline-flex; align-items: center; }
.pod.open .avatar, .race-top li.open .avatar { font: 700 20px/1 var(--display); color: var(--muted); background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, var(--panel-3) 6px 12px); }
.race-top li.open .avatar { font-size: 12px; }
.pod.open .pod-name { color: var(--muted); }
.table-cs .thead, .table-cs .row { grid-template-columns: 44px minmax(0, 1fr) 190px; }
.table-cs .row-pos { color: var(--soft); }
.table-cs .row-vip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-cs .row-wager { display: inline-flex; align-items: center; justify-content: flex-end; }

/* ---------- the switch between the two sides ---------- */
.switch { position: fixed; z-index: 49; top: calc(var(--nav) + 10px); left: 50%; transform: translateX(-50%); display: flex; padding: 4px; border-radius: 16px; background: var(--glass-2); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .7); transition: background .5s var(--ease); }
.switch a { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 128px; height: 40px; padding: 0 18px; border-radius: 12px; font: 600 14px/1 var(--body); color: var(--muted); transition: color .3s; }
.switch a:hover { color: var(--text); }
.switch a[aria-selected='true'] { color: var(--green-ink); }
.switch img { width: 20px; height: 20px; object-fit: contain; border-radius: 6px; transition: filter .3s; }
.switch a[data-site='cs'] img { width: 17px; border-radius: 0; }
.switch a[aria-selected='false'] img { filter: grayscale(1) brightness(1.3); opacity: .75; }
.switch-ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 12px; background: var(--green); box-shadow: 0 8px 22px -8px rgb(var(--acc) / .8), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .45s var(--ease), width .45s var(--ease), background .5s var(--ease); }

/* milestones */
.calc { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.calc-badge { display: grid; gap: 10px; justify-items: center; text-align: center; }
.calc-badge img { width: 104px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); transition: filter .3s; }
.calc-badge img.pop { animation: pop .45s var(--ease); }
.calc-badge img.locked { filter: grayscale(1) brightness(.5); }
@keyframes pop { 0% { transform: scale(.7) rotate(-10deg); } 60% { transform: scale(1.1) rotate(3deg); } }
.calc-badge span { font: 700 16px/1 var(--display); letter-spacing: -.01em; color: var(--tc, var(--muted)); }
.calc-body label { display: block; margin-bottom: 8px; }
.calc-amount { font: 800 clamp(34px, 5vw, 48px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 14px; }
.calc-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--green); transition: width .25s; }
.calc-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: var(--soft); }
.calc-meta b { color: var(--green); font-family: var(--mono); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 10px 0 0; background: transparent; cursor: grab; touch-action: pan-y; }
input[type=range]:active { cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #d98a55, #c3cde0, #f5c84c, #5fe0e6, #b98bff, #ff6b5e, #ff4fd8); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #d98a55, #c3cde0, #f5c84c, #5fe0e6, #b98bff, #ff6b5e, #ff4fd8); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 5px solid var(--green); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 5px solid var(--green); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }

.rail { display: flex; gap: 4px; padding: 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.rail::-webkit-scrollbar { display: none; }
.rail button { flex: 1 0 auto; min-width: 92px; display: grid; gap: 4px; justify-items: center; padding: 10px 10px 9px; border-radius: 11px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.rail button:hover { background: rgba(255, 255, 255, .04); }
.rail button[aria-selected='true'] { background: color-mix(in srgb, var(--tc) 11%, transparent); border-color: color-mix(in srgb, var(--tc) 38%, transparent); }
.rail img { width: 40px; height: auto; }
.rail b { font: 600 13px/1.1 var(--body); color: var(--soft); }
.rail button[aria-selected='true'] b { color: var(--tc); }
.rail small { font: 400 11px/1 var(--mono); color: var(--muted); }

.tier { padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.tier.swap .tier-head { animation: tierIn .35s var(--ease) both; }
.tier.swap .ms, .tier.swap .tier-foot { animation: tierIn .4s var(--ease) both; animation-delay: calc(var(--i, 3) * 55ms + 40ms); }
@keyframes tierIn { from { opacity: 0; transform: translateY(10px); } }
.tier-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.tier-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--tc); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; color: var(--soft); background: color-mix(in srgb, var(--tc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 32%, transparent); }
.chip b { color: var(--tc); font-family: var(--mono); font-weight: 600; }
.tier-range { margin-left: auto; font: 400 13.5px/1 var(--body); color: var(--muted); }
.ms { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.ms + .ms { margin-top: 8px; }
.ms:hover { border-color: color-mix(in srgb, var(--tc) 40%, transparent); }
.ms-badge { display: grid; place-items: center; width: 64px; height: 58px; border-radius: 11px; background: color-mix(in srgb, var(--tc) 9%, var(--panel)); }
.ms-badge img { width: 48px; height: auto; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .5)); transition: transform .3s var(--ease); }
.ms:hover .ms-badge img { transform: scale(1.1) rotate(-4deg); }
.ms-title { font-weight: 500; }
.ms-title span { color: var(--tc); font-weight: 600; }
.ms-wager { font: 400 13.5px/1.4 var(--body); color: var(--muted); }
.ms-prize { text-align: right; display: grid; gap: 6px; justify-items: end; }
.ms-prize b { font: 600 19px/1 var(--mono); font-variant-numeric: tabular-nums; }
.ms.reached { background: color-mix(in srgb, var(--tc) 7%, var(--bg-deep)); border-color: color-mix(in srgb, var(--tc) 36%, transparent); }
.ms.reached .ms-prize b { color: var(--green); }
.ms-check { display: none; }
.ms.reached .ms-check { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 8px; border-radius: 50%; background: var(--green); color: var(--green-ink); vertical-align: -3px; }
.ms-check svg { width: 11px; height: 11px; stroke-width: 3.2; }
.tier-foot { display: none; margin-top: 14px; }
.tier-foot .btn { width: 100%; }

/* steps, faq, cta */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 24px 22px 26px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s; }
.step:hover { border-color: var(--line-2); }
.step-n { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); color: var(--green); }
.step-n::after { content: ''; flex: 1; height: 1px; background: linear-gradient(var(--green), var(--green)) left / 0% 100% no-repeat, var(--line-2); transition: background-size 1s var(--ease) calc(var(--d, 0s) + .2s); }
.step.in .step-n::after { background-size: 100% 100%; }
.step h3 { margin: 18px 0 8px; font-size: 19px; }
.step p { color: var(--soft); font-size: 15px; }
.step b, .faq b { color: var(--green); font-weight: 700; text-transform: uppercase; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, opacity .7s var(--ease), transform .7s var(--ease); }
.faq details.is-open { border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--green), var(--green)) center / 100% 1.5px no-repeat, linear-gradient(var(--green), var(--green)) center / 1.5px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details.is-open summary::after { transform: rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--soft); max-width: 62ch; }

.cta { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(64px, 9vw, 116px) var(--pad); }
.cta-card { display: grid; gap: 14px; justify-items: center; text-align: center; padding: clamp(40px, 7vw, 72px) 24px; border-radius: 24px; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgb(var(--acc) / .14), transparent 70%), var(--panel); border: 1px solid var(--line-2); }
.cta-card p { color: var(--soft); margin-bottom: 8px; }
.cta-card p b { color: var(--text); }

/* ---------- motion ---------- */
/* headings: words rise out of a mask, then the green word gets its underline */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.w > * { display: inline-block; transform: translateY(112%); transition: transform .9s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }
.in .w > * { transform: none; }
.rise > p { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .25s, transform .7s var(--ease) .25s; }
.rise.in > p { opacity: 1; transform: none; }
h2 em { position: relative; display: inline-block; }
.u { position: absolute; left: -1%; bottom: -.07em; width: 102%; height: .14em; overflow: visible; stroke: var(--green); stroke-width: 2.5; opacity: .5; }
.u path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) .5s; }
.in .u path { stroke-dashoffset: 0; }

/* the strip under the hero: it speeds up and changes direction with your scrolling */
.band { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.band-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 15px 0; will-change: transform; }
.band-track span { font: 600 17px/1 var(--display); letter-spacing: -.015em; color: var(--soft); white-space: nowrap; }
.band-track b { font-weight: 800; color: var(--green); }
.band-track img { width: 18px; height: 18px; border-radius: 5px; }

/* leaderboard: the split fills in, the podium steps up, the rows file in */
.split.rv .seg { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease) calc(var(--i, 0) * 90ms + .1s), flex-grow .45s var(--ease), background .2s; }
.split.rv.in .seg { clip-path: inset(0 0 0 0); }
.pod.rv { transform: translateY(34px) scale(.95); }
.pod.rv.in { transform: none; }
.pod .avatar-wrap { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .2s), opacity .4s ease calc(var(--d, 0s) + .2s); }
.pod.rv:not(.in) .avatar-wrap { transform: scale(.5); opacity: 0; }
.table.rv .row, .table.rv .cut { transition: opacity .5s var(--ease) calc(var(--i, 0) * 40ms + .1s), transform .5s var(--ease) calc(var(--i, 0) * 40ms + .1s), background .2s; }
.table.rv:not(.in) .row, .table.rv:not(.in) .cut { opacity: 0; transform: translateX(-10px); }
.cd b.roll { animation: roll .35s var(--ease); }
@keyframes roll { from { transform: translateY(-40%); opacity: 0; } }

/* milestones: dots under the slider jump straight to a rank; a burst marks a rank-up */
.calc-slider { position: relative; padding-bottom: 16px; }
.calc-ticks { position: absolute; left: 12px; right: 12px; bottom: 0; height: 12px; }
.tickdot { position: absolute; top: 0; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--tc); border: 2.5px solid var(--panel); opacity: .6; transition: transform .2s var(--ease), opacity .2s; }
.tickdot:hover, .tickdot:focus-visible { transform: scale(1.5); opacity: 1; }
.tickdot.on { opacity: 1; }
.spark { position: fixed; z-index: 80; width: 6px; height: 6px; margin: -3px; border-radius: 50%; pointer-events: none; }
.faq details p { transition: opacity .3s ease; }
.faq details:not(.is-open) p { opacity: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--pad) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin-top: 14px; color: var(--soft); font-size: 14.5px; max-width: 34ch; }
.footer h4 { margin-bottom: 14px; font: 600 13.5px/1 var(--body); color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--soft); }
.footer ul a:hover { color: var(--text); }
.footer-legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-legal b { color: var(--soft); }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--soft); }
.footer-legal a.badge { text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.badges { display: flex; align-items: center; gap: 8px; }
.footer-legal a.made { justify-self: center; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 13px; text-decoration: none; transition: color .2s, border-color .2s, transform .2s var(--ease); }
.footer-legal a.made:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-1px); }
.made span { display: inline-block; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.made:hover span { transform: scale(1.3); }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12.5px/1 var(--body); color: var(--soft); }

/* ---------- mobile dock, toast, copy effect ---------- */
.dock { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; translate: -50% 16px; padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s var(--ease); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); white-space: nowrap; }
.toast.show { opacity: 1; translate: -50% 0; }
.ring { position: fixed; z-index: 80; border-radius: 14px; border: 1.5px solid var(--green); pointer-events: none; }
.coin { position: fixed; z-index: 80; border-radius: 24%; pointer-events: none; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: calc(var(--nav) + clamp(36px, 6vw, 72px)) var(--pad) clamp(56px, 8vw, 96px); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 14px; color: var(--soft); }
.legal-back:hover { color: var(--text); }
.legal h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -.04em; }
.legal-date { display: block; margin-top: 14px; }
.legal-short { margin: 30px 0 8px; padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); border-left: 2px solid var(--green); color: var(--soft); }
.legal h2 { margin: 44px 0 12px; font-size: 24px; letter-spacing: -.025em; scroll-margin-top: calc(var(--nav) + 20px); }
.legal h3 { margin: 24px 0 8px; font-size: 17px; }
.legal p, .legal li { color: var(--soft); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 20px; display: grid; gap: 8px; }
.legal li::marker { color: var(--green); }
.legal a:not(.btn):not(.legal-back) { color: var(--text); text-decoration: underline; text-decoration-color: rgb(var(--acc) / .6); text-underline-offset: 3px; }
.legal a:not(.btn):not(.legal-back):hover { text-decoration-color: var(--green); }
.legal b { color: var(--text); }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.help-card { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.help-card .label { display: block; margin-bottom: 10px; }
.help-card b { display: block; margin-bottom: 2px; }
.help-card span { font-size: 14px; color: var(--soft); }
.notfound { min-height: 82vh; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; padding: var(--nav) var(--pad) 40px; }
.notfound .label { color: var(--green); }
.notfound p { color: var(--soft); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .lede { max-width: 44ch; }
  .race { max-width: 520px; width: 100%; margin: 0 auto; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-in { padding-bottom: 120px; }
  .footer-in.plain { padding-bottom: 40px; }
  .floaters img { width: calc(42px * var(--s)); opacity: .38; }
  .floaters img.far, .floaters img.mid { display: none; }
  .toast { bottom: 104px; }
  .dock { position: fixed; z-index: 55; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 2px; padding: 5px; border-radius: 22px; background: var(--glass-2); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
  .dock a { position: relative; display: grid; gap: 4px; justify-items: center; width: 70px; padding: 9px 0 7px; border-radius: 17px; font-size: 11px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
  .dock a svg { width: 20px; height: 20px; }
  .dock a.on { color: var(--green); }
  .dock-ind { position: absolute; left: 5px; top: 5px; bottom: 5px; width: 70px; border-radius: 17px; background: rgb(var(--acc) / .1); pointer-events: none; transition: transform .45s var(--ease); }
  .dock a.dock-kick { color: var(--kick); }
  .dock-kick i { position: absolute; top: 7px; right: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--panel); animation: blink 1.4s ease-in-out infinite; }
}
@media (max-width: 640px) {
  .band-track span { font-size: 15px; }
  :root { --nav: 62px; }
  .nav-in { gap: 10px; }
  .brand-name { font-size: 13.5px; white-space: normal; max-width: 88px; }
  .live-tag { display: none; }
  .nav .ico { width: 32px; height: 32px; }
  .nav-social { gap: 5px; }
  .nav .btn-sm { padding: 0 13px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn, .code { width: 100%; }
  .code-text { margin-right: auto; }
  .race { padding: 20px 18px; border-radius: 20px; }
  .perk { padding: 20px 16px 18px; }
  .perk h3 { font-size: 15.5px; }
  .perk p { font-size: 13.5px; }
  .split { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 5px; }
  .seg { padding: 10px 4px; min-width: 0; justify-items: center; }
  .seg b { font-size: 12px; }
  .seg small { display: none; }
  .podium { grid-template-columns: 1fr 1fr; gap: 10px; }
  .switch { top: calc(var(--nav) + 8px); }
  .switch a { min-width: 0; width: 46vw; max-width: 170px; height: 38px; padding: 0 12px; font-size: 13.5px; }
  .cs-seg b { font-size: 16px; }
  .pod[data-p='1'] { order: 0; grid-column: 1 / -1; }
  .thead, .row { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 0 14px; gap: 10px; }
  .thead span:nth-child(4), .row-prize { display: none; }
  .table-cs .thead, .table-cs .row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .row-prize-m { display: block; }
  .cut { padding: 10px 14px; }
  .calc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 18px; text-align: center; }
  .calc-meta { justify-content: center; }
  .rail button { min-width: 76px; padding: 8px 6px; }
  .rail img { width: 34px; }
  .rail small { display: none; }
  .tier { padding: 16px 14px; }
  .tier-range { margin-left: 0; }
  .ms { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .ms-badge { width: 54px; height: 50px; }
  .ms-badge img { width: 40px; }
  .ms .btn { display: none; }
  .ms-prize b { font-size: 16px; }
  .tier-foot { display: block; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv, .rise > p { opacity: 1; transform: none; }
  .cs-coin { animation: none; }
  .w > * { transform: none; }
  .u path { stroke-dashoffset: 0; }
  .split.rv .seg { clip-path: none; }
  .faq details p { opacity: 1 !important; }
}
