:root{color:#f2f0e5;font-synthesis:none;--orange:#f2a62b;--cream:#f2f0e5;--ink:#17201d;--muted:#abb5ac;--panel:#141d19c2;--line:#ffffff24;background:#17201d;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none}button{font:inherit}button,kbd{-webkit-user-select:none;user-select:none}button{-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid var(--cream);outline-offset:4px}.hidden{display:none!important}#game-canvas{width:100%;height:100%;display:block;position:fixed;inset:0}.screen{z-index:20;position:fixed;inset:0}.eyebrow{color:var(--orange);letter-spacing:.24em;margin:0 0 12px;font-size:11px;font-weight:800}.loading-screen{text-align:center;background:radial-gradient(circle at 50% 45%,#27372e,#131a17 70%);flex-direction:column;justify-content:center;align-items:center;display:flex}.loading-screen h1{letter-spacing:-.045em;margin:0;font-size:clamp(34px,5vw,62px);font-style:italic;font-weight:900}.loading-screen>p:last-of-type{color:var(--muted);margin:16px 0 22px;font-size:13px}.loader-mark{width:74px;margin-bottom:26px}.loader-mark svg{width:100%;fill:var(--orange)}.loader-mark .loader-line{fill:none;stroke:var(--cream);stroke-width:2px}.loading-track{background:#ffffff1f;width:210px;height:2px;overflow:hidden}.loading-track span{background:var(--orange);width:45%;height:100%;animation:1.25s ease-in-out infinite loading;display:block}@keyframes loading{0%{transform:translate(-110%)}to{transform:translate(330%)}}.menu-screen{pointer-events:none;background:linear-gradient(90deg,#0c1310e8 0%,#0c13109e 34%,#0c13100a 68%),linear-gradient(#0000 65%,#0a100dad)}.menu-header{justify-content:space-between;align-items:center;display:flex;position:absolute;top:34px;left:4.5vw;right:4.5vw}.brand{letter-spacing:-.03em;align-items:center;gap:12px;font-size:14px;font-style:italic;font-weight:900;line-height:.9;display:flex}.brand svg{width:46px;height:38px;fill:var(--orange)}.menu-badge{border:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);letter-spacing:.13em;background:#121b1770;padding:10px 14px;font-size:10px;font-weight:700}.status-dot{background:#b7d78c;border-radius:50%;width:6px;height:6px;margin-right:8px;display:inline-block;box-shadow:0 0 10px #b7d78c99}.hero{position:absolute;top:50%;left:7vw;transform:translateY(-47%)}.hero h1{letter-spacing:-.07em;text-shadow:0 5px 28px #0000002e;margin:0;font-size:clamp(64px,8.8vw,132px);font-style:italic;font-weight:950;line-height:.78}.hero h1 span{color:var(--orange)}.hero-copy{color:#d4d8cf;margin:28px 0 25px;font-size:14px;line-height:1.65}.primary-button{color:#20251f;background:var(--orange);letter-spacing:.11em;cursor:pointer;border:0;border-radius:2px;min-height:54px;padding:0 24px;font-size:12px;font-weight:900;transition:filter .15s,transform .15s}.primary-button:hover{filter:brightness(1.12);transform:translateY(-2px)}.primary-button:active{transform:translateY(0)}.primary-button span{vertical-align:-2px;margin-left:30px;font-size:21px;line-height:0;display:inline-block}.start-button{text-align:left;pointer-events:auto;clip-path:polygon(0 0,94% 0,100% 25%,100% 100%,0 100%);min-width:230px}.quick-controls{gap:28px;margin-top:28px;display:flex}.quick-controls>div{flex-direction:column;gap:8px;display:flex}.quick-controls>div>span:last-child{color:#aeb7ae;font-size:10px}.key-group{gap:3px;height:22px;display:flex}kbd{color:#e4e6dd;background:#1119157a;border:1px solid #ffffff3d;border-bottom-width:2px;border-radius:3px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 5px;font:9px/1 Inter,Segoe UI,sans-serif;display:inline-flex}.menu-footer{color:#c3c9c0;letter-spacing:.13em;justify-content:space-between;align-items:center;font-size:9px;font-weight:700;display:flex;position:absolute;bottom:28px;left:4.5vw;right:4.5vw}.menu-footer i{background:var(--orange);border-radius:50%;width:3px;height:3px;margin:0 12px 2px;display:inline-block}.desktop-hint{color:#929e94;letter-spacing:.04em;text-transform:none;font-weight:500}.mobile-hint{display:none}.hud{z-index:10;pointer-events:none;position:fixed;inset:0}.hud-top{grid-template-columns:1fr auto 1fr;align-items:start;display:grid;position:absolute;top:22px;left:24px;right:24px}.hud-panel{border:1px solid var(--line);background:var(--panel);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 8px 24px #0000001f}.race-stats{justify-self:start;align-items:center;gap:22px;padding:13px 18px;display:flex}.race-stats>div{flex-direction:column;gap:4px;display:flex}.hud-label{color:#aeb8ae;letter-spacing:.17em;font-size:8px;font-weight:800}.race-stats strong{font-variant-numeric:tabular-nums;font-size:23px;line-height:1}.race-stats strong small{color:#89958b;font-size:13px;font-weight:500}.race-stats .time-value{padding-top:3px;font-size:18px}.panel-divider{background:var(--line);width:1px;height:32px}.position-panel{text-shadow:0 2px 12px #00000059;grid-template-columns:auto auto;justify-content:center;align-items:baseline;padding:0 28px;display:grid}.position-panel>span:first-child{color:var(--cream);letter-spacing:-.06em;font-size:52px;font-style:italic;font-weight:900;line-height:.9}.position-total{color:#d0d5cd;font-size:20px;font-weight:500}.position-panel .hud-label{text-align:center;color:var(--cream);grid-column:1/3;margin-top:8px}.navigation-panel{flex-direction:column;justify-self:end;align-items:flex-end;gap:8px;display:flex}.minimap-shell{border-radius:50%;width:146px;height:146px;position:relative;overflow:hidden}#minimap{width:100%;height:100%;display:block}.map-north{color:#b8c1b8;font-size:8px;font-weight:800;position:absolute;top:8px;left:50%;transform:translate(-50%)}.icon-actions{gap:6px;display:flex}.icon-button{border:1px solid var(--line);background:var(--panel);width:34px;height:32px;color:var(--cream);cursor:pointer;pointer-events:auto;border-radius:2px;place-items:center;padding:0;display:grid}.icon-button:hover{background:#2d3931e6}.icon-button svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:16px}.icon-button svg path:first-child{fill:none}#sound-button svg path:first-child{fill:currentColor;stroke:none}#sound-button.muted .sound-waves{display:none}#sound-button.muted:after{content:"";background:var(--orange);width:19px;height:1px;position:absolute;transform:rotate(-45deg)}.hud-bottom{justify-content:space-between;align-items:flex-end;display:flex;position:absolute;bottom:24px;left:24px;right:24px}.checkpoint-panel{align-items:center;gap:13px;padding:10px 16px 10px 11px;display:flex}.checkpoint-arrow{width:38px;height:38px;color:var(--orange);place-items:center;font-size:32px;font-weight:700;transition:transform .15s linear;display:grid}.checkpoint-panel>div:last-child{flex-direction:column;gap:5px;display:flex}.checkpoint-panel strong{font-variant-numeric:tabular-nums;font-size:14px}.speed-panel{text-shadow:0 3px 16px #00000059;width:220px}.speed-readout{justify-content:flex-end;align-items:flex-end;gap:10px;display:flex}#speed-value{letter-spacing:-.065em;font-variant-numeric:tabular-nums;font-size:76px;font-style:italic;font-weight:900;line-height:.8}.speed-unit{color:#d4d9d1;letter-spacing:.1em;padding-bottom:3px;font-size:9px;font-weight:700}.rpm-track{background:#fff3;height:4px;margin-top:13px}.rpm-track span{background:var(--orange);width:0;height:100%;transition:width 80ms linear;display:block}.gear-line{color:#d0d6cd;letter-spacing:.13em;justify-content:space-between;margin-top:8px;font-size:9px;display:flex}.gear-line strong{color:var(--orange);font-size:13px}.drive-warning{color:var(--orange);letter-spacing:.12em;white-space:nowrap;background:#1b1f18d1;border:1px solid #f2a62b80;padding:10px 14px;font-size:10px;font-weight:800;position:absolute;top:28%;left:50%;transform:translate(-50%)}.drive-warning kbd{margin-left:6px}.countdown{z-index:15;color:var(--cream);text-shadow:8px 8px #141d1940;pointer-events:none;font-size:clamp(110px,18vw,220px);font-style:italic;font-weight:950;line-height:1;position:fixed;top:42%;left:50%;transform:translate(-50%,-50%)}.countdown.go{color:var(--orange);font-size:clamp(75px,13vw,160px)}.countdown.pop{animation:.65s ease-out count-pop}@keyframes count-pop{0%{opacity:0;scale:1.35}20%{opacity:1}to{opacity:.85;scale:1}}.toast{z-index:16;border-left:3px solid var(--orange);color:var(--cream);letter-spacing:.12em;pointer-events:none;white-space:nowrap;background:#141d19cc;padding:12px 22px;font-size:15px;font-style:italic;font-weight:900;position:fixed;top:23%;left:50%;transform:translate(-50%)}.modal-screen{-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);background:#0a100da3;place-items:center;padding:20px;display:grid}.dialog{border:1px solid var(--line);border-top:3px solid var(--orange);background:#1c2722;width:min(470px,100%);padding:38px;box-shadow:0 25px 80px #00000059}.dialog h2{letter-spacing:-.045em;margin:0 0 20px;font-size:46px;font-style:italic;font-weight:900;line-height:1}.dialog>p:not(.eyebrow):not(.dialog-hint){color:#b9c2ba;font-size:14px;line-height:1.7}.dialog .primary-button{width:100%;margin-top:18px}.compact-dialog{text-align:center;max-width:390px}.secondary-button{border:1px solid var(--line);width:100%;min-height:46px;color:var(--cream);letter-spacing:.12em;cursor:pointer;background:0 0;margin-top:9px;font-size:10px;font-weight:800}.secondary-button:hover{background:#ffffff0d}.dialog-hint{color:#7f8c82;margin:22px 0 0;font-size:10px}.finish-dialog{text-align:center}.finish-position{flex-direction:column;align-items:center;margin:12px 0 25px;display:flex}.finish-position span{color:var(--orange);letter-spacing:-.08em;font-size:96px;font-style:italic;font-weight:950;line-height:.85}.finish-position small{color:#b8c1b8;letter-spacing:.2em;margin-top:12px;font-size:9px;font-weight:800}.finish-times{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px;display:grid}.finish-times>div{border:1px solid var(--line);flex-direction:column;gap:9px;padding:14px 8px;display:flex}.finish-times span{color:#929f95;letter-spacing:.1em;font-size:8px;font-weight:700}.finish-times strong{font-variant-numeric:tabular-nums;font-size:16px}.touch-controls{display:none}@media (pointer:coarse){.touch-controls{pointer-events:none;justify-content:space-between;align-items:flex-end;display:flex;position:absolute;bottom:20px;left:20px;right:20px}.touch-steering,.touch-pedals{align-items:flex-end;gap:10px;display:flex}.touch-controls button{width:68px;height:68px;color:var(--cream);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);pointer-events:auto;touch-action:none;background:#141d1994;border:1px solid #ffffff40;border-radius:50%;font-size:25px;font-weight:800}.touch-controls button.active{color:var(--ink);background:#f2a62bbf}.touch-pedals button{letter-spacing:.08em;border-radius:8px;width:62px;height:78px;font-size:9px}.touch-pedals .touch-throttle{border-color:#f2a62b99;height:94px}.hud-bottom{bottom:126px}.desktop-hint{display:none}.mobile-hint{display:inline}}@media (width<=700px){.menu-header{top:22px;left:22px;right:22px}.menu-badge{padding:8px;font-size:8px}.brand{font-size:12px}.brand svg{width:36px}.hero{left:25px;right:20px}.hero h1{font-size:clamp(57px,18vw,90px)}.hero-copy{margin:22px 0 20px;font-size:12px}.quick-controls{gap:15px;margin-top:20px}.menu-footer{font-size:7px;bottom:20px;left:24px;right:24px}.menu-footer i{margin:0 6px 2px}.hud-top{top:12px;left:12px;right:12px}.race-stats{gap:10px;padding:10px}.race-stats strong{font-size:18px}.race-stats .time-value{font-size:12px}.panel-divider{height:26px}.position-panel{padding:0 8px}.position-panel>span:first-child{font-size:40px}.position-total{font-size:14px}.position-panel .hud-label{font-size:7px}.minimap-shell{width:92px;height:92px}.icon-button{width:29px;height:28px}.hud-bottom{left:12px;right:12px}.checkpoint-panel{gap:5px;padding:7px}.checkpoint-panel .hud-label{display:none}.checkpoint-arrow{width:27px;font-size:26px}.checkpoint-panel strong{font-size:10px}.speed-panel{width:140px}#speed-value{font-size:58px}.speed-unit{font-size:7px}.drive-warning{font-size:8px}.dialog{padding:28px}}@media (height<=620px){.hero{transform:translateY(-43%)}.hero h1{font-size:62px}.hero-copy{margin:15px 0}.quick-controls{margin-top:14px}.menu-footer{bottom:14px}.menu-header{top:16px}.minimap-shell{width:90px;height:90px}.hud-top{top:10px}.hud-bottom{bottom:12px}.dialog{padding:24px 32px}.dialog h2{margin-bottom:12px;font-size:36px}.finish-position{margin:5px 0 15px}.finish-position span{font-size:70px}}@media (pointer:coarse) and (height<=620px){.hud-bottom{bottom:102px}.touch-controls{bottom:10px}.touch-controls button{width:58px;height:58px}.touch-pedals button{height:64px}.touch-pedals .touch-throttle{height:76px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
