/* Stylesheet for Satellite Ops Control Division Randomizer */

@layer utilities {
  .font-prompt {
    font-family: 'Prompt', sans-serif;
  }
  .font-kanit {
    font-family: 'Kanit', sans-serif;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Tab buttons styling */
.tab-btn {
  color: #64748b;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
}
.tab-btn:hover {
  color: #334155;
  background-color: #f8fafc;
}
.tab-btn.active {
  color: #4f46e5;
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

/* Slot Spinning Motion Animation */
@keyframes slotSpin {
  0% {
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    filter: blur(2px);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.spin-active {
  animation: slotSpin 0.12s infinite ease-in-out;
}

/* Pulse Glow for Card */
@keyframes innerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.5);
  }
}

.card-glow {
  animation: innerGlow 1.5s infinite ease-in-out;
}

/* Victory pulse */
@keyframes victoryPulse {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.winner-anim {
  animation: victoryPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
