.snowflake {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
    will-change: transform;
    z-index: 9997;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(100vh) translateX(20px);
    }

}


.snowflake {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
    will-change: transform;
    z-index: 9997;
}

@keyframes fall {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(100vh) translateX(20px);
    }
}

#ny-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 15, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#ny-modal {
    background: radial-gradient(circle at top, #1b2233, #0b0f1a 70%);
    border-radius: 18px;
    max-width: 490px;
    width: 92%;
    padding: 30px 24px;
    color: #f5f5f5;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.28), inset 0 0 40px rgba(56, 189, 248, 0.12);
    animation: scaleIn 0.4s ease;
    position: relative;
    z-index: 9998;
}

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ny-title {
    text-align: center;
    font-size: 26px;
    letter-spacing: 1px;
    font-weight: 600;
}

.ny-title span {
    color: #38bdf8;
    text-shadow: 0 0 12px rgb(54, 181, 237);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #f9fafb;
    padding: 14px 22px;
    border-radius: 14px;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.countdown .days {
    font-size: 28px;
    font-weight: 700;
    color: #38bdf8;
}

.countdown .time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
}

.ny-box {
    display: grid;
    gap: 14px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 20px;
}

.ny-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0%));
    border-radius: 14px;
    padding: 14px 16px;
}

.ny-item.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 215, 0, 0.04), rgba(255, 215, 0, 0%));
}

.ny-item.laurel {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0.04), rgba(76, 175, 80, 0%));
}

.ny-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.icon {
    font-size: 20px;
}

.badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.sale-50 {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #2b1900;
}

.sale-30 {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
}

.ny-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 26px;
    cursor: pointer;
}

.ny-never-show {
    text-align: center;
    margin: 15px auto 0;
    color: #c7c7c7;
    cursor: pointer;
}

.ny-never-show:hover {
    color: #e6e6e6;
}

/* Основная кнопка */
.ny-button.game {
    display: block;
    margin: 28px auto 0;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 14px;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.45);
    position: relative;
}

.ny-button.game:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2 rgba(255, 215, 0, 0.6), 0 16px 40px rgba(0, 0, 0, 0.6);
}

.ny-button.game .frame {
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}


@media (max-width: 480px) {
    .ny-title {
        font-size: 22px;
    }
}