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

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes celebration {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes float-up {
  0% {
    transform: translateY(100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bounce-in {
  animation: bounce-in 0.5s ease-out;
}

.animate-celebration {
  animation: celebration 0.6s ease-in-out infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out infinite;
}

.floating-emoji {
  position: fixed;
  bottom: -50px;
  font-size: 2rem;
  animation: float-up linear forwards;
  pointer-events: none;
  z-index: 1;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

button {
  cursor: pointer;
  user-select: none;
}

button:active {
  transform: scale(0.95);
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .floating-emoji {
    font-size: 1.5rem;
  }
}

/* Focus styles for accessibility */
button:focus-visible {
  outline: 3px solid #a855f7;
  outline-offset: 2px;
}

/* Gradient backgrounds */
.bg-gradient-to-br {
  background-attachment: fixed;
}