/* Новогодние анимации и эффекты */

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    font-size: 20px;
    color: #fff;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 12s;
    animation-delay: 0.8s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 14s;
    animation-delay: 1.8s;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 11s;
    animation-delay: 1.2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.title {
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.level-badge {
    animation: glow 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* .xp-bar-fill {
    background: linear-gradient(90deg, #4ecdc4, #44a08d, #4ecdc4);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
} */

/* .limit-bar-fill {
    background: linear-gradient(90deg, #ff6b6b, #ee5a6f, #ff6b6b);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
} */

/* Новогодние цвета для карточек */
.quest-card.easy {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(68, 160, 141, 0.2));
}

.quest-card.medium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
}

.quest-card.hard {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 111, 0.2));
}

/* Эффект при наведении */
.reward-card.available {
    animation: glow 2s ease-in-out infinite;
}

/* Пульсация для кнопок */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.buy-btn {
    animation: pulse 2s ease-in-out infinite;
}

/* Градиентный фон для контейнера */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
