:root{font-family:Arial,Helvetica,sans-serif;background:#10191c;color:#f4f3ed;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);outline:none}.shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,#08111550,transparent 22%,transparent 75%,#08111565)}[hidden]{display:none!important}button,a,select,input{font:inherit}button{color:inherit;background:none;border:0;cursor:pointer;letter-spacing:1px;min-height:44px}button:hover,a:hover{color:#d0ecad}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #d0ecad;outline-offset:4px}button:disabled{opacity:.35;cursor:wait}header{position:fixed;top:max(24px,env(safe-area-inset-top));left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;text-shadow:0 2px 16px #000;z-index:4}.brand{font-size:25px;font-weight:900;letter-spacing:-1px;text-decoration:none;color:inherit}.brand span{font-weight:300;margin-left:7px}.brand i{display:block;font-style:normal;font-size:7px;letter-spacing:3px;margin-top:5px}.location{font-size:10px;letter-spacing:2px}.location span{display:block;font-size:8px;margin-top:7px;opacity:.65}header button{font-size:18px}header button span{font-size:9px;margin-left:10px}.panel{position:fixed;left:0;top:0;bottom:0;width:540px;max-width:100%;padding:125px 52px 35px;background:linear-gradient(90deg,#0b151bf5 75%,#0b151b00);z-index:3;overflow-y:auto}.eyebrow{font-size:9px;letter-spacing:2.8px;color:#c7dbb4}h1{font-size:clamp(42px,5vw,72px);line-height:.95;letter-spacing:-3px;font-weight:500;margin:22px 0}h1 em{font-style:normal;color:#cfddbd}.intro{font-size:13px;line-height:1.7;color:#c5ced0}.vehicleSelect{margin:28px 0 15px;border-top:1px solid #ffffff40;padding-top:15px;font-size:11px;letter-spacing:2px}.vehicleSelect small{display:block;font-size:9px;line-height:1.6;letter-spacing:0;opacity:.5;margin-top:8px}.action{display:flex;align-items:center;justify-content:space-between;width:100%;border-bottom:1px solid #ffffff50;padding:15px 0;font-size:12px;text-align:left}.action span{font-size:9px;color:#b3c4a1;margin-right:15px}.action i{font-style:normal;font-size:22px;margin-left:auto}.modeNote{display:block;font-size:9px;color:#abb8bc;margin:10px 0}.menuTools{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:15px}.menuTools button{font-size:9px;padding:4px 0}.legal{font-size:9px;line-height:1.6;opacity:.45;max-width:340px;margin-top:18px}h2{font-size:42px;font-weight:400;letter-spacing:-2px}.settings label{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:10px;letter-spacing:1px;border-bottom:1px solid #ffffff20;padding:10px 0}.settings select,.settings input{max-width:200px;background:#162329;border:1px solid #62706d;color:#eee;padding:10px;font-size:12px}.settings input[type=range]{max-width:170px}.settings input[maxlength]{width:50px;text-align:center}.instrument{position:fixed;bottom:70px;left:32px;text-shadow:0 2px 20px #000;pointer-events:none}.instrument p{font-size:10px;letter-spacing:2px}.instrument p span{color:#d2e5b8}.instrument div{display:flex;align-items:baseline;gap:12px}.instrument b{font-size:76px;font-weight:300;letter-spacing:-4px;line-height:1}.instrument div span{font-size:9px}.instrument strong{font-size:24px;font-weight:400;margin-left:18px;color:#d2e5b8}.instrument meter{width:195px;height:3px;display:block;margin:12px 0 9px;accent-color:#c5dda7}.instrument>small{font-size:8px;letter-spacing:1.4px}.driveTools{position:fixed;right:32px;bottom:76px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.driveTools button{border-bottom:1px solid #ffffff50;font-size:10px;min-width:150px;text-align:left;padding:8px 0}.raceHud{position:fixed;top:112px;left:32px;display:flex;align-items:center;gap:24px;text-shadow:0 2px 16px #000}.raceHud>span{font-size:42px}.raceHud small{font-size:10px;color:#d3dcc8}.raceHud b,.raceHud p{font-size:9px;letter-spacing:1.5px}.raceHud time{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.5px}footer{position:fixed;left:32px;right:32px;bottom:max(20px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:20px;font-size:8px;letter-spacing:1px;color:#ccd5d1}.touch{display:none}#loading{position:fixed;inset:0;background:#101c21;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px}#loading b{font-size:32px;letter-spacing:-2px}#loading span{font-size:11px;letter-spacing:2px}.loadline{height:2px;width:190px;background:linear-gradient(90deg,transparent,#cddfb4,transparent);animation:load 1.5s infinite}@keyframes load{50%{opacity:.2}}#countdown{position:fixed;inset:35% 0 auto;text-align:center;pointer-events:none;font-size:110px;font-weight:300;text-shadow:0 5px 30px #000}#message{position:fixed;top:26%;left:25%;right:25%;text-align:center;font-size:13px;letter-spacing:1px;pointer-events:none;text-shadow:0 2px 12px #000}#diagnostics{position:fixed;right:32px;top:90px;background:#0d1b20d9;padding:9px;z-index:5;font-size:10px;max-width:380px}#diagnostics summary{cursor:pointer;opacity:.6}#diagnosticText{max-height:40vh;overflow:auto;white-space:pre-wrap;font-size:10px}#diagnostics button,#diagnostics a{display:inline-block;font-size:10px;margin-right:12px;color:#d4e3be}#recordingPreview{width:100%;max-height:220px}#landscape,body.menu-open .instrument,body.menu-open .driveTools,body.menu-open .touch,body.menu-open .raceHud{display:none}body.menu-open #diagnostics{top:auto;bottom:58px}body.capturing header,body.capturing .instrument,body.capturing footer,body.capturing .driveTools,body.capturing .raceHud,body.capturing #diagnostics,body.capturing #message{opacity:0;pointer-events:none}@media(max-width:850px),(pointer:coarse){header{left:20px;right:20px;top:max(16px,env(safe-area-inset-top))}.location{display:none}.panel{padding:100px 26px 30px;width:430px}.panel h1{font-size:50px;margin:10px 0}.intro{font-size:12px}.vehicleSelect{margin-top:18px}.instrument{bottom:126px;left:max(20px,env(safe-area-inset-left))}.instrument b{font-size:54px}.instrument meter{width:155px}.driveTools{bottom:130px;right:max(20px,env(safe-area-inset-right))}.driveTools button{font-size:9px;min-width:125px}.touch{position:fixed;display:flex;justify-content:space-between;bottom:max(42px,calc(env(safe-area-inset-bottom) + 20px));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));gap:16px}.touch>div{display:flex;gap:10px}.touch button{width:54px;height:62px;background:#0f2026a0;border:1px solid #e0e8d975;border-radius:0 15px;font-size:26px;touch-action:none}.touch button:active{background:#b5d59499;color:#fff}.raceHud{left:20px;top:90px;gap:15px}.raceHud time{font-size:18px}.raceHud>span{font-size:30px}.raceHud>small{display:none}footer{left:20px;right:20px;bottom:12px;font-size:7px}footer>span{display:none}#diagnostics{right:20px;top:150px;max-width:90vw}#message{top:30%;left:12%;right:12%}#countdown{font-size:80px}}@media(max-height:600px){header{top:12px}.brand i{display:none}.panel{padding-top:70px;width:470px}.panel h1{font-size:36px;line-height:1}.panel h1 br,.intro{display:none}.vehicleSelect{margin-top:12px}.raceHud{top:64px}.instrument{bottom:105px}.instrument b{font-size:40px}.driveTools{bottom:107px;flex-direction:row;gap:16px}.driveTools button{min-width:80px}.touch button{height:54px}.touch{bottom:35px}.legal{margin-top:8px}#diagnostics{top:70px}}@media(orientation:portrait)and (max-width:650px){#landscape{display:block;position:fixed;top:68px;left:20px;right:20px;font-size:9px;text-align:center;color:#d6e1ca;pointer-events:none}body.menu-open #landscape{display:none}.raceHud{top:100px}.touch{gap:8px;left:12px;right:12px}.touch>div{gap:6px}.touch button{width:50px}.panel{background:#0b151bee}.panel h1{font-size:48px}#diagnostics{top:165px}}.garageOptions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.garageOptions button{font-size:9px}.garageOptions input{width:34px;height:28px;vertical-align:middle}.vehicleSelect select{background:#17232a;color:#fff;padding:12px;border:1px solid #ffffff40;max-width:100%;margin-top:10px}.panel h1{font-size:48px}.panel{width:490px}.panel .intro{font-size:11px}.panel h1{font-size:40px;line-height:1.05;letter-spacing:-1.8px}.panel{padding-top:110px}.vehicleSelect{margin-top:18px}.menuTools{gap:0 12px}.garageOptions{gap:4px 12px}.garageOptions button{min-height:36px}.garageOptions label{font-size:9px}.panel .eyebrow{margin-top:0}.panel .legal{margin-top:10px}@media(max-width:850px){.panel{width:min(490px,100vw);max-width:100vw;padding:90px 24px 45px}.garageOptions button{min-height:44px}.panel h1{font-size:36px}}@media(max-height:600px){.panel{padding-top:70px;padding-bottom:35px}.panel h1{font-size:30px}.vehicleSelect{margin-top:8px}.garageOptions{margin:6px 0}.driveTools{gap:5px;flex-wrap:wrap;max-width:55vw}.driveTools button{min-width:70px}}@media(orientation:portrait)and (max-width:650px){.panel{top:40%;bottom:0;height:auto;padding:22px 24px 55px;background:linear-gradient(#101c24ed,#101c24)}.panel h1{font-size:28px}.panel h1 br,.panel .eyebrow,.panel .intro{display:none}.vehicleSelect{margin-top:10px}.panel .menuTools{margin-top:8px}body.menu-open #diagnostics{bottom:12px}}html,body{height:100%;height:100dvh;overscroll-behavior:none}button{-webkit-tap-highlight-color:transparent}canvas{touch-action:none}.touch{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch button{touch-action:none}.touch button.held{background:#d7e6ba;color:#172119;border-color:#eff9db;box-shadow:0 0 24px #c5dfa533;transform:translateY(2px)}.touch small{display:block;font-size:8px;letter-spacing:1.5px;line-height:1.4}.touch svg{width:27px;height:27px;stroke:currentColor;stroke-width:1.7;fill:none}.touch .pedal-symbol{font-size:25px;line-height:1.1;display:block}.touch .direction-controls{display:flex;gap:8px}.touch .direction-controls button{width:56px}.touch .pedal{width:74px}.touch [data-control=forward]{border-color:#c4d7a9;background:linear-gradient(155deg,#496047d9,#1a2b25ed)}.touch [data-control=reverse]{background:linear-gradient(155deg,#314047df,#17252cee)}.touch .held[data-control=forward],.touch .held[data-control=reverse]{background:#d7e6ba}#diagnostics{display:none}body.debug #diagnostics{display:block}.legal a{color:#d2e5b8}.driveTools #liveRecord{display:none}.brand{min-height:44px;display:flex;align-content:center;flex-wrap:wrap}.brand i{width:100%}.touch{align-items:end}.touch button{border-radius:15px 4px;box-shadow:inset 0 1px #ffffff16,0 8px 24px #0003}.touch .pedal{height:76px}.touch .direction-controls button{height:64px}@media(max-width:850px),(pointer:coarse){header{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top))}.brand{font-size:23px}.brand i{font-size:6px;letter-spacing:2px}.touch{left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:max(22px,calc(env(safe-area-inset-bottom) + 12px));gap:10px;z-index:6}.touch button{padding:7px 2px;min-width:48px}.driveTools{right:16px;bottom:130px;gap:4px}.driveTools button{min-width:0;min-height:44px;padding:8px 10px;border:1px solid #ffffff25;background:#112027bd;border-radius:3px;font-size:9px}.driveTools #pause{display:none}footer{bottom:max(5px,env(safe-area-inset-bottom));pointer-events:none}footer output{font-size:7px;opacity:.5}.instrument{bottom:132px}.instrument p{font-size:8px}.instrument b{font-size:46px}.instrument strong{font-size:18px;margin-left:0}.instrument meter{width:120px}.instrument>small{max-width:140px;font-size:7px}.instrument div{gap:8px}.garageOptions{gap:4px 8px}.garageOptions button{min-height:44px}.settings select,.settings input{font-size:16px;max-width:165px}.vehicleSelect select{font-size:16px}.panel{overscroll-behavior:contain}.touch-hint{display:block}}@media(orientation:portrait)and (max-width:650px){.touch{display:grid;grid-template-columns:74px 1fr 74px;gap:8px}.touch .direction-controls{justify-content:center;gap:6px}.touch .direction-controls button{width:52px;height:64px}.touch .pedal{height:82px}.touch [data-control=forward] small,.touch [data-control=reverse] small{font-size:8px;letter-spacing:.8px}.driveTools{bottom:calc(max(22px,env(safe-area-inset-bottom)) + 101px);display:grid;grid-template-columns:repeat(2,54px);gap:6px;max-width:none}.driveTools #camera{grid-column:1 / -1;font-size:9px}.driveTools #reset{font-size:0}.driveTools #reset:after{content:"↺";font-size:22px}.driveTools #photo{font-size:0}.driveTools #photo:after{content:"◉";font-size:22px}.driveTools #mobileHandbrake{grid-column:1 / -1;font-size:9px}.driveTools #returnTrigger{grid-column:1 / -1}.instrument{left:16px;bottom:calc(max(22px,env(safe-area-inset-bottom)) + 116px)}.instrument p{max-width:150px;line-height:1.7}.instrument meter{width:116px}.instrument>small{letter-spacing:.4px}.raceHud{top:max(80px,calc(env(safe-area-inset-top) + 66px));left:16px;right:16px;gap:14px;justify-content:space-between}.raceHud time{font-size:19px}.raceHud p{margin:6px 0}.raceHud>span{font-size:27px}#message{top:22%;left:8%;right:8%;font-size:11px;line-height:1.5}#countdown{top:32%;font-size:80px}.panel{top:41%;padding:18px 22px calc(26px + env(safe-area-inset-bottom));border-top:1px solid #dce9d82e;background:linear-gradient(150deg,#16232af5,#0b151b);box-shadow:0 -12px 55px #0004}.panel h1{font-size:27px;margin:0 0 10px;letter-spacing:-1px}.panel .vehicleSelect{margin-top:8px;padding-top:8px}.vehicleSelect>label{display:flex;align-items:center;gap:10px;font-size:8px;letter-spacing:1px}.vehicleSelect select{margin:0;flex:1;min-width:0;padding:9px 5px;font-size:14px}.garageOptions{margin:7px 0}.action{min-height:50px;font-size:11px;padding:10px 0}.menuTools{gap:0 16px}.menuTools button{font-size:10px;min-height:44px}.panel .legal{font-size:9px;opacity:.7}.settings.panel{top:78px;background:#101c24f5}.settings h2{font-size:30px;margin:8px 0}.panel.settings label{min-height:50px}.modeNote{font-size:9px}.panel #garageReturn{display:none}body.menu-open #message{top:32%}}@media(max-width:359px)and (orientation:portrait){.touch{left:10px;right:10px;grid-template-columns:64px 1fr 64px}.touch .pedal{width:64px}.touch .direction-controls button{width:48px}.touch .direction-controls{gap:4px}.brand{font-size:20px}.panel{padding-left:16px;padding-right:16px}.garageOptions{gap:0 6px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.loadline{animation:none}}@media(orientation:portrait)and (max-width:650px){.panel{width:100%}.panel #garageReturn{display:block}body[data-zone=garage] #garageReturn{display:none}.driveTools button{min-height:46px}.touch button{transition:background .08s,transform .08s}.panel #demo{display:none}}
