:root {
  --rust: #ff2d8a;           /* accento principale (rosa neon) */
  --neon: #19e6ff;           /* ciano */
  --sand: #e6ecff;
  --ink: #05060c;
  --panel: rgba(8, 10, 22, 0.84);
  --line: rgba(160, 190, 255, 0.22);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--sand);
  font-family: 'Chakra Petch', system-ui, sans-serif; user-select: none; }
#app canvas { display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
.hidden { display: none !important; }

/* ---------- caricamento ---------- */
.loading { background: radial-gradient(ellipse at 50% 40%, #1b1a46, #05060c 70%); }
.loadbar { margin-top: 40px; width: 320px; height: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.loadbar > div { width: 40%; height: 100%; background: linear-gradient(90deg, var(--neon), var(--rust)); animation: lb 1.1s ease-in-out infinite; }
@keyframes lb { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* ---------- menu titolo ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.title-screen { background: linear-gradient(180deg, rgba(5,6,12,.1) 0%, rgba(5,6,12,.0) 35%, rgba(5,6,12,.75) 100%),
  radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 30%, rgba(5,6,12,.7) 100%); }
.logo { font-family: 'Russo One', sans-serif; font-size: clamp(44px, min(9.5vw, 14vh), 140px); letter-spacing: .03em; line-height: .9;
  color: #fff; transform: skew(-8deg); text-align: center;
  text-shadow: 0 0 2px #fff, 0 0 18px var(--rust), 0 0 48px rgba(255,45,138,.7), 5px 6px 0 #3a0a3a; }
.logo small { display: block; font-size: .2em; color: var(--neon); letter-spacing: .55em; margin-top: 16px;
  text-shadow: 0 0 12px rgba(25,230,255,.8); }
.menu { margin-top: 3.5vh; display: flex; flex-direction: column; gap: 0.9vh; min-width: 460px; }
.menu .item { padding: 1vh 22px; border: 1px solid var(--line); background: var(--panel); font-size: clamp(15px, 2.6vh, 22px); font-weight: 700;
  display: flex; justify-content: space-between; gap: 24px; transform: skew(-8deg); backdrop-filter: blur(6px);
  transition: transform .12s, background .12s; }
.menu .item.sel { border-color: var(--neon); background: linear-gradient(90deg, rgba(25,230,255,.28), rgba(255,45,138,.18)); color: #fff;
  box-shadow: 0 0 22px rgba(25,230,255,.35), inset 0 0 0 1px rgba(25,230,255,.4); transform: skew(-8deg) translateX(10px); }
.menu .item.sel::before { content: '▶'; color: var(--neon); margin-right: -10px; }
.menu .item .val { color: var(--neon); }
.hint { margin-top: 2.5vh; opacity: .8; font-size: 15px; text-align: center; line-height: 1.6; }
.hint b { color: var(--neon); }
.ticker { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; background: rgba(255,45,138,.9); color: #fff; overflow: hidden;
  font-family: 'Russo One'; font-size: 16px; letter-spacing: .2em; display: flex; align-items: center; white-space: nowrap; }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- garage ---------- */
.garage { position: absolute; inset: 0; display: flex; }
.gpanel { flex: 1; position: relative; border-right: 2px solid var(--line); }
.gpanel:last-child { border-right: 0; }
.gpanel .gtitle { position: absolute; top: 18px; left: 24px; font-family: 'Russo One'; font-size: 26px; }
.gpanel.p0 .gtitle b { color: #ff3d8b; text-shadow: 0 0 14px rgba(255,61,139,.7); font-weight: normal; }
.gpanel.p1 .gtitle b { color: #19d8ff; text-shadow: 0 0 14px rgba(25,216,255,.7); font-weight: normal; }
.gpanel .gtitle span { color: var(--sand); font-size: 15px; margin-left: 12px; font-family: 'Chakra Petch'; opacity: .7; }
.gcar { position: absolute; top: 54px; left: 24px; font-family: 'Russo One'; font-size: clamp(34px, 5vw, 64px); color: #fff; line-height: 1;
  transform: skew(-8deg); text-shadow: 0 0 24px rgba(255,255,255,.25); }
.gcar small { display: block; font-family: 'Chakra Petch'; font-size: 15px; letter-spacing: .25em; color: var(--neon); margin-top: 6px; }
.gbox { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, 94%);
  background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 20px 60px rgba(0,0,0,.5); }
.garage.one .gbox { left: auto; right: 4vw; bottom: auto; top: 50%; transform: translateY(-50%); width: min(520px, 42vw); }
.garage.two .gcar { font-size: clamp(26px, 3.4vw, 44px); }
.grow { display: grid; grid-template-columns: 130px 1fr; align-items: center; padding: 6px 10px; border: 1px solid transparent; }
.grow.sel { border-color: var(--neon); background: linear-gradient(90deg, rgba(25,230,255,.2), rgba(25,230,255,.04)); }
.grow .lab { opacity: .65; font-size: 13px; letter-spacing: .12em; }
.grow .v { font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; align-items: center; }
.grow .v i { font-style: normal; color: var(--neon); }
.grow .sw { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.cls { font-style: normal; font-size: 11px; letter-spacing: .15em; padding: 2px 7px; margin-left: 10px; vertical-align: 3px; border-radius: 2px; color: #05060c; }
.cls.leggera { background: #7dff5a; } .cls.media { background: #ffd21f; } .cls.pesante { background: #ff5a3c; }
.gdesc { font-size: 13px; opacity: .72; padding: 2px 10px 6px 140px; min-height: 22px; }
.stats { display: grid; grid-template-columns: 130px 1fr; gap: 4px 0; margin: 10px 0 4px; padding: 0 10px; font-size: 13px; letter-spacing: .05em; }
.bar { height: 8px; background: rgba(255,255,255,.08); margin-top: 4px; transform: skew(-20deg); }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--neon), var(--rust)); transition: width .25s; box-shadow: 0 0 10px rgba(25,230,255,.5); }
.ready-btn { margin-top: 10px; text-align: center; font-family: 'Russo One'; font-size: 22px; padding: 8px; border: 1px solid var(--line); transform: skew(-8deg); }
.ready-btn.sel { border-color: var(--neon); box-shadow: 0 0 18px rgba(25,230,255,.35); }
.ready-btn.on { background: #2fbf5a; border-color: #9dffb4; color: #fff; }

/* ---------- HUD in gara ---------- */
.hud { position: absolute; overflow: hidden; }
.hud .pos { position: absolute; top: 10px; left: 18px; font-family: 'Russo One'; font-size: 70px; line-height: 1; color: #fff;
  text-shadow: 0 3px 0 #000; }
.hud .pos small { font-size: 28px; opacity: .7; }
.hud .lap { position: absolute; top: 86px; left: 20px; font-size: 24px; letter-spacing: .06em; font-weight: 700; text-shadow: 0 2px 0 #000; }
.hud .tag { position: absolute; top: 12px; right: 18px; font-family: 'Russo One'; font-size: 20px; padding: 2px 10px; color: #000; }
.hud .msg { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: 'Russo One'; font-size: 30px;
  color: #fff; text-shadow: 0 3px 0 #000; transition: opacity .3s; }
.hud .big { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-family: 'Russo One'; font-size: 110px;
  color: #fff; text-shadow: 0 0 20px var(--rust), 0 0 50px var(--rust), 0 6px 0 #000; }
.hud .flash { position: absolute; inset: 0; box-shadow: inset 0 0 120px rgba(255,0,0,.9); opacity: 0; transition: opacity .25s; }
.hud .feed { position: absolute; right: 18px; top: 50px; text-align: right; font-size: 14px; text-shadow: 0 2px 0 #000; }
.hud .wrecked { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #000; }
.split-line { position: absolute; left: 0; right: 0; height: 4px; background: #000; top: calc(50% - 2px); }
#minimap { width: 240px; height: 240px; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: rgba(5,6,16,.55); border: 1px solid var(--line); border-radius: 4px; }

/* ---------- pausa / risultati ---------- */
.overlay { background: rgba(0,0,0,.72); }
.results { background: var(--panel); border: 1px solid var(--neon); padding: 24px 30px; min-width: 560px; box-shadow: 0 0 40px rgba(25,230,255,.25); }
.results h2 { font-family: 'Russo One'; color: #fff; text-shadow: 0 0 18px var(--rust); margin: 0 0 14px; font-size: 38px; }
.results table { width: 100%; border-collapse: collapse; font-size: 18px; }
.results td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.results tr.human td { color: #fff; font-weight: 700; }

/* ---------------- comandi e regole */
.help-screen { z-index: 40; background: rgba(4, 4, 14, .9); overflow-y: auto; align-items: flex-start; }
.help { width: min(1180px, 94vw); margin: 4vh auto; }
.help h2 { font-family: 'Russo One'; font-size: clamp(30px, 4vw, 52px); text-align: center; margin: 0 0 18px; color: #fff;
  text-shadow: 0 0 16px var(--rust); }
.help-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 900px) { .help-cols { grid-template-columns: 1fr; } }
.help table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
.help th { font-size: 12px; letter-spacing: .2em; color: var(--neon); text-align: left; padding: 10px 10px 6px; }
.help td { padding: 7px 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 15px; vertical-align: middle; }
.help td:first-child { font-weight: 700; white-space: nowrap; }
.help td i, .keys i { font-style: normal; opacity: .5; margin: 0 4px; font-size: 12px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center; font-family: 'Chakra Petch', monospace; font-weight: 700;
  font-size: 13px; color: #fff; background: #1b1d33; border: 1px solid #4b4f7a; border-bottom-width: 3px; border-radius: 5px; }
.help .note { font-size: 13px; opacity: .75; margin: 10px 2px; }
.help-rules { display: grid; gap: 10px; }
.help .card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--rust); padding: 10px 14px; }
.help .card h3 { margin: 0 0 4px; font-family: 'Russo One'; font-size: 16px; letter-spacing: .08em; color: var(--neon); }
.help .card p, .help .card ul { margin: 0; font-size: 14px; line-height: 1.45; }
.help .card ul { padding-left: 18px; margin-top: 4px; }
.help .dot { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; box-shadow: 0 0 6px currentColor; }
.help .hint { text-align: center; margin-top: 16px; }

/* promemoria tasti in gara */
.hud .keys { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 14px; max-width: 62%; padding: 7px 14px; background: rgba(6, 8, 20, .72); border: 1px solid var(--line);
  font-size: 13px; transition: opacity 1.2s; }
.hud .keys span { white-space: nowrap; }
.hud .keys.off { opacity: 0; }

.hud .keys .dim { opacity: .6; font-size: .9em; }

/* ---------- cruscotto centrale ---------- */
.hud .dash { position: absolute; left: 50%; bottom: 8px; display: flex; align-items: flex-end; gap: 10px;
  transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 100%; pointer-events: none; }
.dash .wing { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.dash .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box;
  font-family: 'Russo One'; font-size: 12px; white-space: nowrap; color: #fff; background: #1a1f38; border: 1px solid rgba(255,255,255,.55); border-bottom-width: 3px; border-radius: 4px; }
.dash .btn.round { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid var(--c); color: var(--c); background: rgba(0,0,0,.55);
  font-size: 15px; box-shadow: 0 0 10px var(--c); }
/* armi (ala sinistra) */
.dash .wslot { width: 210px; padding: 6px 12px 7px 14px; background: linear-gradient(90deg, rgba(6,8,20,.4), rgba(6,8,20,.85));
  border-right: 3px solid var(--rust); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); transition: border-color .15s, opacity .2s; }
.dash .wtop { display: flex; align-items: center; gap: 8px; }
.dash .where { font-size: 11px; letter-spacing: .25em; opacity: .7; font-weight: 700; }
.dash .lv { margin-left: auto; color: #ff8a2a; font-size: 13px; letter-spacing: .1em; }
.dash .wname { font-family: 'Russo One'; font-size: 17px; letter-spacing: .04em; color: #fff; margin: 3px 0 4px; text-align: right; text-shadow: 0 2px 0 #000; }
.dash .cd { height: 4px; background: rgba(255,255,255,.12); }
.dash .cd > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--rust), #ff8a2a); }
.dash .wslot.ready { border-right-color: var(--neon); }
.dash .wslot.ready .cd > div { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.dash .wslot.locked, .dash .wslot.empty { opacity: .5; }
.dash .wslot.empty .wname { font-size: 13px; opacity: .7; }
/* tachimetro */
.dash .gauge { position: relative; width: 170px; height: 150px; }
.dash .gauge svg { width: 170px; height: 170px; position: absolute; top: 0; left: 0; filter: drop-shadow(0 0 6px rgba(0,0,0,.8)); }
.dash .gauge circle { fill: none; stroke-linecap: round; }
.dash .gauge .track { stroke: rgba(10,12,28,.8); stroke-width: 12; }
.dash .gauge .track.thin { stroke-width: 6; }
.dash .gauge .spd { stroke-width: 9; filter: drop-shadow(0 0 4px rgba(25,230,255,.8)); transition: stroke-dasharray .08s linear; }
.dash .gauge .hpa { stroke-width: 5; transition: stroke-dasharray .2s, stroke .3s; }
.dash .gauge .num { position: absolute; left: 0; right: 0; top: 52px; text-align: center; font-family: 'Russo One'; font-size: 44px; line-height: 1;
  color: #fff; text-shadow: 0 0 12px rgba(25,230,255,.6), 0 3px 0 #000; font-style: italic; }
.dash .gauge .unit { position: absolute; left: 0; right: 0; top: 98px; text-align: center; font-size: 12px; letter-spacing: .3em; opacity: .75; font-weight: 700; }
.dash .gauge .hpt { position: absolute; left: 0; right: 0; top: 126px; text-align: center; font-size: 10px; letter-spacing: .3em; opacity: .55; font-weight: 700; }
.dash.boost .gauge .num { color: #9fe8ff; text-shadow: 0 0 18px #3a8bff, 0 0 30px #3a8bff, 0 3px 0 #000; }
.dash.low .gauge .hpt { color: #ff3b3b; opacity: 1; animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
/* nitro / mine / scudo (ala destra) */
.dash .it { width: 160px; display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; background: linear-gradient(270deg, rgba(6,8,20,.4), rgba(6,8,20,.85));
  border-left: 3px solid var(--neon); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.dash .it span { font-size: 12px; letter-spacing: .2em; font-weight: 700; opacity: .8; }
.dash .it i { margin-left: auto; font-style: normal; font-family: 'Russo One'; font-size: 17px; color: #fff; }
.dash .it.nitro { border-left-color: #3a8bff; } .dash .it.nitro i { color: #7fb4ff; }
.dash .it.mine { border-left-color: #ff3b3b; }
.dash .it.shield { border-left-color: var(--neon); } .dash .it.shield i { color: var(--neon); }
.dash .it.on { background: linear-gradient(270deg, rgba(25,230,255,.15), rgba(25,230,255,.45)); }
.dash .it.none { opacity: .45; }

/* ---------- monete e negozio ---------- */
.gpanel .coins { position: absolute; top: 14px; right: 62px; font-family: 'Russo One'; font-size: 30px; color: #ffd23a;
  text-shadow: 0 0 14px rgba(255,190,40,.6), 0 3px 0 #000; z-index: 2; }
.gpanel .coins small { font-size: 13px; letter-spacing: .2em; color: var(--sand); opacity: .75; }
.grow .price { margin-left: 10px; font-size: .8em; color: #ff8a8a; font-family: 'Russo One'; }
.grow .price.can { color: #ffd23a; }
.grow.locked .v span { opacity: .85; }
.gdesc.buy { color: #ffd23a; } .gdesc.buy.no { color: #ff9a9a; }
.ready-btn.off { opacity: .55; font-size: 15px; }
.hud .feed .coin { color: #ffd23a; font-family: 'Russo One'; }
.results .earn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 12px; padding: 8px 12px; background: rgba(255,210,58,.08);
  border-left: 3px solid #ffd23a; font-size: 14px; }
.results .earn span i { font-style: normal; color: #ffd23a; }
.results .earn strong { margin-left: auto; font-family: 'Russo One'; font-size: 22px; color: #ffd23a; }
.results .wallet { margin-top: 10px; font-size: 14px; opacity: .85; } .results .wallet b { color: #ffd23a; }
.hud .laptime { position: absolute; top: 116px; left: 20px; display: flex; flex-direction: column; gap: 1px; font-size: 13px; letter-spacing: .08em;
  font-weight: 700; text-shadow: 0 2px 0 #000; }
.hud .laptime b { font-family: 'Russo One'; font-size: 20px; color: #fff; letter-spacing: .02em; }
.hud .laptime span { opacity: .8; } .hud .laptime span:last-child { color: #ffd23a; }
.grow { position: relative; }
.grow .name-input { position: absolute; inset: 2px 2px 2px 130px; background: #0b0f22; color: #fff; border: 2px solid var(--neon);
  font-family: 'Russo One'; font-size: 18px; letter-spacing: .08em; text-align: center; text-transform: uppercase; outline: none; box-shadow: 0 0 14px rgba(25,230,255,.5); }

/* ---------- scelta pista ---------- */
.tsel { background: radial-gradient(ellipse at 50% 40%, rgba(5,6,12,.55), rgba(5,6,12,.92)); padding: 2vh 3vw; box-sizing: border-box; }
.tsel h2, .recbox h2 { font-family: 'Russo One'; font-size: clamp(28px, 5vh, 48px); margin: 0; color: #fff; text-shadow: 0 0 16px var(--rust); transform: skew(-8deg); }
.tsel .sub { color: var(--neon); letter-spacing: .3em; font-size: 14px; margin: 4px 0 2vh; font-weight: 700; }
.tsel-body { display: flex; gap: 24px; align-items: stretch; max-height: 72vh; }
.tlist { width: 300px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); padding: 8px; scrollbar-width: thin; }
.tgroup { font-family: 'Russo One'; font-size: 12px; letter-spacing: .3em; margin: 8px 6px 4px; }
.titem { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; font-weight: 700; font-size: 16px; border: 1px solid transparent; }
.titem span { opacity: .5; font-size: 12px; } .titem i { margin-left: auto; font-style: normal; opacity: .6; font-size: 12px; }
.titem.sel { border-color: var(--neon); background: linear-gradient(90deg, rgba(25,230,255,.25), rgba(255,45,138,.12)); color: #fff; }
.tcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); padding: 12px 16px; min-width: 0; }
.tcard canvas { width: min(560px, 46vw); height: auto; max-height: 40vh; object-fit: contain; align-self: center; }
.tname { font-family: 'Russo One'; font-size: 30px; color: #fff; display: flex; align-items: center; gap: 14px; }
.diff { font-family: 'Russo One'; font-size: 13px; letter-spacing: .2em; padding: 3px 10px; color: #05060c; background: var(--c); box-shadow: 0 0 12px var(--c); transform: skew(-8deg); }
.tstats { display: flex; gap: 22px; margin: 6px 0; font-size: 14px; opacity: .9; } .tstats b { color: var(--neon); font-size: 18px; }
.tlaps { margin: 8px 0 4px; font-family: 'Russo One'; font-size: 15px; letter-spacing: 2px; color: #cfd6ff; display: flex; align-items: center; gap: 10px; } .tlaps b { color: var(--neon); font-size: 24px; min-width: 22px; text-align: center; } .tl-btn { cursor: pointer; color: var(--neon); padding: 0 6px; user-select: none; } .tl-btn:hover { color: #fff; }
.tfeat { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.tfeat em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 2px 8px; border: 1px solid var(--line); background: rgba(255,45,138,.12); }
.trec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trec > div { font-size: 11px; letter-spacing: .2em; opacity: .9; border-left: 3px solid #ffd23a; padding-left: 10px; }
.trec b { display: block; font-family: 'Russo One'; font-size: 24px; color: #ffd23a; letter-spacing: .02em; }
.trec small { letter-spacing: .05em; font-size: 13px; opacity: .8; }

/* ---------- classifiche ---------- */
.recs { overflow-y: auto; }
.recbox { background: var(--panel); border: 1px solid var(--neon); padding: 18px 26px; min-width: min(980px, 92vw); max-height: 92vh; overflow-y: auto; box-sizing: border-box; }
.recbox h3 { font-family: 'Russo One'; font-size: 14px; letter-spacing: .2em; color: var(--neon); margin: 12px 0 6px; }
.rtrack { display: flex; align-items: center; gap: 12px; font-family: 'Russo One'; font-size: 22px; color: #fff; margin-top: 8px; }
.rcols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.recbox table { width: 100%; border-collapse: collapse; font-size: 14px; }
.recbox td, .recbox th { padding: 4px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.recbox th { font-size: 11px; letter-spacing: .15em; color: var(--neon); }
.recbox tr.top td { color: #ffd23a; } .recbox td b { font-family: 'Russo One'; }
.recbox td em { font-style: normal; font-size: 10px; color: var(--rust); border: 1px solid var(--rust); padding: 0 3px; }
.recbox .none { opacity: .55; text-align: center; padding: 10px; }

/* ---------- fine gara ---------- */
.results h2 small { font-size: 16px; color: var(--neon); letter-spacing: .2em; margin-left: 10px; }
.results tr.th td { font-size: 11px; letter-spacing: .15em; color: var(--neon); }
.results td.fast { color: #c77dff; font-weight: 700; }
.results .news { margin-top: 8px; padding: 6px 12px; background: rgba(255,210,58,.14); border: 1px solid #ffd23a; color: #fff; font-size: 15px; }
.results .rmenu { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 16px; min-width: 0; }
.results .rmenu .item { font-size: 16px; padding: 8px 16px; }

/* mouse nei menu */
.screen, .garage .gpanel { pointer-events: auto; }
.menu .item, .titem, .grow, .ready-btn, .rtrack b, [data-d] { cursor: pointer; }
.menu .item .val b, .grow .v i, .rtrack b { padding: 0 6px; font-weight: inherit; }
.menu .item .val b:hover, .grow .v i:hover, .rtrack b:hover { color: #fff; }
/* resoconto: MOMENTI MIGLIORI */
.results { max-height: 96vh; overflow-y: auto; }
.results .momentsrow { display: flex; gap: 12px; margin-top: 12px; }
.results .moments { flex: 1; padding: 8px 12px; background: rgba(25,230,255,.07); border: 1px solid rgba(25,230,255,.35); }
.results .moments h3 { margin: 0 0 6px; font-family: 'Russo One'; font-size: 13px; letter-spacing: .18em; color: var(--neon); font-weight: normal; }
.results .moments .mo { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; font-size: 15px; color: #fff; }
.results .moments .mo i { font-style: normal; width: 22px; text-align: center; }
.results .moments .mo span { flex: 1; }
.results .moments .mo b { font-size: 12px; opacity: .6; font-weight: normal; font-variant-numeric: tabular-nums; }

/* schermo diviso fianco a fianco: linea verticale, minimappa in basso al centro */
.split-line.vert { left: calc(50% - 2px); right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
#minimap.vert { right: auto; left: 50%; top: auto; bottom: 10px; transform: translateX(-50%); width: 200px; height: 200px; }
/* pulsante schermo intero (in alto a destra) */
.fs-btn { position: fixed; top: 8px; right: 8px; z-index: 50; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; color: #fff;
  background: rgba(5,6,16,.55); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; opacity: .55; transition: opacity .2s; }
.fs-btn:hover { opacity: 1; border-color: var(--neon); }
.hud .tag { right: 56px; }

/* ---------- replay degli highlight ---------- */
.replay { position: absolute; inset: 0; pointer-events: none; --fade: 1; }
.replay::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--fade); }
.replay .bar { position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 1; }
.replay .bar.top { top: 0; } .replay .bar.bot { bottom: 0; }
.replay .rtag { position: absolute; top: calc(9vh + 14px); left: 22px; z-index: 2; font-family: 'Russo One'; font-size: 20px; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 0 #000; }
.replay .rtag::first-letter { color: #ff3b3b; }
.replay .rtag b { color: var(--neon); font-weight: normal; margin-left: 6px; }
.replay .rtag span { opacity: .6; margin-left: 8px; font-size: 16px; }
.replay.slow .rtag::after { content: 'RALLENTATORE'; margin-left: 14px; font-size: 14px; color: #ffd23a; letter-spacing: .25em; }
.replay .rcap { position: absolute; left: 0; right: 0; bottom: calc(9vh + 18px); z-index: 2; text-align: center; font-family: 'Russo One'; font-size: 26px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,.8); }
.replay .rcap i { font-style: normal; } .replay .rcap small { font-size: 16px; color: var(--neon); margin-left: 6px; }
.replay .rhint { position: absolute; right: 22px; bottom: calc(4.5vh - 8px); z-index: 2; font-size: 14px; color: #bbb; letter-spacing: .05em; }
.replay .rcap div { opacity: .35; transition: opacity .3s, transform .3s; transform: scale(.85); }
.replay .rcap div.on { opacity: 1; transform: none; }

/* ---------- account scaryrobot ---------- */
.acct { pointer-events: auto; display: flex; align-items: center; justify-content: center; z-index: 20; }
.acct .abox { background: var(--panel); border: 1px solid var(--neon); box-shadow: 0 0 40px rgba(25,230,255,.25); padding: 26px 32px; width: min(520px, 92vw); max-height: 92vh; overflow: auto; color: #dfe6ff; }
.acct h2 { font-family: 'Russo One'; color: #fff; margin: 0 0 14px; font-size: 30px; text-shadow: 0 0 18px var(--rust); display: flex; justify-content: space-between; align-items: baseline; }
.acct h2 small { font-size: 13px; letter-spacing: .25em; color: var(--neon); text-shadow: none; }
.acct p { line-height: 1.45; margin: 0 0 12px; } .acct p.small { font-size: 13px; opacity: .7; } .acct p.who { font-size: 26px; font-family: 'Russo One'; color: #fff; margin: 0; }
.acct a { color: var(--neon); }
.acct label { display: block; margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; color: #aab4d8; } .acct label small { opacity: .7; }
.acct input, .acct select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 9px 11px; font: 700 18px 'Chakra Petch', sans-serif; color: #fff;
  background: #0b0d1f; border: 1px solid var(--line); border-radius: 3px; outline: none; }
.acct input:focus, .acct select:focus { border-color: var(--neon); box-shadow: 0 0 12px rgba(25,230,255,.35); }
.acct .abtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.acct button { font: 700 15px 'Chakra Petch', sans-serif; letter-spacing: .06em; padding: 10px 16px; color: #dfe6ff; background: #14173a; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.acct button.main { background: var(--rust); border-color: var(--rust); color: #fff; }
.acct button:hover, .acct button:focus { border-color: var(--neon); outline: none; box-shadow: 0 0 12px rgba(25,230,255,.35); }
.acct button:disabled { opacity: .5; cursor: default; }
.acct .amsg { min-height: 20px; color: #ff6b6b; font-weight: 700; } .acct .amsg.ok { color: #3be36b; }
.rtab { display: inline-flex; gap: 6px; margin-left: 16px; font-size: 13px; letter-spacing: .1em; vertical-align: middle; cursor: pointer; }
.rtab b { padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; font-weight: 700; opacity: .55; text-shadow: none; }
.rtab b.on { opacity: 1; border-color: var(--neon); color: var(--neon); }
.grow .v em.acc { font-style: normal; font-size: 11px; letter-spacing: .15em; color: var(--neon); border: 1px solid var(--neon); padding: 1px 5px; border-radius: 3px; margin-left: 8px; }
.news.world { color: #7fe6ff; }
