.battle-scene {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.battle.scene-v2 {
  overflow-x: clip;
}

.battle.scene-v2 .battle-scene {
  --scene-dur: min(var(--fx-turn, 480ms), 480ms);
}

.battle.scene-v2 .bcell {
  --fx2-impact: .4 !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

.battle.scene-v2 .bcell.is-dead {
  opacity: .42;
}

.battle.scene-v2 .bcell.is-target,
.battle.scene-v2 .bcell.is-heal {
  transform: none !important;
}

/* Move the portrait, keeping the card text and HP anchored in the grid.
   Individual translate preserves the face crop's existing centering transform. */
.battle.scene-v2 .bcell.fx2-act > .bface {
  animation: scene-face-step var(--scene-dur, 480ms) ease-out both;
}

.battle.scene-v2 .bcell.fx2-act-brace > .bface {
  animation-name: scene-face-brace;
}

.battle.scene-v2 .bcell.is-target > .bface {
  animation: scene-face-hit var(--scene-dur, 480ms) ease-out both;
}

@keyframes scene-face-step {
  0%, 70%, 100% { translate: 0 0; }
  18%, 30% { translate: 0 calc(var(--fx-dir, -1) * 5px); }
}

@keyframes scene-face-brace {
  0%, 75%, 100% { translate: 0 0; }
  22%, 45% { translate: 0 3px; }
}

@keyframes scene-face-hit {
  0%, 36%, 85%, 100% { translate: 0 0; }
  43% { translate: 2px calc(var(--fx-dir, -1) * -5px); }
  55% { translate: -2px calc(var(--fx-dir, -1) * -2px); }
  68% { translate: 1px 0; }
}

/* Old transient card pictures are retained for the comparison view; scene-v2 uses the board SVG. */
.battle.scene-v2 .bcell > .fx2:not(.fx2-embers),
.battle.scene-v2 .bcell > .fx2-name {
  display: none !important;
}

.battle.scene-v2 .bcell > .nm,
.battle.scene-v2 .bcell > .tc,
.battle.scene-v2 .bcell > .hpbar,
.battle.scene-v2 .bcell > .hp {
  z-index: 10;
}

.battle.scene-v2 .bcell > .tc {
  opacity: 1 !important;
  animation: none !important;
}

.battle.scene-v2 .bcell > .pop,
.battle.scene-v2 .bcell > .fx2-marks,
.battle.scene-v2 .bcell > .fx2-mark-brace {
  z-index: 12;
}

.scene-fx-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: #d57a43;
  shape-rendering: geometricPrecision;
  animation: scene-envelope var(--scene-dur, 480ms) linear both;
}

.scene-fx-overlay path,
.scene-fx-overlay polygon {
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: bevel;
}

.scene-shadow {
  fill: none;
  stroke: #08090d;
  stroke-width: 10;
  opacity: .9;
}

.scene-solid {
  fill: none;
  stroke: #fff0cf;
  stroke-width: 4;
}

.scene-link {
  stroke-dasharray: 5 6;
  stroke-width: 2.5;
  animation: scene-link-draw var(--scene-dur, 480ms) steps(7, end) both;
}

.scene-link.scene-shadow {
  stroke-width: 7;
  stroke-dasharray: none;
  opacity: .7;
}

.scene-link-arrow {
  stroke: #c78935;
  stroke-dasharray: 7 5;
  stroke-width: 1.5;
  opacity: .34;
}

.scene-link-arrow.scene-shadow {
  stroke-width: 4;
  opacity: .2;
}

.scene-link-blessing,
.scene-link-status {
  stroke: #72d5bd;
  stroke-width: 2;
  opacity: .72;
}

.scene-link-blessing.scene-shadow,
.scene-link-status.scene-shadow {
  stroke-width: 4;
  opacity: .16;
}

.scene-link-cover,
.scene-link-intercept {
  stroke: #a9d2df;
  stroke-width: 3;
}

.scene-link-chain {
  stroke: #b8c2ca;
  stroke-dasharray: 4 5;
}

.scene-link-movement {
  stroke: #d6ddd9;
  stroke-dasharray: 3 5;
}

.scene-movement-head {
  fill: none;
  stroke: #fff0cf;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-impact var(--scene-dur, 480ms) steps(4, end) both;
}

.scene-link-shock,
.scene-link-strike,
.scene-link-weakspot {
  stroke: #d6814b;
}

.scene-impact-rays,
.scene-shield-sparks {
  fill: none;
  stroke: #fff4d6;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-impact var(--scene-dur, 480ms) steps(4, end) both;
}

.scene-impact-core {
  fill: #fff0c4;
  stroke: #7e2e21;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-impact var(--scene-dur, 480ms) steps(4, end) both;
}

.scene-pierce-motion,
.scene-pierce-streak {
  transform-box: fill-box;
  transform-origin: left center;
  animation: scene-pierce var(--scene-dur, 480ms) steps(7, end) both;
}

.scene-pierce-motion { transform-origin: center; }

.scene-pierce-streak.scene-shadow { stroke-width: 12; }
.scene-pierce-streak.scene-solid { stroke: #fff0d2; stroke-width: 5; }

.scene-pierce-head {
  fill: #fff3d3;
  stroke: #6f271d;
  stroke-width: 4;
}

.scene-pierce-chips {
  fill: none;
  stroke: #c65c35;
  stroke-width: 3;
}

.scene-crescent-shadow,
.scene-crescent-solid {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-crescent var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-crescent-shadow {
  fill: #09090d;
  stroke: #09090d;
  stroke-width: 10;
}

.scene-crescent-solid {
  fill: #fff0d0;
  stroke: #b84f32;
  stroke-width: 3;
}

.scene-fire-wave.scene-shadow { stroke-width: 9; }
.scene-fire-wave.scene-solid { stroke: #e06131; stroke-width: 4; }
.scene-fire-wave { animation: scene-fire-wave var(--scene-dur, 480ms) steps(6, end) both; }

.scene-flame-rise,
.scene-ground-fire {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: scene-flame-rise var(--scene-dur, 480ms) steps(7, end) both;
}

.scene-flame-outer {
  fill: #d84925;
  stroke: #08090d;
  stroke-width: 4;
}

.scene-flame-inner {
  fill: #ffd064;
  stroke: #812f20;
  stroke-width: 2;
}

.scene-burst-shadow,
.scene-burst-ring,
.scene-burst-core,
.scene-burst-chips {
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-burst var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-burst-shadow {
  fill: none;
  stroke: #08090d;
  stroke-width: 7;
}

.scene-burst-ring {
  fill: none;
  stroke: #e6aa58;
  stroke-width: 3;
}

.scene-burst-core {
  fill: #fff0c0;
  stroke: #8a3b27;
  stroke-width: 2;
}

.scene-burst-chips {
  fill: none;
  stroke: #fff4d8;
  stroke-width: 4;
}

.scene-arrow-shaft {
  fill: none;
  stroke: #f1be54;
  stroke-width: 4;
  paint-order: stroke;
}

.scene-arrow-tip {
  fill: #ffd36b;
  stroke: #08090d;
  stroke-width: 3;
}

.scene-arrow-flight {
  animation: scene-arrow-flight var(--scene-dur, 480ms) steps(8, end) both;
}

.scene-arrow-delay {
  animation-name: scene-arrow-flight-late;
}

.scene-arrow-snipe,
.scene-arrow-weakspot {
  animation-name: scene-snipe-arrow-flight;
}

.scene-target-snipe-impact .scene-impact-rays,
.scene-target-snipe-impact .scene-impact-core,
.scene-target-weakspot-impact .scene-impact-rays,
.scene-target-weakspot-impact .scene-impact-core {
  animation-name: scene-snipe-impact;
}

.scene-weakspot-release {
  fill: none;
  stroke: #ffd36b;
  stroke-width: 3;
  animation: scene-weakspot-release var(--scene-dur, 480ms) ease-out both;
}

@keyframes scene-weakspot-release {
  0% { opacity: 0; }
  10% { opacity: 1; }
  26%, 100% { opacity: 0; }
}

.scene-slow-clock,
.scene-reticle,
.scene-snipe-reticle,
.scene-snipe-bow {
  fill: none;
  stroke: #fff0cb;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-reticle var(--scene-dur, 480ms) steps(5, end) both;
}

.scene-slow-clock { stroke: #dfad4b; }

.scene-heal-ring,
.scene-heal-stars,
.scene-bless-sun {
  fill: none;
  stroke: #76d8bd;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-heal-rise var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-heal-stars,
.scene-bless-sun {
  fill: #fff0a8;
  stroke: #478f80;
  stroke-width: 2;
}

.scene-bless-sun { animation-name: scene-bless; }

/* Heal has its own rising recovery motion. Ward and bless retain their symbols. */
.scene-mend-light { stroke: none; }
.scene-mend-bloom, .scene-mend-ribbon, .scene-mend-flash {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.scene-mend-bloom { animation: mend-bloom var(--scene-dur) cubic-bezier(.16,.65,.3,1) both; }
.scene-mend-ribbon {
  fill: #a5f0bd;
  stroke: #e6ffcf;
  stroke-width: .6;
  animation: mend-rise var(--scene-dur) ease-out both;
}
.scene-mend-right { fill: #62cba8; stroke: #b4f0c7; }
.scene-mend-flash {
  fill: #fff8d7;
  stroke: #74cca5;
  stroke-width: 1;
  transform-origin: center;
  animation: mend-arrive var(--scene-dur) ease-out both;
}
.scene-mend-mote {
  fill: #fff1b4;
  stroke: none;
  animation: mend-mote var(--scene-dur) ease-out both;
}
.scene-mend-cast {
  fill: none;
  stroke: #98d9b6;
  stroke-width: 2;
  animation: mend-cast var(--scene-dur) ease-out both;
}
.battle.scene-v2 .bcell.fx2-t-heal.is-heal::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(0deg, #57d6a7, transparent 85%);
  animation: mend-card var(--fx-turn) ease-out both;
}
.battle.scene-v2 .bcell.fx2-t-heal .scene-hp-change {
  animation: mend-hp var(--fx-turn) cubic-bezier(.2,.7,.25,1) both;
}
.battle.scene-v2 .bcell.fx2-t-heal > .pop.heal {
  color: #b3f4c9;
  animation: mend-number var(--fx-turn) ease-out both;
}
.battle.scene-v2 .bcell.fx2-t-heal > .hp {
  color: #e0eee6;
  text-shadow: -1px 0 #0c1815, 1px 0 #0c1815, 0 -1px #0c1815, 0 1px #0c1815;
}
@keyframes mend-bloom {
  0%, 8% { transform: scale(.6, .12); opacity: 0; }
  36%, 48% { transform: scale(1); opacity: 1; }
  100% { transform: translateY(-12px) scale(.85, 1.1); opacity: 0; }
}
@keyframes mend-rise {
  0%, 8% { transform: translateY(10px) scale(.65, .2); opacity: 0; }
  36%, 48% { transform: translateY(0) scale(1); opacity: .95; }
  100% { transform: translateY(-20px) scale(.78, .65); opacity: 0; }
}
@keyframes mend-arrive {
  0%, 27% { transform: scale(.4); opacity: 0; }
  40%, 50% { transform: scale(1); opacity: 1; }
  76%, 100% { transform: translateY(-5px) scale(.7); opacity: 0; }
}
@keyframes mend-mote {
  0%, 28% { transform: translateY(5px); opacity: 0; }
  42%, 56% { opacity: .9; }
  100% { transform: translateY(var(--mend-rise)); opacity: 0; }
}
@keyframes mend-cast {
  0% { opacity: 0; }
  14%, 22% { opacity: .8; }
  42%, 100% { opacity: 0; }
}
@keyframes mend-card {
  0% { opacity: 0; }
  38% { opacity: .24; }
  100% { opacity: 0; }
}
@keyframes mend-hp {
  0%, 18% { width: var(--hp-before); }
  40%, 100% { width: var(--hp-after); }
}
@keyframes mend-number {
  0%, 35% { opacity: 0; transform: translateY(5px); }
  48%, 78% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0; transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .battle.scene-v2 .bcell.fx2-t-heal .scene-hp-change,
  .battle.scene-v2 .bcell.fx2-t-heal > .pop.heal { animation: none; }
  .battle.scene-v2 .bcell.fx2-t-heal.is-heal::after { display: none; }
}

.scene-shield-body {
  fill: rgba(116, 190, 205, .24);
  stroke: #d7edf0;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: scene-shield-rise var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-shield-intercept { stroke: #fff1ca; }

.scene-shield-boss {
  fill: #dcecf0;
  stroke: #385a64;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: scene-shield-rise var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-local-outline {
  fill: rgba(8, 9, 14, .18);
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-status-ring var(--scene-dur, 480ms) steps(5, end) both;
}

.scene-reduced-outline {
  fill: none;
  stroke: #f2d59d;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  opacity: 0;
}

.scene-status-eye,
.scene-status-rune,
.scene-status-pulse,
.scene-mist-lines,
.scene-curse-wisps,
.scene-curse-seal,
.scene-status-slash,
.scene-status-chips {
  fill: none;
  stroke: #d7e0e3;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-status-pop var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-status-slash,
.scene-status-chips { stroke: #b76c51; }
.scene-status-rune { stroke: #d5b56c; }
.scene-mist-lines { stroke: rgba(225, 237, 238, .86); stroke-width: 7; }
.scene-curse-wisps { stroke: #7f536f; stroke-width: 5; }
.scene-curse-seal { fill: #531f43; stroke: #e09176; }

.scene-brace-crack,
.scene-taunt-rays,
.scene-counter-mark,
.scene-plunder-sack {
  fill: none;
  stroke: #e6edf0;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-actor-motif var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-taunt-mark {
  fill: #d56d42;
  stroke: #08090d;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-taunt var(--scene-dur, 480ms) steps(6, end) both;
}

.scene-counter-mark { stroke: #a9d9e5; }
.scene-plunder-sack { fill: #a87538; stroke: #f0ca72; }

.scene-basic-slash,
.scene-counter-slash {
  fill: none;
  stroke: #eee3cb;
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-basic-slash var(--scene-dur, 480ms) steps(5, end) both;
}

.scene-counter-slash { stroke: #fff1c7; stroke-width: 5; }

.scene-hook,
.scene-shock-fans,
.scene-reticle-stab {
  fill: none;
  stroke: #fff0cf;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: scene-impact var(--scene-dur, 480ms) steps(5, end) both;
}

.scene-hook { stroke: #c5cdd1; }
.scene-shock-fans { stroke: #d66d42; }
.scene-reticle-stab { fill: #fff0cf; stroke: #7e2e21; }

@keyframes scene-envelope {
  0%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes scene-link-draw {
  0% { stroke-dashoffset: 45; opacity: 0; }
  20%, 70% { opacity: .95; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes scene-impact {
  0%, 34% { transform: scale(.25) rotate(-10deg); opacity: 0; }
  42%, 66% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.28) rotate(7deg); opacity: 0; }
}

@keyframes scene-pierce {
  0%, 7% { transform: translateX(-22px) scaleX(.1); opacity: 0; }
  18% { opacity: 1; }
  42%, 69% { transform: translateX(0) scaleX(1); opacity: 1; }
  100% { transform: translateX(8px) scaleX(1.02); opacity: 0; }
}

@keyframes scene-crescent {
  0% { transform: translate(-18px, 14px) scale(.35); opacity: 0; }
  18% { opacity: 1; }
  42%, 68% { transform: translate(0) scale(1); opacity: 1; }
  100% { transform: translate(8px, -6px) scale(1.04); opacity: 0; }
}

@keyframes scene-fire-wave {
  0% { stroke-dasharray: 1 300; opacity: 0; }
  25%, 68% { stroke-dasharray: 300 1; opacity: 1; }
  100% { opacity: 0; }
}

@keyframes scene-flame-rise {
  0%, 8% { transform: translateY(18px) scale(.65, .2); opacity: 0; }
  22% { opacity: 1; }
  42%, 70% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-8px) scale(.88, .7); opacity: 0; }
}

@keyframes scene-burst {
  0%, 14% { transform: scale(.18) rotate(-8deg); opacity: 0; }
  40%, 64% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.18) rotate(6deg); opacity: 0; }
}

@keyframes scene-arrow-flight {
  0%, 8% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  40%, 67% { transform: translateX(var(--scene-flight)); opacity: 1; }
  100% { transform: translateX(var(--scene-flight)); opacity: 0; }
}

@keyframes scene-arrow-flight-late {
  0%, 25% { transform: translateX(0); opacity: 0; }
  32% { opacity: 1; }
  55%, 73% { transform: translateX(var(--scene-flight)); opacity: 1; }
  100% { transform: translateX(var(--scene-flight)); opacity: 0; }
}

@keyframes scene-snipe-arrow-flight {
  0%, 8% { transform: translateX(0); opacity: 0; }
  14%, 35% { opacity: 1; }
  36% { transform: translateX(var(--scene-flight)); opacity: 1; }
  40%, 100% { transform: translateX(var(--scene-flight)); opacity: 0; }
}

@keyframes scene-snipe-impact {
  0%, 36% { transform: scale(.18) rotate(-12deg); opacity: 0; }
  40%, 64% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.38) rotate(8deg); opacity: 0; }
}

@keyframes scene-reticle {
  0% { transform: scale(1.4) rotate(-16deg); opacity: 0; }
  25%, 72% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.88) rotate(8deg); opacity: 0; }
}

@keyframes scene-heal-rise {
  0% { transform: translateY(17px) scale(.55); opacity: 0; }
  30%, 72% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-14px) scale(1.06); opacity: 0; }
}

@keyframes scene-bless {
  0%, 15% { transform: scale(.3) rotate(-18deg); opacity: 0; }
  38%, 72% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.12) rotate(10deg); opacity: 0; }
}

@keyframes scene-shield-rise {
  0% { transform: translateY(18px) scale(.65); opacity: 0; }
  35%, 72% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(2px) scale(.98); opacity: 0; }
}

@keyframes scene-status-ring {
  0% { transform: scale(1.35); opacity: 0; }
  30%, 70% { transform: scale(1); opacity: .75; }
  100% { transform: scale(.88); opacity: 0; }
}

@keyframes scene-status-pop {
  0%, 16% { transform: scale(.45) rotate(-9deg); opacity: 0; }
  38%, 70% { transform: scale(1); opacity: 1; }
  100% { transform: translateY(-7px) scale(.92) rotate(5deg); opacity: 0; }
}

@keyframes scene-actor-motif {
  0% { transform: translateY(14px) scale(.65); opacity: 0; }
  30%, 72% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(3px); opacity: 0; }
}

@keyframes scene-taunt {
  0% { transform: translateY(13px) scale(.6); opacity: 0; }
  28% { transform: translateY(-4px) scale(1.15); opacity: 1; }
  48%, 72% { transform: translateY(0) scale(1); opacity: 1; }
  100% { opacity: 0; }
}

@keyframes scene-basic-slash {
  0%, 22% { transform: translate(-12px, 9px) scale(.35); opacity: 0; }
  40%, 58% { transform: translate(0) scale(1); opacity: .9; }
  100% { transform: translate(4px, -3px) scale(1.04); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .battle.scene-v2 .scene-fx-overlay,
  .battle.scene-v2 .scene-fx-overlay * {
    animation: none !important;
  }

  .battle.scene-v2 .scene-fx-overlay {
    opacity: 1;
  }

  .battle.scene-v2 .scene-fx-overlay > :not(.scene-target),
  .battle.scene-v2 .scene-target > :not(.scene-local-outline):not(.scene-heal-ring):not(.scene-slow-clock):not(.scene-snipe-reticle):not(.scene-reduced-outline) {
    display: none;
  }

  .battle.scene-v2 .scene-target .scene-local-outline,
  .battle.scene-v2 .scene-target .scene-heal-ring,
  .battle.scene-v2 .scene-target .scene-slow-clock,
  .battle.scene-v2 .scene-target .scene-snipe-reticle,
  .battle.scene-v2 .scene-target .scene-reduced-outline {
    opacity: .85;
  }
}

/* 月弓：放つ位置と命中先を同じ盤面座標で結ぶ。 */
.scene-moonlight .scene-arrow-shaft { stroke:#e4f6ff; stroke-width:4; filter:drop-shadow(0 0 4px #9cc9ff); }
.scene-moonlight .scene-arrow-tip { fill:#f4fcff; stroke:#bddbff; }
.scene-moonlight .scene-impact-rays { stroke:#b9deff; }
.scene-moonlight .scene-impact-core { fill:#effaff; }
.scene-fx-artemis_arrow .scene-arrow-shaft { stroke-width:7; }
.scene-fx-artemis_arrow .scene-arrow-tip { transform:scale(1.35); }
.scene-moon-crescent { fill:#daeaff; stroke:#94b9ec; stroke-width:1.5; animation:scene-moon-rise var(--scene-dur,480ms) ease-out both; }
.scene-moon-chain { fill:none; stroke:#c1deff; stroke-width:3; animation:scene-impact var(--scene-dur,480ms) ease-out both; }
@keyframes scene-moon-rise { 0%,15% { opacity:0; } 55% { opacity:1; } 100% { opacity:.45; } }

/* 外れは「射出 → 通り抜け → 月が満ちる」。次の手まで予兆を残す。 */
.battle.scene-v2 .scene-fx-overlay.scene-moon-miss {
  z-index: 14;
  overflow: hidden;
  animation: none;
  opacity: 1;
}
.scene-arrow-flight.scene-arrow-miss {
  animation: scene-missed-flight var(--moon-miss-duration, 2000ms) linear both;
}
.scene-miss-trail { fill: none; stroke: #b4d8ff; stroke-width: 3; opacity: .6; }
.scene-miss-label {
  fill: #e5eeff;
  stroke: #102039;
  stroke-width: 4;
  paint-order: stroke;
  font: 700 16px "Yu Mincho", "Hiragino Mincho ProN", serif;
  animation: scene-missed-label var(--moon-miss-duration, 2000ms) ease-out both;
}
.scene-moon-veil {
  fill: #071326;
  animation: scene-moon-veil var(--moon-miss-duration, 2000ms) ease-out both;
}
.scene-moon-omen {
  color: #dceeff;
  animation: scene-moon-reveal var(--moon-miss-duration, 2000ms) ease-out both;
}
.scene-moon-bloom { filter: drop-shadow(0 0 14px #8faeff99); }
.scene-omen-disc {
  fill: #dae9ff;
  animation: scene-moon-fill var(--moon-miss-duration, 2000ms) ease-out both;
}
.scene-omen-crescent { fill: #f3f7ff; }
.scene-omen-ring {
  fill: none;
  stroke: #b8d6ff;
  stroke-width: 1;
  transform-origin: 0 0;
  animation: scene-moon-spread var(--moon-miss-duration, 2000ms) ease-out both;
}
.scene-omen-ring-outer { stroke-dasharray: 2 9; stroke-width: 1.5; opacity: .45; }
.scene-omen-mote { fill: #e7f2ff; }
.scene-omen-title, .scene-omen-subtitle {
  fill: #e5eeff;
  stroke: #071326;
  stroke-width: 3;
  paint-order: stroke;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: .14em;
}
.scene-omen-title { font-size: 26px; }
.scene-omen-subtitle { font-size: 13px; letter-spacing: .08em; fill: #b6cce9; }
.battle.scene-v2 .bcell.is-moon-ready > .bface {
  box-shadow: 0 0 0 2px #d0e2ff, 0 0 18px 5px #7d9bdf88;
}
.battle.scene-v2 .fx2-m-moonlit_hunt_ready {
  width: 16px;
  height: 16px;
  color: #e1edff;
  background: #253957;
  border-width: 1px;
  border-color: #bbd4fa;
  border-radius: 50%;
}
.battle.scene-v2 .fx2-m-moonlit_hunt_ready::before {
  content: '☾';
  position: absolute;
  inset: 0;
  font: 15px/14px serif;
  text-align: center;
}
@keyframes scene-missed-flight {
  0%, 3% { transform: translateX(0); opacity: 0; }
  5%, 24% { opacity: 1; }
  30%, 100% { transform: translateX(var(--scene-flight)); opacity: 0; }
}
@keyframes scene-missed-label {
  0%, 20% { opacity: 0; }
  28%, 44% { opacity: 1; }
  55%, 100% { opacity: 0; }
}
@keyframes scene-moon-veil {
  0%, 30% { opacity: 0; }
  65%, 100% { opacity: .78; }
}
@keyframes scene-moon-reveal {
  0%, 33% { opacity: 0; }
  75%, 100% { opacity: 1; }
}
@keyframes scene-moon-fill {
  0%, 43% { opacity: 0; }
  82%, 100% { opacity: .9; }
}
@keyframes scene-moon-spread {
  0%, 30% { transform: scale(.45); opacity: 0; }
  70% { opacity: .7; }
  100% { transform: scale(1.15); opacity: .3; }
}
@media (prefers-reduced-motion:reduce) {
  .scene-moon-crescent,.scene-moon-chain { animation:none; }
  .battle.scene-v2 .scene-moon-miss > .scene-moon-veil,
  .battle.scene-v2 .scene-moon-miss > .scene-moon-omen { display: block; }
  .scene-moon-miss .scene-moon-veil { opacity: .78; }
  .scene-moon-miss .scene-omen-ring { opacity: .3; }
}

/* 専用技。隊列・HPを覆わず、既存の手番の尺に収める。 */
.epic-shadow-pool{fill:#171022;animation:scene-status-ring var(--scene-dur) ease-out both}
.battle.scene-v2[data-action="shadow_stab"] .bcell.fx2-act-shadow_stab > .bface{animation:epic-sink var(--fx-turn) linear both}
@keyframes epic-sink{0%,100%{filter:none;translate:0 0;opacity:1}45%,86%{filter:brightness(0);translate:0 10px;opacity:0}}
.epic-shadow-figure{animation:epic-shadow-emerge var(--scene-dur) linear both}
.epic-dagger{fill:#f1f0ff;stroke:#afa3c9;stroke-width:1;animation:epic-stab var(--scene-dur) linear both}
.epic-stab-glint{fill:none;stroke:#fff;stroke-width:2;animation:scene-impact var(--scene-dur) both}
.epic-rune{fill:none;stroke:#d369a9;stroke-width:2;animation:scene-status-ring var(--scene-dur) both}
.epic-meteor-tail{fill:#f18134;opacity:.72}.epic-meteor-fall{animation:epic-fall var(--scene-dur) ease-in both}
.epic-shockwave{fill:none;stroke:#ffb85a;stroke-width:4;animation:scene-burst var(--scene-dur) both}
.epic-fire-cross{fill:none;stroke:#ffc15b;stroke-width:9;animation:scene-burst var(--scene-dur) both}
.epic-crack{fill:none;stroke:#efc7ff;stroke-width:3;animation:scene-impact var(--scene-dur) both}
.epic-sweep{fill:none;stroke:#fff0b4;stroke-width:5;animation:scene-crescent var(--scene-dur) both}
.epic-devotion-shield{fill:#bd853c44;stroke:#edcd83;stroke-width:3;animation:scene-shield-rise var(--scene-dur) both}
.epic-devotion-cross{fill:none;stroke:#fff2c1;stroke-width:3;animation:scene-shield-rise var(--scene-dur) both}
.epic-prayer-ring{fill:none;stroke:#b7a5fb;stroke-width:2;animation:scene-status-ring var(--scene-dur) both}
.epic-prayer-star{fill:#d1c3ff99;stroke:#c9bbff;stroke-width:2;animation:scene-heal-rise var(--scene-dur) both}
.fx2-m-devotion::before{content:'盾'}.fx2-m-arcane_prayer::before{content:'魔'}.fx2-m-meteor_ready{display:none}
.battle .bcell > .fx2-m-shatter_arrow{position:absolute;top:-8px;right:-5px;width:24px;height:28px;z-index:12;border:0;background:none;pointer-events:none;filter:drop-shadow(0 1px 2px #080a0f)}
.battle .bcell > .fx2-m-shatter_arrow.is-shatter-applied{animation:shatter-attach var(--scene-dur,var(--fx-turn)) linear both}
@keyframes shatter-attach{0%,39.99%{visibility:hidden;opacity:0;transform:scale(.8)}40%{visibility:visible;opacity:1;transform:scale(1.18)}65%,100%{visibility:visible;opacity:1;transform:scale(1)}}
.fx2-m-shatter_arrow svg{display:block;width:100%;height:100%;overflow:visible}
.shatter-shield-piece{fill:#3b344a;stroke:#c9b7d9;stroke-width:1.4;stroke-linejoin:round}
.shatter-shield-crack{fill:none;stroke:#f1ceff;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
@keyframes epic-shadow-emerge{0%,58%{opacity:0;translate:0 15px}68%,84%{opacity:.95;translate:0 0}100%{opacity:0;translate:0 4px}}
@keyframes epic-stab{0%,70%{opacity:0;translate:10px -4px}72%,84%{opacity:1;translate:0 0}100%{opacity:0}}
@keyframes epic-fall{0%{opacity:0;translate:-70px -100px}15%{opacity:1}40%,58%{translate:0 0;opacity:1}80%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.epic-shadow-figure,.epic-dagger,.epic-meteor-fall,.epic-shockwave,.epic-rune{animation:none!important;opacity:.8}.battle.scene-v2 .bcell.fx2-act-shadow_stab > .bface{animation:none!important}}

/* 闇堕ち：45％までかけて沈み、72％地点で命中。等速760ms・倍速380ms。 */
.battle.scene-v2[data-action="shadow_stab"] .battle-scene{--scene-dur:var(--fx-turn)}
.battle.scene-v2[data-action="shadow_stab"] .bcell{--fx2-impact:.72!important}
.battle.scene-v2[data-action="shadow_stab"] .bcell>.pop{animation-duration:calc(var(--fx-turn)*.26);animation-timing-function:ease-out}
.battle.scene-v2[data-action="shadow_stab"] .scene-hp-change{animation-name:shadow-hp}
.battle.scene-v2[data-action="shadow_stab"] .is-target>.bface{animation-name:shadow-face-hit}
.battle.scene-v2[data-action="shadow_stab"] .epic-stab-glint{animation-name:shadow-glint}
.epic-shadow-pool{animation:shadow-pool var(--scene-dur) ease-out both}
.shadow-hp-before{position:absolute;animation:shadow-before var(--fx-turn) steps(1,end) both}
.shadow-hp-after{animation:shadow-after var(--fx-turn) steps(1,end) both}
@keyframes shadow-hp{0%,71%{width:var(--hp-before)}72%,100%{width:var(--hp-after)}}
@keyframes shadow-before{0%,71%{visibility:visible}72%,100%{visibility:hidden}}
@keyframes shadow-after{0%,71%{visibility:hidden}72%,100%{visibility:visible}}
@keyframes shadow-face-hit{0%,71%,100%{translate:0 0}74%{translate:2px -4px}80%{translate:-2px 0}}
@keyframes shadow-glint{0%,71%{opacity:0}72%,82%{opacity:1}100%{opacity:0}}
@keyframes shadow-pool{0%{opacity:0}16%,86%{opacity:.9}100%{opacity:0}}
/* 詠唱は手番が移っても残る。位相を引き継ぎ、再描画で光を点滅させない。 */
.battle.scene-v2 .bcell.is-meteor-channeling{box-shadow:inset 0 0 14px #ab80df38}
.meteor-channel{position:absolute;left:0;top:0;transform:translateX(-50%);width:44px;height:40px;z-index:5;pointer-events:none;overflow:visible}
.chant-circle{fill:#8b59c92b;stroke:#c7a2ee;stroke-width:1.2}
.chant-runes{fill:none;stroke:#d9b9f9;stroke-width:.7;transform-origin:22px 36px;animation:chant-orbit 5.6s linear var(--chant-phase,0ms) infinite}
.chant-mote{fill:#dfc5ff;animation:chant-rise 1.4s linear var(--chant-phase,0ms) infinite}
.chant-mote-1{animation-delay:calc(var(--chant-phase,0ms) - .35s)}.chant-mote-2{animation-delay:calc(var(--chant-phase,0ms) - .7s)}.chant-mote-3{animation-delay:calc(var(--chant-phase,0ms) - 1.05s)}
@keyframes chant-orbit{to{rotate:360deg}}
@keyframes chant-rise{0%{translate:0 0;opacity:.15}40%,70%{opacity:.8}100%{translate:0 -24px;opacity:.15}}
@media(prefers-reduced-motion:reduce){.meteor-channel *{animation:none!important}.shadow-hp-before{display:none}.shadow-hp-after{visibility:visible;animation:none}}

/* アシュラドの斬撃と相互治療。盤面や文字は点滅させず、軌跡だけを動かす。 */
.raid-cut-shadow,.raid-sweep-shadow{fill:#240d15;opacity:.86;stroke:none}
.raid-cut-steel,.raid-sweep-steel{fill:#adb9ba;stroke:none}
.raid-cut-edge,.raid-sweep-edge{fill:#fff7de;stroke:none}
.raid-cut-scar,.raid-cut-last{fill:none;stroke:#924536;stroke-width:2;animation:raid-cut-scar var(--scene-dur,480ms) ease-out both}
.raid-cut-last{stroke:#ba6650;stroke-width:3}
.raid-cut-axis{transform-box:fill-box;transform-origin:left center;animation:raid-cut var(--scene-dur,480ms) linear both}
.raid-sweep-axis{transform-box:fill-box;transform-origin:left center;animation:raid-sweep var(--scene-dur,480ms) linear both}
.raid-sweep-hit{fill:#d0bba4;stroke:none;animation:raid-hit var(--scene-dur,480ms) ease-out both;animation-delay:var(--raid-delay,0ms)}
.raid-steel-fragment{animation:raid-fragment var(--scene-dur,480ms) ease-out both;animation-delay:var(--raid-delay,0ms)}
.raid-fragment-metal{fill:#d2bd99;stroke:none}
.raid-treatment-thread{fill:none;stroke:#b5d2ba;stroke-width:3;stroke-dasharray:8 6;animation:raid-thread var(--scene-dur,480ms) linear both}
.raid-treatment-thread.second{stroke:#e3d8ad;stroke-width:1.5;opacity:.7}
.raid-treatment-ring{fill:#6d9f8820;stroke:#b8d2b4;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:raid-heal-ring var(--scene-dur,480ms) ease-out both}
.raid-treatment-wrap{fill:none;stroke:#dfd6b4;stroke-width:5;stroke-linecap:round;animation:raid-wrap var(--scene-dur,480ms) ease-out both}
.raid-treatment-mark{fill:#e0edd1;stroke:#6b9980;stroke-width:1}
.raid-treatment-mote{fill:none;stroke:#c7dbb2;stroke-width:2;animation:raid-mote var(--scene-dur,480ms) ease-out both}
@keyframes raid-cut{0%,20%{opacity:0;transform:translateX(-20px) scaleX(.08)}27%{opacity:1;transform:translateX(-8px) scaleX(.75)}34%{opacity:1;transform:translateX(0) scaleX(1)}43%{opacity:.8;transform:translateX(7px) scaleX(1.05)}60%,100%{opacity:0;transform:translateX(17px) scaleX(1.1)}}
@keyframes raid-sweep{0%,14%{opacity:0;transform:scaleX(.08) rotate(-8deg)}24%{opacity:1;transform:scaleX(.6) rotate(-3deg)}38%{opacity:1;transform:scaleX(1) rotate(0)}52%{opacity:.65;transform:translateX(5px) rotate(5deg)}76%,100%{opacity:0;transform:translateX(12px) rotate(9deg)}}
@keyframes raid-cut-scar{0%,30%{opacity:0}40%,60%{opacity:.9}100%{opacity:0}}
@keyframes raid-hit{0%,26%{opacity:0;transform:translateX(-5px)}38%{opacity:1;transform:translateX(0)}72%,100%{opacity:0;transform:translateX(7px)}}
@keyframes raid-fragment{0%,28%{opacity:0;transform:translate(0,0)}36%{opacity:1}80%,100%{opacity:0;transform:translate(var(--shard-x),var(--shard-y)) rotate(25deg)}}
@keyframes raid-thread{from{stroke-dashoffset:40;opacity:0}25%{opacity:1}to{stroke-dashoffset:0;opacity:0}}
@keyframes raid-heal-ring{from{opacity:0;transform:scale(.6)}35%{opacity:1}to{opacity:0;transform:scale(1.25)}}
@keyframes raid-wrap{from{opacity:0;stroke-dasharray:0 160}40%{opacity:1;stroke-dasharray:90 160}to{opacity:0;stroke-dasharray:160 160}}
@keyframes raid-mote{from{opacity:0;transform:translateY(8px)}40%{opacity:1}to{opacity:0;transform:translateY(-12px)}}
@media(prefers-reduced-motion:reduce){.raid-cut-axis,.raid-sweep-axis,.raid-treatment-link,.scene-target-raid-mutual-heal{animation:none!important}}




/* 元の斬撃サイズを固定。輪郭を動かさず、左から右への振り抜きを内部で描く。 */
.raid-cut-axis,.raid-sweep-axis{transform:none;rotate:none;transform-origin:center;animation:raid-contained-swing var(--scene-dur,480ms) linear both}
@keyframes raid-contained-swing{
  0%,22%{opacity:0;clip-path:inset(0 100% 0 0)}
  27%{opacity:1;clip-path:inset(0 78% 0 0)}
  35%{opacity:1;clip-path:inset(0 35% 0 0)}
  42%{opacity:1;clip-path:inset(0 0 0 8%)}
  49%{opacity:.9;clip-path:inset(0 0 0 48%)}
  57%{opacity:.5;clip-path:inset(0 0 0 88%)}
  65%,100%{opacity:0;clip-path:inset(0 0 0 100%)}
}
@media(prefers-reduced-motion:reduce){.raid-cut-axis,.raid-sweep-axis{animation:none!important}}

/* 一閃だけに、控えめな死の印。斬撃の表示範囲・軌道は変えない。 */
.raid-cut-effect .raid-cut-shadow{fill:#260c17;opacity:.95}
.raid-cut-effect .raid-cut-scar{stroke:#71313a}
.raid-death-mark{animation:raid-death-omen var(--scene-dur,480ms) linear both}
.raid-skull-bone{fill:#c9c3b1;stroke:#3c2930;stroke-width:1.5}
.raid-skull-eye{fill:#622c38;stroke:#251820;stroke-width:1}
.raid-skull-detail{fill:#39252c;stroke:#39252c;stroke-width:1}
@keyframes raid-death-omen{0%,38%{opacity:0;translate:0 3px}47%{opacity:.9;translate:0 0}63%{opacity:.8;translate:0 -1px}88%,100%{opacity:0;translate:0 -5px}}
@media(prefers-reduced-motion:reduce){.raid-death-mark{animation:none!important}}
