/* Approved desktop/mobile launch deck: live panorama, illustrated modes, equipped craft. */
@font-face{font-family:"Starbreak Pixel";src:url('/game/assets/fonts/pixelify-sans.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
#menu{--menu-ink:#fff1cf;--menu-dim:#b8cfdb;--menu-line:#607b9a;--menu-cyan:#69d9df;--menu-panel:#0a1e32;isolation:isolate}
#menu.screen{display:block!important;padding:24px clamp(18px,2.5vw,46px) 12px!important;overflow-y:auto!important;overflow-x:hidden!important;background:#071021!important;backdrop-filter:none!important}
#menu.hidden{display:none!important}
#menu:before,#menu:after{display:none!important}
#menu #menuBattleCanvas{position:fixed;inset:0;z-index:-1;display:block;width:100%;height:100%;object-fit:cover;object-position:center top;image-rendering:pixelated;pointer-events:none;cursor:default}
#menu .modern-hangar{width:min(1460px,100%)!important;max-width:1460px!important;max-height:none!important;margin:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important;transform:none!important;overflow:visible!important;backdrop-filter:none!important}
#menu .modern-hangar:before,#menu .modern-hangar:after{display:none!important}
#menu .menu-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
#menu .hangar-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-height:108px;padding:0 28px 20px}
#menu .pixel-logo{margin:0!important;line-height:1!important;text-align:left!important;filter:none!important;text-shadow:none!important}
#menuLogoCanvas{position:static!important;inset:auto!important;display:block;width:clamp(280px,35vw,510px)!important;height:auto!important;image-rendering:pixelated;cursor:default}
#menu .hangar-kicker{margin:4px 0 0;color:var(--menu-ink);font:700 clamp(18px,1.6vw,24px)/1.2 "Starbreak Pixel","Courier New",monospace;letter-spacing:0}
#menu .hangar-station-link{max-width:180px;padding:7px 10px;background:#071021c9;color:#c7e7ea;border-bottom:2px solid #4d829d;font:13px/1.4 system-ui;text-underline-offset:4px}
#menu .hangar-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:clamp(36px,6vw,96px);align-items:end}
#menu .hangar-console,#menu .hangar-display,#menu .hangar-tools{position:relative;border:3px solid var(--menu-line);background:#0a1e32f5;box-shadow:inset 0 0 0 2px #183e57,3px 3px #030b15,-3px -3px #2b5a77;clip-path:polygon(9px 0,calc(100% - 9px) 0,calc(100% - 9px) 5px,100% 5px,100% calc(100% - 9px),calc(100% - 5px) calc(100% - 9px),calc(100% - 5px) 100%,9px 100%,9px calc(100% - 5px),0 calc(100% - 5px),0 9px,9px 9px)}
#menu .hangar-console{padding:19px 16px 17px}
#menu .hangar-intro{margin:0 10px 6px;color:var(--menu-ink);font:700 clamp(29px,2.8vw,42px)/1.1 "Starbreak Pixel","Courier New",monospace;letter-spacing:.015em;text-shadow:2px 2px #06121f}
#menu .hangar-training{display:flex;gap:10px;align-items:center;margin:0 10px 16px;color:#96e8ed;font:500 16px/1.4 system-ui}
#menu .hangar-training:before{content:"";flex:none;width:8px;height:8px;background:var(--menu-cyan);box-shadow:3px 3px #1b5870}
#menu:has(#skipTutorialBtn:not(.hidden)) .hangar-training:before{width:16px;height:9px;background:none;border-left:4px solid var(--menu-cyan);border-bottom:4px solid var(--menu-cyan);transform:rotate(-45deg);box-shadow:none;margin:0 3px 4px}
#menu .pixel-menu-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin:0 8px 17px!important}
#menu .pixel-menu-actions>.pixel-menu-btn{grid-column:1!important;grid-row:auto!important}
#menu #continueBtn,#menu #newBtn,#menu #skipTutorialBtn{font:700 clamp(20px,2.7dvh,40px)/1.15 "Starbreak Pixel","Courier New",monospace!important;min-height:46px!important}
#menu #newBtn{background:#142e45!important;color:var(--menu-ink)!important}
#menu .pixel-menu-btn{position:relative!important;display:flex!important;align-items:center;gap:12px;min-width:0;min-height:46px!important;width:100%;padding:8px 14px!important;border:2px solid #607b9a!important;border-radius:0!important;background:#142e45!important;color:var(--menu-ink)!important;box-shadow:inset 0 0 0 1px #254f67,0 3px #020812!important;font:700 24px/1.15 "Starbreak Pixel","Courier New",monospace!important;text-align:left!important;text-transform:none!important;letter-spacing:0!important;clip-path:none!important;transform:none!important;animation:none!important;cursor:pointer}
#menu .pixel-menu-btn:before,#menu .pixel-menu-btn:after{display:none!important}
#menu .pixel-menu-btn:hover{background:#244c61!important;border-color:#b1f0ed!important}
#menu #continueBtn,#menu:not(:has(#continueBtn:not(.hidden))):not(:has(#skipTutorialBtn:not(.hidden))) #newBtn,#menu:has(#continueBtn.hidden) #skipTutorialBtn{background:#ffc66d!important;border-color:#ffe4a3!important;color:#102238!important;min-height:52px!important;box-shadow:inset 0 0 0 2px #d5963b,0 3px #020812!important}
#menu #skipTutorialBtn{border-color:#69d9df!important;background:#103544!important}
#menu #continueBtn:hover,#menu:has(#continueBtn.hidden) #skipTutorialBtn:hover{background:#ffdb94!important}
#menu .pixel-menu-btn.hidden{display:none!important}
#menu .launch-pixel{position:relative;flex:none;display:block;width:25px;height:25px;color:inherit}
#menu .launch-star{background:currentColor;clip-path:polygon(50% 0,60% 30%,70% 40%,100% 50%,70% 60%,60% 70%,50% 100%,40% 70%,30% 60%,0 50%,30% 40%,40% 30%)}
#menu .launch-play{width:0;height:0;margin:2px 4px;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:18px solid var(--menu-cyan)}
#menu .launch-training:before{content:"";position:absolute;left:0;top:4px;width:25px;height:13px;background:currentColor;clip-path:polygon(50% 0,100% 35%,50% 70%,0 35%)}
#menu .launch-training:after{content:"";position:absolute;left:5px;top:13px;width:14px;height:6px;border-bottom:3px solid currentColor;border-left:3px solid currentColor;border-right:3px solid currentColor}
#menu .menu-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#menu .menu-mode{isolation:isolate;position:relative;display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0;min-height:179px;overflow:hidden;padding:89px 10px 10px;border:2px solid #607b9a!important;border-radius:0;background:#071b2d!important;color:var(--menu-ink);box-shadow:inset 0 0 0 1px #143f58,2px 2px #030a14!important;filter:none!important;text-decoration:none;text-align:left;font-family:system-ui;cursor:pointer;clip-path:polygon(5px 0,calc(100% - 5px) 0,calc(100% - 5px) 3px,100% 3px,100% calc(100% - 5px),calc(100% - 3px) calc(100% - 5px),calc(100% - 3px) 100%,5px 100%,5px calc(100% - 3px),0 calc(100% - 3px),0 5px,5px 5px)}
#menu .menu-mode:focus-visible{border-color:#fff1cf;box-shadow:inset 0 0 0 2px #fff1cf}
#menu .menu-mode:hover{border-color:#b0f2ee;background:#102f43}
#menu .menu-mode-current{border-color:#69d9df!important}
#menu .menu-mode-art{position:absolute;inset:0 0 auto;z-index:-1;display:block;height:118px;background-size:cover;background-position:center 30%;background-repeat:no-repeat;image-rendering:pixelated;pointer-events:none}
#menu .mode-campaign{background-image:url('/game/assets/modern/menu-mode-campaign.png')}#menu .mode-race{background-image:url('/game/assets/modern/menu-mode-race.png')}#menu .mode-arena{background-image:url('/game/assets/modern/menu-mode-arena.png')}#menu .mode-flight{background-image:url('/game/assets/modern/menu-mode-flight.png')}#menu .mode-anomaly{background-image:url('/game/assets/modern/menu-mode-anomaly.png')}#menu .mode-boss{background-image:url('/game/assets/modern/menu-mode-boss.png')}
#menu .menu-mode-title{position:relative;display:block;margin-bottom:3px;color:var(--menu-ink);font:700 26px/1 "Starbreak Pixel","Courier New",monospace;text-shadow:2px 2px #051322}
#menu .menu-mode small{position:relative;display:block;color:#d2e6ec;font:400 13px/1.35 system-ui;letter-spacing:0;text-shadow:1px 1px #06121f;overflow-wrap:anywhere}
#menu .menu-mode .mode-copy-mobile{display:none!important}
#menu .menu-mode.locked .mode-when-unlocked,#menu .menu-mode:not(.locked) .mode-when-locked{display:none}
#menu #anomalyMenuHint,#menu #bossRushMenuHint{display:block!important;font:400 13px/1.35 system-ui!important;letter-spacing:0!important;color:#d2e6ec!important}
#menu #anomalyMenuIcon::before,#menu #bossRushMenuIcon::before{content:""!important;font-size:0!important}
#menu .menu-mode.locked .menu-mode-art{filter:brightness(.65)}
#menu .menu-mode.locked .menu-mode-title{color:#c3c9d7}
#menu .mode-lock{position:absolute;right:12px;top:13px;display:block;width:14px;height:19px;font-size:0;pointer-events:none}
#menu .mode-lock:before{content:"";position:absolute;left:0;bottom:0;width:14px;height:12px;background:#d3dce4;box-shadow:2px 2px #132337}
#menu .mode-lock:after{content:"";position:absolute;left:3px;top:0;width:8px;height:10px;border:3px solid #d3dce4}
#menu .menu-mode:not(.locked) .mode-lock{display:none}
#menu .hangar-display{width:100%;margin-bottom:54px;padding:17px 18px 18px;backdrop-filter:none!important}
#menu .hangar-display>h2{margin:0 0 12px;padding:0 4px 9px;border-bottom:2px solid #5587a4;color:var(--menu-ink);font:700 30px/1.15 "Starbreak Pixel","Courier New",monospace;letter-spacing:.03em}
#menu .hangar-equipment-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto 58px;align-items:center;gap:12px 16px}
#menu .hangar-ship-frame{grid-column:1;grid-row:1 / 3;min-width:0;border-right:2px solid #3c627e;padding-right:10px}
#menu .hangar-ship{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:1 / 1;image-rendering:pixelated;background:none!important;object-fit:contain!important;filter:none!important;transform:none!important;animation:none!important;cursor:default}
#menu .hangar-personal{display:grid;grid-template-columns:76px minmax(0,1fr);gap:13px;align-items:center;min-width:0}
#menu .menu-pilot{display:block;width:76px;height:76px;padding:0;border:2px solid #7291a6;background:#0b2236;box-shadow:inset 0 0 0 2px #1c435d;cursor:pointer}
#menu #menuPilotCanvas{position:static!important;inset:auto!important;display:block;width:100%;height:100%;image-rendering:pixelated;cursor:pointer}
#menu .hangar-loadout{min-width:0}
#menu #menuEquippedName{display:block;color:var(--menu-ink);font:700 26px/1.1 "Starbreak Pixel","Courier New",monospace;overflow-wrap:anywhere}
#menu .menu-paints{display:flex;align-items:center;gap:9px;min-height:48px;padding:7px 0 0;border:0;background:none;cursor:pointer}
#menu .menu-paints>span{display:block;width:30px;height:31px;border:2px solid #507a97;image-rendering:pixelated}
#menu .menu-paints .menu-paint-current{border-color:#ffdf93;background:#f2f5fa;box-shadow:0 0 0 2px #102238,0 0 0 3px #ffdf93}
#menu .menu-paint-rainbow{background:linear-gradient(135deg,#ff746b 0 17%,#ffc66d 17% 33%,#e8e96f 33% 49%,#69df9e 49% 65%,#69d9df 65% 81%,#ab89e5 81%)}
#menu .menu-trail{display:block;width:100%;min-width:0;min-height:48px;padding:0;border:2px solid #4f7d98;background:#092237;cursor:pointer}
#menu #menuTrailCanvas{position:static!important;inset:auto!important;display:block;width:100%;height:auto;max-height:54px;image-rendering:pixelated;cursor:pointer}
#menu .hangar-tools{display:grid;grid-template-columns:1.08fr 1.35fr 1fr .9fr .75fr 1.15fr;gap:12px;margin-top:22px;padding:10px}
#menu .hangar-tools .pixel-menu-btn{min-height:65px!important;padding:8px 10px!important;font-size:22px!important;border:2px solid #426984!important;box-shadow:inset 0 0 0 1px #173e57!important;background:#0c253a!important;gap:13px}
#menu .hangar-tools .pixel-menu-btn:hover{border-color:#9adfe0!important;background:#183b50!important}
#menu .hangar-tools small{display:block;margin-top:3px;color:#ffc66d;font:650 14px/1.2 system-ui}
#menu #menuCoins{color:#ffc66d!important;font:700 14px/1.2 ui-monospace!important;letter-spacing:0!important;text-shadow:none!important}
#menu .tool-pixel{flex:none;display:block;width:32px;height:32px;image-rendering:pixelated;background:center/contain no-repeat}
#menu .tool-shop{background-image:url('/game/assets/ui/sb-hud-coin.png')}
#menu .tool-settings{background-image:url('/game/assets/ui/sb-hud-cog.png')}
#menu .tool-bestiary{background-image:url('/game/assets/modern/enemy-fleet.png');background-size:400% 400%;background-position:100% 0}
#menu .tool-save{border:3px solid #69d9df;box-shadow:inset 0 -9px #607b9a}
#menu .tool-pilot{border:3px solid #527e9a;box-shadow:inset 0 9px #69d9df;clip-path:polygon(20% 0,80% 0,80% 50%,100% 50%,100% 100%,0 100%,0 50%,20% 50%)}
#menu .tool-help{font:700 40px/.8 "Starbreak Pixel","Courier New",monospace;color:#ffc66d;text-align:center}
#menu .hangar-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;gap:4px 30px;padding:9px 14px 0;color:#b8cfdb;background:#071021c2}
#menu #onlineMiniStatus{position:relative;display:block!important;padding:4px 0 4px 27px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;font:500 14px/1.4 system-ui!important;letter-spacing:0!important;text-align:left!important;max-width:none!important;color:#c4e6e9!important}
#menu #onlineMiniStatus:before{content:"";position:absolute;left:0;top:9px;width:17px;height:16px;border:2px solid #69d9df;box-shadow:inset 0 -6px #397a91}
#menu .hangar-records{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#c4e6e9;font:500 14px/1.5 system-ui;white-space:nowrap}
#menu .hangar-records strong{color:#ffc66d;font:700 22px/1.2 "Starbreak Pixel",ui-monospace,monospace;margin-left:7px}
#menu .hangar-utility{grid-column:1 / -1;display:flex;gap:16px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
#menu .hangar-utility .pixel-menu-btn{width:auto;min-height:44px!important;padding:5px 0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#9fb7c9!important;font:12px/1.4 system-ui!important;text-decoration:underline;text-underline-offset:3px}
#menu .hangar-utility small{display:none}
#menu #newsBtn.hidden,#menu #mobileAppMenuBtn.hidden{display:none!important}
#menu .pixel-boot{margin:0!important;font:12px/1.4 system-ui!important;color:#ffb2a0!important;text-align:left!important}
#menu .pixel-boot:not(.menu-boot-error){display:none!important}
#menu a:focus-visible,#menu button:focus-visible{outline:3px solid #fff1cf!important;outline-offset:3px!important}
body:has(#menu:not(.hidden)) #bugCounterBtn{display:none!important}
.flight-interlude-choice{width:min(600px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:0;border:3px solid #607b9a;background:#102238;color:#fff1cf;border-radius:0;box-shadow:5px 5px #040b15;font-family:system-ui,sans-serif}.flight-interlude-choice::backdrop{background:#030912bd}.flight-interlude-panel{padding:26px}.flight-interlude-panel h2{font:800 28px/1.2 "Courier New",monospace;margin:10px 0 16px;color:#ffc66d}.flight-interlude-panel p{font:15px/1.55 system-ui;color:#c7dbe5}.flight-interlude-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.flight-interlude-actions button{min-height:46px;padding:12px 16px;border:2px solid #607b9a;background:#1b354b;color:#fff1cf;border-radius:0;font:600 14px/1.4 system-ui;cursor:pointer}.flight-interlude-actions button:first-child{background:#ffc66d;color:#142338}.flight-interlude-actions button:focus-visible{outline:3px solid #69d9df;outline-offset:3px}

@media(max-width:1100px){
 #menu .hangar-layout{grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);gap:24px}
 #menu .hangar-heading{padding-inline:8px}
 #menu .hangar-console{padding:16px 12px}
 #menu .hangar-intro{font-size:31px}
 #menu .pixel-menu-btn{font-size:21px!important}
 #menu .menu-mode{padding-top:89px;min-height:179px;padding-inline:8px}
 #menu .menu-mode-title{font-size:23px}
 #menu .hangar-display{padding:13px;margin-bottom:28px}
 #menu .hangar-personal{grid-template-columns:58px minmax(0,1fr);gap:8px}
 #menu .menu-pilot{width:58px;height:58px}
 #menu #menuEquippedName{font-size:22px}
 #menu .hangar-tools{gap:7px;padding:8px;grid-template-columns:repeat(6,minmax(0,1fr))}
 #menu .hangar-tools .pixel-menu-btn{font-size:19px!important;gap:7px;padding:8px!important}
 #menu .tool-pixel{width:25px;height:25px}
}
@media(max-width:1000px){
 #menu.screen{padding:16px 12px 10px!important}
 #menu #menuBattleCanvas{position:absolute;height:320px;object-fit:cover;object-position:68% top}
 #menu .hangar-heading{min-height:190px;padding:0 8px 16px}
 #menuLogoCanvas{width:clamp(260px,45vw,400px)!important;max-width:66vw!important}
 #menu .hangar-kicker{font-size:20px}
 #menu .hangar-station-link{display:none}
 #menu .hangar-layout{display:flex;flex-direction:column;align-items:stretch;gap:16px}
 #menu .hangar-console{padding:16px 12px}
 #menu .hangar-intro{margin:0 5px 6px;font-size:31px}
 #menu .hangar-training{margin:0 5px 14px;font-size:14px}
 #menu .pixel-menu-actions{margin:0 4px 17px!important;gap:9px!important}
 #menu .pixel-menu-btn{font-size:22px!important;padding:8px 10px!important;gap:9px;min-height:47px!important}
 #menu #continueBtn,#menu:not(:has(#continueBtn:not(.hidden))):not(:has(#skipTutorialBtn:not(.hidden))) #newBtn,#menu:has(#continueBtn.hidden) #skipTutorialBtn{min-height:52px!important}
 #menu .menu-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #menu .menu-mode{min-height:142px;padding:72px 9px 10px}
 #menu .menu-mode-art{height:94px}
 #menu .menu-mode-title{font-size:20px;margin-bottom:4px}
 #menu .menu-mode small{font-size:13px;line-height:1.4}
 #menu .menu-mode .mode-copy-desktop,#menu #anomalyMenuHint,#menu #bossRushMenuHint{display:none!important}
 #menu .menu-mode .mode-copy-mobile{display:block!important}
 #menu .hangar-display{margin:0;padding:10px 12px}
 #menu .hangar-display>h2{display:none}
 #menu .hangar-equipment-grid{grid-template-columns:78px minmax(0,1fr) 89px;grid-template-rows:1fr;gap:8px}
 #menu .hangar-ship-frame{grid-column:1;grid-row:1;padding-right:5px;border-width:1px}
 #menu .hangar-ship{transform:scale(1.3)!important}
 #menu .hangar-personal{grid-template-columns:48px minmax(0,1fr);gap:7px}
 #menu .menu-pilot{width:48px;height:56px}
 #menu #menuEquippedName{font-size:20px}
 #menu .menu-paints{min-height:44px;gap:8px;padding-top:5px}
 #menu .menu-paints>span{width:23px;height:25px}
 #menu .menu-trail{grid-column:3;grid-row:1;border-width:1px;min-height:48px}
 #menu #menuTrailCanvas{height:44px;object-fit:contain}
 #menu .hangar-tools{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px;padding:7px;gap:8px}
 #menu .hangar-tools .pixel-menu-btn{font-size:19px!important;gap:7px;padding:8px 6px!important;min-height:60px!important}
 #menu .hangar-tools .tool-pixel{width:22px;height:25px}
 #menu .hangar-tools small,#menu #menuCoins{font-size:13px!important}
 #menu .hangar-footer{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 5px 0}
 #menu #onlineMiniStatus{font-size:13px!important;padding-left:25px!important}
 #menu .hangar-records{font-size:14px;justify-content:space-between;gap:20px}
 #menu .hangar-records strong{font-size:23px}
 #menu .hangar-utility{justify-content:space-between;gap:12px}
}
@media(max-width:410px){
 #menu.screen{padding-inline:9px!important}
 #menu .hangar-heading{min-height:162px}
 #menu .hangar-console{padding:14px 9px}
 #menu .hangar-intro{font-size:29px}
 #menu .pixel-menu-btn{font-size:20px!important}
 #menu #continueBtn,#menu #newBtn,#menu #skipTutorialBtn{font-size:19px!important}
 #menu .launch-pixel{width:22px;height:22px}
 #menu .menu-mode{padding-inline:7px;min-height:142px}
 #menu .menu-mode-title{font-size:20px}
 #menu .hangar-equipment-grid{grid-template-columns:69px minmax(0,1fr) 70px;gap:7px}
 #menu .hangar-personal{grid-template-columns:44px minmax(0,1fr);gap:6px}
 #menu .menu-pilot{width:44px;height:51px}
 #menu #menuEquippedName{font-size:19px}
 #menu .menu-paints>span{width:20px;height:23px}
 #menu .hangar-tools .pixel-menu-btn{font-size:18px!important;gap:6px;flex-direction:column;justify-content:center;align-items:center;min-height:72px!important;text-align:center!important;padding:7px 4px!important}
 #menu .hangar-tools .tool-pixel{width:26px;height:26px}
 #menu .hangar-tools small{font-size:13px;line-height:1.2}
 #menu .hangar-tools #onlineBtn{font-size:clamp(13px,4vw,16px)!important}
}
@media(prefers-reduced-motion:reduce){#menu *{scroll-behavior:auto!important}}

/* Match menu-ordinateur.png: full-width launch actions, balanced columns and a small craft inset. */
#menu.screen{padding:12px 20px!important;overflow:hidden!important;box-sizing:border-box}
#menu .modern-hangar{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:clamp(8px,1.3dvh,20px)!important;width:100%!important;max-width:none!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;overflow:visible!important}
#menu .hangar-heading{min-height:0!important;height:auto!important;padding:0 12px!important;gap:16px!important}
#menuLogoCanvas{width:clamp(300px,min(31vw,50dvh),800px)!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:left center}
#menu .hangar-kicker{font-size:clamp(16px,2.1dvh,30px)!important;margin-top:2px!important}
#menu .hangar-layout{min-height:0!important;height:100%!important;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)!important;align-items:end!important;gap:clamp(24px,3.5vw,80px)!important}
#menu .hangar-console{display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr);align-self:stretch!important;min-height:0!important;height:100%!important;overflow:visible!important;padding:clamp(10px,1.6dvh,28px)!important}
#menu .hangar-intro{font-size:clamp(26px,min(3vw,4dvh),60px)!important;line-height:1.05!important;margin:0 5px 5px!important}
#menu .hangar-training{font-size:clamp(12px,1.7dvh,22px)!important;line-height:1.25!important;margin:0 5px 10px!important}
#menu .pixel-menu-actions{grid-template-columns:minmax(0,1fr)!important;gap:clamp(6px,.8dvh,12px)!important;margin:0 3px 12px!important}
#menu .pixel-menu-actions>.pixel-menu-btn{grid-column:1!important;min-height:44px!important;height:clamp(44px,5.7dvh,88px)!important;padding:6px 12px!important;font-size:clamp(20px,2.7dvh,40px)!important;line-height:1.1!important}
#menu .menu-mode-grid{min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(7px,1dvh,16px)!important}
#menu .menu-mode{height:100%!important;min-height:0!important;max-height:none!important;padding:0!important}
#menu .menu-mode-art{position:relative!important;inset:auto!important;z-index:0!important;height:auto!important;min-height:48px;flex:1 1 auto!important}
#menu .menu-mode-title{font-size:clamp(20px,2.6dvh,38px)!important;line-height:1.05!important;margin:5px 8px 3px!important;flex:none}
#menu .menu-mode small,#menu #anomalyMenuHint,#menu #bossRushMenuHint{font-size:clamp(11px,1.45dvh,21px)!important;line-height:1.25!important;padding:0 8px 8px!important;flex:none}
#menu .hangar-display{display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;margin:0!important;padding:12px!important}
#menu .hangar-display>h2{font-size:26px!important;margin:0 0 10px!important;padding-bottom:8px!important}
#menu .hangar-equipment-grid{flex:1;min-height:0!important;grid-template-rows:minmax(0,1fr) 54px!important;gap:10px!important}
#menu .hangar-ship-frame{display:grid;place-items:center;height:100%!important;min-height:0!important}
#menu .hangar-ship{height:100%!important;max-height:300px!important;width:100%!important;aspect-ratio:1/1;object-fit:contain!important}
#menu .hangar-tools{grid-template-columns:1.08fr 1.35fr 1fr .9fr .75fr 1.15fr!important;gap:7px!important;margin:0!important;padding:6px!important;min-height:0!important;height:clamp(64px,8dvh,110px)!important}
#menu .hangar-tools .pixel-menu-btn{min-height:48px!important;height:100%!important;max-height:none!important;padding:5px 7px!important;font-size:clamp(18px,2.5dvh,30px)!important;line-height:1!important;gap:7px!important}
#menu .hangar-tools .tool-pixel{width:clamp(24px,3dvh,42px)!important;height:clamp(24px,3dvh,42px)!important}
#menu .hangar-tools small,#menu #menuCoins{font-size:11px!important;line-height:1.15!important;margin-top:2px!important}
#menu .hangar-footer{min-height:0!important;max-height:none!important;padding:3px 8px 0!important;gap:3px 20px!important;overflow:auto!important;scrollbar-width:thin}
#menu #onlineMiniStatus{font-size:clamp(11px,1.4dvh,20px)!important;line-height:1.3!important;padding-block:2px!important}
#menu .hangar-records{font-size:clamp(12px,1.5dvh,22px)!important;gap:12px!important;line-height:1.3!important}#menu .hangar-records strong{font-size:clamp(19px,2.3dvh,32px)!important}
#menu .hangar-utility{gap:15px!important}#menu .hangar-utility .pixel-menu-btn{font-size:clamp(11px,1.25dvh,16px)!important;min-height:34px!important;padding:2px 0!important}
@media(max-width:1000px){
 #menu.screen{padding:6px 9px!important}
 #menu .modern-hangar{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;grid-template-rows:68px minmax(0,1fr) 106px 64px!important;gap:7px!important}
 #menu .hangar-heading{height:68px!important;padding:0 5px 5px!important}
 #menuLogoCanvas{width:238px!important;max-width:75vw!important;max-height:44px!important}#menu .hangar-kicker{font-size:16px!important}
 #menu .hangar-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 70px!important;gap:7px!important}
 #menu .hangar-console{padding:9px!important}
 #menu .pixel-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #menu .pixel-menu-actions>#continueBtn{grid-column:1/-1!important}
 #menu .pixel-menu-actions>#newBtn,#menu .pixel-menu-actions>#skipTutorialBtn{grid-column:auto!important}
 #menu .hangar-intro{font-size:25px!important;margin-bottom:3px!important}#menu .hangar-training{font-size:12px!important;margin-bottom:7px!important}
 #menu .pixel-menu-actions{margin-bottom:7px!important}#menu .pixel-menu-actions>.pixel-menu-btn{font-size:18px!important;padding:5px!important}
 #menu .menu-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
 #menu .menu-mode{height:73px!important;min-height:73px!important;padding:43px 6px 5px!important}
 #menu .menu-mode-art{position:absolute!important;inset:0 0 auto!important;z-index:-1!important;height:63px!important;min-height:0!important;flex:none!important}#menu .menu-mode-title{font-size:20px!important;line-height:1!important;margin:0 0 2px!important}
 #menu .menu-mode small{padding:0!important}
 #menu .menu-mode small,#menu #anomalyMenuHint,#menu #bossRushMenuHint{display:none!important}
 #menu .hangar-display{padding:6px 8px!important;height:70px!important}
 #menu .hangar-display>h2{display:none!important}
 #menu .hangar-equipment-grid{grid-template-columns:66px minmax(0,1fr) 72px!important;grid-template-rows:minmax(0,1fr)!important;gap:7px!important}
 #menu .hangar-ship-frame{grid-column:1!important;grid-row:1!important;height:54px!important;padding-right:5px!important}
 #menu .hangar-ship{height:54px!important;max-height:54px!important;transform:none!important}
 #menu .hangar-personal{grid-template-columns:42px minmax(0,1fr)!important;gap:6px!important}#menu .menu-pilot{width:42px!important;height:48px!important}#menu #menuEquippedName{font-size:19px!important}
 #menu .menu-paints{min-height:25px!important;gap:6px!important;padding-top:2px!important}#menu .menu-paints>span{width:19px!important;height:21px!important}
 #menu .menu-trail{grid-column:3!important;grid-row:1!important;min-height:44px!important}#menu #menuTrailCanvas{height:40px!important}
 #menu .hangar-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:6px!important;height:106px!important;padding:5px!important}
 #menu .hangar-tools .pixel-menu-btn{flex-direction:row!important;justify-content:center!important;height:44px!important;min-height:44px!important;max-height:44px!important;font-size:17px!important;padding:3px 4px!important;text-align:left!important;gap:5px!important}
 #menu .hangar-tools .tool-pixel{width:19px!important;height:21px!important}#menu .hangar-tools small,#menu #menuCoins{font-size:10px!important}
 #menu .hangar-footer{grid-template-columns:minmax(0,1fr)!important;max-height:64px!important;gap:3px!important;padding:2px 3px!important}
 #menu .hangar-records{font-size:11px!important;gap:10px!important}#menu #onlineMiniStatus{font-size:11px!important;line-height:1.2!important}#menu .hangar-records strong{font-size:17px!important}
}
@media(min-width:1001px) and (min-height:541px) and (max-height:780px){
 #menu .hangar-heading{padding-bottom:0!important}
 #menu .hangar-intro{font-size:26px!important;margin-bottom:3px!important}
 #menu .hangar-training{margin-bottom:7px!important}
 #menu .pixel-menu-actions{margin-bottom:8px!important;gap:5px!important}
 #menu #continueBtn,#menu #skipTutorialBtn,#menu #newBtn{min-height:44px!important;height:44px!important;font-size:20px!important}
 #menu .menu-mode .mode-copy-desktop,#menu #anomalyMenuHint,#menu #bossRushMenuHint{display:none!important}
 #menu .menu-mode .mode-copy-mobile{display:block!important;font-size:11px!important;line-height:1.15!important;padding-bottom:6px!important}
 #menu .menu-mode-art{min-height:44px!important}
}
@media(max-height:540px) and (min-width:681px){
 #menu.screen{padding:6px 9px!important}#menu .modern-hangar{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;grid-template-rows:42px minmax(0,1fr) 50px 26px!important;gap:6px!important}
 #menu .hangar-heading{height:42px!important;padding:0!important}#menuLogoCanvas{width:220px!important;max-height:34px!important}#menu .hangar-kicker{display:none!important}
 #menu .hangar-layout{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:12px!important}
 #menu .hangar-console{padding:7px!important}#menu .hangar-intro{font-size:23px!important;line-height:1!important;margin:0 0 5px!important}#menu .hangar-training{display:none!important}
 #menu .pixel-menu-actions{margin:0 0 6px!important;gap:4px!important}#menu .pixel-menu-actions>.pixel-menu-btn{height:44px!important;min-height:44px!important;font-size:17px!important}
 #menu .menu-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}#menu .menu-mode{height:62px!important;min-height:62px!important;padding:36px 5px 4px!important}#menu .menu-mode-art{height:52px!important}#menu .menu-mode-title{font-size:17px!important}
 #menu .hangar-display{height:100%!important;padding:7px!important}#menu .hangar-equipment-grid{grid-template-columns:1fr!important;grid-template-rows:minmax(90px,1fr) 62px 44px!important;gap:4px!important}
 #menu .hangar-ship-frame{grid-column:1!important;grid-row:1!important;height:100%!important;border:0!important;padding:0!important}#menu .hangar-ship{height:100%!important;max-height:120px!important;width:auto!important}
 #menu .hangar-personal{grid-column:1!important;grid-row:2!important}#menu .menu-trail{grid-column:1!important;grid-row:3!important;max-width:160px!important;justify-self:center}#menu #menuTrailCanvas{height:40px!important}
 #menu .hangar-tools{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;height:50px!important;padding:2px 4px!important;gap:5px!important}
 #menu .hangar-tools .pixel-menu-btn{height:44px!important;max-height:44px!important;min-height:44px!important;font-size:15px!important;gap:4px!important}#menu .hangar-tools .tool-pixel{width:17px!important;height:19px!important}#menu .hangar-tools small{display:none!important}
 #menu .hangar-footer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;max-height:26px!important;padding:0!important;font-size:10px!important}#menu .hangar-utility{display:flex!important;grid-column:1/-1!important}
}

/* Keep the historical secret gesture at the screen corner, outside the menu controls. */
#menu #devSecretHotspot{left:auto!important;top:auto!important;right:0!important;bottom:0!important;width:28px!important;height:28px!important}
#menu #devSecretBtn{position:fixed!important;left:auto!important;top:auto!important;right:14px!important;bottom:14px!important;margin:0!important}
@media(max-width:1000px){#menu .hangar-utility{padding-right:28px!important;box-sizing:border-box!important}}
#developer .dev-coin-actions{display:flex;gap:8px;flex-wrap:wrap}
#developer .dev-coin-actions .btn{flex:1;white-space:nowrap}

/* Landscape phones need a compact launch row above the same six modes. */
@media(min-width:681px) and (max-height:540px){
 #menu .pixel-menu-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #menu .pixel-menu-actions>#continueBtn,#menu .pixel-menu-actions>#skipTutorialBtn,#menu .pixel-menu-actions>#newBtn{grid-column:auto!important}
 #menu .pixel-menu-actions .launch-pixel{display:none!important}
 #menu #continueBtn,#menu #skipTutorialBtn,#menu #newBtn{font-size:16px!important;line-height:1.05!important;padding:3px 4px!important;min-height:44px!important;height:44px!important}
}

@media(max-width:680px){#menu .pixel-menu-actions>#continueBtn,#menu .pixel-menu-actions>#newBtn{grid-column:1/-1!important}}

/* The equipped craft is a small lower-right inset; the orbital battle remains visible above it. */
@media(min-width:1001px) and (min-height:541px){
 #menu .hangar-display{align-self:end!important;justify-self:end!important;width:min(500px,100%)!important;height:260px!important;max-height:280px!important;padding:12px!important}
 #menu .hangar-equipment-grid{grid-template-rows:minmax(0,1fr) 48px!important;gap:8px 12px!important}
 #menu .hangar-ship{max-height:180px!important}
 #menu .hangar-personal{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important}
 #menu .menu-pilot{width:64px!important;height:64px!important}
 #menu #menuEquippedName{font-size:24px!important}
 #menu .menu-trail{min-height:44px!important}
 #menu #menuTrailCanvas{max-height:44px!important}
}
