.mobile-only{display:none}.drawer-options{grid-template-columns:1fr 1fr;gap:12px;margin-top:18px;display:grid}.drawer-options label{align-items:center;gap:8px;min-height:44px;display:flex}#nearest-warning{z-index:3;color:#fff3dc;pointer-events:none;background:#68321eef;border-radius:4px;padding:5px 9px;font-size:11px;position:absolute;bottom:9px;left:12px}@media (pointer:coarse){.mobile-only{display:block}#steer-left,#steer-right{min-width:44px;min-height:60px}#center-wheel{min-width:44px;min-height:44px}}:root{color:#eef3f7;font-synthesis:none;--panel:#202b34;--muted:#adbbc5;--accent:#91cdf6;--line:#41515d;--danger:#ffb3a4;--space:20px;background:#202b34;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}*{box-sizing:border-box}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);color:#f5f8fa;touch-action:manipulation;white-space:nowrap;background:#2c3a45;border-radius:7px;min-height:42px;padding:9px 16px;transition:background .15s}button:hover{background:#3c4e5c}button:active,.pressed{background:#56788f!important}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #f4bc67}.primary{color:#162732;background:#9fd9ff;border-color:#0000;font-weight:650}.primary:hover{background:#bce5ff}.quiet{color:#c3d0d9;background:0 0;border-color:#0000}.selected{border-color:#0000;color:#1a2b36!important;background:#e0eaf0!important}input[type=range]{accent-color:var(--accent);touch-action:none;cursor:ew-resize;width:100%;min-height:30px;margin:0}input[type=checkbox]{accent-color:#9fd9ff;width:17px;height:17px}select,input[type=number]{color:#edf4f8;background:#293944;border:1px solid #60717e;border-radius:5px;min-height:40px;padding:8px}label{color:#dde6ed}h1,h2,p{margin:0}h1{letter-spacing:0;font-size:19px;font-weight:650;line-height:1.3}h2{font-size:25px;font-weight:650;line-height:1.4}p{line-height:1.7}small{color:#b8c8d3;font-size:12px;line-height:1.6}[hidden]{display:none!important}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;height:76px;padding:0 28px;display:flex}.brand{align-items:center;gap:12px;display:flex}.brand>svg{fill:none;stroke:#a9d2e6;stroke-width:3px;width:31px;height:34px}.brand span{color:var(--muted);margin-top:4px;font-size:11px;display:block}.top-actions,.segmented{align-items:center;gap:4px;display:flex}.segmented{background:#19232c;border-radius:8px;padding:3px}.segmented button{background:0 0;border-color:#0000;min-height:34px;padding:7px 14px;font-size:13px}.top-actions button{font-size:13px}main{max-width:1920px;margin:0 auto}.viewport{isolation:isolate;background:#b7ccd6;height:calc(100dvh - 324px);min-height:380px;position:relative;overflow:hidden}#scene{position:absolute;inset:0}#scene>canvas{outline:none;display:block}.loading{color:#243744;padding:80px 30px}.scene-bar{z-index:3;pointer-events:none;background:#20303bef;border-radius:6px;align-items:center;gap:20px;padding:10px 16px;font-size:12px;display:flex;position:absolute;top:18px;left:24px}#session-state{color:#d3ecde;font-weight:600}#elapsed{color:#d3dee7;font-variant-numeric:tabular-nums}.view-switch{z-index:4;position:absolute;top:18px;right:24px}.coach{z-index:3;pointer-events:none;background:#20303bf0;border-radius:7px;width:310px;padding:14px 17px;position:absolute;bottom:22px;left:24px}.coach-title{color:#ecf4f8;font-size:13px;font-weight:600}.coach p{color:#cbdbe6;margin-top:6px;font-size:12px;line-height:1.7}.start-panel{z-index:5;background:#202e38f5;border-radius:12px;width:min(460px,100% - 36px);padding:27px 30px;position:absolute;top:49%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 36px #1b273641}.start-panel h2{font-size:24px}.start-panel>p{color:#c6d6df;margin-top:10px;font-size:13px}.start-actions{gap:10px;margin:22px 0 18px;display:flex}.start-actions button{flex:1}.stage-picker{align-items:center;gap:12px;margin-bottom:14px;font-size:12px;display:flex}.stage-picker select{flex:1;font-size:12px}.start-panel small{font-size:11px}.field-note{color:#253844;pointer-events:none;background:#e9f1f3db;border-radius:3px;padding:5px 9px;font-size:11px;position:absolute;bottom:22px;right:24px}.progress-track{background:#a9bac4;width:100%;height:3px;position:absolute;bottom:0}#progress{background:#4987ad;width:0;height:100%}.dashboard{grid-template-columns:minmax(230px,1fr) minmax(240px,1.1fr) minmax(230px,1fr) 88px;align-items:center;gap:26px;min-height:170px;padding:14px 28px 12px;display:grid}.instruments{flex-wrap:wrap;align-items:center;gap:0 20px;display:flex}.speed{align-items:baseline;gap:8px;display:flex}.speed strong{font-variant-numeric:tabular-nums;min-width:76px;font-size:48px;font-weight:450;line-height:1}.speed span{color:var(--muted);font-size:12px}.gear-wrap{align-items:center;gap:8px;display:flex}.gear-wrap label{color:var(--muted);font-size:12px}#gear{background:0 0;min-width:60px;padding:2px 8px;font-size:21px}.trip-meta{color:var(--muted);flex-basis:100%;gap:18px;margin-top:15px;font-size:11px;display:flex}.steering-control{justify-content:center;align-items:center;gap:12px;display:flex}.steer-button{touch-action:none;-webkit-user-select:none;user-select:none;min-width:40px;height:64px;padding:8px}.steering-middle{flex:1;min-width:140px;max-width:220px}#wheel-drag{cursor:ew-resize;touch-action:none;-webkit-user-select:none;user-select:none;width:85px;height:85px;margin:0 auto}#wheel-svg{fill:none;stroke:#b9c7d0;stroke-width:9px;width:100%;height:100%}#wheel-svg .wheel-hub{fill:#344857;stroke:#95a8b6;stroke-width:4px}#wheel-svg .wheel-mark{stroke:#e7f4fb;stroke-width:5px}.steering-readout{white-space:nowrap;justify-content:center;align-items:center;gap:8px;margin-top:0;display:flex}.steering-readout output{font-variant-numeric:tabular-nums;color:#d1dee7;font-size:11px}.steering-readout button{min-height:25px;padding:3px 4px;font-size:11px}.pedal-labels{color:var(--muted);justify-content:space-between;font-size:11px;display:flex}.pedal-labels label{font-weight:600}.pedal-labels output{color:#c4d9e8;padding-left:5px}.pedal-buttons{gap:12px;margin-top:3px;display:flex}.pedal-buttons button{-webkit-user-select:none;user-select:none;touch-action:none;flex:1;min-height:68px;font-size:15px;font-weight:600}.pedal-buttons button span{color:#c6d6e1;margin-top:3px;font-size:10px;font-weight:400;display:block}.brake-pedal{background:#3a4d5c;border-color:#788f9f}.gas-pedal{background:#283844;max-width:85px}.drive-actions{flex-direction:column;gap:9px;display:flex}.drive-actions button{padding:8px;font-size:12px}.training-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;height:42px;padding:0 28px;font-size:11px;display:flex}.wheel-clearances{white-space:nowrap;align-items:center;gap:20px;display:flex}.wheel-clearances>span:not(.strip-label){font-variant-numeric:tabular-nums}.strip-label{color:var(--muted)}.assists{gap:18px;display:flex}.assists label{white-space:nowrap;cursor:pointer;align-items:center;gap:5px;display:flex}.danger{color:var(--danger)!important}footer{color:var(--muted);justify-content:space-between;align-items:center;gap:15px;min-height:36px;padding:12px 28px;font-size:10px;display:flex}.result-panel{z-index:6;background:#20313bf7;border-radius:12px;width:min(520px,100% - 32px);padding:24px 28px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 12px 36px #1b273650}.result-panel>span{color:#c2d4df;font-size:12px}.result-panel h2{margin-top:8px;font-size:26px}.result-panel p{color:#d0dde5;margin-top:12px;font-size:13px}.result-data{color:#c8d7e0;gap:28px;padding:16px 0;font-size:12px;display:flex}.result-data b{color:#f1f5f8;margin-left:6px}.result-actions{flex-wrap:wrap;gap:8px;display:flex}.result-actions button{flex:1;font-size:12px}.result-panel small{margin-top:13px;font-size:11px;display:block}#replay-bar{z-index:8;background:#20313bf5;border-radius:8px;align-items:center;gap:12px;width:min(740px,100% - 28px);padding:12px;display:flex;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}#replay-bar label{white-space:nowrap;font-size:12px}#replay-bar button{padding:7px 10px;font-size:12px}#replay-time{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px}dialog{color:#edf4f8;background:#24343f;border:none;border-radius:12px;width:min(580px,100vw - 24px);max-height:calc(100dvh - 32px);padding:26px;overflow:auto;box-shadow:0 14px 55px #0006}dialog::backdrop{background:#14222cb8}.dialog-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px;display:flex}.dialog-heading h2{font-size:22px}.dialog-heading button{background:0 0;border:0;min-width:42px;padding:8px}dialog>p,form>p{color:#cbd9e2;font-size:13px;line-height:1.7}fieldset{border:1px solid #506673;border-radius:7px;margin:24px 0 0;padding:14px 16px}legend{color:#e5edf2;padding:0 6px;font-size:13px}fieldset label{margin:4px 0 8px;font-size:12px;display:block}fieldset output{float:right;color:#aecde0}.settings-grid{grid-template-columns:1fr 1fr;gap:8px 18px;display:grid}.settings-grid input,.settings-grid select{width:100%;margin-top:7px;display:block}.form-note{color:#bcd0de!important;margin-top:18px!important;font-size:12px!important}.dialog-actions{justify-content:flex-end;gap:10px;margin-top:22px;display:flex}.help-steps{margin:22px 0;padding-left:24px}.help-steps li{margin-bottom:18px;padding-left:6px}.help-steps b{font-size:14px;font-weight:600}.help-steps p{color:#c5d5df;margin-top:6px;font-size:13px}.webgl-error{color:#142b3b;background:#dce8ed;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:30px;display:flex;position:absolute;inset:0}.webgl-error h2{font-size:22px}@media (width<=1100px){.topbar{gap:12px;padding:0 18px}.dashboard{grid-template-columns:1fr 1.2fr 1fr 64px;gap:14px;padding:12px 18px}.instruments{gap:10px}.speed strong{min-width:66px;font-size:40px}.gear-wrap label{display:none}.trip-meta{flex-direction:column;gap:5px;margin-top:7px}.steering-middle{min-width:125px}.steering-control{gap:7px}.steer-button{min-width:34px}.training-strip{padding:0 18px}.wheel-clearances{gap:12px}.assists{gap:9px}.coach{width:260px}.top-actions button{padding:7px 9px}footer{padding:10px 18px}}@media (width<=700px) and (orientation:portrait){.topbar{flex-wrap:wrap;gap:8px;height:104px;padding:10px 14px}.brand{flex:1}.brand h1{font-size:18px}.top-actions{order:2}.top-actions button{min-height:34px;padding:6px;font-size:11px}.topbar nav{order:3;width:100%}.topbar nav button{flex:1}.brand span{font-size:10px}.viewport{height:50dvh;min-height:345px}.scene-bar{gap:12px;padding:8px 10px;font-size:10px;top:10px;left:10px}.view-switch{top:48px;right:10px}.view-switch button{min-height:30px;padding:5px 10px;font-size:10px}.coach{display:none}.field-note{font-size:9px;bottom:12px;left:10px;right:auto}.start-panel{padding:20px;top:54%}.start-panel h2{font-size:21px}.start-panel>p{font-size:12px}.start-actions{margin:16px 0 12px}.stage-picker{margin-bottom:8px}.dashboard{grid-template-columns:1.05fr 1fr;gap:10px 18px;padding:12px 14px}.instruments{flex-wrap:nowrap;grid-column:1/-1;gap:14px}.speed strong{min-width:50px;font-size:30px}.speed span{font-size:10px}#gear{min-width:54px;min-height:32px;font-size:16px}.trip-meta{flex-basis:auto;gap:4px;margin:0 0 0 auto;font-size:10px}.steering-control{grid-column:1;gap:5px}.steer-button{min-width:30px;height:54px;padding:4px}.steering-middle{min-width:105px}#wheel-drag{width:66px;height:66px}.steering-readout{gap:4px}.steering-readout output{font-size:9px}.steering-readout button{font-size:10px}.pedals{grid-column:2}.pedal-labels{font-size:10px}.pedal-labels>span{display:none}.pedal-buttons{gap:7px}.pedal-buttons button{min-height:65px;padding:6px;font-size:13px}.gas-pedal{max-width:65px}.drive-actions{flex-direction:row;grid-column:1/-1;justify-content:stretch}.drive-actions button{flex:1;min-height:36px}.training-strip{flex-direction:column;align-items:stretch;gap:9px;height:auto;min-height:70px;padding:10px 14px;font-size:10px}.wheel-clearances{justify-content:space-between;gap:5px}.assists{justify-content:flex-end;gap:14px}footer{padding:10px 14px;font-size:10px;line-height:1.6}footer>span:first-child{display:none}.result-panel{padding:20px}.result-panel h2{font-size:22px}.result-panel p{font-size:12px}.result-actions button{padding:8px}.result-data{padding:12px 0}#replay-bar{flex-wrap:wrap;gap:6px;padding:8px}#replay-bar label{display:none}#timeline{flex-basis:100%;order:5}#replay-bar button{flex:1;min-height:34px}dialog{padding:20px}.settings-grid{gap:7px 12px}}@media (height<=600px) and (orientation:landscape){:root{font-size:12px}.topbar{gap:10px;height:46px;padding:0 14px}.brand{gap:8px}.brand svg{width:23px;height:26px}.brand h1{font-size:15px}.brand span{display:none}.top-actions button{min-height:30px;padding:5px 8px;font-size:10px}.segmented{padding:2px}.segmented button{min-height:28px;padding:4px 10px;font-size:11px}.viewport{height:calc(100dvh - 162px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:190px}.dashboard{grid-template-columns:minmax(100px,.7fr) minmax(215px,1.2fr) minmax(190px,1fr) 52px;gap:14px;min-height:116px;padding:7px 14px}.instruments{gap:6px}.speed strong{min-width:48px;font-size:31px}.speed span{font-size:9px}.gear-wrap label{display:none}#gear{min-width:45px;min-height:30px;padding:2px;font-size:16px}.trip-meta{gap:3px;margin-top:5px;font-size:9px}.steering-control{gap:8px}.steer-button{min-width:36px;height:60px}.steering-middle{min-width:125px;max-width:190px}#wheel-drag{width:51px;height:51px}.steering-readout output{font-size:10px}.steering-readout button{min-height:20px;font-size:9px}.steering-middle input{min-height:22px}.pedal-labels{font-size:9px}.pedal-labels>span{display:none}.pedals input{min-height:22px}.pedal-buttons{gap:9px;margin-top:0}.pedal-buttons button{min-height:61px;padding:4px;font-size:13px}.pedal-buttons button span{font-size:9px}.gas-pedal{max-width:68px}.drive-actions{gap:5px}.drive-actions button{min-height:36px;padding:4px;font-size:10px}.training-strip,footer{display:none!important}.scene-bar{gap:12px;padding:6px 10px;font-size:10px;top:9px;left:12px}.view-switch{top:9px;right:12px}.view-switch button{min-height:26px;padding:4px 9px;font-size:10px}.coach{width:220px;padding:8px 11px;bottom:12px;left:12px}.coach-title{display:none}.coach p{margin:0;font-size:10px;line-height:1.5}.field-note{padding:3px 6px;font-size:9px;bottom:10px;right:12px}.start-panel{width:390px;padding:16px 20px;top:55%}.start-panel>p{margin-top:5px;font-size:11px}.start-actions button{min-height:36px;font-size:12px}.stage-picker{margin-bottom:5px;font-size:10px}.stage-picker select{min-height:28px;padding:4px;font-size:10px}.start-panel small{font-size:9px}.result-panel{width:440px;padding:15px 20px;top:54%}.result-panel>span{font-size:10px}.result-panel h2{margin-top:3px;font-size:19px}.result-panel p{margin-top:6px;font-size:11px;line-height:1.55}.result-data{padding:9px 0;font-size:10px}.result-actions button{min-height:33px;padding:5px 8px;font-size:10px}.result-panel small{margin-top:6px;font-size:9px}#replay-bar{gap:9px;padding:7px;bottom:8px}#replay-bar button{min-height:30px;font-size:10px}#replay-bar label,#replay-time{font-size:10px}dialog{max-height:calc(100dvh - 16px);padding:18px 24px}.dialog-heading h2{font-size:20px}.coach{display:none}.start-panel{padding:12px 18px}.start-panel>p{display:none}.start-actions{margin:9px 0 7px}.stage-picker{margin-bottom:4px}.start-panel h2{font-size:17px}}@media (height<=600px) and (orientation:landscape) and (pointer:coarse){.viewport{height:calc(100dvh - 174px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.dashboard{grid-template-columns:minmax(90px,.7fr) minmax(230px,1.2fr) minmax(175px,1fr) 52px;gap:12px;min-height:128px}#wheel-drag{width:40px;height:40px}.steering-readout{gap:2px}.steering-readout output{font-size:9px}.start-panel{padding:10px 16px;top:55%}.start-panel small{font-size:8px}.field-note{display:none}}@media (width<=700px) and (orientation:portrait) and (pointer:coarse){.steering-middle{min-width:0}.steering-readout{flex-wrap:wrap;gap:0}.steering-readout output{white-space:normal;text-align:center;max-width:100%}.steering-control{gap:4px}#wheel-drag{max-width:100%}}@media (prefers-reduced-motion:reduce){button{transition:none}}@media (pointer:coarse){button{-webkit-tap-highlight-color:transparent}.view-switch button{min-height:34px}.assists label{min-height:30px}#scene{touch-action:none}}
