/* A single painted landscape sits behind the battlefield and command dock. */
#app .battle-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #160e25;
  background-image: none !important;
  --actor-color: brightness(.98) sepia(.12) saturate(.9);
  --rim-light: #ffd49475;
}
#app .battle-view:is(.battle-night,.biome-riverside) {
  --actor-color: brightness(.81) saturate(.82) contrast(.95) hue-rotate(8deg);
  --rim-light: #8fbbffad;
}
#app .battle-view.zone-cave {
  --actor-color: brightness(.86) saturate(.86) contrast(.96) hue-rotate(10deg);
  --rim-light: #a5ccffa6;
}
#app .battle-view > .battle-landscape {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  width: 100%;
  height: min(91%, 960px);
  max-width: none;
  object-fit: cover;
  object-position: center 44%;
  filter: blur(.75px) brightness(.9);
  pointer-events: none;
}
#app .battle-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,#140d294d 0%,transparent 20%,transparent 46%,#170e255c 66%,#160e25 91%);
}
#app .battle-view .battle-stage:is(.battle-stage,.chapter-village-battle) {
  background: none !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
#app .battle-stage:is(.core-battle,.mythic-battle) .enemy-status {
  border-color: #f0c585;
  box-shadow: 0 0 10px #efad6547;
}
#app .battle-view .actor { filter: none; }
#app .battle-view .actor > .creature-art {
  filter: var(--actor-color) drop-shadow(1px -1px 2px var(--rim-light));
  z-index: 1;
}

#app .battle-view .actor::before,
#app .battle-view .actor.ally:has(.mirror-art):not(:has(.rear-pose))::before {
  content: "";
  position: absolute;
  inset: auto 19% 7% 16%;
  height: 13%;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: radial-gradient(ellipse,#100817bb 0%,#12091e79 42%,transparent 72%);
  transform: skewX(-13deg);
  pointer-events: none;
}
#app .battle-view .actor.ally:has(.rear-pose)::before { display: none; }
#app .battle-view .actor.ally .rear-frame::before {
  height: 15%;
  border: 0;
  box-shadow: none;
  background: radial-gradient(ellipse,#100817cc,#12091e65 49%,transparent 74%);
}
#app .battle-view .actor.battle-airborne::before {
  bottom: 0;
  left: 24%;
  right: 21%;
  opacity: .82;
}
#app .battle-view .actor.battle-airborne > .creature-art {
  animation: battle-air-drift 3.6s ease-in-out infinite;
}
#app .battle-view .hitstop .actor.battle-airborne > .creature-art { animation-play-state: paused; }
@keyframes battle-air-drift {
  0%, 100% { translate: 0 -2px; }
  50% { translate: 0 -9px; }
}
html.reduce-motion #app .battle-view .actor.battle-airborne > .creature-art { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #app .battle-view .actor.battle-airborne > .creature-art { animation: none; }
}
.capture-evolution-label { display: block; margin-top: 4px; font-size: 13px; color: #efd298; }
