/* Fablekin's play surface: a viewport, a landscape and floating game windows. */
body.game-mode{--game-dock-height:190px;--game-dock-bottom:20px;--game-gutter:24px;--game-panel:#f3efd6;--game-ink:#243d3e;--game-edge:#244448;--game-gold:#eac47d;--game-shadow:0 4px 0 #152d33,0 0 0 2px #f5dda0,0 0 0 5px #244448,0 12px 24px #0a26374d;min-width:320px;width:100%;height:100dvh;overflow:hidden;background:#2c5452;color:#f6eed7}
body.game-mode #app{width:100%;height:100%;min-height:0;overflow:hidden;isolation:isolate}
body.game-mode .topbar,body.game-mode .footer{display:none}
body.game-mode .game-root,body.game-mode #app>.content{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;padding:0;margin:0;max-width:none}
body.game-mode button{touch-action:manipulation}

/* Narrow landscape gives conditions their own target between the HP cards. */
@media(min-width:480px) and (max-width:700px) and (max-height:500px){
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-heading>div:first-child{width:120px;max-width:120px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-heading>div:first-child:has([data-action=run-scout])>[data-action=battle-home]{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-heading .run-info-button{display:flex;flex-direction:column;justify-content:center;align-items:center;width:120px;min-width:120px;max-width:120px;min-height:44px;height:44px;padding:4px 6px;margin:0;border:1px solid #a8b999;background:#183c3fea;white-space:normal}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-field-strip{left:50%;right:auto;top:62px;bottom:auto;transform:translateX(-50%);width:min(148px,calc(100vw - 420px));max-width:none;min-height:44px;height:44px;padding:0;gap:0;display:flex;align-items:center}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-field-strip>span{display:none}
 body.game-mode[data-screen=battle][data-battle-format=singles] .battle-shell .battle-field-strip button{flex:1;min-width:0;width:100%;min-height:44px;height:44px;padding:4px 6px;font:600 11px/1.2 var(--body);white-space:normal}
}
body.game-mode button:focus-visible,body.game-mode input:focus-visible,body.game-mode select:focus-visible{outline:3px solid #ffe09b;outline-offset:3px}
body.game-mode .button{border-radius:2px;border:2px solid #314c48;box-shadow:0 3px 0 #142e31;min-height:42px;text-transform:none}
body.game-mode .button.primary{background:#edc780;color:#253d3e;border-color:#fbe3a9;box-shadow:0 3px 0 #8d6b3f,0 0 0 2px #314c48}
body.game-mode .button.subtle{background:#284b4b;color:#f5efd5;border-color:#8aa58e}
body.game-mode .icon-button{border-radius:2px}
body.game-mode .type-tag{border-radius:2px}

/* Root controls float over scenery, never consume a page row. */
.game-hud{position:fixed;z-index:30;left:var(--game-gutter);right:var(--game-gutter);top:max(17px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}
.game-hud>*{pointer-events:auto}
.game-hud__brand,.game-hud-brand{font:700 26px/1 var(--pixel);color:#fff0c7;text-shadow:2px 2px #244448;letter-spacing:1px}
.game-hud__brand small,.game-hud-brand small{display:block;margin-top:6px;font:600 8px var(--body);letter-spacing:2px;color:#e0e6c2}
.game-hud__tools,.game-hud-tools{display:flex;gap:8px;align-items:center}
.game-hud button,.game-hud .currency{min-height:38px;min-width:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#183c3fe8;border:1px solid #b3bc90;color:#f7e7be;box-shadow:0 3px 0 #153033;border-radius:2px;padding:7px 11px;font-size:11px}
.game-hud .icon{width:17px;height:17px}
.game-nav,.game-menu{position:fixed;z-index:35;right:var(--game-gutter);top:66px;display:flex;flex-direction:column;gap:4px;min-width:190px;background:#f3efd6;color:#243d3e;padding:13px;box-shadow:var(--game-shadow);border:2px solid #244448}
.game-nav button,.game-menu button{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;font:600 20px var(--pixel);color:#243d3e}
.game-nav button:hover,.game-menu button:hover{background:#e0d7ad}
.game-nav button .icon,.game-menu button .icon{width:17px;height:17px}

/* One landscape, edge to edge. */
body.game-mode .battle-shell{position:absolute;inset:0;width:100%;height:100dvh;max-width:none;padding:0;margin:0;overflow:hidden}
body.game-mode .battle-frame{position:absolute;inset:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
body.game-mode .battle-arena{position:absolute;inset:0;height:100%;width:100%;background:#6d9a8b;overflow:hidden}
body.game-mode #arena-canvas{position:absolute;inset:0;width:100%;height:100%}
body.game-mode .arena-canvas{width:100%;height:100%;image-rendering:pixelated}
body.game-mode .arena-grain{opacity:.14;z-index:1;background:repeating-linear-gradient(0deg,#153b3510 0,#153b3510 1px,transparent 1px,transparent 4px)}
body.game-mode .battle-heading{position:absolute;z-index:12;left:var(--game-gutter);right:var(--game-gutter);top:20px;margin:0;min-height:38px;pointer-events:none;gap:14px;color:#f6eed8;font:600 11px var(--body)}
body.game-mode .battle-heading>div{pointer-events:auto;gap:12px;background:#183c3fe8;padding:8px 11px;border:1px solid #afba91;box-shadow:0 3px 0 #123033;border-radius:2px;min-height:38px}
body.game-mode .battle-heading>div:last-child{margin-right:148px}
body.game-mode .battle-heading .text-button{font:600 12px var(--body);color:#f5eacb}
body.game-mode .battle-heading .divider,body.game-mode .battle-heading>div>span:not(.turn-chip){display:none}
body.game-mode .battle-heading .run-info-button{margin:0;padding:0 0 0 12px;border:0;border-left:1px solid #9faf8e65;background:none;color:#ffdc93;min-height:20px;font:600 11px var(--body)}
body.game-mode .battle-heading .run-info-button .icon{width:12px;height:12px;margin-left:4px}
body.game-mode .battle-heading .icon-button{width:24px;min-width:24px;height:23px;min-height:23px;border:0;padding:0;color:#f5eacb}
body.game-mode .battle-heading .speed{font-size:12px;color:#ffdc93}
body.game-mode .battle-heading .turn-chip{font:600 10px var(--body);letter-spacing:1px;color:#d8e5c8}
body.game-mode .health-plate{z-index:6;width:clamp(265px,28vw,410px);min-width:0;max-width:none;padding:15px 18px 13px;background:#f4f1da;color:#243d3e;border:3px solid #284649;border-radius:2px 14px 2px 14px;box-shadow:5px 5px 0 #1f414455,inset 0 -4px 0 #d8dec0;backdrop-filter:none}
body.game-mode .health-plate.enemy{left:var(--game-gutter);top:104px;border-left:3px solid #284649}
body.game-mode .health-plate.player{right:var(--game-gutter);bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 86px);border-left:3px solid #284649}
body.game-mode .plate-top{gap:14px;margin-bottom:10px}
body.game-mode .plate-top strong{font:600 clamp(24px,2.3vw,34px)/1 var(--pixel);letter-spacing:.2px}
body.game-mode .plate-top .level{font:600 12px var(--body);padding-top:3px}
body.game-mode .plate-top .level b{font:700 17px var(--body)}
body.game-mode .plate-types{margin-top:8px;gap:4px}
body.game-mode .plate-types .type-tag{font-size:8px;padding:3px 5px;border-width:1px;color:color-mix(in srgb,var(--type),#193738 50%);background:color-mix(in srgb,var(--type),#fff 75%)}
body.game-mode .health-row{gap:8px}
body.game-mode .health-row>span{font:700 12px var(--pixel);color:#b28a41}
body.game-mode .health-row .health-track{height:10px;border:2px solid #546c55;background:#c4cbb2;border-radius:3px}
body.game-mode .health-row .health-track>i{background:#7ebf78;box-shadow:inset 0 2px #c1e7a0}
body.game-mode .health-row .health-track>i.low{background:#e5b855;box-shadow:inset 0 2px #fce190}
body.game-mode .health-row .health-track>i.critical{background:#d96b55;box-shadow:inset 0 2px #ffb285}
body.game-mode .health-row small{min-width:65px;font:700 13px var(--body);color:#304942}
body.game-mode .health-plate .xp-track{margin-top:9px;margin-left:21px;height:4px;background:#c3cbbd}
body.game-mode .xp-track>i{background:#58aabe}
body.game-mode .wild-label{right:var(--game-gutter);top:104px;padding:7px 10px;font-size:9px;background:#1e4446df;box-shadow:0 3px 0 #16353a;border:1px solid #b7c199;color:#fff1cf}
body.game-mode .enemy-party{left:calc(var(--game-gutter) + 10px);top:237px;gap:7px}
body.game-mode .enemy-party .icon{width:20px;height:20px}
body.game-mode .battle-progress{top:0;bottom:auto;height:3px;z-index:8}

/* FireRed-like communication and command windows hover over the foreground. */
body.game-mode .battle-message{position:absolute;z-index:14;left:var(--game-gutter);bottom:var(--game-dock-bottom);width:calc(38% - var(--game-gutter) - 12px);height:var(--game-dock-height);min-height:0;display:flex;align-items:flex-start;gap:12px;padding:25px 24px;background:#24474c;color:#fff3d5;border:3px solid #314950;border-radius:2px;box-shadow:inset 0 0 0 3px #a9bba1,inset 0 0 0 6px #24474c,0 0 0 2px #f4d592,0 0 0 5px #244448,0 8px 0 #132e36c9}
body.game-mode .battle-message p{font:500 clamp(22px,2.1vw,30px)/1.28 var(--pixel);color:#fff5d9;flex:1;align-self:center;text-shadow:1px 2px #183a40;overflow-wrap:anywhere}
body.game-mode .message-diamond{color:#eecb84;font-size:18px;margin-top:4px}
body.game-mode .message-next{position:absolute;right:18px;bottom:13px;font-size:22px;color:#eecb84;line-height:1}
body.game-mode .action-area,body.game-mode .outcome-area{position:absolute;z-index:14;right:var(--game-gutter);bottom:var(--game-dock-bottom);width:calc(62% - var(--game-gutter) - 12px);height:var(--game-dock-height);min-height:0;max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain;background:#f3efd6;color:#243d3e;border:3px solid #314950;border-radius:2px;box-shadow:inset 0 0 0 2px #fff8dd,0 0 0 2px #f4d592,0 0 0 5px #244448,0 8px 0 #132e36c9;padding:14px 15px;gap:10px}
body.game-mode .command-area{display:grid;grid-template-columns:minmax(0,1fr) 178px;gap:9px 13px;padding:14px 15px 10px;background:#f3efd6}
body.game-mode .command-area .move-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0;min-height:0}
body.game-mode .command-area .move-button{position:relative;min-height:0;display:flex;align-items:center;gap:7px;border:1px solid #a8bba2;border-left:5px solid var(--type);background:#fffbe6;box-shadow:0 2px 0 #a5b598;color:#263f3f;border-radius:2px;padding:9px 10px;transform:none}
body.game-mode .command-area .move-button:hover:not(:disabled),body.game-mode .command-area .move-button:focus-visible{background:#e1e8ce;border-color:#506f5d;transform:translateY(-1px)}
body.game-mode .command-area .move-key{width:15px;height:16px;display:grid;place-items:center;flex-shrink:0;font:500 12px var(--pixel);border:0;background:none;color:#829277;padding:0}
body.game-mode .command-area .move-info{min-width:0}
body.game-mode .command-area .move-info strong{font:600 clamp(20px,1.7vw,26px)/1 var(--pixel);color:#263f3f;white-space:nowrap}
body.game-mode .command-area .move-info small{font-size:8px;gap:7px;color:#597055;margin-top:4px}
body.game-mode .command-area .move-info small>span{font:700 7px var(--body);letter-spacing:.3px;color:#6a8060}
body.game-mode .command-area .move-info small>b{font:700 9px var(--body);color:#4c6651}
body.game-mode .command-area .move-hint{font:500 8px/1.2 var(--body);margin-top:4px;color:#678160}
body.game-mode .command-area .move-hint.advantage{color:#39673c}
body.game-mode .command-area .risky .move-hint{color:#9d573e}
body.game-mode .command-area .move-pp{flex:0 0 27px;font:700 18px/1 var(--pixel);color:#526346}
body.game-mode .command-area .move-pp small{font:600 7px/1.2 var(--body);margin-top:4px;color:#77846b}
body.game-mode .command-area .action-menu{width:auto;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:7px;border-left:1px solid #a8b796;padding-left:12px}
body.game-mode .command-area .action-menu button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:0;padding:6px 5px;background:#e1e6c8;color:#334d42;border:1px solid #9eaf8b;border-radius:2px;font:600 15px var(--pixel);box-shadow:0 2px 0 #a6b58f}
body.game-mode .command-area .action-menu button:first-child{background:#e8cd91;border-color:#bca272;color:#514c34}
body.game-mode .command-area .action-menu button:hover:not(:disabled){background:#cbd8b2}
body.game-mode .command-area .action-menu .icon{width:17px;height:17px}
body.game-mode .command-area .action-menu small{display:none}
body.game-mode .command-area .action-menu b{font:700 8px var(--body);color:#5b664b;margin:0}
body.game-mode .command-area .forecast-note{grid-column:1/-1;font:500 8px/1.3 var(--body);color:#73816a;margin:0;text-align:center;display:block}
body.game-mode .battle-bottom{position:absolute;z-index:11;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 24px);left:var(--game-gutter);right:var(--game-gutter);margin:0;padding:0;display:flex;gap:12px;align-items:center;justify-content:space-between;pointer-events:none}
body.game-mode .battle-bottom>*{pointer-events:auto}
body.game-mode .battle-party{gap:6px}
body.game-mode .party-token{height:43px;width:45px;background:#21494ace;border:1px solid #b1bf95;border-radius:2px;box-shadow:0 3px 0 #19353b;overflow:visible;display:grid;place-items:center}
body.game-mode .party-token.active{background:#e8d69de6;border-color:#fff2b7;box-shadow:0 3px 0 #19353b,inset 0 0 0 1px #9c955d}
body.game-mode .party-token .sprite{width:42px;height:42px}
body.game-mode .party-token .mini-hp{left:3px;right:3px;bottom:3px;height:3px;background:#3d6053}
body.game-mode .battle-party>span{font:600 9px var(--body);color:#fff5d7;text-shadow:1px 1px #234347}
body.game-mode .battle-bottom>p{background:#234648e6;border:1px solid #a8b999;padding:7px 10px;border-radius:2px;font-size:10px;color:#f5eed2;box-shadow:0 3px 0 #153438}
body.game-mode .battle-bottom>p .icon{width:14px;height:14px}
body.game-mode .battle-bottom .shortcut-hint{display:none}
body.game-mode .battle-field-strip{position:absolute;z-index:11;right:var(--game-gutter);bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 81px);width:auto;max-width:48%;min-height:28px;padding:5px 8px;display:flex;gap:12px;justify-content:space-between;align-items:center;background:#21474adf;color:#e7efce;border:1px solid #9bb093;border-radius:2px;font-size:9px}
body.game-mode .battle-field-strip>span{font-size:9px;color:#e1e9cb}
body.game-mode .battle-field-strip button{font-size:9px;color:#f5d893;white-space:nowrap}
body.game-mode .waiting-area{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:13px}
body.game-mode .waiting{min-height:0;font:500 23px var(--pixel);color:#506b50;text-align:center;line-height:1.3;flex:none}
body.game-mode .loading-dots i{background:#84966b}
body.game-mode .battle-beats{margin:0;font-size:8px}
body.game-mode .capture-area,body.game-mode .tactical-switch,body.game-mode .action-area:has(.controls-heading){height:auto;min-height:var(--game-dock-height);max-height:min(65dvh,540px);display:flex;flex-direction:column;padding:17px;gap:12px}
body.game-mode .controls-heading{min-width:0;gap:10px}
body.game-mode .controls-heading strong{font:600 24px var(--pixel);color:#294641}
body.game-mode .controls-heading>div>span{font-size:9px;color:#6d8164}
body.game-mode .controls-heading .text-button{font-size:10px;white-space:nowrap;color:#6d6946}
body.game-mode .capture-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
body.game-mode .capture-card{min-width:0;padding:10px;gap:9px;background:#fffae3;border:1px solid #b6c2a2;border-radius:2px}
body.game-mode .capture-card strong{font:600 22px var(--pixel)}
body.game-mode .capture-card small{font-size:8px;color:#6a7c60}
body.game-mode .capture-card>b{font:600 22px var(--pixel)}
body.game-mode .capture-orb{width:31px;height:31px}
body.game-mode .capture-readiness{margin:0}
body.game-mode .capture-advice{font-size:10px;padding:10px;background:#e1e8ca;border:1px solid #b4c29d;color:#506b47}
body.game-mode .capture-advice.warning{background:#efe0bb;color:#866443}
body.game-mode .switch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.game-mode .switch-card{min-width:0;background:#fffae3;border:1px solid #aebc98;border-radius:2px;padding:8px}
body.game-mode .switch-card strong{font:600 21px var(--pixel)}
body.game-mode .switch-card small{font-size:9px}
body.game-mode .switch-note{font-size:9px;color:#6b7f60}

/* Other game screens are windows over the world, with internal scrolling. */
.game-backdrop,.game-world{position:fixed;inset:0;z-index:-2;background-position:center;background-size:cover;image-rendering:pixelated}
.game-backdrop:after,.game-world:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#143f3520,#183b3750)}
.game-window{position:absolute;z-index:10;inset:83px max(5vw,24px) 36px;width:auto;max-width:none;margin:0;background:#173e3eeF;border:3px solid #214344;border-radius:2px;box-shadow:inset 0 0 0 2px #9db798,0 0 0 2px #f2d495,0 0 0 5px #254347,0 15px 35px #132e3d77;overflow:hidden;display:flex;flex-direction:column;color:#f5efd5}
.game-window__heading,.game-window-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:16px 22px;border-bottom:2px solid #91aa8b;background:#244b49;color:#f7eed0}
.game-window__heading h1,.game-window-heading h1{font:600 32px/1 var(--pixel)}
.game-window__close,.game-window-close{display:inline-flex;align-items:center;gap:7px;color:#f0d598;font:600 12px var(--body);border:1px solid #8da58a;padding:7px 10px;border-radius:2px;background:#1b3c3d}
.game-window__body,.game-window-body{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;scrollbar-color:#99ad83 #1f4441;scrollbar-width:thin}
.game-window>.main-shell,.game-window>main,.game-window__body>.main-shell,.game-window-body>.main-shell{max-width:none;width:100%;margin:0;padding:0}
.game-window .page-heading{margin-bottom:22px}
.game-window .page-heading .eyebrow{font-size:9px}
.game-window .page-heading h1{font-size:31px}
.game-window .page-heading p{font-size:11px}
.game-window .frame{border-radius:2px;box-shadow:0 4px 0 #142f31;border:2px solid #91a788}
.game-window .dex-card,.game-window .roster-card,.game-window .challenge-card,.game-window .reserve-card,.game-window .learned-move{border-radius:2px}
.game-window .dex-grid{grid-template-columns:repeat(6,minmax(0,1fr));align-content:start}
.game-window .dex-card{padding:12px 6px 9px;background:#214542;border:1px solid #738e70;box-shadow:0 3px 0 #13312f}
.game-window .dex-card.selected{background:#43583e;border-color:#f3d591}
.game-window .dex-card .sprite{width:72px;height:72px}
.game-window .dex-card strong{font-size:20px}
.game-window .dex-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
.game-window .collection-toolbar{flex-wrap:wrap}
.game-window .detail-content{padding:19px}
.game-window .roster-layout{grid-template-columns:minmax(0,1fr) 320px}
.game-window .roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.game-window .roster-card{background:#214542;border:1px solid #718d6e;box-shadow:0 3px 0 #13312f}
.game-window .roster-card.selected{background:#43583e;border-color:#f3d591}
.game-window .challenge-art{height:185px}
.game-window .run-reward{border-radius:2px;background:#f2efd8;color:#304b3e;border:2px solid #d5c18a;box-shadow:0 4px 0 #102e30}
.game-window .run-reward .eyebrow{color:#7a7952}
.game-window .run-reward p{color:#697a5e}
.game-window .run-reward strong{font-size:29px}
.game-window .run-reward .reward-continue{color:#8a703f;border-color:#c4c9ab}
.game-window .run-clear-banner{border-radius:2px;min-height:105px}
.game-window .classic-build{border-radius:2px}
body.game-mode .modal-backdrop{position:fixed;z-index:80;background:#0b2635ad;backdrop-filter:none;padding:25px}
body.game-mode .modal{max-height:calc(100dvh - 50px);border:3px solid #26474b;border-radius:2px;box-shadow:inset 0 0 0 2px #96ae90,0 0 0 2px #f2d495,0 0 0 5px #254347,0 12px 40px #061f32b3;background:#1d4242;color:#f7efd6;overflow:auto;scrollbar-color:#a2b88f #183b3c}
body.game-mode .modal-heading{border-bottom:1px solid #7b987d;padding-bottom:15px}
body.game-mode .modal-heading h2{font:600 29px var(--pixel)}
body.game-mode #toast{z-index:100;bottom:max(30px,env(safe-area-inset-bottom));background:#f6edce;color:#284443;border:2px solid #2b4948;box-shadow:0 0 0 2px #e7c985,0 5px 0 #173236;border-radius:2px}

@media(min-width:1700px){body.game-mode{--game-dock-height:210px;--game-gutter:32px;--game-dock-bottom:26px}.game-window{inset:92px 7vw 42px}body.game-mode .command-area{grid-template-columns:minmax(0,1fr) 210px;padding:17px 19px 12px}body.game-mode .command-area .move-info strong{font-size:28px}body.game-mode .command-area .action-menu button{font-size:19px}body.game-mode .health-plate.enemy{top:120px}body.game-mode .wild-label{top:120px}}
@media(max-width:1100px) and (min-width:701px){body.game-mode{--game-dock-height:185px;--game-gutter:18px;--game-dock-bottom:16px}body.game-mode .battle-message{width:calc(34% - var(--game-gutter) - 10px);padding:20px 16px}body.game-mode .battle-message p{font-size:24px}body.game-mode .action-area,body.game-mode .outcome-area{width:calc(66% - var(--game-gutter) - 10px)}body.game-mode .command-area{grid-template-columns:minmax(0,1fr) 140px;padding:11px;gap:9px}body.game-mode .command-area .action-menu{padding-left:9px;gap:6px}body.game-mode .command-area .move-key{display:none}body.game-mode .command-area .move-info strong{font-size:21px}body.game-mode .command-area .move-hint{font-size:7px}.game-window{inset:78px 24px 25px}.game-window .dex-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.game-window .dex-layout{grid-template-columns:minmax(0,1fr) 260px}.game-window .roster-layout{grid-template-columns:minmax(0,1fr) 280px}.game-window .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Portrait uses the same arena and windows, rearranged around thumb reach. */
@media(max-width:700px) and (min-height:501px){body.game-mode{--game-dock-height:252px;--game-dock-bottom:14px;--game-gutter:13px}.game-hud{top:max(12px,env(safe-area-inset-top));gap:6px}.game-hud__brand,.game-hud-brand{font-size:21px}.game-hud__brand small,.game-hud-brand small{font-size:6px;letter-spacing:1px;margin-top:4px}.game-hud button,.game-hud .currency{min-width:32px;min-height:32px;padding:6px 8px;font-size:10px}.game-hud__tools,.game-hud-tools{gap:5px}.game-hud .icon{width:15px;height:15px}.game-nav,.game-menu{right:13px;top:55px;min-width:180px}body.game-mode .battle-heading{top:13px;left:13px;right:13px;align-items:flex-start;gap:7px}body.game-mode .battle-heading>div{padding:7px 8px;min-height:32px;gap:7px}body.game-mode .battle-heading>div:first-child{max-width:calc(100% - 100px);flex-wrap:wrap;gap:4px 7px}body.game-mode .battle-heading .text-button{font-size:9px}body.game-mode .battle-heading .text-button>.icon{width:12px;height:12px}body.game-mode .battle-heading .run-info-button{font-size:9px;padding-left:7px}body.game-mode .battle-heading .run-info-button>.icon{display:none}body.game-mode .battle-heading>div:last-child{position:absolute;left:0;top:41px;margin:0;padding:5px 7px;gap:9px;min-height:25px}body.game-mode .battle-heading .turn-chip{font-size:8px}body.game-mode .battle-heading .icon-button{width:18px;min-width:18px;height:18px;min-height:18px}body.game-mode .battle-heading .icon-button .icon{width:15px;height:15px}body.game-mode .health-plate{width:56%;padding:10px 10px 9px;border-width:2px;border-radius:2px 10px 2px 10px}body.game-mode .health-plate.enemy{top:107px;left:13px;border-left-width:2px}body.game-mode .health-plate.player{right:13px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 157px);border-left-width:2px}body.game-mode .plate-top{gap:5px;margin-bottom:7px}body.game-mode .plate-top strong{font-size:23px}body.game-mode .plate-top .level{font-size:9px;padding-top:2px}body.game-mode .plate-top .level b{font-size:12px}body.game-mode .plate-types{margin-top:5px}body.game-mode .plate-types .type-tag{font-size:6px;padding:3px 4px}body.game-mode .health-row{gap:4px}body.game-mode .health-row>span{font-size:9px}body.game-mode .health-row .health-track{height:7px;border-width:1px}body.game-mode .health-row small{font-size:9px;min-width:45px}body.game-mode .health-plate .xp-track{margin:6px 0 0 15px;height:3px}body.game-mode .wild-label{right:13px;top:190px;font-size:6px;padding:5px 7px;gap:4px}body.game-mode .wild-label .icon{width:10px;height:10px}body.game-mode .enemy-party{top:210px;left:18px;gap:4px}body.game-mode .enemy-party .icon{width:14px;height:14px}body.game-mode .battle-message{left:13px;right:13px;width:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 17px);height:72px;padding:15px 17px;gap:9px}body.game-mode .battle-message p{font-size:22px;line-height:1.1}body.game-mode .message-diamond{font-size:13px;margin-top:3px}body.game-mode .message-next{font-size:17px;bottom:7px;right:12px}body.game-mode .action-area,body.game-mode .outcome-area{left:13px;right:13px;width:auto;max-height:56dvh;padding:11px;height:var(--game-dock-height)}body.game-mode .command-area{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 48px 12px;gap:9px;padding:12px 11px 8px}body.game-mode .command-area .move-grid{gap:8px}body.game-mode .command-area .move-button{padding:8px;gap:6px;border-left-width:4px}body.game-mode .command-area .move-key{display:none}body.game-mode .command-area .move-info strong{font-size:22px}body.game-mode .command-area .move-info small{margin-top:4px;gap:4px;font-size:8px}body.game-mode .command-area .move-info small>span{font-size:6px;letter-spacing:0}body.game-mode .command-area .move-info small>b{font-size:8px}body.game-mode .command-area .move-hint{font-size:7px;line-height:1.15;margin-top:4px}body.game-mode .command-area .move-pp{font-size:17px;flex-basis:23px}body.game-mode .command-area .move-pp small{font-size:6px}body.game-mode .command-area .action-menu{grid-template-columns:repeat(4,1fr);gap:6px;padding:0;border:0}body.game-mode .command-area .action-menu button{padding:5px 3px;gap:3px;min-height:42px;font-size:13px;flex-direction:row;flex-wrap:wrap;align-content:center}body.game-mode .command-area .action-menu .icon{width:13px;height:13px}body.game-mode .command-area .action-menu b{width:100%;font-size:7px}body.game-mode .command-area .forecast-note{font-size:6px;line-height:1.2;align-self:center}body.game-mode .battle-bottom{left:13px;right:13px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 103px);gap:4px;flex-wrap:nowrap;align-items:center}body.game-mode .battle-party{gap:4px}body.game-mode .party-token{width:31px;height:32px}body.game-mode .party-token .sprite{width:30px;height:30px}body.game-mode .party-token .mini-hp{left:2px;right:2px;bottom:2px;height:2px}body.game-mode .battle-party>span{font-size:7px;margin-left:1px}body.game-mode .battle-bottom>p{font-size:7px;padding:5px 6px;gap:4px;max-width:132px;line-height:1.4;flex-wrap:wrap;justify-content:center}body.game-mode .battle-bottom>p .icon{width:10px;height:10px}body.game-mode .battle-bottom>p>span{margin:0 1px}body.game-mode .battle-field-strip{right:13px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 144px);max-width:55%;min-height:20px;padding:4px 6px;gap:5px}body.game-mode .battle-field-strip>span{display:none}body.game-mode .battle-field-strip button{font-size:7px}body.game-mode .waiting{font-size:21px;min-height:60px}body.game-mode .battle-beats{font-size:7px;gap:8px}body.game-mode .capture-area,body.game-mode .tactical-switch,body.game-mode .action-area:has(.controls-heading){min-height:var(--game-dock-height);height:auto;max-height:58dvh;padding:12px;gap:10px}body.game-mode .controls-heading strong{font-size:21px}body.game-mode .controls-heading>div>span{font-size:8px;line-height:1.4}body.game-mode .controls-heading .text-button{font-size:8px}body.game-mode .capture-options{grid-template-columns:1fr;gap:7px}body.game-mode .capture-card{padding:9px;gap:8px}body.game-mode .capture-card strong{font-size:21px}body.game-mode .capture-card small{font-size:7px}body.game-mode .capture-readiness{padding:9px;gap:6px}body.game-mode .capture-readiness>div>span{font-size:6px}body.game-mode .capture-readiness strong{font-size:17px}body.game-mode .capture-readiness small{font-size:6px}body.game-mode .capture-advice{font-size:8px;padding:8px}body.game-mode .switch-grid{grid-template-columns:1fr}body.game-mode .switch-card strong{font-size:21px}body.game-mode .switch-card small{font-size:8px}.game-window{inset:65px 13px 18px}.game-window__heading,.game-window-heading{padding:12px 13px;gap:7px}.game-window__heading h1,.game-window-heading h1{font-size:26px}.game-window__close,.game-window-close{font-size:10px;padding:6px 7px;white-space:nowrap}.game-window__body,.game-window-body{padding:14px}.game-window .page-heading{gap:10px;margin-bottom:16px;flex-wrap:wrap}.game-window .page-heading h1{font-size:25px}.game-window .page-heading p{font-size:10px}.game-window .page-heading .eyebrow{font-size:7px}.game-window .dex-layout,.game-window .roster-layout{grid-template-columns:1fr}.game-window .dex-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game-window .dex-card{padding:12px 4px 8px}.game-window .dex-card .sprite{width:62px;height:62px}.game-window .dex-card strong{font-size:17px}.game-window .dex-detail{position:static}.game-window .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-window .collection-toolbar{gap:8px;display:flex;flex-wrap:wrap}.game-window .collection-toolbar .segmented{width:100%;display:flex}.game-window .segmented button{flex:1;font-size:8px;padding:8px 5px}.game-window .collection-toolbar .search-box{flex:1;min-width:0}.game-window .collection-toolbar input{width:100%;min-width:0}.game-window .collection-toolbar select{min-width:90px;width:100px}.game-window .challenge-grid{grid-template-columns:1fr}.game-window .run-reward-grid{grid-template-columns:1fr}.game-window .run-reward{padding:16px}.game-window .run-reward strong{font-size:27px}.game-window .run-clear-banner{padding:15px;gap:10px}.game-window .run-prep-toolbar{flex-wrap:wrap;gap:8px}.game-window .run-prep-toolbar>span{width:100%}body.game-mode .modal-backdrop{padding:14px}body.game-mode .modal{max-height:calc(100dvh - 40px);padding:20px 15px}body.game-mode .modal-heading h2{font-size:26px}}

/* Short landscape screens keep the whole battle visible without document scrolling. */
@media(max-height:500px) and (min-width:480px){body.game-mode{--game-dock-height:130px;--game-dock-bottom:10px;--game-gutter:12px}.game-hud{top:10px}.game-hud button,.game-hud .currency{min-height:28px;min-width:28px;padding:5px 7px;font-size:9px}.game-hud__tools,.game-hud-tools{gap:5px}.game-hud .icon{width:14px;height:14px}.game-hud__brand,.game-hud-brand{font-size:21px}.game-hud__brand small,.game-hud-brand small{display:none}.game-nav,.game-menu{top:48px;right:12px;padding:8px;min-width:170px}.game-nav button,.game-menu button{padding:7px;font-size:18px}body.game-mode .battle-heading{top:10px;font-size:9px}body.game-mode .battle-heading>div{min-height:28px;padding:4px 7px;gap:8px}body.game-mode .battle-heading>div:last-child{margin-right:125px}body.game-mode .battle-heading .text-button{font-size:9px}body.game-mode .battle-heading .turn-chip{font-size:8px}body.game-mode .battle-heading .run-info-button{font-size:9px;padding-left:7px}body.game-mode .battle-heading .icon-button{height:18px;min-height:18px;width:20px;min-width:20px}body.game-mode .battle-heading .icon-button .icon{width:14px;height:14px}body.game-mode .health-plate{width:220px;padding:8px 10px 7px;border-width:2px;border-radius:2px 10px 2px 10px}body.game-mode .health-plate.enemy{top:59px;border-left-width:2px}body.game-mode .health-plate.player{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 58px);border-left-width:2px}body.game-mode .plate-top{margin-bottom:6px;gap:8px}body.game-mode .plate-top strong{font-size:22px}body.game-mode .plate-top .level{font-size:8px;padding-top:2px}body.game-mode .plate-top .level b{font-size:11px}body.game-mode .plate-types{margin-top:4px}body.game-mode .plate-types .type-tag{font-size:5px;padding:2px 4px}body.game-mode .health-row{gap:4px}body.game-mode .health-row>span{font-size:8px}body.game-mode .health-row .health-track{height:6px;border-width:1px}body.game-mode .health-row small{font-size:8px;min-width:42px}body.game-mode .health-plate .xp-track{margin-top:5px;margin-left:14px;height:3px}body.game-mode .wild-label{top:51px;font-size:6px;padding:5px 7px}body.game-mode .enemy-party{top:151px;left:20px;gap:4px}body.game-mode .enemy-party .icon{width:12px;height:12px}body.game-mode .battle-message{width:calc(34% - var(--game-gutter) - 9px);padding:16px 14px;gap:8px}body.game-mode .battle-message p{font-size:20px;line-height:1.2}body.game-mode .message-diamond{font-size:12px;margin-top:2px}body.game-mode .message-next{font-size:16px;bottom:7px;right:10px}body.game-mode .action-area,body.game-mode .outcome-area{width:calc(66% - var(--game-gutter) - 9px);padding:8px}body.game-mode .command-area{grid-template-columns:minmax(0,1fr) 120px;grid-template-rows:minmax(0,1fr) 9px;padding:9px 9px 6px;gap:6px 9px}body.game-mode .command-area .move-grid{gap:6px}body.game-mode .command-area .move-button{padding:5px 6px;gap:4px;border-left-width:3px}body.game-mode .command-area .move-key{display:none}body.game-mode .command-area .move-info strong{font-size:19px}body.game-mode .command-area .move-info small{margin-top:3px;gap:4px}body.game-mode .command-area .move-info small>span{font-size:5px}body.game-mode .command-area .move-info small>b{font-size:7px}body.game-mode .command-area .move-hint{font-size:6px;margin-top:2px}body.game-mode .command-area .move-pp{font-size:15px;flex-basis:20px}body.game-mode .command-area .move-pp small{font-size:5px;margin-top:3px}body.game-mode .command-area .action-menu{padding-left:8px;gap:5px}body.game-mode .command-area .action-menu button{font-size:12px;padding:4px 2px;gap:3px}body.game-mode .command-area .action-menu .icon{width:12px;height:12px}body.game-mode .command-area .action-menu b{font-size:6px}body.game-mode .command-area .forecast-note{font-size:6px;line-height:1}body.game-mode .battle-bottom{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 18px);gap:10px}body.game-mode .party-token{width:28px;height:29px}body.game-mode .party-token .sprite{width:28px;height:28px}body.game-mode .battle-party{gap:4px}body.game-mode .battle-party>span{font-size:7px}body.game-mode .battle-bottom>p{font-size:7px;padding:5px 6px;gap:4px}body.game-mode .battle-bottom>p .icon{width:11px;height:11px}body.game-mode .battle-field-strip{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 56px);padding:3px 6px;min-height:18px;gap:8px}body.game-mode .battle-field-strip>span,body.game-mode .battle-field-strip button{font-size:6px}body.game-mode .waiting{font-size:20px;min-height:0}body.game-mode .battle-beats{font-size:6px}body.game-mode .capture-area,body.game-mode .tactical-switch,body.game-mode .action-area:has(.controls-heading){min-height:var(--game-dock-height);max-height:calc(100dvh - 55px);padding:11px;gap:8px}body.game-mode .controls-heading strong{font-size:20px}body.game-mode .controls-heading>div>span{font-size:7px}body.game-mode .controls-heading .text-button{font-size:8px}body.game-mode .capture-readiness{padding:8px}body.game-mode .capture-readiness strong{font-size:16px}body.game-mode .capture-readiness>div>span,body.game-mode .capture-readiness small{font-size:6px}body.game-mode .capture-advice{font-size:8px;padding:7px}body.game-mode .capture-card{padding:7px;gap:7px}body.game-mode .capture-card strong{font-size:18px}body.game-mode .capture-card small{font-size:6px}.game-window{inset:52px 17px 16px}.game-window__heading,.game-window-heading{padding:10px 14px}.game-window__heading h1,.game-window-heading h1{font-size:24px}.game-window__body,.game-window-body{padding:14px}.game-window .page-heading h1{font-size:25px}.game-window .page-heading{margin-bottom:15px}.game-window .dex-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.game-window .dex-layout{grid-template-columns:minmax(0,1fr) 230px}.game-window .dex-card .sprite{width:50px;height:50px}.game-window .dex-card strong{font-size:16px}.game-window .roster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.game-mode .modal-backdrop{padding:16px}body.game-mode .modal{max-height:calc(100dvh - 36px)}}
@media(max-width:375px) and (min-height:501px){body.game-mode{--game-dock-height:244px}body.game-mode .health-plate{width:58%}body.game-mode .plate-top strong{font-size:21px}body.game-mode .command-area .move-info strong{font-size:20px}body.game-mode .command-area .move-button{padding:7px 6px}body.game-mode .command-area .move-info small>b{font-size:7px}body.game-mode .command-area .move-hint{font-size:6px}body.game-mode .command-area .action-menu button{font-size:12px}.game-window .dex-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-window .dex-card .sprite{width:55px;height:55px}.game-window .dex-card strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){body.game-mode .starter-art .sprite{animation:none}}

/* Home and selection keep the landscape as the play space. */
.game-hud__place{display:inline-flex;align-items:center;gap:9px;padding:9px 13px;background:#193e40e8;border:1px solid #a8b792;box-shadow:0 3px 0 #173237;border-radius:2px;color:#f6e9c5;font:600 12px var(--body)}
.game-hud__place .icon{color:#f2cd84;width:17px;height:17px}
.game-quickbar{position:fixed;z-index:24;right:var(--game-gutter);top:max(17px,env(safe-area-inset-top));display:flex;gap:7px;align-items:center}
.game-quickbar button{display:flex;align-items:center;gap:6px;min-height:38px;min-width:38px;padding:7px 10px;background:#193e40ed;border:1px solid #b2bf97;border-radius:2px;box-shadow:0 3px 0 #153236;color:#f5edce;font:600 10px var(--body)}
.game-quickbar .icon{width:16px;height:16px}
.title-screen,.camp-screen,.starter-screen{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;isolation:isolate}
.title-screen{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:50px 25px 30px}
.title-logo{position:relative;text-align:center;font:700 clamp(68px,9vw,128px)/.9 var(--pixel);letter-spacing:4px;color:#fff0b9;text-shadow:4px 5px #274649,-3px -3px #274649,3px -3px #274649,-3px 3px #274649,0 9px #143639;z-index:2}
.title-logo small{display:block;margin:21px 0 0;font:700 11px/1.5 var(--body);letter-spacing:5px;color:#f4e5b8;text-shadow:1px 2px #274649}
.title-cast{display:flex;justify-content:center;align-items:flex-end;gap:20px;height:225px;position:relative;z-index:1;margin:28px 0 14px}
.title-cast .sprite{width:210px;height:210px;filter:drop-shadow(0 9px #143a3c66)}
.title-cast .sprite:nth-child(2){width:245px;height:245px}
.title-actions{position:relative;z-index:2;display:flex;flex-direction:column;gap:15px;align-items:center;min-width:280px;padding:20px 34px;background:#224644ef;border:2px solid #2b494a;box-shadow:0 0 0 2px #edcf91,0 0 0 5px #284748,0 7px 0 #18383e;border-radius:2px}
.title-actions button{font:600 27px var(--pixel);color:#f8edce;padding:6px 17px;min-height:39px}
.title-actions button:first-child{color:#f7cf83}
.title-actions button:first-child:before{content:'▶';margin-right:12px;font:14px var(--pixel)}
.title-actions p,.title-actions small{font-size:9px;color:#bdcdb1;line-height:1.5}
.title-screen>.eyebrow{position:absolute;bottom:22px;left:20px;right:20px;text-align:center;color:#f6ebc8;font-size:8px}
.camp-companions{position:absolute;left:8%;right:8%;top:24%;bottom:calc(var(--game-dock-height) + 90px);display:flex;align-items:flex-end;justify-content:center;gap:4vw;pointer-events:none}
.camp-companions .sprite{width:clamp(150px,20vw,265px);height:clamp(150px,20vw,265px);filter:drop-shadow(0 10px #203e3355)}
.camp-companions .sprite:nth-child(even){margin-bottom:6vh;width:clamp(125px,17vw,210px);height:clamp(125px,17vw,210px)}
.camp-dialogue{position:absolute;left:var(--game-gutter);bottom:var(--game-dock-bottom);width:calc(52% - var(--game-gutter) - 12px);height:var(--game-dock-height);padding:27px 30px;background:#24474cef;border:3px solid #314950;border-radius:2px;box-shadow:inset 0 0 0 3px #a9bba1,inset 0 0 0 6px #24474c,0 0 0 2px #f4d592,0 0 0 5px #244448,0 8px 0 #132e36c9;display:flex;flex-direction:column;justify-content:center;gap:9px}
.camp-dialogue .eyebrow{font-size:9px;color:#eccc87;letter-spacing:2px}
.camp-dialogue h1,.camp-dialogue h2{font:600 clamp(28px,3vw,40px)/1.1 var(--pixel);color:#fff0cb}
.camp-dialogue p{font:500 23px/1.2 var(--pixel);color:#e1e7c9;max-width:600px}
.camp-commands{position:absolute;right:var(--game-gutter);bottom:var(--game-dock-bottom);width:calc(48% - var(--game-gutter) - 12px);height:var(--game-dock-height);padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#f3efd6;color:#284642;border:3px solid #314950;box-shadow:inset 0 0 0 2px #fff8dd,0 0 0 2px #f4d592,0 0 0 5px #244448,0 8px 0 #132e36c9;border-radius:2px}
.camp-commands button{font:600 clamp(23px,2.3vw,31px)/1.1 var(--pixel);text-align:left;display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #b9c2a0;border-radius:2px;background:#fffae3;color:#304b40;box-shadow:0 2px 0 #b2bc98;position:relative}
.camp-commands button:first-child{background:#e8d6a0;border-color:#c4b27a}
.camp-commands button:hover:not(:disabled){background:#dbe3bd}
.camp-commands button .icon{width:24px;height:24px;color:#697d55}
.camp-commands button span{flex:1}
.camp-commands button small{display:block;font:500 9px/1.5 var(--body);color:#7a8669;margin-top:5px}
.camp-commands button>kbd{font:11px var(--pixel);opacity:.45}
.game-overlay{position:absolute;z-index:40;inset:0;background:#103b383b;backdrop-filter:none}
.game-overlay .game-window{z-index:1}
.game-overlay .game-window__heading .eyebrow{font-size:8px;letter-spacing:1.5px;color:#edcf8c;margin-bottom:5px}
.game-window--wide{left:max(4vw,24px);right:max(4vw,24px)}
.starter-screen{display:flex;justify-content:center;align-items:center;padding:80px 28px 30px}
.starter-screen>.game-window{position:relative;inset:auto;width:min(100%,1010px);height:auto;max-height:calc(100dvh - 110px)}
.starter-screen .starter-grid{gap:16px;margin:20px 0}
.starter-screen .starter-card{background:#27504a;border:2px solid #8fa686;border-radius:2px;box-shadow:0 4px 0 #123434;padding:17px 15px}
.starter-screen .starter-card.selected{background:#425d43;border-color:#f1d28a;box-shadow:0 0 0 1px #f7e8b3,0 4px 0 #123434}
.starter-screen .starter-art{height:150px}
.starter-screen .starter-art .sprite{width:150px;height:150px;animation:none}
.starter-screen .starter-role{font-size:9px;line-height:1.5}
.starter-screen .starter-confirm{margin-top:12px;gap:13px}

/* Starter console: a creature index between a focused profile and six party slots. */
.starter-console{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(350px,1.9fr) minmax(210px,.75fr);gap:18px;min-height:0;height:100%;align-items:stretch}
.starter-console__detail{position:relative;min-width:0;display:flex;flex-direction:column;gap:12px;background:#224944;border:2px solid #829d7d;padding:17px;border-radius:2px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a3b68c #214740}
.starter-console__detail>.sprite{width:170px;height:170px;max-height:26vh;align-self:center;filter:drop-shadow(0 8px #13363366)}
.starter-console__detail h2{font:600 31px var(--pixel);color:#ffe4ad}
.starter-console__detail h3{font:600 23px var(--pixel);color:#f5edcf}
.starter-console__detail p{font-size:10px;line-height:1.6;color:#bccdb2}
.starter-console__detail .type-tag{font-size:7px}
.console-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;font-size:10px}
.console-stats>span,.console-stats>div{background:#173e39;padding:7px 8px;display:flex;align-items:center;justify-content:space-between;gap:5px;border:1px solid #56765c}
.console-stats b,.console-stats strong{color:#f3d396;font-size:12px}
.console-traits{display:flex;flex-direction:column;gap:9px;margin-top:auto}
.console-traits label{font-size:9px;color:#d3dcbf;display:flex;flex-direction:column;gap:5px}
.console-traits select{width:100%;min-width:0;border-radius:2px;border:1px solid #97aa80;color:#f4e8c5;background:#193f3a;padding:7px;font-size:10px}
.starter-console__grid{min-width:0;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-content:start;overflow:auto;scrollbar-width:thin;scrollbar-color:#a4b48a #1d413b;padding:3px 6px 6px 3px}
.console-species{min-width:0;position:relative;aspect-ratio:.86;border:1px solid #829977;background:#244c42;border-radius:2px;box-shadow:0 3px 0 #14332f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 2px 6px;color:#f6edcb}
.console-species:hover:not(:disabled){background:#3c6047;border-color:#ecd38c}
.console-species.selected,.console-species[aria-pressed=true]{background:#6f7750;border-color:#ffe2a3;box-shadow:0 0 0 2px #e7c98b,0 3px 0 #14332f}
.console-species.in-party:after{content:'●';position:absolute;right:5px;top:5px;font-size:7px;color:#f7d488}
.console-species .sprite{width:52px;height:52px;max-width:100%;image-rendering:pixelated}
.console-species strong,.console-species>span{font:500 15px/1.1 var(--pixel);display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.console-species small{font:600 7px var(--body);color:#d2d6ad}
.console-species .console-cost{position:absolute;top:4px;left:5px;background:#183f37;color:#f0d18e;border:1px solid #71875b;padding:2px 4px;font:600 8px var(--body)}
.console-species.locked{opacity:.45;background:#193b37;border-color:#57715c}
.starter-console__party{display:flex;min-width:0;min-height:0;flex-direction:column;gap:10px;background:#224944;border:2px solid #829d7d;border-radius:2px;padding:15px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a3b68c #214740}
.starter-console__party>h2,.starter-console__party>h3{font:600 25px var(--pixel);color:#f6e8be}
.console-party-slot{display:flex;align-items:center;gap:9px;padding:5px 8px;min-height:55px;background:#183e39;border:1px solid #78906d;border-radius:2px;color:#f3e9c8;text-align:left;min-width:0;position:relative}
.console-party-slot .sprite{width:42px;height:42px;flex-shrink:0}
.console-party-slot>span{flex:1;min-width:0}
.console-party-slot strong{display:block;font:600 20px var(--pixel)}
.console-party-slot small{font-size:8px;color:#a8bd99;display:block;margin-top:3px}
.console-party-slot.empty{opacity:.45;border-style:dashed;justify-content:center;font:24px var(--pixel)}
.console-party-slot .icon{width:13px;height:13px;color:#c2cfa5}
.console-budget{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding:11px 0 4px;font:600 11px var(--body);color:#c8d5b4;gap:8px}
.console-budget strong{font:600 26px var(--pixel);color:#f2d391}
.console-launch{width:100%;flex-shrink:0;min-height:45px;background:#efcf8b;border:2px solid #fff0bd!important;border-radius:2px!important;color:#28413d;font:600 23px var(--pixel);box-shadow:0 3px 0 #856b3f}
.habitat-console{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;min-height:0;height:100%}
.habitat-console__list{display:flex;flex-direction:column;gap:9px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a3b68c #214740;padding:3px 4px 6px 3px}
.habitat-console__list .habitat-option{border-radius:2px;min-height:75px;margin:0;padding:11px;border:1px solid #7e9977;background:#21463e}
.habitat-console__list .habitat-option.active{background:#5b6542;border-color:#f2d18b;box-shadow:0 0 0 1px #e1c382}
.habitat-console__list .habitat-thumb{width:58px;height:49px;border-radius:2px}
.habitat-console__list .habitat-option strong{font:600 23px var(--pixel)}
.habitat-console__list .habitat-option small{font-size:8px;color:#afc4a0}
.habitat-console__preview{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;border:2px solid #8ca281;box-shadow:0 4px 0 #183431;border-radius:2px;overflow:hidden;background:#21463e}
.habitat-console__preview [data-scene]{min-height:200px;flex:1;background-size:cover;background-position:center;image-rendering:pixelated;position:relative;padding:22px}
.habitat-console__preview h2{font:600 40px var(--pixel);color:#fff0c7;text-shadow:2px 3px #24473f}
.habitat-console__preview p{font-size:11px;line-height:1.6;color:#cfddbb}
.habitat-console__preview>.habitat-info,.habitat-console__preview>footer{padding:21px;display:flex;gap:16px;align-items:center;justify-content:space-between;background:#21443d}
.habitat-console__preview>.habitat-info>div{flex:1}
.habitat-console__preview .guardian-preview{padding:15px 20px;background:#163d36;border:0;border-top:1px solid #74916e;border-radius:0;display:flex;gap:15px;align-items:center}
.habitat-console__preview .guardian-preview .sprite{width:62px;height:62px}

/* Rewards are a compact floating game menu; the arena remains visible behind it. */
.game-loot{position:absolute;z-index:32;width:min(700px,calc(100% - 60px));right:var(--game-gutter);top:90px;bottom:calc(var(--game-dock-bottom) + 15px);display:flex;flex-direction:column;min-height:0;background:#f2eed4;color:#2c453e;border:3px solid #29474b;box-shadow:inset 0 0 0 2px #fff8dc,0 0 0 2px #eed08e,0 0 0 5px #29464a,0 12px 35px #0d2c3f66;border-radius:2px;padding:21px 23px;overflow:auto;scrollbar-width:thin;scrollbar-color:#9aab83 #e6e3c9}
.game-loot h1,.game-loot h2{font:600 35px/1.05 var(--pixel);color:#2d4941}
.game-loot>.eyebrow,.game-loot header .eyebrow{font-size:9px;color:#8b784c;letter-spacing:1.5px}
.game-loot header p,.game-loot>p{font:500 12px/1.5 var(--body);color:#788367;margin-top:8px}
.game-loot .loot-summary{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #bdc5a6;margin:0 0 12px;font-size:10px;color:#65785a}
.game-loot .loot-summary .sprite{width:52px;height:52px}
.game-loot .loot-summary strong{font:600 25px var(--pixel);color:#35503d}
.game-loot .loot-summary small{display:block;font-size:9px;margin-top:4px}
.game-loot-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:13px 0}
.game-loot-tools button{border:1px solid #a5b291;border-radius:2px;background:#e2e5c8;color:#4a624c;min-height:35px;padding:7px 11px;font:600 10px var(--body);display:flex;align-items:center;gap:6px}
.game-loot-tools button .icon{width:15px;height:15px}
.game-loot-tools>span{margin-left:auto;font:700 11px var(--body);color:#94774b}
.game-loot .run-reward-grid,.game-loot .loot-choices{display:flex;flex-direction:column;gap:10px;margin:0}
.game-loot .loot-choice.run-reward{min-height:88px;display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:13px;text-align:left;padding:13px 15px;border:1px solid #a5b494;border-radius:2px;background:#fffae2;box-shadow:0 3px 0 #b5bda0;transition:background .1s,transform .1s;color:#3b563f}
.game-loot .loot-choice.run-reward:hover{background:#e1e9c8;border-color:#6b8764;transform:translateX(-3px)}
.game-loot .loot-choice .run-reward-icon{width:38px;height:38px;display:grid;place-items:center;grid-row:1;grid-column:1;background:#e0e7c7;color:#6b7c50;border:1px solid #bfcaab;border-radius:2px}
.game-loot .loot-choice .run-reward-icon .icon{width:24px;height:24px}
.game-loot .loot-choice strong{font:600 27px/1 var(--pixel);display:block;color:#35503e;grid-column:2}
.game-loot .loot-choice p{font-size:10px;line-height:1.5;color:#738063;margin:6px 0 0;max-width:none;grid-column:2}
.game-loot .loot-choice .eyebrow{font-size:7px;letter-spacing:.5px;color:#8c7b4d;margin-bottom:5px;grid-column:2}
.game-loot .loot-choice>span:not(.run-reward-icon){grid-column:2;min-width:0}
.game-loot .loot-choice>.icon{grid-column:3;width:16px;height:16px;color:#84916d}
.game-loot .loot-choice .reward-continue{display:none}
.game-loot .reroll-rewards{margin-top:13px;align-self:flex-end;background:#e3e6ca;color:#4c654a;border-color:#a9b795;min-height:35px;font-size:10px}
.game-loot footer,.game-loot .loot-footer{margin-top:auto;padding-top:15px;font-size:9px;color:#819070;display:flex;gap:15px;justify-content:space-between}
.game-loot .wave-path{gap:6px;margin:16px 0;justify-content:space-between}
.game-loot .wave-path>span{background:#dee5c8;border-color:#adb994;color:#798b68;width:26px;height:26px;font-size:10px}
.game-loot .wave-path>.current{background:#d8ba78;color:#344c3a;border-color:#a08651}

@media(max-width:1100px) and (min-width:701px){.starter-console{grid-template-columns:210px minmax(250px,1.6fr) 190px;gap:12px}.starter-console__detail{padding:12px}.starter-console__detail>.sprite{width:130px;height:130px}.starter-console__detail h2{font-size:28px}.starter-console__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.starter-console__party{padding:11px;gap:8px}.console-party-slot{padding:4px 5px;gap:5px;min-height:48px}.console-party-slot .sprite{width:35px;height:35px}.console-party-slot strong{font-size:18px}.console-species .sprite{width:46px;height:46px}.console-species strong,.console-species>span{font-size:14px}.habitat-console{grid-template-columns:240px minmax(0,1fr);gap:14px}.habitat-console__list .habitat-option strong{font-size:20px}.habitat-console__preview .guardian-preview{gap:9px}.camp-commands{padding:16px}.camp-commands button{padding:10px;gap:7px}.camp-dialogue{padding:23px}.game-loot{width:min(650px,calc(100% - 70px));top:79px;padding:18px 20px}}
@media(max-width:700px) and (min-height:501px){.game-hud__place{padding:7px 9px;font-size:10px;gap:7px;min-height:32px}.game-hud__place .icon{width:14px;height:14px}.game-quickbar{top:max(12px,env(safe-area-inset-top));right:13px;gap:5px}.game-quickbar button{min-width:32px;min-height:32px;padding:7px;font-size:0;gap:0}.game-quickbar .icon{width:16px;height:16px}.title-screen{padding:55px 20px 30px}.title-logo{font-size:62px;letter-spacing:2px;text-shadow:3px 4px #274649,-2px -2px #274649,2px -2px #274649,-2px 2px #274649,0 7px #143639}.title-logo small{font-size:7px;letter-spacing:3px;margin-top:15px}.title-cast{gap:0;height:185px;margin-top:32px;margin-bottom:20px}.title-cast .sprite{width:120px;height:150px}.title-cast .sprite:nth-child(2){width:150px;height:185px;margin-left:-20px;margin-right:-20px}.title-actions{min-width:240px;padding:17px 25px;gap:12px}.title-actions button{font-size:25px}.title-screen>.eyebrow{font-size:6px;letter-spacing:1px;bottom:20px}.camp-companions{left:4%;right:4%;top:20%;bottom:370px;gap:0}.camp-companions .sprite{width:145px;height:175px}.camp-companions .sprite:nth-child(even){width:125px;height:150px;margin-bottom:60px;margin-left:-25px;margin-right:-25px}.camp-dialogue{left:13px;right:13px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 17px);width:auto;height:119px;padding:18px 20px;gap:6px}.camp-dialogue h1,.camp-dialogue h2{font-size:29px}.camp-dialogue .eyebrow{font-size:7px;letter-spacing:1.2px}.camp-dialogue p{font-size:19px;line-height:1.1}.camp-commands{left:13px;right:13px;bottom:var(--game-dock-bottom);width:auto;height:var(--game-dock-height);padding:15px;gap:10px}.camp-commands button{font-size:25px;gap:9px;padding:10px}.camp-commands button .icon{width:21px;height:21px}.camp-commands button small{font-size:8px}.camp-commands button>kbd{display:none}.starter-screen{padding:65px 13px 20px}.starter-screen>.game-window{max-height:calc(100dvh - 90px)}.starter-screen .starter-grid{gap:8px;margin:15px 0}.starter-screen .starter-card{padding:12px 6px}.starter-screen .starter-art{height:100px}.starter-screen .starter-art .sprite{width:100px;height:100px}.starter-screen .starter-name{font-size:21px}.starter-screen .starter-role{font-size:7px}.starter-screen .starter-number{top:9px;left:8px;font-size:12px}.starter-screen .starter-check{top:9px;right:8px}.starter-screen .starter-confirm p{font-size:10px}.starter-console{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto minmax(170px,1fr);height:auto;gap:11px;overflow:visible}.starter-console__detail{grid-column:1;grid-row:1;padding:11px;gap:8px;max-height:370px;overflow:auto}.starter-console__detail>.sprite{width:96px;height:96px;max-height:none}.starter-console__detail h2{font-size:24px}.starter-console__detail h3{font-size:20px}.starter-console__detail p{font-size:8px;line-height:1.4}.starter-console__detail .type-tag{font-size:5px;padding:3px 4px}.console-stats{gap:4px;font-size:7px}.console-stats>span,.console-stats>div{padding:5px;gap:3px}.console-stats b,.console-stats strong{font-size:9px}.console-traits{gap:6px}.console-traits label{font-size:7px}.console-traits select{font-size:8px;padding:5px}.starter-console__party{grid-column:2;grid-row:1;padding:10px;gap:6px;max-height:370px;overflow:auto}.starter-console__party>h2,.starter-console__party>h3{font-size:20px}.console-party-slot{min-height:32px;padding:3px 4px;gap:5px}.console-party-slot .sprite{width:28px;height:28px}.console-party-slot strong{font-size:16px}.console-party-slot small{font-size:6px;margin-top:1px}.console-party-slot.empty{font-size:20px;min-height:28px}.console-party-slot .icon{width:10px;height:10px}.console-budget{font-size:8px;padding:5px 0 1px;gap:5px}.console-budget strong{font-size:21px}.console-launch{min-height:36px;font-size:18px}.starter-console__grid{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(5,minmax(0,1fr));overflow:auto;max-height:360px;gap:6px;padding:3px 3px 7px}.console-species{aspect-ratio:.8;padding:9px 2px 6px;gap:3px}.console-species .sprite{width:45px;height:45px}.console-species strong,.console-species>span{font-size:13px}.console-species small{font-size:6px}.console-species .console-cost{font-size:6px;left:3px;top:3px;padding:2px 3px}.habitat-console{grid-template-columns:1fr;gap:13px;height:auto}.habitat-console__list{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible}.habitat-console__list .habitat-option{min-height:64px;padding:7px;gap:7px}.habitat-console__list .habitat-thumb{width:35px;height:39px}.habitat-console__list .habitat-option strong{font-size:17px;line-height:1.1}.habitat-console__list .habitat-option small{font-size:6px;letter-spacing:0}.habitat-console__list .habitat-option .habitat-progress{font-size:7px}.habitat-console__preview [data-scene]{min-height:195px;padding:16px}.habitat-console__preview h2{font-size:31px}.habitat-console__preview p{font-size:9px}.habitat-console__preview>.habitat-info,.habitat-console__preview>footer{padding:15px;flex-direction:column;align-items:stretch;gap:13px}.habitat-console__preview .guardian-preview{padding:10px;gap:7px;flex-wrap:wrap}.habitat-console__preview .guardian-preview .sprite{width:46px;height:46px}.game-loot{left:13px;right:13px;top:69px;bottom:20px;width:auto;padding:17px 14px}.game-loot h1,.game-loot h2{font-size:29px}.game-loot>.eyebrow,.game-loot header .eyebrow{font-size:7px}.game-loot header p,.game-loot>p{font-size:10px}.game-loot-tools{gap:5px;margin:10px 0}.game-loot-tools button{min-height:32px;font-size:8px;padding:6px 8px;gap:5px}.game-loot-tools button .icon{width:12px;height:12px}.game-loot-tools>span{font-size:9px}.game-loot .loot-summary{padding:10px 0;font-size:9px;gap:9px;margin-bottom:10px}.game-loot .loot-summary .sprite{width:42px;height:42px}.game-loot .loot-summary strong{font-size:23px}.game-loot .loot-summary small{font-size:8px}.game-loot .run-reward-grid,.game-loot .loot-choices{gap:9px}.game-loot .loot-choice.run-reward{grid-template-columns:31px minmax(0,1fr) 12px;gap:10px;padding:12px 10px;min-height:88px}.game-loot .loot-choice .run-reward-icon{width:30px;height:30px}.game-loot .loot-choice .run-reward-icon .icon{width:20px;height:20px}.game-loot .loot-choice strong{font-size:24px}.game-loot .loot-choice p{font-size:9px;line-height:1.4;margin-top:5px}.game-loot .loot-choice .eyebrow{font-size:6px;letter-spacing:0}.game-loot .loot-choice>.icon{width:13px;height:13px}.game-loot footer,.game-loot .loot-footer{font-size:8px;padding-top:12px}.game-loot .reroll-rewards{font-size:9px;min-height:32px}.game-loot .wave-path{gap:3px;margin:13px 0}.game-loot .wave-path>span{width:22px;height:22px;font-size:8px}}
@media(max-height:500px) and (min-width:480px){.game-hud__place{font-size:9px;padding:6px 8px;gap:6px;min-height:28px}.game-hud__place .icon{width:13px;height:13px}.game-quickbar{top:10px;right:12px;gap:5px}.game-quickbar button{min-height:28px;min-width:28px;padding:5px 7px;font-size:8px;gap:4px}.game-quickbar .icon{width:13px;height:13px}.title-screen{padding:30px 20px 15px;justify-content:flex-start}.title-logo{font-size:65px;letter-spacing:2px}.title-logo small{font-size:7px;letter-spacing:3px;margin-top:12px}.title-cast{height:120px;margin:10px 0 8px;gap:15px}.title-cast .sprite{width:125px;height:125px}.title-cast .sprite:nth-child(2){width:145px;height:145px}.title-actions{min-width:370px;padding:9px 20px;flex-direction:row;gap:18px;justify-content:center}.title-actions button{font-size:21px;min-height:29px;padding:4px}.title-actions p,.title-actions small{font-size:7px}.title-screen>.eyebrow{font-size:6px;bottom:12px}.camp-companions{top:10%;bottom:170px;gap:4vw}.camp-companions .sprite{width:130px;height:145px}.camp-companions .sprite:nth-child(even){width:115px;height:120px;margin-bottom:20px}.camp-dialogue{height:var(--game-dock-height);padding:15px 19px;width:calc(48% - var(--game-gutter) - 9px);gap:6px}.camp-dialogue .eyebrow{font-size:7px;letter-spacing:1px}.camp-dialogue h1,.camp-dialogue h2{font-size:28px}.camp-dialogue p{font-size:18px;line-height:1.15}.camp-commands{height:var(--game-dock-height);width:calc(52% - var(--game-gutter) - 9px);padding:11px;gap:7px}.camp-commands button{font-size:22px;padding:7px 10px;gap:8px}.camp-commands button .icon{width:18px;height:18px}.camp-commands button small{font-size:7px;margin-top:3px}.camp-commands button>kbd{font-size:9px}.starter-screen{padding:50px 18px 15px}.starter-screen>.game-window{max-height:calc(100dvh - 65px)}.starter-screen .starter-grid{margin:10px 0;gap:11px}.starter-screen .starter-card{padding:8px}.starter-screen .starter-art{height:80px}.starter-screen .starter-art .sprite{width:90px;height:90px}.starter-screen .starter-name{font-size:22px;margin-bottom:5px}.starter-screen .starter-role{font-size:7px}.starter-screen .starter-confirm{flex-direction:row;justify-content:space-between;gap:15px;margin:7px 0}.starter-screen .starter-confirm p{font-size:8px;text-align:left}.starter-screen .starter-confirm .button{min-height:35px;font-size:10px}.starter-console{grid-template-columns:190px minmax(250px,1.6fr) 170px;gap:10px;height:100%}.starter-console__detail{padding:10px;gap:7px}.starter-console__detail>.sprite{width:90px;height:90px;max-height:none}.starter-console__detail h2{font-size:23px}.starter-console__detail h3{font-size:19px}.starter-console__detail p{font-size:8px;line-height:1.4}.starter-console__detail .type-tag{font-size:5px;padding:3px 4px}.console-stats{gap:4px;font-size:7px}.console-stats>span,.console-stats>div{padding:5px}.console-stats b,.console-stats strong{font-size:9px}.console-traits{gap:6px}.console-traits label{font-size:7px}.console-traits select{padding:5px;font-size:8px}.starter-console__grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.console-species{padding:7px 2px 5px;aspect-ratio:.85;gap:3px}.console-species .sprite{width:38px;height:38px}.console-species strong,.console-species>span{font-size:12px}.console-species small{font-size:6px}.console-species .console-cost{font-size:5px;left:3px;top:3px;padding:2px 3px}.starter-console__party{padding:10px;gap:6px}.starter-console__party>h2,.starter-console__party>h3{font-size:21px}.console-party-slot{padding:3px 5px;min-height:33px;gap:5px}.console-party-slot .sprite{width:27px;height:27px}.console-party-slot strong{font-size:16px}.console-party-slot small{font-size:6px;margin-top:1px}.console-party-slot.empty{min-height:27px;font-size:18px}.console-budget{padding:5px 0 1px;font-size:8px}.console-budget strong{font-size:20px}.console-launch{min-height:33px;font-size:18px}.habitat-console{grid-template-columns:220px minmax(0,1fr);gap:12px}.habitat-console__list{gap:6px}.habitat-console__list .habitat-option{min-height:55px;padding:7px;gap:8px}.habitat-console__list .habitat-thumb{width:41px;height:38px}.habitat-console__list .habitat-option strong{font-size:18px}.habitat-console__list .habitat-option small{font-size:6px}.habitat-console__preview [data-scene]{min-height:135px;padding:14px}.habitat-console__preview h2{font-size:29px}.habitat-console__preview p{font-size:9px}.habitat-console__preview>.habitat-info,.habitat-console__preview>footer{padding:12px;gap:10px}.habitat-console__preview .guardian-preview{padding:8px 12px;gap:8px}.habitat-console__preview .guardian-preview .sprite{width:41px;height:41px}.game-loot{width:calc(62% - 15px);top:52px;bottom:15px;padding:12px 15px}.game-loot h1,.game-loot h2{font-size:26px}.game-loot header p,.game-loot>p{font-size:8px;margin-top:5px}.game-loot>.eyebrow,.game-loot header .eyebrow{font-size:6px}.game-loot .loot-summary{padding:7px 0;margin-bottom:7px;gap:9px}.game-loot .loot-summary .sprite{width:32px;height:32px}.game-loot .loot-summary strong{font-size:21px}.game-loot .loot-summary small{font-size:7px}.game-loot-tools{gap:5px;margin:8px 0}.game-loot-tools button{font-size:7px;min-height:27px;padding:5px 8px}.game-loot-tools button .icon{width:11px;height:11px}.game-loot-tools>span{font-size:8px}.game-loot .run-reward-grid,.game-loot .loot-choices{gap:7px}.game-loot .loot-choice.run-reward{min-height:63px;padding:9px 10px;gap:9px;grid-template-columns:27px minmax(0,1fr) 12px}.game-loot .loot-choice .run-reward-icon{width:26px;height:26px}.game-loot .loot-choice .run-reward-icon .icon{width:17px;height:17px}.game-loot .loot-choice strong{font-size:23px}.game-loot .loot-choice p{font-size:8px;line-height:1.3;margin-top:3px}.game-loot .loot-choice .eyebrow{font-size:5px;margin-bottom:4px}.game-loot footer,.game-loot .loot-footer{font-size:7px;padding-top:10px}.game-loot .reroll-rewards{font-size:8px;min-height:27px}.game-loot .wave-path{margin:8px 0;gap:4px}.game-loot .wave-path>span{width:20px;height:20px;font-size:7px}}

/* Match the production shell's compact markup. */
.game-hud__place strong{display:block;font:600 13px/1.1 var(--body)}
.game-hud__place small{display:block;font:600 7px var(--body);letter-spacing:1.5px;color:#b9caa9;margin-top:5px}
.game-hud__tools{margin-left:auto}
.game-quickbar{top:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 25px)}
body[data-screen=battle] .game-quickbar,body[data-screen=rewards] .game-quickbar{display:none}
body[data-screen=battle] .game-hud__place,body[data-screen=rewards] .game-hud__place{visibility:hidden}
body.game-mode .battle-heading>div:last-child{margin-right:270px}
body.game-mode .battle-field-strip{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 39px);right:230px;max-width:40%}
.title-lockup{text-align:center;position:relative;z-index:2}
.title-kicker{display:block;font:700 10px var(--body);letter-spacing:5px;color:#f5e5b2;margin-bottom:18px;text-shadow:1px 2px #284843}
.title-rule{display:flex;align-items:center;justify-content:center;gap:15px;color:#e8c37d;margin-top:20px}
.title-rule:before,.title-rule:after{content:'';width:90px;height:2px;background:#e7cc86;box-shadow:0 2px #284843}
.title-rule .icon{width:21px;height:21px;filter:drop-shadow(0 2px #284843)}
.title-actions .button.primary{font:600 26px var(--pixel);min-height:44px;box-shadow:none;border:0;background:none;padding:4px 0;color:#f4d087}
.title-actions button:first-child:before{display:none}
.title-actions .text-button{font:600 12px var(--body);min-height:25px;color:#d7dfbc;letter-spacing:.7px;padding:0}
.title-prompt{position:absolute;left:20px;right:20px;bottom:22px;text-align:center;font:600 8px var(--body);letter-spacing:1.5px;color:#e4e6c6;text-shadow:1px 1px #21433d}
.camp-sign{position:absolute;top:118px;left:50%;transform:translateX(-50%);font:600 36px var(--pixel);color:#fff1be;letter-spacing:4px;text-shadow:2px 3px #21463d;white-space:nowrap}
.camp-sign span{font-size:22px;color:#e9c985;padding:0 13px}
.camp-companions{pointer-events:auto;align-items:center}
.camp-companion{position:relative;min-width:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.camp-companion .sprite{position:relative;z-index:1;pointer-events:none}
.camp-ground{position:absolute;left:13%;right:13%;bottom:38px;height:23px;border-radius:50%;background:#23483888;box-shadow:0 0 0 4px #a5bd793b}
.camp-companion__name{font:600 23px var(--pixel);color:#fff1ca;text-shadow:1px 2px #254b3c}
.camp-companion__name small{font:600 10px var(--body);color:#eddfb0;margin-left:5px}
.camp-companion:nth-child(even){margin-bottom:60px}
.camp-companion:nth-child(even) .sprite{margin:0}
.camp-dialogue .dialogue-speaker{font:600 10px var(--body);letter-spacing:1.5px;color:#ecc97d;position:absolute;left:29px;top:22px}
.camp-dialogue p{font:600 32px/1.1 var(--pixel);color:#fff1ca}
.camp-dialogue .dialogue-subtext{font:500 12px/1.5 var(--body);color:#c7d4b3;max-width:520px}
.dialogue-arrow{position:absolute;right:20px;bottom:14px;color:#f0d28a;font:15px var(--pixel);animation:blink 1.8s infinite}
.camp-commands button>span{flex:0;font-size:10px;color:#b4bc95}
.starter-screen{flex-direction:column;justify-content:center;align-items:stretch;width:min(100%,950px);left:50%;transform:translateX(-50%);padding:75px 25px 30px}
.starter-screen__heading{text-align:center;margin:0 0 10px}
.starter-screen__heading h1{font:600 51px var(--pixel);color:#ffefbf;text-shadow:2px 3px #28483d;margin-top:8px}
.starter-screen .starter-grid{margin:16px 0 20px;flex-shrink:0}
.starter-screen .starter-card{background:#20493df5;box-shadow:0 4px 0 #15372f;border-color:#a4b38b}
.starter-screen .starter-art{height:170px}
.starter-screen .starter-art .sprite{width:170px;height:170px}
.starter-screen .starter-confirm{display:flex;flex-direction:row;text-align:left;gap:28px;justify-content:space-between;align-items:center;margin:0;padding:20px 23px;background:#23483eef;border:2px solid #9fb48c;border-radius:2px;box-shadow:0 4px 0 #15372f}
.starter-screen .starter-confirm p{font:600 24px var(--pixel);color:#ffe6ae}
.starter-screen .starter-confirm p>span{display:block;margin-top:6px;font:500 10px/1.5 var(--body);color:#c7d5b5}
.starter-screen__back{margin:20px auto 0;font:600 11px var(--body);color:#f5d58e}
.game-window__heading p{font-size:10px;line-height:1.4;color:#bacbab;margin-top:7px}
.game-window__close.icon-button{width:31px;height:31px;font:500 27px var(--pixel);padding:0;color:#efd18e;border:1px solid #a4b58b}
.game-window__menu{font:600 10px var(--body);color:#ecd292;min-height:30px;padding:5px 9px;border:1px solid #9eb18a;border-radius:2px;background:#193d3c}
.game-adventure-menu{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(850px,calc(100% - 60px));max-height:calc(100dvh - 140px)}
.adventure-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.adventure-options>button{position:relative;padding:25px 23px 28px;text-align:left;background:#f3eed3;color:#304d3e;border:2px solid #bfbc8c;border-radius:2px;box-shadow:0 4px 0 #15372f;min-height:220px}
.adventure-options>button:first-child{background:#e8dba7;border-color:#f0cd80}
.adventure-options>button>span{display:block;font:38px var(--pixel);color:#84915d;margin-bottom:19px}
.adventure-options strong{display:block;font:600 30px/1 var(--pixel);color:#3d573e}
.adventure-options p{font:500 12px/1.5 var(--body);margin-top:13px;color:#6b7a55}
.adventure-options small{display:block;font:600 9px var(--body);color:#8b8457;margin-top:10px}
.adventure-options b{position:absolute;right:17px;bottom:17px;font:15px var(--pixel);color:#899263}
.game-classic .game-window__body{overflow:hidden;display:flex;flex-direction:column}
.starter-console{width:100%;flex:1}
.starter-console__grid{display:flex;flex-direction:column;gap:12px;overflow:hidden;padding:0}
.console-grid-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0;color:#d2ddbc}
.console-grid-heading strong{font:600 10px var(--body);letter-spacing:.7px}
.console-grid-heading>span{font-size:8px;color:#a4bc99}
.console-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;align-content:start;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:3px 5px 6px 3px;scrollbar-color:#9fb48b #1c413b;scrollbar-width:thin}
.console-grid-note{font-size:9px!important;line-height:1.5;color:#a6bd99;flex-shrink:0}
.console-portrait{display:grid;place-items:center;min-height:150px;background:radial-gradient(ellipse,#95ab6340,transparent 65%)}
.console-portrait .sprite{width:165px;height:165px;image-rendering:pixelated;filter:drop-shadow(0 7px #123e3266)}
.console-dex{font:600 10px var(--body);color:#abc39d;letter-spacing:1px}
.console-stats>span{display:grid;grid-template-columns:1fr auto;gap:2px 5px}
.console-stats small{font:700 8px var(--body);color:#a8bf9b}
.console-stats i{font:500 7px var(--body);grid-column:1/-1;color:#839d7e;font-style:normal}
.console-party{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#a4b68e #1d413b;padding:0 2px 3px 0}
.console-budget{margin:0 0 6px;padding:0 0 12px;border-bottom:1px solid #6a8968;display:block;flex-shrink:0}
.console-budget>span{font-size:8px;letter-spacing:1px;display:block;margin-bottom:5px}
.console-budget strong{font-size:38px}
.console-budget strong small{font:600 16px var(--pixel);color:#91aa84}
.console-party-slot:not(.filled){min-height:50px;border-style:dashed;opacity:.45;justify-content:flex-start;gap:10px;font:600 15px var(--pixel)}
.console-party-slot:not(.filled)>span{flex:0;font-size:21px;color:#9db38c}
.console-party-slot:not(.filled)>small{font-size:7px;color:#a2b58f}
.console-launch{margin-top:auto;font-size:19px;letter-spacing:0;padding:10px 3px}
.console-party-note{font-size:8px;line-height:1.5;color:#9fb893;text-align:center;flex-shrink:0}
.console-species{aspect-ratio:.83}
.console-species.chosen{border-color:#e9c97e;background:#4c633f}
.console-species.chosen:after{content:'●';position:absolute;top:4px;right:5px;color:#ffdc8c;font-size:6px}
.console-species.focused{border-color:#ffdc9b;box-shadow:0 0 0 2px #e8c789,0 3px 0 #14332f}
.console-species>b{position:absolute;left:4px;top:4px;font:600 8px var(--body);color:#e9d394;background:#173c33b8;padding:2px 3px;border:1px solid #648258}
.habitat-console__list .habitat-option{display:grid;grid-template-columns:22px minmax(0,1fr) 15px;gap:4px 10px;padding:13px 12px;min-height:77px}
.habitat-console__list .habitat-option>span:first-child{font:600 18px var(--pixel);color:#acc393;grid-row:1/3}
.habitat-console__list .habitat-option>strong{font-size:22px;grid-column:2}
.habitat-console__list .habitat-option>small{grid-column:2;font-size:8px;letter-spacing:.3px;margin:0}
.habitat-console__list .habitat-option>b{grid-column:3;grid-row:1/3;font:12px var(--pixel);color:#d2d69e}
.habitat-console__landscape{min-height:210px;display:flex;justify-content:flex-end;flex-direction:column;flex:1}
.habitat-console__landscape>div{display:flex;justify-content:center;align-items:flex-end;gap:35px}
.habitat-console__landscape .sprite{width:120px;height:120px;filter:drop-shadow(0 6px #28473366)}
.habitat-console__landscape h2{font-size:35px;margin-top:10px;position:relative;z-index:1}
.habitat-console__preview>p{padding:15px 18px;font-size:11px;line-height:1.5;background:#22473d}
.habitat-console__guardian{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px;background:#183d35;border-top:1px solid #738e68}
.habitat-console__guardian>span{font-size:8px;color:#bfcea5;letter-spacing:.7px}
.habitat-console__guardian>div{display:flex;gap:12px}
.habitat-console__guardian>div>span{display:flex;flex-direction:column;align-items:center;gap:3px}
.habitat-console__guardian .sprite{width:52px;height:52px}
.habitat-console__guardian small{font-size:7px;color:#b4c899}
.habitat-console__preview>.button{margin:14px 18px;width:calc(100% - 36px)}
.game-habitat .provision-picker{margin-top:17px;border-radius:2px;padding:12px 15px}
.pause-menu{display:flex;flex-direction:column;gap:4px}
.pause-menu>button{text-align:left;display:flex;align-items:center;gap:10px;min-height:41px;padding:9px 13px;color:#f5ebc9;font:600 22px var(--pixel);border:1px solid transparent;border-radius:2px}
.pause-menu>button:first-child{color:#f6d18c;border-color:#879d7a;background:#315448}
.pause-menu>button:hover{background:#375b49;border-color:#d6c582}
.pause-menu .icon{width:17px;height:17px}
.pause-controls{font-size:8px;color:#a8bc9a;padding:17px 13px 0;letter-spacing:.7px}
body.game-mode .modal:has(.pause-menu){width:min(380px,calc(100vw - 45px));padding:20px}
.game-loot{left:auto;padding:0;width:min(625px,calc(100% - 60px));top:83px;bottom:36px;background:#f2eed4}
.game-loot .game-window__heading{background:#f2eed4;border-color:#b3bf9d;padding:17px 21px;color:#324d3f}
.game-loot .game-window__heading h1{font-size:33px;color:#324d3f}
.game-loot .game-window__heading p{color:#7e875f;font-size:8px;letter-spacing:1px;margin-top:6px}
.game-loot .game-window__menu{background:#e1e6c7;border-color:#a6b28e;color:#6c7954;font-size:8px}
.game-loot .game-window__body{padding:15px 19px;display:flex;flex-direction:column;gap:12px}
.game-loot .loot-summary{margin:0;padding:0 0 12px;gap:12px;flex-shrink:0}
.game-loot .loot-summary p{font:500 12px var(--body);color:#647a59}
.game-loot .loot-summary p small{font:600 10px var(--body);color:#8a916f;margin-top:5px}
.loot-emblem{display:grid;place-items:center;width:42px;height:42px;background:#dce4bf;border:1px solid #b8c79d;color:#8b8f59}
.loot-emblem .icon{width:25px;height:25px}
.game-loot-choices{display:flex;flex-direction:column;gap:11px}
.game-loot .loot-choice.run-reward{width:100%;min-height:104px;grid-template-columns:40px minmax(0,1fr) 12px;gap:13px;flex-shrink:0}
.game-loot .loot-choice__text{grid-column:2;min-width:0}
.game-loot .loot-choice__text strong{font-size:28px}
.game-loot .loot-choice__text small{display:block;font:500 11px/1.45 var(--body);color:#6f7f5e;margin-top:7px}
.game-loot .loot-choice__text b{display:block;font:700 8px var(--body);color:#9c8c57;text-transform:uppercase;letter-spacing:.5px;margin-top:7px}
.game-loot .loot-choice .loot-pointer{grid-column:3!important;font:14px var(--pixel);color:#85946b}
.game-loot .game-loot-tools{margin:5px 0 0;padding-top:11px;border-top:1px solid #bdc7a1;flex-shrink:0}
.game-loot .game-loot-tools .button{background:#e1e6c7;color:#50694b;border:1px solid #9eaf87;box-shadow:0 2px 0 #bec7a5;font-size:9px;padding:7px 9px;min-height:33px}
.game-loot .reroll-rewards{margin:0 0 0 auto!important;align-self:auto!important}
.game-route-window,.game-ending{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(760px,calc(100% - 60px));max-height:calc(100dvh - 140px)}
.game-result-message{font:500 26px/1.2 var(--pixel);color:#f6eac5;margin-bottom:19px}
.game-route-choices{display:flex;flex-direction:column;gap:12px}
.game-route-choices>button{position:relative;min-height:96px;background:#f3eed3;color:#334e3e;border:1px solid #bec69f;border-radius:2px;padding:17px 50px 17px 20px;box-shadow:0 3px 0 #15372f;text-align:left}
.game-route-choices>button strong{font:600 28px var(--pixel);display:block}
.game-route-choices>button small{font-size:10px;line-height:1.5;display:block;color:#73855f;margin-top:7px}
.game-route-choices>button>b{position:absolute;right:18px;top:50%;transform:translateY(-50%);font:13px var(--pixel);color:#82956a}
.game-route-choices .route-preview{float:left;width:84px;height:61px;margin-right:17px;background-size:cover;background-position:center;border:2px solid #809870;image-rendering:pixelated}
.game-ending-emblem{display:flex;justify-content:center;margin:0 0 25px;color:#e9cc86}
.game-ending-emblem .icon{width:65px;height:65px}
.ending-stats{display:flex;justify-content:center;gap:25px;margin:21px 0;font:600 9px var(--body);color:#a5bd98}
.ending-stats b{font:600 36px var(--pixel);display:block;color:#edcf8d;text-align:center;margin-bottom:6px}
.ending-note{font-size:11px;line-height:1.5;color:#afc59e;text-align:center;margin:18px 0}
.ending-actions{display:flex;gap:12px;justify-content:center;margin-top:22px}
.game-input-focus{outline:3px solid #ffe3a1!important;outline-offset:3px!important}

@media(max-width:1100px) and (min-width:701px){.console-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.console-portrait{min-height:105px}.console-portrait .sprite{width:110px;height:110px}.console-budget strong{font-size:31px}.console-party-slot:not(.filled){min-height:41px}.console-party{gap:7px}.console-grid-heading strong{font-size:8px}.console-grid-heading>span{font-size:7px}.console-launch{font-size:16px}.habitat-console__list .habitat-option>strong{font-size:19px}.habitat-console__landscape .sprite{width:90px;height:100px}.habitat-console__landscape>div{gap:13px}.game-loot{width:570px}.game-loot .loot-choice__text strong{font-size:26px}}
@media(max-width:700px) and (min-height:501px){.game-hud__place strong{font-size:10px}.game-hud__place small{font-size:6px;letter-spacing:.7px;margin-top:4px}.game-hud__tools .game-menu-button span{display:none}.game-hud__tools .game-hud__coins{font-size:9px}.game-quickbar{top:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 151px)}body.game-mode .battle-heading>div:last-child{margin:0}body.game-mode .battle-field-strip{right:13px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 144px);max-width:55%}.title-kicker{font-size:7px;letter-spacing:3px;margin-bottom:13px}.title-rule{margin-top:15px}.title-rule:before,.title-rule:after{width:55px}.title-rule .icon{width:17px;height:17px}.title-actions .button.primary{font-size:23px;min-height:32px}.title-actions .text-button{font-size:9px;letter-spacing:.3px}.title-prompt{font-size:6px;letter-spacing:.7px;bottom:22px}.camp-sign{top:100px;font-size:27px;letter-spacing:2px}.camp-sign span{font-size:16px;padding:0 7px}.camp-companions{top:170px;bottom:420px;min-height:130px}.camp-companion{gap:7px}.camp-companion__name{font-size:21px}.camp-companion__name small{font-size:8px}.camp-companion:nth-child(even){margin-bottom:30px}.camp-ground{bottom:28px;height:16px}.camp-dialogue .dialogue-speaker{font-size:7px;top:14px;left:19px;letter-spacing:1px}.camp-dialogue p{font-size:25px}.camp-dialogue .dialogue-subtext{font-size:9px;line-height:1.4}.dialogue-arrow{font-size:11px;right:15px;bottom:11px}.camp-commands button{font-size:23px;gap:6px;white-space:nowrap}.camp-commands button>span{display:none}.starter-screen{padding:69px 17px 25px;justify-content:center}.starter-screen__heading h1{font-size:38px}.starter-screen__heading .eyebrow{font-size:8px}.starter-screen .starter-grid{gap:8px;margin:18px 0}.starter-screen .starter-card{padding:14px 5px}.starter-screen .starter-art{height:110px}.starter-screen .starter-art .sprite{width:110px;height:110px}.starter-screen .starter-type .type-tag{font-size:6px;padding:3px 5px}.starter-screen .starter-confirm{flex-direction:column;gap:15px;align-items:stretch;padding:17px;text-align:center}.starter-screen .starter-confirm p{font-size:24px}.starter-screen .starter-confirm p>span{font-size:9px;max-width:260px;margin:6px auto 0}.starter-screen .starter-confirm .button{font-size:12px}.game-adventure-menu{width:calc(100% - 28px);max-height:calc(100dvh - 120px)}.adventure-options{grid-template-columns:1fr;gap:13px}.adventure-options>button{padding:18px;min-height:180px}.adventure-options>button>span{font-size:28px;margin-bottom:14px}.adventure-options strong{font-size:26px}.adventure-options p{font-size:10px;margin-top:10px}.adventure-options small{font-size:8px}.game-classic .game-window__body{overflow:auto;display:block}.starter-console{height:auto}.console-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:340px;flex:none;gap:6px}.starter-console__grid{overflow:visible;max-height:none;padding:0;gap:9px}.console-grid-heading strong{font-size:8px}.console-grid-heading>span{font-size:7px}.console-grid-note{font-size:8px!important}.console-portrait{min-height:88px}.console-portrait .sprite{width:95px;height:95px}.console-budget{padding:0 0 7px;margin:0 0 4px}.console-budget>span{font-size:6px;margin-bottom:3px}.console-budget strong{font-size:27px}.console-budget strong small{font-size:12px}.console-party{gap:5px;overflow:visible;flex:1}.console-party-slot:not(.filled){min-height:28px;gap:7px}.console-party-slot:not(.filled)>span{font-size:16px}.console-party-slot:not(.filled)>small{font-size:5px}.console-party-note{font-size:6px;line-height:1.3}.console-launch{margin-top:5px;font-size:14px;min-height:33px;padding:7px 3px}.console-dex{font-size:7px}.console-stats small{font-size:6px}.console-stats i{font-size:5px}.console-species{aspect-ratio:.81}.console-species>b{font-size:6px;padding:1px 3px;left:3px;top:3px}.habitat-console__list .habitat-option{grid-template-columns:13px minmax(0,1fr) 8px;gap:4px 5px;min-height:65px;padding:9px 6px}.habitat-console__list .habitat-option>strong{font-size:17px}.habitat-console__list .habitat-option>span:first-child{font-size:14px}.habitat-console__list .habitat-option>small{font-size:6px;letter-spacing:0;line-height:1.3}.habitat-console__list .habitat-option>b{font-size:9px}.habitat-console__landscape>div{gap:5px}.habitat-console__landscape .sprite{width:82px;height:95px}.habitat-console__landscape h2{font-size:29px}.habitat-console__preview>p{padding:12px 14px;font-size:10px}.habitat-console__guardian{padding:10px 13px;gap:10px}.habitat-console__guardian>span{font-size:7px;letter-spacing:0}.habitat-console__guardian .sprite{width:42px;height:42px}.habitat-console__guardian>div{gap:7px}.habitat-console__preview>.button{margin:12px 14px;width:calc(100% - 28px)}.game-habitat .provision-picker{padding:12px;margin-top:13px}.game-loot{left:13px;right:13px;top:69px;bottom:20px;width:auto;padding:0}.game-loot .game-window__heading{padding:14px 15px}.game-loot .game-window__heading h1{font-size:29px}.game-loot .game-window__heading p{font-size:7px;margin-top:5px}.game-loot .game-window__body{padding:13px 13px;gap:11px}.game-loot .loot-summary p{font-size:10px}.game-loot .loot-summary p small{font-size:8px}.game-loot-choices{gap:10px}.game-loot .loot-choice.run-reward{grid-template-columns:30px minmax(0,1fr) 10px;gap:9px;min-height:108px}.game-loot .loot-choice__text strong{font-size:25px}.game-loot .loot-choice__text small{font-size:9px;line-height:1.4;margin-top:6px}.game-loot .loot-choice__text b{font-size:7px;margin-top:6px}.game-loot .loot-choice .loot-pointer{font-size:11px}.game-loot .game-loot-tools{padding-top:10px;gap:6px}.game-loot .game-loot-tools .button{font-size:7px;min-height:31px;padding:6px 7px;gap:4px}.game-loot .game-loot-tools .button .icon{width:11px;height:11px}.game-loot .reroll-rewards{margin-left:0!important}.game-route-window,.game-ending{width:calc(100% - 28px);max-height:calc(100dvh - 120px)}.game-result-message{font-size:23px;margin-bottom:15px}.game-route-choices{gap:10px}.game-route-choices>button{min-height:90px;padding:15px 33px 15px 14px}.game-route-choices>button strong{font-size:25px}.game-route-choices>button small{font-size:9px;line-height:1.4}.game-route-choices>button>b{right:11px;font-size:10px}.game-route-choices .route-preview{width:66px;height:55px;margin-right:11px}.ending-actions{flex-direction:column;gap:11px}.ending-note{font-size:10px}.pause-menu>button{font-size:21px;min-height:38px}.pause-controls{font-size:7px}.game-window__heading p{font-size:8px}.game-window__close.icon-button{width:27px;height:27px;font-size:23px}}
@media(max-height:500px) and (min-width:480px){.game-hud__place strong{font-size:10px}.game-hud__place small{font-size:5px;letter-spacing:.8px;margin-top:3px}.game-hud__tools .game-menu-button span{font-size:8px}.game-quickbar{top:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 19px)}body.game-mode .battle-heading>div:last-child{margin-right:220px}body.game-mode .battle-field-strip{right:180px;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 29px);max-width:36%}.title-screen{justify-content:flex-start;padding-top:30px}.title-kicker{font-size:6px;letter-spacing:3px;margin-bottom:9px}.title-rule{margin-top:9px}.title-rule .icon{width:15px;height:15px}.title-rule:before,.title-rule:after{width:55px}.title-cast{height:125px;margin:9px 0}.title-actions{min-width:410px;padding:11px 20px;gap:25px}.title-actions .button.primary{font-size:21px;min-height:25px}.title-actions .text-button{font-size:8px;min-height:20px}.title-prompt{font-size:5px;bottom:13px}.camp-sign{top:59px;font-size:25px;letter-spacing:3px}.camp-sign span{font-size:16px}.camp-companions{top:100px;bottom:165px;min-height:100px}.camp-companion{gap:7px}.camp-companion .sprite{width:125px;height:125px}.camp-companion__name{font-size:18px}.camp-companion__name small{font-size:7px}.camp-companion:nth-child(even){margin-bottom:20px}.camp-ground{bottom:25px;height:15px}.camp-dialogue .dialogue-speaker{top:14px;left:18px;font-size:7px}.camp-dialogue p{font-size:25px}.camp-dialogue .dialogue-subtext{font-size:9px;line-height:1.4}.dialogue-arrow{font-size:10px;right:15px;bottom:10px}.camp-commands button{font-size:20px;gap:7px}.camp-commands button>span{display:none}.starter-screen{justify-content:center;padding:48px 25px 17px;width:min(100%,900px)}.starter-screen__heading{margin-bottom:0}.starter-screen__heading h1{font-size:30px;margin-top:4px}.starter-screen__heading .eyebrow{font-size:6px}.starter-screen .starter-grid{margin:9px 0 13px;gap:12px}.starter-screen .starter-card{padding:8px}.starter-screen .starter-art{height:77px}.starter-screen .starter-art .sprite{width:95px;height:95px}.starter-screen .starter-name{font-size:23px;margin-bottom:4px}.starter-screen .starter-type{margin-bottom:5px}.starter-screen .starter-role{font-size:7px}.starter-screen .starter-type .type-tag{font-size:5px;padding:3px 5px}.starter-screen .starter-confirm{padding:11px 14px;flex-direction:row;gap:17px}.starter-screen .starter-confirm p{font-size:20px}.starter-screen .starter-confirm p>span{font-size:7px;line-height:1.3;margin-top:3px}.starter-screen .starter-confirm .button{font-size:9px;min-height:31px;padding:7px 11px}.starter-screen__back{margin-top:10px;font-size:8px}.game-adventure-menu{width:min(750px,calc(100% - 36px));max-height:calc(100dvh - 90px)}.adventure-options{gap:12px}.adventure-options>button{min-height:155px;padding:17px}.adventure-options>button>span{font-size:25px;margin-bottom:12px}.adventure-options strong{font-size:25px}.adventure-options p{font-size:9px;margin-top:9px}.adventure-options small{font-size:7px;margin-top:8px}.game-window__heading p{font-size:7px;margin-top:4px}.console-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.console-grid-heading strong{font-size:7px}.console-grid-heading>span{font-size:6px}.console-grid-note{font-size:7px!important;line-height:1.4}.starter-console__grid{gap:7px}.console-portrait{min-height:75px}.console-portrait .sprite{width:85px;height:85px}.console-dex{font-size:7px}.console-stats small{font-size:6px}.console-stats i{font-size:5px}.console-budget{padding:0 0 7px;margin:0}.console-budget>span{font-size:6px;margin-bottom:3px}.console-budget strong{font-size:25px}.console-budget strong small{font-size:11px}.console-party{gap:5px}.console-party-slot:not(.filled){min-height:25px;gap:7px}.console-party-slot:not(.filled)>span{font-size:15px}.console-party-slot:not(.filled)>small{font-size:5px}.console-party-note{font-size:6px}.console-launch{font-size:13px;min-height:30px;padding:6px 3px}.console-species>b{font-size:5px;top:3px;left:3px;padding:1px 2px}.habitat-console__list .habitat-option{min-height:57px;padding:9px;gap:3px 7px;grid-template-columns:17px minmax(0,1fr) 10px}.habitat-console__list .habitat-option>strong{font-size:17px}.habitat-console__list .habitat-option>small{font-size:6px}.habitat-console__list .habitat-option>span:first-child{font-size:15px}.habitat-console__list .habitat-option>b{font-size:9px}.habitat-console__landscape{min-height:135px}.habitat-console__landscape .sprite{width:65px;height:65px}.habitat-console__landscape h2{font-size:27px;margin-top:4px}.habitat-console__preview>p{padding:9px 12px;font-size:8px;line-height:1.4}.habitat-console__guardian{padding:7px 12px;gap:10px}.habitat-console__guardian>span{font-size:6px}.habitat-console__guardian .sprite{width:34px;height:34px}.habitat-console__guardian small{font-size:6px}.habitat-console__preview>.button{margin:10px 12px;width:calc(100% - 24px);min-height:32px;font-size:9px}.game-loot{left:auto;right:12px;top:52px;bottom:15px;width:calc(62% - 15px);padding:0}.game-loot .game-window__heading{padding:11px 13px}.game-loot .game-window__heading h1{font-size:25px}.game-loot .game-window__heading p{font-size:6px;margin-top:4px}.game-loot .game-window__menu{font-size:6px;min-height:22px;padding:4px 7px}.game-loot .game-window__body{padding:10px 12px;gap:9px}.game-loot .loot-summary{padding:0 0 8px}.game-loot .loot-summary p{font-size:8px}.game-loot .loot-summary p small{font-size:7px;margin-top:4px}.loot-emblem{width:28px;height:28px}.loot-emblem .icon{width:18px;height:18px}.game-loot-choices{gap:8px}.game-loot .loot-choice.run-reward{min-height:75px;grid-template-columns:25px minmax(0,1fr) 10px;gap:9px;padding:9px}.game-loot .loot-choice__text strong{font-size:22px}.game-loot .loot-choice__text small{font-size:8px;margin-top:4px;line-height:1.3}.game-loot .loot-choice__text b{font-size:6px;letter-spacing:0;margin-top:4px}.game-loot .loot-choice .loot-pointer{font-size:10px}.game-loot .game-loot-tools{padding-top:8px;gap:5px}.game-loot .game-loot-tools .button{font-size:6px;min-height:25px;padding:5px 6px;gap:3px}.game-loot .game-loot-tools .button .icon{width:10px;height:10px}.game-route-window,.game-ending{width:min(700px,calc(100% - 36px));max-height:calc(100dvh - 90px)}.game-result-message{font-size:21px;margin-bottom:12px}.game-route-choices{gap:8px}.game-route-choices>button{min-height:71px;padding:11px 37px 11px 15px}.game-route-choices>button strong{font-size:23px}.game-route-choices>button small{font-size:8px;margin-top:5px}.game-route-choices .route-preview{width:65px;height:48px;margin-right:12px}.game-ending-emblem{margin-bottom:15px}.game-ending-emblem .icon{width:45px;height:45px}.ending-stats{margin:13px 0;font-size:7px}.ending-stats b{font-size:26px;margin-bottom:4px}.ending-note{font-size:9px;margin:13px 0}.ending-actions{margin-top:15px;gap:10px}.ending-actions .button{font-size:9px;min-height:32px;padding:8px 12px}.pause-menu>button{font-size:20px;min-height:34px;padding:7px 11px}.pause-controls{font-size:6px;padding-top:12px}}
/* Final framing adjustments after real 1440px and phone play sessions. */
.console-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}
.console-species{aspect-ratio:.9;padding:5px 2px;gap:2px}
.console-species .sprite{width:43px;height:43px}
.console-species>span{font-size:13px;line-height:1}
.console-party-slot:not(.filled)>span{line-height:1}
.console-party-slot:not(.filled)>small{line-height:1.3}
body.game-mode .command-area .move-info strong{white-space:normal;line-height:.98;overflow-wrap:anywhere}
@media(min-width:1700px){.console-grid{grid-template-columns:repeat(10,minmax(0,1fr))}.console-species .sprite{width:50px;height:50px}.console-species>span{font-size:15px}}
@media(max-width:1100px) and (min-width:701px){.console-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.console-species .sprite{width:35px;height:35px}.console-species>span{font-size:11px}}
@media(max-width:700px) and (min-height:501px){body.game-mode .battle-field-strip{top:55px;right:13px;bottom:auto;width:auto;height:26px;min-height:26px;max-width:64%;padding:4px 8px;display:flex;align-items:center}body.game-mode .battle-field-strip button{font-size:7px;line-height:1.2}body.game-mode .wild-label{top:82px;font-size:6px;padding:4px 6px}body.game-mode .command-area .move-info strong{font-size:20px;line-height:.95;letter-spacing:-.3px}body.game-mode .command-area .move-info small{margin-top:3px}body.game-mode .command-area .move-hint{margin-top:3px}.console-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.console-species{aspect-ratio:.81;padding:8px 2px 5px}.console-species .sprite{width:45px;height:45px}.console-species>span{font-size:13px}.console-party-slot:not(.filled){display:grid;grid-template-columns:16px 1fr;gap:5px}.console-party-slot:not(.filled)>span{font-size:13px}.console-party-slot:not(.filled)>small{font-size:5px}.camp-commands button{font-size:22px}}
@media(max-height:500px) and (min-width:480px){.console-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.console-species{aspect-ratio:.9;padding:5px 2px}.console-species .sprite{width:34px;height:34px}.console-species>span{font-size:11px}body.game-mode .command-area .move-info strong{font-size:18px;line-height:.95;letter-spacing:-.2px}}
@media(max-width:375px) and (min-height:501px){body.game-mode .command-area .move-info strong{font-size:18px}.console-species .sprite{width:40px;height:40px}.console-species>span{font-size:12px}}
.starter-screen .starter-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
.starter-screen .starter-card{min-width:0}
.starter-screen .starter-art{width:100%;min-width:0}
.starter-screen .starter-art .sprite{max-width:100%;object-fit:contain}
.console-stats-label{font-size:7px;letter-spacing:.7px;color:#b2c59e;margin:2px 0 -5px}
.game-loot{top:50%;bottom:auto;height:auto;max-height:calc(100dvh - 130px);transform:translateY(-50%)}
.game-loot .game-window__body{flex:0 1 auto}
@media(max-width:700px) and (min-height:501px){.starter-screen .starter-name{font-size:20px}.starter-screen .starter-role{font-size:6px}.starter-screen .starter-art{height:100px}.starter-screen .starter-art .sprite{height:100px}.game-loot{top:50%;bottom:auto;max-height:calc(100dvh - 125px)}.console-stats-label{font-size:5px;letter-spacing:.2px;line-height:1.4}}
@media(max-height:500px) and (min-width:480px){.game-loot{top:50%;bottom:auto;max-height:calc(100dvh - 90px)}.console-stats-label{font-size:5px;letter-spacing:.3px}}
@media(max-width:700px) and (min-height:501px){.camp-commands{grid-template-columns:repeat(2,minmax(0,1fr))}.camp-commands button{min-width:0;font-size:20px;padding:9px 8px;gap:6px}.camp-commands button .icon{width:18px;height:18px}.game-loot .game-loot-tools .button{min-height:44px;min-width:44px}.game-window .button,.modal .button{min-height:44px}}
@media(max-width:700px) and (min-height:501px){.console-launch{white-space:normal;line-height:1.1;font-size:14px;min-height:44px;padding:6px 4px}}
.camp-companions .camp-companion .sprite{width:clamp(150px,20vw,265px);height:clamp(150px,20vw,265px);margin:0}
.camp-ground{bottom:29px}
.camp-companion:nth-child(even) .sprite{width:clamp(125px,17vw,210px);height:clamp(125px,17vw,210px)}
@media(max-width:700px) and (min-height:501px){.camp-companions .camp-companion .sprite{width:145px;height:175px;margin:0}.camp-companion:nth-child(even) .sprite{width:125px;height:150px}.camp-ground{bottom:23px}}
@media(max-height:500px) and (min-width:480px){.camp-companions .camp-companion .sprite{width:125px;height:125px;margin:0}.camp-companion:nth-child(even) .sprite{width:115px;height:115px}.camp-ground{bottom:20px}}
.camp-companions .camp-companion .sprite{object-position:center bottom}
body.game-mode #toast{top:83px;bottom:auto;pointer-events:none;font-size:10px;padding:10px 14px;max-width:min(440px,calc(100vw - 30px))}
@media(max-width:700px) and (min-height:501px){body.game-mode #toast{top:25dvh;font-size:9px;padding:9px 12px;max-width:calc(100vw - 44px)}}
@media(max-height:500px) and (min-width:480px){body.game-mode #toast{top:25dvh;font-size:9px;padding:9px 12px}}
@media(max-width:700px) and (min-height:501px){.camp-companions:has(.camp-companion:nth-child(2)) .camp-companion .sprite{width:130px;height:160px}.camp-companions:has(.camp-companion:nth-child(3)) .camp-companion .sprite{width:105px;height:140px}.camp-companions:has(.camp-companion:nth-child(3)) .camp-companion__name{max-width:104px;font-size:17px;line-height:1.05}.camp-companions:has(.camp-companion:nth-child(3)) .camp-companion__name small{font-size:6px;margin-left:3px}.camp-companions:has(.camp-companion:nth-child(3)){left:3%;right:3%;gap:3px}.camp-companions:has(.camp-companion:nth-child(3)) .camp-companion{flex:1;min-width:0}}
.starter-console__detail>.button{position:sticky;bottom:0;z-index:3;flex-shrink:0;margin-top:auto;box-shadow:0 -8px 0 #224944,0 3px 0 #14372f;background:#345c49;border:1px solid #b3c392;white-space:normal;line-height:1.3}
@media(max-width:700px) and (min-height:501px){.starter-console__detail>.button{font-size:8px;padding:7px 4px;min-height:44px}}
body.game-mode .starter-console__detail>.button{min-height:44px}
/* Run decisions: scouting and preparation share the game's floating GUI. */
.run-horizon{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#e4e8c8;color:#36584a;border:1px solid #a9b48c;text-align:left;min-height:44px;flex-shrink:0}
.run-horizon strong{display:block;font:700 9px var(--body);letter-spacing:.6px}
.run-horizon small{display:block;font:500 9px/1.4 var(--body);margin-top:4px;color:#627451}
.run-horizon>b{font:600 16px var(--pixel);white-space:nowrap;color:#7c672f}
.run-horizon.recovery-now{background:#e2edc3;border-color:#819c65}
body.game-mode .scout-modal{width:min(700px,100%)}
.scout-sector{display:flex;justify-content:space-between;gap:15px;font:700 10px var(--body);color:#d9dda7}
.scout-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;margin:15px 0}
.scout-track>span{display:flex;align-items:center;justify-content:center;height:31px;border:1px solid #5d7b65;font:600 17px var(--pixel);color:#9aaf89;background:#1a3c3b}
.scout-track .milestone{border-color:#bcab72;color:#edce83}.scout-track .current{background:#e9c77e;color:#28443e;box-shadow:0 0 0 2px #fff4c8}.scout-track .cleared{color:#729c74}
.scout-next{font:500 11px/1.5 var(--body);margin:12px 0;color:#b0c6a0}.scout-next strong{color:#eff0d0}
.scout-target{padding:15px;background:#183d3b;border:1px solid #66876a}.scout-target .eyebrow{font-size:8px;letter-spacing:.8px}.scout-target h3{font:500 27px var(--pixel);margin:10px 0;color:#fff0c2}.scout-target>p{font-size:11px;line-height:1.6;color:#b6c9a2}
.scout-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.scout-roster>div{display:flex;align-items:center;gap:5px;min-width:0;padding:5px;background:#244c43}.scout-roster .sprite{width:56px;height:56px;flex-shrink:0}.scout-roster strong{display:block;font:500 19px var(--pixel);line-height:1.1}.scout-roster small{display:block;font-size:9px;margin:3px 0 5px;color:#c2cba7}.scout-roster .type-tag{font-size:6px;padding:3px 4px}
.scout-recovery{margin:16px 0 10px;padding:12px 14px;background:#435c3e66;border-left:3px solid #c7b26f}.scout-recovery strong{font:700 8px var(--body);letter-spacing:.8px;color:#e5ce86}.scout-recovery p{font-size:11px;line-height:1.6;margin:5px 0 0;color:#bfd0a5}
.scout-preparation{font-size:11px;line-height:1.6;color:#a6bea0;margin:12px 0}.scout-actions{display:flex;gap:10px;flex-wrap:wrap}.scout-actions .button{min-height:44px}
.console-guest{display:block;color:#e8ce8f;font:600 8px/1.5 var(--body);margin:7px 0}.console-species.guest:after{content:'G';position:absolute;top:5px;right:5px;font:700 7px var(--body);color:#e5cb80}.console-party-slot .guest-label{color:#e5cb80}
@media(max-width:700px){.run-horizon{gap:7px;padding:8px 9px}.run-horizon strong{font-size:7px;letter-spacing:.2px}.run-horizon small{font-size:8px}.run-horizon>b{font-size:15px}.scout-sector{font-size:8px;gap:10px}.scout-track{gap:3px}.scout-track>span{height:28px;font-size:14px}.scout-target{padding:12px}.scout-target h3{font-size:23px}.scout-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.scout-roster .sprite{width:43px;height:43px}.scout-roster strong{font-size:17px}.scout-roster small{font-size:8px}.scout-actions .button{font-size:9px;padding:10px}.game-loot:has(.run-horizon) .loot-summary{padding-bottom:9px}.game-loot:has(.run-horizon) .loot-choice.run-reward{min-height:91px}.game-loot:has(.run-horizon) .loot-choice__text strong{font-size:24px}.game-loot:has(.run-horizon) .loot-choice__text small{font-size:9px}.game-loot:has(.run-horizon) .game-window__body{gap:10px}.console-guest{font-size:6px}}

.ending-tip{padding:13px 15px;margin:14px 0;background:#264a40;border-left:3px solid #e2c984;text-align:left}.ending-tip>strong{font:700 8px var(--body);letter-spacing:.7px;color:#e2c984}.ending-tip>p{font:500 11px/1.6 var(--body);color:#c4d3b2;margin:7px 0 0}.game-intermission .ending-actions{flex-wrap:wrap}.scout-roster .sprite{object-fit:contain;object-position:center bottom}
