@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow-blue {
  0%, 100% { box-shadow: 0 0 12px rgba(84, 112, 250, 0.3); }
  50% { box-shadow: 0 0 28px rgba(84, 112, 250, 0.65); }
}

@keyframes pulse-glow-red {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 3, 5, 0.25); }
  50% { box-shadow: 0 0 22px rgba(255, 3, 5, 0.55); }
}

@keyframes float-up-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-widget:not(.hidden) {
  animation: float-up-down 4s ease-in-out 1s infinite;
}

.btn--primary:focus-visible {
  animation: pulse-glow-blue 1.5s ease-in-out infinite;
}

.btn--accent:focus-visible {
  animation: pulse-glow-red 1.5s ease-in-out infinite;
}

.bonus-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.bonus-tile:hover::after {
  opacity: 1;
  animation: shimmer 1.2s ease-in-out;
}

.hero-card {
  animation: fade-slide-in 0.6s ease both;
}

.agg-score {
  animation: fade-slide-in 0.5s ease 0.1s both;
}

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