/* New play formats use the same fixed viewport and floating game windows. */
.depth-intro{font:500 12px/1.65 var(--body);color:#53634c;margin:0 0 18px}
.depth-eyebrow{font:800 9px/1.4 var(--body);letter-spacing:1px;color:#8a723b}
.activity-console,.survival-console{color:#29463e;min-width:0}
body.game-mode .game-window:has(.activity-console),body.game-mode .game-window:has(.survival-console){width:min(1120px,calc(100% - 42px))}
body.game-mode .game-window:has(.activity-console) .game-window__body,body.game-mode .game-window:has(.survival-console) .game-window__body{background:#f3efd6}
.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.activity-card{display:flex;flex-direction:column;align-items:flex-start;gap:11px;border:2px solid #a1b38a;background:#e7e8c9;padding:18px;min-width:0}
.activity-card.locked{background:#e2e3ce}
.activity-card h2,.survival-console h2{font:600 32px/1 var(--pixel);color:#29463e;margin:0}
.activity-card p,.survival-console p{font:500 11px/1.6 var(--body);color:#58694e;margin:0}
.activity-card>small{font:600 9px/1.5 var(--body);color:#887647}
.activity-card .button{margin-top:auto;font:800 10px var(--body);width:100%}
.activity-card .activity-requirement{font-size:9px;color:#8b6848}
.activity-cast{display:flex;min-height:75px;align-items:center;justify-content:center;width:100%;gap:3px}
.activity-cast .sprite{width:75px;height:75px;object-fit:contain;image-rendering:pixelated;min-width:0;flex:1;max-width:105px}
.survival-console>p{margin:16px 0}
.survival-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.survival-party article{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border:1px solid #a7b896;background:#e4e8c8;text-align:center}
.survival-party .sprite{width:90px;height:90px;object-fit:contain;image-rendering:pixelated}
.survival-party strong{font:600 25px var(--pixel)}
.survival-party small{font:600 10px var(--body)}
.survival-party .button{font-size:9px;min-height:38px;margin-top:4px}
.survival-console>.text-button{margin-top:20px;font-size:10px;color:#906948}
.activity-objective-banner{position:absolute;z-index:9;left:50%;top:85px;transform:translateX(-50%);width:min(520px,70%);padding:10px 14px;background:#183e40ed;border:1px solid #bdc293;color:#f8edcb;text-align:center;pointer-events:none}
.activity-objective-banner strong{display:block;font:600 24px var(--pixel)}
.activity-objective-banner small{display:block;font:500 10px/1.4 var(--body);margin-top:5px}
.double-battle-heading{position:absolute;left:24px;top:67px;z-index:12;display:flex;align-items:center;gap:9px;padding:7px 10px;background:#1e4245e6;border:1px solid #b2bd91;font:700 9px var(--body);color:#f4e7c1}
.double-battle-heading button{color:#efce8c;min-width:25px;min-height:25px;display:grid;place-items:center}
.double-battle-heading .icon{width:15px;height:15px}
.double-health{position:absolute;z-index:7;width:230px;padding:10px 13px;background:#eef0d1;color:#29453e;border:2px solid #2e4f49;box-shadow:3px 3px #23443e55;border-radius:2px 9px 2px 9px;min-width:0}
.double-health>div{display:flex;align-items:baseline;justify-content:space-between;gap:7px}
.double-health strong{font:600 25px/1 var(--pixel);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.double-health small{font:600 10px var(--body);white-space:nowrap}
.double-health.enemy{top:115px}
.double-health.enemy.slot-0{right:24px}
.double-health.enemy.slot-1{right:270px}
.double-health.player{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 76px)}
.double-health.player.slot-0{left:24px}
.double-health.player.slot-1{left:270px}
.double-health.selected{border-color:#c39b51;box-shadow:0 0 0 2px #e6c780,3px 3px #23443e55}
.double-health.fainted{filter:saturate(.2);opacity:.7}
.double-health-types{display:flex;gap:4px;align-items:center;margin-top:6px}
.double-health-types i{font:700 7px var(--body);font-style:normal;text-transform:uppercase;padding:3px 5px;background:color-mix(in srgb,var(--type),#fff 70%);color:#35534b;border:1px solid color-mix(in srgb,var(--type),#3d5b4c 30%)}
.double-health-types b{font:700 7px var(--body);text-transform:uppercase;color:#91613e}
.double-health-track{display:block;height:7px;border:1px solid #718965;background:#c5cfad;margin-top:7px;overflow:hidden}
.double-health-track>i{display:block;height:100%;transition:width .2s linear}
.double-health .double-health-value{display:block;text-align:right;margin-top:4px;font-size:9px}
.double-objective{position:absolute;right:24px;top:224px;z-index:8;display:flex;flex-direction:column;align-items:flex-end;gap:4px;color:#f6e5bc;background:#23494bdc;border:1px solid #b7bd8f;padding:8px 11px;font:600 10px var(--body)}
.double-objective small{font:500 9px var(--body);color:#c6d6ab}
body.game-mode .double-commands.action-area{display:flex;flex-direction:column;gap:9px;padding:13px;min-height:0}
.double-actor-tabs{display:flex;gap:8px;flex-shrink:0}
.double-actor-tabs>button{flex:1;min-width:0;padding:7px 11px;border:1px solid #9db28b;background:#e3e5c3;color:#35533f;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:38px}
.double-actor-tabs>button.selected{background:#2a5148;color:#f2e9bd;border-color:#ceb577}
.double-actor-tabs strong{font:600 23px var(--pixel);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.double-actor-tabs small{font:600 8px/1.4 var(--body);max-width:52%;text-align:right}
.double-moves{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:0;flex:1}
.double-moves>button{border:1px solid #a3b691;border-left:4px solid var(--type);background:#fff8dc;text-align:left;padding:8px 12px;color:#2c483d;min-height:43px;border-radius:2px}
.double-moves strong{display:block;font:600 25px/1 var(--pixel)}
.double-moves small{display:block;font:600 8px/1.3 var(--body);margin-top:5px;color:#6b7858}
.double-moves>button:disabled{opacity:.38}
.double-turn-actions{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-shrink:0}
.double-turn-actions>button{padding:8px 12px;border:1px solid #829e7f;background:#d7dfb8;color:#35533f;font:800 9px var(--body);min-height:32px}
.double-turn-actions>button.double-resolve{background:#edc77f;border-color:#9d7b43;color:#3b4b39}
.double-turn-actions>button:disabled{opacity:.4}
.double-turn-actions>span{font:800 8px var(--body);color:#7c815a;text-align:center}
.double-targets{display:flex;gap:9px;align-items:stretch;flex:1;min-height:0;flex-wrap:wrap}
.double-targets>span{width:100%;font:800 9px var(--body);letter-spacing:.5px;color:#7b734f;flex-shrink:0}
.double-targets>button:not(.double-cancel){flex:1;display:flex;align-items:center;text-align:left;gap:9px;border:1px solid #92ac86;background:#e3e7c5;padding:7px;color:#294b3e;min-width:0;min-height:54px}
.double-targets .sprite{width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
.double-targets>button>span{font:600 23px/1 var(--pixel);min-width:0}
.double-targets>button small{display:block;font:600 8px/1.3 var(--body);margin-top:5px}
.double-targets .double-cancel{font:800 8px var(--body);color:#6c7c56;text-decoration:underline;width:100%;min-height:24px}
.double-replacements>strong{font:600 27px var(--pixel);color:#36533f}
.double-replacements>p{font:500 10px var(--body);color:#6e7c58}
.double-replacements>div{display:flex;gap:9px;overflow:auto}
.double-replacements>div>button{display:flex;align-items:center;gap:7px;background:#dce4be;border:1px solid #91a983;padding:8px;color:#35553f}
.double-replacements .sprite{width:55px;height:55px;object-fit:contain;image-rendering:pixelated}
.double-replacements span{font:600 22px var(--pixel)}
.double-replacements small{display:block;font:600 9px var(--body);margin-top:5px}
@media(max-width:900px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-card{padding:15px}.double-health{width:190px}.double-health.enemy.slot-1{right:230px}.double-health.player.slot-1{left:230px}.double-health strong{font-size:22px}.double-actor-tabs strong{font-size:20px}.double-actor-tabs>button{padding:6px 8px}.double-moves strong{font-size:22px}.double-moves small{font-size:7px}.double-turn-actions>span{font-size:7px}}
@media(max-width:700px) and (min-height:501px){
 .activity-grid{grid-template-columns:1fr;gap:13px}.activity-card{gap:9px;padding:15px}.activity-card h2{font-size:30px}.activity-cast{min-height:65px}.activity-cast .sprite{height:65px;width:65px}.activity-card p{font-size:11px}.activity-card .button{min-height:42px}.survival-party{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.survival-party article{padding:10px}.survival-party .sprite{width:70px;height:70px}.survival-party strong{font-size:23px}.survival-party small{font-size:8px}.survival-console h2{font-size:29px}.survival-console p{font-size:11px;line-height:1.6}
 .double-battle-heading{left:13px;top:56px;padding:4px 6px;font-size:7px;gap:7px}.double-battle-heading button{min-height:20px;min-width:20px}
 .double-health{width:calc(50% - 20px);padding:8px 9px;border-radius:2px 7px 2px 7px}.double-health.enemy{top:94px}.double-health.enemy.slot-0{left:13px;right:auto}.double-health.enemy.slot-1{right:13px}.double-health.player{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 99px)}.double-health.player.slot-0{left:13px}.double-health.player.slot-1{left:auto;right:13px}.double-health strong{font-size:21px}.double-health small{font-size:8px}.double-health-types{margin-top:4px;gap:3px}.double-health-types i{font-size:5px;padding:2px 3px}.double-health-types b{font-size:5px}.double-health-track{height:6px;margin-top:5px}.double-health .double-health-value{font-size:7px;margin-top:4px}
 .double-objective{left:13px;right:13px;top:181px;flex-direction:row;align-items:center;justify-content:space-between;padding:6px 8px;font-size:8px;gap:8px}.double-objective small{font-size:7px;text-align:right}
 body.game-mode .double-commands.action-area{padding:10px;gap:9px;height:var(--game-dock-height);max-height:var(--game-dock-height)}.double-actor-tabs{gap:6px}.double-actor-tabs>button{padding:6px 7px;min-height:42px;flex-direction:column;align-items:flex-start;gap:3px}.double-actor-tabs strong{font-size:22px}.double-actor-tabs small{font-size:6px;max-width:100%;text-align:left}.double-moves{gap:7px}.double-moves>button{padding:7px 8px;min-height:48px}.double-moves strong{font-size:23px}.double-moves small{font-size:6px;line-height:1.4}.double-turn-actions{gap:6px}.double-turn-actions>button{font-size:7px;padding:8px 8px;min-height:34px}.double-turn-actions>span{font-size:6px;max-width:65px}.double-targets{gap:7px}.double-targets>span{font-size:7px}.double-targets>button:not(.double-cancel){gap:5px;padding:5px;min-height:55px}.double-targets .sprite{width:35px;height:35px}.double-targets>button>span{font-size:22px}.double-targets>button small{font-size:6px}.double-targets .double-cancel{min-height:25px;font-size:7px}
 .activity-objective-banner{top:200px;width:calc(100% - 28px);padding:7px 9px}.activity-objective-banner strong{font-size:22px}.activity-objective-banner small{font-size:8px;line-height:1.4}
}
@media(max-height:500px) and (min-width:701px){.double-health{width:180px;padding:6px 8px}.double-health.enemy{top:70px}.double-health.enemy.slot-1{right:217px}.double-health.player.slot-1{left:217px}.double-health.player{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 18px)}.double-health strong{font-size:20px}.double-health-types i{font-size:5px}.double-health-value{display:none!important}.double-objective{top:157px;font-size:8px}.double-objective small{font-size:7px}.double-battle-heading{top:59px;font-size:7px}.double-actor-tabs strong{font-size:20px}.double-actor-tabs small{font-size:6px}.double-actor-tabs>button{min-height:29px}.double-moves>button{min-height:34px;padding:5px 7px}.double-moves strong{font-size:21px}.double-moves small{font-size:6px}.double-turn-actions>button{min-height:26px;font-size:7px;padding:6px 8px}.double-turn-actions>span{font-size:6px}body.game-mode .double-commands.action-area{padding:9px;gap:6px}}
.depth-section-nav{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.depth-section-nav>button{flex:1;text-align:left;font:800 10px var(--body);color:#36523e;border:1px solid #9eaf89;background:#e4e5c5;padding:12px;min-height:42px}
body.game-mode .game-workshop .game-window__body,body.game-mode .game-research .game-window__body{background:#f3efd6;color:#29463e}
body.game-mode .game-chronicle .game-window__body{background:#193335}
.creature-builds-console{color:#2a493e;min-width:0;max-width:100%}
.creature-builds-console header h2{font:600 34px var(--pixel);margin:0}
.creature-builds-console p{font:500 11px/1.65 var(--body);color:#5a6d50;margin:10px 0}
.creature-builds-console p.notice{background:#e2e3c4;color:#35513f;border-color:#a9b58e}
.creature-builds-console label{display:flex;flex-direction:column;gap:8px;font:800 10px var(--body);margin:15px 0;color:#53694e}
.creature-builds-console select{max-width:100%;min-width:0;padding:11px 13px;border:2px solid #a0b28c;background:#fff5d5;color:#35523d;font:600 11px var(--body);border-radius:2px}
.workshop-profile{display:flex;gap:20px;align-items:center;padding:18px;border:2px solid #a2b58c;background:#e4e8c8}
.workshop-profile .sprite{width:110px;height:110px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.workshop-profile h3{font:600 34px var(--pixel);margin:0 0 6px}
.workshop-profile p{font-size:11px;margin:9px 0 0}
.workshop-profile p>strong{color:#6f6339}
.aspect-badge{display:inline-block;padding:5px 8px;background:#365b4b;color:#f5e4a9;font:800 8px var(--body);margin-top:5px}
.workshop-teaching,.workshop-evolutions{padding-top:24px}
.creature-builds-console section h3{font:600 29px var(--pixel);margin:12px 0 8px}
.creature-builds-console section h3>small{font:700 10px var(--body);margin-left:12px;color:#9c8144}
.workshop-manual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:15px 0}
.workshop-manual{border:1px solid #aabc96;background:#e6e9cb;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.workshop-manual>strong{font:600 27px/1 var(--pixel);color:#34533f;overflow-wrap:anywhere}
.workshop-manual>small{font:700 8px/1.5 var(--body);color:#7d7753;overflow-wrap:anywhere}
.workshop-manual>p{font-size:10px;line-height:1.6;margin:2px 0 8px}
.workshop-manual>.button{font:800 9px var(--body);margin-top:auto;min-height:37px;max-width:100%}
.workshop-milestones{padding:0;margin:14px 0;list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.workshop-milestones li{border:1px solid #b5c39f;background:#e5e7c8;padding:13px 11px;min-width:0}
.workshop-milestones strong{font:600 23px/1 var(--pixel);display:block;color:#40593f}
.workshop-milestones span{display:block;font:500 9px/1.6 var(--body);color:#71805a;margin-top:8px}
@media(max-width:900px){.workshop-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-milestones{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.depth-section-nav{gap:8px}.depth-section-nav>button{font-size:8px;padding:10px;min-width:120px}.creature-builds-console header h2{font-size:28px}.creature-builds-console p{font-size:11px}.workshop-profile{padding:13px;gap:10px;align-items:flex-start}.workshop-profile .sprite{width:75px;height:75px}.workshop-profile h3{font-size:28px}.workshop-profile p{font-size:10px;line-height:1.6}.workshop-profile .type-tag{font-size:6px}.creature-builds-console section h3{font-size:27px}.creature-builds-console section h3>small{display:block;font-size:9px;margin:7px 0 0}.workshop-manual-grid{grid-template-columns:1fr;gap:10px}.workshop-manual{padding:14px}.workshop-manual>strong{font-size:26px}.workshop-manual>.button{min-height:41px;font-size:9px}.workshop-milestones{grid-template-columns:1fr;gap:8px}.workshop-milestones li{padding:12px}.workshop-milestones span{font-size:10px;line-height:1.5}.workshop-milestones strong{font-size:24px}}

body.game-mode .double-moves strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){body.game-mode .double-moves strong{font-size:21px}}
/* Each order pane keeps its intrinsic size so footer buttons never cover targets. */
body.game-mode .double-commands .double-moves,
body.game-mode .double-commands .double-targets{flex:0 0 auto;min-height:max-content}
@media(min-width:701px) and (min-height:501px){body.game-mode[data-battle-format="doubles"]{--game-dock-height:238px}}
@media(max-height:500px) and (min-width:701px){
 body.game-mode[data-battle-format="doubles"]{--game-dock-height:150px}
 .double-health{padding:4px 8px}
 .double-health-types{display:none}
 .double-health.enemy{top:8px}
 .double-health.enemy.slot-0{right:calc(50% - 185px)}
 .double-health.enemy.slot-1{right:calc(50% + 8px)}
 .double-health.player{bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 6px)}
 .double-health-track{margin-top:4px}
 body.game-mode .double-commands.action-area{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 27px;gap:7px 10px;overflow:hidden}
 .double-actor-tabs{grid-column:1;grid-row:1;flex-direction:column;gap:6px}
 .double-actor-tabs>button{min-height:31px;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:5px 6px}
 .double-actor-tabs strong{font-size:19px}.double-actor-tabs small{max-width:100%;font-size:6px;text-align:left}
 body.game-mode .double-commands .double-moves{grid-column:2;grid-row:1;min-height:0;height:100%;grid-template-rows:1fr 1fr;gap:6px;overflow:auto}
 .double-moves>button{min-height:32px}.double-moves strong{font-size:21px}
 body.game-mode .double-commands .double-targets{grid-column:2;grid-row:1;min-height:0;max-height:100%;overflow:auto;align-content:flex-start;gap:5px}
 .double-targets>button:not(.double-cancel){min-height:35px;padding:4px}.double-targets .sprite{width:30px;height:30px}.double-targets>button>span{font-size:20px}.double-targets>button small{font-size:6px}.double-targets .double-cancel{min-height:23px;font-size:7px}
 .double-turn-actions{grid-column:1/-1;grid-row:2;min-height:0}
}

/* Doubles keeps both queued recipients legible before the shared turn. */
.double-battle-heading>span{min-width:0;flex:1}
.double-battle-heading>span>small{display:block;font-size:9px;margin-top:4px}
body.game-mode .double-actor-tabs>button{flex-direction:column;align-items:flex-start;justify-content:center;min-height:64px;gap:3px}
body.game-mode .double-actor-tabs small{font-size:10px;line-height:1.4;max-width:100%;text-align:left;overflow-wrap:anywhere}
body.game-mode .double-moves small,
body.game-mode .double-targets>button small{font-size:10px;line-height:1.4}
body.game-mode .double-turn-actions>span{font-size:10px;color:#4e603d}
body.game-mode .double-turn-actions>button,
body.game-mode .double-targets .double-cancel{min-height:44px;font-size:10px}
body.game-mode .double-targets>span{font-size:10px}
body.game-mode .double-turn-actions{position:sticky;bottom:-1px;background:#f3efd6;padding-top:4px;z-index:2}
body.game-mode[data-battle-format=doubles] .battle-message{overflow:auto;overscroll-behavior:contain}
@media(min-width:701px) and (min-height:501px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:282px}
}
@media(max-width:700px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:280px;--game-dock-bottom:10px}
 body.game-mode .double-commands.action-area{padding:8px;gap:6px;overflow:auto}
 body.game-mode .double-actor-tabs>button{padding:5px 6px;min-height:68px}
 body.game-mode .double-actor-tabs strong{font-size:22px;max-width:100%}
 body.game-mode .double-moves>button{min-height:58px;padding:6px}
 body.game-mode .double-moves small{margin-top:4px}
 body.game-mode .double-battle-heading{left:10px;right:10px;top:56px;padding:0 5px;min-height:44px;font-size:10px}
 body.game-mode .double-battle-heading button{min-width:44px;min-height:44px;font-size:13px}
 body.game-mode .double-health{width:calc(50% - 16px);padding:5px 7px}
 body.game-mode .double-health.enemy{top:106px}
 body.game-mode .double-health strong{font-size:20px}
 body.game-mode .double-health small{font-size:9px}
 body.game-mode .double-health-types{margin-top:3px}
 body.game-mode .double-health-types i,
 body.game-mode .double-health-types b{font-size:8px;padding:0 2px}
 body.game-mode .double-health-track{margin-top:3px;height:5px}
 body.game-mode .double-health .double-health-value{font-size:10px;margin-top:2px}
 body.game-mode[data-battle-format=doubles] .battle-message{left:10px;right:10px;width:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + 10px);height:52px;padding:7px 11px;gap:5px}
 body.game-mode[data-battle-format=doubles] .battle-message p{font-size:18px;line-height:1.15;margin:0;align-self:flex-start}
 body.game-mode[data-battle-format=doubles] .message-next{display:none}
}
@media(max-width:700px) and (max-height:700px){
 body.game-mode .double-health{height:56px;padding:3px 6px}
 body.game-mode .double-health.enemy{top:104px}
 body.game-mode .double-health.player{top:164px;bottom:auto}
 body.game-mode .double-health-types{display:flex;position:absolute;left:6px;bottom:4px;max-width:50%;margin:0}
 body.game-mode .double-health-types i{display:none}
 body.game-mode .double-health-types b{font-size:8px;line-height:1.1}
 body.game-mode[data-battle-format=doubles] .battle-message{height:42px}
}
@media(max-height:500px) and (min-width:701px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:184px;--game-dock-bottom:10px}
 body.game-mode .double-battle-heading{top:8px;left:10px;max-width:calc(38% - 22px);height:44px;padding:0 6px;font-size:10px}
 body.game-mode .double-battle-heading button{min-width:44px;min-height:44px}
 body.game-mode .double-health{width:calc(25% - 15px);height:auto;min-height:64px;padding:4px 7px;top:58px;bottom:auto}
 body.game-mode .double-health.player.slot-0{left:10px}
 body.game-mode .double-health.player.slot-1{left:calc(25% + 5px)}
 body.game-mode .double-health.enemy.slot-0{right:10px}
 body.game-mode .double-health.enemy.slot-1{right:calc(25% + 5px)}
 body.game-mode .double-health strong{font-size:20px}
 body.game-mode .double-health small{font-size:9px}
 body.game-mode .double-health-types{display:flex;margin-top:3px}
 body.game-mode .double-health-types i,body.game-mode .double-health-types b{font-size:8px;padding:0 2px}
 body.game-mode .double-health .double-health-value{display:block!important;font-size:10px;margin-top:2px}
 body.game-mode .double-commands.action-area{padding:8px;gap:6px 8px;grid-template-columns:140px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 44px;overflow:auto}
 body.game-mode .double-actor-tabs{gap:6px;min-height:0;overflow:auto}
 body.game-mode .double-actor-tabs>button{min-height:50px;padding:3px 5px;flex:1}
 body.game-mode .double-actor-tabs strong{font-size:20px}
 body.game-mode .double-moves>button{min-height:50px;padding:4px 6px}
 body.game-mode .double-targets>button:not(.double-cancel){min-height:44px}
 body.game-mode[data-battle-format=doubles] .battle-message{padding:12px}
 body.game-mode[data-battle-format=doubles] .battle-message p{font-size:20px}
}

/* Leave a measured arena lane for all four supplied combatant portraits. */
@media(max-width:700px) and (min-height:501px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:272px;--double-message-height:60px}
 body.game-mode[data-battle-format=doubles] .double-health.player{top:auto;bottom:calc(var(--game-dock-height) + var(--game-dock-bottom) + var(--double-message-height) + 20px)}
 body.game-mode[data-battle-format=doubles] .battle-message{height:60px}
}
@media(max-width:700px) and (min-height:501px) and (max-height:700px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:218px}
}
@media(max-width:700px) and (min-height:501px) and (max-height:600px){
 body.game-mode[data-battle-format=doubles]{--game-dock-height:clamp(132px,calc(100dvh - 386px),182px)}
 body.game-mode .double-actor-tabs>button{min-height:58px}
 body.game-mode .double-actor-tabs strong{font-size:19px}
}

body.game-mode[data-battle-format=doubles] .battle-message:has(.double-recap){padding:6px 10px;display:block;overflow:hidden}
body.game-mode[data-battle-format=doubles] .battle-message:has(.double-recap)>.message-diamond{display:none}
body.game-mode .double-recap{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-color:#a6bdc4 #183440;scrollbar-width:thin}
body.game-mode .double-recap>small{float:right;font:700 10px/1.4 var(--body);color:#ffe0a0;margin:0 0 0 5px}
body.game-mode[data-battle-format=doubles] .battle-message .double-recap>p{font:600 13px/1.45 var(--body);color:#f5f8fb;text-shadow:none;margin:0 0 5px;display:block}
body.game-mode .double-recap:focus-visible{outline:2px solid #ffce78;outline-offset:-2px}
