:root{color:#edf1ef;font-synthesis:none;text-rendering:optimizelegibility;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--ink:#202a30;--panel:#1f2a30e6;--line:#eff4f2c7;--amber:#ffca50;--green:#70d3ad;--red:#d96660;background:#93a7b0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;margin:0;overflow:hidden}[hidden]{display:none!important}button,select,input{font:inherit}button{touch-action:manipulation}#scene,#scene canvas{width:100%;height:100%;position:fixed;inset:0}#scene canvas{pointer-events:none;display:block}.home-panel{z-index:30;text-align:center;background:#202a30f0;border:3px solid #f0f3f2;width:min(360px,100% - 34px);padding:28px 24px 24px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:12px 14px #202a3052}.home-panel__mark{justify-content:center;gap:7px;margin-bottom:13px;display:flex}.home-panel__mark i{background:var(--amber);border:1px solid #eff4f294;width:23px;height:6px;display:block}.home-panel h1{letter-spacing:.08em;margin:0;font:950 42px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.home-panel button{color:#fff;cursor:pointer;background:#b64f4b;border:2px solid #f0f3f2;width:170px;min-height:44px;margin-top:22px;font-size:12px;font-weight:950}body.home-open .mission-hud,body.home-open .flight-control,body.home-open .drop-dock,body.home-open .pip-panel{opacity:0;pointer-events:none}.mission-hud{z-index:12;top:calc(14px + var(--safe-top));width:min(680px, calc(100% - 230px - var(--safe-left) - var(--safe-right)));grid-template-columns:auto minmax(82px,auto) minmax(104px,auto) auto;align-items:stretch;gap:7px;display:grid;position:fixed;left:50%;transform:translate(-50%)}.flight-telemetry{white-space:nowrap;background:#202a30c7;border:1px solid #eff4f285;align-items:center;gap:7px;padding:6px 9px;display:flex;box-shadow:3px 4px #202a3038}.flight-telemetry div{gap:3px;display:grid}.flight-telemetry span,.target-panel span,.time-panel span{color:#bdc7c7;letter-spacing:.12em;font:800 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.flight-telemetry strong{font:900 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.altitude-meter{--altitude-percent:0%;background:linear-gradient(#0000 65%,#ffca50b8 65% 68%,#0000 68%);border-left:2px solid #eff4f2b8;flex:0 0 39px;width:39px;height:35px;position:relative;display:block!important}.altitude-meter__label{color:#bdc7c7;letter-spacing:0;font:750 7px/1 ui-monospace,SFMono-Regular,Menlo,monospace;position:absolute;left:6px}.altitude-meter__label--ceiling{top:0}.altitude-meter__label--building{color:#ffe08c;bottom:calc(33.333% - 3px)}.altitude-meter__needle{z-index:1;left:-4px;bottom:var(--altitude-percent);background:var(--green);width:8px;height:3px;position:absolute;transform:translateY(50%);box-shadow:0 0 5px #70d3add9}.wind-arrow{width:25px;height:25px;fill:var(--amber);transform-origin:50%}.target-panel,.time-panel{border:2px solid var(--line);background:var(--panel);text-align:center;min-width:0;padding:7px 12px;box-shadow:5px 5px #202a3047}.target-panel span,.time-panel span{display:block}.target-panel strong,.time-panel strong{margin-top:4px;font:900 19px/1 ui-monospace,SFMono-Regular,Menlo,monospace;display:block}.target-panel--hit{border-color:var(--green);color:#baffd6;animation:.42s ease-out target-hit-pulse}.time-panel--warning{border-color:var(--amber);color:#ffe39a;animation:1s steps(2,end) infinite timer-warning}.time-panel--danger{border-color:var(--red);color:#ffaaa5;animation:.62s ease-in-out infinite timer-danger}@keyframes target-hit-pulse{0%,to{transform:scale(1);box-shadow:5px 5px #202a3047}48%{transform:scale(1.2);box-shadow:0 0 24px #70d3add9}}@keyframes timer-warning{50%{background:#846626e0}}@keyframes timer-danger{0%,to{transform:scale(1)}50%{transform:scale(1.13);box-shadow:0 0 22px #d96660d1}}.flight-control{z-index:12;left:calc(22px + var(--safe-left));bottom:calc(18px + var(--safe-bottom));opacity:.78;touch-action:none;background:#202a306b;border:3px solid #edf2f0cc;border-radius:50%;width:146px;height:146px;transition:opacity .16s,border-color .16s;position:fixed;box-shadow:6px 7px #202a303d}.flight-control--enabled{border-color:var(--line);opacity:.92}.flight-control__rail{pointer-events:none;background:#edf2f061;display:block;position:absolute;top:50%;left:50%}.flight-control__rail--horizontal{width:72%;height:2px;transform:translate(-50%,-50%)}.flight-control__rail--vertical{width:2px;height:72%;transform:translate(-50%,-50%)}.flight-control__stick{background:var(--ink);pointer-events:none;will-change:transform;border:3px solid #f2f5f4;border-radius:50%;width:40px;height:40px;position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);box-shadow:0 5px 14px #00000059}.flight-control__arrow{z-index:2;color:#f2f5f4;pointer-events:none;font:900 24px/1 ui-monospace,monospace;position:absolute}.flight-control__arrow--left{top:60px;left:10px}.flight-control__arrow--right{top:60px;right:10px}.flight-control__arrow--up{top:7px;left:62px}.flight-control__arrow--down{bottom:6px;left:62px}.drop-dock{z-index:13;right:calc(22px + var(--safe-right));bottom:calc(17px + var(--safe-bottom));justify-items:center;gap:5px;display:grid;position:fixed}.pause-button{z-index:3;background:var(--panel);width:43px;height:43px;color:var(--amber);cursor:pointer;border:3px solid #f2f5f4;border-radius:50%;font:950 15px/1 ui-monospace,monospace;position:absolute;top:-19px;right:-15px;box-shadow:3px 4px #202a3047}.drop-button{touch-action:none;background:var(--red);color:#fff;cursor:pointer;border:5px solid #f2f5f4;border-radius:50%;width:94px;height:94px;font-size:18px;font-weight:950;position:relative;box-shadow:0 0 0 6px #202a305c,6px 8px #202a3040}.drop-button:after{content:"";border:1px solid #ffffff85;border-radius:50%;position:absolute;inset:8px}.drop-button:active:not(:disabled){transform:scale(.96)}.drop-button:disabled{color:#aeb8b8;cursor:default;background:#59666b;border-color:#a2acad;box-shadow:0 0 0 5px #202a3038}.drop-button span,.drop-button small{z-index:1;display:block;position:relative}.drop-button small{opacity:.72;letter-spacing:.08em;margin-top:5px;font:800 8px/1 ui-monospace,monospace}.ammo-rack{z-index:3;background:var(--ink);border:2px solid #f2f5f4;border-radius:16px;place-items:center;min-width:38px;height:32px;padding:0 8px;display:grid;position:absolute;top:-10px;left:-12px}.ammo-rack strong{min-width:24px;color:var(--white);letter-spacing:.04em;text-align:center;font:900 14px/1 ui-monospace,monospace}.pause-panel{z-index:55;border:3px solid var(--line);text-align:center;background:#192227f5;gap:14px;min-width:220px;padding:22px;display:grid;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:10px 12px #202a3057}.pause-panel strong{font:950 24px/1 ui-monospace,monospace}.pause-panel button{border:2px solid var(--line);color:#fff;background:#b64f4b;min-height:42px;font-weight:950}body.game-paused .mission-hud,body.game-paused .flight-control{opacity:.4}.pip-panel{z-index:11;top:calc(60px + var(--safe-top));left:calc(16px + var(--safe-left));aspect-ratio:16/9;pointer-events:none;border:3px solid #f0f3f2;width:min(30vw,260px);position:fixed;box-shadow:7px 8px #202a305c}.pip-panel:after{content:"";border:1px solid #202a30a6;position:absolute;inset:0}.pip-panel--night-vision:before{content:"";z-index:1;background:repeating-linear-gradient(0deg,#74ff8f09 0 1px,#0000 1px 4px),radial-gradient(circle at 50% 48%,#72ff8d14 0 42%,#01120694 100%),#1e843729;position:absolute;inset:0;box-shadow:inset 0 0 34px #000a03c7}.pip-panel--night-vision{border-color:#9dffad}.pip-panel--night-vision span{color:#9dffad}.pip-panel--night-vision b{color:#d5ffdc}.pip-panel span,.pip-panel b{z-index:2;letter-spacing:.08em;background:#202a30db;padding:4px 7px;font:900 9px/1 ui-monospace,SFMono-Regular,Menlo,monospace;position:absolute;top:7px}.pip-panel span{left:7px}.pip-panel b{color:var(--red);right:7px}.pip-panel--impact{border-color:var(--amber)}.flight-feel-button{z-index:14;top:calc(12px + var(--safe-top));left:calc(12px + var(--safe-left));border:2px solid var(--line);background:var(--panel);min-width:96px;min-height:36px;color:var(--amber);letter-spacing:.12em;cursor:pointer;justify-content:center;align-items:center;gap:7px;font:950 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;display:flex;position:fixed;box-shadow:4px 5px #202a3042}.flight-feel-button svg{fill:none;stroke:currentColor;stroke-width:2px;width:17px;height:17px}.flight-feel-panel{z-index:70;top:calc(10px + var(--safe-top));right:calc(10px + var(--safe-right));width:min(400px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));max-height:calc(100% - 20px - var(--safe-top) - var(--safe-bottom));border:2px solid var(--line);touch-action:pan-y;-webkit-user-select:text;user-select:text;background:#192227fa;padding:15px;position:fixed;overflow:auto;box-shadow:0 18px 60px #0000007a}.flight-feel-panel__header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.flight-feel-panel__header span{color:var(--green);letter-spacing:.1em;align-items:center;gap:6px;font:900 9px/1 ui-monospace,monospace;display:flex}.flight-feel-panel__header span i{background:var(--green);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #70d3ad29}.flight-feel-panel__header strong{margin-top:5px;font-size:19px;display:block}.flight-feel-panel__header small{color:#aeb9b8;margin-top:5px;font:700 9px/1 ui-monospace,monospace;display:block}.flight-feel-form{gap:10px;display:grid}.game-settings-actions{grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:10px;display:grid}.feel-section{background:#3642496b;border:1px solid #eff4f238;padding:10px}.feel-section h2{color:#f0f3f2;margin:0;font-size:12px}.feel-section p{color:#9eaaa9;margin:4px 0 9px;font:700 8px/1.4 ui-monospace,monospace}.feel-range-field{color:#c8d0cf;grid-template-columns:1fr auto;align-items:center;gap:5px 10px;margin-top:8px;font-size:10px;font-weight:800;display:grid}.feel-range-field output{color:var(--amber);font:900 10px/1 ui-monospace,monospace}.feel-range-field input{width:100%;min-height:28px;accent-color:var(--amber);touch-action:pan-y;grid-column:1/3}.feel-toggle-field{color:#e5eeeb;background:#1a252a7a;border:1px solid #70d3ad52;justify-content:space-between;align-items:center;min-height:38px;margin-top:8px;padding:0 9px;font-size:10px;font-weight:900;display:flex}.feel-toggle-field input{width:20px;height:20px;accent-color:var(--green);margin:0}.flight-feel-metrics{grid-template-columns:repeat(2,1fr);gap:6px;margin-top:10px;display:grid}.flight-feel-metrics span{color:#cbd2d1;text-align:center;border:1px solid #eff4f233;padding:7px;font:800 9px/1 ui-monospace,monospace}.flight-feel-reset{color:#fff;cursor:pointer;background:#435158;border:1px solid #eff4f266;width:100%;min-height:38px;margin-top:8px;font-size:10px;font-weight:900}.ground-editor-entry{width:100%;min-height:38px;color:var(--amber);cursor:pointer;background:#435158;border:1px solid #ffca50b8;font-size:10px;font-weight:950}.ground-editor{z-index:80;top:calc(10px + var(--safe-top));right:calc(10px + var(--safe-right));width:min(260px, calc(100% - 20px - var(--safe-left) - var(--safe-right)));max-height:calc(100% - 20px - var(--safe-top) - var(--safe-bottom));color:#2c3f4a;touch-action:pan-y;-webkit-user-select:none;user-select:none;background:#f5fafff5;border:2px solid #a8c8e0;border-radius:14px;padding:12px 14px;position:fixed;overflow:auto;box-shadow:0 10px 36px #18304647}.ground-editor__header{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px;display:flex}.ground-editor__header span{color:#3a8ac0;letter-spacing:.1em;align-items:center;gap:6px;font:900 8px/1 ui-monospace,monospace;display:flex}.ground-editor__header span i{background:#6fb8e8;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #6fb8e82e}.ground-editor__header strong{color:#20566b;margin-top:5px;font-size:16px;display:block}.ground-editor .close-button{color:#20566b;background:#dcefff;border-color:#a8c8e0;flex:0 0 34px;min-height:32px}.ground-editor__modes,.ground-editor__row{gap:5px;margin-top:5px;display:grid}.ground-editor__modes{grid-template-columns:repeat(3,minmax(0,1fr))}.ground-editor__row--two{grid-template-columns:repeat(2,minmax(0,1fr))}.ground-editor__add{grid-template-columns:minmax(0,1fr) 72px}.ground-editor__layout-actions{grid-template-columns:1fr 1fr .62fr}.ground-editor button{color:#20566b;cursor:pointer;background:#dcefff;border:1px solid #a8c8e0;border-radius:8px;min-height:31px;padding:4px 6px;font-size:10px;font-weight:850}.ground-editor button:disabled{opacity:.38;cursor:default}.ground-editor button.ground-editor--active{color:#fff;background:#6fb8e8;border-color:#3a8ac0}.ground-editor__save{color:#5a4420!important;background:#ffcf76!important;border-color:#d18a2f!important}.ground-editor select{color:#2c3f4a;background:#f5fbff;border:1px solid #a8c8e0;border-radius:8px;min-width:0;min-height:31px;padding:3px 7px;font-size:10px}.ground-editor__selection{color:#20566b;word-break:break-all;background:#6fb8e829;border-radius:8px;min-height:18px;margin-top:8px;padding:6px 8px;font:850 10px/1.35 ui-monospace,monospace}.ground-editor__readout,.ground-editor__camera-readout{color:#4d7184;margin-top:6px;font:750 8px/1.45 ui-monospace,monospace;display:block}.ground-editor__camera-readout{color:#b27724}.ground-editor__hint,.ground-editor__shortcuts{color:#6f8796;margin-top:6px;font:750 8px/1.45 ui-monospace,monospace}.ground-editor__shortcuts{color:#8da0ab}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body.ground-editing #scene canvas{pointer-events:auto;cursor:grab}body.ground-editing .home-panel,body.ground-editing .mission-hud,body.ground-editing .flight-control,body.ground-editing .drop-dock,body.ground-editing .pip-panel,body.ground-editing .flight-feel-button,body.ground-editing .flight-feel-panel,body.ground-editing .result-panel,body.flight-feel-open .flight-feel-button{opacity:0;pointer-events:none}.result-panel{z-index:30;text-align:center;background:#202a30f2;border:3px solid #f0f3f2;width:min(420px,100% - 34px);padding:22px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:12px 14px #202a3052}.result-badge{color:var(--amber);letter-spacing:.16em;font:900 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.result-score{margin-top:8px;font:950 54px/1 ui-monospace,SFMono-Regular,Menlo,monospace}.result-distance{color:#b9c3c2;margin-top:4px;font:800 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace}.result-facts{grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0;display:grid}.result-facts div{border:1px solid #eff4f247;padding:8px 5px}.result-facts dt{color:#aeb9b8;font:800 8px/1 ui-monospace,monospace}.result-facts dd{margin:5px 0 0;font:900 16px/1 ui-monospace,monospace}.result-action,.game-settings-actions button,.debug-actions button,.camera-editor button,.close-button{color:#f1f4f3;cursor:pointer;background:#435158;border:1px solid #eff4f280;min-height:38px;font-size:11px;font-weight:900}.result-action{background:#b64f4b;width:100%}.result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(310px,100%);margin:0 auto;display:grid}.result-action--secondary{background:#435158}.result-panel--failed{border-color:#ffaaa5}.result-panel--failed .result-badge,.result-panel--failed .result-score{color:#ffaaa5}.result-panel--failed .result-score{font-size:clamp(28px,7vw,42px)}body:after{content:"";z-index:20;pointer-events:none;background:0 0;transition:background .32s;position:fixed;inset:0}body.impact-hit:after{background:#ffca503d}body.impact-miss:after{background:#d966602e}.dev-command{display:none}.debug-hotspot{z-index:50;top:var(--safe-top);left:var(--safe-left);width:48px;height:48px;position:fixed}.debug-panel,.camera-editor{z-index:60;top:calc(10px + var(--safe-top));right:calc(10px + var(--safe-right));width:min(430px,100% - 20px);max-height:calc(100% - 20px - var(--safe-top) - var(--safe-bottom));border:2px solid var(--line);touch-action:pan-y;background:#192227fa;padding:14px;position:fixed;overflow:auto;box-shadow:0 18px 60px #0000006b}.debug-panel__header,.camera-editor__header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.debug-panel__header span,.camera-editor__header span{color:var(--green);font-size:9px;font-weight:900;display:block}.debug-panel__header strong,.camera-editor__header strong{font-size:17px;display:block}.close-button{width:38px;font-size:22px}.debug-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.field{gap:4px;min-width:0;display:grid}.field label{color:#b7c0bf;font-size:9px;font-weight:700}.field input,.field select{color:#fff;background:#364249;border:1px solid #eff4f240;width:100%;min-height:34px;padding:6px 8px}.debug-actions,.camera-editor__actions{grid-template-columns:repeat(2,1fr);gap:7px;margin-top:12px;display:grid}.camera-shot-tabs{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.camera-shot-tab{text-align:left;padding:7px;display:grid}.camera-shot-tab b{color:var(--amber)}.camera-shot-tab--active{border-color:var(--amber)!important}.camera-editor__guide,.camera-pose-readout,.camera-editor__status{color:#c3ccca;border:1px solid #eff4f233;margin:8px 0 0;padding:8px;font:700 9px/1.4 ui-monospace,monospace}.camera-editor__guide{display:grid}.camera-save-notice{display:none}body.camera-editing #scene canvas{pointer-events:auto;cursor:grab}body.camera-editing .mission-hud,body.camera-editing .flight-control,body.camera-editing .drop-dock,body.camera-editing .pip-panel{opacity:0;pointer-events:none}.fatal-error{z-index:100;border:2px solid var(--red);color:#fff;white-space:pre-wrap;background:#2c1819;padding:20px;position:fixed;inset:18px;overflow:auto}@media (max-height:520px){.flight-control{width:118px;height:118px;bottom:calc(10px + var(--safe-bottom))}.flight-control__stick{width:34px;height:34px;top:calc(50% - 17px);left:calc(50% - 17px)}.flight-control__arrow--left,.flight-control__arrow--right{top:46px}.flight-control__arrow--up,.flight-control__arrow--down{left:48px}.drop-dock{bottom:calc(9px + var(--safe-bottom))}.drop-button{width:82px;height:82px;font-size:16px}.pip-panel{width:min(29vw,238px)}.home-panel{padding:20px 22px 18px}.home-panel h1{font-size:34px}.home-panel button{margin-top:16px}}@media (max-width:620px){.mission-hud{top:calc(9px + var(--safe-top));width:min(470px, calc(100% - 128px - var(--safe-left) - var(--safe-right)));gap:4px}.flight-telemetry{gap:4px;padding:5px 6px}.flight-telemetry--left div:nth-of-type(2){display:none}.flight-telemetry strong{font-size:9px}.target-panel,.time-panel{padding:6px 7px}.pip-panel{left:calc(10px + var(--safe-left));width:34vw}.flight-control{left:calc(12px + var(--safe-left))}.drop-dock{right:calc(12px + var(--safe-right))}.flight-feel-button{left:calc(8px + var(--safe-left));min-width:88px}}
