/* Tashkent RP New Year theme (assets/newyear.js adds html.ny only during the season). */
.ny-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* garland of twinkling bulbs under the header */
.ny-header { position: relative; }
.ny-garland { position: absolute; left: 0; right: 0; bottom: -9px; height: 16px; pointer-events: none; z-index: 2; overflow: hidden;
  background:
    radial-gradient(circle at 12px 10px, #ff4d5e 0 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 36px 10px, #ffd56a 0 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 60px 10px, #35e07f 0 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 84px 10px, #7fd3ff 0 4px, transparent 5px) 0 0 / 96px 16px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.35)); animation: ny-twinkle 2.4s ease-in-out infinite; }
.ny-garland::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 3px;
  background: radial-gradient(ellipse at 24px -6px, transparent 13px, #2b3446 14px 15px, transparent 16px) 0 0 / 24px 8px repeat-x; }
@keyframes ny-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Santa hat on the logo */
.ny-hatbox { position: relative; }
.ny-hat { position: absolute; z-index: 3; width: 34px; left: -8px; top: -14px; transform: rotate(-18deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.ny-hat svg { display: block; width: 100%; height: auto; }

/* countdown bar under the header */
.ny-bar { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 16px; margin-top: 6px;
  font: 700 14px/1.3 "Montserrat", system-ui, sans-serif; color: #f2f5fb; text-align: center;
  background: linear-gradient(90deg, #7a1020, #b5162a 30%, #0f5132 70%, #0a3d26); border-bottom: 1px solid rgba(255,255,255,.08); }
.ny-bar b { color: #ffd56a; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ny-tree { font-size: 17px; }

/* snow caps on cards and buttons (SNOW.caps in newyear.js) */
html.ny .card, html.ny .case-card, html.ny .feature, html.ny .path-panel { position: relative; }
html.ny-caps .card::before, html.ny-caps .case-card::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 10px; border-radius: 10px 10px 6px 6px; pointer-events: none;
  background: radial-gradient(circle at 10% 100%, #fff 0 5px, transparent 6px), radial-gradient(circle at 35% 90%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 62% 100%, #fff 0 5px, transparent 6px), radial-gradient(circle at 88% 95%, #fff 0 6px, transparent 7px), #f4f7fb;
  opacity: .92; }
html.ny .btn-accent { background: linear-gradient(135deg, #e3263b, #b5162a); }
html.ny .tabs button.on { background: #b5162a; border-color: #e3263b; }

/* snowdrift on the footer (SNOW.drift in newyear.js) */
html.ny-drift footer { position: relative; }
html.ny-drift footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, #eef3fa 0 60%, transparent 62%) 0 0 / 120px 16px repeat-x; opacity: .85; }

@media (max-width: 560px) {
  .ny-bar { font-size: 12px; padding: 7px 10px; }
  .ny-hat { width: 28px; left: -7px; top: -11px; }
}
@media (prefers-reduced-motion: reduce) { .ny-garland { animation: none; } }
