/* 僅排版與回饋；數值、牌區、觸發完全來自核心 snapshot。 */
button{min-height:44px!important}button:disabled{opacity:.6}button,select,input,textarea{touch-action:manipulation}input,textarea{font:inherit;color:var(--text);background:#091827;border:1px solid #647d91;border-radius:6px;padding:10px;min-height:44px;max-width:100%}textarea{width:100%;resize:vertical;font-size:11px;line-height:1.6}input:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.battle{min-height:900px;height:100svh;grid-template-rows:68px minmax(260px,1fr) 76px 108px 238px 50px}.battle-dashboard{padding:8px 28px;background:#0d1b2a;border-top:1px solid var(--line);z-index:4;min-width:0}.counters{display:flex;align-items:center;gap:22px;font-size:12px;color:var(--muted);height:28px}.counters b{color:var(--cyan);font-size:16px}.counters button{min-height:44px!important;margin-left:auto;white-space:nowrap;font-size:11px;padding:0 12px}.power-zone{display:flex;gap:7px;align-items:center;overflow-x:auto;max-width:100%;padding-bottom:5px;min-height:34px;font-size:11px}.power-chip{flex:none;min-height:44px!important;font-size:11px;padding:4px 10px;color:var(--cyan)}.battle-dashboard{height:auto;min-height:94px}.battle{grid-template-rows:68px minmax(260px,1fr) 94px 108px 238px 50px}.selection-copy p{white-space:pre-line;max-height:62px;overflow-y:auto;overscroll-behavior:contain}.selection-copy>strong{overflow-wrap:anywhere}.feedback{overflow-wrap:anywhere}.command-strip{min-width:0}.selection-actions{flex-wrap:wrap;max-width:240px}.card-effect{white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.card-name{overflow-wrap:anywhere}.card .cost.modified{font-size:12px;min-width:44px;width:auto;padding:2px 4px;border-radius:6px;color:#fff0b2}.card[data-type=power]{border-color:#a48dce}.card[data-card-id="card.token.pulse-round"]{border-color:#e8b36b}.intent{min-width:210px;max-width:230px}.intent strong{white-space:normal;font-size:13px}.intent button{min-width:44px;flex:none}.icon-button{min-width:44px}.figure-target{min-height:44px}.hand-nav button{min-height:44px!important}.hand-window{bottom:0}.hand{padding-bottom:12px}.status-chip{font-size:10px}.actor-meters{max-width:220px}.statuses:empty{display:none}.end-panel>small{line-height:1.5;text-align:center}.annihilation{position:fixed;left:50%;top:60%;transform:translate(-50%,-50%);padding:14px 22px;background:#392b1ff2;border:1px solid #e8b36b;border-radius:10px;z-index:90;pointer-events:none;color:#ffdda7;animation:smoke-feedback .85s ease-out forwards}.annihilation[hidden]{display:none!important}@keyframes smoke-feedback{0%{opacity:0;transform:translate(-50%,-35%)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-75%)}}body[data-motion=off] .annihilation{display:none!important}dialog{max-width:580px;width:min(580px,calc(100% - 24px));max-height:calc(100svh - 24px)}dialog button{padding:8px 12px;margin-right:5px}dialog ol{font-size:13px;line-height:1.8;padding-left:20px}dialog label.check{display:flex;align-items:center;font-size:12px;gap:8px}dialog label.check input{width:22px;min-height:22px}dialog>button{display:inline-block}#import-error{color:var(--amber)}#build-info{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere}#import-summary{font-size:12px}#details-content{max-height:55svh;overflow:auto;overflow-wrap:anywhere}#result-dialog{text-align:center}#result-dialog h2{color:var(--cyan)}.hp-track span{transition:width .15s linear}
@media(max-width:999px){.battle{height:auto;min-height:100svh;grid-template-rows:60px 290px 94px 128px 242px 50px}.hand-zone{grid-template-columns:80px minmax(0,1fr) 115px}.hand-window{inset:35px 0 44px}.hand{padding-top:15px}.hand-nav{height:44px}.hand-nav span{display:none}.hand.many .card,.card{height:175px}.battle-dashboard{padding:8px 18px}.selection-actions{max-width:180px}.selection-copy p{max-height:75px}.command-strip{padding-left:18px;padding-right:18px}.feedback{max-width:150px}.statuses{position:static;width:auto;max-width:none}.energy-panel{font-size:10px}}
@media(max-width:600px) and (orientation:portrait){.battle{min-height:840px;grid-template-rows:54px 260px 94px 132px 250px 50px}.topbar{padding:0 10px;gap:6px}.top-actions{gap:0}.brand strong{font-size:12px;letter-spacing:0}.brand small{font-size:8px}.turn{font-size:10px}.icon-button{width:44px}.figure-target{height:104px}.combatant{bottom:12px}.actor-meters{width:124px}.intent{min-width:170px;max-width:180px;padding:5px;gap:4px;left:calc(50% - 14px);bottom:calc(100% + 4px);min-height:54px}.intent strong{font-size:10px}.intent small{font-size:8px}.intent-icon{font-size:17px}.intent button{min-width:44px;width:44px;font-size:12px}.battle-dashboard{padding:6px 12px}.counters{gap:15px;font-size:10px;height:36px}.counters b{font-size:13px}.counters button{padding:0 7px;font-size:10px}.power-chip{font-size:10px}.command-strip{padding:8px 12px;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.selection-copy>span{font-size:9px}.selection-copy>strong{font-size:12px}.selection-copy p{font-size:10px;max-height:63px}.selection-actions{display:flex;max-width:100px;flex-direction:column;gap:4px}.selection-actions button{padding:4px 7px;min-height:44px!important}.feedback{font-size:9px;max-width:none;max-height:26px;overflow:auto}.hand-zone{grid-template-columns:50px minmax(0,1fr) 58px}.hand-meta{font-size:9px}.hand-window{inset:30px 0 44px}.card,.hand.many .card{height:172px;flex-basis:124px;width:124px}.card-art{height:35px}.card-effect{font-size:10px;-webkit-line-clamp:3}.card-name{font-size:11px}.card-keyword{font-size:9px}.hand-nav{height:44px;bottom:0}.hand-nav button{font-size:10px;padding:0 4px}.energy-orb{width:42px;height:42px}.end-panel{padding:0 5px}.end-turn{min-height:114px!important;padding:9px 4px}.end-turn>span:first-child{font-size:13px}.bottom-bar{padding:0 5px}.zones{gap:3px}.zones button{min-height:44px!important;font-size:10px}.zones b{font-size:13px;margin-left:4px}.zones button>span{font-size:14px;margin-right:2px}.status-chip{min-width:44px;font-size:9px}.selection-actions #confirm-target{font-size:10px}}
@media(orientation:landscape) and (max-height:550px){.battle{height:auto;min-height:640px;grid-template-rows:44px 215px 82px 92px 164px 44px}.arena-heading{display:block;top:7px}.combatant{bottom:8px}.figure-target{height:65px}.intent{left:50%;top:auto;bottom:calc(100% + 4px);padding:5px;min-width:190px}.intent strong{font-size:11px}.intent small{font-size:8px}.actor-meters{width:160px}.hp-row{font-size:10px}.hp-row strong{font-size:15px}.statuses{position:static}.status-chip{font-size:9px}.battle-dashboard{min-height:82px;padding:4px 18px}.counters{height:32px;font-size:10px}.counters b{font-size:13px}.power-chip{font-size:10px}.power-zone{min-height:40px}.command-strip{padding:6px 18px}.selection-copy>strong{font-size:12px}.selection-copy p{font-size:10px;max-height:48px}.feedback{font-size:10px;max-width:190px}.hand-zone{grid-template-columns:74px minmax(0,1fr) 115px}.hand-window{inset:25px 0 0}.card,.hand.many .card{height:125px;flex-basis:140px;width:140px}.card-art{display:none}.card-name{font-size:11px}.card-type{font-size:9px}.card-effect{font-size:10px;-webkit-line-clamp:3}.card-keyword{font-size:9px}.hand{padding-top:6px}.end-turn{min-height:70px!important}.end-turn>span:first-child{font-size:13px}.hand-nav{display:none}.bottom-bar{padding:0 14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.annihilation{display:none!important}}body[data-motion=off] *{animation:none!important;transition:none!important}
.battle-dashboard{min-height:108px}.counters{height:44px}.battle{grid-template-rows:68px minmax(260px,1fr) 108px 108px 238px 50px}@media(max-width:999px){.battle{grid-template-rows:60px 290px 108px 128px 242px 50px}}@media(max-width:600px) and (orientation:portrait){.battle{min-height:854px;grid-template-rows:54px 260px 108px 132px 250px 50px}.counters{height:44px}}@media(orientation:landscape) and (max-height:550px){.battle{min-height:654px;grid-template-rows:44px 215px 96px 92px 164px 44px}.battle-dashboard{min-height:96px}.counters{height:44px}}
@media(max-width:600px) and (orientation:portrait){.card,.hand.many .card{height:158px}.hand{padding-top:12px;padding-bottom:4px}}@media(orientation:landscape) and (max-height:550px){.hand{padding-top:12px;padding-bottom:2px}}
@media(min-width:1000px){.combatant{bottom:6%}.battle.has-statuses{height:auto;min-height:940px;grid-template-rows:68px minmax(360px,1fr) 108px 108px 238px 50px}.battle.has-statuses .combatant{bottom:12px}.battle.has-statuses .figure-target{height:150px}}.statuses{max-height:60px;overflow:auto}.status-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere}@media(max-width:600px) and (orientation:portrait){.battle.has-statuses{min-height:924px;grid-template-rows:54px 330px 108px 132px 250px 50px}}@media(orientation:landscape) and (max-height:550px){.battle.has-statuses{min-height:710px;grid-template-rows:44px 270px 96px 92px 164px 44px}}
.power-zone{padding-bottom:2px}.power-chip{display:grid;gap:2px;max-width:270px;text-align:left;line-height:1.3}.power-chip strong{font-size:11px;font-weight:500}.power-chip small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}dialog label.check{min-height:44px}@media(max-width:600px){.power-chip{max-width:245px}.power-chip small{max-width:220px}}

/* 緊湊手牌區：不再保留 command-strip 的獨立列。 */
.battle{height:auto;min-height:0;grid-template-rows:64px 310px 108px 300px 50px;align-content:start}
.hand-zone{grid-template-rows:44px minmax(0,1fr);min-width:0}
.hand-tools{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0;padding:0 18px;border-top:1px solid var(--line)}
.hand-tools .feedback{min-width:0;max-width:none;flex:1;border:0;padding:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:44px;font-size:11px;cursor:pointer}
.feedback:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.hand-tools .selection-actions{flex:none;max-width:none;flex-direction:row;flex-wrap:nowrap;gap:4px}
.hand-tools button{font-size:11px;padding:4px 9px;white-space:nowrap}
.selection-actions button[hidden]{display:none!important}
.energy-panel,.hand-area,.end-panel{grid-row:2;min-height:0}
.hand-meta{height:28px;padding-top:4px;padding-bottom:4px}
.hand-window{top:28px;bottom:0}
.hand{align-items:flex-start;padding-top:12px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;pointer-events:none}
.card{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.dragging-card,.dragging-card *{cursor:grabbing!important}
.card.drag-source{opacity:.35}
.card.drag-ghost{position:fixed;z-index:1000;margin:0;width:148px;height:203px;transform:translate(-50%,-65%) rotate(-3deg)!important;pointer-events:none!important;opacity:.92;box-shadow:0 12px 32px #000b;border:2px solid var(--amber);transition:none!important}
.card.drag-ghost[data-valid=true]{border-color:var(--cyan)}
.drop-overlay{position:absolute;inset:0;z-index:50;pointer-events:none}
.drop-overlay[hidden]{display:none!important}
.drop-zone{position:absolute;top:0;bottom:0;width:50%;border:2px dashed #91cbd76b;background:#0d344630;display:flex;align-items:flex-start;justify-content:center;padding-top:35px}
.drop-zone span{background:#081a29f2;border:1px solid #8ab3c7;border-radius:7px;padding:8px 12px;font-size:12px;color:#d7f7fb}
.drop-player{left:0}.drop-enemy{right:0}
.drop-overlay[data-kind=enemy] .drop-player{display:none}
.free-release-notice{position:fixed;top:max(16px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1100;max-width:calc(100vw - 24px);padding:12px 24px;border:2px solid var(--cyan);border-radius:10px;background:#104439f5;color:#c7fff5;box-shadow:0 8px 26px #0009;font-size:16px;font-weight:600;line-height:1.4;text-align:center;pointer-events:none}
.free-release-notice[hidden]{display:none!important}
.drop-zone.active{background:#60e9d82b;border:3px solid #92fff0}
.drop-zone.active span{background:#104439;color:#c7fff5}
.drop-zone.active.wrong-target{border-color:#ffbf7d;background:#ffb45b24}.drop-zone.active.wrong-target span{background:#49301d;color:#ffe1b8}
@media(min-width:1000px){.combatant{bottom:12px}.figure-target{height:150px}.battle.has-statuses{height:auto;min-height:0;grid-template-rows:64px 360px 108px 300px 50px}}
@media(max-width:999px){.battle{height:auto;min-height:0;grid-template-rows:60px 290px 108px 290px 50px}.hand-tools{padding:0 12px}.hand-window{inset:28px 0 44px}.hand-nav{height:44px}.hand{padding-top:12px}.card.drag-ghost{width:132px;height:175px}}
@media(max-width:600px) and (orientation:portrait){.battle{height:auto;min-height:0;grid-template-rows:54px 260px 108px 282px 50px}.battle.has-statuses{min-height:0;grid-template-rows:54px 330px 108px 282px 50px}.hand-tools{padding:0 8px;gap:4px}.hand-tools .feedback{font-size:10px}.hand-tools button{font-size:10px;padding:4px 6px}.hand-meta{height:24px}.hand-window{inset:24px 0 44px}.hand{padding-top:12px}.card.drag-ghost{width:124px;height:158px}.drop-zone{padding-top:28px}.drop-zone span{font-size:10px;padding:6px}}
@media(orientation:landscape) and (max-height:550px){.battle{height:auto;min-height:0;grid-template-rows:44px 215px 96px 210px 44px}.battle.has-statuses{min-height:0;grid-template-rows:44px 270px 96px 210px 44px}.hand-tools{padding:0 14px}.hand-meta{height:24px}.hand-window{inset:24px 0 0}.hand{padding-top:12px}.card.drag-ghost{width:140px;height:125px}.drop-zone{padding-top:25px}}
