/* ============================================
   SPIN WHEEL - Custom Styles
   (Tailwind handles most styling via CDN)
   ============================================ */

/* Google Fonts are loaded in HTML */

/* ============================================
   Animated Background Orbs
   ============================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #a855f7, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   Wheel Glow Effect
   ============================================ */
.wheel-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 60%);
  transform: scale(1.2);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1.2); }
  50% { opacity: 0.8; transform: scale(1.3); }
}

/* ============================================
   Spinning Animation
   ============================================ */
.spinning {
  animation: none !important;
}

/* Pointer bounce on tick */
.pointer-tick {
  animation: pointer-bounce 0.08s ease-out;
}

@keyframes pointer-bounce {
  0%   { transform: translateX(-50%) rotate(0deg); }
  50%  { transform: translateX(-50%) rotate(10deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* Slow phase — pointer turns red/orange and wobbles more dramatically */
.pointer-slow > div {
  border-top-color: #f97316 !important;
  filter: drop-shadow(0 0 20px rgba(249, 115, 22, 1)) !important;
  transition: border-top-color 0.3s, filter 0.3s;
}

@keyframes pointer-wobble-slow {
  0%   { transform: translateX(-50%) rotate(-5deg); }
  25%  { transform: translateX(-50%) rotate(12deg); }
  50%  { transform: translateX(-50%) rotate(-3deg); }
  75%  { transform: translateX(-50%) rotate(8deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

/* ============================================
   Result Modal Animation
   ============================================ */
.result-show {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* ============================================
   Confetti
   ============================================ */
@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Utility
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}
