/* The map is the game screen. Menus and controls live on top of it. */
:root{--canvas:#e2e7d9;--ink:#293e33;--paper:#fbfcf6;--edge:#bdcbb8;--accent:#3d7358}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--canvas)}
body{color:var(--ink);font-family:var(--font);overscroll-behavior:none}
.app-layout{position:fixed;inset:0;display:block;padding:0;margin:0;max-width:none}
main{height:100%;position:relative}
.battlefield{position:absolute;inset:0;border:0;border-radius:0;min-height:0;background:var(--canvas);overflow:hidden}
.battlefield:before{display:none}
#map{position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;aspect-ratio:auto}
.topbar.game-header{position:fixed;top:0;left:0;right:0;z-index:5;height:88px;background:transparent;border:0;padding:18px 24px;pointer-events:none;display:flex;justify-content:space-between;gap:20px}
.game-header>*{pointer-events:auto}
.game-header .brand{gap:10px;font-size:16px;letter-spacing:.6px;color:#2b4636}
.game-header .brand-mark{width:45px;height:45px}
.game-header .brand-name{line-height:1.14;font-weight:800}
.header-actions{gap:8px}.header-actions .icon-button{width:40px;height:40px;border-radius:11px;background:var(--paper);border-color:var(--edge);color:#4a6650}
.mute-slash{box-shadow:0 0 0 2px var(--paper)}
.wallet-button{display:flex;align-items:center;gap:8px;min-height:40px;padding:7px 14px;border:1px solid #cbbf8e;border-radius:11px;background:#fcf8e7;color:#766028;cursor:pointer}
.wallet-button svg,.victory-reward svg{width:23px;height:23px;fill:#eac86f;stroke:#a68127;stroke-width:1.4}
.wallet-button b{font-size:18px;font-variant-numeric:tabular-nums}.wallet-label{font-size:10px;color:#867440}
.session-badge{position:absolute;left:50%;top:23px;transform:translateX(-50%);text-align:center;display:grid;gap:4px;max-width:32%;pointer-events:none}
.session-badge>span{font-size:8px;letter-spacing:2px;font-weight:650;color:#74856b}.session-badge strong{font-size:16px;font-weight:650;letter-spacing:-.3px}
.mission-heading,.underboard,.map-topline,.map-legend,.sea-label,.compass{display:none}
.game-nav{position:fixed;left:24px;bottom:24px;display:flex;gap:9px;z-index:6}
.game-nav button{display:grid;justify-items:center;align-content:center;gap:7px;width:72px;height:72px;padding:8px 3px;border:1px solid var(--edge);border-radius:14px;color:#47634c;background:var(--paper);box-shadow:0 3px 0 #8eaa7d23}
.game-nav button>svg{width:24px;height:24px;stroke-width:1.5}.game-nav button>span{font-size:9px;font-weight:600;white-space:nowrap}
.game-nav button:hover:not(:disabled){background:#eaf0e1;border-color:#91ad82}
.start-card{position:absolute;left:50%;bottom:22px;top:auto;transform:translateX(-50%);width:410px;min-width:0;max-width:calc(100% - 32px);padding:17px 20px 13px;background:var(--paper);border:1px solid var(--edge);border-radius:16px;text-align:center;box-shadow:0 4px 0 #71896915;backdrop-filter:none;z-index:4}
.start-card .eyebrow{font-size:8px;letter-spacing:1.6px;color:#7b8b71}.start-card h2{font-size:25px;line-height:1.15;font-weight:750;letter-spacing:-.7px;margin:8px 0}
.start-card p{font-size:11px;line-height:1.5;color:#718067;margin:0 0 13px}
.launch-actions{display:flex;gap:9px}.launch-actions .primary-button{flex:1.2;width:auto}.launch-actions .secondary-button{flex:1}
.primary-button{background:#3e7756;border:1px solid #35674a;border-radius:9px;color:#fff;min-height:45px;font-size:13px;padding:12px 20px;box-shadow:0 3px 0 #284e35;gap:14px}
.primary-button:hover:not(:disabled){background:#34684a}.primary-button:active:not(:disabled){transform:translateY(1px);box-shadow:0 2px 0 #284e35}
.secondary-button{background:#edf2e6;border:1px solid #b7c9aa;border-radius:9px;color:#476339;min-height:43px;font-size:12px}
.start-card .primary-button{font-size:15px;font-weight:750;padding:12px}.victory-reward{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:#837445;margin-top:12px}.victory-reward svg{width:14px;height:14px}
.local-save-status{position:fixed;bottom:8px;right:22px;color:#75876e;font-size:8px;z-index:2}
.map-attribution{right:22px;bottom:23px;color:#809074;font-size:7px}.map-attribution a{text-decoration:underline;text-underline-offset:2px}
.map-zoom{position:absolute;right:24px;top:50%;transform:translateY(-50%);gap:7px}.map-zoom button{width:35px;height:35px;background:var(--paper);border-color:var(--edge);border-radius:9px;color:#557349}
.map-hint{display:none}
.battle-status{display:none}.command-deck{display:none}
body[data-screen="battle"] .game-nav{display:none}
body[data-screen="battle"] .battle-status{display:flex;position:absolute;z-index:3;top:86px;left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 48px));border:1px solid var(--edge);border-radius:12px;background:var(--paper);padding:10px 16px;gap:20px}
.battle-status .stat{min-width:95px}.stat>span{font-size:9px}.stat b{font-size:19px}.battle-status .balance{max-width:180px}.battle-status .clock-controls>span{font-size:15px}
body[data-screen="battle"] .command-deck{display:grid;position:absolute;z-index:4;left:50%;bottom:24px;transform:translateX(-50%);width:min(840px,calc(100% - 48px));border-radius:14px;background:#2e4938;border:1px solid #284631;padding:15px 18px;grid-template-columns:1.35fr .8fr 1fr;gap:18px;box-shadow:none}
.command-deck .selection-info strong{font-size:12px}.command-deck .selection-info small{font-size:9px;line-height:1.5}.command-deck .eyebrow{font-size:7px}.selection-symbol{display:grid;background:#3e5c45;border-color:#708a60}.segmented{background:#243c2d;border-color:#68825b}.segmented button{padding:8px 10px}.segmented button.active{background:#b8d29f;color:#29422b}.ability-buttons button{min-height:35px}.army-split,.abilities{padding-left:16px;border-color:#58704c}
body[data-screen="battle"] .map-hint{display:flex;left:50%;transform:translateX(-50%);bottom:128px;width:max-content;max-width:calc(100% - 40px);font-size:10px;text-align:center;background:#f9fbefde;border:1px solid #d0ddc6;border-radius:7px;padding:6px 10px;gap:6px;pointer-events:none}
.map-hint .hint-key{display:none}
.multiplayer-bar{position:fixed;top:68px;left:24px;right:24px;z-index:5;max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;font-size:9px;color:#657b59;gap:10px;pointer-events:none}
.multiplayer-bar #mp-bar-room{display:none}.multiplayer-bar .text-button{pointer-events:auto;font-size:10px;margin-left:auto;background:var(--paper);border:1px solid var(--edge);padding:6px 9px;border-radius:7px}
.paused-layer{position:absolute;inset:0;z-index:7;background:#dae3d0c9;backdrop-filter:none}.paused-layer .eyebrow{color:#637858}
.control-progress{top:153px;background:var(--paper);border-color:var(--edge);color:#536b44}
dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:32px;border:1px solid #bdceb0;border-radius:17px;background:var(--paper);box-shadow:0 12px 45px #31452b30}
dialog::backdrop{background:#22332063;backdrop-filter:none}.modal-close{background:#eff3e8;border-color:#cfdbc5;border-radius:9px;width:34px;height:34px}
.modal-title{font-size:27px;line-height:1.15;letter-spacing:-.7px;color:#2e4a31}.modal-eyebrow{font-size:8px;letter-spacing:1.8px;color:#758969}.modal-copy{font-size:12px;line-height:1.65;color:#6d7e62}
.modal-buttons{margin-top:20px}.result-stats{gap:25px}.series-score{list-style:none;padding:0;margin:15px 0;display:grid;gap:6px}.series-score li{display:flex;justify-content:space-between;gap:12px;background:#e9efdf;padding:10px 14px;border-radius:7px;font-size:12px}.series-score b{color:#4b7040}
#campaign-dialog .sidebar{border:0;padding:0;display:block;max-width:none;overflow:visible}#campaign-dialog .sidebar-heading{display:flex;padding-right:30px}#campaign-dialog .campaign-progress{display:flex;margin:20px 0}#campaign-dialog .sidebar h2{font-size:26px;letter-spacing:-.6px}
#campaign-dialog .map-list{display:grid;overflow:visible;gap:7px;max-width:none}#campaign-dialog .map-item{width:100%;min-width:0;padding:11px 13px;border:1px solid #d4dec9;background:#f4f7ed;border-radius:10px}#campaign-dialog .map-item.active{border-color:#9fb991;background:#e3edd7;box-shadow:inset 3px 0 #729763}#campaign-dialog .map-item strong{font-size:13px}#campaign-dialog .map-item small{font-size:10px}#campaign-dialog .map-status{display:block}#campaign-dialog .sidebar-note{display:none}
.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-right:25px}.shop-balance{color:#95752c;font-weight:700;font-size:20px;white-space:nowrap}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 15px}.cosmetic-card{padding:14px;border:1px solid #d1dec5;background:#f0f4e8;border-radius:12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.cosmetic-card.equipped{border-color:#73945d;background:#e4edd8}.cosmetic-card h3{font-size:14px;margin:0}.cosmetic-card p{font-size:10px;line-height:1.55;color:#77856a;margin:0;min-height:32px}.cosmetic-card button{margin-top:auto;width:100%;font-size:11px;min-height:37px;padding:9px 6px;box-shadow:none}.cosmetic-preview{display:grid;place-items:center;width:65px;height:65px;border-radius:50%;background:#4a7c5d;color:#faf6db;border:4px solid #c4d8b2;position:relative}.cosmetic-preview>svg{width:36px;height:36px;stroke-width:1.4}.cosmetic-preview[data-style="star"]{border-color:#d5c081}.cosmetic-preview[data-style="compass"]{border-color:#92b8c0}.cosmetic-preview[data-style="laurel"]{border-color:#a7c179}.cosmetic-preview[data-style="classic"]>svg{width:30px;height:30px}.profile-summary{display:flex;align-items:center;gap:18px;margin:22px 0}.profile-summary strong{font-size:22px;display:block}.profile-summary span{font-size:11px;color:#718269}.profile-stats{display:flex;gap:25px;border-top:1px solid #d8e1ce;border-bottom:1px solid #d8e1ce;padding:18px 0}.profile-stats b{font-size:24px;display:block}.profile-stats span{font-size:10px;color:#7c8c71}.reward-message{background:#eee5bd;border:1px solid #d5c58b;padding:8px 14px;border-radius:8px;color:#806725;display:inline-block;margin:8px 0;font-size:13px;font-weight:600}
.player-emblem{display:none;pointer-events:none;fill:none;stroke:#3f6346;stroke-width:1.8}.city-marker.owned .player-emblem{display:block}.city-marker.owned .city-base{stroke:var(--cosmetic-color,#f5f4e8)}
body[data-style="laurel"]{--cosmetic-color:#9fbe73}body[data-style="star"]{--cosmetic-color:#d6b766}body[data-style="compass"]{--cosmetic-color:#7eabb8}
#toast{bottom:145px;background:#e5eed7;color:#354f2b;border-color:#bccfa9;box-shadow:0 5px 18px #30472e22}
@media(min-width:1600px){.topbar.game-header{padding:22px 32px;height:96px}.game-nav{left:32px;bottom:32px}.start-card{bottom:30px}.game-header .brand{font-size:18px}.game-header .brand-mark{width:50px;height:50px}}
@media(max-width:1000px){.game-header .brand{font-size:13px}.game-header .brand-mark{width:39px;height:39px}.session-badge{max-width:28%}.session-badge strong{font-size:14px}.wallet-label{display:none}.game-nav{gap:6px;left:15px;bottom:20px;flex-direction:column}.game-nav button{width:58px;height:58px;border-radius:11px;gap:5px}.game-nav button>svg{width:20px;height:20px}.game-nav button>span{font-size:8px}.start-card{width:370px}.selection-symbol{display:none}}
@media(max-width:600px){.topbar.game-header{height:68px;padding:12px;gap:8px;align-items:flex-start}.game-header .brand{font-size:11px;gap:7px;letter-spacing:.5px}.game-header .brand-mark{width:34px;height:34px}.header-actions{gap:5px}.header-actions .icon-button{height:33px;width:31px;border-radius:8px}.header-actions #help-button{display:none}.wallet-button{min-height:33px;padding:5px 9px;gap:5px;border-radius:8px}.wallet-button svg{width:20px;height:20px}.wallet-button b{font-size:15px}.session-badge{top:78px;max-width:80%;width:80%;gap:5px}.session-badge strong{font-size:19px}.session-badge>span{font-size:7px;letter-spacing:1.5px}.start-card{bottom:calc(88px + env(safe-area-inset-bottom));width:calc(100% - 28px);max-width:390px;padding:15px 16px 11px;min-width:0;transform:translateX(-50%);top:auto;text-align:center;border-radius:15px}.start-card h2{font-size:23px;margin:7px 0}.start-card p{font-size:10px;margin:0 0 11px}.launch-actions{gap:8px}.start-card .primary-button{font-size:15px;min-height:45px}.launch-actions .secondary-button{font-size:12px}.victory-reward{font-size:9px;margin-top:10px}.game-nav{bottom:calc(17px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);flex-direction:row;gap:12px}.game-nav button{width:70px;height:57px;border-radius:11px}.game-nav button>span{font-size:8px}.game-nav button>svg{width:20px;height:20px}.local-save-status{display:none}.map-attribution{bottom:4px;right:7px;font-size:6px}.map-zoom{right:12px;top:42%;gap:6px}.map-zoom button{width:31px;height:31px}.city-marker .city-base{r:26px}.city-marker .troop-number{font-size:23px}.city-marker .island-name{font-size:16px;stroke-width:4}.player-emblem{transform:translate(0,-12px)}body[data-screen="battle"] .session-badge{display:none}body[data-screen="battle"] .battle-status{top:91px;width:calc(100% - 24px);padding:9px 11px;gap:10px;border-radius:10px}.battle-status .stat{min-width:63px;gap:5px}.stat b{font-size:16px}.stat>span{font-size:7px}.stat>svg{width:16px;height:16px}.clock-controls>span{font-size:13px!important;margin-right:0}.clock-controls .icon-button{width:26px;height:26px}.battle-status .balance{display:none}.multiplayer-bar{top:60px;left:12px;right:12px;font-size:8px}.multiplayer-bar .text-button{font-size:9px;padding:5px 7px}body[data-screen="battle"] .command-deck{bottom:calc(14px + env(safe-area-inset-bottom));width:calc(100% - 24px);padding:12px;grid-template-columns:1fr 1.1fr;gap:10px;border-radius:12px}.command-deck .selection-info{grid-column:1/-1;padding-bottom:9px;border-color:#57714c;gap:8px}.command-deck .selection-info strong{font-size:11px;margin:0 0 3px}.command-deck .selection-info small{font-size:8px}.command-deck .selection-symbol{display:none}.army-split{padding:0;border:0}.abilities{padding-left:12px}.segmented button{padding:7px 8px;font-size:11px}.ability-buttons button{min-height:34px;font-size:10px;padding:7px 5px}.select-all{font-size:8px;padding:7px 8px}body[data-screen="battle"] .map-hint{bottom:calc(169px + env(safe-area-inset-bottom));font-size:8px;padding:5px 8px;max-width:calc(100% - 28px)}.control-progress{top:153px;font-size:8px}dialog{padding:28px 20px;max-height:calc(100dvh - 24px)}.modal-title{font-size:25px}.modal-copy{font-size:11px}.shop-grid{gap:8px}.cosmetic-card{padding:12px 9px}.cosmetic-card h3{font-size:12px}.cosmetic-card p{font-size:9px}.cosmetic-preview{width:58px;height:58px}.cosmetic-card button{font-size:10px}.profile-stats{gap:18px}#toast{bottom:190px;font-size:11px}}
@media(max-height:520px) and (min-width:601px){.topbar.game-header{height:60px;padding:9px 16px}.game-header .brand-mark{width:36px;height:36px}.game-header .brand{font-size:12px}.session-badge{top:12px}.start-card{width:330px;padding:10px 15px;bottom:12px}.start-card h2{font-size:20px;margin:5px 0}.start-card p{display:none}.start-card .victory-reward{margin-top:7px}.game-nav{bottom:12px}.game-nav button{width:53px;height:53px}body[data-screen="battle"] .battle-status{top:60px;padding:6px 12px}body[data-screen="battle"] .command-deck{bottom:10px;padding:10px 14px}body[data-screen="battle"] .map-hint{display:none}.multiplayer-bar{top:52px}}

body[data-style="classic"] .player-emblem{display:none}body:not([data-style="classic"]) .city-marker.owned .type-glyph{visibility:hidden}
.generator-settings-link{border:0;background:none;padding:9px 8px 0;color:#617852;font:inherit;font-size:10px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.settings-field input[type="number"]{width:100%;box-sizing:border-box;border:1px solid #bfceb3;background:#f4f7ec;color:#334f37;border-radius:8px;padding:12px;font:inherit;font-size:14px}
#map[data-density="compact"] .city-base{r:16px}#map[data-density="compact"] .troop-number{font-size:16px}#map[data-density="compact"] .island-name{font-size:10px;transform:translateY(-8px)}#map[data-density="compact"] .region-name{display:none}#map[data-density="compact"] .type-glyph{transform:translate(0,-25px) scale(.7)}#map[data-density="compact"] .player-emblem{transform:translate(0,7px) scale(.8)}
.control-progress{max-width:calc(100% - 30px);flex-wrap:wrap;justify-content:center}
#map[data-generated="true"] .region-name{display:none}
/* Reserve a playable area so fixed controls cannot cover a city or its label. */
#map{top:88px;bottom:198px;height:calc(100% - 286px)}
body[data-screen="home"]:has(#generator-settings-button:not([hidden])) #map{bottom:235px;height:calc(100% - 323px)}
body[data-screen="battle"] #map{top:158px;bottom:145px;height:calc(100% - 303px)}
@media(max-width:600px){#map{top:128px;bottom:280px;height:calc(100% - 408px)}body[data-screen="battle"] #map{top:154px;bottom:187px;height:calc(100% - 341px)}}
@media(max-width:600px){body[data-screen="home"]:has(#generator-settings-button:not([hidden])) #map{bottom:300px;height:calc(100% - 428px)}}
@media(max-height:520px) and (min-width:601px){#map{top:61px;bottom:138px;height:calc(100% - 199px)}body[data-screen="battle"] #map{top:115px;bottom:104px;height:calc(100% - 219px)}}
@media(min-width:1200px){.game-nav button{width:76px}.game-nav{gap:8px}}
@media(min-width:601px) and (max-width:1199px){.game-nav{flex-direction:column;left:15px}.game-nav button{width:64px;height:57px}}
@media(max-width:600px){.game-nav{gap:7px}.game-nav button{width:65px}.game-nav button>span{font-size:7px}.start-card:has(#generator-settings-button:not([hidden])){padding-top:12px}.start-card:has(#generator-settings-button:not([hidden])) .victory-reward{margin-top:7px}}

/* Tactical controls share the same compact deck as the existing abilities. */
body[data-tactics="true"] .ability-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body[data-tactics="true"] .ability-buttons button{min-width:0;white-space:normal;line-height:1.2;padding:7px 5px;gap:4px}
body[data-tactics="true"] .ability-buttons button>svg{flex-shrink:0;width:14px;height:14px}
body[data-tactics="true"] .ability-buttons button>span{min-width:0;overflow-wrap:anywhere}
body[data-tactics="true"] .ability-buttons kbd{display:none}
.ability-buttons .has-offer{border-color:#d2b46a;background:#625636;color:#fff0bc}
.command-deck>div,.selection-info>div{min-width:0}.command-deck .selection-info strong,.command-deck .selection-info small{white-space:normal;overflow-wrap:break-word}
.rocket-site circle{fill:#fbf1d1;stroke:#b39148;stroke-width:1.5}.rocket-site use{fill:none;stroke:#846529;stroke-width:1.8}
.flying-rocket .rocket-body{fill:currentColor;stroke:#fff3ce;stroke-width:1}.flying-rocket .rocket-trail{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;opacity:.45}
.alliance-list{padding:0;list-style:none;display:grid;gap:9px;margin:20px 0}
.alliance-list>li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:13px;border:1px solid #cfdbc5;background:#eef3e7;border-radius:10px}
.alliance-army{display:flex;gap:9px;align-items:center;min-width:0;flex:1 1 155px}.alliance-army i{width:10px;height:10px;border-radius:50%;flex-shrink:0}.alliance-army strong{font-size:12px;display:block}.alliance-army small{display:block;font-size:10px;line-height:1.5;color:#6e8064;margin-top:4px}.alliance-actions{display:flex;flex-wrap:wrap;gap:6px}.alliance-actions button{padding:8px 10px;min-height:35px;font-size:10px;box-shadow:none}.alliance-actions button:disabled{opacity:.5}
@media(max-width:360px){.command-deck .segmented button{padding-left:6px;padding-right:6px}}
body[data-screen="battle"][data-tactics="true"] #map{bottom:185px;height:calc(100% - 343px)}
body[data-screen="battle"][data-tactics="true"] .map-hint{bottom:168px}
body[data-tactics="true"] #toast{bottom:194px}
@media(max-width:600px){body[data-screen="battle"][data-tactics="true"] #map{bottom:227px;height:calc(100% - 381px)}body[data-screen="battle"][data-tactics="true"] .map-hint{bottom:209px}body[data-tactics="true"] #toast{bottom:237px}.alliance-list>li{padding:11px}.abilities{min-width:0}}
@media(max-height:520px) and (min-width:481px){body[data-screen="battle"][data-tactics="true"] #map{bottom:144px;height:calc(100% - 259px)}body[data-tactics="true"] #toast{bottom:145px}}

/* Each header item reserves its own space; labels may wrap inside their buttons. */
.game-nav button{grid-template-columns:minmax(0,1fr);padding:6px 4px;gap:4px}
.game-nav button>span{min-width:0;max-width:100%;width:100%;white-space:normal;line-height:1.15;text-align:center}
@media(min-width:601px){
  .topbar.game-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center}
  .session-badge{position:static;left:auto;top:auto;transform:none;min-width:0;width:auto;max-width:none}
  .session-badge>span,.session-badge strong{min-width:0;max-width:100%;overflow-wrap:break-word}
  .session-badge>span{line-height:1.35}
  .header-actions{justify-self:end;flex-shrink:0}
}
@media(min-width:601px) and (max-width:1199px){.game-nav button>svg{width:20px;height:20px}}
@media(max-width:600px){.game-nav button>span{font-size:8px}}
/* Compact landscape keeps the preview above the launch controls. */
@media(max-height:520px) and (min-width:481px){
  .topbar.game-header{height:60px;padding:8px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}
  .game-header .brand{font-size:10px}.game-header .brand-mark{width:32px;height:32px}
  .session-badge{position:static;left:auto;top:auto;transform:none;min-width:0;width:auto;max-width:none;gap:3px}
  .session-badge strong{font-size:14px}.session-badge>span{font-size:7px;letter-spacing:1px;line-height:1.3;overflow-wrap:break-word}
  .header-actions{justify-self:end;gap:5px}.header-actions .icon-button{width:30px;height:30px}.wallet-button{min-height:30px;padding:5px 8px}.wallet-button b{font-size:15px}.wallet-label{display:none}
  .game-nav{left:14px;bottom:12px;transform:none;flex-direction:column;gap:4px}.game-nav button{width:62px;height:48px;gap:2px}.game-nav button>svg{width:18px;height:18px}.game-nav button>span{font-size:8px}
  .start-card,.start-card:has(#generator-settings-button:not([hidden])){bottom:12px;width:300px;padding:8px 12px}
  .start-card h2{font-size:18px;margin:4px 0 8px}.start-card p,.start-card .eyebrow,.start-card .victory-reward{display:none}
  .start-card .primary-button,.start-card .secondary-button{min-height:34px;padding:7px 10px;font-size:12px}.generator-settings-link{font-size:9px;padding:7px 6px 0}
  #map,body[data-screen="home"]:has(#generator-settings-button:not([hidden])) #map{top:62px;bottom:125px;height:calc(100% - 187px)}
  body[data-screen="battle"] .battle-status{top:60px;padding:6px 10px}
  body[data-screen="battle"] .command-deck{bottom:10px;padding:8px 12px;grid-template-columns:1.1fr .8fr 1fr;gap:8px}
  .command-deck .selection-info{grid-column:auto;padding-bottom:0}.command-deck .selection-info small{font-size:8px}
  body[data-screen="battle"] #map{top:115px;bottom:104px;height:calc(100% - 219px)}
  body[data-screen="battle"] .map-hint{display:none}.multiplayer-bar{top:52px}
}
