/* v35：僅操作與顯示。保留正式牌文、原圖、身份與費用。 */
.reading-layer-v35{box-sizing:border-box;width:min(600px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100svh - 24px);padding:0;overflow:hidden;touch-action:pan-y;overscroll-behavior:contain;pointer-events:auto!important}
.reading-layer-v35[open]{display:flex;flex-direction:column}.reading-layer-v35::backdrop{background:#020710a8}
.reading-head-v35{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #6d91a0;background:#102b3b}.reading-head-v35 h2{margin:0;font-size:18px}.reading-head-v35 button{min-height:44px;flex:none;padding:8px;font-size:14px}
.reading-body-v35{max-height:55svh;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.65 system-ui;pointer-events:auto}
body.card-skin :is(#catalog-grid,#deck-builder .card-catalog-grid)>.card .art-window{height:140px!important;min-height:0!important;max-height:140px;aspect-ratio:auto!important;align-self:stretch}
body.card-skin :is(#catalog-grid,#deck-builder .card-catalog-grid)>.card .art-window img{object-fit:contain}
body.card-skin .battle .hand>.card.card-face{grid-template-rows:34px 80px 22px minmax(0,1fr) auto minmax(20px,auto) 44px!important;touch-action:pan-y!important}
body.card-skin .battle .hand>.card.card-face.fan-active{grid-template-rows:34px 100px 22px minmax(0,1fr) auto minmax(20px,auto) 44px!important}
body.card-skin .battle .hand>.card .art-window{min-height:80px!important;height:100%!important;aspect-ratio:auto!important}
body.card-skin .battle .hand>.card.fan-active .art-window{min-height:100px!important}
body.card-skin .battle .hand>.card .card-rules{font-size:14px!important;line-height:1.45;min-height:0;max-height:none;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y!important;display:block!important;-webkit-line-clamp:unset}
body.card-skin .battle .hand>.card :is(.card-crown,.art-window){touch-action:none!important}
body.card-skin .battle.fan-desktop .hand>.card.fan-active{left:var(--fan-open-x)!important;top:var(--fan-open-y)!important;height:var(--fan-open-h)!important;transition:none!important}
/* 640px以上的直向手機依尺寸固定排版；不由BUFF/機體數量切換。 */
@media(max-width:999px) and (orientation:portrait) and (min-height:640px){
 #battle-root-v35.v35-mobile{--v35-column:calc((100vw - 24px)/3)}
 #battle-root-v35.v35-mobile .arena{inset:40px 0 auto!important;height:348px!important}
 #battle-root-v35.v35-mobile .combatant,#battle-root-v35.v35-mobile .additional-enemy{position:fixed!important;top:236px!important;bottom:auto!important;left:var(--v35-left)!important;right:auto!important;width:var(--v35-column)!important;height:152px!important;display:block!important;grid-template-rows:none!important;margin:0!important}
 #battle-root-v35.v35-mobile .combatant.player{--v35-left:4px}#battle-root-v35.v35-mobile .combatant.enemy{--v35-left:calc(20px + 2*var(--v35-column))}#battle-root-v35.v35-mobile .additional-enemy{--v35-left:calc(12px + var(--v35-column))}
 #battle-root-v35.v35-mobile .actor-name,#battle-root-v35.v35-mobile .additional-name{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:14px!important;margin:0!important;line-height:14px!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-content:center}
 #battle-root-v35.v35-mobile .actor-name :is(h1,h2){font-size:11px;line-height:14px}
 #battle-root-v35.v35-mobile :is(.actor-orbit-stage,.additional-actor-stage){position:absolute!important;left:0!important;top:14px!important;width:100%!important;height:74px!important}
 body.card-skin #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .figure-target{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:74px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important}
 body.card-skin #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .figure-target .figure{position:absolute!important;left:50%!important;top:0!important;width:auto!important;height:74px!important;max-width:100%!important;max-height:74px!important;transform:translateX(-50%)!important}
 #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .actor-meters{position:absolute!important;left:0!important;top:92px!important;width:100%!important;min-width:0!important;max-width:none!important;height:28px!important;display:grid!important;grid-template-rows:12px 14px!important;gap:2px!important;margin:0!important;padding:0!important}
 #battle-root-v35.v35-mobile .actor-meters .resource-track{height:100%!important;min-height:0!important;line-height:12px!important}#battle-root-v35.v35-mobile .actor-meters .resource-value{font-size:11px!important;line-height:12px!important}
 #battle-root-v35.v35-mobile :is(.actor-effects-dock,.additional-statuses){position:absolute!important;top:120px!important;left:0!important;width:100%!important;max-width:none!important;height:32px!important;max-height:32px!important;margin:0!important;overflow:hidden}
 #battle-root-v35.v35-mobile .compact-effect-dock{position:static!important;width:100%!important;max-width:none!important;height:32px!important;max-height:32px!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important}
 #battle-root-v35.v35-mobile .additional-statuses{overflow-x:auto!important;overflow-y:hidden!important;display:flex!important;flex-wrap:nowrap!important}
 #battle-root-v35.v35-mobile .compact-intent-icon{top:14px!important;left:auto!important;right:0!important;transform:none!important;width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important}
 #battle-root-v35.v35-mobile .hand-zone{position:absolute!important;left:0!important;right:0!important;top:388px!important;bottom:92px!important;width:100%!important;height:auto!important;display:block!important;padding:0!important;pointer-events:none}
 #battle-root-v35.v35-mobile .hand-area{position:absolute!important;inset:0!important;height:100%!important}
 #battle-root-v35.v35-mobile .hand-meta{position:absolute!important;left:8px!important;right:8px!important;top:0!important;height:24px!important;padding:2px 0!important;margin:0!important}
 #battle-root-v35.v35-mobile #hand-window{position:absolute!important;left:8px!important;right:8px!important;top:24px!important;bottom:0!important;height:auto!important;overflow-x:auto!important;overflow-y:hidden!important;pointer-events:auto}
 #battle-root-v35.v35-mobile #hand{height:100%!important;min-height:0!important;padding:0!important;gap:8px!important;align-items:stretch!important;touch-action:pan-y}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face,body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active{position:relative!important;left:auto!important;top:auto!important;width:280px!important;min-width:280px!important;max-width:280px!important;height:100%!important;min-height:0!important;padding:0!important;gap:0!important;margin:0!important;border-width:0!important;box-shadow:inset 3px 0 0 var(--accent),inset 0 0 0 1px #54818c;transform:none!important;grid-template-rows:32px 80px minmax(0,1fr) 24px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .card-crown{grid-row:1;padding:0 5px!important;gap:6px!important}#battle-root-v35.v35-mobile #hand>.card .card-name{font-size:14px!important;line-height:16px!important}#battle-root-v35.v35-mobile #hand>.card .cost{height:26px!important;width:30px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .art-window{grid-row:2;min-height:80px!important;height:80px!important;border:0!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .card-rules{grid-row:3;min-height:0;max-height:none;padding:0 5px!important;overflow-y:auto!important;white-space:pre-wrap}
 #battle-root-v35.v35-mobile #hand>.card :is(.card-meta,.card-extra,.card-foot,.card-tags){display:none!important}
 #battle-root-v35.v35-mobile #hand>.card .card-read-entry-v35{grid-row:4;display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:24px;padding:0 6px;font:12px/24px system-ui;background:#183445;cursor:pointer;touch-action:manipulation;white-space:nowrap}
 .card-read-entry-v35:focus-visible{outline:2px solid #ffe2a0;outline-offset:-2px}
 #battle-root-v35.v35-mobile .bottom-bar [data-zone]{position:fixed!important;top:auto!important;bottom:44px!important;width:calc((100vw - 96px)/3)!important;height:44px!important;min-height:44px!important}
 #battle-root-v35.v35-mobile .bottom-bar [data-zone=drawPile]{left:86px!important;right:auto!important}#battle-root-v35.v35-mobile .bottom-bar [data-zone=discardPile]{left:calc(88px + (100vw - 96px)/3)!important;right:auto!important}#battle-root-v35.v35-mobile .bottom-bar [data-zone=exhaustPile]{left:calc(90px + 2*(100vw - 96px)/3)!important;right:auto!important}
 #battle-root-v35.v35-mobile #end-turn{position:fixed!important;left:86px!important;right:6px!important;top:auto!important;bottom:0!important;width:calc(100vw - 92px)!important;height:44px!important;min-height:44px!important}
 #battle-root-v35.v35-mobile .energy-panel{position:fixed!important;left:8px!important;top:auto!important;bottom:8px!important;width:70px!important;height:70px!important}
}
.card-read-entry-v35{display:none}
@media(max-width:999px) and (orientation:portrait) and (min-height:661px){body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active{grid-template-rows:32px 100px minmax(0,1fr) 24px!important}body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active .art-window{height:100px!important;min-height:100px!important}}

/* v35-landscape-side：只在寬橫向手機使用左右固定分區。 */
@media(min-width:700px) and (max-width:999px) and (orientation:landscape) and (min-height:390px){
 #battle-root-v35.v35-mobile{--v35-field:min(500px,calc(100vw - 300px));--v35-column:calc((var(--v35-field) - 24px)/3)}
 #battle-root-v35.v35-mobile .arena{inset:40px auto auto 0!important;width:var(--v35-field)!important;height:348px!important}
 #battle-root-v35.v35-mobile .combatant,#battle-root-v35.v35-mobile .additional-enemy{position:fixed!important;top:236px!important;bottom:auto!important;left:var(--v35-left)!important;right:auto!important;width:var(--v35-column)!important;height:152px!important;display:block!important;grid-template-rows:none!important;margin:0!important}
 #battle-root-v35.v35-mobile .combatant.player{--v35-left:4px}#battle-root-v35.v35-mobile .combatant.enemy{--v35-left:calc(20px + 2*var(--v35-column))}#battle-root-v35.v35-mobile .additional-enemy{--v35-left:calc(12px + var(--v35-column))}
 #battle-root-v35.v35-mobile .actor-name,#battle-root-v35.v35-mobile .additional-name{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:14px!important;margin:0!important;line-height:14px!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;justify-content:center}
 #battle-root-v35.v35-mobile .actor-name :is(h1,h2){font-size:11px;line-height:14px}
 #battle-root-v35.v35-mobile :is(.actor-orbit-stage,.additional-actor-stage){position:absolute!important;left:0!important;top:14px!important;width:100%!important;height:74px!important}
 body.card-skin #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .figure-target{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:74px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important}
 body.card-skin #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .figure-target .figure{position:absolute!important;left:50%!important;top:0!important;width:auto!important;height:74px!important;max-width:100%!important;max-height:74px!important;transform:translateX(-50%)!important}
 #battle-root-v35.v35-mobile :is(.combatant,.additional-enemy) .actor-meters{position:absolute!important;left:0!important;top:92px!important;width:100%!important;min-width:0!important;max-width:none!important;height:28px!important;display:grid!important;grid-template-rows:12px 14px!important;gap:2px!important;margin:0!important;padding:0!important}
 #battle-root-v35.v35-mobile .actor-meters .resource-track{height:100%!important;min-height:0!important;line-height:12px!important}#battle-root-v35.v35-mobile .actor-meters .resource-value{font-size:11px!important;line-height:12px!important}
 #battle-root-v35.v35-mobile :is(.actor-effects-dock,.additional-statuses){position:absolute!important;top:120px!important;left:0!important;width:100%!important;max-width:none!important;height:32px!important;max-height:32px!important;margin:0!important;overflow:hidden}
 #battle-root-v35.v35-mobile .compact-effect-dock{position:static!important;width:100%!important;max-width:none!important;height:32px!important;max-height:32px!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important}
 #battle-root-v35.v35-mobile .additional-statuses{overflow-x:auto!important;overflow-y:hidden!important;display:flex!important;flex-wrap:nowrap!important}
 #battle-root-v35.v35-mobile .compact-intent-icon{top:14px!important;left:auto!important;right:0!important;transform:none!important;width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important}
 #battle-root-v35.v35-mobile .hand-zone{position:absolute!important;left:var(--v35-field)!important;right:0!important;top:40px!important;bottom:92px!important;width:auto!important;height:auto!important;display:block!important;padding:0!important;pointer-events:none}
 #battle-root-v35.v35-mobile .hand-area{position:absolute!important;inset:0!important;height:100%!important}
 #battle-root-v35.v35-mobile .hand-meta{position:absolute!important;left:8px!important;right:8px!important;top:0!important;height:24px!important;padding:2px 0!important;margin:0!important}
 #battle-root-v35.v35-mobile #hand-window{position:absolute!important;left:8px!important;right:8px!important;top:24px!important;bottom:0!important;height:auto!important;overflow-x:auto!important;overflow-y:hidden!important;pointer-events:auto}
 #battle-root-v35.v35-mobile #hand{height:100%!important;min-height:0!important;padding:0!important;gap:8px!important;align-items:stretch!important;touch-action:pan-y}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face,body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active{position:relative!important;left:auto!important;top:auto!important;width:280px!important;min-width:280px!important;max-width:280px!important;height:100%!important;min-height:0!important;padding:0!important;gap:0!important;margin:0!important;border-width:0!important;box-shadow:inset 3px 0 0 var(--accent),inset 0 0 0 1px #54818c;transform:none!important;grid-template-rows:32px 80px minmax(0,1fr) 24px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .card-crown{grid-row:1;padding:0 5px!important;gap:6px!important}#battle-root-v35.v35-mobile #hand>.card .card-name{font-size:14px!important;line-height:16px!important}#battle-root-v35.v35-mobile #hand>.card .cost{height:26px!important;width:30px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .art-window{grid-row:2;min-height:80px!important;height:80px!important;border:0!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card .card-rules{grid-row:3;min-height:0;max-height:none;padding:0 5px!important;overflow-y:auto!important;white-space:pre-wrap}
 #battle-root-v35.v35-mobile #hand>.card :is(.card-meta,.card-extra,.card-foot,.card-tags){display:none!important}
 #battle-root-v35.v35-mobile #hand>.card .card-read-entry-v35{grid-row:4;display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;height:24px;padding:0 6px;font:12px/24px system-ui;background:#183445;cursor:pointer;touch-action:manipulation;white-space:nowrap}
 .card-read-entry-v35:focus-visible{outline:2px solid #ffe2a0;outline-offset:-2px}
 #battle-root-v35.v35-mobile .bottom-bar [data-zone]{position:fixed!important;top:auto!important;bottom:44px!important;width:calc((100vw - var(--v35-field) - 96px)/3)!important;height:44px!important;min-height:44px!important}
 #battle-root-v35.v35-mobile .bottom-bar [data-zone=drawPile]{left:calc(var(--v35-field) + 86px)!important;right:auto!important}#battle-root-v35.v35-mobile .bottom-bar [data-zone=discardPile]{left:calc(var(--v35-field) + 88px + (100vw - var(--v35-field) - 96px)/3)!important;right:auto!important}#battle-root-v35.v35-mobile .bottom-bar [data-zone=exhaustPile]{left:calc(var(--v35-field) + 90px + 2*(100vw - var(--v35-field) - 96px)/3)!important;right:auto!important}
 #battle-root-v35.v35-mobile #end-turn{position:fixed!important;left:calc(var(--v35-field) + 86px)!important;right:6px!important;top:auto!important;bottom:0!important;width:calc(100vw - var(--v35-field) - 92px)!important;height:44px!important;min-height:44px!important}
 #battle-root-v35.v35-mobile .energy-panel{position:fixed!important;left:calc(var(--v35-field) + 8px)!important;top:auto!important;bottom:8px!important;width:70px!important;height:70px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active{grid-template-rows:32px 100px minmax(0,1fr) 24px!important}
 body.card-skin #battle-root-v35.v35-mobile #hand>.card.card-face.fan-active .art-window{height:100px!important;min-height:100px!important}
}
