body.ny-mode {

}

/* ---------------------------
   1. ТЕХНО-СНЕГ
   --------------------------- */

body.ny-mode .hero-particles {
    pointer-events: none;
}

/* Базовая снежинка */
body.ny-mode .ny-snowflake {
    position: absolute;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.95), rgba(190,230,255,0.7));
    border-radius: 25%;
    opacity: 0.85;
    box-shadow:
        0 0 6px rgba(200,230,255,0.8),
        0 0 12px rgba(120,190,255,0.6);
    animation-name: ny-snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

body.ny-mode .ny-snowflake-extra {
    opacity: 0.75;
    filter: brightness(1.02);
}

@keyframes ny-snow-fall {
    0% {
        transform: translate3d(0, -10vh, 0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate3d(20px, 110vh, 0);
        opacity: 0;
    }
}

/* Усиление анимации при "метели" (пасхалка) */
body.ny-mode.ny-blizzard .ny-snowflake,
body.ny-mode.ny-blizzard .ny-snowflake-extra {
    animation-duration: 5s !important;
    opacity: 1;
    box-shadow:
        0 0 8px rgba(230,245,255,0.95),
        0 0 18px rgba(160,210,255,0.9);
}

/* ---------------------------
   2. ОБЛЕДЕНЕНИЕ РАМОК
   --------------------------- */


body.ny-mode .ui-panel,
body.ny-mode .next-game-alert,
body.ny-mode .mission-card {
    position: relative;
    overflow: visible;
    border-color: rgba(150, 210, 255, 0.75);
    box-shadow:
        0 0 8px rgba(100, 180, 255, 0.25);
}


body.ny-mode .ui-panel::after,
body.ny-mode .next-game-alert::after,
body.ny-mode .mission-card::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(190, 235, 255, 0.55);
    box-shadow:
        0 0 16px rgba(170, 225, 255, 0.65),
        0 0 26px rgba(120, 190, 255, 0.45);
    opacity: 0.9;
    mix-blend-mode: screen;
}


/* ---------------------------
   3. ГИРЛЯНДА НАД САЙТОМ
   --------------------------- */

.ny-garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    pointer-events: none; /* клики проходят сквозь гирлянду */
    display: flex;
    justify-content: center;
    gap: 70px;
    padding-top: 2px;
}

/* “Провод” над иконками */
.ny-garland::before {
    content: "";
    position: absolute;
    top: 0;
    left: 2%;
    width: 96%;
    height: 4px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 50%, #0f172a, transparent 60%),
                linear-gradient(90deg, #0b1120, #1e293b, #0b1120);
    opacity: 0.9;
}

.ny-garland-item {
    position: relative;
    pointer-events: none;
    transform-origin: top center;
    animation: nyGarlandSwing 3.6s ease-in-out infinite alternate;
}

/* маленький “проводок” от троса к иконке */
.ny-garland-item::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 50%;
    width: 1px;
    height: 15px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #64748b, #0f172a);
    opacity: 0.8;
}

/* сама иконка (пистолет / граната / прицел) */
.ny-garland-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    font-size: 16px;
    color: var(--ny-garland-color, #f97316);
    text-shadow:
        0 0 4px rgba(15, 23, 42, 0.8),
        0 0 10px var(--ny-garland-color, #f97316);
    filter: drop-shadow(0 0 6px var(--ny-garland-color, #f97316));
    animation: nyGarlandGlow 2.4s ease-in-out infinite alternate;
}

/* лёгкое качание “гирлянды” */
@keyframes nyGarlandSwing {
    0% {
        transform: rotate(-10deg) translateY(0);
    }
    50% {
        transform: rotate(6deg) translateY(1px);
    }
    100% {
        transform: rotate(-6deg) translateY(2px);
    }
}

/* мигание/свечение тактических иконок */
@keyframes nyGarlandGlow {
    0% {
        opacity: 0.9;
        text-shadow:
            0 0 3px rgba(15, 23, 42, 0.7),
            0 0 6px var(--ny-garland-color, #f97316);
        filter: drop-shadow(0 0 3px var(--ny-garland-color, #f97316));
    }
    100% {
        opacity: 1;
        text-shadow:
            0 0 6px rgba(15, 23, 42, 0.9),
            0 0 14px var(--ny-garland-color, #f97316);
        filter: drop-shadow(0 0 8px var(--ny-garland-color, #f97316));
    }
}

/* Мобильная версия: меньше иконок и чуть мельче */
@media (max-width: 768px) {
    .ny-garland {
        gap: 20px;
        padding-top: 0px;
    }
    .ny-garland-icon {
        font-size: 13px;
    }
}


/* ---------------------------
   4. НОВОГОДНИЙ БЕЙДЖ В ЛОГОТИПЕ
   --------------------------- */

body.ny-mode .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.ny-mode .ny-logo-badge {
    font-size: 1rem;
    color: #00ffb3;
    text-shadow:
        0 0 6px rgba(0,255,179,0.9),
        0 0 14px rgba(0,220,160,0.7);
    animation: ny-badge-pulse 2.6s ease-in-out infinite;
}

@keyframes ny-badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    40% {
        transform: scale(1.25);
        opacity: 1;
    }
    70% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* ---------------------------
   5. НОВОГОДНИЙ СТАТУС-ИНДИКАТОР
   --------------------------- */

body.ny-mode .status-dot {
    box-shadow:
        0 0 10px rgba(0,255,179,0.9),
        0 0 22px rgba(160,210,255,0.85);
    animation: ny-status-spark 1.5s ease-in-out infinite;
}

@keyframes ny-status-spark {
    0%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.5);
    }
    60% {
        transform: scale(0.9);
    }
}

/* Текст статуса + иконка */
body.ny-mode #status-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.ny-mode #status-text.ny-confirmed {
    color: #b3f5ff;
}

body.ny-mode .ny-status-icon {
    font-size: 0.9rem;
    color: #facc15;
    text-shadow:
        0 0 6px rgba(250,204,21,0.9),
        0 0 14px rgba(245,158,11,0.9);
}

/* ---------------------------
   6. МЕЛКИЕ ПРАВКИ ПОД МОБИЛЬНЫЕ
   --------------------------- */

@media (max-width: 600px) {
    #ny-garland {
        padding: 6px 12px;
    }
}
