/* Designer sheet: six complete square frames, 300ms each. Keep idle frame
   motion on the child so existing hit/defeat transforms retain ownership. */
.first-win-stage > .first-win-enemy {
  width: 128px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-self: center;
}
.first-win-enemy-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: url('./assets/handoff-v2/boss-bookworm-sheet.png') 0 0 / 600% 100% no-repeat;
  image-rendering: pixelated;
  animation: firstWinBookwormFrames 1.8s steps(1, end) infinite;
}
@keyframes firstWinBookwormFrames {
  0%, 100% { background-position-x: 0%; }
  16.666667% { background-position-x: 20%; }
  33.333333% { background-position-x: 40%; }
  50% { background-position-x: 60%; }
  66.666667% { background-position-x: 80%; }
  83.333333% { background-position-x: 100%; }
}
.first-win-stage.auto-hit .first-win-enemy-art,
.first-win-stage.won .first-win-enemy-art {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .first-win-enemy-art { animation: none; }
}
