.fade-in {
  animation: fadeInPage 0.6s ease;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-6px) translateX(4px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes strongPulse {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.08);
  }
  50% {
    transform: scale(1.02);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes toastUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast.show {
  animation: toastUp 0.24s ease;
}

.pulse-when-music {
  animation: softPulse 2.4s ease-in-out infinite;
}

.pulse-when-music.is-playing {
  animation: strongPulse 1.05s ease-in-out infinite;
}

.floating-emojis .emoji:nth-child(1) {
  left: 6%;
  bottom: 4%;
  animation: orbitFloat 11s ease-in-out infinite;
}

.floating-emojis .emoji:nth-child(2) {
  left: 22%;
  bottom: 24%;
  animation: orbitFloat 9s ease-in-out infinite 0.4s;
}

.floating-emojis .emoji:nth-child(3) {
  left: 35%;
  bottom: 54%;
  animation: orbitFloat 10s ease-in-out infinite 0.8s;
}

.floating-emojis .emoji:nth-child(4) {
  left: 62%;
  bottom: 12%;
  animation: orbitFloat 12s ease-in-out infinite 0.6s;
}

.floating-emojis .emoji:nth-child(5) {
  left: 76%;
  bottom: 38%;
  animation: orbitFloat 9s ease-in-out infinite 0.2s;
}

.floating-emojis .emoji:nth-child(6) {
  left: 54%;
  bottom: 70%;
  animation: orbitFloat 10s ease-in-out infinite 0.3s;
}

.floating-emojis .emoji:nth-child(7) {
  left: 12%;
  bottom: 72%;
  animation: orbitFloat 9.5s ease-in-out infinite 0.1s;
}

.floating-emojis .emoji:nth-child(8) {
  left: 86%;
  bottom: 76%;
  animation: orbitFloat 11.5s ease-in-out infinite 0.5s;
}

body[data-performance="lite"] .pulse-when-music,
body[data-performance="lite"] .pulse-when-music.is-playing,
body[data-performance="lite"] .floating-emojis .emoji {
  animation: none !important;
}

body[data-performance="lite"] .fade-in,
body[data-performance="lite"] .toast.show {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
