/* J-0928-MINO-FIX3 (DEV): Courtney's Imagine minotaur, hall 4. Same rules as
   skel-imagine.css: breathing uses `scale`, knockback `translate`, death
   `opacity`, so none of them fight the shared `transform: rotate(--pose-rot)`.
   game.js toggles the same skel-knock / skel-knock-heavy / skel-dying classes. */
.monster-rect.mino-imagine.atk-minotaur { animation: none !important; } /* the frames carry the swing */
.monster-rect.mino-imagine img {
  transform-origin: 53.60% 98.72%; /* belt-buckle x 350, ground row 846 of the 653x857 frames */
  animation: mino-breathe 2.9s ease-in-out infinite;
}
.monster-rect.mino-imagine.skel-knock img { animation: mino-breathe 2.9s ease-in-out infinite, mino-knock .3s ease-out; }
.monster-rect.mino-imagine.skel-knock-heavy img { animation: mino-breathe 2.9s ease-in-out infinite, mino-knock-heavy .36s ease-out; }
.monster-rect.mino-imagine.skel-dying img { animation: mino-fade var(--skel-fade-total, 1460ms) linear forwards; }

#monster-rect.mino-imagine.slash-hit img { animation: slash-hit .3s ease-out, mino-breathe 2.9s ease-in-out infinite; }
#monster-rect.mino-imagine.slash-hit.skel-knock img { animation: slash-hit .3s ease-out, mino-breathe 2.9s ease-in-out infinite, mino-knock .3s ease-out; }
#monster-rect.mino-imagine.slash-hit.skel-knock-heavy img { animation: slash-hit .3s ease-out, mino-breathe 2.9s ease-in-out infinite, mino-knock-heavy .36s ease-out; }
#monster-rect.mino-imagine.slash-hit.skel-dying img { animation: slash-hit .3s ease-out, mino-fade var(--skel-fade-total, 1460ms) linear forwards; }

/* heavy chest rise, hooves stay planted */
@keyframes mino-breathe {
  0%, 100% { scale: 1 1; }
  50% { scale: 1.006 1.016; }
}
/* pushed away from the hero (right): same canvas px as the skeleton's knock */
@keyframes mino-knock {
  0% { translate: 0 0; }
  30% { translate: 1.5% 0; }
  100% { translate: 0 0; }
}
@keyframes mino-knock-heavy {
  0% { translate: 0 0; }
  25% { translate: 3% 0; }
  100% { translate: 0 0; }
}
/* heavy hit -> sink -> kneel, hold, then fade before the next foe steps up */
@keyframes mino-fade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .monster-rect.mino-imagine img,
  .monster-rect.mino-imagine.skel-knock img,
  .monster-rect.mino-imagine.skel-knock-heavy img { animation: none; }
}
