/* =========================================================================
   バトル画面・VS演出・結果テロップ
   ========================================================================= */

.battle-screen {
  position: relative;
}

.battle-inner {
  position: relative;
  height: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: max(6px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 上端: ステージ・経過時間・速度 */
.battle-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(10, 12, 17, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  animation: enter-from-top 0.45s var(--spring) both;
}

@keyframes enter-from-top {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
}

@keyframes enter-from-bottom {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* ------------------------------------------------------------- 陣営の情報（HP・状態異常） */

.side-head {
  --side: var(--ally);
  flex: none;
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px 5px 8px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--side) 22%, #12151c), #12151c 60%);
  box-shadow: inset 3px 0 0 var(--side), inset 1px 1px 0 var(--edge-hi);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.side-head.enemy {
  --side: var(--enemy);
  animation: enter-from-top 0.5s var(--spring) both;
}

.side-head.player {
  animation: enter-from-bottom 0.5s var(--spring) both;
}

.side-head.hit {
  animation: head-hit 0.3s ease-out;
}

@keyframes head-hit {
  30% {
    background: color-mix(in srgb, var(--bad) 55%, #12151c);
    transform: translateX(-3px);
  }
}

.side-leader {
  width: 44px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.side-leader img {
  max-height: 48px;
  max-width: 44px;
}

.side-leader.enemy img {
  max-height: 44px;
  transform: scaleX(-1);
}

.side-info {
  flex: 1;
  min-width: 0;
}

.side-name {
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

/* HPバー（受けたダメージは白い残像が遅れて減る） */
.hpbar {
  position: relative;
  height: 16px;
  background: #07080b;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.hpbar-trail {
  position: absolute;
  inset: 0 auto 0 0;
  background: #fff7d6;
  transition: width 0.5s ease-in 0.28s;
}

.hpbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, #a4ffb0, #2fc25a);
  transition: width 0.1s linear;
}

.side-head.enemy .hpbar-fill {
  background: linear-gradient(180deg, #ffa1ae, #e2334f);
}

.hpbar-fill.low {
  animation: blink 0.6s infinite;
}

.hpbar-shield {
  position: absolute;
  inset: 0 auto 0 0;
  background: repeating-linear-gradient(45deg, rgba(143, 212, 255, 0.9) 0 6px, rgba(190, 232, 255, 0.9) 6px 12px);
  transition: width 0.12s linear;
}

.hpbar-text {
  position: absolute;
  inset: 0;
  text-align: center;
  font-family: var(--font-num);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}

.side-status {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  height: 18px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 13px;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.shield-st b {
  color: var(--shield);
}

.bleed-st b {
  color: #ff7d8c;
}

.poison-st b {
  color: #c79bff;
}

/* ------------------------------------------------------------- 盤面（手前=自分、奥=敵） */

.battle-field {
  /* ヒーローの大きさの基準（盤面の幅・高さに合わせる） */
  --u: min(18cqw, 13cqh);
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  container-type: size;
  animation: field-in 0.55s var(--spring) both;
}

@keyframes field-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

.field-floor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.field-floor polygon,
.field-floor polyline {
  vector-effect: non-scaling-stroke;
}

.floor-area {
  stroke-width: 1;
  transition: fill 0.4s, stroke 0.4s;
}

.floor-area.enemy {
  fill: rgba(255, 79, 109, 0.1);
  stroke: rgba(255, 79, 109, 0.35);
}

.floor-area.ally {
  fill: rgba(57, 213, 255, 0.1);
  stroke: rgba(57, 213, 255, 0.35);
}

.lane-line {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.lane-line.ally {
  stroke: rgba(57, 213, 255, 0.4);
}

.lane-line.enemy {
  stroke: rgba(255, 79, 109, 0.4);
}

/* 前衛（中央線に一番近い列）の線を強調する */
.lane-line.lane0 {
  stroke-width: 2;
  stroke-dasharray: none;
}

.lane-line.lane0.ally {
  stroke: rgba(57, 213, 255, 0.7);
}

.lane-line.lane0.enemy {
  stroke: rgba(255, 79, 109, 0.7);
}

.center-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  filter: drop-shadow(0 0 3px var(--accent));
}

/* 前衛・中衛・後衛の札 */
.lane-tag {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 1px 5px;
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  color: #0b0d12;
  background: var(--ally);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  pointer-events: none;
}

.lane-tag.enemy {
  background: var(--enemy);
  color: #fff;
}

.lane-tag.lane1,
.lane-tag.lane2 {
  opacity: 0.78;
}

/* 盤面の片側。状態異常のもやはこの範囲に掛ける */
.field-zone {
  position: absolute;
  left: 0;
  right: 0;
}

/* ヒーローの立ち位置（足元が座標に来る。奥ほど小さい） */
.unit-pos {
  position: absolute;
  width: calc(var(--u) * var(--s, 1));
  height: calc(var(--u) * var(--s, 1));
  transform: translate(-50%, -88%);
}

.fighter {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* 足元の円（役割の色）。前に出るほど地面に影を落とす */
.ground {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--role) 45%, transparent), rgba(0, 0, 0, 0.45) 65%, transparent 72%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--role) 75%, transparent);
}

.fighter.empty {
  cursor: default;
}

.fighter.empty .ground {
  background: none;
  box-shadow: none;
  border: 2px dashed rgba(255, 255, 255, 0.16);
}

.fighter-art {
  position: absolute;
  inset: 0 0 8%;
}

.fighter-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.55));
  animation: bob 2.2s ease-in-out infinite;
  animation-delay: var(--bd, 0s);
}

.field-zone.enemy .fighter-art img {
  transform: scaleX(-1);
  animation-name: bob-flip;
}

@keyframes bob-flip {
  0%,
  100% {
    transform: scaleX(-1);
  }
  50% {
    transform: scaleX(-1) translateY(-4px);
  }
}

.fighter .lv {
  position: absolute;
  right: -4px;
  top: 2%;
  z-index: 1;
  transform: scale(calc(var(--s, 1) * 0.85));
  transform-origin: 100% 0;
}

.charge {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 100%;
  height: 5px;
  margin-top: 2px;
  background: #07080b;
  overflow: hidden;
  transform: skewX(-20deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.charge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.charge.ready .charge-fill {
  background: #fff;
  box-shadow: 0 0 6px #fff;
}

.mult {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 1px 2px #000;
}

.mult.up {
  color: var(--good);
}

.mult.down {
  color: var(--bad);
}

.multicast {
  position: absolute;
  right: 0;
  bottom: 10%;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 10px;
  color: var(--accent);
  text-shadow: 0 1px 2px #000;
}

.stage-label {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 12px;
}

.timer {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 20px;
  min-width: 56px;
  text-align: center;
}

.timer.sudden {
  color: #ffb36b;
  animation: blink 0.6s infinite;
}

.battle-controls {
  display: flex;
  gap: 3px;
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* エフェクトはUIより彩度を落とす */
.fx-sprite {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: 5;
  opacity: 0.85;
  filter: saturate(0.75);
}

.pop-text {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%);
  font-family: var(--font-num);
  font-size: var(--fs, 22px);
  font-weight: 700;
  pointer-events: none;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 0 0 8px rgba(0, 0, 0, 0.6);
  animation: pop 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  white-space: nowrap;
}

.pop-text.damage {
  color: #fff;
}
.pop-text.damage.big {
  color: var(--accent);
}
.pop-text.shield {
  color: var(--shield);
}
.pop-text.heal {
  color: var(--good);
}
.pop-text.bleed {
  color: #ff7d8c;
  font-size: 15px;
}
.pop-text.poison {
  color: #c79bff;
  font-size: 15px;
}
.pop-text.buff {
  color: var(--accent);
  font-size: 13px;
}
.pop-text.debuff {
  color: #ff9b6b;
  font-size: 13px;
}
.pop-text.sudden {
  color: #ffb36b;
}
.pop-text.ext {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 14px;
}

@keyframes pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(1.8);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.95);
  }
}

.battle-banner {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 44%;
  z-index: 8;
  text-align: center;
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
  text-shadow: 3px 3px 0 #b8432a;
  background: linear-gradient(90deg, transparent, rgba(20, 8, 6, 0.9) 20%, rgba(20, 8, 6, 0.9) 80%, transparent);
  border-top: 3px solid #ffb36b;
  border-bottom: 3px solid #ffb36b;
  transform: rotate(-4deg);
  animation: banner 1.4s forwards;
}

@keyframes banner {
  0% {
    opacity: 0;
    transform: rotate(-4deg) scaleY(0.1);
  }
  12%,
  82% {
    opacity: 1;
    transform: rotate(-4deg) scaleY(1);
  }
  100% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------- VS 演出 */

.battle-intro {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  cursor: pointer;
  background: rgba(5, 6, 10, 0.88);
  animation: fade-in 0.15s both;
}

.battle-intro.leave {
  opacity: 0;
  transition: opacity 0.3s;
}

.vs-half {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 58%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16%;
}

/* 盤面と同じく、敵が上（奥・右寄り）、自分が下（手前・左寄り） */
.vs-half.enemy {
  top: -6%;
  justify-content: flex-end;
  background: linear-gradient(300deg, #3a0f1a, #6b1830);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  animation: vs-enemy 0.45s cubic-bezier(0.7, 0, 0.2, 1) both;
}

.vs-half.ally {
  bottom: -6%;
  background: linear-gradient(120deg, #0f2a33, #145466);
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%);
  animation: vs-ally 0.45s cubic-bezier(0.7, 0, 0.2, 1) both;
}

@keyframes vs-ally {
  from {
    transform: translateX(-100%);
  }
}

@keyframes vs-enemy {
  from {
    transform: translateX(100%);
  }
}

.vs-half::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 8px, transparent 8px 20px);
  animation: stripes-drift 4s linear infinite;
}

.vs-figure {
  position: relative;
  height: 62%;
  display: flex;
  align-items: flex-end;
  animation: vs-figure 0.5s var(--spring) 0.25s both;
}

.vs-figure img {
  height: 100%;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.5));
}

.vs-figure.enemy img {
  transform: scaleX(-1);
}

.vs-figure.mai {
  height: 46%;
}

@keyframes vs-figure {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

.vs-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 18px;
  max-width: 50%;
  line-height: 1.2;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  animation: enter-left 0.4s var(--spring) 0.3s both;
}

.vs-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 84px;
  color: var(--accent);
  text-shadow: 5px 5px 0 #000;
  animation: vs-slam 0.4s cubic-bezier(0.3, 1.6, 0.4, 1) 0.4s both;
}

@keyframes vs-slam {
  from {
    transform: translate(-50%, -50%) rotate(-8deg) scale(3);
    opacity: 0;
  }
}

/* MCH パッシブカットイン（スタイルは css/cutins/passive_skill_cutin.css） */
.cutin {
  z-index: 20;
  pointer-events: none;
  animation: cutin 0.8s ease-out forwards;
}

.cutin .mch-passive-cutin {
  position: absolute;
  inset: 0;
  top: 50%;
}

.cutin-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cutin .mch-passive-cutin-unit__image {
  width: 64px;
  height: 64px;
}

.cutin .mch-passive-cutin-unit__skill-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

@keyframes cutin {
  0% {
    opacity: 0;
    transform: translate(60%, -50%) skewY(-10deg);
  }
  20%,
  80% {
    opacity: 1;
    transform: translate(0, -50%) skewY(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(-60%, -50%) skewY(-10deg);
  }
}

/* ------------------------------------------------------------- 結果（テロップの手前にキャラクター） */

.result-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: rgba(5, 6, 10, 0.62);
  animation: fade-in 0.25s both;
}

.result-band {
  position: absolute;
  left: -15%;
  right: -15%;
  top: 22%;
  height: 104px;
  display: flex;
  align-items: center;
  padding-left: 18%;
  background: linear-gradient(90deg, #0d0f15, #1d2231 60%, #0d0f15);
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  transform: rotate(-7deg);
  animation: band-in 0.4s cubic-bezier(0.7, 0, 0.2, 1) both;
}

.result-overlay.lose .result-band {
  border-color: #5d6478;
}

.result-band span {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(56px, 19vw, 92px);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 5px 5px 0 var(--accent);
  animation: telop-num 0.45s var(--spring) 0.15s both;
}

.result-overlay.lose .result-band span {
  color: #b9bfcc;
  text-shadow: 5px 5px 0 #2a2f3c;
}

.result-figure {
  position: absolute;
  right: 4%;
  top: 8%;
  height: 38%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  animation: telop-figure 0.5s var(--spring) 0.3s both;
}

.result-figure img {
  height: 100%;
  filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.5));
}

.result-figure.mai {
  height: 26%;
  top: 14%;
}

.result-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: enter-up 0.45s var(--spring) 0.35s both;
}

.result-stage {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-size: 12px;
}

.result-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-row small {
  color: var(--muted);
}

.result-row b {
  font-family: var(--font-num);
  font-size: 22px;
}

.result-row .win-gauge .segs i {
  width: 8px;
  height: 14px;
}

.result-row.lives b {
  color: var(--bad);
}

.result-row.buffed b,
.result-row.revived b {
  color: var(--accent);
}

.mini-unit {
  width: 34px;
  height: 34px;
}

.result-panel .btn.big {
  width: 100%;
}

/* ------------------------------------------------------------- 振り返り（結果画面で両パーティを確認） */

.review {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.review-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-label {
  flex: none;
  width: 30px;
  padding: 2px 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  color: #0b0d12;
  background: var(--ally);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.review-row.enemy .review-label {
  background: var(--enemy);
  color: #fff;
}

.review-units {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.review-unit {
  position: relative;
  aspect-ratio: 1;
  max-height: 46px;
  padding: 2px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(170deg, rgba(52, 58, 75, 0.95), rgba(18, 21, 29, 0.95) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -3px 0 var(--role);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.review-unit:active {
  transform: scale(0.94);
}

.review-unit > img.pixel {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-unit .lv {
  position: absolute;
  right: 1px;
  top: 1px;
  transform: scale(0.75);
  transform-origin: 100% 0;
}

.review-kind {
  position: absolute;
  left: 2px;
  bottom: 4px;
  width: 13px;
  height: 13px;
}

.mvp {
  display: inline-block;
  padding: 0 4px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 10px;
  line-height: 14px;
  color: #241900;
  background: linear-gradient(180deg, #fff1a8, var(--accent));
}

.review-unit .mvp {
  position: absolute;
  left: 1px;
  top: 1px;
  padding: 0 2px;
  font-size: 8px;
  line-height: 10px;
}

img.flip {
  transform: scaleX(-1);
}

.side-chip,
.lane-chip {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-display);
  font-size: 11px;
  color: #0b0d12;
  background: var(--ally);
}

.side-chip.enemy {
  color: #fff;
  background: var(--enemy);
}

.lane-chip {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.multicast-note {
  margin-left: auto;
  font-family: var(--font-num);
  color: var(--accent);
}

/* ------------------------------------------------------------- レイドボス */

/* 中衛の中央に大きく描く（128pxのドット絵。元から左向きなので反転しない） */
.unit-pos.boss-pos {
  width: calc(var(--u) * var(--s, 1) * 2.3);
  height: calc(var(--u) * var(--s, 1) * 2.3);
  transform: translate(-50%, -80%);
}

.field-zone.enemy .fighter.boss .fighter-art img {
  transform: none;
  animation-name: boss-breathe;
  animation-duration: 3s;
  filter: drop-shadow(0 0 10px rgba(255, 79, 109, 0.55)) drop-shadow(0 4px 2px rgba(0, 0, 0, 0.6));
}

@keyframes boss-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03) translateY(-3px);
  }
}

.fighter.boss .ground {
  left: 0;
  right: 0;
  height: 22%;
}

.fighter.boss .charge {
  left: 24%;
  right: 24%;
  height: 6px;
}

/* 次に使うスキル（大技は赤く点滅して予告） */
.boss-next {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 4px;
  max-width: 220%;
  padding: 1px 8px;
  white-space: nowrap;
  background: rgba(10, 10, 16, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  font-size: 10px;
}

.boss-next small {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.boss-next b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-next.final {
  background: #5a0c1c;
  box-shadow: inset 0 0 0 1px #ff4f6d;
}

.boss-next.final small {
  color: #ffd0d8;
}

.fighter.boss.final-ready .boss-next {
  animation: final-warn 0.5s ease-in-out infinite alternate;
}

.fighter.boss.final-ready .charge-fill {
  background: linear-gradient(90deg, #ff4f6d, #ffb36b);
}

@keyframes final-warn {
  to {
    background: #b0142f;
    transform: translateX(-50%) scale(1.06);
  }
}

.pop-text.boss-skill {
  font-family: var(--font-display);
  font-size: 15px;
  color: #ffd0d8;
  text-shadow: 2px 2px 0 #5a0c1c, 0 0 10px rgba(255, 79, 109, 0.8);
}

/* 大技の帯 */
.boss-final-banner {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 30%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 8px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(60, 4, 16, 0.92) 18%, rgba(60, 4, 16, 0.92) 82%, transparent);
  border-top: 3px solid #ff4f6d;
  border-bottom: 3px solid #ff4f6d;
  transform: rotate(-4deg);
  animation: banner 1.3s forwards;
}

.boss-final-banner small {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #ff8fa3;
}

.boss-final-banner b {
  font-family: var(--font-display);
  font-size: clamp(20px, 6.5cqw, 32px);
  color: #fff;
  text-shadow: 3px 3px 0 #b0142f;
}

.stage-label.boss {
  color: #ff8fa3;
}

/* レイドボス: 名前を上に、ボスを大きく */
.vs-half.enemy.boss {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding-top: 8%;
  background: linear-gradient(300deg, #4a0612, #8a1230);
}

.vs-half.enemy.boss .vs-name {
  max-width: none;
  white-space: nowrap;
  text-align: right;
}

.vs-figure.enemy.boss {
  height: 66%;
  margin-right: 8%;
}

.vs-figure.enemy.boss img {
  transform: none;
  filter: drop-shadow(0 0 14px rgba(255, 79, 109, 0.7)) drop-shadow(8px 8px 0 rgba(0, 0, 0, 0.5));
}

.vs-boss-tag {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #ff8fa3;
}
