/* Photographic material plates; all moving parts animate transform/opacity only. */
#preflight{position:absolute;inset:0;z-index:80;overflow:hidden;color:#d4ceae;font-family:DepartureMono,Mona12,monospace;isolation:isolate}
#preflight[hidden],#preflight [hidden]{display:none!important}
.hangar-loading{position:absolute;z-index:3;right:4%;bottom:6%;margin:0;padding:12px 16px;background:#10150fd9;border:1px solid #8c8861;color:#d3c99d;font-size:12px;box-shadow:0 3px 12px #0008;pointer-events:none}.hangar-loading span{display:block;margin-top:7px;font-size:8px;letter-spacing:2px;color:#8e997c}#preflight:not([data-phase=closing]) .hangar-loading{display:none}
.in-preflight #overlay{pointer-events:none}.in-preflight #fps-counter{visibility:hidden}
.in-preflight .title-stack,.in-preflight .logo-echo,.in-preflight .logo-shear,.in-preflight .hud-side,.in-preflight .projection-grain{animation-play-state:paused!important}
.preflight-covered #overlay,.preflight-covered .hud{visibility:hidden}
.hangar-shutter{position:absolute;inset:-2px;z-index:1;background:#20211e url('./hangar/shutter-v1.png') center/100% 100%;transform:translateY(-105%);box-shadow:0 16px 40px #000c;will-change:transform}
.hangar-shutter:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0007,transparent 12%,transparent 85%,#0009),linear-gradient(#0004,transparent 25%,#0003);pointer-events:none}
.shutter-mark{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;color:#c1b58b;opacity:.7;text-shadow:1px 2px 1px #000;letter-spacing:4px;mix-blend-mode:screen}
.shutter-mark>span{font-size:12px}.shutter-mark strong{font:clamp(25px,4vw,64px)/1.1 DepartureMono,monospace;white-space:nowrap;letter-spacing:6px}.shutter-mark small{font-size:11px;letter-spacing:2px}
.service-console{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1600px,calc(100vw - 36px),calc((100dvh - 36px)*1.7777778));aspect-ratio:16/9;z-index:2;background:#25251f url('./hangar/console-v1.png') center/100% 100%;box-shadow:0 20px 80px #000e,0 0 0 2px #080a08,0 0 0 4px #555344;container-type:inline-size}
.service-console:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:6;box-shadow:inset 0 0 50px #0007}
.service-heading{position:absolute;left:3.2%;top:6%;width:23%;text-shadow:0 1px #fff2,0 -1px #000}
.service-heading h2{font-size:clamp(17px,2cqw,30px);margin:14px 0 10px;font-weight:normal;letter-spacing:2px;color:#ddd6b8}
#preflight button{font:inherit;filter:none}#preflight button:focus-visible{outline:2px solid #e7d48b;outline-offset:4px}#preflight button:disabled{cursor:not-allowed}
.hangar-return{position:absolute;right:2.5%;top:3.4%;z-index:8;border:1px solid #726d55;border-radius:2px;background:linear-gradient(#3d3c32,#23251f);box-shadow:0 3px 2px #0009,inset 0 1px #fff2;padding:7px 11px;color:#bbb395;font-size:clamp(8px,.8cqw,12px)!important}.hangar-return:hover{color:#f0e6b8!important;border-color:#a59b70}.hangar-return:active{transform:translateY(2px);box-shadow:0 1px #0009}
.service-switches{position:absolute;left:3.5%;top:23%;width:22.3%;display:grid;gap:clamp(6px,1.2cqw,18px)}
.system-switch{display:flex;align-items:center;gap:8px;width:100%;padding:clamp(7px,1cqw,15px);border:1px solid #11140f;border-top-color:#5a594a;border-radius:3px;background:linear-gradient(110deg,#30332bea,#141b17ed);box-shadow:0 3px 4px #0008,inset 0 1px #8c8b6829;text-align:left;color:#ccc3a0;min-height:clamp(38px,5.1cqw,76px)}
.system-switch>span:first-child{flex:1}.system-switch small{display:block;font-size:clamp(7px,.7cqw,10px);color:#858d7b;letter-spacing:1px;margin-bottom:7px}.system-switch strong{font-size:clamp(10px,1.1cqw,16px);font-weight:normal;white-space:nowrap}.system-switch:hover{border-color:#b4a77b;color:#f4e6b4}.system-switch:active{transform:translateY(1px)}
.switch-led,.service-interlock>i{flex:none;width:7px;height:7px;border-radius:50%;background:#663d24;box-shadow:inset 0 1px 2px #000,0 0 0 2px #1118}
.switch-rocker{position:relative;width:26px;height:35px;flex:none;background:#090d0b;border-radius:4px;border:1px solid #777c6d;box-shadow:inset 0 0 0 3px #191c18,0 2px 2px #000}
.switch-rocker i{position:absolute;inset:4px;background:linear-gradient(#596258,#30372f 40%,#111910 55%,#252c24);border-radius:2px;box-shadow:0 3px 3px #000;transform:perspective(70px) rotateX(-16deg);transition:transform 80ms}.switch-rocker i:after{content:'';position:absolute;left:6px;right:6px;top:6px;height:2px;background:#aaa58d}
.system-switch[aria-pressed=true] .switch-rocker i{transform:perspective(70px) rotateX(16deg);background:linear-gradient(#151c15,#373f31 55%,#606954)}.system-switch[aria-pressed=true] .switch-led{background:#b7e075;box-shadow:0 0 8px #c6ec6c,0 0 0 2px #172016}
.service-interlock{position:absolute;top:59%;left:4%;width:23%;display:flex;align-items:center;gap:10px;font-size:clamp(7px,.85cqw,12px);color:#b2a178}.systems-ready .service-interlock>i{background:#b7e075;box-shadow:0 0 7px #c6ec6c}.systems-ready .service-interlock{color:#d1dfa5}
.launch-mechanism{position:absolute;left:3%;bottom:2%;width:25%;height:34%;text-align:center}

.launch-lever{position:absolute;left:0;top:0;height:100%;width:100%;border:0;padding:0;background:none;touch-action:none;user-select:none;cursor:default;z-index:2}
.launch-lever:disabled{opacity:1}.lever-canvas{display:block;width:100%;height:100%;pointer-events:none;background:radial-gradient(ellipse at 50% 80%,#0005,transparent 35%)}
.lever-grip-hit{position:absolute;cursor:grab;touch-action:none}.launch-lever:disabled .lever-grip-hit{cursor:not-allowed}.is-dragging .launch-lever,.is-dragging .lever-grip-hit{cursor:grabbing}
.service-crt{position:absolute;left:34.6%;top:14.5%;width:60.5%;height:56%;border-radius:7% / 9%;overflow:hidden;transform:perspective(1200px) rotateY(-.6deg);color:#bdeda0;background:radial-gradient(ellipse,#315b2525,transparent 70%);box-shadow:inset 0 0 50px #0009;isolation:isolate}
.service-crt:before{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;background:repeating-linear-gradient(0deg,#0003 0,#0003 1px,transparent 1px,transparent 3px),radial-gradient(ellipse,transparent 40%,#0009 100%);border-radius:inherit}
.service-crt:after{content:'';position:absolute;left:0;right:0;top:-5%;height:3%;background:linear-gradient(transparent,#d1ff9b0d,transparent);pointer-events:none;z-index:5;animation:hangar-crt-scan 7s linear infinite}
.crt-readout{position:absolute;inset:8% 7%;text-shadow:0 0 7px #a2f37566,.55px 0 #78ff7e55,-.55px 0 #c6e4b555;transform:perspective(900px) rotateX(.4deg);font-size:clamp(8px,.95cqw,14px)}
.crt-topline,.crt-bottomline{display:flex;justify-content:space-between;gap:10px;font-size:clamp(7px,.75cqw,11px);letter-spacing:1px;color:#87b67c}.crt-topline{border-bottom:1px solid #a8d88044;padding-bottom:12px}.crt-signal{white-space:nowrap}.crt-readout h3{font-size:clamp(18px,2.2cqw,34px);font-weight:normal;letter-spacing:4px;margin:5% 0 2%}.crt-subtitle{font-size:clamp(7px,.7cqw,11px);letter-spacing:2px;color:#739663;margin:0}
.ship-diagnostic{position:absolute;left:0;right:0;top:35%;height:35%;display:flex;align-items:center;justify-content:center}.diagnostic-grid{position:absolute;inset:-10% 0;background-image:linear-gradient(#96c17713 1px,transparent 1px),linear-gradient(90deg,#96c17713 1px,transparent 1px);background-size:28px 28px;mask-image:radial-gradient(ellipse,#000 30%,transparent 72%)}.service-ship{user-select:none;-webkit-user-drag:none;pointer-events:none;max-width:76%;width:76%;height:95%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 0 6px #98d26c55);opacity:.95}.ship-callout{position:absolute;font-size:clamp(6px,.65cqw,9px);color:#83ad70;letter-spacing:1px}.callout-engine{left:0;bottom:-10%}.callout-hull{right:0;top:-10%}
.crt-systems{position:absolute;top:78%;left:0;right:0;display:flex;justify-content:space-between;color:#728363;font-size:clamp(7px,.85cqw,12px)}.crt-systems .checked{color:#d7f6aa}.service-log{position:absolute;top:84%;left:0;right:0;font-size:clamp(7px,.8cqw,12px);line-height:1.5;color:#c3d899;margin:0}.crt-bottomline{position:absolute;bottom:-3%;left:0;right:0;font-size:clamp(6px,.65cqw,10px);color:#6d8c5c}
.crt-grain{position:absolute;inset:0;pointer-events:none;z-index:3;opacity:.3;background-repeat:repeat}.crt-grain:after{content:'';position:absolute;inset:0;opacity:.14;background-image:radial-gradient(#a0d281 19%,transparent 22%);background-size:3px 3px}
.service-reserves{position:absolute;left:34%;top:83%;width:43%;height:11%;display:flex;gap:12%}.service-reserves>div{flex:1}.service-reserves small{display:block;white-space:nowrap;font-size:clamp(6px,.7cqw,10px);letter-spacing:1px;color:#a69d7d;text-shadow:0 1px #000;margin-bottom:10px}.service-reserves strong{font-size:clamp(12px,1.7cqw,25px);font-weight:normal;color:#ccc3a1;text-shadow:0 2px 2px #000}.service-reserves strong span{font-size:12px;margin-left:5px}.service-reserves i{display:block;height:3px;background:#a7ae7e88;margin-top:12px;box-shadow:0 1px 2px #000}
.hangar-serial{position:absolute;left:83%;top:85%;font-size:clamp(10px,1.5cqw,22px);letter-spacing:2px;color:#afa487;text-shadow:0 2px #000}.hangar-serial span{font-size:clamp(6px,.6cqw,9px);letter-spacing:1px}
@keyframes hangar-crt-scan{to{transform:translateY(3800%)}}
.steady-projection .service-crt:after{animation:none}
@media(prefers-reduced-motion:reduce){.service-crt:after{animation:none}.switch-rocker i{transition:none}}
@media(max-width:700px){.service-console{width:calc(100vw - 12px)}.service-heading h2{margin:5px 0;font-size:14px}.system-switch{padding:5px;gap:4px;min-height:32px}.system-switch small{font-size:6px;margin-bottom:4px;letter-spacing:0}.system-switch strong{font-size:9px}.switch-rocker{width:17px;height:24px}.switch-rocker i{inset:3px}.switch-led{width:4px;height:4px}.service-interlock{gap:4px;font-size:6px;top:61%}.launch-mechanism{height:32%}.crt-topline{padding-bottom:5px;letter-spacing:0}.crt-readout h3{font-size:15px;margin-top:4%}.crt-systems{font-size:7px}.service-log{font-size:6px}.crt-bottomline{font-size:5px;letter-spacing:0}.service-reserves small{font-size:5px;letter-spacing:0;margin-bottom:5px}.service-reserves strong{font-size:12px}.service-reserves i{margin-top:5px}.hangar-return{font-size:7px!important;padding:3px 5px}}
@media(max-width:480px) and (orientation:portrait){.service-console{width:calc(100vw - 12px);min-height:610px;aspect-ratio:auto;background-size:180% 100%;background-position:30% center;max-height:calc(100dvh - 20px);overflow:auto}.service-heading{left:7%;top:4%;width:66%}.service-heading h2{font-size:22px}.service-crt{left:8%;top:19%;width:84%;height:35%;background:#0d190ee6;border:6px ridge #4c4b3b;border-radius:8px}.crt-readout h3{font-size:20px}.crt-systems{font-size:9px}.service-log{font-size:8px}.crt-bottomline{font-size:7px}.service-switches{left:47%;top:61%;width:45%;gap:12px}.system-switch{min-height:48px;padding:8px}.system-switch strong{font-size:11px}.system-switch small{font-size:8px}.switch-rocker{width:22px;height:30px}.service-interlock{left:8%;top:57%;width:85%;font-size:9px}.launch-mechanism{left:5%;bottom:5%;width:37%;height:31%}.service-reserves,.hangar-serial{display:none}.hangar-return{top:5%;right:7%;font-size:8px!important}.service-console:after{box-shadow:inset 0 0 20px #0008}}

#lever-hint{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
