:root{--red: #e10600;--gold: #ffd100;--ink: #f4f6f8;--dim: #9aa4b2;--panel: rgba(10, 12, 16, .72);--line: rgba(255, 255, 255, .12);--font: "Titillium Web", "Segoe UI", Arial, sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#05070a;color:var(--ink);font-family:var(--font)}#game-container{position:fixed;top:0;right:0;bottom:0;left:0}#game-container canvas{display:block}.hidden{display:none!important}.panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.hud-small{font-size:13px;color:var(--dim);letter-spacing:.06em}.hud-small b{color:var(--ink)}.warn{color:#f59e0b}#hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}.bc-card{background:linear-gradient(180deg,#1a1d24f0,#0a0c10f0);border-left:3px solid var(--red);border-radius:2px 4px 4px 2px;box-shadow:0 3px 14px #00000080}.bc-label{font-size:10px;font-weight:700;letter-spacing:.22em;color:var(--dim);padding:6px 10px 2px;text-align:left}.gold{color:var(--gold)!important}.hud-tl{position:absolute;top:14px;left:14px;width:214px;overflow:hidden}.bc-pos{display:flex;align-items:center;gap:6px;background:#ffffff0a;border-bottom:1px solid var(--line)}.bc-posnum{background:#fff;color:#0b0d10;font-size:30px;font-weight:900;line-height:40px;padding:0 16px 0 10px;clip-path:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%);min-width:52px;text-align:center}.bc-posof{font-size:15px;font-weight:700;color:var(--dim)}.hud-lap{margin-left:auto;padding-right:10px;font-size:13px;font-weight:900;letter-spacing:.1em;color:var(--ink)}.bc-times{display:grid;grid-template-columns:auto 1fr;gap:1px 10px;padding:6px 10px 8px;font-size:13px}.bc-times span{color:var(--dim);font-weight:700;letter-spacing:.12em;font-size:11px;align-self:center}.bc-times b{text-align:right;font-weight:700}.bc-times .best-lap{color:#c084fc}.hud-tc{position:absolute;top:14px;left:50%;transform:translate(-50%);text-align:center;display:flex;flex-direction:column;align-items:center}.hud-gap{display:flex;align-items:stretch;background:linear-gradient(180deg,#1a1d24f0,#0a0c10f0);border-radius:2px;font-size:14px;font-weight:700;margin-bottom:4px;overflow:hidden;box-shadow:0 2px 8px #00000073}.hud-gap:empty{display:none}.hud-gap .g-tag{background:#fff;color:#0b0d10;font-size:10px;font-weight:900;letter-spacing:.12em;padding:0 10px 0 7px;display:flex;align-items:center;clip-path:polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%)}.hud-gap .g-bar{width:4px;margin:3px 0 3px 6px;box-shadow:0 0 0 1px #ffffff4d}.hud-gap .g-code{padding:3px 8px;letter-spacing:.08em;min-width:48px}.hud-gap .g-val{padding:3px 10px 3px 0;min-width:58px;text-align:right}.hud-gap.behind{opacity:.85}.hud-gap.behind .g-tag{background:#3a3f49;color:#fff}.hud-gap.lead .g-tag{background:var(--gold)}.hud-limits{color:#f59e0b;font-weight:700;font-size:14px;text-shadow:0 1px 4px #000}.flag{font-weight:900;letter-spacing:.12em}.flag.chequered{margin-top:6px;padding:4px 14px;color:#000;background:repeating-conic-gradient(#fff 0,#fff 25%,#000 0,#000 50%) 0 0 / 16px 16px;border-radius:4px;text-shadow:0 0 3px #fff,0 0 6px #fff}.flag.yellow{margin-top:6px;padding:4px 14px;background:#ffd100;color:#111;border-radius:4px}.flag.dyellow{margin-top:6px;padding:4px 14px;color:#111;border-radius:4px;background:repeating-linear-gradient(90deg,#ffd100 0,#ffd100 46%,#111 46%,#111 54%,#ffd100 54%,#ffd100)}.flag.blackwhite{margin-top:6px;padding:4px 14px;color:#fff;border-radius:4px;text-shadow:0 1px 3px #000;background:linear-gradient(135deg,#111 0,#111 50%,#f2f2f2 50%,#f2f2f2)}.dmg{display:inline-flex;flex-direction:column;align-items:center;gap:2px;margin-left:8px;vertical-align:top}.dmg span{font-size:9px;font-weight:900;letter-spacing:.16em;color:var(--dim)}.dmg-car{width:38px;height:70px}.dmg-car rect{fill:#22c55e;stroke:#0b0d10;stroke-width:1}.flag.blue{margin-top:6px;padding:4px 14px;background:#1f6fe0;border-radius:4px}.hud-msg{position:absolute;top:28%;left:50%;transform:translate(-50%);font-size:30px;font-weight:900;letter-spacing:.1em;text-shadow:0 2px 8px #000;opacity:0;transition:opacity .2s;white-space:nowrap}.hud-msg.on{opacity:1}.hud-pop{position:absolute;top:36%;left:50%;transform:translate(-50%);color:var(--gold);font-weight:900;font-size:20px;opacity:0;text-shadow:0 2px 6px #000}.hud-pop.on{animation:pop 1.6s ease-out forwards}@keyframes pop{0%{opacity:0;transform:translate(-50%,10px)}15%{opacity:1;transform:translate(-50%)}80%{opacity:1}to{opacity:0;transform:translate(-50%,-12px)}}.hud-tr{position:absolute;top:152px;left:14px;width:214px;font-size:13px;overflow:hidden}.tw-head{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.tw-brand{background:var(--red);color:#fff;font-weight:900;font-style:italic;letter-spacing:.06em;font-size:12px;padding:3px 14px 3px 8px;clip-path:polygon(0 0,100% 0,calc(100% - 8px) 100%,0 100%)}.tw-lap{font-weight:900;font-size:12px;letter-spacing:.12em}.tw-row{display:grid;grid-template-columns:22px 4px 1fr 18px 62px;gap:6px;align-items:center;height:23px;padding:0 8px 0 4px;font-weight:700}.tw-row:nth-child(odd){background:#ffffff09}.tw-row.me{background:#fff;color:#0b0d10}.tw-row.me .tw-gap{color:#0b0d10}.tw-pos{font-weight:900;text-align:center}.tw-swatch{width:4px;height:15px;box-shadow:0 0 0 1px #ffffff4d}.hud-tl .hud-lap{display:none}body.touch .hud-tl .hud-lap{display:block}@media (max-height: 500px){.hud-tl .hud-lap{display:block}}.tw-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.08em}.tw-tyre{font-weight:900;font-size:9px;text-align:center;width:16px;height:16px;line-height:10px;border-radius:50%;border:3px solid currentColor;background:#111;color:#fff}.tw-gap{text-align:right;color:var(--ink);font-weight:600}.hud-map{position:absolute;right:14px;top:14px;padding:0 6px 6px;text-align:center}#minimap{width:160px;height:160px;display:block}.wx-row{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--dim);padding:0 4px}.forecast{display:flex;gap:3px;justify-content:center}.wx{width:12px;height:8px;border-radius:1px;background:#f5c542}.wx.damp{background:#8fb8d8}.wx.wet{background:#3b82f6}.wx.heavy{background:#1e3a8a}.hud-bl{position:absolute;left:14px;bottom:14px;padding:0 12px 8px}.tyres{display:inline-flex;gap:14px;align-items:center}.tyre-car{position:relative;display:grid;grid-template-columns:36px 36px;gap:22px 26px;padding:4px 0}.tyre-car:before{content:"";position:absolute;left:50%;top:4px;bottom:4px;width:16px;transform:translate(-50%);border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#3a3f49,#22262d)}.tyre-car:after{content:"";position:absolute;left:30px;right:30px;top:22px;height:3px;background:#3a3f49;box-shadow:0 46px #3a3f49}.tyre{position:relative;display:block;height:40px;border-radius:6px;background:#22c55e;color:#000;font-weight:900;font-size:11px;text-align:center;line-height:40px;z-index:1}.tyre-info{display:flex;flex-direction:column;align-items:center;gap:4px}.tyre-letter{font-size:26px;font-weight:900;width:46px;height:46px;border-radius:50%;border:6px solid currentColor;display:grid;place-items:center;background:#0b0d10;box-shadow:inset 0 0 0 2px #2a2e36}.tyre-name{font-size:11px;font-weight:900;letter-spacing:.16em;color:var(--ink)}.hud-br{position:absolute;right:14px;bottom:14px;padding:8px 12px;width:262px}.rpm{height:7px;background:#1b1f25;overflow:hidden;-webkit-mask:repeating-linear-gradient(90deg,#000 0 14px,transparent 14px 16px);mask:repeating-linear-gradient(90deg,#000 0 14px,transparent 14px 16px)}.rpm-fill{height:100%;width:0;background:#22c55e}.tele{display:flex;align-items:center;gap:10px;margin:4px 0 2px}.pedals{display:flex;gap:4px;height:46px}.ped{width:7px;height:100%;background:#1b1f25;display:flex;align-items:flex-end}.ped i{display:block;width:100%;height:0;background:#22c55e}.ped.brk i{background:#ef4444}.spd{display:flex;align-items:baseline;gap:4px;flex:1;justify-content:flex-end}.speed{font-size:44px;font-weight:900;line-height:1;min-width:90px;text-align:right}.unit{color:var(--dim);font-size:11px;font-weight:700;letter-spacing:.1em}.gearbox{display:flex;flex-direction:column;align-items:center;gap:2px}.gear{font-size:34px;font-weight:900;color:#0b0d10;background:#fff;width:44px;line-height:44px;text-align:center;border-radius:3px}.trans{font-size:9px;font-weight:900;color:var(--dim);letter-spacing:.12em}.ers-row{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--dim)}.ers{flex:1;height:6px;background:#1b1f25;overflow:hidden}.ers-fill{height:100%;width:100%;background:#facc15}.drs{font-weight:900;padding:0 7px;border-radius:2px;border:1px solid #444;color:#555}.drs.ready{color:#22c55e;border-color:#22c55e}.drs.open{background:#22c55e;color:#000;border-color:#22c55e}.delta{font-size:18px;font-weight:900;text-align:right;min-height:22px}.hud-radio{position:absolute;left:50%;bottom:34px;transform:translate(-50%);display:none;align-items:center;gap:8px;max-width:min(620px,70vw);padding:6px 12px 6px 0;background:linear-gradient(180deg,#1a1d24f0,#0a0c10f0);border-left:3px solid var(--red);border-radius:2px;font-size:14px;font-weight:700;box-shadow:0 3px 12px #00000080}.hud-radio.on,.hud-radio.mic{display:flex}.hud-radio .r-tag{background:#fff;color:#0b0d10;font-size:10px;font-weight:900;letter-spacing:.16em;padding:4px 12px 4px 8px;clip-path:polygon(0 0,100% 0,calc(100% - 6px) 100%,0 100%)}.hud-radio .r-mic{display:none;color:#22c55e;font-size:10px;font-weight:900;letter-spacing:.16em}.hud-radio.mic .r-mic{display:inline;animation:pulse .8s infinite alternate}@keyframes pulse{0%{opacity:.4}to{opacity:1}}@media (prefers-reduced-motion: reduce){.hud-radio.mic .r-mic{animation:none}}.radio-menu{position:absolute;right:14px;bottom:200px;display:flex;flex-direction:column;gap:3px;padding:8px 12px;background:linear-gradient(180deg,#1a1d24f5,#0a0c10f5);border-left:3px solid var(--red);font-size:13px;font-weight:700;letter-spacing:.08em}.radio-menu b{font-size:10px;letter-spacing:.2em;color:var(--dim);margin-bottom:2px}.radio-menu i{display:inline-block;width:18px;font-style:normal;color:var(--gold)}.voice-pick select{flex:1;min-width:0;background:#12151a;color:var(--ink);border:1px solid #262a32;border-left:3px solid var(--red);border-radius:2px;padding:9px 10px;font-family:var(--font);font-weight:700;font-size:13px}.setup .opts.voice-pick button{min-width:0;flex-direction:row}.setup-note{margin:6px 0 0;font-size:11px;color:var(--dim);max-width:420px}.hud-keys{position:absolute;bottom:4px;left:50%;transform:translate(-50%);font-size:11px;color:#ffffff80;white-space:nowrap}#hud[data-view=cockpit] .hud-br{width:236px}#hud[data-view=cockpit] .speed{font-size:36px}#raindrops{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity 1s;background-image:radial-gradient(circle at 12% 22%,rgba(220,230,240,.35) 0 3px,transparent 4px),radial-gradient(circle at 72% 18%,rgba(220,230,240,.3) 0 2px,transparent 3px),radial-gradient(circle at 40% 64%,rgba(220,230,240,.25) 0 4px,transparent 5px),radial-gradient(circle at 86% 70%,rgba(220,230,240,.3) 0 3px,transparent 4px),radial-gradient(circle at 22% 84%,rgba(220,230,240,.25) 0 2px,transparent 3px),radial-gradient(circle at 58% 36%,rgba(220,230,240,.2) 0 2px,transparent 3px);background-size:340px 260px}#pit-menu{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);padding:16px 20px;text-align:center;z-index:20}.pit-title{font-weight:900;font-size:22px;letter-spacing:.1em;margin-bottom:10px}.pit-tyres{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-bottom:8px}.pit-tyres button,.opts button,button.ghost,button.cta{font-family:var(--font);font-weight:700;letter-spacing:.06em;cursor:pointer}.pit-tyres button{background:#15181d;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:8px 12px;display:flex;align-items:center;gap:6px}.pit-tyres button.on,.pit-tyres button:hover{border-color:var(--gold)}.tyre-dot{display:inline-block;width:16px;height:16px;border-radius:50%;border:4px solid;background:#111}.screen{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 50%,#00000040,#0009 70%,#000c);z-index:10;overflow-y:auto;padding:16px}.card{background:#080a0edb;border:1px solid var(--line);border-radius:12px;padding:24px 28px;text-align:center;max-width:460px;width:100%;box-shadow:0 10px 40px #0009}.card.wide{max-width:940px}.kicker{font-size:11px;font-weight:700;letter-spacing:.4em;color:var(--dim)}.race-title{margin:6px 0 4px;font-size:56px;font-weight:900;font-style:italic;letter-spacing:.04em;line-height:1;white-space:nowrap}.race-title span{display:inline-block;background-size:220% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:chromeSweep 3.2s linear infinite}.race-title .t1{background-image:linear-gradient(100deg,#9aa3ad,#e9eef3 30%,#fff 45%,#c9d0d8 55%,#7d8690)}.race-title .t2{background-image:linear-gradient(100deg,#8f0400,#e10600 30%,#ff6a5c,#e10600 60%,#8f0400);filter:drop-shadow(0 0 10px rgba(225,6,0,.35))}@keyframes chromeSweep{0%{background-position:120% center}to{background-position:-120% center}}@keyframes raceIn{0%{opacity:0;transform:translate(-120px) skew(-18deg);filter:blur(6px)}70%{opacity:1;transform:translate(8px) skew(-6deg);filter:blur(0)}to{opacity:1;transform:none}}@keyframes revealUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes loadPulse{0%,to{opacity:.25}50%{opacity:.7}}.title-intro .race-title{opacity:0}.title-intro.go .race-title{opacity:1;animation:raceIn .8s cubic-bezier(.2,.8,.2,1) both}.title-intro .title-card{background:transparent;border-color:transparent;box-shadow:none;transition:background .5s ease .8s,border-color .5s ease .8s}.title-intro.revealing .title-card{background:#080a0edb;border-color:var(--line)}.title-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.title-row button{margin:0}.title-intro .reveal{opacity:0;pointer-events:none}.title-intro.revealing .reveal{animation:revealUp .4s ease-out both}.title-intro.revealing .kicker{animation-delay:0s}.title-intro.revealing .tag{animation-delay:.12s}.title-intro.revealing .best{animation-delay:.24s}.title-intro.revealing #btn-race{animation-delay:.36s}.title-intro.revealing #btn-fullscreen{animation-delay:.42s}button.fs-btn{display:block;width:100%;padding:9px;font-size:13px;margin:0 0 8px}button.fs-btn.unsupported{display:none}.title-intro.revealing .title-row{animation-delay:.48s}.title-intro.revealing .home,.title-intro.revealing footer,.title-intro.revealing .help-btn{animation-delay:.6s}.title-intro:not(.go) .title-card:after{content:"LOADING";display:block;letter-spacing:.4em;font-size:12px;opacity:.55;animation:loadPulse 1.2s ease-in-out infinite}.help-btn{position:fixed;top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right));width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.5);background:#080a0eb3;color:#fff;font:900 22px var(--font);cursor:pointer;z-index:12}.help-btn:hover,.help-btn:focus-visible{border-color:var(--red);background:#e1060040}#title-screen .card,#pause-screen .card,#results-screen .card{position:relative}.music-toggle{position:absolute;top:8px;right:8px;z-index:2;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);background:#ffffff0a;color:var(--ink);cursor:pointer;padding:0}.music-toggle:hover,.music-toggle:focus-visible{border-color:var(--red);background:#e1060033;outline:none}.music-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.music-toggle .spk{fill:currentColor}.music-toggle .cross,.music-toggle.off .wave{display:none}.music-toggle.off .cross{display:inline}.music-toggle.off{opacity:.7}.title-intro.revealing .music-toggle{animation-delay:.6s}.help-card{text-align:left;max-width:720px}.help-card p{color:#c9ced6;line-height:1.5}.help-card .controls{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin:12px 0 16px;font-size:14px}.help-card .controls b{color:#fff}.help-tabs{display:flex;gap:6px;margin:4px 0 10px;flex-wrap:wrap}.help-tabs button{flex:1 1 auto;padding:8px 10px;font-size:12px;letter-spacing:.1em;background:#15181d;color:var(--dim);border:1px solid #2a2f37;border-bottom:2px solid transparent;border-radius:4px;cursor:pointer}.help-tabs button.on{color:#fff;border-bottom-color:var(--red);background:#1b1f26}.help-card .learn{max-height:min(56vh,520px);overflow-y:auto;padding-right:6px;font-size:14px;color:#c9ced6;line-height:1.45}.help-card .learn h3{margin:12px 0 6px;font-size:13px;letter-spacing:.12em;color:#fff}.help-card .learn ul{margin:6px 0;padding-left:18px}.help-card .learn li{margin:5px 0}.help-card .learn b{color:#fff}.learn-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}.learn-table th,.learn-table td{padding:4px 8px;text-align:center;border-bottom:1px solid #262a31}.learn-table th:first-child,.learn-table td:first-child{text-align:left}.learn-table th{color:var(--dim);font-size:11px;letter-spacing:.1em}.learn-table td.best{color:#22c55e;font-weight:800}.flag-list>div{display:grid;grid-template-columns:136px 1fr;gap:10px;align-items:start;margin:7px 0}.flag-list .flag{margin:0;padding:2px 6px;font-size:11px;text-align:center}.help-card .learn::-webkit-scrollbar{width:8px}.help-card .learn::-webkit-scrollbar-thumb{background:#3a3f47;border-radius:4px}.help-card .learn::-webkit-scrollbar-track{background:#12151a}@supports not selector(::-webkit-scrollbar){.help-card .learn{scrollbar-color:#3a3f47 #12151a}}.flag.sc,.flag.scin,.flag.vsc,.flag.vscend{margin-top:6px;padding:4px 14px;background:var(--gold);color:#111;border-radius:4px;border:2px solid #111}.flag.scin,.flag.vscend{animation:flagPulse .9s ease-in-out infinite alternate}.flag.red{margin-top:6px;padding:4px 14px;background:var(--red);color:#fff;border-radius:4px}#hud.quali #hud-tower,#hud.quali #hud-ahead,#hud.quali #hud-behind{display:none!important}.flag.quali{margin-top:6px;padding:4px 14px;background:#12151a;color:#fff;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:4px;font-variant-numeric:tabular-nums}.flag.green{margin-top:6px;padding:4px 14px;background:#16a34a;color:#fff;border-radius:4px}@keyframes flagPulse{0%{filter:brightness(1)}to{filter:brightness(1.35)}}@media (prefers-reduced-motion: reduce){.flag.scin,.flag.vscend{animation:none}}.suspended-card{max-width:520px;text-align:center}.qualiready-card{max-width:560px;text-align:center;background:#0a0c10f0}.qualiready-card .flag{display:inline-block;margin-bottom:8px}.qualiready-card ul{text-align:left;color:#c9ced6;line-height:1.55;margin:12px auto;max-width:440px;padding-left:18px}.qualiready-card button{width:100%;margin-top:6px}.suspended-card .flag{display:inline-block;margin-bottom:8px}.suspended-card p{color:#c9ced6;line-height:1.5}.suspended-count{margin:10px 0 14px;letter-spacing:.14em;color:var(--dim)}.suspended-count b{color:#fff;font-size:26px;margin-left:6px;font-variant-numeric:tabular-nums}.help-card .controls div>b:first-child{display:inline-block;min-width:64px}@media (prefers-reduced-motion: reduce){.race-title span,.title-intro.go .race-title,.title-intro.revealing .reveal{animation:none}.title-intro .reveal,.title-intro .race-title{opacity:1}}@media (max-width: 760px){.race-title{font-size:38px}.help-card .controls{grid-template-columns:1fr}}.logo{font-size:52px;font-weight:900;font-style:italic;letter-spacing:.04em;line-height:1}.logo span{color:var(--red)}.tag{color:var(--dim);margin:10px 0 18px}h2{margin:0 0 12px;font-weight:900;letter-spacing:.12em}h3{margin:0 0 6px;font-size:12px;color:var(--dim);letter-spacing:.14em;text-align:left}button.cta{display:block;width:100%;padding:14px;font-size:20px;color:#fff;background:var(--red);border:0;border-radius:8px;margin:8px 0}button.cta:hover{filter:brightness(1.15)}button.ghost{display:block;width:100%;padding:10px;font-size:15px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:8px;margin:8px 0}button.ghost:hover{border-color:var(--ink)}.best{margin:10px 0;letter-spacing:.12em;color:var(--dim)}.best b{color:var(--gold);font-size:20px}.controls-help{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:center;font-size:12px;color:var(--dim);margin:12px 0}.home{color:var(--dim);font-size:12px;letter-spacing:.12em;text-decoration:none}footer{margin-top:12px;font-size:11px;opacity:.55}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;text-align:left}.tune{display:grid;gap:8px;text-align:left;margin-top:10px}.tune .row{display:grid;grid-template-columns:150px 1fr 64px;align-items:center;gap:12px}.tune .row b{font-size:13px;letter-spacing:.08em}.tune .row small{grid-column:2 / 4;color:var(--dim);font-size:11px;margin-top:-4px}.tune .row output{font-variant-numeric:tabular-nums;font-weight:800;text-align:right}.tune input[type=range]{width:100%;accent-color:var(--red)}.tune-read{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.tune-read div{background:#12151a;border:1px solid var(--line);border-radius:6px;padding:8px 10px;text-align:left}.tune-read div span{display:block;color:var(--dim);font-size:10px;letter-spacing:.14em}.tune-read div b{font-size:18px;font-variant-numeric:tabular-nums}.tune-read div b.warn{color:#f59e0b}@media (max-width: 760px){.tune .row{grid-template-columns:110px 1fr 54px}.tune-read{grid-template-columns:1fr 1fr}}.setup-grid .span{grid-column:1 / -1}.circuits{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.circuit-card{background:#12151a;color:var(--ink);border:2px solid var(--line);border-radius:8px;padding:8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;font-family:var(--font)}.circuit-card svg{width:70px;height:70px;color:#cfd6de}.circuit-card b{font-size:14px}.circuit-card span{font-size:11px;color:var(--dim)}.circuit-card em{font-size:11px;color:#8fb8d8;font-style:normal}.circuit-card.on{border-color:var(--red);background:#1b1013}.opts{display:flex;flex-wrap:wrap;gap:6px}.opts button{background:#12151a;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:7px 12px;font-size:13px;display:flex;align-items:center;gap:6px;flex-direction:row}.opts button small{color:var(--dim);font-size:10px;margin-left:4px}.opts button.on{border-color:var(--red);background:#2a0f12}.sw{display:inline-block;width:14px;height:14px;border-radius:3px;border:3px solid;vertical-align:middle;margin-right:6px}.row{display:flex;gap:10px;margin-top:14px}.row button{margin:0}.results-wrap{max-height:46vh;overflow:auto;margin:10px 0}.results-wrap::-webkit-scrollbar{width:8px}.results-wrap::-webkit-scrollbar-thumb{background:#3a3f47;border-radius:4px}.results-wrap::-webkit-scrollbar-track{background:#12151a}@supports not selector(::-webkit-scrollbar){.results-wrap{scrollbar-color:#3a3f47 #12151a}}.screen::-webkit-scrollbar{width:8px}.screen::-webkit-scrollbar-thumb{background:#3a3f47;border-radius:4px}.screen::-webkit-scrollbar-track{background:transparent}@supports not selector(::-webkit-scrollbar){.screen{scrollbar-color:#3a3f47 transparent}}table{width:100%;border-collapse:collapse;font-size:14px}th{color:var(--dim);font-size:11px;letter-spacing:.1em;text-align:left;padding:4px 6px}td{padding:4px 6px;border-top:1px solid var(--line);text-align:left}tr.me td{background:#ffd10026}.results-score{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 14px;text-align:left}.results-score div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:13px}.results-score .total{grid-column:1 / -1;font-size:18px;color:var(--gold)}#touch-controls{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5}#touch-controls>*{pointer-events:auto}#touch-steer{position:absolute;left:calc(76px + env(safe-area-inset-left));bottom:0;width:calc(45% - 76px);height:62%;display:grid;place-items:center}#touch-steer span{color:#ffffff4d;font-size:11px;letter-spacing:.1em}#touch-steer-knob{position:absolute;width:70px;height:70px;border-radius:50%;border:2px solid rgba(255,255,255,.4);opacity:0;transform-origin:center;margin-left:-35px}#touch-steer-knob.on{opacity:1}.tbtn{position:absolute;font-family:var(--font);font-weight:700;color:#fff;background:#14161c80;border:1px solid rgba(255,255,255,.28);border-radius:12px;touch-action:none;-webkit-tap-highlight-color:transparent}.tbtn.down{background:#ffffff40}.tbtn.small{width:46px;height:34px;top:calc(6px + env(safe-area-inset-top));font-size:11px;border-radius:8px}#touch-pit{right:calc(8px + env(safe-area-inset-right))}#touch-cam{right:calc(60px + env(safe-area-inset-right))}#touch-pause{right:calc(112px + env(safe-area-inset-right))}#touch-drs,#touch-ers{left:calc(8px + env(safe-area-inset-left));width:60px;height:50px;font-size:13px}#touch-ers{bottom:calc(12px + env(safe-area-inset-bottom))}#touch-drs{bottom:calc(70px + env(safe-area-inset-bottom))}.tbtn.shift{display:none;width:62px;height:40px;font-size:22px;bottom:calc(146px + env(safe-area-inset-bottom))}#touch-controls.manual .tbtn.shift{display:block}#touch-up{right:calc(8px + env(safe-area-inset-right))}#touch-down{right:calc(76px + env(safe-area-inset-right))}.tbtn.pedal{bottom:calc(10px + env(safe-area-inset-bottom));width:62px;height:128px;font-size:11px}#touch-brake{right:calc(76px + env(safe-area-inset-right))}#touch-throttle{right:calc(8px + env(safe-area-inset-right));background:#22c55e52}body.touch .hud-keys,body.touch .hud-map,body.touch .hud-tr{display:none}body.touch .hud-tl{top:calc(6px + env(safe-area-inset-top));left:calc(6px + env(safe-area-inset-left));transform:scale(.6);transform-origin:top left}body.touch .hud-bl{bottom:auto;top:calc(104px + env(safe-area-inset-top));left:calc(6px + env(safe-area-inset-left));transform:scale(.46);transform-origin:top left}body.touch .hud-tc{top:calc(6px + env(safe-area-inset-top));transform:translate(-50%) scale(.82);transform-origin:top center}body.touch .hud-radio{bottom:calc(6px + env(safe-area-inset-bottom));top:auto;max-width:min(46vw,calc(100vw - 340px));font-size:12px;padding:4px 10px 4px 0}body.touch .hud-radio .r-tag{padding:3px 9px 3px 6px;font-size:9px}body.touch .hud-msg{top:30%;font-size:18px}body.touch .hud-br{top:calc(46px + env(safe-area-inset-top));bottom:auto;right:calc(8px + env(safe-area-inset-right));left:auto;transform:none;width:150px;padding:3px 8px 4px}body.touch .hud-br .rpm{height:4px}body.touch .hud-br .speed,body.touch .hud-br .gear{font-size:20px}body.touch .hud-br .speed{min-width:46px}body.touch .hud-br .gear{width:26px;line-height:26px}body.touch .hud-br .delta,body.touch .hud-br .pedals,body.touch .hud-br .trans{display:none}body.touch .hud-br .tele{margin:1px 0;gap:6px}body.touch .hud-br .ers-row{font-size:9px;gap:5px}body.touch #hud .hud-br{width:150px}body.touch #hud .hud-br .speed{font-size:20px}body.touch #hud-behind{display:none}body.touch #hud>#hud-flag{position:absolute;left:50%;bottom:calc(40px + env(safe-area-inset-bottom));transform:translate(-50%);margin:0;font-size:13px;white-space:nowrap}@media (max-width: 760px){.circuits{grid-template-columns:repeat(2,1fr)}.setup-grid{grid-template-columns:1fr}.logo{font-size:38px}.results-score{grid-template-columns:1fr}}@media (max-height: 500px){.card{padding:14px 18px}.hud-tr,.tag,.controls-help{display:none}.title-card{padding:10px 16px 8px}.title-card .race-title{font-size:38px;margin:2px 0}.title-card .best{margin:2px 0;font-size:13px}.title-card button.cta{padding:8px;font-size:17px;margin:6px 0}.title-card button.fs-btn{padding:6px;font-size:12px;margin:0 0 6px}.title-row{grid-template-columns:repeat(4,1fr);gap:6px}.title-row button{padding:6px 4px;font-size:10px;line-height:1.25}.title-card .home{margin-top:4px;font-size:10px}.title-card footer{font-size:9px;margin-top:2px}.title-card .music-toggle{top:6px;right:6px}}.setup{text-align:left;border-radius:4px;border-top:3px solid var(--red);padding:18px 24px 20px;background:linear-gradient(180deg,#14171df5,#080a0ef5)}.setup-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}.setup-top h2{margin:0;font-size:20px;letter-spacing:.16em}.setup-count{margin-left:auto;font-size:11px;font-weight:700;letter-spacing:.18em;color:var(--dim)}.steps{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:0 0 18px;padding:0}.steps button{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#12151a;border:0;border-bottom:3px solid #2a2e36;color:var(--dim);font-family:var(--font);font-weight:700;font-size:12px;letter-spacing:.14em;cursor:pointer;text-align:left}.steps b{font-size:16px;font-weight:900;color:#4b515c;font-style:italic}.steps li.done button{color:var(--ink);border-bottom-color:#7a1a1d}.steps li.done b{color:#9a9fa8}.steps li.on button{color:#fff;background:linear-gradient(180deg,#1d2027,#14171c);border-bottom-color:var(--red)}.steps li.on b{color:var(--red)}.step{display:none;min-height:250px;animation:stepIn .22s ease-out}.step.on{display:block}@keyframes stepIn{0%{opacity:0;transform:translate(14px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.step{animation:none}}.step section{margin-bottom:14px}.step h3{font-size:11px;letter-spacing:.22em;margin-bottom:8px;padding-left:8px;border-left:3px solid var(--red);color:#c9ced6}.setup .opts{gap:6px}.setup .opts button{border-radius:2px;padding:11px 16px;font-size:13px;letter-spacing:.1em;background:linear-gradient(180deg,#181b21,#111318);border:1px solid #262a32;border-left:3px solid #2f343d;min-width:110px;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}.setup .opts button small{margin-left:0;letter-spacing:.08em}.setup .opts button:hover{border-color:#3a3f49;border-left-color:#6b7078}.setup .opts button.on{border-color:#e106008c;border-left-color:var(--red);background:linear-gradient(90deg,#e1060047,#e106000a 70%),#121419;color:#fff}.setup #setup-team button,.setup #setup-tyre button{flex-direction:row;align-items:center}.setup .circuits{gap:8px}.setup .circuit-card{border-radius:2px;border:1px solid #262a32;border-top:3px solid #2f343d;padding:12px 8px 10px;background:linear-gradient(180deg,#181b21,#0f1115)}.setup .circuit-card svg{width:92px;height:92px}.setup .circuit-card b{font-size:14px;letter-spacing:.06em;text-transform:uppercase;margin-top:4px}.setup .circuit-card.on{border-color:#e106008c;border-top-color:var(--red);background:linear-gradient(180deg,#e1060038,#0f1115 75%)}.setup .circuit-card.on svg{color:#fff}.setup .row{justify-content:space-between;border-top:1px solid var(--line);padding-top:14px}.setup .row button{width:auto;min-width:150px;border-radius:2px;letter-spacing:.16em;font-size:15px;padding:12px 20px}.setup .row .cta{clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);padding-right:30px}.summary{display:grid;grid-template-columns:max-content 1fr;margin:0;border-left:3px solid var(--red);background:#ffffff05}.summary dt,.summary dd{margin:0;padding:9px 14px;border-bottom:1px solid var(--line)}.summary dt{font-size:11px;font-weight:700;letter-spacing:.2em;color:var(--dim)}.summary dd{font-weight:700;letter-spacing:.06em;display:flex;align-items:center;gap:8px}.summary dd small{color:var(--dim);font-weight:600;letter-spacing:.04em;margin-left:6px}@media (max-width: 760px){.steps button{font-size:0;gap:0;justify-content:center}.steps b{font-size:14px}.setup .row button{min-width:0;flex:1}}
