/* Readable desktop table: real card proportions, grouped hand, large live inspector. */
@media(min-width:1001px) and (min-height:501px){
 .battle-focus .app-shell.standalone{grid-template-rows:38px minmax(0,1fr)}
 .battle-focus .game-top{height:38px;padding:2px 12px}
 .battle-focus .standalone .page.battle-page{padding:4px 8px 5px;gap:4px}
 .battle-focus .battle-topline{min-height:31px}
 .battle-focus .table-tools button{min-height:27px;padding:5px 9px!important}
 .battle-focus .standalone .battle-layout.table-fit{grid-template-columns:minmax(0,1fr) clamp(270px,21vw,350px);gap:8px;--aside-space:calc(clamp(270px,21vw,350px) + 24px);--hand-block:clamp(190px,29dvh,300px);--board-gutters:40px}
 .battle-focus .battle-wrap{grid-template-rows:minmax(0,1fr) var(--hand-block) 44px 20px;gap:3px}
 .battle-focus .standalone .board{grid-template-rows:21px 35px minmax(0,1fr) 20px minmax(0,1fr) 35px 21px}
 .battle-focus .standalone .player-bar{height:21px;padding:1px 9px}
 .battle-focus .standalone .defence-row{height:35px;padding:1px 8px;gap:15px}
 .battle-focus .standalone .shield{width:23px;height:27px}
 .battle-focus .base-compact img{width:21px;height:29px}
 .battle-focus .standalone .equator{height:20px}
 .battle-focus .standalone .unit-row{padding:3px 9px;gap:8px;grid-template-rows:minmax(0,1fr)}
 html[data-card-size] .battle-focus .standalone .unit-row>.unit-card,html[data-card-size] .battle-focus .standalone .unit-row>.slot{max-height:100%;height:min(100%,calc((100vw - var(--aside-space) - var(--board-gutters))/6/.716));width:auto;aspect-ratio:.716;justify-self:center}
 .battle-focus .standalone .unit-card .card-stats{font-size:14px}
 .battle-focus .table-hand-zone{grid-template-rows:16px minmax(0,1fr);padding:0 9px}
 .battle-focus .standalone .hand{display:flex;align-items:center;justify-content:center;gap:7px;padding:2px 6px 7px;overflow:visible}
 html[data-card-size] .battle-focus .standalone .hand>.unit-card{height:100%;width:auto;aspect-ratio:.716;max-height:100%;max-width:calc((100% - (var(--hand-count) - 1)*7px)/var(--hand-count));min-width:0;flex:0 1 auto;transform:none}
 .battle-focus .standalone .hand>.unit-card:hover,.battle-focus .standalone .hand>.unit-card.selected{transform:translateY(-12px) scale(1.08);z-index:6;box-shadow:0 0 0 2px #b8e4ff,0 12px 30px #000c}
 .battle-focus .standalone .hand-title,.battle-focus .standalone .hand-cost{display:none}
 .battle-focus .battle-aside{display:flex!important;height:100%;min-height:0}
 .battle-focus .battle-aside>.coach-box,.battle-focus .battle-aside>.battle-log{display:none}
 .battle-focus .battle-aside>.inspector{height:100%;width:100%;max-height:none;padding:12px;gap:8px;display:flex;flex-direction:column;overflow:hidden}
 .battle-focus .inspector .inspect-art{width:100%;height:auto;max-height:min(51dvh,510px);object-fit:contain;flex:0 1 auto;min-height:0}
 .battle-focus .inspector .card-text{font-size:13px;line-height:1.45;display:block;max-height:8em;overflow:auto;margin:0}
 .battle-focus .inspector h4{font-size:18px;margin:0}
 .battle-focus .inspector .card-meta{font-size:12px;margin:0}
 .battle-focus .inspector>.actions{margin-top:auto}
 .battle-focus .standalone .actionbar{height:44px;padding:4px 9px}
 .battle-focus .standalone .actionbar strong{font-size:12px}
 .battle-focus .standalone .actionbar p{font-size:11px}
 .battle-focus .table-view{display:none}
 .inspector-empty{display:grid;place-content:center;text-align:center;flex:1;color:#90abc0;gap:14px}
 .inspector-empty img{width:min(100%,240px);max-height:48dvh;object-fit:contain;border-radius:9px;margin:auto;opacity:.65}
}
.battle-focus [data-do=undo]{border-color:#7899af;background:linear-gradient(#354b5d,#182737);color:#eef8ff;font-weight:700}
.battle-focus [data-do=undo]:disabled{opacity:.4}
.battle-focus .unit-card.action-ready{outline:2px solid #8cd5ff;outline-offset:2px}
.battle-focus .unit-card:focus-visible{outline:3px solid #f6d997;outline-offset:3px}
.battle-focus .hand>.unit-card img{object-fit:contain}
.table-action-popover{position:absolute;z-index:40;background:#0a1726f5;border:1px solid #9cc5df;border-radius:8px;padding:8px;box-shadow:0 12px 35px #000a;display:flex;gap:7px;left:50%;bottom:5px;transform:translateX(-50%)}
@media(max-width:1000px){.table-tools [data-do=undo]{font-size:10px!important}.battle-focus .hand-title{display:none}}
@media(min-width:1001px) and (min-height:501px){
 html body.battle-focus .standalone .battle-wrap{grid-template-columns:minmax(0,1fr);width:100%}
 html body.battle-focus .standalone .battle-wrap>*,html body.battle-focus .standalone .hand{min-width:0;max-width:100%;width:100%}
 html body.battle-focus .standalone .battle-aside .inspector .inspect-art{width:100%;height:auto;max-height:min(51dvh,510px);flex:0 1 auto;object-fit:contain}
 html body.battle-focus .standalone .battle-aside .inspector .card-text{font-size:13px;line-height:1.45;display:block;-webkit-line-clamp:unset;max-height:8em;overflow:auto}
 html body.battle-focus .standalone .battle-aside .inspector .card-meta{font-size:12px}
}
