:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#f4f7ff;--muted:#a0b1b8;--surface:#10202bed;--line:#d3e9ef28;--accent:#63ceff;--ice:#69d9ff;font-synthesis:none;color:var(--ink);background:#101928;font-family:Avenir Next,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--ice);outline-offset:4px}button{color:inherit}#view{position:fixed;inset:0}#view canvas{width:100%;height:100%;display:block}#hud{pointer-events:none;background:linear-gradient(#091c3344 0%,#0000 26% 70%,#0412226b 100%);padding:28px 36px;position:fixed;inset:0}.topbar{justify-content:space-between;align-items:center;gap:24px;display:flex}.brand{letter-spacing:.12em;align-items:center;gap:12px;font-size:25px;font-style:italic;font-weight:850;display:flex}.brand svg{width:32px;height:32px}.edition{letter-spacing:.18em;border-left:1px solid var(--line);color:#f2f0e4;padding-left:18px;font:10px SFMono-Regular,Consolas,monospace}.top-right{align-items:center;gap:20px;display:flex}.session{letter-spacing:.16em;text-transform:uppercase;align-items:center;gap:9px;font-size:11px;display:flex}.dot{background:var(--ice);border-radius:50%;width:6px;height:6px;box-shadow:0 0 12px #baf9e677}.icon-btn{pointer-events:auto;border:1px solid var(--line);background:#10202b80;border-radius:3px;width:44px;height:44px;font-size:16px}.race-info{position:absolute;top:120px;left:36px}.eyebrow{letter-spacing:.18em;color:var(--muted);text-transform:uppercase;font:10px SFMono-Regular,Consolas,monospace}.race-info .eyebrow{color:#f2f0e4}.lap-readout{font-variant-numeric:tabular-nums;letter-spacing:-.05em;font-size:54px;font-style:italic;font-weight:650;line-height:1.25}.lap-readout small{letter-spacing:.05em;opacity:.65;font-size:16px}.clock{letter-spacing:.06em;font:14px SFMono-Regular,Consolas,monospace}.sector{text-align:center;position:absolute;top:127px;left:50%;transform:translate(-50%)}.sector span{letter-spacing:.22em;font:10px SFMono-Regular,Consolas,monospace}.sector i{background:var(--accent);width:45px;height:2px;margin:12px auto;display:block}.minimap{background:radial-gradient(circle,#101d2940,#06142180);border:1px solid #8ddcff65;border-radius:50%;width:184px;height:184px;padding:10px;position:absolute;bottom:75px;left:28px}.map-title{letter-spacing:.16em;font:10px SFMono-Regular,Consolas,monospace;position:absolute;bottom:67px;left:36px}.speedometer{width:240px;position:absolute;bottom:88px;right:36px}.speed-num{text-shadow:0 2px 22px #08142688;letter-spacing:-.085em;font-variant-numeric:tabular-nums;text-align:right;font-size:94px;font-style:italic;font-weight:450;line-height:1}.unit{color:#d6e3e4;letter-spacing:.15em;justify-content:space-between;margin:8px 0 18px;font:10px SFMono-Regular,Consolas,monospace;display:flex}.boost-line{background:#0b2135aa;border:1px solid #80d9ff88;height:18px;padding:3px;overflow:hidden;transform:skew(-20deg);box-shadow:0 0 18px #38b8ff35}.boost-fill{background:repeating-linear-gradient(90deg,#0000 0 21px,#123b6188 21px 24px),linear-gradient(#effcff,#4bbfff);width:100%;height:100%;transition:width .1s;box-shadow:0 0 9px #67dbff}.boost-label{letter-spacing:.15em;justify-content:space-between;margin-top:9px;font:10px SFMono-Regular,Consolas,monospace;display:flex}.boosting .boost-fill{background:var(--accent)}.bottomline{letter-spacing:.12em;color:#e8eee6ba;justify-content:space-between;font:10px SFMono-Regular,Consolas,monospace;display:flex;position:absolute;bottom:24px;left:36px;right:36px}.key{border:1px solid #fff5;border-radius:3px;justify-content:center;align-items:center;min-width:23px;height:21px;margin-right:6px;font-size:10px;display:inline-flex}.controls-hint{gap:16px;display:flex}.notification{background:var(--surface);border-left:3px solid var(--accent);opacity:0;padding:12px 20px;font-size:13px;transition:opacity .15s;position:absolute;bottom:32%;left:50%;transform:translate(-50%)}.notification.visible{opacity:1}#menu{z-index:1;background:linear-gradient(90deg,#081320ed 0%,#081320ce 68%,#08132000 100%);flex-direction:column;justify-content:safe center;width:520px;padding:130px 48px 40px;display:flex;position:fixed;top:0;bottom:0;left:0;overflow-y:auto}#menu[hidden],[hidden]{display:none!important}.menu-kicker{color:var(--accent);letter-spacing:.22em;text-transform:uppercase;align-items:center;gap:12px;font:11px SFMono-Regular,Consolas,monospace;display:flex}.menu-kicker:before{content:"";background:var(--accent);width:25px;height:2px}h1{text-transform:uppercase;letter-spacing:-.045em;margin:22px 0 18px;font-size:62px;font-style:italic;font-weight:750;line-height:.96}h1 em{color:#9fddff;font-style:normal;font-weight:400}.description{color:#b9c7c9;max-width:335px;margin:0 0 26px;font-size:14px;line-height:1.75}.result-list{margin:0 0 24px;padding:0;font-size:14px;list-style:none}.result-list li{border-bottom:1px solid var(--line);padding:12px 0}#home-credits{float:right;color:var(--accent);font-size:12px}.credit-hud{color:#ffdc74;font-size:13px;position:absolute;top:95px;right:36px}#save-error{background:#38291d;border:1px solid #ffba70;margin-bottom:20px;padding:14px}.circuit-meta{border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:28px;width:335px;margin-bottom:28px;padding:17px 0;display:flex}.circuit-meta strong{margin-top:6px;font-size:16px;font-weight:500;display:block}.primary{background:var(--accent);color:#101d28;border:0;border-radius:3px;justify-content:space-between;align-items:center;width:335px;height:54px;padding:0 20px;font-weight:750;transition:background .15s;display:flex}.primary:hover{background:#b0edff}.primary span:last-child{font-size:24px;font-weight:400}.secondary{border:1px solid var(--line);text-align:left;color:#d1dddf;background:0 0;border-radius:3px;width:335px;height:44px;margin-top:10px;padding:0 16px;font-size:12px}.secondary:hover{background:#ffffff0a}.menu-foot{color:var(--muted);letter-spacing:.04em;margin-top:24px;font:10px SFMono-Regular,Consolas,monospace}.settings{width:335px;margin-bottom:22px}.setting{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;min-height:44px;padding:12px 0;font-size:12px;display:flex}.setting input{accent-color:var(--accent);width:18px;height:18px}.setting small{color:var(--muted);margin-top:4px;line-height:1.5;display:block}.back{color:var(--muted);text-align:left;background:0 0;border:0;width:335px;min-height:44px;padding:12px 0}#loading{z-index:5;text-align:center;background:#10202b;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}#loading strong{letter-spacing:.15em;font-size:28px;font-style:italic}#loading p{color:var(--muted);margin-top:20px;font-size:12px}#diagnostics{background:var(--surface);border:1px solid var(--line);white-space:pre;color:#cbdedb;width:250px;padding:16px;font:11px/1.8 SFMono-Regular,Consolas,monospace;position:absolute;top:100px;right:36px}.paused .race-info,.paused .minimap,.paused .map-title{visibility:hidden}.paused .sector{text-align:right;left:auto;right:36px;transform:none}.paused .bottomline .controls-hint{visibility:hidden}#hud.paused .speedometer{opacity:0}.vignette{pointer-events:none;position:fixed;inset:0;box-shadow:inset 0 0 140px #08101d55}@media (max-width:900px){#hud{padding:20px}.edition{display:none}#menu{width:440px;padding:105px 28px 35px}h1{font-size:56px}.top-right{gap:10px}.race-info{top:95px;left:20px}.speedometer{width:190px;right:20px}.speed-num{font-size:76px}.bottomline{left:20px;right:20px}.bottomline>span{display:none}.sector{top:98px}.session{font-size:9px}}@media (max-height:720px){#menu{justify-content:flex-start;padding-top:90px}h1{margin:15px 0;font-size:48px}.description{margin-bottom:16px}.circuit-meta{margin-bottom:16px;padding:12px 0}.menu-foot{margin-top:14px}.speedometer{bottom:67px}.settings{margin-bottom:10px}.setting{padding:8px 0}}.topbar{z-index:3;position:relative}.track-picker{border-bottom:1px solid var(--line);padding:12px 0}.track-options{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;display:grid}.track-options button,.setting-button{border:1px solid var(--line);text-align:left;background:0 0;border-radius:3px;min-height:44px;padding:12px;font-size:12px}.track-options button small{color:var(--muted);margin-top:6px;font-size:10px;line-height:1.5;display:block}.track-options button[aria-pressed=true]{border-color:var(--accent);background:#63ceff12}.setting-button{white-space:nowrap;min-width:92px}#setup-panel h1{margin:16px 0;font-size:48px}#setup-panel .description{margin-bottom:12px}#setup-panel .settings{margin-bottom:8px}#hud{z-index:2;text-shadow:0 2px 8px #06101fcc}#menu{max-width:100vw}.primary{text-transform:uppercase;letter-spacing:.09em;font-size:12px}.sector{text-align:left;top:37px;left:380px;transform:none}.sector i,.edition{display:none}.paused .sector{top:112px}.boosting .speed-num{text-shadow:0 0 28px #4ebeff99}@media (max-width:900px){.sector{text-align:right;top:88px;left:auto;right:20px}}@media (max-width:520px){#menu{background:#081320df;width:100%;padding-left:24px;padding-right:24px}.settings,.primary,.secondary,.circuit-meta,.back{width:100%}.brand{gap:4px;font-size:20px}.session{display:none}.minimap{width:130px;height:130px;left:16px}.speedometer{width:165px}.controls-hint{flex-wrap:wrap;gap:6px;font-size:8px}.sector{font-size:8px}}#online-panel h1{margin:16px 0;font-size:48px}#join-form,.online-status{width:335px;max-width:100%}#race-address,#host-interface,#host-port{border:1px solid var(--line);width:100%;color:var(--ink);background:#10202bed;border-radius:3px;min-height:44px;margin:10px 0 14px;padding:12px;font-size:13px;display:block}.online-status{color:var(--ice);overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:14px 0;font-size:13px;line-height:1.6}button:disabled,input:disabled,select:disabled{cursor:default;opacity:.45}.race-status{background:var(--surface);border-left:2px solid var(--ice);text-align:center;overflow-wrap:anywhere;width:max-content;max-width:min(460px,48vw);padding:12px 18px;font-size:13px;line-height:1.5;position:absolute;top:110px;left:50%;transform:translate(-50%)}.paused .race-status{max-width:min(360px,100vw - 460px);top:150px;left:auto;right:36px;transform:none}@media (max-width:700px){.paused .race-status{display:none}.race-status{max-width:calc(100vw - 40px);top:190px}}@media (max-width:520px){#join-form,.online-status{width:100%}}#host-form{width:335px;max-width:100%;margin-bottom:14px}#host-port{max-width:110px}#host-hint{margin-bottom:18px;font-size:12px}#host-address{margin-top:0;padding-top:0}#online-panel .description{margin-bottom:16px}#menu:has(.garage:not([hidden])){background:0 0;border:0;width:100%;max-width:none;height:100%;padding:0;inset:0;overflow:visible;transform:none}body:has(.garage:not([hidden])) #hud{visibility:hidden}#garage-panel.garage{z-index:20;color:#e8f5ff;pointer-events:auto;background:linear-gradient(#02091026 40%,#020910b8);grid-template-rows:auto 1fr minmax(210px,34vh) auto;padding:0;font-size:14px;line-height:1.45;display:grid;position:fixed;inset:0}#garage-panel.garage[hidden]{display:none}.garage *{box-sizing:border-box}.garage button,.garage select{color:#dcebf5;font:inherit;cursor:pointer;background:#0a1722;border:1px solid #375064;border-radius:0;width:auto;min-height:42px;margin:0;padding:10px 16px}.garage button:hover{background:#153348;border-color:#8addff}.garage button:focus-visible,.garage select:focus-visible,.garage input:focus-visible{outline-offset:3px;outline:2px solid #84ddff}.garage button:disabled{opacity:.42;cursor:default}.garage button[aria-pressed=true]{color:#8cdeff;background:linear-gradient(110deg,#123246,#09151f);border-bottom:3px solid #76d7ff}.garage .garage-primary{color:#071824;background:#9de4ff;border-color:#9de4ff;font-weight:750}.garage-header{background:#030a11f0;border-bottom:1px solid #315264;justify-content:space-between;align-items:center;gap:24px;padding:15px 3%;display:flex}.garage-brand{letter-spacing:.13em;white-space:nowrap;font-size:20px;font-style:italic;font-weight:900}.garage-brand span{color:#aec0cc;margin-left:22px;font-size:12px;font-style:normal}.garage-header nav{gap:3px;display:flex}.garage-header nav button{text-transform:uppercase;letter-spacing:.15em;border:0;min-width:145px}.garage-wallet{text-align:right;font-variant-numeric:tabular-nums}.garage-wallet strong{color:#abe8ff;letter-spacing:.08em}.garage-wallet small{color:#a4b8c8;font-size:11px;display:block}.garage-stage{pointer-events:none;justify-content:space-between;align-items:center;min-height:0;padding:25px 4%;display:flex;position:relative}.garage-vehicle-caption{text-shadow:0 2px 6px #000;align-self:flex-end;max-width:44%}.garage h2{letter-spacing:.03em;text-transform:uppercase;margin:8px 0;font-size:32px;font-weight:700}.garage p{margin:8px 0}.garage-eyebrow{letter-spacing:.12em;text-transform:uppercase;color:#9eb9ca;font-size:10px;display:block}.garage-telemetry{clip-path:polygon(0 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%);background:#030c15d6;border:1px solid #345065;width:320px;padding:15px 20px}.garage-stats{border-collapse:collapse;font-variant-numeric:tabular-nums;text-align:right;width:100%;font-size:12px}.garage-stats caption{text-align:left;text-transform:uppercase;letter-spacing:.12em;color:#9cb5c6;margin:0 0 12px;font-size:10px}.garage-stats th{text-align:left;font-weight:400}.garage-stats thead th{color:#a5bdcc;text-align:right;font-size:10px}.garage-stats thead th:first-child{text-align:left}.garage-stats td,.garage-stats th{border-bottom:1px solid #1c3544;padding:5px 2px}.garage-stats small{color:#a2b7c6;font-size:10px}.garage-gain{color:#8fe1ff;font-weight:750}.garage-deck{background:linear-gradient(#030c14d4,#050e17);border-top:1px solid #315164;flex-direction:column;min-height:0;padding:0 2.5% 15px;display:flex}.garage-filters{flex-wrap:wrap;align-items:center;gap:18px;padding:10px 0;display:flex}.garage-filters nav{display:flex}.garage-filters nav button{text-transform:uppercase;letter-spacing:.06em;background:0 0;border:0;min-height:36px;padding:8px 13px;font-size:11px}.garage-filters nav button[aria-pressed=true]{border-bottom:2px solid #8bddff}.garage-filter-options{align-items:center;gap:16px;margin-left:auto;font-size:11px;display:flex}.garage-filter-options label{align-items:center;gap:6px;display:flex}.garage input[type=checkbox]{appearance:auto;accent-color:#8bdcff;width:15px;height:15px}.garage select{min-height:34px;padding:6px;font-size:12px}.garage-products{scrollbar-color:#446777 #06121c;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:0;padding:4px;display:grid;overflow:auto}.garage button.garage-product{text-align:left;background:linear-gradient(135deg,#132331,#08111a 65%);border:1px solid #3c5668;grid-template-columns:40% 1fr;gap:10px;min-height:180px;padding:12px;display:grid}.garage-product img{object-fit:contain;filter:drop-shadow(0 9px 12px #000);align-self:center;width:100%;height:130px}.garage-product-copy{color:#adbecb;flex-direction:column;gap:7px;font-size:11px;display:flex}.garage-product-copy strong{text-transform:uppercase;color:#f1f7fb;font-size:16px;font-weight:600;line-height:1.2}.garage-benefit{color:#a8dcf4;font-size:12px}.garage-price{color:#83dcff;letter-spacing:.04em;font-size:15px}.garage-ownership{color:#b6c9d4;font-size:10px}.garage-footer{background:#040b12;border-top:1px solid #345063;justify-content:space-between;align-items:center;gap:16px;padding:10px 3%;display:flex}.garage-footer p{color:#aec3d0;margin:0;font-size:12px}.garage-fitting{grid-template-columns:repeat(3,1fr);gap:20px;padding:10px 0;display:grid;overflow:auto}.garage h3{text-transform:uppercase;letter-spacing:.08em;margin:4px 0 10px;font-size:14px}.garage h3 small{color:#9bb5c6;font-size:11px;font-weight:400}.garage-slot{background:#091722;border:1px solid #304a5c;gap:7px;margin-bottom:8px;padding:10px 12px;display:grid}.garage-slot strong{font-size:13px}.garage-slot small{color:#a1bacb;font-size:10px}.garage-slot button{min-height:32px;margin-right:5px;padding:5px 12px;font-size:11px}.garage:has(.garage-detail){grid-template-rows:auto 1fr auto!important}.garage-detail{background:linear-gradient(90deg,#030b12a6,#030b12f7 52%);grid-template-columns:46% 54%;min-height:0;display:grid;overflow:auto}.garage-detail-art{align-items:center;height:100%;max-height:70vh;padding:4%;display:flex;position:sticky;top:0}.garage-detail-art img{object-fit:contain;filter:drop-shadow(0 25px 25px #000);width:100%;max-height:100%}.garage-detail-copy{color:#acc1ce;padding:28px 7% 30px 4%}.garage-detail h2{color:#f0f6fa;font-size:34px}.garage-detail .garage-pitch{color:#e4f1fa;font-size:17px}.garage-detail-copy>p{max-width:65ch}.garage-detail-copy>label{align-items:center;gap:12px;margin:15px 0;display:flex}.garage-detail .garage-stats{margin-top:20px}.garage-transfer{font-size:12px}.garage-transfer b{color:#d9e8f2}.garage-shortfall{color:#f5c195;font-size:12px}.garage-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.garage-actions button{font-size:12px}@media (min-width:1700px){.garage-products{grid-template-columns:repeat(4,minmax(0,1fr))}.garage button.garage-product{min-height:205px}}@media (max-width:1150px){.garage-brand span{display:none}.garage-products{grid-template-columns:repeat(3,minmax(0,1fr))}.garage-filters{gap:5px}.garage-filter-options{gap:6px}.garage-product-copy strong{font-size:14px}.garage button.garage-product{grid-template-columns:32% 1fr}}@media (max-width:800px){#garage-panel.garage{grid-template-rows:auto minmax(170px,1fr) minmax(230px,43vh) auto}.garage-header{flex-wrap:wrap;gap:8px;padding:10px 3%}.garage-brand{font-size:15px}.garage-header nav{order:3;width:100%}.garage-header nav button{flex:1;min-width:0}.garage-wallet{font-size:12px}.garage-telemetry{width:240px;padding:10px}.garage-telemetry .garage-stats tr:nth-child(n+5){display:none}.garage-vehicle-caption h2{font-size:25px}.garage-vehicle-caption p{display:none}.garage-products{grid-template-columns:repeat(2,minmax(0,1fr))}.garage-filter-options{justify-content:space-between;width:100%;margin-left:0}.garage-fitting,.garage-detail{grid-template-columns:1fr}.garage-detail-art{height:180px;padding:0;position:static}.garage-detail-copy{padding:18px 5%}.garage-detail h2{font-size:26px}.garage-footer p{display:none}.garage-footer button{padding:8px;font-size:11px}}@media (max-width:480px){.garage-products{grid-template-columns:1fr}.garage button.garage-product{grid-template-columns:35% 1fr;min-height:150px}.garage-telemetry{width:190px}.garage-stats{font-size:10px}.garage-vehicle-caption{max-width:35%}.garage-vehicle-caption h2{font-size:19px}.garage-vehicle-caption .garage-eyebrow{font-size:8px}.garage-filters nav button{padding:6px 8px;font-size:10px}}@media (max-height:680px) and (min-width:801px){.garage-telemetry{padding:8px 12px}.garage-telemetry .garage-stats{font-size:11px}.garage-telemetry .garage-stats caption{margin-bottom:5px}.garage-telemetry .garage-stats td,.garage-telemetry .garage-stats th{padding:2px}.garage-header{padding:8px 3%}#garage-panel.garage{grid-template-rows:auto 1fr minmax(180px,40vh) auto}.garage-stage{padding:10px 4%}.garage-footer{padding:6px 3%}}body:has(.garage:not([hidden])) #save-error:not([hidden]){z-index:30;background:#182331;border:1px solid #f5c195;width:min(560px,90vw);padding:20px;position:fixed;top:80px;left:50%;transform:translate(-50%)}
