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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.85);
  }
}

/* Button Shimmer Sweeping Light */
@keyframes buttonShimmer {
  0% { transform: translateX(-150%) skewX(-25deg); opacity: 0; }
  20% { opacity: 0.7; }
  40% { transform: translateX(250%) skewX(-25deg); opacity: 0; }
  100% { transform: translateX(250%) skewX(-25deg); opacity: 0; }
}

/* Arcade Big Button Breathing */
@keyframes arcadePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4), 0 0 15px rgba(245, 158, 11, 0.3);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.75), 0 0 30px rgba(251, 191, 36, 0.6);
  }
}

/* Avatar Selector Neon Pulse */
@keyframes avatarRingPulse {
  0%, 100% { box-shadow: 0 0 10px #fbbf24, inset 0 0 6px #fbbf24; }
  50% { box-shadow: 0 0 20px #f59e0b, 0 0 35px rgba(245, 158, 11, 0.5), inset 0 0 12px #f59e0b; }
}

/* Health Bar Fluid Wave */
@keyframes hpWaveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rainbowBorder {
  0% { border-color: #f59e0b; }
  33% { border-color: #53fc18; }
  66% { border-color: #a970ff; }
  100% { border-color: #f59e0b; }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.drawing-active .raffle-box {
  animation: pulseGlow 1s infinite alternate;
}

.winner-pop {
  animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  position: relative;
  background: linear-gradient(135deg, #1b2234 0%, #0d111a 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  width: 95%;
  max-width: 500px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.2);
  animation: modalPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
