/**
 * ПЕТУХОМЕТР — Стили анимаций и визуальных эффектов
 */

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.2);
  }
}

@keyframes crestFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fallParticle {
  0% {
    transform: translateY(-50px) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.floating-crest {
  animation: crestFloat 4s ease-in-out infinite;
}

.gold-shimmer {
  background: linear-gradient(90deg, #D4AF37 0%, #FFF2A1 50%, #D4AF37 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.pulse {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

.floating-particle {
  position: fixed;
  top: -40px;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
  animation: fallParticle 5s linear forwards;
}

@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;
  }
  .floating-crest, .floating-particle, .gold-shimmer, .pulse {
    animation: none !important;
  }
}
