/* ZAHF command screens: real content flow, short actions, dimensional game art. */
#command-page{background:radial-gradient(ellipse at 95% 0,#34657955,transparent 46%),radial-gradient(ellipse at 0 100%,#29516a44,transparent 60%),#0a1e2e;isolation:isolate}
#command-page .command-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;padding:14px 24px;border:0;border-bottom:1px solid #c7a86255;background:linear-gradient(180deg,#1c3c50f5,#102a3df5);box-shadow:0 8px 24px #030e1970;z-index:3}
#command-page .command-header>div{min-width:0}
#command-page #page-kicker{font-size:11px;line-height:1.3;color:#82b2c2;margin:0 0 4px}
#command-page #page-title{font-size:clamp(20px,2.3vw,28px);line-height:1.3;color:#fff0c1;margin:0;overflow:visible;text-wrap:balance}
#command-page .nav-back{display:flex;gap:6px;align-items:center;justify-content:center;min-width:86px;min-height:48px;padding:8px 12px;background:linear-gradient(#2d5567,#173647);border:1px solid #73909a;border-bottom:4px solid #061724;border-radius:12px;white-space:nowrap;font-size:14px}
#command-page .nav-back img{width:25px;height:25px}
#command-page .command-resources{display:flex;align-items:center;gap:10px;flex:none}
#command-page .page-wallet,#command-page .treasury-wallet{position:relative;display:grid;grid-template-columns:28px minmax(40px,auto);grid-template-rows:25px 18px;align-items:center;column-gap:7px;min-width:108px;min-height:62px;width:auto;padding:8px 12px;background:linear-gradient(145deg,#315368,#17384c);border:1px solid #a78d56;border-bottom:4px solid #051825;border-radius:13px;box-shadow:inset 0 1px #a4d2dc33;color:#ffe8a0;flex:none}
#command-page .treasury-wallet{background:linear-gradient(145deg,#4c4834,#29392f);border-color:#c3a856}
#command-page .page-wallet img,#command-page .treasury-wallet img{width:28px;height:28px;object-fit:contain;grid-column:1;grid-row:1;filter:drop-shadow(0 2px 1px #0007)}
#command-page #page-gold,#command-page #page-treasury{grid-column:2;grid-row:1;font:800 21px/1.1 Arial,sans-serif;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
#command-page .wallet-caption{position:static;grid-row:2;grid-column:1/-1;display:block;width:auto;font:500 10px/1.8 'Baloo Game',sans-serif;color:#bad2d6;text-align:center;white-space:nowrap;margin:0}
#command-page .page-content{width:100%;max-width:1200px;min-height:0;margin:0 auto;padding:24px 28px 24px;overflow-y:auto;overflow-x:visible;flex:1;scrollbar-gutter:stable;scroll-padding-top:16px;scroll-behavior:smooth;box-sizing:border-box}
#command-page .page-content.page-arrival>*{animation:command-arrival .24s cubic-bezier(.2,.7,.2,1)}
@keyframes command-arrival{from{translate:0 12px}to{translate:0 0}}
#command-page .command-nav{position:relative;z-index:4;top:auto;bottom:auto;left:auto;right:auto;transform:none;align-self:center;flex:none;margin:0 auto max(12px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 28px);display:flex;flex-direction:row;justify-content:center;gap:26px;padding:8px 20px 9px;background:linear-gradient(#284b5beb,#0a2234f5);border:1px solid #b49b5e;border-top:2px solid #ddc482;border-radius:23px;box-shadow:0 6px 0 #030f1b,0 12px 32px #0009,inset 0 0 0 3px #071c2d88}
#command-page .command-nav button{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:84px;min-height:76px;padding:0;background:none!important;border:0;box-shadow:none;color:#a6c5cf;font-size:13px;line-height:1.2;white-space:nowrap;transition:translate .18s}
#command-page .command-nav button::before{content:'';position:absolute;z-index:-1;width:53px;height:53px;top:0;left:50%;transform:translateX(-50%);border:1px solid #7696a0;border-bottom:4px solid #031723;border-radius:50%;background:radial-gradient(circle at 35% 20%,#4a6a7c,#173447 67%);box-shadow:inset 0 0 0 4px #102c3e}
#command-page .command-nav button img{position:relative;width:50px;height:50px;object-fit:contain;margin-bottom:7px;filter:drop-shadow(0 3px 2px #03111e99)}
#command-page .command-nav button span{display:block;line-height:1.15}
#command-page .command-nav button.selected{color:#ffe49e;translate:0 -2px}
#command-page .command-nav button.selected::before{border-color:#efcf78;background:radial-gradient(circle at 35% 20%,#527a88,#1d4d61 65%);box-shadow:inset 0 0 0 4px #d8b65c33,0 0 20px #f3d48122}
#command-page .world-atlas{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
#command-page .atlas-world{position:relative;display:block;height:245px;min-height:0;padding:0;border:2px solid #b4a36c;border-bottom:6px solid #041521;border-radius:23px;background:#173d4b;box-shadow:0 8px 18px #010b1466;isolation:isolate}
#command-page .atlas-world>img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;border:0;transition:scale .24s}
#command-page .atlas-world>div{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:19px;background:linear-gradient(transparent 28%,#071a32d9 81%)}
#command-page .atlas-world h3{font-size:26px;line-height:1.25;margin:4px 0 9px;max-width:100%;color:#fff0bf;text-shadow:0 3px 3px #000a}
#command-page .atlas-world small{font-size:12px;line-height:1.4;color:#e8e1bc}
#command-page .atlas-world:active>img{scale:1.04}
#command-page .atlas-world[data-world=frost]{border-color:#99d1d8}
#command-page .atlas-world[data-world=volcanic]{border-color:#bb7753}
#command-page .atlas-world[data-world=rainforest]{border-color:#7da963}
#command-page .atlas-world[data-world=dusk]{border-color:#a5a1ca}
#command-page .world-stars{display:flex;gap:4px}
#command-page .world-stars img{width:26px;height:26px;object-fit:contain}
#command-page .world-stars .unearned{filter:saturate(.2) brightness(.5)}
#command-page .world-hero{height:clamp(180px,34vh,320px);max-width:900px;margin:0 auto 20px;border:2px solid #b7a46c;border-radius:22px;border-bottom:5px solid #041521;box-shadow:0 8px 25px #0004}
#command-page .world-stages{display:flex;justify-content:center;gap:32px;max-width:none;margin:26px auto 14px;padding-bottom:30px}
#command-page .stage-node{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:88px;height:88px;min-width:0;padding:0;gap:0;border:3px solid #b29c62;border-bottom:6px solid #081c29;border-radius:50%;background:radial-gradient(circle at 35% 20%,#42677a,#193b52 70%);box-shadow:0 6px 16px #0005,inset 0 0 0 4px #0e2d40}
#command-page .stage-node>b{font:800 28px/1 Arial,sans-serif;grid-row:auto;margin-top:-10px}
#command-page .stage-node img{position:absolute;width:28px;height:28px;bottom:3px;left:50%;transform:translateX(-50%);object-fit:contain}
#command-page .stage-node span{position:absolute;bottom:-29px;font-size:12px;line-height:1.5;white-space:nowrap}
#command-page .stage-node:disabled{opacity:.62}
#command-page .stage-node.completed{border-color:#e8c66c}
#command-page .world-action-row{justify-content:center;max-width:none;margin:20px auto 0}
#command-page .world-action-row .game-action{width:180px}
#command-page .page-note,#command-page .action-note{font-size:12px;line-height:1.5;margin:10px 0 18px;text-align:center;color:#91b9c6}
#command-page .shop-tabs{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;overflow:visible;margin:0 0 22px;padding:0}
#command-page .shop-tab{min-width:74px;min-height:42px;padding:9px 14px;border:1px solid #4b6c7b;border-bottom:3px solid #031724;border-radius:11px;background:linear-gradient(#24495e,#143249);font-size:13px;color:#9fc0c9}
#command-page .shop-tab.selected{color:#ffe9ad;border-color:#bca267;background:linear-gradient(#395866,#244456)}
#command-page .shop-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}
#command-page .shop-weapon{min-width:0;padding:10px 8px 14px;border:1px solid #7c949e;border-bottom:5px solid #041624;border-radius:19px;background:radial-gradient(ellipse at 50% 25%,#3e6378,#102e44 76%);box-shadow:0 6px 16px #0005;isolation:isolate}
#command-page .shop-weapon .weapon-role{align-self:flex-start;display:block;font-size:10px;line-height:1.4;color:#9fc5cd;padding:2px 7px;border-radius:6px;background:#09283d88}
#command-page .shop-weapon>img{width:100%;height:145px;object-fit:contain;margin:0;filter:drop-shadow(0 9px 4px #03142388)}
#command-page .shop-weapon h3{display:flex;align-items:center;justify-content:center;min-height:40px;margin:3px 0 9px;font-size:17px;line-height:1.2;text-wrap:balance;color:#fff0bf}
#command-page .price-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-height:30px;padding:3px 9px;margin:0;background:#071e2fa8;border:1px solid #a98e4f66;border-radius:10px;color:#ffe7a0;line-height:1}
#command-page .price-badge img{display:block;width:24px;height:24px;object-fit:contain;flex:none;margin:0}
#command-page .price-badge b{font:800 18px/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums}
#command-page .price-badge.unaffordable{border-color:#cc957766;color:#ecc0a2}
#command-page .weapon-detail{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:36px;max-width:980px;margin:0 auto;min-height:440px}
#command-page .weapon-turntable{height:390px;min-height:0;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 82%,#3993ab44,transparent 64%);overflow:visible}
#command-page .weapon-turntable img{width:100%;height:360px;max-height:none;object-fit:contain;filter:drop-shadow(0 15px 7px #020c1799)}
#command-page .weapon-turntable::after{width:65%;bottom:20px;height:21px;border:2px solid #b5c9aa77;box-shadow:0 0 25px #5bc3ce3b;background:#0a243ecc}
#command-page .weapon-spec{min-width:0}
#command-page .weapon-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 23px}
#command-page .weapon-stat{display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 5px;padding:12px 8px;border:1px solid #7b989b66;border-top:2px solid #bcaa6b;border-radius:13px;background:linear-gradient(#25495dbb,#102e43)}
#command-page .weapon-stat>img{grid-column:1;grid-row:1;width:25px;height:25px;object-fit:contain}
#command-page .weapon-stat dt{grid-column:2;grid-row:1;align-self:center;font-size:12px;line-height:1.3;color:#a4c3cc}
#command-page .weapon-stat dd{grid-column:1/-1;grid-row:2;display:flex;gap:4px;align-items:baseline;justify-content:center;margin:0;color:#ffe5a5;white-space:nowrap;direction:ltr}
#command-page .weapon-stat dd b{font:800 27px/1.1 Arial,sans-serif}
#command-page .weapon-stat dd small{font-size:11px;line-height:1.1;color:#b5cdd0}
#command-page .game-action{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;min-width:0;min-height:61px;padding:10px 15px;border:1px solid #80b8c3;border-top:2px solid #a7d8de;border-bottom:5px solid #031b2c;border-radius:14px;background:linear-gradient(#397a97,#20516c);box-shadow:inset 0 0 0 2px #b6ebef19,0 3px 9px #00101a66;color:#fff2cb;text-shadow:0 2px 1px #123b50;font:800 18px/1.2 'Baloo Game',sans-serif;white-space:nowrap;transition:translate .15s,filter .15s}
#command-page .game-action.gold{border-color:#e7ce83;border-bottom-color:#795019;background:linear-gradient(#e3ba50,#be8c2b);color:#fff8d9;text-shadow:0 2px #8e631f}
#command-page .game-action.quiet{min-height:48px;background:linear-gradient(#2e5265,#18374d);border-color:#5f8595;border-bottom-color:#041b2b;color:#b9d5d9;box-shadow:none;font-size:15px}
#command-page .game-action .action-art{width:31px;height:31px;object-fit:contain;flex:none}
#command-page .game-action .action-label{flex:none;line-height:1.2;white-space:nowrap}
#command-page .game-action .price-badge{margin-inline-start:auto;min-height:28px;padding:4px 7px;background:#6b4a1b55;border-color:#ffdf8d88;color:#fff2bf;text-shadow:none}
#command-page .game-action .price-badge img{width:23px;height:23px}
#command-page .game-action .price-badge b{font-size:18px}
#command-page .buy-weapon{width:100%;font-size:21px}
#command-page .game-action:active:not(:disabled){translate:0 3px;filter:brightness(1.1)}
#command-page .game-action:disabled{filter:saturate(.35);opacity:.6;cursor:not-allowed}
#command-page .page-explanation{margin:23px 0 0;border-top:1px solid #70929a44;padding:0;color:#9dbdc8;font-size:13px;line-height:1.7;max-width:900px}
#command-page .page-explanation summary{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;color:#b4cbd0;list-style:none;font-size:12px}
#command-page .page-explanation summary::-webkit-details-marker{display:none}
#command-page .page-explanation summary img{width:23px;height:23px;object-fit:contain}
#command-page .page-explanation[open] summary{color:#ffe09c}
#command-page .page-explanation p{margin:4px 0 12px;max-width:70ch;font-size:13px;line-height:1.75}
#command-page .section-label{font-size:21px;line-height:1.8;margin:24px 0 12px;color:#ffe2a1}
#command-page .base-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 20px}
#command-page .base-tower{min-width:0;padding:12px;border-radius:19px;border:1px solid #7c9699;border-bottom:5px solid #031726;background:radial-gradient(ellipse at 50% 35%,#375f72,#102e42 80%);box-shadow:0 5px 14px #0004}
#command-page .base-tower>img{width:100%;height:138px;object-fit:contain}
#command-page .base-tower h3{font-size:18px;line-height:1.8;min-height:34px;margin:5px 0 10px;color:#ffe9b2;text-wrap:balance}
#command-page .tower-vitality{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:10px;color:#94beca}
#command-page .tower-vitality b{font:700 11px/1.2 Arial,sans-serif;color:#b8dbca;white-space:nowrap;direction:ltr}
#command-page .base-controls{display:flex;gap:7px;align-items:stretch}
#command-page .base-controls .game-action{flex:1;gap:4px;min-height:44px;padding:7px 8px;font-size:13px;border-radius:10px}
#command-page .base-controls .action-art{width:21px;height:21px}
#command-page .add-defense{width:100%;max-width:350px;margin:0 auto}
#command-page .base-upgrades{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-width:none}
#command-page .upgrade-card{min-width:0;padding:13px;border:1px solid #82968d77;border-bottom:4px solid #031524;border-radius:16px;background:linear-gradient(145deg,#28495d,#132f42);box-shadow:inset 0 0 0 3px #070f1719}
#command-page .upgrade-heading{display:grid;grid-template-columns:43px minmax(0,1fr);gap:3px 7px;align-items:center}
#command-page .upgrade-heading>img{grid-row:1/3;width:43px;height:43px;object-fit:contain}
#command-page .upgrade-heading h4{font-size:17px;line-height:1.2;margin:0;color:#ffe8ad}
#command-page .upgrade-level{font:700 11px/1 Arial,sans-serif;direction:ltr;justify-self:start;color:#90b7c3}
#command-page .level-bars{display:flex;gap:5px;margin:15px 0}
#command-page .level-bars i{height:5px;flex:1;border-radius:3px;background:#041c2e;border:1px solid #69828a66}
#command-page .level-bars i.lit{background:linear-gradient(#f5dc8c,#c2943c);border-color:#ead18b}
#command-page .upgrade-foot{display:flex;justify-content:space-between;align-items:center;gap:6px}
#command-page .upgrade-foot .price-badge{padding:3px 5px;gap:3px;border:0;background:#0a2131}
#command-page .upgrade-foot .price-badge img{width:21px;height:21px}
#command-page .upgrade-foot .price-badge b{font-size:16px}
#command-page .upgrade-action{min-width:53px;min-height:40px;padding:7px 9px;border:1px solid #d2bb7b;border-bottom:4px solid #061927;border-radius:10px;background:linear-gradient(#54776e,#315658);color:#ffecb0;font:800 14px/1 'Baloo Game',sans-serif;white-space:nowrap}
#command-page .upgrade-action:disabled{background:#183344;border-color:#496270;color:#829ea6;cursor:not-allowed}
#command-page .upgrade-reason{font-size:10px;line-height:1.4;margin:9px 0 0;color:#bbac8f;text-align:right}
#command-page .supply-card{display:grid;grid-template-columns:58px minmax(130px,1fr) auto auto;align-items:center;gap:14px;margin-top:26px;padding:16px;border:1px solid #c2ab65;border-bottom:5px solid #071d2c;border-radius:18px;background:radial-gradient(ellipse at 10% 0,#9d865033,transparent 60%),#19384b}
#command-page .supply-card>img{width:58px;height:58px;object-fit:contain}
#command-page .supply-card h3{font-size:18px;line-height:1.8;min-height:33px;margin:0 0 3px;color:#ffe6a6}
#command-page .supply-card p{font-size:12px;line-height:1.4;margin:0;color:#98bdc6}
#command-page .supply-amount{font:800 26px/1.1 Arial,sans-serif;color:#e5e3a5;direction:ltr}
#command-page .supply-card .game-action{min-height:54px;min-width:190px;font-size:17px}
#command-page .supply-reason{grid-column:2/-1;color:#bca98a;font-size:11px;line-height:1.4}
#command-page button:focus-visible,#command-page summary:focus-visible{outline:3px solid #87e0e4;outline-offset:4px}
@media(max-width:1000px){#command-page .world-atlas{grid-template-columns:repeat(2,minmax(0,1fr))}#command-page .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#command-page .base-upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}#command-page .base-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#command-page .weapon-detail{gap:24px}#command-page .weapon-turntable{height:340px}#command-page .weapon-turntable img{height:310px}}
@media(max-width:600px){#command-page .command-header{grid-template-columns:75px minmax(0,1fr);gap:10px 14px;padding:12px 16px 11px}#command-page .nav-back{min-width:0;min-height:44px;padding:7px 9px;font-size:12px}#command-page .nav-back img{width:21px;height:21px}#command-page .command-resources{grid-column:1/-1;justify-content:space-between;gap:12px}#command-page .page-wallet,#command-page .treasury-wallet{grid-template-columns:27px minmax(36px,auto);grid-template-rows:23px 18px;min-width:110px;min-height:56px;max-width:46%;padding:6px 11px;border-radius:12px}#command-page #page-gold,#command-page #page-treasury{font-size:20px}#command-page .wallet-caption{font-size:10px}#command-page #page-kicker{font-size:10px;margin-bottom:2px}#command-page #page-title{font-size:21px}#command-page .page-content{padding:18px 16px 24px;scrollbar-gutter:auto}#command-page .command-nav{gap:19px;padding:8px 15px 9px;bottom:auto;margin-bottom:max(11px,env(safe-area-inset-bottom));border-radius:21px}#command-page .command-nav button{width:75px;min-height:73px;font-size:12px}#command-page .command-nav button::before{width:50px;height:50px}#command-page .command-nav button img{width:47px;height:47px}#command-page .world-atlas{grid-template-columns:1fr;gap:18px}#command-page .atlas-world{height:210px;border-radius:20px}#command-page .atlas-world>div{padding:16px}#command-page .atlas-world h3{font-size:26px}#command-page .world-hero{height:190px;min-height:0;margin-bottom:8px;border-radius:18px}#command-page .world-stages{gap:24px;margin-top:20px}#command-page .stage-node{width:78px;height:78px}#command-page .stage-node>b{font-size:25px}#command-page .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}#command-page .shop-tabs{gap:5px;margin-bottom:17px}#command-page .shop-tab{min-width:0;flex:1;padding:8px 7px;min-height:40px;font-size:12px}#command-page .shop-weapon{padding:8px 6px 11px;border-radius:16px}#command-page .shop-weapon>img{height:123px}#command-page .shop-weapon h3{font-size:15px;min-height:36px;margin:3px 0 8px}#command-page .shop-weapon .weapon-role{font-size:9px;padding:2px 5px}#command-page .price-badge{min-height:28px;padding:3px 8px}#command-page .price-badge img{width:22px;height:22px}#command-page .price-badge b{font-size:17px}#command-page .weapon-detail{grid-template-columns:1fr;gap:2px;min-height:0}#command-page .weapon-turntable{height:238px}#command-page .weapon-turntable img{height:226px}#command-page .weapon-turntable::after{bottom:13px;height:17px;width:58%}#command-page .weapon-stats{gap:8px;margin-bottom:18px}#command-page .weapon-stat{padding:10px 8px;grid-template-columns:25px minmax(0,1fr)}#command-page .weapon-stat dd b{font-size:25px}#command-page .game-action{min-height:59px;padding:10px 13px;gap:9px;font-size:18px}#command-page .buy-weapon{font-size:21px}#command-page .page-explanation{margin-top:16px}#command-page .base-grid{gap:12px}#command-page .base-tower{padding:9px;border-radius:16px}#command-page .base-tower>img{height:107px}#command-page .base-tower h3{font-size:15px;min-height:36px;display:flex;align-items:center;justify-content:center;margin:4px 0 10px}#command-page .base-controls{gap:5px}#command-page .base-controls .game-action{gap:3px;padding:6px 5px;min-height:42px;font-size:12px}#command-page .base-controls .action-art{width:18px;height:18px}#command-page .tower-vitality{font-size:9px}#command-page .tower-vitality b{font-size:9px}#command-page .base-upgrades{gap:12px}#command-page .upgrade-card{padding:11px}#command-page .upgrade-heading{grid-template-columns:39px minmax(0,1fr);gap:3px 4px}#command-page .upgrade-heading>img{width:39px;height:39px}#command-page .upgrade-heading h4{font-size:16px}#command-page .upgrade-foot{gap:4px}#command-page .upgrade-foot .price-badge b{font-size:15px}#command-page .upgrade-foot .price-badge img{width:20px;height:20px}#command-page .upgrade-action{min-width:48px;padding:6px 8px;font-size:13px}#command-page .supply-card{grid-template-columns:48px minmax(0,1fr) auto;gap:10px;padding:13px}#command-page .supply-card>img{width:48px;height:48px}#command-page .supply-card h3{font-size:16px;min-height:29px}#command-page .supply-card p{font-size:10px}#command-page .supply-card .game-action{grid-column:1/-1;width:100%;min-width:0;font-size:18px}#command-page .supply-amount{font-size:24px}#command-page .supply-reason{grid-column:1/-1}}
@media(max-width:350px){#command-page .command-header{padding-inline:13px;gap:8px 12px}#command-page #page-title{font-size:19px}#command-page .command-nav{gap:10px;padding-inline:12px}#command-page .command-nav button{width:72px}#command-page .page-content{padding-inline:13px}#command-page .weapon-stat{padding:9px 6px;column-gap:3px;grid-template-columns:22px minmax(0,1fr)}#command-page .weapon-stat>img{width:22px;height:22px}#command-page .weapon-stat dt{font-size:11px}#command-page .weapon-stat dd b{font-size:23px}#command-page .base-controls .game-action{font-size:11px;padding-inline:3px}#command-page .base-controls .action-art{width:16px;height:16px}#command-page .stage-node{width:70px;height:70px}#command-page .world-stages{gap:19px}#command-page .upgrade-card{padding:9px}#command-page .upgrade-heading{grid-template-columns:32px minmax(0,1fr);gap:3px}#command-page .upgrade-heading>img{width:32px;height:32px}#command-page .upgrade-heading h4{font-size:14px}}
@media(max-height:550px) and (min-width:601px){#command-page .command-header{grid-template-columns:73px minmax(0,1fr) auto;padding:7px 14px;gap:13px;min-height:65px}#command-page #page-title{font-size:20px}#command-page #page-kicker{font-size:9px;margin:0}#command-page .nav-back{min-width:0;min-height:43px;font-size:12px;padding:7px 9px}#command-page .command-resources{gap:7px}#command-page .page-wallet,#command-page .treasury-wallet{min-width:93px;min-height:49px;grid-template-columns:24px minmax(33px,auto);grid-template-rows:22px 18px;padding:5px 9px;column-gap:5px;border-radius:10px}#command-page .page-wallet img,#command-page .treasury-wallet img{width:24px;height:24px}#command-page #page-gold,#command-page #page-treasury{font-size:18px}#command-page .wallet-caption{font-size:10px;line-height:1.8}#command-page .command-nav{position:absolute;top:83px;bottom:14px;margin:0;left:12px;right:auto;transform:none;width:79px;max-width:none;flex-direction:column;justify-content:center;gap:7px;padding:8px 6px;border-radius:18px}#command-page .command-nav button{width:65px;min-height:68px;font-size:11px}#command-page .command-nav button::before{width:45px;height:45px}#command-page .command-nav button img{width:42px;height:42px;margin-bottom:6px}#command-page .page-content{max-width:none;padding:16px 20px 24px 116px}#command-page .world-atlas{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#command-page .atlas-world{height:190px}#command-page .atlas-world h3{font-size:22px}#command-page .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#command-page .shop-weapon>img{height:115px}#command-page .shop-weapon h3{font-size:15px;min-height:35px}#command-page .shop-tabs{margin-bottom:15px}#command-page .weapon-detail{grid-template-columns:.9fr 1.1fr;gap:22px;min-height:220px}#command-page .weapon-turntable{height:226px}#command-page .weapon-turntable img{height:217px}#command-page .weapon-turntable::after{bottom:8px}#command-page .weapon-stats{gap:7px;margin-bottom:14px}#command-page .weapon-stat{padding:9px 7px}#command-page .weapon-stat dd b{font-size:22px}#command-page .weapon-stat dt{font-size:11px}#command-page .game-action{min-height:53px;padding:8px 12px}#command-page .buy-weapon{font-size:18px}#command-page .page-explanation{margin-top:13px}#command-page .world-hero{height:180px}#command-page .base-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#command-page .base-upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}#command-page .supply-card{grid-template-columns:48px minmax(0,1fr) auto;gap:12px}#command-page .supply-card .game-action{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){#command-page .page-content.page-arrival>*{animation:none}#command-page button,#command-page .atlas-world>img{transition:none;scroll-behavior:auto}#command-page .page-content{scroll-behavior:auto}}

/* Art first: individual navigation emblems, without a second surrounding plate. */
#command-page .command-nav{background:none;border:0;border-radius:0;box-shadow:none;padding:6px 12px 8px;gap:clamp(20px,4vw,50px)}
#command-page .upgrade-heading{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
#command-page .upgrade-heading>img{width:100%;height:132px;object-fit:contain;filter:drop-shadow(0 8px 5px #03162188)}
#command-page .upgrade-heading h4{font-size:21px;line-height:1.35}
#command-page .upgrade-level{font-size:14px;line-height:1.2;justify-self:auto}
#command-page .upgrade-card{padding:16px;background:radial-gradient(ellipse at 50% 25%,#3d657077,transparent 65%),linear-gradient(#1c3d50,#102d40)}
#command-page .upgrade-action{min-height:44px;font-size:16px;min-width:66px}
#command-page .upgrade-foot .price-badge b{font-size:20px}
#command-page .upgrade-foot .price-badge img{width:24px;height:24px}
#command-page .upgrade-reason{text-align:center;font-size:12px;line-height:1.5}
@media(max-width:600px){
 #command-page .upgrade-heading>img{height:108px}
 #command-page .upgrade-heading h4{font-size:18px}
 #command-page .upgrade-card{padding:12px}
 #command-page .upgrade-action{min-width:58px;font-size:15px}
 #command-page .upgrade-foot .price-badge b{font-size:18px}
}

/* Floating arsenal pieces and scenic world entrances, with no repeated card shells. */
#command-page .shop-tabs{gap:clamp(8px,3vw,36px);margin-bottom:22px;flex-wrap:nowrap}
#command-page .shop-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;width:86px;padding:4px 2px 7px;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;color:#a6c4cd;font-size:14px}
#command-page .shop-tab img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 4px 3px #03121c99)}
#command-page .shop-tab.selected{color:#ffe5a2;border-color:#f2d37f;background:none}
#command-page .shop-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 22px}
#command-page .shop-weapon{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;padding:8px;background:none;border:0;border-radius:0;box-shadow:none}
#command-page .shop-weapon>img{width:100%;height:220px;object-fit:contain;filter:drop-shadow(0 12px 7px #020f1ba6)}
#command-page .shop-weapon h3{min-height:0;margin:0;font-size:21px;line-height:1.4}
#command-page .shop-weapon .price-badge{border:0;background:none;padding:4px;gap:6px}
#command-page .shop-weapon .price-badge img{width:27px;height:27px}
#command-page .shop-weapon .price-badge b{font-size:21px}
#command-page .shop-weapon:active>img{translate:0 3px}
#command-page .weapon-turntable{height:440px;background:none;border:0;box-shadow:none}
#command-page .weapon-turntable img{height:410px}
#command-page .weapon-turntable::after{display:none}
#command-page .weapon-stat{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:0;border-radius:0;background:none}
#command-page .weapon-stat>img{width:40px;height:40px}
#command-page .weapon-stat dt{font-size:14px}
#command-page .weapon-stat dd b{font-size:29px}
#command-page .page-explanation{border:0}
#command-page .world-atlas{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 22px}
#command-page .atlas-world{height:auto;aspect-ratio:.86;min-height:340px;max-height:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden}
#command-page .atlas-world>img{inset:0 0 60px;width:100%;height:calc(100% - 60px);object-fit:cover;object-position:center;mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%)}
#command-page .atlas-world>div{inset:auto 0 0;align-items:center;padding:0 4px;background:none}
#command-page .atlas-world small{display:none}
#command-page .atlas-world h3{font-size:27px;margin:0 0 8px;line-height:1.3}
#command-page .world-stars{gap:6px}
#command-page .world-stars img{width:30px;height:30px}
#command-page .world-hero{position:relative;height:clamp(360px,58dvh,600px);width:100%;max-width:1000px;margin:0 auto 12px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden}
#command-page .world-hero>img{display:block;width:100%;height:100%;object-fit:contain;mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 64%,transparent 100%)}
#command-page .world-hero .world-stages{position:absolute;inset:auto 0 32px;display:flex;justify-content:center;align-items:center;gap:clamp(22px,6vw,72px);margin:0;padding:0 10px;isolation:isolate}
#command-page .world-hero .world-stages::before{content:'';position:absolute;z-index:-1;top:50%;width:min(65%,300px);height:3px;background:#c7b779;box-shadow:0 2px 2px #061827}
#command-page .stage-node{width:78px;height:78px;flex:none}
#command-page .world-hero .stage-node span{text-shadow:0 2px 3px #000;font-size:14px;color:#fff0bf}
#command-page .world-action-row{margin:8px auto 0}
#command-page .world-action-row .game-action{min-height:44px;background:none;border:0;box-shadow:none}
@media(max-width:1000px){
 #command-page .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #command-page .shop-weapon>img{height:190px}
 #command-page .world-atlas{grid-template-columns:repeat(2,minmax(0,1fr))}
 #command-page .weapon-turntable{height:350px}#command-page .weapon-turntable img{height:330px}
}
@media(max-width:600px){
 #command-page .shop-tabs{gap:4px}
 #command-page .shop-tab{width:20%;font-size:12px}
 #command-page .shop-tab img{width:43px;height:43px}
 #command-page .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 10px}
 #command-page .shop-weapon{padding:2px}
 #command-page .shop-weapon>img{height:145px}
 #command-page .shop-weapon h3{font-size:17px}
 #command-page .shop-weapon .price-badge b{font-size:19px}
 #command-page .weapon-detail{gap:12px}
 #command-page .weapon-turntable{height:280px}#command-page .weapon-turntable img{height:270px}
 #command-page .weapon-stats{gap:4px;margin-bottom:12px}
 #command-page .world-atlas{grid-template-columns:1fr;gap:30px}
 #command-page .atlas-world{aspect-ratio:1;min-height:340px}
 #command-page .world-hero{height:390px;min-height:0}
 #command-page .stage-node{width:68px;height:68px}
 #command-page .world-hero .world-stages{gap:24px}
}
@media(max-height:550px) and (min-width:601px){
 #command-page .weapon-turntable{height:260px}#command-page .weapon-turntable img{height:250px}
 #command-page .world-hero{height:300px}
}
@media(prefers-reduced-motion:reduce){#command-page .shop-weapon>img{transition:none}#command-page .atlas-world:active>img{scale:1}}
/* Short landscape keeps the weapon art above the fold instead of spending it on rails. */
@media(max-height:550px) and (min-width:480px){
 #command-page:not([data-page=base]) .command-header{grid-template-columns:70px minmax(0,1fr) auto;gap:10px;padding:6px 12px;min-height:58px}
 #command-page:not([data-page=base]) #page-kicker{display:none}
 #command-page:not([data-page=base]) #page-title{font-size:21px}
 #command-page:not([data-page=base]) .nav-back{min-width:0;min-height:44px;padding:5px 7px;font-size:12px}
 #command-page:not([data-page=base]) .command-resources{grid-column:auto;gap:6px}
 #command-page:not([data-page=base]) :is(.page-wallet,.treasury-wallet){min-width:78px;max-width:none;min-height:44px;padding:4px 6px;grid-template-columns:22px minmax(28px,auto);grid-template-rows:20px 12px;column-gap:3px}
 #command-page:not([data-page=base]) :is(.page-wallet,.treasury-wallet) img{width:22px;height:22px}
 #command-page:not([data-page=base]) :is(#page-gold,#page-treasury){font-size:18px}
 #command-page:not([data-page=base]) .wallet-caption{font-size:9px;line-height:1.3}
 #command-page:not([data-page=base]) .page-content{padding:8px 16px 12px}
 #command-page:not([data-page=base]) .command-nav{margin-bottom:4px;padding:2px 8px;gap:22px}
 #command-page:not([data-page=base]) .command-nav button{width:68px;min-height:48px;font-size:11px}
 #command-page:not([data-page=base]) .command-nav button img{width:32px;height:32px;margin-bottom:4px}
 #command-page:not([data-page=base]) .command-nav button::before{width:35px;height:35px}
 #command-page .shop-tabs{margin-bottom:8px;gap:12px}
 #command-page .shop-tab{flex-direction:row;gap:5px;width:auto;min-height:36px;padding:2px 4px;font-size:12px}
 #command-page .shop-tab img{width:28px;height:28px}
}

/* Side navigation owns its column; it can no longer cover the end of the gallery. */
#command-page{display:grid;direction:ltr;grid-template-columns:90px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
#command-page[hidden]{display:none}
#command-page .command-header{grid-column:1/-1;grid-row:1;direction:rtl}
#command-page .page-content{grid-column:2;grid-row:2;direction:rtl;width:100%;max-width:1200px;min-width:0;min-height:0;padding-bottom:32px;overflow-x:hidden}
#command-page .command-nav,#command-page:not([data-page=base]) .command-nav{position:static;inset:auto;transform:none;grid-column:1;grid-row:2;direction:rtl;align-self:stretch;width:100%;height:100%;max-width:none;min-height:0;margin:0;padding:12px 4px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;border:0;background:none;box-shadow:none}
#command-page .command-nav button,#command-page:not([data-page=base]) .command-nav button{width:76px;min-height:78px;flex:none;font-size:13px}
#command-page .command-nav button img,#command-page:not([data-page=base]) .command-nav button img{width:52px;height:52px;margin-bottom:7px}
#command-page .command-nav button::before,#command-page:not([data-page=base]) .command-nav button::before{width:54px;height:54px}
/* Each world is shown whole. Browse sideways rather than clipping a second row. */
#command-page[data-page=worlds] .page-content{display:flex;flex-direction:column;overflow:hidden;max-width:none;padding:12px 12px 22px}
.world-browser{position:relative;flex:1;min-height:0;width:100%;min-width:0}
#command-page .world-atlas{display:flex;direction:rtl;align-items:stretch;width:100%;height:100%;gap:20px;margin:0;padding:0 38px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding:0 38px;box-sizing:border-box;overscroll-behavior-x:contain;touch-action:pan-x}
#command-page .world-atlas::-webkit-scrollbar{display:none}
#command-page .atlas-world{flex:0 0 calc((100% - 40px)/3);height:100%;min-height:0;max-height:none;aspect-ratio:auto;scroll-snap-align:center}
#command-page .atlas-world>img{height:calc(100% - 84px);inset:0 0 84px;object-fit:contain;object-position:center bottom;mask-image:none}
#command-page .atlas-world>div{height:78px;justify-content:flex-end}
#command-page .atlas-world h3{font-size:25px}
.world-browse-arrow{position:absolute;top:45%;width:38px;height:54px;min-height:44px;display:grid;place-items:center;padding:0;background:#102d40d9;border:1px solid #9eb1ab;border-radius:14px;color:#ffe8a4;z-index:2}
.world-browse-arrow::before{content:'';width:12px;height:12px;border-top:3px solid currentColor;border-right:3px solid currentColor;transform:rotate(45deg)}
.world-previous{right:0}.world-next{left:0}.world-next::before{transform:rotate(-135deg)}
.world-browse-arrow:focus-visible{outline:3px solid #ffe7aa;outline-offset:2px}
@media(max-width:1000px){#command-page .atlas-world{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:600px){
 #command-page{grid-template-columns:64px minmax(0,1fr)}
 #command-page .page-content{padding:14px 12px 28px}
 #command-page .command-nav,#command-page:not([data-page=base]) .command-nav{gap:20px;padding:8px 2px}
 #command-page .command-nav button,#command-page:not([data-page=base]) .command-nav button{width:60px;min-height:70px;font-size:11px}
 #command-page .command-nav button img,#command-page:not([data-page=base]) .command-nav button img{width:44px;height:44px}
 #command-page .command-nav button::before,#command-page:not([data-page=base]) .command-nav button::before{width:46px;height:46px}
 #command-page .atlas-world{flex-basis:100%}
 #command-page .atlas-world h3{font-size:21px}
 #command-page .world-atlas{padding-inline:26px;scroll-padding-inline:26px;gap:16px}
 #command-page[data-page=worlds] .page-content{padding:8px 6px 16px}
 .world-browse-arrow{width:28px;height:48px;border-radius:10px}
 #command-page .world-hero .world-stages{gap:10px;padding-inline:0}
 #command-page .stage-node{width:58px;height:58px}
 #command-page .world-hero{height:350px}
}
@media(max-height:550px) and (min-width:480px){
 #command-page{grid-template-columns:72px minmax(0,1fr)}
 #command-page .command-nav,#command-page:not([data-page=base]) .command-nav{gap:10px;padding:6px 2px}
 #command-page .command-nav button,#command-page:not([data-page=base]) .command-nav button{min-height:62px;width:66px;font-size:11px}
 #command-page .command-nav button img,#command-page:not([data-page=base]) .command-nav button img{width:42px;height:42px;margin-bottom:4px}
 #command-page .command-nav button::before,#command-page:not([data-page=base]) .command-nav button::before{width:44px;height:44px}
 #command-page .atlas-world{flex-basis:calc((100% - 20px)/2)}
 #command-page .atlas-world h3{font-size:18px;line-height:1.2;margin-bottom:4px}
 #command-page .atlas-world>img{height:calc(100% - 58px);bottom:58px}
 #command-page .atlas-world>div{height:54px}
 #command-page .world-stars img{width:23px;height:23px}
}
/* Center each complete scene and its name together, with no neighboring strip peeking in. */
#command-page .world-atlas{width:calc(100% - 76px);margin-inline:38px;padding:0;scroll-padding:0}
#command-page .atlas-world{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
#command-page .atlas-world>img{position:static;inset:auto;display:block;width:100%;height:auto;min-height:0;max-height:calc(100% - 86px);object-fit:contain;object-position:center;flex:0 1 auto}
#command-page .atlas-world>div{position:static;inset:auto;width:100%;height:78px;min-height:0;flex:none;justify-content:center;padding:0}
@media(max-width:600px){
 #command-page{grid-template-columns:56px minmax(0,1fr)}
 #command-page .command-nav button,#command-page:not([data-page=base]) .command-nav button{width:52px}
 #command-page .command-nav button img,#command-page:not([data-page=base]) .command-nav button img{width:42px;height:42px}
 #command-page .command-nav button::before,#command-page:not([data-page=base]) .command-nav button::before{width:44px;height:44px}
 #command-page .world-atlas{width:calc(100% - 16px);margin-inline:8px;padding:0;scroll-padding:0}
}
@media(max-height:550px) and (min-width:480px){
 #command-page{grid-template-columns:72px minmax(0,1fr)}
 #command-page .atlas-world>img{max-height:calc(100% - 62px)}
 #command-page .atlas-world>div{height:54px}
}
