/* Painted plate atlas: amber command, steel idle, illuminated hover. */
.home h1.title-emblem{width:min(590px,44vw);margin:0 0 12px;line-height:0;font-size:0}.title-emblem img{display:block;width:100%;height:auto;max-height:35vh;object-fit:contain;object-position:left center;filter:drop-shadow(0 8px 14px #0009)}
@media(max-width:700px){.home h1.title-emblem{width:min(100%,430px);margin-bottom:12px}.title-emblem img{max-height:29vh}.home .eyebrow{margin-bottom:8px}}
@media(max-height:700px) and (min-width:701px){.title-emblem img{max-height:27vh}.home h1.title-emblem{margin-bottom:6px}}
.panel .primary,.panel .secondary{position:relative;min-width:0;width:280px;max-width:100%;height:74px;border:0;padding:0 40px 0 65px;background:transparent url('assets/military-buttons.png') center 50%/100% 300% no-repeat;color:#e9f5df;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-size:17px;font-weight:700;letter-spacing:.7px;text-align:center;text-shadow:0 2px 3px #000;filter:drop-shadow(0 5px 7px #0008);transition:filter .16s,transform .16s}
.panel .primary{background-position:center top;color:#ffdfa1}
.panel .primary:hover,.panel .secondary:hover,.panel .primary:focus-visible,.panel .secondary:focus-visible{background-position:center bottom;color:#efffff;filter:drop-shadow(0 0 12px #42dfd76b) brightness(1.16);transform:translateY(-2px)}
.panel .primary:active,.panel .secondary:active{transform:translateY(2px) scale(.985)}
.panel button:disabled{transform:none;filter:grayscale(.7);opacity:.55;cursor:default}
.panel .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:30px}
.panel[data-screen="pause"] .panel-inner,.panel[data-screen="gameover"] .panel-inner{padding-top:6vh}
.panel[data-screen="pause"] .actions{max-width:590px}.panel[data-screen="pause"] #resume{width:100%;height:100px;font-size:24px;padding-left:24%;padding-right:16%}
#saveScore{display:flex;align-items:center;flex-wrap:wrap;gap:12px}#saveScore label{width:100%;color:#e2be76;text-transform:uppercase;letter-spacing:2px;font-size:11px}#saveScore input{min-width:0;width:260px;padding:16px;border:1px solid #769087;background:#08171c;box-shadow:inset 0 0 15px #0008;color:#d9f2e9}
.panel .back{width:170px;height:49px;font-size:13px;padding-left:39px;padding-right:23px;margin:0 0 12px 14px}
.panel .tile:not(button),.panel .setting{border-color:#82917b66;background:linear-gradient(120deg,#25362cbb,#07141beb);box-shadow:inset 0 1px #c5c79b33,0 5px 15px #0004}
.panel .setting{padding:18px 20px;margin:12px 0;border:1px solid #82917b66}.panel input[type="range"]{accent-color:#efbd6a}.panel select{padding:9px;background:#15251f;color:#e4eacb;border:1px solid #82917b}
.panel[data-screen="sectors"] .panel-inner{max-width:1100px}
.sector-viewport{overflow:hidden;position:relative;border:2px solid #7a8c78;box-shadow:0 0 0 5px #101c20,0 14px 35px #0008;touch-action:pan-y;user-select:none}
.sector-track{display:flex;transition:transform .45s cubic-bezier(.22,.7,.2,1)}
.sector-slide{position:relative;flex:0 0 100%;min-width:0;margin:0;aspect-ratio:16/8;overflow:hidden}
.sector-slide img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.sector-slide figcaption{position:absolute;bottom:0;left:0;right:0;padding:45px 30px 22px;background:linear-gradient(transparent,#021119ed)}
.sector-slide figcaption span{color:#ffc979;font-size:10px;letter-spacing:3px}.sector-slide h3{font:700 clamp(24px,3vw,42px)/1 'Barlow Condensed',sans-serif;margin:8px 0}.sector-slide figcaption p{margin:0;color:#d6e6e4}
.sector-navigation{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 7px}.sector-navigation .secondary{width:200px;height:57px;font-size:14px;padding-left:46px;padding-right:27px}.sector-count{font:700 19px 'Barlow Condensed',sans-serif;letter-spacing:3px;color:#efce8e}
.sector-selectors{display:flex;justify-content:center;gap:8px}.sector-selectors .secondary{width:74px;height:40px;padding:0 9px 0 17px;font-size:15px}.sector-selectors [aria-current="true"]{background-position:center top;color:#ffdf96;filter:drop-shadow(0 0 7px #ffbc3c66)}.panel .sector-hint{text-align:center;font-size:9px;letter-spacing:2px;color:#9eb8b5}
body.reduced-motion .sector-track{transition:none}@media(prefers-reduced-motion:reduce){.sector-track{transition:none}}
@media(max-width:650px){.panel .actions{gap:8px}.panel .actions .secondary,.panel .actions .primary{width:100%;height:72px;padding-left:24%;padding-right:16%}.panel[data-screen="pause"] #resume{height:83px;font-size:21px}.panel[data-screen="pause"] .panel-inner,.panel[data-screen="gameover"] .panel-inner{padding-top:20px}.sector-slide{aspect-ratio:4/3}.sector-slide figcaption{padding:36px 16px 15px}.sector-navigation .secondary{width:132px;height:49px;font-size:12px;padding-left:30px;padding-right:18px}.sector-count{font-size:14px;letter-spacing:1px}.sector-selectors{gap:3px}.sector-selectors .secondary{width:60px;height:38px;font-size:13px}.panel .back{width:130px;height:40px;font-size:11px;padding-left:30px;padding-right:18px}.panel[data-screen="sectors"] h2{clear:both}}
.command-menu{width:min(560px,47vw);display:grid;gap:8px}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}
.home .military-button,header nav button,.panel .back,.credits-back{position:relative;border:0;background-color:transparent;background-image:url('assets/military-buttons.png');background-size:100% 300%;background-position:center 50%;background-repeat:no-repeat;color:#e9f5df;text-shadow:0 2px 2px #000,0 0 8px #07120e;box-shadow:none;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:700;letter-spacing:.8px;transition:filter .16s,transform .12s;text-align:center;padding:0 15% 0 25%;filter:drop-shadow(0 5px 5px #0009);isolation:isolate}
.home .military-button{height:66px;font-size:14px;white-space:normal;line-height:1.1}.home .command-launch{height:105px;background-position:center top;color:#ffe1a1;font-size:24px;letter-spacing:1.5px;padding-left:24%;padding-right:16%;margin-bottom:3px}
.home .military-button:hover,.home .military-button:focus-visible,header nav button:hover,header nav button:focus-visible,.panel .back:hover,.credits-back:hover{background-position:center bottom;color:#e7ffff;filter:drop-shadow(0 0 9px #34dcc450) brightness(1.15);transform:translateY(-2px)}
.home .command-launch:hover,.home .command-launch:focus-visible{background-position:center top;color:#fff4ce;filter:drop-shadow(0 0 12px #ffa82e80) brightness(1.22)}
.home .military-button:active,header nav button:active,.panel .back:active,.credits-back:active{transform:translateY(2px) scale(.985);filter:brightness(.85);transition-duration:.05s}
.home .military-button:focus-visible,header nav button:focus-visible{outline:2px solid #f5d78d;outline-offset:3px}
.home{padding-top:4%;padding-bottom:2%;overflow:auto}.home h1{font-size:clamp(55px,6.5vw,123px);margin-bottom:14px}.home .intro{margin-bottom:16px;line-height:1.5}.home .home-note{margin-top:16px}
header nav{gap:9px}header nav button{height:43px;width:155px;padding-left:24%;padding-right:14%;font-size:11px;letter-spacing:.2px}
/* Percent padding on flex navigation would be relative to the nav width. */
header nav button{padding-left:36px;padding-right:20px}.panel .back{width:140px;height:40px;padding:0 18px 0 32px;font-size:11px}.credits-back{min-height:64px;padding:0 15% 0 24%;font-size:15px;letter-spacing:.5px}.credits-back span{display:none}
@media(min-width:1600px){.command-menu{width:590px}.home .military-button{height:72px;font-size:16px}.home .command-launch{height:110px;font-size:26px}.home{padding-top:3.5%}}
@media(max-width:1100px){header nav button{width:125px;font-size:10px;padding-left:29px;padding-right:17px;height:39px}.command-menu{width:440px;max-width:76%}.home .military-button{font-size:12px;height:58px}.home .command-launch{height:84px;font-size:20px}}
@media(max-width:700px){header{padding:0 12px}header nav{gap:3px}header nav button{width:100px;height:36px;font-size:9px;padding-left:24px;padding-right:13px}.command-menu{width:430px;max-width:100%}.home{padding:6% 5%}.home h1{font-size:58px}.home .intro{font-size:12px;margin-bottom:12px}.home .military-button{height:58px;font-size:12px}.home .command-launch{height:82px;font-size:21px}.home .home-note{font-size:9px}.command-grid{gap:5px 7px}}
@media(max-width:440px){header nav button{width:90px;font-size:8px;padding-left:21px;padding-right:12px}.home{padding-top:7%}.home h1{font-size:52px}.home .military-button{height:58px;font-size:11px;letter-spacing:.3px}.home .command-launch{height:78px;font-size:19px}.home .intro{font-size:12px}.credits-back{font-size:13px}}
@media(max-height:600px) and (min-width:701px){.home h1{font-size:52px}.home{padding-top:2%}.home .intro{display:none}.home .eyebrow{margin-bottom:10px}.home .military-button{height:46px;font-size:11px}.home .command-launch{height:63px;font-size:18px}.home .home-note{display:none}.command-menu{width:390px}}
@media(prefers-reduced-motion:reduce){.military-button,header nav button{transition:none!important}}body.reduced-motion .military-button,body.reduced-motion header nav button{transition:none}
/* Edge-to-edge game shell: navigation lives in the illustrated menu. */
.upgrade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.upgrade-grid button.tile{position:relative;aspect-ratio:3/2;padding:41% 6% 6%;border:0;background: url('assets/upgrade-cards.png') 0 0/200% 200% no-repeat;text-align:left;filter:drop-shadow(0 8px 8px #0008);transition:transform .18s,filter .18s;display:flex;flex-direction:column;justify-content:center}
.upgrade-grid button[data-upgrade="ammo"]{background-position:100% 0}
.upgrade-grid button[data-upgrade="shield"]{background-position:0 100%}
.upgrade-grid button[data-upgrade="repair"]{background-position:100% 100%}
.upgrade-grid button.tile strong{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:24px;letter-spacing:1px;color:#ffda93;margin:0 0 5px;text-shadow:0 2px 3px #000}
.upgrade-grid button.tile p{font-size:13px;line-height:1.4;color:#d3e4e7;margin:0}
.upgrade-grid button.tile:hover,.upgrade-grid button.tile:focus-visible{filter:drop-shadow(0 0 12px #36dfe077) brightness(1.2);transform:translateY(-4px);outline:2px solid #9df4ee;outline-offset:4px}
.upgrade-grid button.tile:active{transform:translateY(1px) scale(.985)}
@media(max-width:650px){.upgrade-grid{grid-template-columns:1fr;gap:17px;max-width:430px;margin:20px auto}.upgrade-grid button.tile strong{font-size:22px}.upgrade-grid button.tile p{font-size:12px}}
html,body{height:100%;overflow:hidden}body #stage{width:100%;height:100dvh;max-height:none;min-height:0;aspect-ratio:auto;margin:0}.home .menu-fullscreen{position:absolute;right:22px;top:18px;width:150px;height:43px;padding:0 20px 0 35px;font-size:12px}.home h1{font-size:clamp(52px,min(6.5vw,12vh),123px)}
@media(max-width:700px){.home .menu-fullscreen{right:12px;top:10px;width:120px;height:36px;font-size:10px;padding:0 16px 0 27px}.home{padding-top:55px}.home h1{font-size:52px}}
@media(max-height:700px) and (min-width:701px){.home{padding-top:22px}.home h1{font-size:65px}.home .intro{font-size:13px;line-height:1.25;margin-bottom:8px}.home .eyebrow{margin-bottom:12px}.home .military-button{height:54px;font-size:13px}.home .command-launch{height:76px;font-size:22px}.home .home-note{margin-top:8px}.command-menu{width:480px}.home .menu-fullscreen{height:40px;font-size:11px}}
body.reduced-motion .panel button{transition:none}
.sector-selectors{flex-wrap:wrap;max-width:900px;margin:auto}.sector-selectors .secondary{flex:0 0 65px}@media(max-width:650px){.sector-selectors .secondary{flex-basis:54px}}
