/* 最後載入；真正分配viewport高度，不以隱藏body捲軸遮住內容。 */
body.card-skin .battle.actor-layout-v13.compact-combat-v14,body.card-skin .battle.actor-layout-v13.compact-combat-v14.has-statuses,body.card-skin .battle.actor-layout-v13.compact-combat-v14.has-hangar{height:100svh;min-height:0;grid-template-rows:44px minmax(190px,1fr) minmax(346px,1.4fr) 44px}
.compact-combat-v14 .topbar{padding:0 12px;min-height:0}.compact-combat-v14 .brand small,.compact-combat-v14 .test-badge{display:none}.compact-combat-v14 .brand strong{font-size:13px}.compact-combat-v14 .topbar .icon-button{height:40px;min-height:40px;width:40px}
.compact-combat-v14 .city .scene-label,.compact-combat-v14 .city .lane,.compact-combat-v14 .city .floor,.compact-combat-v14 .versus,.compact-combat-v14 .arena-heading{display:none}
.compact-combat-v14 .arena{overflow:visible;min-width:0;min-height:0}
.compact-combat-v14 .combatant,.compact-combat-v14 .arena:has(.duel-intent) .combatant.enemy{top:auto;bottom:0;width:min(440px,42%);height:calc(100% - 44px);grid-template-rows:18px minmax(66px,1fr) 28px 50px}
.compact-combat-v14 .actor-name{height:18px}.compact-combat-v14 .actor-name h1,.compact-combat-v14 .actor-name h2{font-size:12px}.compact-combat-v14 .side-label{display:none}
.compact-combat-v14 .actor-orbit-stage{height:100%;width:min(290px,100%);min-height:0}
.compact-combat-v14 .figure-target{top:auto!important;bottom:0!important;left:calc(50% - 35px)!important;width:70px!important;height:min(140px,100%)!important}
.compact-combat-v14 .figure-target .figure{width:130px;height:100%;max-height:140px;top:auto;bottom:0}
.compact-combat-v14 .target-label{display:none}
.compact-combat-v14 .orbit-drone{width:44px;height:44px}.compact-combat-v14 .orbit-drone[data-slot-index="0"]{left:0;top:calc(50% - 22px);bottom:auto}.compact-combat-v14 .orbit-drone[data-slot-index="1"]{left:auto;right:0;top:0}.compact-combat-v14 .orbit-drone[data-slot-index="2"]{right:0;top:auto;bottom:0}
.compact-combat-v14 .actor-meters{height:28px;margin:0 auto;padding:0 2px}.compact-combat-v14 .hp-row{font-size:10px;margin:0 0 2px}.compact-combat-v14 .hp-row strong{font-size:15px}.compact-combat-v14 .hp-track{height:5px}
.compact-combat-v14 .actor-effects-dock{height:50px;padding:0 2px;display:block;overflow:visible}
.compact-combat-v14 .actor-effects-dock>.statuses,.compact-combat-v14 .actor-effects-dock>.actor-public-powers{display:none!important}
.compact-effect-dock{height:50px;max-height:50px;display:flex;align-items:center;gap:4px;overflow-x:auto;overflow-y:hidden;min-width:0;scrollbar-width:thin;scroll-padding:2px;overscroll-behavior:contain;touch-action:pan-x}
.compact-effect-dock:empty{visibility:hidden}
.compact-effect-icon{position:relative;flex:0 0 44px;width:44px;height:44px;min-height:44px!important;margin:0;padding:3px;border:1px solid #658593;border-radius:9px;background:#102b3b;color:#e4f4f5;cursor:pointer}
.compact-effect-icon[data-kind=power]{border-color:#a591be;background:#24263c}.compact-effect-icon[data-kind=virus]{border-color:#b78cc4}.compact-effect-icon[data-kind=heat]{border-color:#d29667}.compact-effect-icon[data-warning=true]{border:2px solid #f5bd75;background:#45301f}
.compact-effect-glyph{font-size:13px;font-weight:650;line-height:1.2}.compact-effect-badge{position:absolute;right:0;top:0;font-size:10px;line-height:13px;padding:0 2px;border-radius:3px;background:#163d4b;color:#fff1c0}.compact-effect-duration{position:absolute;bottom:0;left:0;right:0;font-size:9px;line-height:12px;color:#cce1ed}.compact-effect-warning{position:absolute;top:0;left:2px;font-size:12px;font-weight:800;color:#ffe1b4}
.compact-effect-icon:focus-visible{outline:3px solid #f4cf83;outline-offset:-3px}
.compact-combat-v14 .intent,.compact-combat-v14 .intent.duel-intent{top:-44px!important;height:44px;max-height:44px;min-height:0;width:230px;padding:0 5px;grid-template-columns:minmax(0,1fr) 40px;overflow:auto;line-height:1.3}
.compact-combat-v14 .intent #enemy-last{display:none}.compact-combat-v14 .intent #intent-kind{font-size:9px}.compact-combat-v14 .intent #intent-title{font-size:10px;line-height:1.2}.compact-combat-v14 .intent #intent-help{min-height:40px!important;min-width:40px;width:40px;height:40px;font-size:12px;margin:0}
.compact-combat-v14 .hand-zone{display:block;position:relative;height:100%;min-height:0;min-width:0;border-top:1px solid #456070}
.compact-combat-v14 .hand-tools,.compact-combat-v14 .end-panel{display:none!important}
.compact-combat-v14 .hand-area{height:100%;min-height:0;min-width:0;position:relative}
.compact-combat-v14 .hand-meta{height:44px;padding:7px 100px 3px 12px;font-size:12px;line-height:1.3}.compact-combat-v14 .hand-meta b{font-size:13px}.compact-combat-v14 .hand-capacity-note{display:none}
.compact-combat-v14 .hand-window{top:44px!important;bottom:0!important;min-height:0;overflow-x:auto;overflow-y:hidden}
.compact-combat-v14 .hand{height:100%;min-height:0;padding:5px 10px 6px;gap:10px;align-items:stretch;justify-content:flex-start;width:max-content;min-width:100%}
body.card-skin .compact-combat-v14 .hand>.card.card-face{width:260px!important;height:100%;min-height:0;grid-template-rows:34px var(--compact-art-height,140px) 20px minmax(72px,1fr) auto 20px 18px;flex:none!important;padding:6px;transform:none!important;margin:0!important;overflow:visible}
.compact-combat-v14 .hand .card .card-crown{padding:0 2px 4px}.compact-combat-v14 .hand .card .card-name{font-size:14px;max-height:none;display:block;-webkit-line-clamp:unset;line-height:1.3;overflow:visible}
.compact-combat-v14 .hand .card .cost{height:28px;width:28px}.compact-combat-v14 .hand .card .cost b{font-size:17px}
.compact-combat-v14 .hand .card .card-rules{font-size:12px;line-height:1.45;display:block!important;-webkit-line-clamp:unset;max-height:none;overflow:visible;white-space:pre-wrap;padding:4px;min-height:0}
.compact-combat-v14 .hand .card .card-meta{font-size:10px;gap:4px}.compact-combat-v14 .hand .card .card-meta .card-type,.compact-combat-v14 .hand .card .rarity-label{font-size:9px;letter-spacing:0}.compact-combat-v14 .hand .card .card-keywords{padding:1px 3px}.compact-combat-v14 .hand .card .keyword,.compact-combat-v14 .hand .card .card-foot{font-size:10px}.compact-combat-v14 .hand .card .card-foot{padding:0 2px}.compact-combat-v14 .hand .card .card-extra{padding:0 3px}
.compact-combat-v14 .hand-nav{position:absolute;left:auto;right:6px;top:0;bottom:auto;height:44px;width:88px;display:flex;gap:0;background:transparent;z-index:3}.compact-combat-v14 .hand-nav span{display:none}.compact-combat-v14 .hand-nav button{min-height:44px!important;width:44px;padding:0;font-size:22px}
.compact-combat-v14 .bottom-bar{height:44px;min-width:0;padding:0 8px;gap:6px;justify-content:space-between;display:flex}.compact-combat-v14 .bottom-bar .prototype-note{display:none}
.compact-combat-v14 .bottom-bar .energy-panel{flex:none;display:block;font-size:10px;margin:0}.compact-combat-v14 .bottom-bar .energy-panel>div:not(.energy-orb),.compact-combat-v14 .bottom-bar .energy-panel>small{display:none}.compact-combat-v14 .bottom-bar .energy-orb{width:44px;height:34px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;gap:2px}.compact-combat-v14 .bottom-bar .energy-orb strong{font-size:20px}.compact-combat-v14 .bottom-bar .energy-orb span{font-size:10px}
.compact-combat-v14 .bottom-bar .zones{width:auto;display:flex;gap:2px}.compact-combat-v14 .zones button{min-width:44px;min-height:44px;padding:0 3px;font-size:11px}.compact-combat-v14 .zones button>span{margin:0;font-size:15px}.compact-combat-v14 .zones b{font-size:12px;margin-left:2px}
.compact-combat-v14 #end-turn{flex:none;width:88px;height:40px;min-height:40px!important;margin:0;padding:4px;display:block;text-align:center}.compact-combat-v14 #end-turn>span:first-child{writing-mode:horizontal-tb;letter-spacing:0;font-size:12px}.compact-combat-v14 #end-turn>small,.compact-combat-v14 #end-turn>span:last-child{display:none}
.compact-tooltip{box-sizing:border-box;position:fixed;inset:auto;margin:0;width:min(360px,calc(100vw - 16px));max-height:min(420px,calc(100svh - 16px));overflow:auto;padding:14px;border:1px solid #85a9b8;border-radius:10px;background:#102738;color:#edf5f8;box-shadow:0 16px 60px #0009;z-index:20000;font:13px/1.65 system-ui;white-space:normal;overflow-wrap:anywhere}
.compact-tooltip h3{font-size:15px;line-height:1.4;margin:0 0 8px}.compact-tooltip [data-tooltip-body]{white-space:pre-wrap}.compact-tooltip button{min-height:44px;padding:6px 16px;margin-top:10px;background:#24495c;color:#eaf9ff;border:1px solid #7b9daa;border-radius:6px;font-size:13px}
.compact-selection-controls{position:fixed;z-index:100;max-width:calc(100vw - 16px);background:#102737ed;border:1px solid #7ba0af;border-radius:8px;padding:3px;box-shadow:0 6px 20px #0006}.compact-selection-controls[hidden]{display:none}.compact-selection-controls .selection-actions{display:flex;flex-direction:row;flex-wrap:nowrap;gap:3px;max-width:none}.compact-selection-controls button{flex:0 0 auto;width:auto;min-width:44px;min-height:44px!important;padding:4px 10px;font-size:12px}.compact-selection-controls button[hidden]{display:none!important}
.compact-notice{position:fixed;right:104px;top:0;z-index:90;width:44px;min-width:44px;padding:2px;height:44px;min-height:44px!important;border:1px solid #7694a7;border-radius:8px;background:#153449;color:#e7f6f8;font-size:12px}.compact-notice[data-error=true]{border-color:#e7b17d;color:#ffe3bd}.compact-notice[hidden]{display:none}
@media(max-width:600px){body.card-skin .battle.actor-layout-v13.compact-combat-v14,body.card-skin .battle.actor-layout-v13.compact-combat-v14.has-statuses,body.card-skin .battle.actor-layout-v13.compact-combat-v14.has-hangar{grid-template-rows:40px minmax(220px,1fr) minmax(336px,1.4fr) 44px}.compact-combat-v14 .topbar{padding:0 8px}.compact-combat-v14 .brand strong{font-size:11px;letter-spacing:0}.compact-combat-v14 .turn{font-size:9px}.compact-combat-v14 .combatant,.compact-combat-v14 .arena:has(.duel-intent) .combatant.enemy{width:calc(50% - 12px);height:calc(100% - 44px);grid-template-rows:14px minmax(88px,1fr) 24px 50px}.compact-combat-v14 .actor-name{height:14px}.compact-combat-v14 .actor-name h1,.compact-combat-v14 .actor-name h2{font-size:11px;line-height:1.2}.compact-combat-v14 .figure-target{top:auto!important;left:calc(50% - 25px)!important;width:50px!important;height:min(100%,108px)!important}.compact-combat-v14 .figure-target .figure{width:92px;max-height:108px;height:100%}.compact-combat-v14 .orbit-drone{width:44px;height:44px}.compact-combat-v14 .orbit-drone[data-slot-index="0"]{top:calc(50% - 22px);bottom:auto}.compact-combat-v14 .orbit-drone[data-slot-index="2"]{bottom:0}.compact-combat-v14 .orbit-drone[data-slot-index="1"]{top:0}.compact-combat-v14 .actor-meters{height:24px}.compact-combat-v14 .hp-row{font-size:10px;height:16px;line-height:16px}.compact-combat-v14 .hp-row strong{font-size:13px}.compact-combat-v14 .shield{height:16px;line-height:14px;padding:0 2px;font-size:10px}.compact-combat-v14 .intent,.compact-combat-v14 .intent.duel-intent{top:-44px!important;width:100%;height:44px;max-height:44px}.compact-combat-v14 .intent #intent-kind{display:none}.compact-combat-v14 .intent #intent-title{font-size:10px;white-space:normal}.compact-combat-v14 .intent.duel-intent{grid-template-columns:minmax(0,1fr) 40px}.compact-combat-v14 .hand-meta{font-size:11px;padding-left:8px}.compact-combat-v14 .hand{gap:8px;padding-left:8px;padding-right:8px}body.card-skin .compact-combat-v14 .hand>.card.card-face{width:calc(100vw - 32px)!important;max-width:320px;grid-template-rows:34px var(--compact-art-height,clamp(74px,calc(100svh - 566px),150px)) 20px minmax(72px,1fr) auto 20px 18px}.compact-combat-v14 .bottom-bar{padding:0 4px;gap:3px}}

.compact-live{position:fixed;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}

.compact-combat-v14 .hand .card .art-window{height:100%;aspect-ratio:auto;align-self:stretch;min-height:0}

.compact-combat-v14.has-compact-notice .hand-meta #hand-heading{display:inline-block;max-width:calc(100% - 48px);vertical-align:top}
