.high-score-slider-track > .high-score-profile-card {
  transform-origin: center;
  animation: high-score-sway 21s ease-in-out infinite;
}

.high-score-slider-track:hover > .high-score-profile-card {
  animation-play-state: paused;
}

.high-score-slider-track {
  padding-block: 5rem;
}

.high-score-slider-track > .high-score-profile-card:nth-child(even) {
  animation-delay: 0.25s;
}

.high-score-slider-track > .high-score-profile-card:hover {
  z-index: 2;
}

@keyframes high-score-sway {
  0%,
  28.57%,
  100% {
    transform: rotate(0deg);
  }

  9.52% {
    transform: rotate(20deg);
  }

  19.05% {
    transform: rotate(-20deg);
  }

  23.81% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .high-score-slider-track > .high-score-profile-card {
    animation: none;
  }
}
