@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, -40px) scale(1.05);
  }
  66% {
    transform: translate(-40px, 60px) scale(0.97);
  }
  100% {
    transform: translate(30px, 30px) scale(1.02);
  }
}

@keyframes wordFall {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(calc(45vh + 100px));
    opacity: 1;
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(245, 200, 66, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(245, 200, 66, 0.42);
  }
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes voteRipple {
  from {
    box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.45);
  }
  to {
    box-shadow: 0 0 0 42px rgba(245, 200, 66, 0);
  }
}

.orb {
  animation: orbDrift 20s ease-in-out infinite alternate;
}

.orb--1 {
  animation-duration: 22s;
}

.orb--2 {
  animation-duration: 18s;
  animation-delay: -8s;
}

.orb--3 {
  animation-duration: 25s;
  animation-delay: -4s;
}

.featured-track.is-animated {
  animation: marqueeScroll 32s linear infinite;
}

.vote-button {
  animation: glowPulse 1.5s ease-in-out infinite;
}

.field-error {
  animation: slideInDown 200ms ease;
}

.toast {
  animation: toastIn 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.result-bar__fill.is-visible {
  transition: width 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vote-card.is-voted {
  animation: voteRipple 900ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
