/* PATCH 0.93 TEST: stable hand proportions, symmetric public boards, compact landscape. */
@media(min-height:541px){
 body.workspace91.battle-active66,body.workspace91.has-mechanics92.battle-active66,body.workspace91.has-chess92.battle-active66{height:100dvh;min-height:0;overflow:hidden}
 .workspace91 .game-shell,.workspace91.has-mechanics92 .game-shell,.workspace91.has-chess92 .game-shell{height:100dvh;min-height:0}
 .workspace91 .battle-board,.workspace91.has-mechanics92 .battle-board,.workspace91.has-chess92 .battle-board{display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 .workspace91 .overview91{display:grid;flex:none}.workspace91 .mechanic-board92{flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;align-content:start}
 .workspace91 .hand-dock91{flex:none;height:210px!important;position:relative!important;min-height:0}.workspace91 .hand-dock91:has(.mechanic-actions92:not([hidden])){height:250px!important}
 .workspace91 .overview91>.fighter-panel{padding:7px!important;gap:3px!important}.workspace91 .overview91 .fighter-identity{min-height:0!important;gap:8px!important;flex-direction:row!important}
 .workspace91 .overview91 .class-emblem{width:42px!important;height:46px!important;min-width:42px!important;align-self:auto!important}
 .workspace91 .overview91 .fighter-identity h2{font-size:15px!important;min-height:0}.workspace91 .overview91 .side-label{margin:0}
 .workspace91 .overview91 .weapon-slot{min-height:30px!important;padding:4px 6px!important}.workspace91 .detail-open91{min-height:28px!important;padding:3px 0}
 .workspace91 .overview91 .resource-row .resource{min-height:33px!important}.workspace91 .status-row{min-height:22px;max-height:44px}
 .workspace91 .combat-center{flex:none;min-height:35px}
}
.workspace91 .overview91,.workspace91.has-chess92 .overview91,.workspace91.has-chess92 .overview91:has(.two-boards92){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start;padding:4px 0;gap:10px}
.workspace91 .overview91>#player-panel{grid-column:1!important;grid-row:1!important}
.workspace91 .overview91>#ai-panel{grid-column:2!important;grid-row:1!important}
.mechanic-board92{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.mechanic-side93{display:flex;flex-direction:column;gap:7px;min-width:0}
.mechanic-side93[data-side=player]{grid-column:1;grid-row:1}.mechanic-side93[data-side=ai]{grid-column:2;grid-row:1}
.mechanic-side93[hidden]{display:none}
.mechanic-side93>*{box-sizing:border-box;min-width:0;width:100%;margin:0!important;padding:8px;border:1px solid #4c627655;border-radius:9px;background:#111d29f5}
.mechanic-side93>[data-mechanic-label92]::before{content:attr(data-mechanic-label92);display:block;font-size:11px;color:#cfb77f;margin-bottom:5px}
.mechanic-side93 #shop76{width:100%;min-width:0}
.mechanic-side93 .shop-products76{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible}
.mechanic-side93 .chef-board79{display:block}.mechanic-side93 .paladin88{display:flex;flex-direction:column}
@media(max-width:720px){.mechanic-side93 .shop-products76{grid-template-columns:1fr}}
.mechanic-side93 .chess-board68{width:min(220px,100%);margin:5px auto}
.workspace91.has-mechanics92 .overview91>.fighter-panel{padding:7px!important;position:relative}
.workspace91.has-mechanics92 .overview91 .detail-open91{position:absolute;right:7px;top:7px;width:28px;height:28px;min-height:28px!important;font-size:0!important;border:0;padding:0;overflow:hidden}
.workspace91.has-mechanics92 .overview91 .detail-open91::after{content:'ⓘ';font-size:18px}.workspace91.has-mechanics92 .overview91 .detail-open91>*{display:none}
.workspace91.has-mechanics92 .overview91 .fighter-identity{padding-right:30px}
@media(min-width:721px){.workspace91.has-mechanics92 .overview91 .resource-row .resource{padding:4px!important;min-height:36px!important}.workspace91.has-mechanics92 .overview91 .resource-row .resource.hp{padding:4px 7px!important}.mechanic-side93 .chess-zone68>details{display:flow-root}.mechanic-side93 .chess-board68{float:left;width:175px;margin:4px 12px 0 0}.mechanic-side93 .chess-zone68 p{line-height:1.7}}
.mechanic-side93 .chess-zone68 p{font-size:11px;line-height:1.5}.mechanic-side93 .chess-zone68::before{content:attr(data-board-label92);color:#dec488;font-size:11px}
.workspace91 #player-hand:not(:has(.scope-placement-bar)){display:flex!important;gap:7px;overflow-x:auto;overflow-y:hidden;align-items:stretch;justify-content:flex-start;scrollbar-width:thin}
.workspace91 #player-hand>.game-card,.workspace91 #player-hand>.contract-hand84{flex:0 0 clamp(150px,16vw,218px);width:clamp(150px,16vw,218px);max-width:218px;min-width:0;height:100%;box-sizing:border-box}
.workspace91 #player-hand>.contract-hand84>.game-card{width:100%;min-width:0}
.energy93{display:inline-flex;align-items:center;gap:6px;margin-left:9px;color:#f7d882;font-size:15px;white-space:nowrap}
.energy93 .pips93{letter-spacing:2px;font-size:12px}.energy93 b{font-size:19px}
.energy93.changed93{animation:energy-pop93 350ms ease-out}@keyframes energy-pop93{50%{transform:scale(1.12);color:#fff3c2}}
.game-card.bomb{background:linear-gradient(155deg,#242830,#080c12)!important;border-color:#687280!important;color:#eef2f7}
.game-card.bomb .card-cost{display:grid!important;visibility:visible!important;opacity:1!important;background:#e3c782;color:#161718;flex:none}
.workspace91 .overview91 .weapon-slot:has(>strong:only-of-type):not(:has(.weapon-action:not([disabled]))){min-height:38px}
#options-dialog{height:100dvh;max-height:100dvh;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y}
#options-dialog[open]{display:block}
#options-dialog>.dialog-card{margin:0 auto}
html:has(#options-dialog[open]),body:has(#options-dialog[open]){overflow:hidden!important}
#options-dialog>.dialog-card{height:auto!important;max-height:none!important;overflow:visible!important;min-height:0;touch-action:pan-y}
@media(max-width:720px){.workspace91 #player-hand>.game-card,.workspace91 #player-hand>.contract-hand84{flex:0 0 146px!important;width:146px!important;max-width:146px!important}.energy93{font-size:12px;gap:4px;margin-left:5px}.energy93 b{font-size:16px}.energy93 .pips93{display:none}.mechanic-board92{gap:5px}.mechanic-side93>*{padding:5px}.mechanic-side93 .chess-board68{width:100%}.mechanic-side93 .astro-row82{gap:2px}.mechanic-side93 .chess-zone68 p{font-size:9px}}
@media(orientation:landscape) and (max-height:540px){
 #setup-dialog{max-height:calc(100dvh - 12px);overflow:auto}#setup-dialog .setup-card{height:auto!important;min-height:calc(100dvh - 30px);padding:10px!important;gap:6px!important}
 #setup-dialog .setup-heading h2{font-size:18px;margin:0}#setup-dialog .eyebrow,#setup-dialog .dialog-intro,#setup-dialog .desktop-rule-note,#setup-dialog .mobile-rule-details,#setup-dialog .ad-slot{display:none!important}
 #setup-dialog .setup-deck-grid{flex:1 0 auto!important;min-height:185px;gap:10px}#setup-dialog .deck-options{height:175px!important;min-height:175px!important;overflow:auto!important}
 #setup-dialog #start-button{min-height:36px;padding:6px;position:sticky;bottom:0}#setup-dialog .deck-filters80{gap:5px;padding:0;margin:0}#setup-dialog .deck-filters80 label{font-size:0;gap:0}#setup-dialog .deck-filters80 input,#setup-dialog .deck-filters80 select,#setup-dialog .deck-filters80 button{font-size:12px;min-height:29px;height:29px;padding:3px 6px}#setup-dialog .picked-decks80{margin:0;font-size:10px}#setup-dialog fieldset{padding:0;margin:0}#setup-dialog .setup-heading{margin:0;min-height:30px}#setup-dialog .setup-heading button{min-height:28px;padding:3px 7px;font-size:11px}#setup-dialog .random-deck-button{min-height:24px;font-size:10px;margin:0}#setup-dialog .deck-options{margin-top:3px}
 body.workspace91.battle-active66{height:auto;overflow:auto}.workspace91 .game-shell{height:auto;min-height:100dvh}.workspace91 .battle-board{overflow:visible;flex:none}
 .workspace91 .overview91 .fighter-identity{flex-direction:row;gap:6px}.workspace91 .overview91 .class-emblem{width:40px;height:44px;min-width:40px}.workspace91 .overview91 .fighter-identity h2{font-size:12px}
 .workspace91 .hand-dock91{position:static;height:200px}.workspace91 #player-hand .card-art-frame{height:45px!important}.workspace91 .status-row{max-height:40px}
}
@media(prefers-reduced-motion:reduce){.energy93.changed93{animation:none}}
@media(min-width:1001px) and (hover:hover){
 .workspace91 #player-hand:not(:has(.scope-placement-bar)){gap:0!important;overflow:visible!important;flex-wrap:nowrap!important}
 .workspace91 #player-hand:not(:has(.scope-placement-bar))>.game-card,.workspace91 #player-hand:not(:has(.scope-placement-bar))>.contract-hand84{flex:0 0 var(--card-width93,180px)!important;width:var(--card-width93,180px)!important;max-width:218px!important;position:relative;z-index:var(--card-order93,1);transition:transform 120ms ease,box-shadow 120ms ease}
 .workspace91 #player-hand>.game-card~.game-card,.workspace91 #player-hand>.contract-hand84~.game-card,.workspace91 #player-hand>.game-card~.contract-hand84,.workspace91 #player-hand>.contract-hand84~.contract-hand84{margin-left:var(--card-overlap93,0px)!important}
 .workspace91 #player-hand>.game-card:hover,.workspace91 #player-hand>.game-card:focus-visible,.workspace91 #player-hand>.contract-hand84:hover,.workspace91 #player-hand>.contract-hand84:focus-within{z-index:100!important;transform:translateY(-10px) scale(1.04)!important;box-shadow:0 0 0 2px #e4c779,0 8px 24px #0009}
 .workspace91 #player-hand>:first-child{transform-origin:left bottom}.workspace91 #player-hand>:last-child{transform-origin:right bottom}
 .workspace91 .hand-dock91{overflow:visible!important}
}
