/* 空白排版容器點穿；只有圖示與數字附近接收指標。 */
.card-ui-v20 .combatant,.card-ui-v20 .actor-effects-dock,.card-ui-v20 .compact-effect-dock{pointer-events:none!important}
.card-ui-v20 .figure-target,.card-ui-v20 .actor-meters,.card-ui-v20 .orbit-drone{pointer-events:auto}
.card-ui-v20 .compact-effect-dock{gap:3px;align-items:center;scrollbar-width:thin}
.card-ui-v20 .compact-effect-icon{pointer-events:auto;flex:0 0 30px;width:30px;height:30px;min-width:30px;min-height:30px!important;padding:3px;border:0;touch-action:none}
.card-ui-v20 .compact-effect-icon .compact-effect-badge{bottom:0;right:0;font-size:10px;line-height:12px}.card-ui-v20 .compact-effect-duration{top:0;font-size:8px}
.card-ui-v20 .compact-intent-icon{pointer-events:auto;left:50%;transform:translateX(-50%);width:max-content;min-width:28px;max-width:70px;height:30px;min-height:30px!important;padding:1px;gap:1px}
.card-ui-v20 .compact-intent-icon svg{width:20px;height:20px}.card-ui-v20 .compact-intent-icon .intent-value{font-size:14px}
.compact-tooltip{pointer-events:none!important}.compact-tooltip *{pointer-events:none!important}
body.cards-readable-v20 #end-turn{border-radius:0!important}
/* 只放大卡片文字，保留HUD與全頁其他字級。 */
body.cards-readable-v20 .battle .hand>.card .card-name{font-size:16px;line-height:1.3}
@media(min-width:1000px){body.cards-readable-v20 .battle .hand>.card .card-name{font-size:15px}}
body.cards-readable-v20 .battle .hand>.card .card-rules{font-size:14px;line-height:1.45;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;pointer-events:auto;touch-action:pan-y}
body.cards-readable-v20 .battle .hand>.card .card-crown{min-height:0}
body.cards-readable-v20 #card-full>.card .card-name{font-size:18px;line-height:1.35}
body.cards-readable-v20 #card-full>.card .card-rules{font-size:14px;line-height:1.65;max-height:none;overflow:visible;-webkit-line-clamp:unset;display:block}
body.cards-readable-v20 #card-full>.card{height:auto;grid-template-rows:minmax(48px,auto) 156px minmax(28px,auto) minmax(100px,auto) minmax(20px,auto) minmax(28px,auto) minmax(26px,auto)}
body.cards-readable-v20 #card-full>.card .art-window{height:156px;aspect-ratio:auto;align-self:stretch}
/* 原dialog是完整展示框；其外的native backdrop消耗點擊後關閉。 */
.pile-browser-dialog{box-sizing:border-box;width:min(1460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);padding:16px;border:1px solid #7193a3;border-radius:12px;background:#0c1d2ded;color:#edf4f7;overflow:auto;overscroll-behavior:contain}
.pile-browser-dialog::backdrop{background:#02070ee0;backdrop-filter:blur(2px)}
.pile-browser-head{position:sticky;top:-16px;z-index:4;display:flex;align-items:center;gap:14px;min-height:60px;margin:-16px -16px 0;padding:8px 16px;background:#0d2134fa;border-bottom:1px solid #59778b}
.pile-browser-head h2{font:700 22px/1.3 system-ui;margin:0}.pile-browser-head>span{font:700 17px/1.3 system-ui;color:#f2ce8a}.pile-browser-head button{margin-left:auto;min-height:44px;padding:7px 16px;background:#173e51;border:1px solid #87b6bd;border-radius:7px;color:#f4faf7;font:14px system-ui}
#pile-order-note{font:13px/1.6 system-ui;color:#bfd7df;margin:14px 0}.pile-empty{padding:60px 16px;text-align:center;font:16px/1.7 system-ui;color:#d9e6ed}
.pile-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:start;padding:4px 2px 14px}
.card-skin .pile-card-grid>.card{width:100%;min-width:0;max-width:none;min-height:430px;height:auto;padding:8px;transform:none;cursor:zoom-in;grid-template-rows:minmax(44px,auto) 140px minmax(24px,auto) minmax(100px,auto) minmax(20px,auto) minmax(24px,auto) minmax(24px,auto);overflow:visible}
.card-skin .pile-card-grid>.card:focus-visible{outline:2px solid #f2ce8a;outline-offset:3px}
.card-skin .pile-card-grid>.card .art-window{height:140px;aspect-ratio:auto;align-self:stretch}
.card-skin .pile-card-grid>.card .card-name{font-size:17px;line-height:1.35}.card-skin .pile-card-grid>.card .card-rules{font-size:14px;line-height:1.6;max-height:none;overflow:visible;display:block;-webkit-line-clamp:unset;white-space:pre-wrap}
.card-skin .pile-card-grid>.card .cost b{font-size:22px}.card-skin .pile-card-grid>.card .card-foot,.card-skin .pile-card-grid>.card .keyword{font-size:11px}
@media(max-width:1199px){.pile-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:999px){.card-ui-v20 .compact-effect-icon{width:32px;height:32px;min-width:32px;min-height:32px!important;flex-basis:32px;padding:4px}.card-ui-v20 .compact-effect-dock{align-items:start}.card-ui-v20 .compact-intent-icon{height:32px;min-height:32px!important}.pile-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:999px) and (orientation:landscape){
 .card-ui-v20 .combatant.player .compact-effect-dock{width:calc(5svw + 72px);max-width:100%;height:32px;max-height:32px}
 .card-ui-v20 .combatant.enemy .compact-effect-dock{position:fixed;left:calc(70svw + 20px);right:calc(5svw + 42px);top:calc(78svh + 24px);width:auto;height:32px;max-height:32px}
}
@media(max-width:600px){.pile-browser-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100svh - 16px);padding:12px}.pile-browser-head{top:-12px;margin:-12px -12px 0;padding:6px 12px;gap:8px}.pile-browser-head h2{font-size:19px}.pile-browser-head>span{font-size:15px}.pile-browser-head button{font-size:13px;padding:6px 12px}.pile-card-grid{grid-template-columns:minmax(0,1fr);gap:18px}.card-skin .pile-card-grid>.card{max-width:360px;justify-self:center}.card-skin .pile-card-grid>.card .art-window{height:156px}}
