/* Новогодняя тема сайта: гирлянды на шапке и боковом меню, сугробы.
   Подключается только когда в админке включён режим "Новый год" (includes/season_effects.php),
   элементы создаёт assets/js/season-effects.js. Всё декоративное: pointer-events: none. */

.ek-ny-off .ny-deco { display: none !important; }
.ny-deco { pointer-events: none; }

/* ---- Гирлянда ---- */
.ny-garland { position: absolute; display: block; overflow: visible; }
.ny-garland-h { left: 0; top: 100%; z-index: 101; }
.ny-garland-v { left: 0; top: 0; width: 100%; height: 100%; z-index: 2; }
.ny-garland .wire { fill: none; stroke: #12402b; stroke-width: 2.2; stroke-linecap: round; }
.ny-garland .socket { stroke: #12402b; stroke-width: 2; stroke-linecap: round; }
.ny-garland .halo { opacity: 0.28; }
.ny-garland .nyb { animation: nyTw 1.9s ease-in-out infinite; }
.ny-garland .nyb.t1 { animation-duration: 1.4s; }
.ny-garland .nyb.t2 { animation-duration: 2.4s; }
@keyframes nyTw { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* На боковом меню гирлянда рисуется поверх иконок, но под подсказками */
.sidebar { overflow: visible; }

/* ---- Сугробы ---- */
.ft { position: relative; }
.ny-drift-foot { position: absolute; left: 0; right: 0; top: -44px; height: 46px; width: 100%; z-index: 2; display: block; }
.ny-drift-corner { position: fixed; bottom: 0; z-index: 80; width: 250px; height: 84px; display: block; }
.ny-drift-corner.l { left: var(--sidebar-w, 70px); }
.ny-drift-corner.r { right: 0; transform: scaleX(-1); }
@media (max-width: 900px) {
  .ny-drift-corner.l { left: 0; }
  .ny-drift-corner { width: 150px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ny-garland .nyb { animation: none; }
}
