/* newyear_atmmix 5.0 — «Украшения сайта» для шаблона atmcyber */

/* шапка Санты на аватарах */
.ny-hat-host { position: relative; overflow: visible !important; }
.ny-hat { position: absolute; z-index: 3; left: 50%; top: 0; width: 34px; transform: translate(-58%, -52%) rotate(-14deg); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); animation: ny-hat-in .5s cubic-bezier(.2,1.5,.4,1); }
.ny-hat svg { display: block; width: 100%; height: auto; }
@keyframes ny-hat-in { from { transform: translate(-58%, -120%) rotate(-30deg); opacity: 0; } }

/* шапка на логотипе */
.ny-logo-hat { position: absolute; z-index: 3; left: -12px; top: -16px; width: 34px; transform: rotate(-22deg); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); animation: ny-hat-sway 4s ease-in-out infinite; transform-origin: 70% 90%; }
.ny-logo-hat.is-rail { left: -8px; top: -14px; width: 30px; }
.ny-logo-hat svg { display: block; width: 100%; height: auto; }
@keyframes ny-hat-sway { 50% { transform: rotate(-12deg); } }

/* гирлянда под шапкой (5.1: внешний вид — в ny.css, классы nyg-*) */
.ny-dgar { position: absolute; left: 0; right: 0; top: calc(100% - 5px); height: 90px; z-index: 1; pointer-events: none; }

/* сосульки */
.ny-icicles { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 29; pointer-events: none; }
.ny-icicles i { position: absolute; top: 0; width: 7px; margin-left: -3px; background: linear-gradient(180deg, rgba(235,248,255,.95), rgba(160,215,255,.55) 70%, rgba(160,215,255,0)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 0 3px rgba(160,215,255,.6)); }
.ny-icicles i::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 3px; height: 4px; margin-left: -1.5px; border-radius: 50%; background: rgba(200,235,255,.9); animation: ny-drip 4s ease-in infinite; animation-delay: var(--d); opacity: 0; }
@keyframes ny-drip { 0%, 70% { opacity: 0; transform: translateY(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(26px); } }

/* сугроб внизу экрана */
.ny-drift { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 50; pointer-events: none; }
.ny-drift svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 -4px 12px rgba(200,225,255,.25)); }
.ny-drift__sparkles { position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 37px 23px; opacity: .6; mask: linear-gradient(transparent 40%, #000); animation: ny-sparkle 3s linear infinite; }
@keyframes ny-sparkle { 50% { opacity: .2; } }

/* иконки левого меню */
.ny-rail-decor .ac-rail__item { position: relative; }
.ny-rail-flake { position: absolute; top: 4px; right: 12px; font-size: 11px; color: #bfe9ff; pointer-events: none; animation: ny-twinkle 3s ease-in-out infinite; animation-delay: var(--d); text-shadow: 0 0 6px rgba(127,216,255,.8); }
.ny-rail-flake .bxs-star { color: #ffd23b; text-shadow: 0 0 6px rgba(255,210,59,.8); }
@keyframes ny-twinkle { 50% { opacity: .25; transform: scale(.7) rotate(40deg); } }

/* мини-отсчёт в шапке */
.ny-hcount { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255,172,28,.35); background: rgba(255,172,28,.08); color: #f1f1ee; text-decoration: none; white-space: nowrap; }
.ny-hcount > i { font-size: 20px; color: #3ddc84; filter: drop-shadow(0 0 6px rgba(61,220,132,.6)); }
.ny-hcount span { display: flex; flex-direction: column; line-height: 1.05; }
.ny-hcount small { font-size: 10px; color: #868b98; text-transform: uppercase; letter-spacing: .08em; }
.ny-hcount b { font: 800 13px "Inter", sans-serif; color: #ffac1c; font-variant-numeric: tabular-nums; }
.ny-hcount:hover { border-color: #ffac1c; }
@media (max-width: 900px) { .ny-hcount small { display: none; } .ny-hcount { padding: 0 10px; } }
@media (max-width: 560px) { .ny-hcount { display: none; } }

/* свечение по краям */
.ny-glow { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 0% 0%, rgba(255,77,94,.08), transparent 35%), radial-gradient(ellipse at 100% 0%, rgba(61,220,132,.07), transparent 35%), radial-gradient(ellipse at 0% 100%, rgba(77,163,255,.07), transparent 35%), radial-gradient(ellipse at 100% 100%, rgba(255,172,28,.08), transparent 35%);
  animation: ny-glow 8s ease-in-out infinite alternate; }
@keyframes ny-glow { to { filter: hue-rotate(40deg); opacity: .7; } }

@media (prefers-reduced-motion: reduce) { .ny-hat, .ny-logo-hat, .ny-dgar i, .ny-icicles i::after, .ny-rail-flake, .ny-glow, .ny-drift__sparkles { animation: none !important; } }

/* 5.1 — новогодний баннер в блоке «ТОП ПОЛЬЗОВАТЕЛЕЙ» (главная, tpl/home/index.tpl) */
.ny-top-banner { position: relative; margin: 0; aspect-ratio: 4 / 1; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.065); }
.ny-top-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ny-top-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21,23,28,.85)); pointer-events: none; }
