/* Новогодний сезон (10.11–10.01 МСК): подключается из base.html, только когда
   season_ny(). Всё праздничное — здесь и в ny.js; выключить — NY_DECOR=off. */
:root { --ny-gold: #ffc94d; --ny-frost: #eef6ff; }

/* ── Неоновая гирлянда под шапкой: провод дугами + мерцающие лампочки ── */
.ny-garland {
  position: absolute; left: 0; right: 0; top: 100%; height: 26px;
  display: flex; overflow: hidden; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='26'%3E%3Cpath d='M0 1 Q28 15 56 1' fill='none' stroke='%23d9d3f5' stroke-opacity='.3' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 56px 26px;
}
.ny-garland i { flex: 0 0 56px; position: relative; --c: #ff2e7e; --dl: 0s; }
.ny-garland i::before {           /* цоколь */
  content: ""; position: absolute; left: calc(50% - 2.5px); top: 6px;
  width: 5px; height: 4px; border-radius: 1px; background: #4a4462;
}
.ny-garland i::after {            /* лампочка */
  content: ""; position: absolute; left: calc(50% - 4px); top: 9px;
  width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: var(--c);
  box-shadow: 0 0 5px 1px var(--c), 0 0 14px 2px color-mix(in srgb, var(--c) 55%, transparent);
  animation: ny-twinkle 2.6s ease-in-out infinite; animation-delay: var(--dl);
}
.ny-garland i:nth-child(4n+2) { --c: var(--ny-gold); }
.ny-garland i:nth-child(4n+3) { --c: #2de2ff; }
.ny-garland i:nth-child(4n+4) { --c: #8f74ff; }
.ny-garland i:nth-child(3n+1) { --dl: -.9s; }
.ny-garland i:nth-child(3n+2) { --dl: -1.7s; }
.ny-garland i:nth-child(5n)   { --dl: -.35s; }
@keyframes ny-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: .32; box-shadow: 0 0 2px 0 var(--c); }
}

/* ── Снег в хиро главной (canvas рисует ny.js) ── */
.ny-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .row { position: relative; z-index: 1; }

/* ── Колпак на микрофоне: помпон чуть покачивается ── */
.ny-hat .ny-pom { transform-box: fill-box; transform-origin: 50% 0; animation: ny-pom 3.2s ease-in-out infinite; }
@keyframes ny-pom { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg) translateY(1px); } }

/* ── Поздравление в подвале ── */
.ny-greet { color: var(--ny-gold); font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.ny-greet i { margin-right: .4rem; }

@media (prefers-reduced-motion: reduce) {
  .ny-garland i::after, .ny-hat .ny-pom { animation: none; }
  .ny-snow { display: none; }
}
