@keyframes weapon-arrive {
  from { opacity: 0; translate: 0 7px; scale: .92; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes weapon-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -9px; rotate: -3deg; }
}

@media (prefers-reduced-motion: no-preference) {
  .v5-cardpic img,
  .armory-quick-item img {
    animation: weapon-arrive 360ms ease-out;
    transition: scale 180ms ease-out, rotate 180ms ease-out;
  }

  .v5-weapon-card:focus-visible .v5-cardpic img,
  .armory-quick-item:focus-visible img,
  .v5-weapon-card:active .v5-cardpic img,
  .armory-quick-item:active img {
    scale: 1.09;
    rotate: -5deg;
  }

  .v5-heroart-img img.v8-matching-art {
    animation: weapon-float 2.6s ease-in-out 2;
    transition: scale 200ms ease-out;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .v5-weapon-card:hover .v5-cardpic img,
  .armory-quick-item:hover img {
    scale: 1.09;
    rotate: -5deg;
  }

  .v5-heroart-img:hover img.v8-matching-art {
    scale: 1.07;
  }
}
