/* Dreadnought (Sky Pirate mini-boss) sprite — stacked painted poses, one shown
   at a time. Lives inside a .monster .m-body slot in combat. Bigger than any
   ordinary monster: it's a warship. */
.dreadnought {
  position: relative;
  width: 320px;
  height: 320px;
}
.dreadnought[data-state="rest"] { animation: dread-drift 3.4s ease-in-out infinite; }
@keyframes dread-drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1deg); }
}

.dread-pose {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .06s linear;
}
.dread-pose.on { opacity: 1; }
.dread-pose img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
}

/* The broadside kicks the whole ship back with the volley. */
.dread-pose[data-pose="broadside"].on img {
  animation: dread-recoil .8s cubic-bezier(.16,.84,.3,1) 1;
  filter: drop-shadow(0 0 18px rgba(255, 160, 60, .7));
}
@keyframes dread-recoil {
  0%   { transform: translateX(0); }
  22%  { transform: translateX(26px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

/* The storm charge flickers like held lightning. */
.dread-pose[data-pose="storm"].on img {
  animation: dread-crackle 1s steps(2, jump-none) infinite;
  filter: drop-shadow(0 0 22px rgba(120, 190, 255, .8));
}
@keyframes dread-crackle {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(120, 190, 255, .6)) brightness(1); }
  50%      { filter: drop-shadow(0 0 26px rgba(160, 215, 255, .95)) brightness(1.15); }
}
