* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #000; /* Чёрный фон */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    color: #fff;
}

/* Падающий снег (улучшенная версия) */
.snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1.5em;
    opacity: 0.7;
    animation: snowfall linear infinite;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.5; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Генерируем 50 снежинок с разными параметрами */
@for $i from 1 through 50 {
    .snowflake:nth-child(#{$i}) {
        $delay: random() * 10s;
        $duration: 15s + random() * 10s;
        $size: 0.5em + random() * 1em;
        $left: random() * 100vw;

        left: $left;
        font-size: $size;
        animation-delay: $delay;
        animation-duration: $duration;
    }
}

/* Ёлки по краям экрана */
.christmas-tree {
    position: fixed;
    bottom: -10px;
    width: 60px;
    height: 80px;
    z-index: 2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 150"><path d="M50 0 L90 40 L80 40 L100 70 L90 70 L110 100 L100 100 L120 130 L60 15 L60 30 L40 15 Z" fill="%23228B22"/><path d="M50 150 L50 140 L60 145 Z! fill="%238B4513"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px rgba(34, 139, 34, 0.6));
    animation: treeGlow 3s infinite alternate;
}

.tree-left {
    left: 20px;
    transform: scale(0.8) rotate(-10deg);
}

.tree-right {
    right: 20px;
    transform: scale(0.9) rotate(15deg);
}

@keyframes treeGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(34, 139, 34, 0.6)); }
    50% { filter: drop-shadow(0 0 12px rgba(144, 238, 144, 0.9)); }
}

.container {
    text-align: center;
    background-color: rgba(10, 10, 20, 0.85);
    padding: 40px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    max-width: 850px;
    width: 90%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 30px rgba(0, 255, 200, 0.2),
        inset 0 0 20px rgba(0, 128, 128, 0.3);
}

/* Мерцающая новогодняя гирлянда сверху */
.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #ff0000, #ff9900, #ffff00,
        #00ff00, #0099ff, #6600ff, #cc00ff,
        #ff0000);
    background-size: 400% 100%;
    animation: marquee 5s linear infinite;
    border-radius: 4px 4px 0 0;
}

@keyframes marquee {
    0% { background-position: 100% 50%; }
    100% { background-position: -300% 50%; }
}

h1 {
    color: #ffd700;
    margin-bottom: 35px;
    font-size: 2.8rem;
    text-shadow:
        0 0 5px #fff,
        0 0 15px rgba(255, 215, 0, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    text-transform: uppercase;
}

h1::after {
    content: '❄️';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #e0ffff;
    animation: twinkle 2s infinite alternate;
    text-shadow: 0 0 8px #e0ffff;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.timer {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    gap: 15px;
}

.time-block {
    text-align: center;
    padding: 20px 15px;
    background: rgba(0, 50, 40, 0.4);
    border: 1px solid #00ff80;
    border-radius: 18px;
    box-shadow:
        0 8px 25px rgba(0, 255, 128, 0.3),
        inset 0 0 15px rgba(0, 255, 128, 0.2);
    min-width: 110px;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.time-block:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #00ff00;
    box-shadow:
        0 15px 35px rgba(0, 255, 128, 0.5),
        inset 0 0 2