/* A bounded battle workspace. Large descriptions live in inspectable detail panes. */
body.workspace91{--dock91:214px;--safe91:env(safe-area-inset-bottom,0px)}
body.workspace91.battle-active66{height:100dvh;min-height:0;overflow:hidden}
.workspace91 .game-shell{height:100dvh;min-height:0;max-width:1680px;padding:0 12px;display:flex;flex-direction:column}
.workspace91 .topbar{flex:none;height:48px;min-height:48px;padding:4px 0;margin:0}
.workspace91 .topbar h1{font-size:19px}.workspace91 .topbar .eyebrow{font-size:9px;margin:0}
.workspace91 .battle-board{display:grid;grid-template-rows:auto minmax(100px,1fr) auto;gap:8px;flex:1;min-height:0;height:auto;overflow:hidden;margin:8px 0 0;padding:0 0 var(--safe91)}
.overview91{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-width:0}
.workspace91 .overview91>.fighter-panel{display:block!important;min-height:0;padding:10px!important;min-width:0;overflow:visible;border-radius:10px}
.workspace91 .player-summary{display:block!important;margin:0}
.workspace91 .fighter-identity{width:auto;min-width:0;gap:9px;align-items:center}
.workspace91 .fighter-identity h2{font-size:16px;line-height:1.3;margin:0}.workspace91 .side-label{font-size:10px;margin:0}
.workspace91 .class-emblem{width:48px;height:48px;min-width:48px;overflow:visible}
.workspace91 .class-emblem .portrait-image{border-radius:7px}
.workspace91 .passive-details66{display:none}
.workspace91 .resource-row{display:grid!important;grid-template-columns:minmax(100px,2fr) repeat(5,minmax(35px,1fr));gap:5px;max-width:none;width:100%;margin-top:7px}
.workspace91 .resource-row .resource,.workspace91 .resource-row .resource.hp{grid-column:auto!important;grid-row:auto!important;display:flex;position:relative;justify-content:center;align-items:center;flex-wrap:wrap;min-width:0!important;min-height:36px;padding:4px!important;gap:3px;border-radius:6px}
.workspace91 .resource-row .resource.hp{display:block}.workspace91 .resource b{font-size:15px}.workspace91 .resource small{font-size:10px;white-space:nowrap}
.workspace91 .resource-icon{display:none}.workspace91 .hp-track{height:5px;margin-top:4px}.workspace91 .energy-orbs{display:none}
.workspace91 .status-row{display:flex;flex-wrap:nowrap;overflow:auto;max-width:100%;margin:5px 0 0;min-height:24px;gap:4px;scrollbar-width:thin}
.workspace91 .status-chip{flex:none;white-space:nowrap;font-size:11px;line-height:1.2;padding:4px 7px;cursor:pointer}
.detail-open91{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:0;border-top:1px solid #697f9438;color:#c2d7e9;text-align:left;font:inherit;font-size:12px;min-height:30px;padding:5px 0 0;cursor:pointer}
.mechanic-mini91{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eed397;font-size:11px}
.detail-open91:after{content:'＋';font-size:18px;margin-left:auto}
.workspace91 .combat-center{display:grid!important;grid-template-columns:minmax(230px,.9fr) minmax(300px,1.2fr);grid-template-rows:1fr;position:relative;min-height:0;gap:12px;padding:10px!important;overflow:hidden}
.workspace91 .battle-view-tabs66{display:none}.workspace91 .weapon-zone{grid-column:1;grid-row:1;min-height:0;align-self:stretch;gap:8px;grid-template-columns:1fr 1fr!important}
.workspace91 .versus-mark{display:none}.workspace91 .weapon-slot{min-height:0;justify-content:center;padding:8px;gap:5px;overflow:auto}
.workspace91 .weapon-art{width:100%;height:auto;aspect-ratio:3/1;flex:none;min-height:0;max-height:80px}
.workspace91 .weapon-art img{object-fit:cover;width:100%;height:100%}.workspace91 .weapon-slot strong{font-size:13px}.workspace91 .weapon-slot small{font-size:11px}
.workspace91 .weapon-slot .slot-label{font-size:10px}.workspace91 .weapon-action{min-height:34px;padding:6px;font-size:11px}
.workspace91 .combat-center .battle-log{display:flex!important;flex-direction:column;grid-column:2;grid-row:1;min-height:0;overflow:hidden;padding:8px;border-radius:8px}
.workspace91 .log-heading{gap:8px;flex-wrap:wrap;align-items:center;font-size:11px;margin-bottom:4px}
.workspace91 #log-list{flex:1 1 0;height:0;min-height:0;max-height:none!important;overflow-y:auto;font-size:12px;line-height:1.5;padding-right:5px;scrollbar-width:thin}
.workspace91 #log-list li{padding:5px 2px;min-height:0}.workspace91 #log-list li.log-turn-divider{padding:3px;font-size:10px}
#expand-log91{padding:4px 8px;font-size:11px;min-height:28px;margin-left:auto}.log-count91{font-size:10px;color:#a3b3c2}
.log-home91{display:none}
.hand-dock91{display:flex;flex-direction:column;min-width:0;min-height:0;height:var(--dock91);border-radius:10px 10px 0 0;background:#111c28;border:1px solid #415468;overflow:hidden}
.workspace91 .hand-dock91>.hand-heading{position:static;flex:none;min-height:42px;height:auto;padding:5px 10px;margin:0;gap:8px;background:transparent;box-shadow:none;border:0;display:flex;flex-wrap:wrap}
.workspace91 .hand-dock91 .hand-heading>span{font-size:12px}.workspace91 .hand-heading #end-turn-button{margin-left:auto;min-height:32px;font-size:12px;padding:5px 16px}
.workspace91 #player-hand{position:static;display:grid!important;grid-template-columns:repeat(var(--hand-count91,10),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);width:100%;height:auto;flex:1;min-height:0;overflow:auto;gap:6px;margin:0;padding:4px 8px 7px;box-sizing:border-box;background:none;box-shadow:none;touch-action:pan-y}
.workspace91 #player-hand>.game-card{display:flex;flex-direction:column;flex:none!important;width:100%!important;min-width:0!important;max-width:none;min-height:0!important;height:100%!important;padding:6px!important;gap:4px;transform:none!important;overflow:hidden;border-radius:7px!important}
.workspace91 #player-hand .card-topline{min-height:20px}.workspace91 #player-hand .card-cost{width:24px;height:24px;min-width:24px;font-size:13px}.workspace91 #player-hand .card-type{font-size:10px}
.workspace91 #player-hand .card-art-frame{height:44px!important;min-height:30px;flex:none;width:100%;margin:0}
.workspace91 #player-hand .card-name{font-size:12px;line-height:1.3;min-height:16px}.workspace91 #player-hand .card-text{font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}.workspace91 #player-hand .card-footer{display:none}
.workspace91 #player-hand>.game-card:disabled{pointer-events:auto}
.workspace91 #player-hand>.game-card[data-keyword-tooltip]::before{display:none!important}
.workspace91 #player-hand .card-name{margin:0}
.workspace91 .hand-dock91>.choice-hint80,.workspace91 .hand-dock91>.feedback-counter761,.workspace91 .hand-dock91>.choice-inspect65{position:static;flex:none;margin:0;max-height:80px;overflow:auto;font-size:12px;padding:6px 10px;transform:none;width:auto}
.workspace91 .choice-hint80:not([hidden])~#player-hand{min-height:75px}
.detail-dialog91,.log-dialog91{width:min(800px,calc(100vw - 24px));max-height:85dvh;padding:16px;background:#14202d;color:#e5edf5;border:1px solid #678095;border-radius:12px;box-sizing:border-box;overflow:auto}
.detail-heading91{display:flex;gap:8px;align-items:center;position:sticky;top:0;background:#14202d;z-index:1;padding:0 0 10px}.detail-heading91 h2{font-size:18px;flex:1;margin:0}.detail-heading91 button{min-height:40px}
.detail-passive91 p,.detail-passive91 small{white-space:pre-line;line-height:1.7;font-size:14px}.detail-passive91 h3{font-size:14px;color:#edcd89}.detail-status91{border-bottom:1px solid #67809533;padding-bottom:8px}.detail-status91 small{display:block;color:#a9bed1}
.detail-content91>*{max-width:100%;margin:10px 0}.detail-content91 button{min-height:40px}.detail-content91 .planned80{display:block}.detail-content91 .planned80[hidden]{display:none}
.workspace91 .detail-dialog91,.workspace91 .log-dialog91{margin:auto;height:auto;inset:0;backdrop-filter:none}
.workspace91 .detail-dialog91[open]{display:block}
.workspace91 .log-dialog91[open]{display:flex;flex-direction:column;height:85dvh;overflow:hidden}.workspace91 .log-dialog91 .battle-log{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:10px}.workspace91 .log-dialog91 #log-list{font-size:14px;line-height:1.65}
.card-inspect91{position:fixed;z-index:70;pointer-events:none;padding:10px;background:#14202d;color:#eaf2f8;border:1px solid #bda778;border-radius:10px;box-shadow:0 12px 35px #0009;max-height:60dvh;overflow:auto;box-sizing:border-box}.card-inspect91[hidden]{display:none}.card-inspect91 .game-card{min-height:0!important;width:100%;padding:12px;display:flex;flex-direction:column;opacity:1!important;filter:none!important}.card-inspect91 .card-art-frame{height:90px}.card-inspect91 .card-name{font-size:17px}.card-inspect91 .card-text{font-size:14px;line-height:1.6}.inspect-keyword91{white-space:pre-line;font-size:12px;line-height:1.6}
.workspace91 [hidden]{display:none!important}
.workspace91 .hand-dock91 .choice-inspect65[hidden]{display:none!important}
.workspace91.counter-phase761 .choice-hint80{display:none!important}
.workspace91.counter-phase761 .hand-dock91{height:var(--dock91)}
.workspace91 .mobile-card-zoom66{bottom:calc(var(--dock91) + var(--safe91) + 8px);max-height:calc(100dvh - var(--dock91) - 65px);border-radius:10px;background:#14202d}
.workspace91 .feedback-source761{display:none!important}
.battle-fx91{position:fixed;inset:0;pointer-events:none;z-index:49;overflow:hidden}.attack-trail91{position:absolute;display:block;height:5px;border-radius:50%;background:linear-gradient(90deg,transparent,var(--ink91),white);box-shadow:0 0 15px var(--ink91);transform-origin:0 50%;transform:rotate(var(--angle91));animation:trail91 calc(.4s * var(--fx-time92, 1)) ease-out both}.attack-trail91.hammer,.attack-trail91.axe,.attack-trail91.rock{height:10px}
.attack-hit91{position:absolute;width:96px;height:96px;border:3px solid var(--ink91);border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 20px var(--ink91),inset 0 0 20px var(--ink91);animation:hit91 calc(.5s * var(--fx-time92, 1)) ease-out both}.attack-hit91.guard{border-radius:20% 20% 45% 45%;border-color:#96d9ff}.attack-hit91.health:after{content:'';position:absolute;inset:22%;background:var(--ink91);clip-path:polygon(0 44%,100% 30%,40% 58%,90% 80%,0 60%)}
@keyframes trail91{0%{opacity:0;clip-path:inset(0 100% 0 0)}30%{opacity:1;clip-path:inset(0 0 0 0)}100%{opacity:0}}
@keyframes hit91{0%{opacity:1;scale:.45}60%{opacity:.8}100%{opacity:0;scale:1.4}}
.action-readout91{position:absolute;z-index:5;left:10px;top:7px;max-width:calc(45% - 10px);display:flex;flex-direction:column;gap:5px;pointer-events:none;background:#101b2de8;border:1px solid #b2c8db;border-radius:7px;padding:8px 12px;box-shadow:0 4px 15px #0006;font-size:12px}.action-readout91[hidden]{display:none}.action-readout91 span{font-size:15px;color:#f1d59b}
.result-summary91{display:block;margin-bottom:16px}.result-advice-title91{display:block;color:#e7cb8f;text-align:left}.result-advice91{padding-left:20px;margin:10px 0 16px;text-align:left;line-height:1.8;word-break:keep-all}.result-advice91 li+li{margin-top:8px}#result-copy>small{display:block;font-size:11px;text-align:left;color:#9cabb9}.result-card{max-height:85dvh;overflow:auto}#result-copy{white-space:normal}
.workspace91 #result-dialog[open]{display:flex;align-items:center;justify-content:center}
.manual-guide91{padding:14px;margin:10px 0;border:1px solid #647a8f;border-radius:9px;line-height:1.7}.manual-guide91 h3{font-size:15px;color:#e5c47e;margin:0 0 6px}.manual-guide91 p{margin:6px 0;white-space:pre-line}.manual-guide91 details{font-size:13px}
.rule-search91{display:flex;gap:8px;align-items:center;position:sticky;top:0;padding:10px 0;background:#14202d;z-index:2}.rule-search91 input{flex:1;min-width:0;padding:10px;border-radius:7px;background:#0d1721;color:#edf4fc;border:1px solid #627e92;font:inherit}.rule-search91 span{font-size:12px;white-space:nowrap}
.rule-basics91{padding:12px;border:1px solid #72899e;border-radius:8px;margin-bottom:10px;line-height:1.7}.rule-basics91 summary{cursor:pointer;color:#ebd092}.rule-basics91 p{font-size:14px;margin:8px 0}.battle-rules91{order:1;font-size:11px;padding:5px 9px;min-height:34px}.workspace91 .hand-heading #end-turn-button{order:2}
#rules-catalog article p{white-space:pre-line!important;line-height:1.7}#rules-catalog article details summary{cursor:pointer;line-height:1.6}#rules-catalog article details summary strong{display:block;color:#ebd092;font-size:15px}#rules-catalog article details summary span{display:block;font-size:13px;color:#c6d2df}#rules-catalog article[hidden],.rules-section891[hidden]{display:none!important}
@media(max-width:1000px){.workspace91 .resource-row{grid-template-columns:repeat(5,minmax(0,1fr))}.workspace91 .resource-row .resource.hp{grid-column:1/-1!important;min-height:25px}.workspace91 .resource-row .resource{min-height:28px}.workspace91 #player-hand .card-type{display:none}.workspace91 #player-hand .card-text{-webkit-line-clamp:2}}
@media(max-width:720px){
 .card-inspect91{display:none!important}
 body.workspace91{--dock91:248px}.workspace91 .game-shell{padding:0 5px}.workspace91 .topbar{height:44px;min-height:44px}.workspace91 .topbar h1{font-size:15px}.workspace91 .topbar .turn-pill{font-size:10px;padding:4px}.workspace91 .topbar #new-game-button{min-height:36px;font-size:11px}.workspace91 #battle-options80{min-height:36px;min-width:34px}
 .workspace91 .battle-board{gap:5px;margin-top:5px}.overview91{gap:5px}.workspace91 .overview91>.fighter-panel{padding:6px!important}.workspace91 .fighter-identity{gap:5px}.workspace91 .fighter-identity h2{font-size:12px}.workspace91 .side-label{font-size:9px}.workspace91 .class-emblem{width:32px;height:36px;min-width:32px}
 .workspace91 .resource-row{gap:3px;margin-top:4px}.workspace91 .resource-row .resource{gap:1px;min-height:26px;padding:2px!important}.workspace91 .resource b{font-size:12px}.workspace91 .resource small{font-size:9px}.workspace91 .status-row{min-height:22px;margin-top:3px}.workspace91 .status-chip{font-size:10px;padding:3px 5px}.detail-open91{min-height:32px;font-size:11px;gap:2px;display:block;position:relative;padding-right:12px}.detail-open91:after{position:absolute;right:0;top:7px}.mechanic-mini91{display:block;font-size:9px;max-width:100%}
 .workspace91 .combat-center{grid-template-columns:1fr;grid-template-rows:60px minmax(65px,1fr);gap:5px;padding:5px!important}.workspace91 .weapon-zone{grid-column:1;grid-row:1;gap:5px;display:grid!important}.workspace91 .weapon-slot{padding:3px 5px;gap:1px;display:grid;grid-template-columns:1fr auto;align-content:center}.workspace91 .weapon-art{display:none}.workspace91 .weapon-slot strong{font-size:11px;grid-column:1}.workspace91 .weapon-slot small{font-size:9px;grid-column:1}.workspace91 .weapon-slot .slot-label{font-size:9px}.workspace91 .weapon-slot .weapon-action{min-height:36px;max-width:90px;grid-column:2;grid-row:1/4;font-size:10px}.workspace91 .dual-weapons{grid-column:1/-1;display:flex}.workspace91 .dual-weapons[hidden]{display:none}.workspace91 .dual-weapon-slot{flex:1;padding:2px}.workspace91 .dual-weapon-rules{display:none}
 .workspace91 .combat-center .battle-log{grid-column:1;grid-row:2;padding:4px 6px}.workspace91 .log-heading{font-size:10px;margin-bottom:2px;gap:4px}.log-count91{display:none}.workspace91 #log-list{font-size:11px;line-height:1.45}.workspace91 #log-list li{padding:3px 1px}#expand-log91{min-height:28px;font-size:10px;padding:3px 7px}
 .workspace91 .hand-dock91>.hand-heading{min-height:40px;padding:3px 7px;gap:4px}.workspace91 .hand-heading #end-turn-button{min-height:34px;font-size:11px;padding:4px 12px}
 .workspace91 #player-hand{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;padding:3px 5px 5px;overflow:auto}
 .workspace91 #player-hand>.game-card{padding:4px!important;gap:2px}.workspace91 #player-hand .card-topline{min-height:16px;justify-content:flex-end}.workspace91 #player-hand .card-cost{width:18px;height:18px;min-width:18px;font-size:11px}.workspace91 #player-hand .card-art-frame{height:29px!important;min-height:20px}.workspace91 #player-hand .card-name{font-size:10px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.workspace91 #player-hand .card-text{display:none}.workspace91 #player-hand .card-type{display:none}
 .workspace91 .hand-dock91>.choice-hint80{max-height:60px;font-size:11px}.workspace91 .hand-dock91>.feedback-counter761{font-size:11px;padding:4px 8px;min-height:30px}.workspace91 .hand-dock91:has(.choice-hint80:not([hidden])){height:calc(var(--dock91) + 45px)}
 .action-readout91{max-width:calc(100% - 20px);font-size:11px;padding:5px 8px}.action-readout91 span{font-size:13px}.workspace91 .pvp-connection{font-size:10px;min-height:0;line-height:1.3;padding:2px;margin:0}.workspace91 .pvp-clocks{font-size:10px;margin:0}
 .detail-dialog91,.log-dialog91{padding:10px}.workspace91 .log-dialog91 #log-list{font-size:13px}.workspace91 .tutorial-coach{bottom:calc(var(--dock91) + 8px)}
}
@media(max-height:680px){body.workspace91{--dock91:174px}.workspace91 .overview91 .resource-row .resource{min-height:22px}.workspace91 .class-emblem{height:30px;width:30px;min-width:30px}.workspace91 #player-hand .card-art-frame{height:22px!important;min-height:16px}.workspace91 #player-hand .card-text{display:none}.workspace91 .status-row{min-height:20px}.workspace91 .battle-board{gap:3px}.workspace91 .overview91>.fighter-panel{padding:4px!important}.workspace91 .mechanic-mini91{display:none}}
@media(max-height:490px){.workspace91.battle-active66{overflow:auto}.workspace91 .game-shell{height:auto;min-height:100dvh}.workspace91 .battle-board{min-height:460px}.workspace91 .hand-dock91{position:sticky;bottom:0}}
@media(prefers-reduced-motion:reduce){.attack-trail91,.attack-hit91{display:none}}
@media(max-width:720px){.workspace91 .detail-open91{min-height:42px}.workspace91 .hand-heading #end-turn-button,.workspace91 .weapon-slot .weapon-action{min-height:42px}}
@media(max-width:720px){
 .workspace91 .resource b,.workspace91 .resource small{line-height:1.15}
 .workspace91 .pvp-clocks span{padding:4px;line-height:1.3}.workspace91 .pvp-clocks b{font-size:13px;margin-left:3px}
}
@media(max-width:720px) and (max-height:680px){
 body.workspace91{--dock91:162px}.workspace91 .combat-center{grid-template-rows:52px minmax(65px,1fr)}
 .workspace91 #player-hand>.game-card{position:relative}
 .workspace91 #player-hand .card-topline{position:absolute;top:3px;right:3px;z-index:1}
 .workspace91 #player-hand .card-art-frame{height:14px!important;min-height:14px}
 .workspace91 #player-hand .card-name{font-size:10px;line-height:1.2}
}
