/* Глобальный снег на весь сайт */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.snow-flake {
    position: absolute;
    top: -20px;
    color: #ffffff;
    opacity: 0;
    user-select: none;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.newyear_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border-radius: var(--br-12);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    gap: 1rem;
}

.newyear_content {
    display: flex;
    gap: 0.5rem;
    z-index: 1;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.newyear_title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "ExocetOTCECY-Light";
    font-size: var(--font-size-xxxl);
    font-weight: var(--font-weight-8);
    justify-content: center;
}

.newyear_icon {
    display: flex;
    animation: sparkle 2s ease-in-out infinite;
}

.newyear_icon svg {
    width: 20px;
    height: 20px;
    fill: var(--span);
    color: var(--span);
}

.newyear_year {
    color: var(--span);
}

.newyear_timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.newyear_item {
    height: 7rem;
    width: 7rem;
    border-radius: var(--br-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.newyear_number {
    filter: drop-shadow(rgba(179, 57, 52, 0.5) 0px 0px 1px) drop-shadow(rgb(111, 25, 6) 0px 0px 6px) drop-shadow(rgba(0, 0, 0, 0.3) 0px 1px 1px) drop-shadow(rgba(0, 0, 0, 0.3) 0px 0px 1px) brightness(1.6);
    font-family: "Old Fenris";
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-7);
    line-height: 1;
}

.newyear_label {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-7);
}

.newyear_separator {
    display: flex;
    height: 100%;
    font-size: var(--font-size-7xl);
    align-items: center;
    color: var(--text-default);
}

.newyear_decoration {
    z-index: 1;
}

.newyear_decoration svg {
    width: 30px;
    height: 30px;
    fill: var(--green);
    color: var(--green);
    opacity: 0.5;
}

.newyear_decoration_left svg {
    animation: sparkle 3s ease-in-out infinite;
}

.newyear_decoration_right svg {
    animation: sparkle 3s ease-in-out infinite 1.5s;
}

.newyear_happy {
    filter: drop-shadow(rgba(100, 206, 130, 0.5) 0px 0px 1px) drop-shadow(rgb(50, 150, 80) 0px 0px 6px) brightness(1.6);
    font-family: "Old Fenris";
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-7);
    color: var(--green);
    text-align: center;
}

/* Фоновые украшения */
.newyear_bg_decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Снежинки */
.newyear_snowflake {
    position: absolute;
    color: #ffffff;
    opacity: 0.5;
    font-size: 1.2rem;
    animation: snowfall 8s linear infinite;
}

.newyear_snowflake_1 { top: -10%; left: 10%; animation-delay: 0s; animation-duration: 10s; }
.newyear_snowflake_2 { top: -10%; left: 25%; animation-delay: 2s; animation-duration: 12s; font-size: 1rem; }
.newyear_snowflake_3 { top: -10%; left: 75%; animation-delay: 4s; animation-duration: 9s; }
.newyear_snowflake_4 { top: -10%; left: 85%; animation-delay: 1s; animation-duration: 11s; font-size: 1.4rem; }
.newyear_snowflake_5 { top: -10%; left: 40%; animation-delay: 3s; animation-duration: 13s; font-size: 0.9rem; }
.newyear_snowflake_6 { top: -10%; left: 60%; animation-delay: 5s; animation-duration: 10s; }

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(120px) rotate(360deg);
        opacity: 0;
    }
}

/* Звёзды */
.newyear_star {
    position: absolute;
    color: var(--span);
    opacity: 0.5;
    font-size: 0.8rem;
    animation: twinkle 2s ease-in-out infinite;
}

.newyear_star_1 { top: 15%; left: 5%; animation-delay: 0s; }
.newyear_star_2 { top: 25%; right: 8%; animation-delay: 0.5s; font-size: 0.6rem; }
.newyear_star_3 { top: 60%; left: 3%; animation-delay: 1s; }
.newyear_star_4 { top: 70%; right: 5%; animation-delay: 1.5s; font-size: 1rem; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

/* Гирлянда */
.newyear_garland {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0.3rem 1rem;
    z-index: 2;
}

.newyear_light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: glow 1.5s ease-in-out infinite;
}

.newyear_light_1 { background: #ff4444; animation-delay: 0s; }
.newyear_light_2 { background: #44ff44; animation-delay: 0.2s; }
.newyear_light_3 { background: #4444ff; animation-delay: 0.4s; }
.newyear_light_4 { background: #ffff44; animation-delay: 0.6s; }
.newyear_light_5 { background: #ff44ff; animation-delay: 0.8s; }
.newyear_light_6 { background: #44ffff; animation-delay: 1s; }
.newyear_light_7 { background: #ff8844; animation-delay: 1.2s; }

@keyframes glow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 3px currentColor;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
        transform: scale(1.1);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
}

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

.newyear_number.pulse {
    animation: pulse-number 0.3s ease-in-out;
}


.newyear_play_btn {
    margin-right: 7rem;
    right: 0;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--span);
    color: var(--text-default-invert);
    border: none;
    border-radius: var(--br-8);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    cursor: pointer;
    transition: var(--transition-duration);
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

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

.newyear_play_btn:hover {
    background: var(--span);
    transform: scale(1.05);
}

.newyear_play_icon {
    font-size: 1.2rem;
}

@keyframes play-btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
    .newyear_play_btn {
        margin-right: unset;
        right: unset;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1.5rem;
        background: var(--span);
        color: var(--text-default-invert);
        border: none;
        border-radius: var(--br-8);
        font-size: var(--font-size-m);
        font-weight: var(--font-weight-6);
        cursor: pointer;
        transition: var(--transition-duration);
        position: relative;
        overflow: hidden;
        z-index: 1;
        margin-top: 0.5rem;
        text-decoration: none;
    }


    .newyear_wrapper {
        padding: 1rem;
        gap: 0.5rem;
    }

    .newyear_decoration {
        display: none;
    }

    .newyear_bg_decor {
        display: none;
    }

    .newyear_garland .newyear_light {
        width: 6px;
        height: 6px;
    }

    .newyear_timer {
        gap: 0.5rem;
    }

    .newyear_item {
        height: 5rem;
        width: 5rem;
    }

    .newyear_number {
        font-size: var(--font-size-xxl);
    }

    .newyear_separator {
        font-size: var(--font-size-xxl);
    }

    .newyear_title {
        font-size: var(--font-size-l);
    }

    .newyear_label {
        font-size: var(--font-size-s);
    }
}

@media (max-width: 480px) {
    .newyear_item {
        height: 4rem;
        width: 4rem;
    }

    .newyear_number {
        font-size: var(--font-size-xl);
    }

    .newyear_separator {
        font-size: var(--font-size-xl);
    }

    .newyear_title {
        font-size: var(--font-size-m);
    }

    .newyear_label {
        font-size: var(--font-size-xs);
    }
}
