/* 电脑战斗优先：HUD 固定，镜头只影响战场；特效不挡控件。 */
.tx-edition .battle-shell.txb-directed .txb-directed-fx {
    position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;
}
.tx-edition .battle-shell.txb-directed .txb-background-fx {
    position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;
    translate:var(--txb-camera-x,0px) var(--txb-camera-y,0px);
}
.tx-edition .battle-shell.txb-directed .battle-stage,
.tx-edition .battle-shell.txb-directed .battle-backdrop {
    translate:var(--txb-camera-x,0px) var(--txb-camera-y,0px);
}
.tx-edition .battle-shell.txb-directed .battle-hud {z-index:8;}
.tx-edition .battle-shell.txb-directed #battle-fx {z-index:7;}
.tx-edition .battle-shell.txb-directed .hp-track {isolation:isolate;}
.tx-edition .battle-shell.txb-directed .hp-track .fill {z-index:1;transition:none;}
.tx-edition .battle-shell.txb-directed .mp-track .fill {transition:none;}
.tx-edition .battle-shell.txb-directed .txb-hp-trail {
    position:absolute;inset:0 auto 0 0;width:100%;background:#f5d59b;z-index:0;pointer-events:none;
}
.tx-edition .battle-shell.txb-directed .battle-pop.immune {
    width:max-content;min-width:0;max-width:80%;padding:0 10px;overflow:visible;
    color:#ffd795;font-size:clamp(19px,2.1vw,32px);letter-spacing:.1em;text-shadow:0 2px 3px #0b0a09,0 0 12px #8e3e16;
}
@media(min-width:1000px) {
    .tx-edition .battle-shell.txb-directed #skill-banner {
        left:50%!important;top:25%;width:max-content;max-width:70%;height:auto;
        padding:10px 36px;font-size:clamp(24px,2.5vw,36px);letter-spacing:.12em;
        animation:txb-cast-caption calc(var(--battle-sec) * 1.1) ease-out both;
        transform:translateX(-50%);overflow:visible;
    }
    .tx-edition .battle-shell.txb-directed #battle-log {font-size:15px;line-height:1.55;}
    .tx-edition .battle-shell.txb-directed .battle-stat-bar {border-radius:2px;}
}
@keyframes txb-cast-caption {
    0% {transform:translate(-50%,8px);opacity:0;}
    18%,82% {transform:translate(-50%,0);opacity:1;}
    100% {transform:translate(-50%,-6px);opacity:0;}
}
.tx-edition .battle-shell.txb-directed .battle-side[data-txb-phase="phoenix-rise"] {
    animation:txb-phoenix-rise calc(var(--battle-sec) * .7) ease-out both!important;
}
.tx-edition .battle-shell.txb-directed .battle-side[data-txb-phase="phoenix-glide"] {
    animation:txb-phoenix-glide calc(var(--battle-sec) * .48) ease-in both!important;
}
.tx-edition .battle-shell.txb-directed .battle-side[data-txb-phase="phoenix-land"] {
    animation:txb-phoenix-land calc(var(--battle-sec) * .7) ease-out both!important;
}
@keyframes txb-phoenix-rise {from{transform:translateY(0)}to{transform:translateY(-52px)}}
@keyframes txb-phoenix-glide {from{transform:translate(0,-52px)}to{transform:translate(calc(var(--txb-travel-x) * .75),-24px)}}
@keyframes txb-phoenix-land {0%{transform:translate(calc(var(--txb-travel-x) * .75),-24px)}35%{transform:translate(calc(var(--txb-travel-x) * .6),0)}100%{transform:translate(0,0)}}
@media(prefers-reduced-motion:reduce) {
    .tx-edition .battle-shell.tx-battle-ready .tx-fullbody .battle-role,
    .tx-edition .battle-shell.tx-battle-ready .tx-fullbody .battle-role-tint {
        transform: scaleX(var(--txb-static-flip, 1)) !important;
    }
    .tx-edition .battle-shell.txb-directed .txb-directed-fx {display:none;}
    .tx-edition .battle-shell.txb-directed .txb-background-fx {display:none;}
    .tx-edition .battle-shell.txb-directed .battle-stage,
    .tx-edition .battle-shell.txb-directed .battle-backdrop {translate:none;}
    .tx-edition .battle-shell.txb-directed #skill-banner {animation:none;}
}
/* The invisible guardian acts from the margin; the struck opponent freezes.
   Playback's visual clock owns opacity, so pause and speed stay synchronized. */
.txb-guardian-ice #battle-enemy-role {
    filter: grayscale(1) brightness(1.5) sepia(.8) hue-rotate(150deg) saturate(2.4) drop-shadow(0 0 9px #70d4ff) !important;
    opacity: var(--txb-guardian-opacity, 1) !important;
}
