@keyframes number-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #FFD700, #F59E0B, #10B981, #8B5CF6);
    animation: confetti-fall 3s linear forwards;
}

.confetti:nth-child(2n) {
    background: #FFD700;
}

.confetti:nth-child(3n) {
    background: #F59E0B;
}

.confetti:nth-child(5n) {
    background: #10B981;
}

@keyframes shimmer {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
}

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

@keyframes winner-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

.winner-card {
    animation: shimmer 2s ease-in-out infinite;
}

.winner-badge {
    animation: float 2s ease-in-out infinite, winner-glow 2s ease-in-out infinite;
}

.winner-bar {
    position: relative;
    overflow: hidden;
}

.winner-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

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

input[type="range"] {
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFD700;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFD700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth transitions for all interactive elements */
button, input, select {
    transition: all 0.2s ease-in-out;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F59E0B;
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}