/* DRIFT: site + in-race screen. Dark glass over the live race. Rows and number slots have fixed sizes so nothing shifts. */
:root {
  --bg: #06070b; --bg2: #0a0c12; --ink: #eef1f7; --mute: #8e97aa; --dim: #5b6373;
  --line: rgba(255, 255, 255, .09); --panel: rgba(11, 14, 21, .72); --panel2: rgba(16, 20, 30, .86);
  --accent: #ff4a1c; --accent-hi: #ff7a3d; --cyan: #29e0ff; --gold: #ffc93d; --green: #32d74b;
  --disp: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; --ui: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --nav-h: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
kbd { font: 700 12px/1 var(--ui); display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px; background: linear-gradient(#232836, #151924); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 0 #05060a, inset 0 1px 0 rgba(255, 255, 255, .08); color: #dfe4ee; }
kbd.wide { min-width: 76px; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(50, 215, 75, .6); animation: pulse 1.8s infinite; display: inline-block; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(50, 215, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0); } }

/* ---- the stage: finished-looking before WebGL arrives, then the live race fades in ---- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #05060c; }
.stage-bg { position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 70% 58%, rgba(255, 74, 28, .30), transparent 60%),
  radial-gradient(90% 60% at 25% 50%, rgba(80, 60, 255, .34), transparent 62%),
  linear-gradient(#05060d 0%, #120a2e 46%, #2a1036 58%, #07080f 58.2%, #05060b 100%); }
.stage-bg::after { content: ""; position: absolute; left: -50%; right: -50%; top: 58%; bottom: -40%; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  background: repeating-linear-gradient(90deg, rgba(41, 224, 255, .22) 0 2px, transparent 2px 90px), repeating-linear-gradient(0deg, rgba(255, 46, 136, .20) 0 2px, transparent 2px 70px);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, transparent 95%); mask-image: linear-gradient(transparent, #000 30%, transparent 95%); }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.stage.ready #view { opacity: 1; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(6, 7, 11, .90) 0%, rgba(6, 7, 11, .62) 34%, rgba(6, 7, 11, .08) 62%, rgba(6, 7, 11, .30) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 11, 0) 26%, rgba(6, 7, 11, 0) 80%, rgba(6, 7, 11, .7) 100%); transition: opacity .4s; }

/* ---- nav ---- */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100% - 1180px) / 2));
  background: linear-gradient(rgba(6, 7, 11, .82), rgba(6, 7, 11, 0)); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(6, 7, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 22px; background: linear-gradient(100deg, var(--accent), var(--accent-hi)); clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); box-shadow: 0 0 18px rgba(255, 74, 28, .6); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 7px 9px; background: var(--bg); clip-path: polygon(28% 0, 100% 0, 72% 100%, 0 100%); }
.logo-word { font: italic 900 30px/1 var(--disp); letter-spacing: .06em; }
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: #c6ccd9; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.online { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--mute); }
.online b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: right; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 20px; height: 20px; fill: #dfe4ee; }
.icon-btn .s-off { display: none; } .icon-btn.off .s-on { display: none; } .icon-btn.off .s-off { display: block; fill: var(--mute); }

/* ---- hero ---- */
main { position: relative; z-index: 10; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 40px; padding: calc(var(--nav-h) + 24px) max(24px, calc((100% - 1180px) / 2)) 84px; }
.live-chip { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(10, 12, 18, .7); border: 1px solid var(--line); font-size: 13px; color: #cdd3df; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
.live-chip b { color: var(--green); letter-spacing: .12em; font-size: 12px; }
.live-chip .sep { width: 1px; height: 14px; background: var(--line); }
#liveLap { min-width: 84px; font-variant-numeric: tabular-nums; }
h1 { font: italic 900 clamp(54px, 8.2vw, 124px)/.9 var(--disp); letter-spacing: .005em; margin: 22px 0 20px; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
h1 em { font-style: italic; background: linear-gradient(95deg, var(--accent) 10%, #ffb02e 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 520px; font-size: 17px; color: #c3c9d6; }
.join { margin-top: 28px; width: min(560px, 100%); padding: 18px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .07); }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input { height: 46px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 5, 9, .7); color: #fff; font: 600 16px var(--ui); padding: 0 14px; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 74, 28, .22); }
.swatches { display: grid; grid-template-columns: repeat(8, 24px); gap: 7px; height: 46px; align-items: center; }
.swatches button { width: 24px; height: 24px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: transform .12s; }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff, 0 0 16px var(--c); }
.cta { margin-top: 16px; width: 100%; height: 58px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 12px; font: italic 800 26px/1 var(--disp); letter-spacing: .08em; color: #fff;
  background: linear-gradient(100deg, var(--accent) 0%, #ff7a2a 100%); box-shadow: 0 12px 34px rgba(255, 74, 28, .42), inset 0 1px 0 rgba(255, 255, 255, .35); position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s, filter .12s; }
.cta::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: sheen 3.2s infinite; }
@keyframes sheen { 60%, 100% { left: 130%; } }
.cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(255, 74, 28, .55), inset 0 1px 0 rgba(255, 255, 255, .4); }
.cta:active { transform: translateY(1px); }
.cta:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.cta svg { width: 20px; height: 20px; fill: #fff; }
.join-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--mute); min-height: 19px; }
.join-note.warn { color: #ffb38f; }
.stats { margin-top: 26px; display: flex; gap: 34px; }
.stats div { display: grid; }
.stats b { font: italic 800 34px/1 var(--disp); font-variant-numeric: tabular-nums; min-width: 2ch; }
.stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-top: 4px; }
.live-panel { padding: 14px 14px 10px; align-self: end; }
.panel-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mute); padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.panel-head span:last-child { color: var(--accent-hi); }
.rows li { display: grid; grid-template-columns: 22px 12px minmax(0, 1fr) 62px; align-items: center; gap: 8px; height: 30px; padding: 0 4px; border-radius: 7px; font-size: 13.5px; }
.rows li b { font: italic 800 17px/1 var(--disp); color: var(--mute); text-align: center; }
.rows li:first-child b { color: var(--gold); }
.rows li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, #555); box-shadow: 0 0 8px var(--c, transparent); }
.rows li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rows li em { font-style: normal; font-size: 11.5px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows li.me { background: rgba(255, 74, 28, .16); box-shadow: inset 0 0 0 1px rgba(255, 74, 28, .45); }
.rows li.me span { color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .28); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }

/* ---- bands ---- */
.band { position: relative; background: var(--bg); padding: 96px 0; border-top: 1px solid var(--line); }
.band.alt { background: linear-gradient(var(--bg2), var(--bg)); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.band-head h2 { font: italic 900 clamp(40px, 5vw, 64px)/.9 var(--disp); letter-spacing: .02em; position: relative; padding-left: 20px; }
.band-head h2::before { content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 7px; background: var(--accent); transform: skewX(-14deg); }
.band-head p { max-width: 430px; color: var(--mute); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; color: #c6ccd9; transition: background .15s, color .15s, border-color .15s; }
.tabs button:hover { background: rgba(255, 255, 255, .08); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255, 74, 28, .3); }
.table { padding: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b0d14; }
.t-head, .t-body li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 150px; align-items: center; gap: 12px; padding: 0 16px; }
.t-head { height: 38px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.t-head span:nth-child(n+3), .t-body li > *:nth-child(n+3) { text-align: right; }
.t-body { min-height: 480px; }
.t-body li { height: 48px; border-radius: 10px; }
.t-body li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.t-body li b { font: italic 800 22px/1 var(--disp); color: var(--mute); }
.t-body li:nth-child(1) b { color: var(--gold); } .t-body li:nth-child(2) b { color: #cfd6e3; } .t-body li:nth-child(3) b { color: #d08a54; }
.t-body .who { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 600; }
.t-body .who i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.t-body .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-body .num { font: 700 20px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.t-body .sub { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.t-body .empty { display: grid; place-items: center; grid-template-columns: 1fr; height: 480px; color: var(--mute); background: none !important; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 24px; backdrop-filter: none; -webkit-backdrop-filter: none; background: #0c0e16; position: relative; overflow: hidden; }
.card h3 { font: italic 800 30px/1 var(--disp); letter-spacing: .03em; margin-bottom: 10px; }
.card p { color: #b3bac8; font-size: 14.5px; min-height: 88px; }
.card-num { font: italic 900 64px/1 var(--disp); color: rgba(255, 255, 255, .06); position: absolute; right: 18px; top: 10px; }
.keys { display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; height: 30px; }
.keys span { color: var(--mute); font-size: 12.5px; padding: 0 4px; }
.c-cyan { color: var(--cyan); } .c-orange { color: #ff9a3d; }
.pad-ico { width: 54px; height: 30px; border-radius: 6px; padding: 0 !important; background: #06222c repeating-linear-gradient(115deg, transparent 0 7px, rgba(41, 224, 255, .9) 7px 11px); box-shadow: 0 0 16px rgba(41, 224, 255, .5); }
.track { padding: 0; }
.track .art { height: 210px; display: grid; place-items: center; background: var(--tbg); position: relative; border-bottom: 1px solid var(--line); }
.track svg { width: 86%; height: 82%; overflow: visible; }
.track .t-road { fill: none; stroke: rgba(4, 5, 9, .85); stroke-width: 15; stroke-linejoin: round; }
.track .t-line { fill: none; stroke: var(--tc); stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 8px var(--tc)); }
.track .t-start { fill: #fff; }
.track .body { padding: 20px 22px 22px; }
.track h3 { margin-bottom: 6px; }
.track p { min-height: 44px; }
.track dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 0; }
.track dt { font-size: 10.5px; letter-spacing: .14em; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.track dd { margin: 3px 0 0; font: 700 20px/1.1 var(--disp); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot { position: relative; background: #040509; border-top: 1px solid var(--line); padding: 30px 0; color: var(--mute); font-size: 13.5px; }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-copy { margin-left: auto; }
.foot .logo-word { font-size: 24px; color: var(--ink); } .foot .logo-mark { width: 24px; height: 18px; } .foot .logo-mark::after { inset: 6px 7px; }

/* ---- buttons ---- */
.btn { height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 10px; pointer-events: auto; }
.btn.ghost { background: rgba(10, 12, 18, .66); border: 1px solid var(--line); color: #d5dae5; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn kbd { height: 22px; min-width: 0; font-size: 10.5px; padding: 0 6px; }

/* ---- in-race screen ---- */
.hud { position: fixed; inset: 0; z-index: 40; display: none; pointer-events: none; font-variant-numeric: tabular-nums; user-select: none; -webkit-user-select: none; }
body.playing { overflow: hidden; }
body.playing .hud { display: block; }
body.playing #site, body.playing .nav, body.playing .stage-shade { display: none; }
body.playing #view { opacity: 1; }
.h-pos { position: absolute; left: 22px; top: 20px; width: 178px; height: 104px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 0 16px; }
.h-pos .pos { display: flex; align-items: baseline; }
.h-pos .pos b { font: italic 900 74px/1 var(--disp); width: 42px; text-align: center; color: #fff; text-shadow: 0 0 24px rgba(255, 74, 28, .7); }
.h-pos .pos span { font: italic 700 24px/1 var(--disp); color: var(--mute); }
.h-pos .lap { display: grid; grid-template-columns: auto auto; justify-content: end; align-items: baseline; column-gap: 2px; border-left: 1px solid var(--line); padding-left: 14px; height: 60px; align-content: center; }
.h-pos .lap span { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--mute); }
.h-pos .lap b { font: italic 800 36px/1 var(--disp); width: 18px; text-align: right; }
.h-pos .lap i { font: italic 700 20px/1 var(--disp); color: var(--mute); } .h-pos .lap em { font-style: italic; }
.h-time { position: absolute; left: 50%; top: 20px; width: 236px; margin-left: -118px; height: 104px; display: grid; justify-items: center; align-content: center; gap: 2px; }
.h-time span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; height: 16px; white-space: nowrap; }
.h-time b { font: italic 800 44px/1 var(--disp); letter-spacing: .02em; width: 190px; text-align: center; }
.h-time i { font-style: normal; font-size: 12px; color: var(--mute); letter-spacing: .08em; } .h-time em { font-style: normal; color: var(--cyan); font-weight: 700; }
.h-right { position: absolute; right: 22px; top: 20px; width: 214px; display: grid; gap: 12px; }
#minimap { width: 214px; height: 190px; display: block; }
.h-right .rows { padding: 8px; }
.h-right .rows li { height: 27px; grid-template-columns: 20px 12px minmax(0, 1fr) 54px; font-size: 13px; }
.h-speed { position: absolute; left: 50%; bottom: 26px; width: 260px; margin-left: -130px; display: grid; justify-items: center; }
.h-speed b { font: italic 900 78px/.9 var(--disp); width: 150px; text-align: center; text-shadow: 0 4px 30px rgba(0, 0, 0, .7); }
.h-speed span { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #c5ccd9; text-shadow: 0 1px 6px #000; }
.meter { margin-top: 10px; width: 260px; height: 12px; border-radius: 7px; background: rgba(6, 8, 12, .7); border: 1px solid rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #7d8799; border-radius: 6px; transition: background .12s; }
.meter i.l1 { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); } .meter i.l2 { background: #ff8a2a; box-shadow: 0 0 18px #ff8a2a; } .meter i.boost { background: linear-gradient(90deg, #ffd24a, #ff5a1f); box-shadow: 0 0 20px #ff7a2a; }
.meter u { position: absolute; left: 43.75%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .5); }
.h-center { position: absolute; left: 0; right: 0; top: 24%; display: grid; justify-items: center; gap: 10px; }
.lights { display: none; gap: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(6, 8, 12, .8); border: 1px solid var(--line); }
.lights.on { display: flex; }
.lights i { width: 46px; height: 46px; border-radius: 50%; background: #1d2029; box-shadow: inset 0 0 0 2px #000, inset 0 -6px 12px rgba(0, 0, 0, .6); }
.lights i.red { background: #ff2d2d; box-shadow: 0 0 34px #ff2d2d, inset 0 0 0 2px #7a0d0d; }
.lights.go i { background: #2dff6a; box-shadow: 0 0 34px #2dff6a, inset 0 0 0 2px #0d7a2f; }
.msg { font: italic 900 96px/1 var(--disp); letter-spacing: .03em; height: 96px; text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 0 50px rgba(255, 74, 28, .55); opacity: 0; transform: scale(.94); transition: opacity .18s, transform .18s; white-space: nowrap; }
.msg.show { opacity: 1; transform: scale(1); }
.msg.warn { color: #ff5a4a; } .msg.gold { color: var(--gold); text-shadow: 0 6px 40px rgba(0, 0, 0, .8), 0 0 50px rgba(255, 201, 61, .6); }
.sub { font: 700 18px/1 var(--ui); letter-spacing: .1em; height: 20px; color: #e6eaf2; text-shadow: 0 2px 10px #000; opacity: 0; transition: opacity .18s; }
.sub.show { opacity: 1; }
.h-lobby { position: absolute; left: 50%; top: 150px; width: 340px; margin-left: -170px; padding: 18px; display: none; justify-items: center; text-align: center; }
.h-lobby.on { display: grid; }
.h-lobby span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--accent-hi); }
.h-lobby b { font: italic 900 96px/1 var(--disp); height: 96px; width: 120px; }
.h-lobby i { font-style: normal; order: -1; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 6px 0 2px; }
.h-lobby span { order: -2; }
.h-lobby p { color: var(--mute); font-size: 13px; }
.results { position: absolute; left: 50%; top: 50%; width: 520px; margin: -280px 0 0 -260px; padding: 20px; display: none; pointer-events: auto; }
.results.on { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.res-head { display: grid; gap: 2px; margin-bottom: 12px; }
.res-head span { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--mute); }
.res-head h3 { font: italic 900 44px/1 var(--disp); letter-spacing: .03em; height: 44px; }
.res-rows li { display: grid; grid-template-columns: 34px 14px minmax(0, 1fr) 96px 92px; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border-radius: 9px; }
.res-rows li:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.res-rows li.me { background: rgba(255, 74, 28, .2); box-shadow: inset 0 0 0 1px rgba(255, 74, 28, .55); }
.res-rows b { font: italic 800 24px/1 var(--disp); color: var(--mute); }
.res-rows li:nth-child(1) b { color: var(--gold); }
.res-rows i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.res-rows span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-rows span small { color: var(--dim); font-weight: 600; margin-left: 6px; font-size: 10.5px; letter-spacing: .1em; }
.res-rows em, .res-rows u { font-style: normal; text-decoration: none; text-align: right; font: 700 19px/1 var(--disp); }
.res-rows u { color: var(--mute); font-size: 16px; }
.res-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--mute); }
.res-foot b { color: #fff; display: inline-block; width: 2ch; text-align: center; }
.h-left { position: absolute; left: 22px; bottom: 24px; display: flex; gap: 10px; }
.touch { position: absolute; left: 0; right: 0; bottom: 18px; display: none; grid-template-columns: 84px 84px 1fr 96px 96px; gap: 12px; padding: 0 16px; align-items: end; }
.touch button { height: 84px; border-radius: 20px; background: rgba(10, 12, 18, .55); border: 1px solid rgba(255, 255, 255, .22); pointer-events: auto; font: italic 800 20px var(--disp); letter-spacing: .08em; color: #fff; touch-action: none; display: grid; place-items: center; }
.touch button.down { background: rgba(255, 74, 28, .55); border-color: var(--accent); }
.touch svg { width: 38px; height: 38px; fill: #fff; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: rgba(14, 17, 25, .94); border: 1px solid var(--line); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(92vw, 460px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (pointer: coarse) { body.playing .touch { display: grid; } .h-left { bottom: auto; top: 136px; } .h-speed { bottom: 118px; } .h-left kbd { display: none; } }
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 70px; } .live-panel { display: none; } .cards { grid-template-columns: 1fr; } .card p, .track p { min-height: 0; }
  .nav-links { display: none; } .t-head, .t-body li { grid-template-columns: 44px minmax(0, 1fr) 96px 86px; padding: 0 10px; }
  .stage-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 11, .55) 40%, rgba(6, 7, 11, .45) 100%); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); } .band { padding: 64px 0; } .join-row { grid-template-columns: 1fr; } .stats { gap: 22px; } .online { display: none; }
  .h-pos { left: 10px; top: 10px; width: 150px; height: 84px; padding: 0 10px; } .h-pos .pos b { font-size: 58px; width: 34px; } .h-pos .lap b { font-size: 28px; }
  .h-time { top: 10px; width: 170px; margin-left: -85px; height: 84px; } .h-time b { font-size: 32px; width: 150px; }
  .h-right { right: 10px; top: 104px; width: 120px; } #minimap { width: 120px; height: 110px; } .h-right .rows { display: none; }
  .h-speed b { font-size: 56px; } .meter { width: 200px; } .h-speed { width: 200px; margin-left: -100px; }
  .msg { font-size: 60px; height: 60px; } .results { width: calc(100% - 20px); margin-left: 0; left: 10px; } .res-rows li { grid-template-columns: 26px 12px minmax(0, 1fr) 80px 0; } .res-rows u { display: none; }
  .h-lobby { top: 110px; }
}
@media (prefers-reduced-motion: reduce) { .cta::before, .dot, .scroll-cue span { animation: none; } html { scroll-behavior: auto; } }

/* ---- v2: prizes, rooms, spectating, payout card ---- */
.btn.line { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); color: #e6eaf2; transition: background .15s, border-color .15s; }
.btn.line:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn.hot { background: linear-gradient(100deg, var(--accent), #ff7a2a); color: #fff; box-shadow: 0 8px 22px rgba(255, 74, 28, .35), inset 0 1px 0 rgba(255, 255, 255, .3); font-weight: 700; }
.btn.hot:hover { filter: brightness(1.08); } .btn:disabled { opacity: .5; cursor: default; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.ca { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 201, 61, .4); background: rgba(255, 201, 61, .08); display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--ui); color: #ffe6a3; }
.ca[hidden], .coin-line[hidden], .claim[hidden] { display: none; }
.ca b { color: var(--gold); letter-spacing: .1em; font-size: 11px; } .ca span { font-variant-numeric: tabular-nums; } .ca svg { width: 15px; height: 15px; fill: var(--gold); }
.ca:hover { background: rgba(255, 201, 61, .16); }
.prize-bar { margin-top: 22px; width: min(560px, 100%); display: grid; grid-template-columns: 1.05fr 1.5fr 1fr; background: linear-gradient(120deg, rgba(40, 30, 6, .78), rgba(14, 16, 24, .82)); border-color: rgba(255, 201, 61, .32); overflow: hidden; }
.prize-bar > div { padding: 13px 16px; display: grid; align-content: center; gap: 3px; min-width: 0; }
.prize-bar > div + div { border-left: 1px solid rgba(255, 201, 61, .18); }
.prize-bar span { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; color: #d9b65a; }
.prize-bar b { font: italic 800 30px/1 var(--disp); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 22px rgba(255, 201, 61, .4); }
.prize-bar em { font-style: italic; } .pb-paid b { color: #fff; text-shadow: none; font-size: 24px; } .pb-paid i { font-style: normal; font-size: 11.5px; color: var(--mute); } .pb-paid i em { font-style: normal; color: #dfe4ee; font-weight: 700; }
.pb-race ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .pb-race li { display: grid; gap: 1px; }
.pb-race li i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--mute); } .pb-race li b { font-size: 24px; } .pb-race li:nth-child(n+2) b { color: #ffe6a3; text-shadow: none; }
.room-row { margin-top: 12px; display: grid; grid-template-columns: auto auto auto 84px auto; align-items: center; gap: 10px; }
.room-row .btn { height: 42px; justify-content: center; } .room-or { color: var(--dim); font-size: 12.5px; }
.room-row input[type=text] { height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 5, 9, .7); color: #fff; font: 700 16px var(--ui); letter-spacing: .18em; text-align: center; text-transform: uppercase; outline: none; width: 100%; }
.room-row input[type=text]:focus { border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #c3c9d6; cursor: pointer; } .check input { width: 16px; height: 16px; accent-color: var(--accent); }
.coin-line { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: min(700px, 100%); }
.coin-line span { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; color: #d9b65a; }
.coin-line code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffe6a3; background: rgba(255, 201, 61, .08); border: 1px solid rgba(255, 201, 61, .25); padding: 7px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rooms-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.r-head, .r-body li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) 84px 120px 92px 168px; align-items: center; gap: 12px; padding: 0 16px; }
.r-head { height: 38px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.r-body { min-height: 312px; } .r-body li { height: 52px; border-radius: 10px; } .r-body li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.r-body li > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-body .rn { font-weight: 700; } .r-body .rn small { color: var(--dim); font-weight: 600; margin-left: 8px; letter-spacing: .12em; }
.r-body .rp { font: 700 19px/1 var(--disp); font-variant-numeric: tabular-nums; } .r-body .rs { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--mute); } .r-body .rs.go { color: var(--green); } .r-body .rs.race { color: var(--accent-hi); }
.r-body .rz { font: 700 19px/1 var(--disp); color: var(--gold); font-variant-numeric: tabular-nums; } .r-body .rz.none { color: var(--dim); }
.r-body .ra { display: flex; gap: 8px; justify-content: flex-end; overflow: visible; }
.r-body .empty, .w-body .empty { display: grid; place-items: center; grid-template-columns: 1fr; height: 312px; color: var(--mute); background: none !important; text-align: center; white-space: normal; padding: 0 20px; }
.winners { padding: 14px 14px 8px; } .w-body { min-height: 312px; }
.w-body li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 39px; padding: 0 4px; border-radius: 8px; font-size: 13.5px; }
.w-body li b { font: italic 800 15px/1 var(--disp); color: var(--mute); } .w-body li span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-body li a { font: 700 18px/1 var(--disp); color: var(--gold); font-variant-numeric: tabular-nums; } .w-body li a:hover { text-decoration: underline; }
.t-body .sub.gold { color: var(--gold); font-weight: 700; }
/* in the race */
.h-prize { position: absolute; left: 50%; top: 132px; transform: translateX(-50%); height: 34px; padding: 0 16px; border-radius: 99px; display: none; align-items: center; gap: 10px; white-space: nowrap; background: linear-gradient(120deg, rgba(48, 36, 6, .86), rgba(14, 16, 24, .86)); border: 1px solid rgba(255, 201, 61, .45); box-shadow: 0 0 26px rgba(255, 201, 61, .18); }
.h-prize.on { display: flex; }
.h-prize span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: #d9b65a; } .h-prize b { font: italic 800 19px/1 var(--disp); color: var(--gold); letter-spacing: .02em; }
.h-lobby { top: 178px; pointer-events: auto; }
.lobby-prize { font: italic 800 22px/1.1 var(--disp) !important; color: var(--gold) !important; min-height: 24px; margin: 4px 0 6px; letter-spacing: .02em; }
.lobby-room { display: none; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.lobby-room.on { display: flex; }
.lobby-room > span { order: 0 !important; font-size: 12px !important; color: var(--mute) !important; letter-spacing: .14em; } .lobby-room > span b { font: 800 20px/1 var(--ui) !important; height: auto !important; width: auto !important; color: #fff; letter-spacing: .2em; margin-left: 6px; }
.spec { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); height: 54px; padding: 0 10px 0 18px; display: none; align-items: center; gap: 10px; pointer-events: auto; white-space: nowrap; }
.spec span { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #dfe4ee; margin-right: 6px; }
body.spectating .spec { display: flex; } body.spectating .h-speed, body.spectating .h-pos, body.spectating .h-left, body.spectating .touch { display: none !important; }
.res-rows u.won { color: var(--gold); font-size: 19px; }
.claim { position: fixed; z-index: 70; right: 20px; bottom: 20px; width: 340px; padding: 18px; background: linear-gradient(140deg, rgba(48, 36, 6, .96), rgba(12, 14, 22, .97)); border-color: rgba(255, 201, 61, .5); box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 201, 61, .14); }
.claim-k { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: #d9b65a; }
.claim h3 { font: italic 900 34px/1 var(--disp); color: var(--gold); margin: 4px 0 8px; white-space: nowrap; }
.claim p { font-size: 13.5px; color: #cfd5e1; min-height: 20px; }
.claim form { display: grid; gap: 8px; margin-top: 10px; } .claim form[hidden] { display: none; }
.claim input { height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(4, 5, 9, .75); color: #fff; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 12px; outline: none; width: 100%; }
.claim input:focus { border-color: var(--gold); }
.claim .btn { height: 46px; justify-content: center; font: italic 800 20px/1 var(--disp); letter-spacing: .06em; }
.claim a { display: inline-block; margin-top: 8px; color: var(--cyan); font-weight: 600; font-size: 13.5px; } .claim a[hidden] { display: none; }
.claim-note { color: #ffb38f !important; font-size: 12.5px !important; min-height: 18px !important; margin-top: 6px; }
.claim-x { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; border-radius: 8px; color: var(--mute); font-size: 20px; line-height: 1; } .claim-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (pointer: coarse) { .spec { bottom: 14px; } }
@media (max-width: 1020px) {
  .rooms-grid { grid-template-columns: 1fr; } .r-head, .r-body li { grid-template-columns: minmax(0, 1fr) 0 56px 84px 70px 132px; padding: 0 10px; gap: 8px; } .r-head span:nth-child(2), .r-body li > :nth-child(2) { visibility: hidden; }
  .r-body .ra .btn { padding: 0 9px; }
}
@media (max-width: 760px) {
  .prize-bar { grid-template-columns: 1fr 1fr; } .prize-bar .pb-race { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid rgba(255, 201, 61, .18); } .prize-bar b { font-size: 26px; }
  .room-row { grid-template-columns: 1fr auto; } .room-row .room-or { display: none; } .room-row input[type=text] { grid-column: 1; } 
  .h-prize { top: 100px; height: 28px; padding: 0 10px; } .h-prize b { font-size: 15px; } .h-prize span { display: none; } .h-lobby { top: 136px; width: calc(100% - 20px); margin-left: 0; left: 10px; }
  .claim { right: 10px; left: 10px; bottom: 10px; width: auto; } .spec span { display: none; } .ca span { display: none; }
}

/* ---- v3: X button, contract address in the header ---- */
.x-btn svg { width: 17px; height: 17px; } .x-btn:hover svg { fill: #fff; }
.ca span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; } .ca #caLong { display: none; }
@media (min-width: 1500px) { .ca #caLong { display: inline; } .ca #caShort { display: none; } }
@media (max-width: 760px) { .ca #caShort { display: inline; } .ca { padding: 0 9px; gap: 6px; } .nav { gap: 12px; padding: 0 14px; } .nav-right { gap: 8px; } .logo-word { font-size: 25px; } }
.foot-x { display: inline-flex; align-items: center; gap: 8px; color: #dfe4ee; font-weight: 600; } .foot-x svg { width: 15px; height: 15px; fill: currentColor; } .foot-x:hover { color: #fff; }

.pb-race > span em { font-style: normal; color: var(--gold); } .pb-race li b { font-size: 22px; }

/* ---- v5: quick play + prize rooms ---- */
.btn.gold { border-color: rgba(255, 201, 61, .55); color: #ffe6a3; background: rgba(255, 201, 61, .1); } .btn.gold:hover { background: rgba(255, 201, 61, .2); border-color: var(--gold); }
.h-pos .pos span em { font-style: italic; } .h-lobby b { width: 170px; }

/* ---- v6: pages (Play, Rooms, Leaderboard, Stats, Profile, Docs), the economy strip, the new logo ---- */
.view { display: none; } .view.on { display: block; }
.logo-svg { height: 23px; width: auto; fill: #fff; filter: drop-shadow(0 0 12px rgba(240, 70, 27, .65)); }
.foot .logo-svg { height: 18px; }
.nav-links a.on { color: #fff; background: rgba(255, 255, 255, .09); box-shadow: inset 0 -2px 0 var(--accent); }
body:not([data-view="play"]) .nav { background: rgba(6, 7, 11, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.me-chip { height: 38px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; max-width: 170px; transition: background .15s; }
.me-chip:hover, .me-chip.on { background: rgba(255, 255, 255, .11); } .me-chip i { width: 14px; height: 14px; border-radius: 5px; background: var(--c, #888); box-shadow: 0 0 10px var(--c, transparent); flex: none; } .me-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { background: var(--bg); min-height: 100vh; position: relative; }
.page-head { position: relative; padding: calc(var(--nav-h) + 54px) 0 44px; border-bottom: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 140% at 85% 0%, rgba(240, 70, 27, .22), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(80, 60, 255, .16), transparent 60%), linear-gradient(#0b0d15, #07080d); }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 26px); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-head .wrap { position: relative; z-index: 1; }
.kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--accent-hi); margin-bottom: 10px; }
.page-head h1 { font: italic 900 clamp(48px, 7vw, 92px)/.9 var(--disp); margin: 0 0 14px; text-shadow: none; letter-spacing: .01em; }
.page-head p { max-width: 640px; color: #b9c0ce; font-size: 16px; }
.page-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-actions .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
.code-in { height: 46px; width: 96px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 5, 9, .7); color: #fff; font: 700 16px var(--ui); letter-spacing: .18em; text-align: center; text-transform: uppercase; outline: none; }
.code-in:focus { border-color: var(--accent); }
.band.flat { border-top: 0; padding: 40px 0 96px; }
.band.eco { background: linear-gradient(var(--bg), #090b12); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { position: relative; padding: 18px 18px 16px; border-radius: var(--r); background: linear-gradient(160deg, #10131d, #0a0c13); border: 1px solid var(--line); display: grid; gap: 6px; min-width: 0; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), transparent); }
.tile span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { font: italic 800 38px/1 var(--disp); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile i { font-style: normal; font-size: 11.5px; color: var(--dim); }
.tiles .tile:nth-child(1) b, .tiles .tile:nth-child(2) b { color: var(--gold); } .tiles.five .tile:nth-child(5) b, .tiles.six .tile:nth-child(3) b, .tiles.five .tile:nth-child(6) b { color: #ff7a3d; }
.flow { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { position: relative; padding: 22px 20px; border-radius: var(--r); background: #0c0e16; border: 1px solid var(--line); }
.step em { font: italic 900 15px/1 var(--disp); color: var(--accent-hi); letter-spacing: .1em; } .step h3 { font: italic 800 30px/1 var(--disp); margin: 8px 0 8px; } .step p { color: #b3bac8; font-size: 14.5px; } .step p b { color: #fff; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.eco-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; } .eco-cta .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
.stats-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stats-grid .table { padding: 14px 14px 8px; }
.rec-body li, .feed-body li { display: grid; align-items: center; gap: 12px; height: 46px; padding: 0 6px; border-radius: 9px; }
.rec-body li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .rec-body li:nth-child(odd), .feed-body li:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.rec-body span { font-weight: 700; } .rec-body em { font-style: normal; color: var(--mute); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rec-body b { font: 700 21px/1 var(--disp); font-variant-numeric: tabular-nums; }
.feed-body { min-height: 138px; } .feed-body li { grid-template-columns: 96px minmax(0, 1fr) auto; }
.feed-body i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--mute); } .feed-body i.paid { color: var(--gold); } .feed-body i.burn { color: #ff7a3d; } .feed-body i.fund { color: var(--green); }
.feed-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; } .feed-body a, .feed-body b { font: 700 20px/1 var(--disp); font-variant-numeric: tabular-nums; } .feed-body a { color: var(--gold); } .feed-body a:hover { text-decoration: underline; }
.feed-body .empty, .rec-body .empty { display: grid; place-items: center; grid-template-columns: 1fr; height: 138px; color: var(--mute); background: none !important; text-align: center; font-size: 14px; }
li.link { cursor: pointer; transition: background .12s; } li.link:hover { background: rgba(255, 74, 28, .12) !important; }
.t-body .num.gold { color: var(--gold); }
.prof-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(140deg, var(--c, #ff4a1c), #0c0e16 160%); display: grid; place-items: center; font: italic 900 60px/1 var(--disp); color: #fff; box-shadow: 0 0 40px color-mix(in srgb, var(--c, #ff4a1c) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); flex: none; }
.prof-id { min-width: 0; flex: 1; } .prof-id h1 { margin: 0 0 6px; font-size: clamp(40px, 6vw, 76px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-ranks { display: flex; gap: 12px; } .prof-ranks div { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 10, 16, .6); display: grid; gap: 4px; min-width: 132px; }
.prof-ranks span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--mute); } .prof-ranks b { font: italic 800 34px/1 var(--disp); }
.prof-side { padding: 14px; } .prof-side[hidden] { display: none; }
.prof-side form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; } .prof-side input { height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(4, 5, 9, .7); color: #fff; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 0 12px; outline: none; min-width: 0; } .prof-side input:focus { border-color: var(--gold); } .prof-side .btn { height: 44px; }
.pf-note { font-size: 12.5px; color: var(--mute); margin-top: 8px; min-height: 18px; } .pf-note.warn { color: #ffb38f; } .pf-gap { margin-top: 20px; }
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; padding: 10px; border-radius: var(--r); background: #0b0d14; border: 1px solid var(--line); }
.docs-nav a { padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: #b9c0ce; transition: background .12s, color .12s; } .docs-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; } .docs-nav a.on { background: rgba(255, 74, 28, .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.docs-body { max-width: 760px; } .docs-body article { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); } .docs-body article:last-child { border-bottom: 0; }
.docs-body h2 { font: italic 900 44px/1 var(--disp); margin: 0 0 16px; padding-left: 16px; position: relative; } .docs-body h2::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 6px; background: var(--accent); transform: skewX(-14deg); }
.docs-body h4 { margin: 20px 0 6px; font-size: 16px; } .docs-body p, .docs-body li { color: #c3c9d6; font-size: 15.5px; line-height: 1.65; } .docs-body p + p { margin-top: 12px; } .docs-body b { color: #fff; }
.docs-body ul, .docs-body ol { list-style: revert; padding-left: 22px; margin: 10px 0; display: grid; gap: 7px; } .docs-body a { color: var(--cyan); font-weight: 600; } #docCoin { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: #ffe6a3; word-break: break-all; }
.foot-links { display: flex; gap: 18px; } .foot-links a:hover { color: #fff; }
@media (max-width: 1100px) { .tiles, .tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { display: none; } .stats-grid { grid-template-columns: 1fr; } .docs { grid-template-columns: 1fr; gap: 20px; } .docs-nav { position: static; grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1020px) { .nav-links { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 2px; justify-content: space-around; background: rgba(6, 7, 11, .94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } .nav-links a { padding: 9px 8px; font-size: 12.5px; } body.playing .nav-links { display: none; } .foot { padding-bottom: 84px; } .me-chip span { display: none; } .me-chip { padding: 0 11px; } }
@media (max-width: 760px) { .tiles, .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow { grid-template-columns: 1fr; } .tile b { font-size: 30px; } .page-head { padding: calc(var(--nav-h) + 30px) 0 30px; } .avatar { width: 72px; height: 72px; font-size: 44px; border-radius: 20px; } .prof-ranks div { min-width: 0; flex: 1; } .prof-ranks { width: 100%; } .docs-body h2 { font-size: 34px; } .feed-body li { grid-template-columns: 80px minmax(0, 1fr) auto; } }

/* ---- v7: a calmer, tighter hero. The live race is the picture; the text column stays out of its way. ---- */
.hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 0; gap: 0; align-items: stretch; }
.hero-in { flex: 1; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr) 290px; align-items: center; column-gap: 28px; width: min(1180px, 100% - 48px); margin: 0 auto; padding: calc(var(--nav-h) + 20px) 0 24px; }
.hero-main { grid-column: 1; min-width: 0; }
.hero h1 { font-size: clamp(38px, 4.5vw, 66px); line-height: .94; margin: 16px 0 12px; letter-spacing: .01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-hi); }
.hero .lead { max-width: 430px; font-size: 15.5px; line-height: 1.5; color: #c9cfdb; }
.hero .join { margin-top: 20px; width: 100%; padding: 16px; border-radius: 16px; background: rgba(10, 12, 18, .78); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hero .field input { height: 42px; font-size: 15px; } .hero .swatches { height: 42px; grid-template-columns: repeat(8, 22px); gap: 6px; } .hero .swatches button { width: 22px; height: 22px; border-radius: 6px; }
.hero .cta { margin-top: 14px; height: 52px; font-size: 23px; border-radius: 11px; box-shadow: 0 10px 28px rgba(255, 74, 28, .34), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hero .room-row { margin-top: 10px; grid-template-columns: auto auto 1fr 78px auto; gap: 8px; } .hero .room-row .btn { height: 38px; font-size: 13px; padding: 0 13px; } .hero .room-row input[type=text] { height: 38px; font-size: 14px; }
.hero .join-note { margin-top: 10px; font-size: 12px; text-align: left; }
.hero .coin-line { margin-top: 12px; width: 100%; }
.hero .live-panel { grid-column: 3; align-self: end; padding: 12px 12px 8px; background: rgba(10, 12, 18, .7); }
.hero .live-panel .rows li { height: 27px; font-size: 13px; }
.hero-strip { border-top: 1px solid var(--line); background: rgba(6, 7, 11, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hero-strip .wrap { display: grid; grid-template-columns: 1.1fr 1.5fr 1.2fr .7fr .7fr; }
.hs { padding: 16px 20px 15px; display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 86px; } .hs + .hs { border-left: 1px solid var(--line); } .hs:first-child { padding-left: 0; }
.hs span { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; color: var(--mute); white-space: nowrap; }
.hs b { font: italic 800 27px/1 var(--disp); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hs b em, .hs i em { font-style: inherit; }
.hs.gold b { color: var(--gold); } .hs i { font-style: normal; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hs i em { color: #dfe4ee; font-weight: 700; font-style: normal; } .hs i[hidden] { display: none; }
.stage-shade { background: linear-gradient(90deg, rgba(6, 7, 11, .93) 0%, rgba(6, 7, 11, .78) 26%, rgba(6, 7, 11, .22) 50%, rgba(6, 7, 11, 0) 64%), linear-gradient(0deg, rgba(6, 7, 11, .55) 0%, rgba(6, 7, 11, 0) 22%, rgba(6, 7, 11, 0) 82%, rgba(6, 7, 11, .7) 100%); }
.nav-links a.on { box-shadow: none; background: rgba(255, 255, 255, .1); }
@media (max-width: 1020px) { .hero-in { grid-template-columns: 1fr; padding-bottom: 20px; } .hero .live-panel { display: none; } .hero-strip .wrap { grid-template-columns: repeat(3, 1fr); } .hs:nth-child(n+4) { display: none; } .hs:first-child { padding-left: 20px; } .hero-strip .wrap { width: 100%; }
  .stage-shade { background: linear-gradient(0deg, rgba(6, 7, 11, .9) 0%, rgba(6, 7, 11, .6) 45%, rgba(6, 7, 11, .5) 100%); } }
@media (max-width: 760px) { .hero-strip .wrap { grid-template-columns: 1fr 1fr; } .hs:nth-child(3) { display: none; } .hs { padding: 12px 16px; min-height: 70px; } .hs b { font-size: 22px; } .hero .room-row { grid-template-columns: 1fr auto; } .hero .room-row .room-gap { display: none; } .hero .join-row { grid-template-columns: 1fr; } }
@media (min-width: 1021px) { .hero h1 { white-space: nowrap; } }
