
.battle-3d-canvas {display:none}
.battle-stage.battle-has-floor {min-height:440px; align-items:end; overflow:hidden; background:#17253d}
.battle-has-floor .battle-backdrop {
  opacity:1;
  background-image:radial-gradient(ellipse at 45% 25%,#9dc5f03b,#0b182494 69%,#080f1ccc),
    url("scenes/town-arena.webp");
  filter:saturate(.86);
}
.battle-has-floor .battle-3d-canvas {
  display:block; position:absolute; inset:46px 0 0; width:100%; height:calc(100% - 46px);
  z-index:0; pointer-events:none;
}
.battle-has-floor .battler {z-index:2}
.battle-has-floor .battler-ui {background:#0b172cdd}
@media(max-width:650px){
  .battle-stage.battle-has-floor {min-height:315px}
  .battle-has-floor .battle-3d-canvas {inset:55px 0 0;height:calc(100% - 55px)}
}
@media(max-width:400px){.battle-stage.battle-has-floor {min-height:285px}}

#arena-3d-preview[hidden],#arena-3d-stances[hidden] {display:none}

.battle-has-floor::after {display:none}
.battle-has-floor .fighter-sprite {
  width:min(100%,248px);
  margin-top:17px;
}
.battle-has-floor .fighter-shadow {bottom:4%;opacity:.70}
.battle-stage .paw-battle-full-body,.battle-stage .foe-body-illustration {
  filter:drop-shadow(0 3px 2px #0b102d66);
}
@media(max-width:650px){
  .battle-has-floor .fighter-sprite {width:min(100%,160px);margin-top:9px}
}

.battle-stage svg.paw-battle-full-body[data-pose="idle"] .painted-fighter-image {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: paw-flow-breathe var(--breath-period, 3s) ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .battle-stage svg.paw-battle-full-body[data-pose="idle"] .painted-fighter-image { animation: none; }
}

/* The painted body and SVG effects share the same 220:240 framing. */
.cat-avatar.has-body-art[data-painting="mesh"] {position:relative;animation:none}
.cat-avatar.has-body-art[data-painting="mesh"] svg.paw-battle-full-body {
  position:relative;z-index:1;animation:none
}
.cat-avatar.has-body-art > .battle-painted-body {
  position:absolute;inset:0;margin:auto;width:100%;height:100%;
  max-width:210px;max-height:235px;object-fit:contain;pointer-events:none
}
.cat-avatar[data-pose="idle"] > .battle-painted-body {
  transform-origin:50% 91%;animation:paw-flow-breathe 3s ease-in-out infinite
}
.fighter-sprite:is(.state-guard,.state-impact,.state-victory,.state-defeat):has(.cat-avatar[data-painting="mesh"]) {
  animation:none
}
@media(max-width:450px) {
  .cat-avatar.has-body-art > .battle-painted-body {max-width:138px;max-height:165px}
}
@media(prefers-reduced-motion:reduce) {
  .cat-avatar[data-pose="idle"] > .battle-painted-body {animation:none}
}

.fighter-sprite[data-motion].state-approach .cat-avatar.has-body-art[data-painting="mesh"] {animation:none}

.foe-avatar[data-dog-painting="true"] {position:relative}
.foe-avatar[data-dog-painting="true"] svg.foe-body-illustration {position:relative;z-index:1}
.foe-avatar > .battle-dog-painting {
  position:absolute;inset:0;margin:auto;width:100%;height:100%;object-fit:contain;
  pointer-events:none;transform-origin:50% 91.7%;transform:scale(var(--dog-scale,1))
}
.foe-avatar[data-pose="idle"] > .battle-dog-painting {
  animation:dog-painted-breath 3.4s ease-in-out infinite
}
@keyframes dog-painted-breath {
  0%,100% {transform:scale(var(--dog-scale,1))}
  50% {transform:scale(var(--dog-scale,1)) scaleY(1.018)}
}
@media(prefers-reduced-motion:reduce) {
  .foe-avatar[data-pose="idle"] > .battle-dog-painting {animation:none}
}

.foe-avatar[data-pose="defeat"] > .battle-dog-painting {filter:saturate(.72)}
.foe-avatar[data-pose="impact"] > .battle-dog-painting {filter:brightness(1.09)}
