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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

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

.confetti-particle {
  animation: confetti-fall 2s ease-out forwards;
}

@keyframes berry-bounce {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.3) rotate(-10deg);
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  75% {
    transform: scale(1.2) rotate(-5deg);
  }
}

.berry-bounce {
  animation: berry-bounce 0.6s ease-in-out 3;
}

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

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Smooth transitions for theme switching */
body {
  transition: background-color 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Focus styles */
button:focus-visible {
  outline: 2px solid #805AD5;
  outline-offset: 2px;
}

/* Hover effects for touch devices */
@media (hover: none) {
  button:hover {
    transform: none;
  }
}