:root {
  --ink: #07080a;
  --panel: rgba(14, 17, 20, .86);
  --panel-2: rgba(24, 28, 33, .9);
  --line: rgba(255, 255, 255, .09);
  --text: #eef2ee;
  --dim: #8d968f;
  --acc: #c6ff3d;       /* nitro lime */
  --acc-ink: #0b1200;
  --hot: #ff5a1f;       /* ember */
  --cool: #35d6ff;
  --bad: #ff3b4e;
  --skew: -12deg;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--text); font-family: var(--display); overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
[hidden] { display: none !important; }

/* ── backdrop: night road, original art drawn in CSS ───────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-city {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(198, 255, 61, .13), transparent 60%),
    radial-gradient(60% 40% at 82% 8%, rgba(255, 90, 31, .16), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, rgba(53, 214, 255, .10), transparent 70%),
    linear-gradient(180deg, #0b0e12 0%, #07080a 55%, #050506 100%);
}
.bg-road {
  position: absolute; left: -20%; right: -20%; bottom: -8%; height: 62%;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 9.6%, rgba(255,255,255,.05) 9.6% 9.8%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.07) 46px 48px);
  animation: road 1.1s linear infinite;
  mask-image: linear-gradient(0deg, #000 10%, transparent 92%);
  opacity: .8;
}
@keyframes road { to { background-position: 0 0, 0 48px; } }
.bg-streaks {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, transparent 0 46%, rgba(198,255,61,.07) 46.2% 46.5%, transparent 46.7%),
    linear-gradient(100deg, transparent 0 71%, rgba(255,90,31,.08) 71.1% 71.3%, transparent 71.5%),
    linear-gradient(100deg, transparent 0 18%, rgba(255,255,255,.04) 18.1% 18.25%, transparent 18.4%);
  background-size: 220% 100%;
  animation: streak 7s linear infinite;
}
@keyframes streak { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.bg-grain {
  position: absolute; inset: -50%; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(3%, -2%);} 50% { transform: translate(-2%, 3%);} 75% { transform: translate(2%, 2%);} }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.72)); }
@media (prefers-reduced-motion: reduce) { .bg-road, .bg-streaks, .bg-grain { animation: none; } }

/* ── HUD ───────────────────────────────────────────────────────────────── */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 26px;
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0)); }
.logo { font-weight: 900; font-size: 30px; letter-spacing: 1px; transform: skewX(var(--skew)); display: flex; align-items: center; gap: 6px; }
.logo i { font-style: normal; background: var(--acc); color: var(--acc-ink); padding: 0 9px; }
.hud-title { flex: 1; font-weight: 800; font-size: 22px; letter-spacing: 6px; color: var(--dim); text-transform: uppercase; transform: skewX(var(--skew)); }
.hud-title::before { content: '// '; color: var(--acc); }
.hud-right { display: flex; align-items: center; gap: 18px; }
.hud-stat { display: flex; align-items: center; gap: 9px; }
.hud-stat label { font-size: 13px; letter-spacing: 3px; color: var(--dim); font-weight: 700; }
.hud-stat b { font-family: var(--mono); font-size: 22px; color: var(--acc); font-weight: 400; text-shadow: 0 0 14px rgba(198,255,61,.5); }
.heat { display: flex; gap: 3px; transform: skewX(var(--skew)); }
.heat s { width: 12px; height: 20px; background: rgba(255,255,255,.12); }
.heat s.on { background: var(--hot); box-shadow: 0 0 10px rgba(255,90,31,.8); }
.heat.max s.on { animation: pulse .5s steps(2) infinite; }
@keyframes pulse { 50% { background: #fff; } }
.hud-btn { background: rgba(255,255,255,.06); border: 0; padding: 7px 14px; font-weight: 700; letter-spacing: 2px; font-size: 14px; cursor: pointer; transform: skewX(var(--skew)); color: var(--text); }
.hud-btn:hover, .hud-btn:focus-visible { background: var(--acc); color: var(--acc-ink); outline: 0; }

.keys { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: 44px; display: flex; align-items: center; gap: 22px; padding: 0 26px;
  font-size: 15px; letter-spacing: 2px; color: var(--dim); font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0)); }
.keys kbd { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,.12); color: var(--text); padding: 2px 8px; margin-right: 7px; transform: skewX(var(--skew)); display: inline-block; }

/* ── stage ─────────────────────────────────────────────────────────────── */
.stage { position: fixed; z-index: 2; top: 64px; bottom: 44px; left: 0; right: 0; padding: 10px 26px 8px; overflow: hidden; }
.screen { height: 100%; display: flex; flex-direction: column; gap: 14px; animation: slidein .28s cubic-bezier(.2,.9,.2,1); min-height: 0; }
@keyframes slidein { from { opacity: 0; transform: translateX(46px) skewX(-3deg); filter: blur(4px);} to { opacity: 1; transform: none; filter: none;} }
.h1 { font-weight: 900; font-size: 54px; line-height: .9; text-transform: uppercase; transform: skewX(var(--skew)); transform-origin: left; letter-spacing: 1px; margin: 0; }
.h1 small { display: block; font-size: 17px; letter-spacing: 5px; color: var(--acc); font-weight: 700; margin-bottom: 6px; }
.sub { color: var(--dim); font-size: 18px; letter-spacing: 1px; margin: 0; font-weight: 600; }
.row { display: flex; gap: 14px; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.grow { flex: 1; min-height: 0; min-width: 0; }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--acc) transparent; }

.panel { background: var(--panel); backdrop-filter: blur(6px); padding: 14px 16px; position: relative; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); min-height: 0; min-width: 0; }
.panel > h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: 4px; color: var(--dim); font-weight: 700; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; }
.panel > h3 em { font-style: normal; color: var(--acc); }
.mono { font-family: var(--mono); }
.acc { color: var(--acc); } .hot { color: var(--hot); } .dim { color: var(--dim); } .bad { color: var(--bad); } .cool { color: var(--cool); }
.tag { display: inline-block; padding: 1px 9px; font-size: 13px; letter-spacing: 2px; font-weight: 800; transform: skewX(var(--skew)); background: rgba(255,255,255,.1); text-transform: uppercase; white-space: nowrap; }
.tag.live { background: var(--acc); color: var(--acc-ink); }
.tag.off { background: rgba(255,255,255,.1); color: var(--dim); }
.tag.draft { background: var(--cool); color: #00222c; }
.tag.warn { background: var(--hot); color: #1c0700; }

/* ── boot / login ──────────────────────────────────────────────────────── */
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; }
.boot .big { font-weight: 900; font-size: clamp(70px, 13vw, 190px); line-height: .8; transform: skewX(var(--skew)); letter-spacing: 2px; text-shadow: 0 10px 60px rgba(198,255,61,.25); }
.boot .big i { font-style: normal; background: var(--acc); color: var(--acc-ink); padding: 0 .12em; margin-left: .08em; }
.boot .tagline { letter-spacing: 9px; color: var(--dim); font-size: 18px; font-weight: 700; }
.press { letter-spacing: 6px; font-size: 22px; font-weight: 800; animation: blink 1s steps(2) infinite; cursor: pointer; background: none; border: 0; }
@keyframes blink { 50% { opacity: .15; } }
.login { width: min(430px, 92vw); display: flex; flex-direction: column; gap: 12px; text-align: left; }
.field label { display: block; font-size: 13px; letter-spacing: 3px; color: var(--dim); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; background: rgba(255,255,255,.07); border: 0; border-left: 4px solid var(--dim); padding: 10px 12px; font-size: 19px; font-weight: 600; outline: 0; font-family: var(--display); letter-spacing: .5px; color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; font-size: 17px; line-height: 1.35; }
.field select option { background: #15181c; }
.field input:focus, .field textarea:focus, .field select:focus { border-left-color: var(--acc); background: rgba(198,255,61,.08); }
.btn { background: var(--acc); color: var(--acc-ink); border: 0; padding: 10px 26px; font-weight: 900; font-size: 20px; letter-spacing: 3px; cursor: pointer; transform: skewX(var(--skew)); text-transform: uppercase; }
.btn:hover, .btn:focus-visible { filter: brightness(1.15); outline: 2px solid #fff; outline-offset: 2px; }
.btn.ghost { background: rgba(255,255,255,.1); color: var(--text); }
.btn.danger { background: var(--hot); color: #1c0700; }
.btn[disabled] { opacity: .4; cursor: default; }
.err { color: var(--bad); font-weight: 700; letter-spacing: 1px; min-height: 22px; font-size: 17px; }

/* ── hub carousel ──────────────────────────────────────────────────────── */
.hub { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.rail { display: flex; gap: 16px; align-items: center; justify-content: center; height: 46vh; min-height: 250px; }
.card { flex: 0 0 13.5%; height: 72%; background: var(--panel); border: 0; cursor: pointer; text-align: left; padding: 16px; transform: skewX(var(--skew)); transition: all .22s cubic-bezier(.2,.9,.2,1); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; color: var(--dim); }
.card > * { transform: skewX(calc(var(--skew) * -1)); }
.card .no { position: absolute; top: 8px; left: 14px; font-family: var(--mono); font-size: 15px; color: var(--dim); }
.card svg { position: absolute; top: 12%; left: 50%; width: 62%; margin-left: -31%; opacity: .32; stroke: currentColor; fill: none; stroke-width: 2.4; }
.card b { font-size: 25px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; line-height: 1; }
.card span { font-family: var(--mono); font-size: 13px; margin-top: 6px; white-space: nowrap; }
.card.sel { flex-basis: 21%; height: 100%; background: linear-gradient(170deg, rgba(198,255,61,.22), rgba(14,17,20,.94) 55%); color: var(--text); box-shadow: inset 0 0 0 3px var(--acc), 0 20px 70px rgba(198,255,61,.18); }
.card.sel b { font-size: 40px; color: var(--acc); }
.card.sel svg { opacity: .95; color: var(--acc); }
.card.sel span { font-size: 16px; color: var(--text); }
.hub-desc { text-align: center; font-size: 22px; color: var(--dim); letter-spacing: 1px; font-weight: 600; min-height: 30px; }
.hub-desc b { color: var(--text); }

/* ── dials / KPIs ──────────────────────────────────────────────────────── */
.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dial { background: var(--panel); border: 0; padding: 8px 8px 12px; text-align: center; cursor: pointer; position: relative; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); color: var(--text); }
.dial.sel { background: linear-gradient(180deg, rgba(198,255,61,.2), var(--panel) 70%); box-shadow: inset 0 3px 0 var(--acc); }
.dial svg { width: 100%; max-width: 170px; display: block; margin: 0 auto -18px; }
.dial .val { font-family: var(--mono); font-size: 30px; line-height: 1; }
.dial .lab { font-size: 14px; letter-spacing: 3px; color: var(--dim); font-weight: 700; text-transform: uppercase; margin-top: 5px; }
.dial .delta { font-family: var(--mono); font-size: 14px; margin-top: 2px; }
.needle { transform-origin: 100px 100px; transition: transform 1s cubic-bezier(.2,1.4,.3,1); }

.bars { display: flex; flex-direction: column; gap: 7px; }
.bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 16px; font-weight: 600; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { display: block; height: 12px; background: rgba(255,255,255,.08); transform: skewX(var(--skew)); position: relative; }
.bar i u { position: absolute; inset: 0 auto 0 0; background: var(--acc); text-decoration: none; transition: width .7s cubic-bezier(.2,.9,.2,1); }
.bar i u.hotfill { background: var(--hot); } .bar i u.coolfill { background: var(--cool); }
.bar b { font-family: var(--mono); font-weight: 400; font-size: 15px; }

.big-num { font-family: var(--mono); font-size: 44px; line-height: 1; color: var(--acc); text-shadow: 0 0 22px rgba(198,255,61,.35); }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat label { font-size: 13px; letter-spacing: 3px; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.stat b { font-family: var(--mono); font-size: 26px; font-weight: 400; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-end; }

svg.chart { width: 100%; height: 100%; display: block; overflow: visible; }
svg.chart text { font-family: var(--mono); font-size: 11px; fill: var(--dim); }

/* ── lists / ladder ────────────────────────────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 5px; }
.li { display: grid; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(255,255,255,.035); border: 0; text-align: left; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--text); width: 100%; position: relative; }
.li:hover { background: rgba(255,255,255,.08); }
.li.sel { background: linear-gradient(90deg, var(--acc) 0 6px, rgba(198,255,61,.16) 6px, rgba(198,255,61,.03)); }
.li .rank { font-family: var(--mono); font-size: 26px; color: var(--dim); width: 44px; }
.li.sel .rank { color: var(--acc); }
.li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; font-weight: 800; letter-spacing: .5px; }
.li .num { font-family: var(--mono); text-align: right; font-size: 16px; }
.li small { color: var(--dim); font-weight: 600; letter-spacing: 1px; display: block; font-size: 13px; text-transform: none; }
.thead { display: grid; gap: 12px; padding: 0 14px 4px; font-size: 12px; letter-spacing: 3px; color: var(--dim); font-weight: 700; text-transform: uppercase; }
.thead span:not(:nth-child(-n+2)) { text-align: right; }

/* ── route (funnel) ────────────────────────────────────────────────────── */
.route { position: relative; height: 230px; }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stop { position: absolute; transform: translate(-50%, calc(-100% + 13px)); background: none; border: 0; cursor: pointer; text-align: center; color: var(--dim); padding: 0; }
.stop .pin { width: 26px; height: 26px; margin: 10px auto 0; background: #1b1f24; transform: rotate(45deg); box-shadow: inset 0 0 0 3px var(--dim); transition: all .2s; }
.stop b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 400; color: var(--text); }
.stop span { font-size: 14px; letter-spacing: 3px; font-weight: 800; text-transform: uppercase; }
.stop.sel { color: var(--acc); }
.stop.sel .pin { background: var(--acc); box-shadow: 0 0 0 6px rgba(198,255,61,.25), 0 0 30px var(--acc); transform: rotate(45deg) scale(1.25); }

/* ── garage ────────────────────────────────────────────────────────────── */
.track { display: flex; flex-direction: column; gap: 6px; }
.cp { display: grid; grid-template-columns: 34px 92px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; background: rgba(255,255,255,.035); border: 0; text-align: left; cursor: pointer; color: var(--text); width: 100%; font-size: 17px; font-weight: 600; }
.cp.sel { background: linear-gradient(90deg, var(--acc) 0 6px, rgba(198,255,61,.16) 6px, rgba(198,255,61,.03)); }
.cp .ix { font-family: var(--mono); color: var(--dim); }
.cp .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp .ttl small { display: block; color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.cp.dirty .ix::after { content: '*'; color: var(--hot); }

/* ── overlay / toast / wipe ────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(720px, 100%); max-height: 88vh; overflow: auto; background: #101317; padding: 22px 24px; box-shadow: inset 0 4px 0 var(--acc), 0 40px 120px rgba(0,0,0,.8); display: flex; flex-direction: column; gap: 14px; animation: pop .2s cubic-bezier(.2,1.3,.3,1); }
@keyframes pop { from { transform: scale(.94) skewX(-2deg); opacity: 0; } }
.modal h2 { margin: 0; font-size: 34px; font-weight: 900; text-transform: uppercase; transform: skewX(var(--skew)); transform-origin: left; line-height: 1; }
.modal h2 small { display: block; font-size: 14px; letter-spacing: 4px; color: var(--acc); margin-bottom: 4px; }
.modal p { margin: 0; font-size: 18px; color: var(--dim); font-weight: 600; line-height: 1.35; }
.modal .actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.modal ul { margin: 0; padding-left: 20px; font-size: 17px; font-weight: 600; color: var(--text); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 62px; transform: translateX(-50%) skewX(var(--skew)); background: var(--acc); color: var(--acc-ink); font-weight: 900; letter-spacing: 2px; padding: 10px 24px; font-size: 18px; text-transform: uppercase; animation: pop .2s; max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; }
.wipe { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: linear-gradient(100deg, transparent 0 30%, var(--acc) 30% 34%, #fff 34% 35%, transparent 35%); background-size: 300% 100%; background-position: 150% 0; opacity: 0; }
.wipe.go { animation: wipe .34s ease-out; }
@keyframes wipe { 0% { background-position: 150% 0; opacity: .9; } 100% { background-position: -50% 0; opacity: 0; } }
.loading { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 26px; letter-spacing: 8px; font-weight: 800; color: var(--dim); animation: blink 1s steps(2) infinite; }

@media (max-width: 900px) {
  .hud-title, .hud-stat label { display: none; }
  .row { flex-direction: column; }
  .rail { overflow-x: auto; justify-content: flex-start; }
  .card { flex-basis: 34%; } .card.sel { flex-basis: 52%; }
  .stage { overflow: auto; } .screen { height: auto; }
  .h1 { font-size: 38px; }
}

/* ══ main menu scene ═══════════════════════════════════════════════════ */
.bg-scan { position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.hub2 { position: relative; height: 100%; }
.scene { position: absolute; inset: -10px -26px -8px; overflow: hidden; }
.sky { position: absolute; left: 0; right: 0; height: 300px; overflow: hidden; }
.sky-run { display: flex; height: 300px; animation: drift linear infinite; }
.sky-run svg { flex: 0 0 50%; height: 300px; }
.sky-far { bottom: 42%; opacity: .9; } .sky-far .sky-run { animation-duration: 90s; }
.sky-mid { bottom: 38%; } .sky-mid .sky-run { animation-duration: 38s; }
.sky-near { bottom: -190px; opacity: .96; filter: blur(2px); } .sky-near .sky-run { animation-duration: 5s; }
@keyframes drift { to { transform: translateX(-50%); } }
.horizon { position: absolute; left: 0; right: 0; bottom: 38%; height: 3px; background: linear-gradient(90deg, transparent, var(--acc) 30%, #fff 55%, var(--hot) 80%, transparent); box-shadow: 0 0 40px 8px rgba(198,255,61,.35); }
.horizon::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 44vh; background: linear-gradient(180deg, rgba(12,15,18,.96), rgba(5,6,7,.98)); }
.lane { position: absolute; left: 0; right: 0; bottom: 23%; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 90px, transparent 90px 230px); animation: lane .34s linear infinite; filter: blur(1px); }
@keyframes lane { to { background-position: -230px 0; } }
.car { position: absolute; right: 3%; bottom: 25%; width: min(56vw, 900px); overflow: visible; filter: drop-shadow(0 24px 30px rgba(0,0,0,.8)); }
.car-body { animation: bob .28s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(1.6px); } }
.wheel { animation: spin .22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.beam { animation: beam 2.6s steps(1) infinite; }
@keyframes beam { 0%, 100% { opacity: .9; } 47% { opacity: .9; } 48% { opacity: .55; } 50% { opacity: .9; } }
.pass { position: absolute; height: 3px; width: 34vw; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; animation: pass 2.8s linear infinite; }
.pass.p1 { bottom: 44%; } .pass.p2 { bottom: 30%; animation-delay: .9s; background: linear-gradient(90deg, transparent, var(--hot), transparent); } .pass.p3 { bottom: 60%; animation-delay: 1.7s; background: linear-gradient(90deg, transparent, var(--cool), transparent); height: 2px; }
@keyframes pass { 0% { right: -40vw; opacity: 0; } 10% { opacity: .9; } 45% { right: 110vw; opacity: 0; } 100% { right: 110vw; opacity: 0; } }

.hub-top { position: absolute; left: 0; top: 2px; max-width: 46vw; z-index: 2; }
.hub-kicker { font-size: 17px; letter-spacing: 6px; font-weight: 700; color: var(--acc); transform: skewX(var(--skew)); transform-origin: left; }
.hub-title { font-weight: 900; font-size: clamp(64px, 9.4vw, 150px); line-height: .84; text-transform: uppercase; transform: skewX(var(--skew)); transform-origin: left; letter-spacing: -1px; margin-top: 6px;
  background: linear-gradient(180deg, #fff 0 46%, #aeb6b0 50%, #f4f7f3 54%, #7d857f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(198,255,61,.22)); white-space: nowrap; }
.hub-title.in { animation: titlein .32s cubic-bezier(.2,1.3,.3,1); }
@keyframes titlein { 0% { opacity: 0; transform: skewX(-30deg) translateX(-70px); letter-spacing: 24px; filter: blur(8px); } }
.hub-live { display: inline-block; margin-top: 14px; background: var(--acc); color: var(--acc-ink); font-size: 22px; padding: 3px 16px; transform: skewX(var(--skew)); min-width: 40px; }
.hub2 .hub-desc { text-align: left; margin-top: 12px; font-size: 20px; max-width: 520px; color: #c3cbc5; text-shadow: 0 2px 8px #000; min-height: 0; }

.hub-side { position: absolute; right: 0; top: 0; width: min(330px, 30vw); z-index: 2; box-shadow: inset 0 3px 0 var(--acc); }
.sheet-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--dim); letter-spacing: .5px; }
.sheet-row b { font-family: var(--mono); font-weight: 400; font-size: 18px; color: var(--text); }
.sheet-row b.acc { color: var(--acc); } .sheet-row b.hot { color: var(--hot); }
.vs { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 9px; align-items: center; }
.vs label { font-size: 12px; letter-spacing: 3px; color: var(--dim); font-weight: 700; text-transform: uppercase; grid-column: 1 / -1; }
.vs i { height: 12px; background: rgba(255,255,255,.08); transform: skewX(var(--skew)); position: relative; display: block; }
.vs i u { position: absolute; inset: 0 auto 0 0; background: var(--acc); box-shadow: 0 0 14px rgba(198,255,61,.6); transition: width .8s cubic-bezier(.2,.9,.2,1); }
.vs i u.was { background: #6a726c; box-shadow: none; }
.vs b { font-family: var(--mono); font-weight: 400; font-size: 17px; }

.strip-wrap { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; z-index: 3; }
.strip { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.tile { width: 118px; height: 84px; background: rgba(10,12,15,.88); border: 0; transform: skewX(var(--skew)); cursor: pointer; color: var(--dim); position: relative; transition: all .18s cubic-bezier(.2,1.2,.3,1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); padding: 0; }
.tile > * { transform: skewX(calc(var(--skew) * -1)); }
.tile svg { position: absolute; left: 50%; top: 50%; width: 56px; margin: -22px 0 0 -28px; stroke: currentColor; fill: none; stroke-width: 3.2; }
.tile .no { position: absolute; top: 4px; left: 9px; font-family: var(--mono); font-size: 12px; font-style: normal; }
.tile b { position: absolute; left: 0; right: 0; bottom: -26px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: 0; white-space: nowrap; text-align: center; }
.tile.sel { width: 176px; height: 124px; background: linear-gradient(180deg, var(--acc), #86b81c); color: var(--acc-ink); box-shadow: 0 0 0 3px #fff, 0 0 60px rgba(198,255,61,.55); margin-bottom: 18px; }
.tile.sel svg { width: 86px; margin: -34px 0 0 -43px; stroke-width: 3.6; }
.tile.sel b { opacity: 1; color: var(--text); bottom: -30px; font-size: 16px; }
.arrow { background: none; border: 0; color: var(--acc); font-size: 60px; line-height: 1; cursor: pointer; font-weight: 900; padding: 0 6px 34px; animation: nudge 1s ease-in-out infinite alternate; }
#hubNext { animation-direction: alternate-reverse; }
@keyframes nudge { to { transform: translateX(-7px); } }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; gap: 12px; z-index: 3; background: rgba(0,0,0,.6); padding: 0 8px; }
.ticker-win { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-in { display: inline-block; font-family: var(--mono); font-size: 15px; color: #cfd6d0; animation: tick 46s linear infinite; padding-left: 20px; }
.ticker-in em { font-style: normal; color: var(--acc); margin: 0 18px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ══ screen detail ═════════════════════════════════════════════════════ */
.wipe b { position: absolute; left: 0; top: 50%; transform: translateY(-50%) skewX(var(--skew)); font-size: clamp(90px, 17vw, 280px); font-weight: 900; text-transform: uppercase; color: rgba(255,255,255,.1); white-space: nowrap; letter-spacing: -2px; -webkit-text-stroke: 2px rgba(198,255,61,.5); }
.wipe.go b { animation: banner .5s cubic-bezier(.2,.8,.2,1); }
@keyframes banner { 0% { left: 100%; } 100% { left: -60%; } }
.wipe.go { animation: wipe .5s ease-out; }
.h1 { background: linear-gradient(180deg, #fff 0 48%, #b9c1bb 52%, #8a928c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(0,0,0,.55)); }
.h1 small { -webkit-text-fill-color: var(--acc); }
.panel::before { content: ''; position: absolute; left: 0; top: 0; width: 46px; height: 3px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.panel::after { content: ''; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, transparent 50%, rgba(198,255,61,.5) 50% 56%, transparent 56% 66%, rgba(198,255,61,.25) 66% 72%, transparent 72%); pointer-events: none; }
.dial, .li, .cp { animation: rowin .32s cubic-bezier(.2,.9,.2,1) backwards; }
.dial:nth-child(2), .li:nth-child(2), .cp:nth-child(2) { animation-delay: .04s; } .dial:nth-child(3), .li:nth-child(3), .cp:nth-child(3) { animation-delay: .08s; }
.dial:nth-child(4), .li:nth-child(4), .cp:nth-child(4) { animation-delay: .12s; } .dial:nth-child(5), .li:nth-child(5), .cp:nth-child(5) { animation-delay: .16s; }
.dial:nth-child(6), .li:nth-child(6), .cp:nth-child(6) { animation-delay: .2s; } .dial:nth-child(7), .li:nth-child(7), .cp:nth-child(7) { animation-delay: .24s; }
.dial:nth-child(n+8), .li:nth-child(n+8), .cp:nth-child(n+8) { animation-delay: .28s; }
@keyframes rowin { from { opacity: 0; transform: translateX(-26px); } }
.big-num, .dial .val, .stat b { animation: numin .5s cubic-bezier(.2,1.2,.3,1) backwards; }
@keyframes numin { from { opacity: 0; transform: translateY(10px) scale(1.25); filter: blur(5px); } }
.li.sel, .cp.sel { box-shadow: 0 0 26px rgba(198,255,61,.12); }
.cp.sel::after { content: '▶'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--acc); font-size: 11px; animation: blink 1s steps(2) infinite; }
.dial.sel { box-shadow: inset 0 3px 0 var(--acc), 0 0 34px rgba(198,255,61,.2); }
.cp { position: relative; }
@media (prefers-reduced-motion: reduce) { .sky-run, .lane, .wheel, .car-body, .pass, .ticker-in, .arrow { animation: none; } }
@media (max-width: 900px) {
  .hub-side { display: none; } .hub-top { max-width: 100%; } .car { width: 96vw; right: -8%; bottom: 20%; opacity: .8; }
  .strip { gap: 6px; height: 120px; } .tile { width: 46px; height: 60px; } .tile svg { width: 30px; margin: -12px 0 0 -15px; } .tile.sel { width: 96px; height: 90px; } .tile.sel svg { width: 54px; margin: -22px 0 0 -27px; }
  .arrow { display: none; } .hub2 { min-height: 560px; } .stage { overflow: hidden auto; }
}
