/* Allocate the full table to both fleets; defence zones live beside each row. */
@media(min-width:1001px) and (min-height:501px){
 html body.battle-focus .app-shell.standalone{grid-template-rows:30px minmax(0,1fr)}
 html body.battle-focus .game-top{height:30px;padding:1px 10px}
 html body.battle-focus .compact-brand img{width:24px;height:26px}
 html body.battle-focus .compact-brand strong{font-size:10px}
 html body.battle-focus .compact-brand strong span{font-size:5px}
 html body.battle-focus .game-top .lab-nav button{padding:3px 9px;font-size:9px}
 html body.battle-focus .game-top .small{padding:3px 9px;font-size:9px}
 html body.battle-focus .standalone .battle-layout.table-fit{grid-template-columns:minmax(0,1fr);--aside-space:24px;--board-gutters:180px}
 html body.battle-focus .standalone .battle-layout.preview-open{grid-template-columns:minmax(0,1fr) clamp(270px,21vw,350px);--aside-space:calc(clamp(270px,21vw,350px) + 24px)}
 html body.battle-focus .standalone .battle-layout:not(.preview-open)>.battle-aside{display:none!important}
 html body.battle-focus .standalone .battle-layout.preview-open>.battle-aside{display:flex!important}
 html body.battle-focus .standalone .battle-layout.preview-peek:not(.preview-open)>.battle-aside{display:block!important;position:fixed;right:14px;top:88px;width:290px;height:min(710px,calc(100dvh - 110px));z-index:70;pointer-events:none;filter:drop-shadow(0 12px 35px #000c)}
 html body.battle-focus .standalone .battle-layout.preview-peek:not(.preview-open) .battle-aside .inspector{background:#07111cf7;border:1px solid #a4c9e4}
 html body.battle-focus .standalone .battle-wrap{grid-template-rows:minmax(0,1fr) var(--hand-block) 40px 18px;gap:3px}
 html body.battle-focus .standalone .battle-layout.max-field{--hand-block:125px}
 html body.battle-focus .standalone .board{grid-template-columns:minmax(0,1fr) 145px;grid-template-rows:20px minmax(0,1fr) 18px minmax(0,1fr) 20px}
 html body.battle-focus .standalone .board>.player-bar.opponent{grid-row:1;grid-column:1/-1}
 html body.battle-focus .standalone .board>.defence-row:nth-child(2){grid-row:2;grid-column:2}
 html body.battle-focus .standalone .board>.unit-row:nth-child(3){grid-row:2;grid-column:1}
 html body.battle-focus .standalone .board>.equator{grid-row:3;grid-column:1/-1;height:18px}
 html body.battle-focus .standalone .board>.unit-row:nth-child(5){grid-row:4;grid-column:1}
 html body.battle-focus .standalone .board>.defence-row:nth-child(6){grid-row:4;grid-column:2}
 html body.battle-focus .standalone .board>.player-bar:nth-child(7){grid-row:5;grid-column:1/-1}
 html body.battle-focus .standalone .board>.defence-row{height:100%;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:8px 7px;border-left:1px solid #46627c66;background:#07111b88}
 html body.battle-focus .standalone .defence-row .shield-stack{gap:3px;justify-content:center}
 html body.battle-focus .standalone .defence-row .shield{width:18px;height:25px}
 html body.battle-focus .standalone .defence-row .zone-caption{font-size:7px;text-align:center;line-height:1.3}
 html body.battle-focus .standalone .defence-row .base-compact img{width:34px;height:46px}
 html body.battle-focus .standalone .defence-row .base-compact strong{font-size:20px}
 html body.battle-focus .standalone .defence-row .side-piles{gap:16px;font-size:9px}
 html body.battle-focus .standalone .player-bar{height:20px;padding:1px 8px}
 html body.battle-focus .standalone .unit-row{gap:10px;padding:4px 12px}
 html body.battle-focus .standalone .actionbar{height:40px;padding:3px 9px}
 html body.battle-focus .standalone .table-bottom-tools{height:18px}
 html body.battle-focus .standalone .table-bottom-tools button{padding:2px 7px;font-size:8px}
 html body.battle-focus .standalone .table-result{grid-column:1/-1;grid-row:2/5}
 html body.battle-focus .standalone .table-view{display:inline-flex}
 .field-tools{display:inline-flex;gap:4px}
}
@media(max-width:1000px),(max-height:500px){.field-tools{display:none}}

@media(min-width:1001px) and (min-height:501px){
 html body.battle-focus .standalone .battle-layout:has(.empty-hand){--hand-block:30px}
 html body.battle-focus .standalone .battle-layout:has(.empty-hand) .empty-hand{font-size:8px;letter-spacing:1px}
}
