/* ==========================================================================
   ATLAS ROLEPLAY - KEYFRAMES & ADVANCED ANIMATIONS (BULLETPROOF)
   ========================================================================== */

/* 1. Pulse Online Dot */
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 2. Atlas Blue Glow Pulse */
@keyframes pulse-glow-blue {
  0%, 100% {
    box-shadow: 0 0 25px rgba(77, 139, 245, 0.35);
  }
  50% {
    box-shadow: 0 0 45px rgba(77, 139, 245, 0.65), 0 0 15px rgba(121, 170, 255, 0.8);
  }
}

/* 3. Button / Logo Shine Sweep */
@keyframes shine {
  0% {
    transform: translateX(-150%) rotate(45deg);
  }
  50%, 100% {
    transform: translateX(150%) rotate(45deg);
  }
}

/* 4. Mouse Scroll Prompt */
@keyframes mouse-scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

/* 5. Ripple Pulse for Play Button */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 6. Toast Notification Entry */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 7. Subtle Ambient Floating Motion */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 6s infinite ease-in-out;
}

/* 8. Border Beam / Glowing Scanline */
@keyframes border-scan {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.border-beam-card {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(90deg, rgba(77, 139, 245, 0.1), rgba(121, 170, 255, 0.8), rgba(77, 139, 245, 0.1)) border-box;
  background-size: 200% 100%;
  animation: border-scan 4s ease infinite;
}

/* 9. Scroll Reveal Animations (Robust with instant fallback) */
.reveal-init,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Stagger Delay Helpers */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }
