:root{color:#f4f3e9;font-synthesis:none;--ink:#203a3e;--sea:#366c73;--shell:#eee8d4;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);background:#223f46;font-family:Yu Gothic,Hiragino Kaku Gothic ProN,sans-serif}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit;background:#183b41db;border:1px solid #eae6d855;border-radius:5px;min-height:42px;padding:10px 16px}button:hover{background:#386f74}button:disabled{opacity:.5;cursor:wait}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #e8c882}[hidden]{display:none!important}#app,#viewport,#title,#hud{position:fixed;inset:0}#viewport canvas{touch-action:none;width:100%;height:100%;display:block}#title{padding:calc(50px + var(--safe-top)) 7vw 60px;background:linear-gradient(90deg,#15353eae 0%,#15353e25 66%,#0000);align-items:center;display:flex}.title-content{max-width:580px}.title-place{margin:0 0 20px;font-size:16px;font-weight:600}h1{letter-spacing:-.055em;text-shadow:0 2px 18px #102e3450;margin:0 0 28px;font-family:Arial Narrow,Bahnschrift Condensed,sans-serif;font-size:clamp(50px,7vw,98px);font-weight:800;font-stretch:75%;line-height:.95}.title-description{margin:0 0 30px;font-size:17px;line-height:1.9}.title-buttons{flex-wrap:wrap;gap:12px;display:flex}.title-buttons button:first-child{background:var(--shell);color:var(--ink);border:0;min-width:180px;padding:16px 28px;font-weight:700}.title-buttons button:first-child:hover{background:#fff8dc}.title-foot{color:#eee8d4cc;margin:24px 0 6px;font-size:12px}#load-status{max-width:480px;font-size:12px;line-height:1.6}#hud{pointer-events:none;text-shadow:0 1px 5px #102e3480}#hud button{pointer-events:auto}.location{left:max(24px,env(safe-area-inset-left));top:calc(24px + var(--safe-top));background:#193a3aa8;border-left:3px solid #d9c7a2;flex-direction:column;gap:5px;max-width:45vw;padding:12px 18px;display:flex;position:absolute}.place{font-size:11px}.location strong{font-size:17px}.location #mode{color:#d1dfd3;font-size:11px}.top-actions{right:max(24px,env(safe-area-inset-right));top:calc(24px + var(--safe-top));align-items:center;gap:8px;display:flex;position:absolute}#clock{font-variant-numeric:tabular-nums;margin-right:10px;font-size:24px}#instruments{bottom:calc(38px + var(--safe-bottom));width:390px;text-shadow:none;background:#183338db;border-top:2px solid #e0d1aa;border-radius:8px;align-items:center;gap:22px;padding:15px 25px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.speed{align-items:baseline;gap:6px;display:flex}.speed strong{font-variant-numeric:tabular-nums;font-family:Bahnschrift,sans-serif;font-size:52px;font-weight:400;line-height:1}.speed span{color:#c5d5cc;font-size:10px}.gear{flex-direction:column;gap:5px;min-width:40px;display:flex}.gear b{color:#e7cea0;font-size:25px;font-weight:400}.gear span{white-space:nowrap;font-size:9px}.rpm{flex-direction:column;flex:1;gap:7px;font-size:10px;display:flex}.rpm-track{background:#c0d8cd33;width:100%;height:3px}.rpm-track i{background:#dbceac;width:20%;height:100%;display:block}.lamps{color:#bce2b4;gap:22px;font-size:12px;display:flex;position:absolute;top:-20px;left:50%;transform:translate(-50%)}.lamps span{opacity:.2}.lamps span.on{opacity:1}#map-panel{right:max(24px,env(safe-area-inset-right));bottom:calc(38px + var(--safe-bottom));background:#183338d9;border-radius:8px;width:165px;padding:5px;position:absolute}#minimap{width:100%;height:auto;display:block}#map-panel>span{text-align:center;padding:4px;font-size:10px;display:block}#prompt{left:50%;bottom:calc(152px + var(--safe-bottom));text-align:center;background:#193a3ac9;border-radius:4px;width:max-content;max-width:85vw;padding:9px 15px;font-size:12px;position:absolute;transform:translate(-50%)}#control-hint{left:24px;bottom:calc(38px + var(--safe-bottom));background:#183338ae;max-width:260px;padding:10px 15px;font-size:11px;line-height:1.8;position:absolute}#credits{left:12px;bottom:calc(5px + var(--safe-bottom));color:#e3e9dcbb;z-index:2;gap:10px;max-width:calc(100vw - 24px);font-size:9px;display:flex;position:fixed}#credits a{color:inherit}#toast{top:calc(100px + var(--safe-top));color:#183338;z-index:15;text-align:center;background:#f1e8d8;border-radius:6px;max-width:85vw;padding:12px 20px;font-size:13px;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 3px 18px #0003}dialog{color:var(--ink);width:min(640px,100vw - 28px);max-height:calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));background:#edf0e7;border:0;border-radius:10px;padding:24px;box-shadow:0 20px 80px #10242d66}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#13272e77}dialog header{justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px;display:flex}dialog h2{margin:0;font-size:20px}dialog button{color:#f4f3e9;background:#2e6167}dialog header button{padding:7px 12px;font-size:12px}.settings-grid{grid-template-columns:1fr 1fr;gap:20px 24px;display:grid}.settings-grid label{flex-direction:column;gap:9px;font-size:13px;font-weight:600;display:flex}.settings-grid label.check{flex-direction:row;align-items:center}.settings-grid small{font-size:10px;font-weight:400;line-height:1.6}select{color:var(--ink);background:#fafbf6;border:1px solid #547d7955;border-radius:4px;padding:10px}input[type=range]{accent-color:#366c73;width:100%}input[type=checkbox]{accent-color:#366c73;width:17px;height:17px}.settings-buttons{flex-wrap:wrap;gap:9px;margin-top:22px;display:flex}.settings-buttons button{font-size:12px}.settings-note{margin-top:20px;font-size:11px;line-height:1.8}details{margin-top:24px;font-size:13px}summary{cursor:pointer}#key-bindings{grid-template-columns:1fr 1fr;gap:10px;padding-top:14px;display:grid}#key-bindings label{justify-content:space-between;align-items:center;font-size:12px;display:flex}#key-bindings input{color:#24454b;background:#fff;border:1px solid #a0b3a2;border-radius:3px;width:70px;padding:8px}dl{grid-template-columns:1fr 1.7fr;gap:13px;font-size:13px;display:grid}dt{font-weight:700}dd{margin:0}#instructions p{font-size:12px;line-height:1.9}#touch,#orientation{display:none}#touch{pointer-events:none}#touch button,#steering{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}#steering{left:max(22px,env(safe-area-inset-left));bottom:calc(52px + var(--safe-bottom));background:#24454b88;border:2px solid #ebeddb88;border-radius:50%;justify-content:center;align-items:center;width:125px;height:125px;display:flex;position:absolute}.knob{background:#456c70aa;border:2px solid #edead6bb;border-radius:50%;width:60px;height:60px;display:block}#steering small{font-size:10px;position:absolute;bottom:10px}.pedals{bottom:calc(48px + var(--safe-bottom));right:max(18px,env(safe-area-inset-right));grid-template-columns:68px 68px;gap:9px;display:grid;position:absolute}.pedals button{background:#193d44bc;height:74px;padding:8px 2px;font-size:12px}.pedals small{font-size:9px}.pedals #accelerator{background:#3f747ac9;grid-area:1/2/3;height:116px}.pedals #handbrake{height:34px;min-height:34px;font-size:9px;line-height:1.2}.held{color:#1c3e44!important;background:#d4c598!important}.touch-sub{right:max(18px,env(safe-area-inset-right));top:calc(84px + var(--safe-top));gap:8px;display:flex;position:absolute}.touch-sub button{min-height:40px;padding:8px 12px;font-size:11px}#fps{left:24px;top:calc(135px + var(--safe-top));pointer-events:none;background:#12343cbb;padding:5px;font-size:10px;position:absolute}#subtitle{left:50%;bottom:calc(190px + var(--safe-bottom));z-index:10;text-align:center;background:#16343ce6;max-width:85vw;padding:10px 20px;font-size:14px;position:fixed;transform:translate(-50%)}@media (pointer:coarse){#touch{display:block}#control-hint{display:none}#map-panel{bottom:auto;top:calc(125px + var(--safe-top));width:115px;left:24px;right:auto}#instruments{width:290px;bottom:calc(48px + var(--safe-bottom));gap:15px;padding:12px 15px}.speed strong{font-size:42px}#prompt{bottom:calc(166px + var(--safe-bottom));font-size:11px}}.touch-active #touch{display:block}.touch-active #control-hint{display:none}.touch-active #instruments{gap:15px;width:290px;padding:12px 15px}.touch-active #map-panel{bottom:auto;top:calc(125px + var(--safe-top));width:115px;left:24px;right:auto}@media (width<=900px){#control-hint{max-width:185px;font-size:10px;left:18px}#map-panel{width:125px;right:18px}#instruments{gap:15px;width:320px;padding:12px 18px}.location{left:18px;top:calc(16px + var(--safe-top));padding:9px 12px}.top-actions{right:18px;top:calc(16px + var(--safe-top))}.location strong{font-size:14px}#clock{font-size:20px}}@media (width<=600px) and (orientation:portrait){#title{align-items:center;padding:40px 7vw}.title-place{font-size:13px}h1{font-size:60px}.title-description{font-size:15px}.title-buttons{flex-direction:column}.title-buttons button{width:100%}.location{max-width:57vw;top:calc(12px + var(--safe-top));padding:8px 10px;left:12px}.location strong{font-size:12px}.top-actions{top:calc(12px + var(--safe-top));flex-wrap:wrap;justify-content:flex-end;gap:5px;width:130px;right:12px}.top-actions button{min-height:32px;padding:6px 8px;font-size:10px}#clock{text-align:right;width:100%;margin:0;font-size:18px}#instruments{bottom:calc(210px + var(--safe-bottom));gap:12px;width:230px;padding:9px 14px}.touch-active #instruments{gap:12px;width:230px}#instruments .speed strong{font-size:36px}#instruments .rpm{font-size:9px}#prompt{bottom:calc(300px + var(--safe-bottom));padding:7px 10px;font-size:10px}#steering{width:110px;height:110px;left:18px;bottom:calc(62px + var(--safe-bottom))}.pedals{right:18px;bottom:calc(62px + var(--safe-bottom))}.touch-sub{top:calc(106px + var(--safe-top));gap:5px;right:12px}.touch-sub button{min-height:36px;padding:8px 9px;font-size:10px}#map-panel,.touch-active #map-panel{top:calc(155px + var(--safe-top));width:95px;bottom:auto;left:12px;right:auto}#orientation{bottom:calc(29px + var(--safe-bottom));white-space:nowrap;background:#143a42a8;margin:0;padding:4px 8px;font-size:10px;display:block;position:absolute;left:50%;transform:translate(-50%)}#control-hint{bottom:calc(110px + var(--safe-bottom));max-width:140px;left:12px}#credits{flex-wrap:wrap;gap:7px;font-size:8px;line-height:1.5}dialog{padding:18px}.settings-grid{gap:15px}.settings-grid label{font-size:11px}#fps{top:calc(88px + var(--safe-top));left:12px}#subtitle{bottom:calc(330px + var(--safe-bottom));font-size:12px}}@media (height<=500px){#title{padding:24px 6vw}h1{margin-bottom:14px;font-size:58px}.title-place{margin-bottom:10px}.title-description{margin-bottom:16px;font-size:13px}.title-foot{margin-top:12px}.title-buttons button:first-child{padding:10px 22px}.title-content{max-width:500px}.location{gap:2px;padding:7px 10px}.place{font-size:9px}#steering{width:105px;height:105px;bottom:calc(30px + var(--safe-bottom))}.pedals{bottom:calc(30px + var(--safe-bottom))}#instruments{bottom:calc(28px + var(--safe-bottom));gap:12px;width:240px;font-size:10px}.touch-active #instruments{gap:12px;width:240px}.speed strong{font-size:36px}#prompt{bottom:calc(134px + var(--safe-bottom))}#map-panel,.touch-active #map-panel{width:85px;top:calc(101px + var(--safe-top));left:18px}.touch-sub{top:calc(74px + var(--safe-top))}#control-hint{max-width:170px;padding:6px 9px;font-size:9px}#subtitle{bottom:calc(174px + var(--safe-bottom))}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}.top-actions{background:#1c3e4680;border-radius:5px;padding:5px 8px}.walking #handbrake{visibility:hidden}.walking #instruments .rpm{opacity:.55}.walking #accelerator{height:90px}#steering:focus-visible{outline:3px solid #e8c882}#fps{max-width:calc(100vw - 140px);left:auto;right:24px}@media (width<=600px) and (orientation:portrait){#fps{left:auto;right:12px;top:calc(150px + var(--safe-top));max-width:calc(100vw - 125px)}}.walking #instruments{min-width:175px;bottom:calc(24px + var(--safe-bottom));gap:0!important;width:auto!important;padding:10px 18px!important}.walking #instruments .speed,.walking #instruments .rpm,.walking #instruments .lamps{display:none}.walking #instruments .gear{align-items:center;gap:12px;display:flex}.walking #instruments .gear b{font-size:15px}.walking #prompt{bottom:calc(82px + var(--safe-bottom))}@media (width<=600px) and (orientation:portrait){.walking #instruments{bottom:calc(220px + var(--safe-bottom))}.walking #prompt{bottom:calc(273px + var(--safe-bottom))}}
