:root {
  --coral: #FF6B6B;
  --deep-purple: #4A4E69;
  --cream: #FFF9F0;
  --osm-blue: #7EB1C4;
}

* {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}

.bg-coral {
  background-color: var(--coral);
}

.text-coral {
  color: var(--coral);
}

.from-coral {
  --tw-gradient-from: var(--coral);
}

.big-spin-button {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 50%, #FF6B6B 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 10px 40px rgba(255, 107, 107, 0.4),
    0 0 0 6px rgba(255, 255, 255, 0.8),
    inset 0 -4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.big-spin-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 60%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.big-spin-button:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 
    0 15px 50px rgba(255, 107, 107, 0.5),
    0 0 0 8px rgba(255, 255, 255, 0.9),
    inset 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.big-spin-button:active:not(:disabled) {
  transform: scale(0.95);
}

.big-spin-button.spinning {
  animation: pulse-glow 0.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulse-glow {
  0% { 
    box-shadow: 
      0 10px 40px rgba(255, 107, 107, 0.4),
      0 0 0 6px rgba(255, 255, 255, 0.8);
  }
  100% { 
    box-shadow: 
      0 15px 60px rgba(255, 107, 107, 0.6),
      0 0 0 10px rgba(255, 255, 255, 1);
  }
}

.dice-spin {
  animation: dice-roll 0.3s ease-in-out infinite;
}

@keyframes dice-roll {
  0%, 100% { transform: rotate(-15deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.1); }
  50% { transform: rotate(-10deg) scale(1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

.result-card {
  animation: slide-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 3s ease-out forwards;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 107, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 107, 0.5);
}

/* Hover scale utility */
.hover\:scale-102:hover {
  transform: scale(1.02);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .big-spin-button {
    width: 160px;
    height: 160px;
  }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}