/* Isolated flight-deck entry. Load after desktop-menu/community/compact CSS. */
body:not(.inflight) .cinema{pointer-events:none}
#hangar.cockpit-home{
 position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;
 padding:0!important;overflow:hidden!important;display:block!important;background:transparent;
 --cockpit-ink:#d2efe8;--cockpit-accent:#c1e9a4;
}
#hangar.cockpit-home[hidden]{display:none!important}
#hangar.cockpit-home #compactEntrySurface{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;pointer-events:none}
#hangar.cockpit-home #mobilePlayActions,
#hangar.cockpit-home #matchmakingHangar,
#hangar.cockpit-home .matchmaking-split{display:contents!important;margin:0!important;padding:0!important;border:0!important}
#hangar.cockpit-home #mobilePlayActions>[hidden]{display:none!important}
#hangar.cockpit-home [data-cockpit-screen]{
 position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;
 width:200px!important;height:140px!important;min-width:0!important;min-height:0!important;
 margin:0!important;padding:24px 17px!important;box-sizing:border-box!important;
 transform-origin:0 0!important;pointer-events:auto;display:flex!important;flex-direction:column;
 align-items:center;justify-content:center;gap:8px;border:1px solid #75bdaa46!important;
 border-radius:2px!important;background:#041c215c!important;color:var(--cockpit-ink)!important;
 box-shadow:inset 0 0 18px #69e6bd0a!important;font:600 20px/1.35 var(--mono)!important;
 letter-spacing:.035em!important;text-align:center!important;white-space:normal!important;touch-action:manipulation;
 text-shadow:0 0 8px #8be7c747;
}
#hangar.cockpit-home [data-cockpit-screen]::before{content:'01 / PUBLIC AIRSPACE';display:block;font:500 8px/1.3 var(--mono);letter-spacing:.11em;color:#a1c7bd}
#hangar.cockpit-home [data-cockpit-screen=battle]::before{content:'02 / TACTICAL OPERATIONS';color:#cfba9d}
#hangar.cockpit-home [data-cockpit-screen=landing]::before{content:'03 / PRECISION FLIGHT';color:#a0cbd8}
#hangar.cockpit-home [data-cockpit-screen]::after{content:'SELECT TO DEPLOY  →';font:500 8px/1 var(--mono);letter-spacing:.1em;color:#94bfad;margin-top:7px}
#hangar.cockpit-home [data-cockpit-screen=battle]{color:#e9d8b8!important;border-color:#bba36b4d!important}
#hangar.cockpit-home [data-cockpit-screen=landing]{color:#c5e2ee!important;border-color:#6eafbf4d!important}
#hangar.cockpit-home [data-cockpit-screen=landing] :is(small,b){display:none!important}
#hangar.cockpit-home.cockpit-portrait [data-cockpit-screen]:not([data-cockpit-screen=utility]){width:300px!important;height:100px!important;padding:10px 14px!important;font-size:20px!important;gap:6px}
#hangar.cockpit-home.cockpit-portrait [data-cockpit-screen]:not([data-cockpit-screen=utility])::after{margin-top:2px}
#hangar.cockpit-home [data-cockpit-screen]:disabled{opacity:.55;cursor:wait}
#hangar.cockpit-home [data-cockpit-screen]:is(:hover,:focus-visible,[data-controller-focus=true]){background:#21473e8f!important;border-color:#c6ffc2!important;outline:3px solid #d3f4b9!important;outline-offset:-6px!important;box-shadow:inset 0 0 35px #83d9b51c!important}
#hangar.cockpit-home #landingIdentity{position:absolute!important;top:max(9%,env(safe-area-inset-top))!important;left:15%!important;right:15%!important;bottom:auto!important;gap:8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;margin:0!important;padding:0!important;pointer-events:none;color:#f5f8ef}
#hangar.cockpit-home #landingGameTitle{display:flex!important;flex-direction:column!important;gap:7px!important;margin:0!important;padding:0!important;line-height:1!important;font-weight:600!important;text-transform:none!important}
#hangar.cockpit-home #landingGameTitle .landing-title-name{font-size:clamp(32px,4.4vw,66px)!important;letter-spacing:.025em}
#hangar.cockpit-home #landingGameTitle .landing-title-descriptor{font-size:clamp(9px,1vw,13px)!important;letter-spacing:.27em}
#hangar.cockpit-home #landingIdentity .landing-tagline{display:none}
#hangar.cockpit-home #landingLiveStats{top:max(18px,env(safe-area-inset-top))!important;left:37%!important;right:37%!important;height:40px!important;border-radius:2px!important;background:#061b1e80!important;border-color:#74b8a523!important;padding:4px!important;gap:3px!important}
#hangar.cockpit-home #landingLiveStats b{font-size:15px!important;color:#c2dfbf!important}
#hangar.cockpit-home #landingLiveStats span{font-size:6px!important;letter-spacing:.12em!important}
#hangar.cockpit-home #communityLinks{left:auto!important;right:max(3%,env(safe-area-inset-right))!important;top:auto!important;bottom:max(17px,env(safe-area-inset-bottom))!important;width:auto;height:42px!important;gap:5px!important;z-index:3}
#hangar.cockpit-home.cockpit-projected #communityLinks[data-cockpit-overlay]{position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:500px!important;height:64px!important;transform-origin:0 0;display:flex!important;justify-content:center!important;gap:12px!important}
#hangar.cockpit-home.cockpit-projected #landingLiveStats[data-cockpit-overlay]{position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:400px!important;height:54px!important;transform-origin:0 0;box-sizing:border-box!important;pointer-events:none}
#hangar.cockpit-home .community-link{height:40px!important;min-height:40px!important;min-width:40px!important;border-radius:3px!important;background:#0a1d23d9!important}
#hangar.cockpit-home .community-x{width:92px!important;flex-direction:row!important;gap:8px!important;padding:4px 8px!important}
#hangar.cockpit-home .community-avatar,#hangar.cockpit-home .community-avatar>img{width:23px!important;height:23px!important}
#hangar.cockpit-home .community-caption{font-size:7px!important;white-space:normal!important;max-width:42px}
#hangar.cockpit-home .community-about{width:56px!important;font-size:7px!important}
#hangar.cockpit-home .community-discord{width:40px!important}
#hangar.cockpit-home .community-discord>img{width:24px!important;height:19px!important}
#hangar.cockpit-home #homeOptions{position:static!important;display:contents!important;border:0!important;margin:0!important;padding:0!important}
#hangar.cockpit-home #homeOptions>summary{width:500px!important;height:48px!important;padding:12px!important;font-size:12px!important;letter-spacing:.11em!important;list-style:none;z-index:4}
#hangar.cockpit-home #homeOptions>summary::before,#hangar.cockpit-home #homeOptions>summary::after{display:none}
#hangar.cockpit-home #homeOptions>summary small{display:none!important}
#hangar.cockpit-home #homeOptions:not([open]) .home-options-body{display:none!important}
#hangar.cockpit-home #homeOptions[open] .home-options-body{position:fixed;inset:8% 7%;display:flex!important;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;z-index:10;padding:22px!important;margin:0!important;box-sizing:border-box;border:1px solid #8cb5a865;border-radius:8px;background:#071b23f5;box-shadow:0 25px 100px #000b;gap:14px}
#hangar.cockpit-home .cockpit-options-close{display:block;align-self:flex-end;min-height:44px;padding:10px 16px;margin:0;color:#d4e9cf;background:#1c373b;border:1px solid #81ab8b78;border-radius:3px;font:600 11px var(--mono)}
#hangar.cockpit-home #compactEntryFeedback{position:fixed!important;display:none!important;top:23%!important;bottom:auto!important;left:25%!important;right:25%!important;max-height:150px;overflow:auto;margin:0!important;padding:0!important;text-align:center;pointer-events:auto;z-index:5}
#hangar.cockpit-home.cockpit-feedback-active #compactEntryFeedback{display:block!important}
#hangar.cockpit-home #compactEntryFeedback .matchmaking-message{font-size:10px!important;color:#d0e2d3!important;background:#071b23d9;border-radius:3px;margin:0 0 6px!important}
#hangar.cockpit-home #compactEntryFeedback .matchmaking-actions button{font-size:9px!important;min-width:100px!important;min-height:36px!important;padding:7px!important}
#hangar.cockpit-home #compactEntryFeedback :is(.micro,h3,.matchmaking-count){display:none!important}
#hangar.cockpit-home #entryFrameCapturePanel{position:static!important;display:block;margin:0;padding:16px;border:1px solid #557f7461;border-radius:4px;background:#102932}
/* The scene can fail independently: keep normal rectangular controls usable. */
#hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen]{transform:none!important;top:auto!important;bottom:20%!important;left:calc(50% - 310px)!important}
#hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=battle]{left:calc(50% - 100px)!important}
#hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=landing]{left:calc(50% + 110px)!important}
#hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=utility]{left:calc(50% - 250px)!important;bottom:9%!important}
@media(max-width:620px) and (orientation:portrait){
 #hangar.cockpit-home #landingIdentity{top:11%!important;left:8%!important;right:8%!important}
 #hangar.cockpit-home #landingGameTitle .landing-title-name{font-size:42px!important}
 #hangar.cockpit-home #landingLiveStats{left:24%!important;right:24%!important}
 #hangar.cockpit-home #communityLinks{right:12px!important;bottom:12px!important}
 #hangar.cockpit-home #compactEntryFeedback{left:12px!important;right:12px!important;top:20%!important;bottom:auto!important;max-height:84px}
 #hangar.cockpit-home #homeOptions[open] .home-options-body{inset:3%;padding:16px!important}
 #hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen]{width:260px!important;height:100px!important;left:calc(50% - 130px)!important;bottom:48%!important}
 #hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=battle]{bottom:32%!important}
 #hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=landing]{bottom:16%!important}
 #hangar.cockpit-home:not(.cockpit-projected) [data-cockpit-screen=utility]{width:260px!important;bottom:7%!important}
}
@media(max-height:480px) and (orientation:landscape){
 #hangar.cockpit-home #landingIdentity{top:9%!important;left:22%!important;right:22%!important}
 #hangar.cockpit-home #landingGameTitle .landing-title-name{font-size:30px!important}
 #hangar.cockpit-home #landingLiveStats{top:7px!important;left:40%!important;right:40%!important;height:29px!important}
 #hangar.cockpit-home #landingLiveStats b{font-size:11px!important}
 #hangar.cockpit-home #landingLiveStats span{font-size:5px!important}
 #hangar.cockpit-home #communityLinks{bottom:7px!important;right:9px!important}
 #hangar.cockpit-home #compactEntryFeedback{top:21%!important;bottom:auto!important;max-height:80px}
}

/* .226: these rectangles follow actual B-2 screens; no synthetic panel or
   portrait geometry rearrangement is used. Source dimensions preserve text. */
#hangar.cockpit-real-model{cursor:auto;user-select:none;-webkit-user-select:none}
#hangar.cockpit-real-model :is(input,textarea,select,[contenteditable=true],.home-options-body){user-select:text;-webkit-user-select:text}
#hangar.cockpit-real-model.cockpit-camera-dragging{cursor:grabbing}
/* Phone gestures belong to the private camera while the drawer is closed.
   Removing the ancestor restriction when open preserves native drawer scroll. */
.phone-ui #hangar.cockpit-real-model:not(.cockpit-options-open){touch-action:none}
.phone-ui #hangar.cockpit-real-model .cockpit-camera-tools button{touch-action:manipulation}
#hangar.cockpit-real-model [data-cockpit-screen],#hangar.cockpit-real-model.cockpit-portrait [data-cockpit-screen]:not([data-cockpit-screen=utility]),#hangar.cockpit-real-model #homeOptions>summary{width:var(--cockpit-screen-width,270px)!important;height:var(--cockpit-screen-height,200px)!important;padding:12px!important;font-size:36px!important;gap:8px;background:#06151c73!important;border:1px solid #a6f1c86b!important;text-shadow:0 1px 3px #000,0 0 9px #000}
#hangar.cockpit-real-model #homeOptions>summary{font-size:21px!important}
#hangar.cockpit-real-model [data-cockpit-screen]:not([data-cockpit-screen=utility])::before{font-size:10px}
#hangar.cockpit-real-model [data-cockpit-screen]::after{font-size:10px;margin-top:5px}
#hangar.cockpit-real-model #landingIdentity{top:3%!important;left:27%!important;right:27%!important;opacity:.9}
#hangar.cockpit-real-model #landingGameTitle .landing-title-name{font-size:clamp(27px,3vw,43px)!important}
#hangar.cockpit-real-model #landingGameTitle .landing-title-descriptor{font-size:9px!important}
#hangar.cockpit-real-model.cockpit-projected #communityLinks[data-cockpit-overlay],#hangar.cockpit-real-model.cockpit-projected #landingLiveStats[data-cockpit-overlay]{width:var(--cockpit-screen-width,500px)!important;height:var(--cockpit-screen-height,140px)!important}
#hangar.cockpit-real-model [data-cockpit-projection-hidden]{display:none!important;pointer-events:none!important}
#hangar.cockpit-real-model.cockpit-projected :is(#communityLinks,#landingLiveStats)[data-cockpit-projection-hidden]{display:none!important;pointer-events:none!important}
#hangar.cockpit-real-model.cockpit-ready [data-cockpit-screen]{position:fixed!important;left:0!important;top:0!important;bottom:auto!important;right:auto!important}
#hangar.cockpit-real-model .cockpit-camera-tools{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));display:flex;align-items:center;flex-wrap:wrap;gap:8px;z-index:6;pointer-events:auto;max-width:calc(100vw - 32px)}
#hangar.cockpit-real-model .cockpit-camera-focus{display:flex;gap:5px}
#hangar.cockpit-real-model .cockpit-camera-focus button{font-size:10px;min-width:140px;padding:9px 11px;color:#d1e9d5}
#hangar.cockpit-real-model .cockpit-camera-tools button{min-width:104px;min-height:44px;padding:10px 14px;border:1px solid #b8d9bd88;border-radius:4px;color:#e2f3d4;background:#081b24e8;font:600 11px var(--mono)}
#hangar.cockpit-real-model .cockpit-camera-tools button:is(:focus-visible,[data-controller-focus=true]){outline:2px solid #dcff97;outline-offset:3px}
#hangar.cockpit-real-model .cockpit-camera-help{font:9px/1.5 var(--mono);letter-spacing:.03em;color:#d0e3d1;background:#071b24b8;padding:7px 10px;margin:0;border-radius:3px;text-shadow:0 1px 3px #000}
#hangar.cockpit-real-model:not(.cockpit-ready) #mobilePlayActions{display:grid!important;position:fixed!important;top:auto!important;left:10%!important;right:10%!important;bottom:17%!important;width:auto!important;height:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;pointer-events:auto}
#hangar.cockpit-real-model:not(.cockpit-ready) [data-cockpit-screen]:not([data-cockpit-screen=utility]){position:static!important;left:auto!important;top:auto!important;bottom:auto!important;transform:none!important;width:100%!important;height:140px!important;font-size:17px!important}
#hangar.cockpit-real-model:not(.cockpit-ready) #homeOptions>summary{transform:none!important;left:calc(50% - 160px)!important;top:auto!important;bottom:8%!important;width:320px!important;height:44px!important;padding:12px!important}
@media(max-width:620px){#hangar.cockpit-real-model .cockpit-camera-tools{left:10px;bottom:10px;gap:7px}#hangar.cockpit-real-model .cockpit-camera-focus{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:calc(100vw - 20px)}#hangar.cockpit-real-model .cockpit-camera-focus button{min-width:0;font-size:10px;padding:8px 5px}#hangar.cockpit-real-model .cockpit-camera-help{font-size:8px;max-width:220px}#hangar.cockpit-real-model #landingIdentity{left:17%!important;right:17%!important}#hangar.cockpit-real-model:not(.cockpit-ready) #mobilePlayActions{grid-template-columns:1fr!important;bottom:26%!important;left:12%!important;right:12%!important}#hangar.cockpit-real-model:not(.cockpit-ready) [data-cockpit-screen]:not([data-cockpit-screen=utility]){height:84px!important;font-size:17px!important;padding:8px!important}#hangar.cockpit-real-model:not(.cockpit-ready) [data-cockpit-screen]::before,#hangar.cockpit-real-model:not(.cockpit-ready) [data-cockpit-screen]::after{display:none}}

/* .234: native LCD faces, with existing semantic links and live counters. */
#hangar.cockpit-real-model.cockpit-projected #communityLinks[data-cockpit-overlay]{max-width:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch!important;justify-content:stretch!important;gap:0!important;padding:8px!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:#020d07!important;box-shadow:none!important}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-link{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:auto!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:4px 8px!important;box-sizing:border-box!important;gap:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#55ef8b!important;font-size:0!important;text-align:center;text-decoration:none!important;text-shadow:0 0 4px #4cff8138}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-link+.community-link{border-left:1px solid #315f3b!important}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-link>*{display:none!important}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-link::after{display:block;white-space:pre;font:600 22px/1.55 var(--mono);letter-spacing:.07em}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-x::after{content:'X\A DRIVESPACE'}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-about::after{content:'ABOUT\A GAME'}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-discord::after{content:'DISCORD\A COMMUNITY'}
#hangar.cockpit-real-model.cockpit-projected #communityLinks .community-link:is(:hover,:focus-visible,[data-controller-focus=true]){color:#c1ffd0!important;background:#092819!important;outline:2px solid #77f2a0;outline-offset:-5px}
#hangar.cockpit-real-model.cockpit-projected #landingLiveStats[data-cockpit-overlay]{max-width:none!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch!important;gap:0!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:#020d07!important;box-shadow:none!important;color:#55ef8b!important}
#hangar.cockpit-real-model.cockpit-projected #landingLiveStats>div{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:10px;min-width:0;box-sizing:border-box;padding:2px 10px;border:0;background:transparent}
#hangar.cockpit-real-model.cockpit-projected #landingLiveStats>div+div{border-left:1px solid #264b31}
#hangar.cockpit-real-model.cockpit-projected #landingLiveStats b{font:700 22px/1 var(--mono)!important;color:#61fa8d!important;letter-spacing:.03em;white-space:nowrap;text-shadow:0 0 3px #4cff8138}
#hangar.cockpit-real-model.cockpit-projected #landingLiveStats span{font:600 12px/1 var(--mono)!important;color:#4bcb77!important;letter-spacing:.055em!important;white-space:nowrap}
