:root{color-scheme:dark;font-family:system-ui,-apple-system,sans-serif;color:#eff5ff;background:#0d1729}*{box-sizing:border-box}body{margin:0}button,select,a{touch-action:manipulation}button,select{font:inherit;color:inherit;background:#15263ce8;border:1px solid #91b9ca55;border-radius:10px;padding:10px;cursor:pointer}button:hover{background:#28445a}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ffe69a;outline-offset:3px}button:disabled{opacity:.35}#game{height:100svh;min-height:480px;position:relative;overflow:hidden}#city{width:100%;height:100%;display:block}header{position:absolute;top:max(18px,env(safe-area-inset-top));left:24px;right:24px;display:flex;align-items:center;gap:16px;pointer-events:none}header>*{pointer-events:auto}.home{font-weight:800;color:#fff;text-decoration:none;font-size:24px}.eyebrow{font-size:10px;letter-spacing:2px;color:#b6d7e1}h1{font-size:24px;letter-spacing:-1px;margin:3px 0}header #help{margin-left:auto}header button{width:44px;height:44px}header #pause{width:auto}.dashboard{position:absolute;left:24px;top:108px;width:260px;padding:18px;border:1px solid #90bbc33b;border-radius:16px;background:#101e32d9;backdrop-filter:blur(12px);box-shadow:0 10px 30px #07112433}.dashboard label{font-size:10px;letter-spacing:2px;color:#a7c2cd}.dashboard select{margin-top:10px;width:100%;font-size:13px}.dashboard p{font-size:12px;line-height:1.5;color:#b7cad4;margin:10px 0}.telemetry{display:flex;justify-content:space-between;border-block:1px solid #aacbd022;padding:12px 0;font-size:11px;color:#abc5d3}.telemetry strong{font-size:30px;font-weight:500;color:#fff;font-variant-numeric:tabular-nums}.journey{display:flex;flex-direction:column;gap:6px;margin:16px 0}.journey span{font-size:10px;letter-spacing:1px;color:#f8d690}.journey strong{font-size:19px}.dashboard #reset{font-size:11px;width:100%;text-align:left;color:#c8dbe7}kbd{float:right;font:inherit;color:#fbd18d}.map-panel{position:absolute;right:24px;bottom:34px;border:1px solid #9fc0c544;border-radius:12px;overflow:hidden;background:#101e32dc}.map-panel canvas{display:block;width:200px;height:160px}.map-panel span{display:block;padding:9px 12px;font-size:9px;letter-spacing:1px;color:#accbd4}.map-panel b{color:#e4c990;font-weight:500}#notice{position:absolute;bottom:66px;left:24px;margin:0;max-width:calc(100% - 280px);padding:11px 15px;border-left:2px solid #f8d18a;background:#12223cbb;font-size:12px;line-height:1.5}.keyboard-hint{position:absolute;bottom:28px;left:24px;font-size:11px;color:#c8d8e4}.touch{display:none;position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:16px;right:16px;justify-content:space-between;gap:10px;pointer-events:none}.touch>div{display:flex;gap:6px;pointer-events:auto}.touch button{min-width:54px;height:54px;user-select:none;touch-action:none;font-size:12px;background:#15263ce8}.touch button.held{background:#d7b478;color:#15263c}.touch .flight{flex-direction:column}.touch .flight button{height:38px}dialog{width:min(520px,calc(100% - 32px));max-height:calc(100svh - 32px);overflow:auto;border:1px solid #91c4cf66;border-radius:22px;padding:30px;color:#edf5ff;background:#101f34;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#06122299;backdrop-filter:blur(5px)}dialog h2{font-size:36px;font-weight:500;line-height:1.15;letter-spacing:-1px;margin:18px 0}dialog p{font-size:13px;line-height:1.65;color:#b7cbd8}.instructions{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;border-block:1px solid #90bbc333}.instructions b{display:block;color:#f8d690}dialog .small{font-size:11px}#start{background:#efd59f;color:#142039;width:100%;font-weight:600;border:0;padding:14px}.text-link{display:block;color:#aecddc;font-size:11px;text-align:center;margin-top:14px}#about{display:none}#about:target{display:block;position:absolute;inset:0;background:#101f34;overflow:auto;padding:40px;z-index:5}#about a{color:#f8d690}@media(pointer:coarse),(max-width:700px){.touch{display:flex}.keyboard-hint{display:none}.dashboard{left:16px;top:88px;width:210px;padding:12px}.dashboard select{font-size:11px}.dashboard #handling{font-size:10px;margin:7px 0}.telemetry{padding:7px 0}.telemetry strong{font-size:24px}.journey{margin:10px 0;gap:4px}.journey strong{font-size:15px}.map-panel{right:16px;bottom:124px}.map-panel canvas{width:132px;height:106px}.map-panel span{font-size:8px;padding:7px}.map-panel span b{display:block;padding-top:4px}#notice{left:16px;bottom:116px;max-width:calc(100% - 178px);font-size:10px;padding:8px}header{left:16px;right:16px;gap:10px}.eyebrow{font-size:8px;letter-spacing:1px}h1{font-size:22px}.home{font-size:20px}header button{height:38px;width:38px}.instructions{gap:0 12px}dialog{padding:23px}dialog h2{font-size:30px}}@media(max-height:540px){#game{min-height:320px}.dashboard{top:74px;width:200px;padding:10px}.dashboard #handling{display:none}.journey{margin:6px 0}.telemetry{padding:4px 0}.telemetry strong{font-size:22px}.map-panel{bottom:94px}.map-panel canvas{width:120px;height:96px}#notice{bottom:85px;left:230px;max-width:calc(100% - 400px)}.touch button{height:42px}.touch .flight{flex-direction:row}.touch .flight button{height:42px}header{top:12px}dialog h2{font-size:26px}}
/* Interior controls use the same simulation as keyboard and touch buttons. */
header #view{width:auto;min-width:76px;font-size:12px}#cockpit{display:none;position:absolute;bottom:0;left:0;right:0;height:180px;border-top:2px solid #7495a455;border-radius:40% 40% 0 0 / 20px 20px 0 0;background:linear-gradient(#283c4bee,#10202ff7 40%,#091522);pointer-events:none;box-shadow:0 -8px 32px #09152355}body[data-view=cockpit] #cockpit{display:block}body[data-view=cockpit] .dashboard .telemetry,body[data-view=cockpit] #handling{display:none}body[data-view=cockpit] .dashboard{width:240px}body[data-view=cockpit] .map-panel{bottom:190px}body[data-view=cockpit] #notice{bottom:194px}body[data-view=cockpit] .keyboard-hint{bottom:166px;z-index:2}#cockpit::before,#cockpit::after{content:"";position:fixed;top:0;bottom:180px;width:11px;background:linear-gradient(90deg,#162b3c,#496172);pointer-events:none}#cockpit::before{left:0;transform:skewX(9deg);transform-origin:bottom}#cockpit::after{right:0;transform:skewX(-9deg);transform-origin:bottom}.instrument-left,.instrument-right{position:absolute;top:28px;display:grid;grid-template-columns:1fr 1fr;gap:20px;width:180px}.instrument-left{right:calc(50% + 106px)}.instrument-right{left:calc(50% + 106px)}#cockpit span{font-size:9px;letter-spacing:1px;color:#a6c8d4}#cockpit strong{display:block;font-size:30px;font-weight:500;font-variant-numeric:tabular-nums;color:#e4f4f1;margin-top:6px}#control{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);width:145px;height:145px;pointer-events:auto;touch-action:none;cursor:grab;border-radius:50%;outline-offset:5px;--steer:0deg;--lift:0px}#control:focus-visible{outline:3px solid #ffe69a}#control:active{cursor:grabbing}.wheel{position:absolute;inset:0;border:12px solid #0c1826;border-radius:50%;box-shadow:0 0 0 2px #718a97,inset 0 0 0 2px #57747e;transform:translateY(var(--lift)) rotate(var(--steer));transition:transform 70ms linear}.wheel i{position:absolute;height:11px;background:#35515f;left:0;right:0;top:45%;border-radius:3px}.wheel b{position:absolute;left:calc(50% - 7px);width:14px;height:55%;bottom:0;background:#35515f;border-radius:3px}.control-name{position:absolute;top:46%;left:0;right:0;text-align:center;font-size:8px!important;background:#213a49;border-radius:16px;padding:7px 0;margin:0 28px;color:#e1d1a9!important;pointer-events:none}#control-hint{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:8px!important}.pedals{position:absolute;left:calc(50% + 106px);bottom:20px;display:flex;gap:7px;pointer-events:auto}.pedals button{font-size:10px;height:44px;touch-action:none;user-select:none}.pedals button.held{background:#e7c58a;color:#122239}body[data-vehicle=heli] .wheel,body[data-vehicle=plane] .wheel,body[data-vehicle=hover] .wheel{border-radius:14px;border-top:0;inset:25px 0 12px;border-width:13px}body[data-vehicle=heli] .wheel i,body[data-vehicle=plane] .wheel i,body[data-vehicle=hover] .wheel i{top:60%}body[data-vehicle=scooter] .wheel{border-radius:10px;border-top:0;border-bottom:0;inset:52px 0;border-width:16px}body[data-vehicle=scooter] .wheel b{display:none}body[data-vehicle=scooter] #cockpit::before,body[data-vehicle=scooter] #cockpit::after{display:none}@media(pointer:coarse),(max-width:700px){header #view{position:absolute;right:0;top:60px;height:34px;min-width:70px}body[data-view=cockpit] .dashboard{width:210px}#cockpit{height:205px;border-radius:24% 24% 0 0 / 14px 14px 0 0}#cockpit::before,#cockpit::after{bottom:205px;width:7px}#control{width:105px;height:105px;bottom:95px}.wheel{border-width:9px}.instrument-left,.instrument-right{top:30px;width:100px;gap:12px;grid-template-columns:1fr}.instrument-left{left:16px;right:auto}.instrument-right{right:16px;left:auto}#cockpit strong{font-size:21px;margin-top:3px}#cockpit span{font-size:8px}#control-hint,.pedals{display:none}body[data-view=cockpit] .map-panel{bottom:250px}body[data-view=cockpit] #notice{bottom:214px;max-width:calc(100% - 32px);left:16px}body[data-view=cockpit] .touch{z-index:3}}@media(max-height:540px){header #view{position:static;height:38px}#cockpit{height:118px}#cockpit::before,#cockpit::after{bottom:118px}#control{width:86px;height:86px;bottom:22px}.instrument-left,.instrument-right{top:12px;width:130px;gap:18px;grid-template-columns:1fr 1fr}.instrument-left{left:auto;right:calc(50% + 90px)}.instrument-right{right:auto;left:calc(50% + 90px)}#cockpit strong{font-size:20px}body[data-view=cockpit] .touch .flight{left:calc(50% - 74px);position:absolute;bottom:85px}body[data-view=cockpit] .map-panel{bottom:140px}body[data-view=cockpit] #notice{bottom:125px;left:230px;max-width:calc(100% - 400px)}body[data-view=cockpit] .keyboard-hint{bottom:120px}.pedals{display:none}}
.control-name{white-space:nowrap;letter-spacing:.3px!important;font-size:7px!important;margin:0 12px;padding:6px 0}@media(pointer:coarse),(max-width:700px){.instrument-left,.instrument-right{top:14px;gap:8px}#cockpit .instrument-left span,#cockpit .instrument-right span{display:block;line-height:1.2}#cockpit strong{font-size:20px;line-height:1;margin-top:3px}}@media(max-height:540px){.instrument-left,.instrument-right{width:160px;top:12px}body[data-view=cockpit] #notice{bottom:173px}body[data-view=cockpit] .touch .flight{bottom:110px}}
