/* ============================================================
   FIESTAJUEGOOS.COM — Animations
   Palette: Coral + Gold + Turquoise + Sunset Pink + Indigo
   Prefix: fjo-
   ============================================================ */

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fjo-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fjo-slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fjo-slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fjo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes fjo-glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,107,74,0.2); }
  50%      { box-shadow: 0 0 35px rgba(255,107,74,0.5), 0 0 60px rgba(255,107,74,0.15); }
}

@keyframes fjo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes fjo-float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}

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

@keyframes fjo-particle-rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
  100% { transform: translateY(-120px) translateX(40px) scale(0); opacity: 0; }
}

@keyframes fjo-bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.08); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); opacity: 1; }
}

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

@keyframes fjo-reel-spin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-30px); }
  50%  { transform: translateY(-60px); }
  75%  { transform: translateY(-30px); }
  100% { transform: translateY(0); }
}

@keyframes fjo-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.6); }
}

@keyframes fjo-confetti-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Utility Classes ─────────────────────────────────────── */
.fjo-fade-in      { animation: fjo-fadeIn 0.5s ease both; }
.fjo-fade-slide   { animation: fjo-fadeSlide 0.6s ease both; }
.fjo-slide-up     { animation: fjo-slideUp 0.7s ease both; }
.fjo-bounce-in    { animation: fjo-bounceIn 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.fjo-float        { animation: fjo-float 4s ease-in-out infinite; }
.fjo-float-slow   { animation: fjo-float-slow 6s ease-in-out infinite; }
.fjo-pulse        { animation: fjo-pulse 2s ease-in-out infinite; }
.fjo-glow-pulse   { animation: fjo-glow-pulse 3s ease-in-out infinite; }

/* ── Hero entrance stagger ───────────────────────────────── */
.fjo-hero-badge    { animation: fjo-fadeSlide 0.6s ease both; }
.fjo-hero-title    { animation: fjo-fadeSlide 0.6s ease 0.12s both; }
.fjo-hero-desc     { animation: fjo-fadeSlide 0.6s ease 0.24s both; }
.fjo-hero-actions  { animation: fjo-fadeSlide 0.6s ease 0.36s both; }
.fjo-hero-cards    { animation: fjo-fadeSlide 0.8s ease 0.3s both; }

/* ── Scroll reveal ───────────────────────────────────────── */
.fjo-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fjo-reveal.fjo-visible {
  opacity: 1;
  transform: translateY(0);
}
.fjo-reveal-1 { transition-delay: 0.1s; }
.fjo-reveal-2 { transition-delay: 0.2s; }
.fjo-reveal-3 { transition-delay: 0.3s; }
.fjo-reveal-4 { transition-delay: 0.4s; }
.fjo-reveal-5 { transition-delay: 0.5s; }

/* ── Particles ───────────────────────────────────────────── */
.fjo-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: fjo-particle-rise linear infinite;
}

/* ── Stars ───────────────────────────────────────────────── */
.fjo-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fjo-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
.fjo-star-sm { width: 2px; height: 2px; }
.fjo-star-md { width: 3px; height: 3px; }
.fjo-star-lg { width: 5px; height: 5px; }

/* ── Shimmer text ────────────────────────────────────────── */
.fjo-shimmer {
  background: linear-gradient(
    90deg,
    #FF6B4A 0%,
    #FFB347 25%,
    #40E0D0 50%,
    #FFB347 75%,
    #FF6B4A 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fjo-shimmer 3s linear infinite;
}

/* ── Confetti decoration ─────────────────────────────────── */
.fjo-confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: fjo-confetti-fall linear infinite;
  pointer-events: none;
}

/* ── Game reel spin ──────────────────────────────────────── */
.fjo-reel-cell {
  transition: all 0.15s ease;
}
.fjo-reel-cell.fjo-spinning {
  animation: fjo-reel-spin 0.1s linear infinite;
}

/* ── Glow border effect ──────────────────────────────────── */
.fjo-glow-border {
  position: relative;
}
.fjo-glow-border::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, #FF6B4A, #40E0D0, #FFB347, #4B0082);
  background-size: 300% 300%;
  animation: fjo-shimmer 4s linear infinite;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.5;
}

/* ── CTA pulse ring ──────────────────────────────────────── */
.fjo-cta-ring {
  position: relative;
}
.fjo-cta-ring::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(255,107,74,0.4);
  animation: fjo-pulse 2s ease infinite;
}
