/* Stage 3: hero / hand first. Compact original weapon controls, on-demand log. */
/* Chess is persistent gameplay information, not an inspection modal. */
.chess-lane92{display:grid;grid-template-columns:1fr;align-content:center;gap:6px;min-width:0}
.chess-lane92[hidden]{display:none}.chess-lane92.two-boards92{grid-template-columns:1fr 1fr}
.chess-lane92 .chess-zone68{grid-column:auto;margin:0;padding:7px;flex:none}
.chess-lane92 .chess-zone68::before{content:attr(data-board-label92);display:block;font-size:12px;font-weight:700;color:#ead193;margin-bottom:5px}
.chess-lane92 .chess-board68{width:min(225px,100%);margin:6px auto}
.chess-lane92 .chess-zone68 p{font-size:10px;line-height:1.5;margin:5px 0}
.workspace91.has-chess92 .overview91{grid-template-columns:minmax(0,1fr) minmax(215px,280px) minmax(0,1fr);padding:4px 0;gap:8px}
.workspace91.has-chess92 .overview91:has(.two-boards92){grid-template-columns:minmax(0,1fr) minmax(330px,420px) minmax(0,1fr)}
@media(max-width:1000px){
 body.workspace91.has-chess92.battle-active66{height:auto;min-height:100dvh;overflow:auto}
 .workspace91.has-chess92 .game-shell{height:auto;min-height:100dvh}
 .workspace91.has-chess92 .battle-board{flex:none;overflow:visible;grid-template-rows:auto auto auto}
 .workspace91.has-chess92 .overview91,.workspace91.has-chess92 .overview91:has(.two-boards92){grid-template-columns:1fr 1fr}
 .workspace91.has-chess92 #ai-panel{grid-column:1;grid-row:1}.workspace91.has-chess92 #player-panel{grid-column:2;grid-row:1}
 .workspace91.has-chess92 .chess-lane92{grid-column:1/-1;grid-row:2}
 .chess-lane92:not(.two-boards92) .chess-zone68>details{display:flow-root}
 .chess-lane92:not(.two-boards92) .chess-zone68 .chess-board68{float:left;width:min(180px,54%);margin:6px 8px 3px 0}
 .chess-lane92:not(.two-boards92) .chess-zone68 p{padding-top:4px}
 .chess-lane92 .chess-board68{width:min(180px,100%);margin:0 auto}
 .workspace91.has-chess92 .hand-dock91{position:static}
}
/* Scope placement is one accessible list, never another compressed card-grid row. */
.workspace91 .hand-dock91:has(#player-hand .scope-placement-bar){height:clamp(280px,44dvh,410px)}
.workspace91 #player-hand:has(.scope-placement-bar){display:block!important;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.workspace91 #player-hand:has(.scope-placement-bar)>.game-card,.workspace91 #player-hand:has(.scope-placement-bar)>.contract-hand84{display:none!important}
.workspace91 .scope-placement-bar{height:auto;min-height:min-content;padding:9px;gap:6px}
.workspace91 .scope-placement-bar>span{font-size:12px;line-height:1.5}
.workspace91 .scope-placement-options{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.workspace91 .scope-placement-button{min-height:88px;padding:7px 9px;font-size:13px;touch-action:pan-y;scroll-margin:10px}
.workspace91 .scope-placement-button strong{white-space:normal;line-height:1.3}
.workspace91 .scope-placement-button small{font-size:11px;color:#e8ce91}
.scope-art92{display:block;width:100%;height:30px;overflow:hidden;pointer-events:none}
.workspace91 .scope-art92 .card-art-frame{display:block;height:30px!important;min-height:30px!important;width:100%;margin:0}
.workspace91 .scope-art92 img{width:100%;height:100%;object-fit:cover}
@media(max-width:720px){.workspace91 .scope-placement-options{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace91 .scope-placement-bar>span{font-size:11px}}
.mechanic-actions92{display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;flex:none;min-height:44px;max-width:100%;padding:3px 0;scrollbar-width:thin}
.mechanic-actions92[hidden]{display:none}
.workspace91 .hand-dock91:has(.mechanic-actions92:not([hidden])){height:calc(var(--dock91) + 44px)}
.quick-fixed92{display:flex;align-items:center;gap:5px;flex:none}
.mechanic-actions92 button{min-height:38px;white-space:nowrap;font-size:12px;padding:6px 10px;border-radius:7px}
@media(max-width:720px){.mechanic-actions92{min-height:40px;gap:4px}.mechanic-actions92 button{font-size:11px;min-height:36px;padding:5px 8px}}
.effect-sample92{position:relative;min-height:110px;display:grid;place-items:center;border:1px solid #576c84;border-radius:10px;margin-top:8px;background:#0d1723;font-size:12px;color:#90a5ba;overflow:hidden}
.workspace91 .battle-board{grid-template-rows:minmax(0,1fr) auto auto;gap:8px}
.workspace91 .overview91{min-height:0;align-items:center;gap:18px;padding:12px 3%}
.workspace91 .overview91>.fighter-panel{display:flex!important;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:8px;padding:18px!important;max-height:100%;overflow:auto;box-shadow:0 8px 24px #0005}
.workspace91 .overview91 .fighter-identity{gap:18px;min-height:96px;flex:none}
.workspace91 .overview91 .class-emblem{width:100px;height:112px;min-width:100px;flex:none}
.workspace91 .overview91 .fighter-identity h2{font-size:21px;word-break:keep-all}
.workspace91 .overview91 .side-label{font-size:12px;margin-bottom:8px;color:#9fb5c9}
.workspace91 .resource-row{grid-template-columns:minmax(95px,2fr) repeat(5,minmax(36px,1fr));margin:0;gap:6px}
.workspace91 .resource-row .resource.hp{grid-column:1/-1!important;min-height:46px;padding:8px 10px!important}
.workspace91 .resource-row{grid-template-columns:repeat(5,minmax(0,1fr))}
.workspace91 .resource-row .resource:not(.hp){min-height:38px}
.workspace91 .resource-row .resource.hp b{font-size:21px}.workspace91 .hp-track{height:7px}
.workspace91 .resource b{font-size:18px}.workspace91 .resource small{font-size:11px}
.workspace91 .status-row{margin:0;min-height:28px;flex-wrap:wrap;max-height:65px;overflow:auto}
.workspace91 .status-chip{font-size:12px;min-height:26px;display:inline-flex;align-items:center}
.workspace91 .overview91 .weapon-slot{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;align-items:center;min-height:62px;flex:none;padding:7px 10px;gap:4px 8px;text-align:left;overflow:hidden;border-radius:8px}
.workspace91 .overview91 .weapon-art{display:none}
.workspace91 .overview91 .weapon-slot>.slot-label{display:none}
.workspace91 .overview91 .weapon-slot>strong{font-size:13px;grid-column:1;grid-row:1}
.workspace91 .overview91 .weapon-slot>small{font-size:11px;grid-column:1;grid-row:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace91 .overview91 .weapon-slot>.weapon-action{grid-column:2;grid-row:1/3;min-height:42px;max-width:145px;padding:6px 10px;font-size:11px}
.workspace91 .overview91 .weapon-slot.dual-weapon-holder{display:block}
.workspace91 .overview91 .dual-weapons{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.workspace91 .overview91 .dual-weapon-slot{padding:4px;min-width:0;display:flex;flex-direction:column;gap:2px}
.workspace91 .overview91 .dual-weapon-slot strong{font-size:11px}.workspace91 .overview91 .dual-weapon-slot small{font-size:10px}
.workspace91 .overview91 .dual-weapon-art,.workspace91 .overview91 .dual-weapon-rules{display:none}
.workspace91 .detail-open91{min-height:42px;font-size:12px;margin-top:0;padding-top:5px}
.workspace91 .mechanic-mini91{font-size:11px}
.workspace91 .combat-center{display:flex!important;flex-direction:row;align-items:center;gap:10px;padding:5px 10px!important;min-height:46px;overflow:visible}
.workspace91 .combat-center>.weapon-zone,.workspace91 .combat-center>.battle-log,.workspace91 .battle-view-tabs66{display:none!important}
.recent-action92{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#aebed0}
.log-open92{min-height:36px;white-space:nowrap;padding:6px 12px;font-size:12px}
.workspace91 .action-readout91{left:50%;top:auto;bottom:54px;transform:translateX(-50%);max-width:90%;text-align:center;min-width:180px;background:#101b2df5}
.workspace91 .log-dialog91{width:min(1000px,calc(100vw - 24px))}.workspace91 .log-dialog91 #log-list{flex:1;height:0}
.workspace91 .log-dialog91 .log-heading{display:none}
.workspace91 #player-hand{grid-template-columns:repeat(var(--hand-count91,10),minmax(0,1fr))}
.workspace91 .overview91 .class-emblem:has(.portrait-image){border-radius:12px}
.workspace91 .overview91 .class-emblem .portrait-image{width:100%;height:100%;object-fit:cover;border-radius:12px}
.workspace91 .detail-open91:focus-visible,.log-open92:focus-visible{outline:2px solid #f0d183;outline-offset:2px}
@media(min-width:1001px) and (min-height:800px){body.workspace91{--dock91:250px}.workspace91 #player-hand .card-art-frame{height:64px!important}.workspace91 #player-hand .card-text{-webkit-line-clamp:4}.workspace91 .overview91 .class-emblem{width:120px;height:134px;min-width:120px}}
@media(max-width:1000px){.workspace91 .overview91{padding:4px 0;gap:8px}.workspace91 .overview91>.fighter-panel{padding:10px!important;gap:6px}.workspace91 .overview91 .class-emblem{width:65px;height:72px;min-width:65px}.workspace91 .overview91 .fighter-identity{min-height:72px;gap:10px}.workspace91 .overview91 .fighter-identity h2{font-size:17px}}
@media(max-width:720px){
 .workspace91 .battle-board{gap:4px}.workspace91 .overview91{align-items:center;gap:5px}
 .workspace91 .overview91>.fighter-panel{padding:7px!important;gap:5px;border-radius:10px}
 .workspace91 .overview91 .fighter-identity{flex-direction:column;align-items:flex-start;gap:6px;min-height:0}
 .workspace91 .overview91 .class-emblem{width:58px;height:64px;min-width:58px;align-self:center}
 .workspace91 .overview91 .fighter-identity h2{font-size:12px;line-height:1.4;min-height:32px}
 .workspace91 .overview91 .side-label{font-size:10px;margin:0}
 .workspace91 .resource-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}
 .workspace91 .resource-row .resource.hp{min-height:33px;padding:4px!important}.workspace91 .resource-row .resource.hp b{font-size:16px}
 .workspace91 .resource-row .resource:not(.hp){min-height:34px;display:flex;flex-direction:column;gap:2px;padding:2px!important}
 .workspace91 .resource b{font-size:13px}.workspace91 .resource small{font-size:8px}.workspace91 .hp-track{height:5px;margin-top:3px}
 .workspace91 .status-row{min-height:22px;max-height:48px}.workspace91 .status-chip{font-size:10px;min-height:22px;padding:3px 5px}
 .workspace91 .overview91 .weapon-slot{display:flex;flex-direction:column;align-items:stretch;min-height:56px;padding:5px;gap:3px}
 .workspace91 .overview91 .weapon-slot>strong{font-size:11px}.workspace91 .overview91 .weapon-slot>small{font-size:9px}
 .workspace91 .overview91 .weapon-slot>.weapon-action{max-width:none;min-height:36px;font-size:10px;padding:3px}
 .workspace91 .overview91 .weapon-slot.dual-weapon-holder{padding:2px}.workspace91 .overview91 .dual-weapons{gap:2px}
 .workspace91 .overview91 .dual-weapon-slot .weapon-action{font-size:9px;padding:3px;min-height:36px}
 .workspace91 .detail-open91{min-height:38px;font-size:10px}.workspace91 .mechanic-mini91{font-size:9px}
 .workspace91 .combat-center{min-height:39px;padding:3px 6px!important;gap:5px}.recent-action92{font-size:10px}.log-open92{font-size:10px;padding:4px 8px;min-height:34px}
 .workspace91 #player-hand{grid-template-columns:repeat(5,minmax(0,1fr))}
 .workspace91 .action-readout91{bottom:44px;font-size:11px}
}
@media(max-height:740px){.workspace91 .overview91 .fighter-identity{min-height:0}.workspace91 .overview91 .class-emblem{width:60px;height:64px;min-width:60px}.workspace91 .overview91{padding:0}.workspace91 .overview91>.fighter-panel{gap:4px;padding:8px!important}}
@media(max-width:720px) and (max-height:740px){
 .workspace91 .overview91 .fighter-identity{flex-direction:row;align-items:center;gap:5px}
 .workspace91 .overview91 .class-emblem{width:34px;height:38px;min-width:34px;align-self:auto}
 .workspace91 .overview91 .fighter-identity h2{font-size:11px;min-height:0}
 .workspace91 .resource-row .resource:not(.hp){min-height:28px}.workspace91 .resource-row .resource.hp{min-height:30px}
 .workspace91 .overview91 .weapon-slot{min-height:48px}.workspace91 .mechanic-mini91{display:none}
 .workspace91 .overview91>.fighter-panel{padding:5px!important;gap:3px}
}
/* Live decision surfaces stay beside the cards; only explanations use details. */
body.workspace91.has-mechanics92.battle-active66{height:auto;min-height:100dvh;overflow:auto}
.workspace91.has-mechanics92 .game-shell{height:auto;min-height:100dvh}
.workspace91.has-mechanics92 .battle-board{flex:none;overflow:visible;grid-template-rows:auto auto auto auto}
.workspace91.has-mechanics92 .overview91{padding:3px 0;align-items:start}
.workspace91.has-mechanics92 .overview91>.fighter-panel{padding:10px!important;gap:5px;overflow:visible;max-height:none}
.workspace91.has-mechanics92 .overview91 .fighter-identity{min-height:0;gap:10px}
.workspace91.has-mechanics92 .overview91 .class-emblem{width:52px;height:58px;min-width:52px;align-self:auto}
.workspace91.has-mechanics92 .overview91 .fighter-identity h2{font-size:17px;min-height:0}
.workspace91.has-mechanics92 .hand-dock91{position:static}
@media(min-width:1001px){
 .workspace91.has-mechanics92 .overview91 .fighter-identity{min-height:0}
 .workspace91.has-mechanics92 .overview91 .class-emblem{width:40px;height:44px;min-width:40px}
 .workspace91.has-mechanics92 .resource-row{grid-template-columns:minmax(110px,2fr) repeat(5,minmax(38px,1fr));gap:5px;margin-top:5px}
 .workspace91.has-mechanics92 .resource-row .resource.hp{grid-column:auto!important;min-height:40px}
 .workspace91.has-mechanics92 .resource-row .resource:not(.hp){min-height:40px}
 .workspace91.has-mechanics92 .overview91 .weapon-slot{min-height:44px}
 .workspace91.has-mechanics92 .detail-open91{min-height:28px;font-size:11px}
 .workspace91.has-mechanics92 .status-row{min-height:24px}
}
.mechanic-board92{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;min-width:0}
.mechanic-board92[hidden]{display:none}
.mechanic-board92>[data-mechanic-label92]{flex:1 1 340px;grid-column:auto;min-width:0;width:auto;margin:0;padding:9px;box-sizing:border-box;border:1px solid #596b8255;border-radius:10px;background:#111c28f2;font-size:13px;line-height:1.45}
.mechanic-board92>[hidden]{display:none!important}
.mechanic-board92>[data-mechanic-label92]::before{content:attr(data-mechanic-label92);display:block;grid-column:1/-1;font-size:11px;font-weight:700;color:#a9c0d9;margin-bottom:5px}
.mechanic-board92>#shop76,.mechanic-board92>#chef-board79{flex-basis:100%;order:1;grid-column:1/-1}
.mechanic-board92>#shop76::before,.mechanic-board92>#chef-board79::before{display:none}
.mechanic-board92 .shop-products76{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none;overflow:visible}
.mechanic-board92 .shop-products76 button{padding:8px;gap:4px;min-height:44px;touch-action:pan-y}
.mechanic-board92 .shop-products76 button strong{font-size:13px}.mechanic-board92 .shop-products76 button span{font-size:12px}
.mechanic-board92 .shop76 details{margin:4px 0}
.mechanic-board92 .math-zone62{gap:3px;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);align-items:center}.mechanic-board92 .math-zone62 strong{font-size:19px}
.mechanic-board92 .math-zone62 b{grid-column:1/-1}
.mechanic-board92 .puppet63 p{margin:5px 0}.mechanic-board92 .puppet63{padding:7px}
.mechanic-board92 .public-info84 .supplies84{align-items:start}.mechanic-board92 .supplies84>*{max-width:none}
.mechanic-board92 #mansion90 button{min-height:44px;margin:3px;padding:7px 10px}
.mechanic-board92 #mansion90 p{margin:5px 0;font-size:11px}
.mechanic-board92 .room90{padding:5px;font-size:11px}
.workspace91 .overview91 .paladin88{margin:0;font-size:12px;padding:8px}
@media(max-width:720px){
 .workspace91.has-mechanics92 .overview91>.fighter-panel{padding:6px!important;gap:4px}
 .workspace91.has-mechanics92 .overview91 .fighter-identity{flex-direction:row;gap:5px;align-items:center}
 .workspace91.has-mechanics92 .overview91 .class-emblem{width:34px;height:38px;min-width:34px}
 .workspace91.has-mechanics92 .overview91 .fighter-identity h2{font-size:11px}
 .mechanic-board92{gap:5px}
 .mechanic-board92>[data-mechanic-label92]{padding:7px;font-size:12px}
 .mechanic-board92 .shop-products76{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .mechanic-board92 .shop-products76 button{padding:6px;gap:3px}
 .mechanic-board92 .shop-products76 button strong{font-size:12px}.mechanic-board92 .shop-products76 button span{font-size:11px}
 .mechanic-board92 .shop-products76 button small{font-size:10px}.mechanic-board92 .shop76 header{font-size:11px}
 .mechanic-board92 .math-zone62 strong{font-size:17px}
}
