/* Steel/cyan/amber materials reproduced from the generated interface boards. */
:root{--ui-night:#071021;--ui-panel:#14283e;--ui-recess:#0b192b;--ui-ink:#fff1cf;--ui-cyan:#69d9df;--ui-amber:#ffc66d;--ui-steel:#607b9a;--ui-alert:#ff746b;--ui-frame-shadow:inset 0 0 0 2px #09121f,inset 0 3px 0 2px #89a8bc,inset 0 -3px 0 2px #294359,inset 3px 0 0 2px #385d74,inset -3px 0 0 2px #385d74,inset 0 0 0 7px #122f43,inset 0 0 0 8px #69d9df,4px 5px 0 #020913;--ui-frame-clip:polygon(0 12px,4px 12px,4px 8px,8px 8px,8px 4px,12px 4px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 4px,calc(100% - 8px) 4px,calc(100% - 8px) 8px,calc(100% - 4px) 8px,calc(100% - 4px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 4px) calc(100% - 12px),calc(100% - 4px) calc(100% - 8px),calc(100% - 8px) calc(100% - 8px),calc(100% - 8px) calc(100% - 4px),calc(100% - 12px) calc(100% - 4px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 4px),8px calc(100% - 4px),8px calc(100% - 8px),4px calc(100% - 8px),4px calc(100% - 12px),0 calc(100% - 12px))}
@font-face{font-family:'Starbreak Pixel';src:url('/game/assets/fonts/pixelify-sans.ttf') format('truetype');font-display:swap;font-weight:400 700}
html body .screen:not(#menu):not(#avatarCreator):not(#shop)>.panel,
html body #shop .shop-panel,html body #avatarCreator.avatar-refit .av-shell,
html body :is(.ui-console,.ui-confirm,#avHeadGallery .av-head-gallery-panel,#avFaceCalibration>div,#avIdentity>div,.dev-avatar-align-overlay>div,#backgroundGenerator>div){border:3px solid #607b9a!important;border-radius:0!important;background-color:var(--ui-panel)!important;box-shadow:var(--ui-frame-shadow)!important;clip-path:var(--ui-frame-clip)!important;color:var(--ui-ink)}
html body .screen:not(#menu):not(#avatarCreator):not(#shop) h2{color:var(--ui-ink)!important;font-family:'Starbreak Pixel',monospace!important;font-size:clamp(25px,3.2vw,34px)!important;letter-spacing:0!important;text-shadow:2px 2px #020913!important}
html body .screen:not(#menu):not(#avatarCreator):not(#shop) h3{font-family:'Starbreak Pixel',monospace!important;font-size:22px!important;letter-spacing:0!important;color:var(--ui-cyan)!important}
html body .screen:not(#menu):not(#avatarCreator):not(#shop) .btn,html body :is(.ui-confirm,.screen) :is(.av-action,.shop-choice),html body :is(#hub,#vault) button{border-radius:0!important;box-shadow:inset 0 2px 0 #6b8da3,inset 2px 0 0 #385974,inset -2px -3px 0 #0b192b,0 3px 0 #020913!important;background-color:#19374e!important;border:2px solid #607b9a!important;clip-path:polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px))!important;color:#ecf5f0!important;min-height:44px}
html body .screen:not(#menu):not(#avatarCreator):not(#shop) .btn.primary,html body :is(.ui-confirm .primary,#hub a.primary){background:#ffc66d!important;border-color:#ffe1a0!important;color:#102238!important;box-shadow:inset 0 2px 0 #fff1cf,inset 2px 0 0 #ffe1a0,inset -2px -3px 0 #b57f39,0 3px 0 #020913!important}
html body .screen .btn:hover:not(:disabled),html body .ui-confirm button:hover{border-color:var(--ui-cyan)!important;filter:brightness(1.08)}
html body :is(.screen,.ui-confirm) :is(button,input,select,textarea):focus-visible{outline:3px solid var(--ui-ink)!important;outline-offset:2px!important}
html body .screen :is(input:not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){background:#071525!important;border:2px solid #3e5c75!important;color:#e8f2f1!important;box-shadow:inset 2px 3px #020913!important;border-radius:0!important}
html body :is(#help,#news,#bestiary,#onlineProfile)>.panel>h2{padding:0 0 12px 40px!important;border-bottom:2px solid #37566f!important;background:linear-gradient(var(--ui-cyan),var(--ui-cyan)) 4px 5px/18px 18px no-repeat!important}
html body :is(#gameover,#victory) .big-number{font-family:'Starbreak Pixel',monospace!important;font-variant-numeric:tabular-nums;color:var(--ui-amber)!important}
html body :is(#unknownReveal,#dashUnlock,#overclock,#campaignFlightChoice) :is(.panel,.campaign-flight-panel){border-color:#ad8b50!important}
html body :is(#developer,#moduleTestReview,#moduleTestSummary)>.panel{background-color:#10263a!important}
html body :is(#news,#help,#onlineProfile) :is(.news-card,.news-item,.online-profile-card,.profile-info-note,.leaderboard){border:2px solid #35556e!important;background:#0a192b!important;box-shadow:inset 0 2px #213f55!important;border-radius:0!important}
html body #shop .shop-header,html body #avatarCreator.avatar-refit .av-titlebar{border-bottom:2px solid var(--ui-cyan)!important;background-color:#102c41!important;box-shadow:inset 0 4px #32546c!important}
html body #shop .shop-inspector,html body #avatarCreator.avatar-refit .av-hangar{box-shadow:inset 0 0 0 2px #09121f,inset 0 0 0 4px #385e75!important}
html body #menu :is(.hangar-console,.hangar-display,.hangar-tools){border:3px solid var(--ui-steel)!important;box-shadow:var(--ui-frame-shadow)!important;clip-path:var(--ui-frame-clip)!important}
html body :is(#devGalleryPanel,#devGalleryLegend,#devBossTestPanel,.upgrade-demo-gallery,.dev-avatar-align-panel){border:3px solid #607b9a!important;border-radius:0!important;background-color:var(--ui-recess)!important;box-shadow:var(--ui-frame-shadow)!important;color:var(--ui-ink);scrollbar-width:thin}
html body :is(#logPanel,#pauseUpgradesOverlay .pause-upgrades-panel,#campaignFlightChoice .campaign-flight-panel,.av-face-calibration-panel,.av-identity-panel,.av-head-gallery-panel){border:3px solid #607b9a!important;border-radius:0!important;background-color:var(--ui-panel)!important;box-shadow:var(--ui-frame-shadow)!important;color:var(--ui-ink);clip-path:var(--ui-frame-clip)!important}
html body #shop .shop-choice.is-selected,html body #shop .shop-choice[aria-pressed=true]{border-color:var(--ui-amber)!important;box-shadow:inset 0 0 0 2px #9a7338,0 3px #020913!important}
html body #avatarCreator.avatar-refit .av-swatch,html body #avatarCreator.avatar-refit .av-swatch.active,html body #avatarCreator.avatar-refit .av-swatch:hover{background:var(--av-color)!important;clip-path:none!important}
.ui-confirm{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:26px;overflow:auto;color:var(--ui-ink);background:var(--ui-panel);font:15px/1.55 system-ui}
.ui-confirm::backdrop{background:#020915d9}.ui-confirm .ui-confirm-kicker{font:700 14px 'Starbreak Pixel',monospace;color:var(--ui-cyan);margin:0 0 8px}.ui-confirm h2{font:700 30px/1.1 'Starbreak Pixel',monospace;color:var(--ui-ink);margin:0 0 16px}.ui-confirm .ui-confirm-copy{white-space:pre-line;max-height:45dvh;overflow:auto;padding:14px;background:var(--ui-recess);border:1px solid #37566f;margin:0 0 18px}.ui-confirm .ui-confirm-actions{display:flex;gap:12px;justify-content:flex-end}.ui-confirm button{font:700 20px/1.1 'Starbreak Pixel',monospace;min-height:44px;min-width:110px;padding:10px 16px;cursor:pointer}
@media(max-width:620px){html body .screen:not(#menu):not(#avatarCreator):not(#shop) h2{font-size:27px!important}.ui-confirm{padding:22px}.ui-confirm .ui-confirm-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-height:540px) and (orientation:landscape){html body .screen:not(#menu):not(#avatarCreator):not(#shop) h2{font-size:24px!important}.ui-confirm{padding:20px}.ui-confirm h2{font-size:25px}.ui-confirm .ui-confirm-copy{max-height:35dvh}}
@media(prefers-reduced-motion:reduce){html body .screen *{scroll-behavior:auto!important}}
/* These PC tools are asides rather than .screen panels; reuse the same console controls. */
html body :is(#devGalleryPanel,#devBossTestPanel) .btn{border-radius:0!important;border:2px solid var(--ui-steel)!important;min-height:44px;padding:7px 10px;font:650 19px/1.1 'Starbreak Pixel',monospace!important;color:var(--ui-ink)!important;background:#19374e!important;box-shadow:inset 0 2px #6b8da3,inset 2px 0 #385974,inset -2px -3px #0b192b,0 3px #020913!important;clip-path:polygon(0 6px,6px 0,calc(100% - 6px) 0,100% 6px,100% calc(100% - 6px),calc(100% - 6px) 100%,6px 100%,0 calc(100% - 6px))!important}
html body :is(#devGalleryPanel,#devBossTestPanel) .btn.primary{background:var(--ui-amber)!important;border-color:#ffe1a0!important;color:#102238!important;box-shadow:inset 0 2px #fff1cf,inset 2px 0 #ffe1a0,inset -2px -3px #b57f39,0 3px #020913!important}
html body :is(#devGalleryPanel,#devBossTestPanel) .btn:focus-visible{outline:3px solid var(--ui-ink)!important;outline-offset:2px!important}
html body :is(#devGalleryPanel,#devBossTestPanel) .dev-gallery-title strong{font:700 22px/1.1 'Starbreak Pixel',monospace;color:var(--ui-cyan);text-shadow:2px 2px #020913}
html body :is(#devGalleryPanel,#devBossTestPanel) .dev-gallery-title small{font:600 10px/1.3 system-ui,sans-serif;color:#bdd4df;letter-spacing:1px}
html body .ui-confirm button{border:2px solid var(--ui-steel)!important;border-radius:0!important;background:#19374e;color:var(--ui-ink);box-shadow:inset 0 2px #6b8da3,inset -2px -3px #0b192b,0 3px #020913;clip-path:polygon(0 5px,5px 0,calc(100% - 5px) 0,100% 5px,100% calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,0 calc(100% - 5px))}
html body #developer :is(.dev-control,.dev-local-data-console,.dev-coin-console,.dev-cloud-audit-console,.dev-upgrade){border-radius:0!important;background-color:var(--ui-recess)!important;background-image:none!important;box-shadow:inset 0 2px #27485f!important}

/* The old menu applies position:relative to every direct child, including this modal. */
html body #menu>#logOverlay{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;padding:12px!important;box-sizing:border-box!important;z-index:220!important}
html body #logPanel{width:min(920px,100%)!important;height:min(780px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important}
html body #logPanel>h2,html body #logPanel>.eyebrow{margin:0!important;flex:none}
html body #logPanel>h2{font:700 clamp(25px,3vw,34px)/1.1 'Starbreak Pixel',monospace!important;color:var(--ui-ink)}
html body #logText{flex:1!important;min-height:0!important;width:100%!important;resize:none}
html body #logPanel>.dev-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;flex:none}
html body #logPanel>.dev-row>.btn{min-width:0!important;min-height:44px!important;margin:0!important;border:2px solid var(--ui-steel)!important;border-radius:0!important;background:#19374e!important;color:var(--ui-ink)!important;font:700 20px/1.1 'Starbreak Pixel',monospace!important;box-shadow:inset 0 2px #6b8da3,inset -2px -3px #0b192b!important}
html body #logPanel>.dev-row>.btn.primary{background:var(--ui-amber)!important;border-color:#ffe1a0!important;color:#102238!important}

/* A connected profile may be longer than the viewport; its return stays on the console. */
html body #onlineProfile .profile-pixel-panel.profile-simple-account.profile-connected-layout{width:min(1120px,calc(100vw - 24px))!important;min-height:0!important;height:auto!important;max-height:calc(100dvh - 24px)!important;margin:0!important;overflow:auto!important;transform:none!important}
html body #onlineProfile .profile-connected-layout>.profile-bottom-actions{position:sticky!important;bottom:0!important;grid-row:auto!important;padding:8px 0 0!important;margin:0!important;background:var(--ui-panel)!important;z-index:3}
html body #onlineProfile .profile-pixel-panel.profile-simple-account .profile-logo{background:none!important;color:var(--ui-ink)!important;font:700 30px/1.1 'Starbreak Pixel',monospace!important;text-shadow:2px 2px #020913!important;letter-spacing:0!important}
html body #onlineProfile .profile-pixel-panel.profile-simple-account .online-profile-card{background:var(--ui-recess)!important;border:2px solid #35556e!important;border-radius:0!important;box-shadow:inset 0 2px #213f55!important;clip-path:none!important}
html body #onlineProfile .profile-pixel-panel.profile-simple-account .stat{border:1px solid #35556e!important;border-radius:0!important;background:var(--ui-panel)!important;box-shadow:none!important;min-width:0}
html body #onlineProfile .profile-pixel-panel.profile-simple-account .stat span{font:12px/1.3 system-ui,sans-serif!important;letter-spacing:0!important}

html body #menu .menu-trail{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;align-items:center!important;gap:6px!important;padding:4px 6px!important;min-height:44px!important}
html body #menu #menuTrailCanvas{width:64px!important;height:16px!important;max-height:16px!important}
html body #menu .menu-trail-caption{display:grid;gap:2px;text-align:left;font:500 10px/1 system-ui,sans-serif;color:var(--ui-cyan)}
html body #menu #menuTrailName{font:650 16px/1 'Starbreak Pixel',monospace;color:var(--ui-ink);overflow-wrap:anywhere}
@media(max-width:1000px){
 html body #menu .menu-trail{grid-template-columns:minmax(0,1fr)!important;padding:3px!important}
 html body #menu #menuTrailCanvas{display:none!important}
 html body #menu .menu-trail-caption{font-size:9px!important;text-align:center!important}
 html body #menu #menuTrailName{font-size:13px!important}
}
@media(max-width:1000px) and (min-height:541px){
 html body #menu .menu-mode{height:106px!important;min-height:106px!important;padding:54px 6px 5px!important}
 html body #menu .menu-mode-art{height:52px!important}
 html body #menu .menu-mode-title{font-size:18px!important;line-height:1!important}
 html body #menu .menu-mode .mode-copy-mobile{font-size:10px!important;line-height:1.1!important}
 html body #menu .hangar-tools #onlineBtn{font-size:14px!important}
}
@media(max-height:540px) and (min-width:681px){
 html body #menu .menu-mode .mode-copy-mobile{display:none!important}
}

/* The reference bay is a frame, so preserve its posts and floor in a tall pilot preview. */
html body #avatarCreator.avatar-refit .av-hangar{
 background:#071827!important;border:22px solid transparent!important;
 border-image:url('/game/assets/modern/wardrobe-bay.png') 160 160 180 160 fill / 22px 22px 26px / 0 stretch!important;
 padding:4px 0 12px!important;
}
html body #avatarCreator.avatar-refit .av-hangar #avCanvas{align-self:end!important;transform:translateY(6px)!important}
@media(min-width:1001px) and (min-height:800px){html body #avatarCreator.avatar-refit .av-hangar #avCanvas{transform:translateY(28px)!important}}
@media(max-width:680px) and (min-height:541px){
 html body #menu .modern-hangar{grid-template-rows:56px minmax(0,1fr) 110px 100px!important;gap:6px!important}
 html body #menu .hangar-heading{height:56px!important}
 html body #menu .hangar-layout{grid-template-rows:minmax(0,1fr) 64px!important;gap:6px!important}
 html body #menu .hangar-display{height:64px!important}
 html body #menu .hangar-console{padding-bottom:6px!important}
 html body #menu .hangar-intro{font-size:22px!important}
 html body #menu .hangar-training{margin-bottom:5px!important}
 html body #menu .pixel-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-bottom:2px!important}
 html body #menu .pixel-menu-actions>#continueBtn{grid-column:1/-1!important;height:44px!important;min-height:44px!important}
 html body #menu .pixel-menu-actions>#newBtn,html body #menu .pixel-menu-actions>#skipTutorialBtn{grid-column:auto!important;font-size:16px!important;height:44px!important;min-height:44px!important}
 html body #menu .pixel-menu-actions>#newBtn .launch-pixel,html body #menu .pixel-menu-actions>#skipTutorialBtn .launch-pixel{display:none!important}
 html body #menu:not(:has(#skipTutorialBtn:not(.hidden))) .pixel-menu-actions>#newBtn{grid-column:1/-1!important}
 html body #menu .menu-mode-grid{grid-template-rows:repeat(3,minmax(0,1fr))!important}
 html body #menu .menu-mode{height:100%!important;min-height:98px!important;padding:50px 6px 3px!important}
 html body #menu .menu-mode-art{height:48px!important}
 html body #menu .hangar-tools{height:110px!important}
 html body #menu .hangar-footer{max-height:none!important;height:100px!important;grid-template-rows:auto auto 44px!important}
 html body #menu .hangar-utility{gap:8px!important;flex-wrap:nowrap!important}
 html body #menu .hangar-utility .pixel-menu-btn{min-height:44px!important;font-size:10px!important;white-space:nowrap}
}
