:root{font-family:system-ui,Segoe UI,sans-serif;color:#edf5ff;background:#071222;color-scheme:dark;--cyan:#82f2df;--amber:#ffd28c;--lavender:#c3a8ff;--line:#32465f}*{box-sizing:border-box}body{margin:0;min-width:320px}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{border:1px solid var(--line);background:#17283d;color:#e9f5ff;padding:11px 15px;border-radius:4px;min-height:44px;cursor:pointer;font-weight:650}button:hover:not(:disabled){border-color:var(--cyan)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--amber);outline-offset:3px}.race-primary{background:var(--cyan);border-color:var(--cyan);color:#082334}.race-header{max-width:1600px;margin:auto;padding:18px 4vw;display:flex;justify-content:space-between;align-items:center;gap:20px}.race-brand{font:900 19px ui-monospace,Consolas,monospace;letter-spacing:.07em}.race-brand span{display:block;color:var(--cyan);font:500 11px system-ui;letter-spacing:.04em;margin-top:5px}.race-header>a:last-child{font-size:13px;text-decoration:underline}.race-layout{max-width:1600px;margin:auto;padding:14px 4vw 32px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:30px}.race-console{min-width:0}.race-kicker{color:var(--amber);font:12px ui-monospace,monospace}h1{font-size:clamp(36px,4vw,54px);line-height:1.03;letter-spacing:-.04em;margin:16px 0}.race-intro{color:#b8cadc;font-size:14px;line-height:1.65}#race-status{font-size:13px;line-height:1.5;color:var(--cyan);padding:12px 0;border-block:1px solid var(--line);min-height:64px}.error{color:#ffacaa!important}label{display:block;font-size:12px;color:#b7cadb;margin:12px 0 5px}input:not([type=range]),select{width:100%;padding:11px;border:1px solid var(--line);border-radius:3px;background:#0a192c;color:#e9f5ff;min-height:44px}#race-track{font-weight:700}#track-description{min-height:36px;font-size:12px;color:#a9bfd1;line-height:1.5}#race-access>button,#race-room>button{width:100%;margin-top:8px}.race-join{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:13px}.race-join label{grid-column:1/-1}#race-code{text-transform:uppercase;letter-spacing:2px}.race-help{font-size:12px;color:#a8bdd0;line-height:1.7;margin-top:20px}.race-help summary{min-height:44px;color:#d4e4ef;cursor:pointer}.room-code{display:flex;align-items:center;gap:8px;font-size:12px;flex-wrap:wrap}.room-code strong{font:700 25px monospace;color:var(--amber);letter-spacing:3px}#race-copy{font-size:11px;padding:6px}#race-roster{padding:0;list-style:none}#race-roster li{padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}.is-bot{color:var(--lavender)}#race-wait{font-size:12px;color:#b8cadd;line-height:1.55}.race-column{min-width:0}.race-strip{display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:12px;min-height:52px}.race-strip>span:first-child{font-weight:800;color:var(--amber)}#race-view-label{font:11px ui-monospace,monospace;color:#b9cce0}.race-stage{position:relative;aspect-ratio:16/10;min-height:440px;width:100%;overflow:hidden;background:#071222;border:1px solid #42617c;border-radius:4px;isolation:isolate}.race-stage>canvas{position:absolute;inset:0;display:block}.race-hud{position:absolute;inset:12px 12px auto;display:flex;justify-content:space-between;gap:12px;pointer-events:none;z-index:2}.race-hud>div{background:#071222d9;padding:9px 12px;border-top:2px solid var(--cyan);min-width:110px}.race-hud small,.race-hud span{display:block;font-size:10px;color:#bad0df}.race-hud strong{display:block;font:800 25px ui-monospace,monospace;font-variant-numeric:tabular-nums;margin:2px 0}.race-hud>div:first-child strong{font-size:38px}.race-countdown{position:absolute;inset:30% 0 auto;text-align:center;font:900 100px ui-monospace,monospace;color:var(--amber);text-shadow:4px 4px #071222;z-index:4}.race-message{position:absolute;bottom:22px;left:50%;transform:translate(-50%);padding:12px 18px;border:1px solid #517089;background:#071222df;color:#d4e9f1;font-size:12px;text-align:center;max-width:80%;z-index:3}.race-caption{font-size:11px;color:#a1b9cc;line-height:1.5}.race-pilot-label{position:absolute;left:0;top:0;z-index:2;font-size:10px;color:#a1f1ef;background:#071222d9;border-bottom:2px solid currentColor;padding:3px 5px;white-space:nowrap;pointer-events:none;will-change:transform}.race-bot-label{color:var(--lavender)}.race-touch{position:absolute;bottom:14px;left:14px;right:14px;display:none;justify-content:space-between;align-items:end;z-index:5;pointer-events:none}#race-stick{width:108px;height:108px;border:1px solid #7394ac;border-radius:50%;background:#07122277;touch-action:none;pointer-events:auto;display:grid;place-items:center}#race-stick i{width:34px;height:34px;border-radius:50%;background:#7fe7e6ad;transform:translate(var(--x,0),var(--y,0));pointer-events:none}.race-touch-actions{display:flex;gap:10px;pointer-events:auto}.race-touch-actions button{width:68px;min-height:68px;touch-action:none}.race-result{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#071222ef;padding:25px;text-align:center}.race-result>p{color:var(--amber);font:12px monospace}.race-result h2{font-size:32px;max-width:24ch}.race-result ol{padding:0;list-style:none;font-size:13px;line-height:2;color:#d4e4ef}.race-result button{min-width:230px;margin-top:9px}.race-guardian{display:flex;align-items:center;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--lavender)}.race-guardian progress{accent-color:var(--lavender);flex:1;min-width:160px}.race-guardian label{margin:0}dialog{width:min(490px,calc(100% - 24px));max-height:90dvh;overflow:auto;background:#102138;color:#e9f5ff;border:1px solid #63889f;padding:22px;border-radius:5px}dialog::backdrop{background:#030915b0}.race-dialog-head{display:flex;justify-content:space-between;align-items:center}.race-dialog-head h2{margin:0}dialog p{color:#b5c9d9;font-size:13px;line-height:1.6}dialog button{margin:6px 4px 6px 0}dialog .race-primary{display:block;width:100%}dialog input[type=range]{width:100%;accent-color:var(--cyan)}#race-music-credit{font-size:11px;overflow-wrap:anywhere}[hidden]{display:none!important}.race-driving .race-layout{grid-template-columns:1fr}.race-driving .race-console{display:none}.race-driving .race-stage{aspect-ratio:16/9;max-height:calc(100dvh - 180px)}@media(pointer:coarse){.race-driving .race-touch{display:flex}.race-driving .race-message{bottom:140px}}@media(max-width:800px){.race-header{padding:14px}.race-layout{display:flex;flex-direction:column-reverse;padding:0 14px 25px;gap:15px}.race-stage{min-height:360px;aspect-ratio:4/3}.race-console h1{font-size:35px}.race-console h1 br{display:none}.race-strip{gap:6px;flex-wrap:wrap}.race-hud{inset:8px 8px auto;gap:5px}.race-hud>div{min-width:0;padding:7px;flex:1}.race-hud strong{font-size:19px}.race-hud>div:first-child strong{font-size:26px}.race-hud small,.race-hud span{font-size:9px}.race-driving .race-stage{height:calc(100dvh - 155px);max-height:none;min-height:420px;aspect-ratio:auto}.race-driving .race-header{padding-block:10px}.race-driving .race-caption{margin:7px 0}.race-result h2{font-size:25px}.race-result ol{font-size:11px}.race-touch-actions{flex-direction:column;gap:8px}.race-touch-actions button{width:65px;min-height:58px}.race-brand{font-size:16px}.race-header>a:last-child{font-size:11px}.race-guardian{font-size:10px;gap:6px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.race-layout,.race-column,.race-console{width:100%;min-width:0}.race-join{grid-template-columns:minmax(0,1fr) auto}.race-join input{min-width:0}.race-guidance{position:absolute;z-index:3;left:16px;bottom:18px;max-width:calc(100% - 32px);padding:8px 12px;background:#071222dd;border-left:3px solid var(--amber);color:#ffe5b2;font-size:12px;pointer-events:none}.race-guidance.missed{color:#ffbbb0;border-color:#ff8d85}.race-ring-marker{position:absolute;inset:0 auto auto 0;z-index:2;color:#ffdf89;font:900 26px monospace;text-shadow:1px 1px #071222;pointer-events:none;line-height:1}.race-driving .race-guidance{bottom:20px}@media(max-width:800px){.race-driving .race-touch{display:flex}.race-driving .race-guidance{bottom:145px;font-size:11px;max-width:calc(100% - 100px)}.race-layout{width:100%;overflow:visible}.race-header>*{min-width:0}.race-stage{max-width:100%}}#race-music-credit a{color:var(--cyan);text-decoration:underline}.race-movement{position:absolute;top:112px;left:50%;transform:translate(-50%);z-index:4;max-width:calc(100% - 24px);padding:6px 11px;background:#0a162ced;border:1px solid #79eee8;color:#bdfaf4;font:700 11px ui-monospace,monospace;white-space:nowrap;pointer-events:none}.race-movement[data-mode=ramp],.race-movement[data-mode=landing]{border-color:#ffd18e;color:#ffd18e}.race-movement[data-mode=flight]{border-color:#d8bdff;color:#e5d0ff}@media(max-width:600px){.race-movement{top:105px;font-size:10px}}.race-pad-group{display:grid;justify-items:center;gap:6px;pointer-events:none}.race-pad-group>span{max-width:116px;color:#d7ecf3;background:#071222bf;padding:3px 5px;font:600 11px/1.25 system-ui;text-align:center;pointer-events:none}#race-stick,#race-flight-stick{width:108px;height:108px;border:2px solid #7394ac;border-radius:50%;background:#07122299;touch-action:none;pointer-events:auto;display:grid;place-items:center;position:relative;user-select:none;-webkit-user-select:none}#race-stick:before,#race-flight-stick:before{content:"";position:absolute;inset:16px;border:1px dashed #65859d55;border-radius:50%;pointer-events:none}#race-stick i,#race-flight-stick i{width:34px;height:34px;border-radius:50%;background:#7fe7e6bd;border:1px solid #d2f6f5;transform:translate(var(--x,0),var(--y,0));pointer-events:none}#race-flight-stick{border-color:#c3a8ff}#race-flight-stick i{background:#b39be9bd;border-color:#f0e0ff}.race-flight-pad{visibility:hidden}.flight-controls .race-flight-pad{visibility:visible}.race-touch{gap:16px;grid-template-columns:auto auto 1fr;align-items:end}.race-touch-actions{justify-self:end;display:flex;gap:10px;align-items:end;pointer-events:auto}.race-touch-actions button[aria-pressed=true]{background:#fff1cf!important;color:#071021!important;border-color:#fff1cf!important}.race-mouse-reticle{position:absolute;z-index:3;width:23px;height:23px;transform:translate(-50%,-50%);border:2px solid #e0d1ff;pointer-events:none;box-shadow:0 0 0 1px #071222}.race-mouse-reticle:before,.race-mouse-reticle:after{content:"";position:absolute;background:#e0d1ff}.race-mouse-reticle:before{width:3px;height:5px;left:8px;top:7px}.race-mouse-reticle:after{width:5px;height:3px;left:7px;top:8px}.race-stage.mouse-flight,.race-stage.mouse-flight>canvas{cursor:crosshair}.race-hud{min-height:86px}.race-hud>div{max-width:34%;min-width:0}.race-hud span{line-height:1.35;white-space:normal;overflow-wrap:break-word}.race-movement{top:118px;white-space:normal;text-align:center;line-height:1.35;max-width:calc(100% - 24px)}.race-movement[data-view=side],.race-movement[data-view=top]{border:2px solid #ffc66d;color:#fff1cf}.race-auto-control{display:flex;align-items:center;gap:11px;min-height:45px;padding:7px 0;color:#e3eef3;font-weight:650}.race-auto-control input[type=checkbox]{appearance:auto;flex:none;width:20px!important;height:20px!important;min-height:20px!important;margin:0;accent-color:var(--cyan)}.race-auto-note{margin:0 0 10px!important;font-size:12px!important}@media(pointer:coarse){.race-driving .race-touch{display:grid}.race-driving .race-guidance,.race-driving .race-message{bottom:163px}}@media(max-width:800px){.race-driving .race-stage{height:calc(100dvh - 172px);min-height:300px;max-height:none;aspect-ratio:auto}.race-driving .race-touch{display:grid;bottom:10px;left:10px;right:10px;gap:10px;grid-template-columns:auto auto 1fr}#race-stick,#race-flight-stick{width:88px;height:88px}.race-pad-group>span{font-size:10px;max-width:98px}.race-touch-actions{flex-direction:column;gap:7px}.race-touch-actions button{width:61px;min-height:52px;padding:8px;font-size:12px}.race-driving .race-guidance,.race-driving .race-message{bottom:140px;left:12px;transform:none;max-width:calc(100% - 24px);font-size:11px;padding:6px 8px}.race-movement{top:105px;font-size:10px;max-width:calc(100% - 16px)}.race-hud>div{padding:6px;max-width:34%}.race-hud span{font-size:9px;line-height:1.3}}@media(max-height:540px)and (orientation:landscape){body.race-driving #race-root .race-header{display:none!important}body.race-driving #race-root .race-layout{padding:0 8px 5px!important}body.race-driving #race-root .race-strip{min-height:38px!important;margin-bottom:3px!important;padding:0!important}body.race-driving #race-root .race-strip button{min-height:44px;padding:5px 10px;font-size:11px}.race-driving .race-caption,.race-driving .race-guardian{display:none}.race-driving .race-stage{height:calc(100dvh - 50px);min-height:220px;max-height:none}.race-hud{inset:5px 8px auto;min-height:60px;gap:7px}.race-hud>div{padding:4px 8px;min-width:95px;max-width:32%}.race-hud small{font-size:9px}.race-hud strong,.race-hud>div:first-child strong{font-size:23px;line-height:1.1;margin:1px 0}.race-hud span{font-size:9px}.race-movement{top:80px;font-size:10px;padding:4px 8px;max-width:68%}.race-driving .race-touch{bottom:6px;left:10px;right:10px;gap:12px;grid-template-columns:auto 1fr auto}.race-flight-pad{justify-self:end;margin-right:10px}#race-stick,#race-flight-stick{width:78px;height:78px}.race-pad-group>span{font-size:9px;max-width:95px}.race-touch-actions{gap:6px}.race-touch-actions button{min-height:44px;width:57px;font-size:11px}.race-driving .race-guidance,.race-driving .race-message{bottom:10px;left:120px;max-width:calc(100% - 350px);font-size:10px;padding:5px 7px}}body.race-driving{overflow:hidden}body.race-driving #race-root{height:100dvh;display:flex;flex-direction:column}body.race-driving #race-root .race-header,body.race-driving #race-root .race-caption{display:none!important}body.race-driving #race-root .race-layout{flex:1;min-height:0;display:flex;padding:6px 12px 10px!important;gap:0}body.race-driving #race-root .race-column{flex:1;min-height:0;display:flex;flex-direction:column}body.race-driving #race-root .race-strip{flex:none;min-height:48px!important;padding:0!important;margin:0 0 4px!important}body.race-driving #race-root .race-stage{flex:1;min-height:0!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important}body.race-driving #race-root .race-guardian{flex:none;margin-top:5px}@media(max-width:600px){body.race-driving #race-root .race-layout{padding:3px 6px 6px!important}}.race-loadout{display:none;position:absolute;z-index:4;right:14px;top:118px;width:180px;gap:4px;pointer-events:none}.race-driving .race-loadout:not([hidden]){display:grid}#race-hp{color:#81e0c8;font:700 18px/1 ui-monospace,monospace;letter-spacing:4px;text-align:right;text-shadow:1px 2px #020913}.race-loadout.is-shielded #race-hp{color:#b7f9ff}#race-item{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:3px 7px;min-height:62px;padding:7px 9px;border:2px solid #71d9e3;background:#102d42;color:#fff1cf;box-shadow:inset 0 2px #3c6c80,3px 3px #020913;pointer-events:auto;text-align:left;touch-action:manipulation;font:700 18px/1.05 Starbreak Pixel,monospace}#race-item:disabled{opacity:1;border-color:#486a83;color:#b2c6d4;cursor:default}#race-item:focus-visible{outline:3px solid #ffc66d;outline-offset:3px}#race-item-icon{grid-row:span 2;width:32px;height:32px;background-size:contain;background-position:center;background-repeat:no-repeat;image-rendering:pixelated}#race-item small{font:600 10px/1.1 system-ui;color:#c0d5dd}@media(min-width:1001px){.race-movement{max-width:calc(100% - 430px)}}@media(max-width:800px),(pointer:coarse){.race-loadout{top:auto;bottom:150px;right:10px;width:150px}#race-item{font-size:16px;min-height:58px}#race-hp{font-size:15px}}@media(max-height:540px)and (orientation:landscape){.race-loadout{top:auto;bottom:130px;right:10px;width:155px}#race-item{min-height:52px;font-size:15px}}@media(max-width:800px),(pointer:coarse){body.race-driving #race-root :is(.race-guidance,.race-message){max-width:calc(100% - 188px)}}@media(max-height:540px)and (orientation:landscape){body.race-driving #race-root :is(.race-guidance,.race-message){max-width:calc(100% - 350px)}}body.race-driving{height:100dvh!important;overflow:hidden!important}body.race-driving #race-root :is(.race-header,.race-console,.race-caption){display:none!important}body.race-driving #race-root .race-layout{max-width:none!important;padding:0!important;margin:0!important;gap:0!important}body.race-driving #race-root #race-stage{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;z-index:10!important}body.race-driving #race-root .race-strip{position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;min-height:0!important;z-index:12!important}body.race-driving #race-root .race-strip>span{display:none!important}body.race-driving #race-root .race-hud{right:110px!important}body.race-driving #race-root .race-guardian:not([hidden]){position:fixed;top:150px;left:12px;right:208px;z-index:12;margin:0;padding:6px 10px;background:#071222e8;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;pointer-events:none}body.race-driving #race-root .race-guardian progress{width:100%;min-width:0}@media(max-width:800px){body.race-driving #race-root .race-guardian:not([hidden]){right:12px;top:154px;gap:6px}body.race-driving #race-root:has(.race-guardian:not([hidden])) .race-movement{width:max-content;max-width:calc(100% - 24px)}}@media(max-height:540px)and (orientation:landscape){body.race-driving #race-root .race-guardian:not([hidden]){right:12px;top:112px}}.race-finish-banner{position:absolute;z-index:5;top:22%;left:50%;transform:translate(-50%);padding:14px 22px;background:#102b40ed;border:3px solid #ffc66d;box-shadow:inset 0 2px #fff1cf,5px 5px #020913;color:#fff1cf;font:700 clamp(23px,4vw,38px)/1.1 "Starbreak Pixel",monospace;text-align:center;max-width:calc(100% - 28px);white-space:nowrap;pointer-events:none}.race-celebrating :is(.race-touch,.race-loadout,.race-mouse-reticle,.race-guidance,.race-movement,.race-pilot-label){visibility:hidden!important}@media(max-height:540px)and (orientation:landscape){.race-finish-banner{top:24%;padding:9px 18px;font-size:25px}}
