/* New Year festive finish — 2026-10-10.
   Add after the existing New Year stylesheet. The footer supplies 32 small
   distributed snow particles; mobile displays 14. No requests, timers or JS.
   Garlands use absolute pseudo-elements; all real panel geometry stays intact. */

/* Four softly glowing bulbs per repeat: cranberry, gold, evergreen and warm white. */
html body[data-page].theme-newyear > .r44-top::after,
html body[data-page].theme-newyear main.wrap #autumn4 .a4-hero::after {
 content:""!important;display:block!important;position:absolute!important;
 height:23px!important;font-size:0!important;line-height:0!important;
 pointer-events:none!important;transform:none!important;
 background:
  radial-gradient(ellipse 3px 5px at 14px 8px,#fff2e9 0 20%,#ff6e80 42%,#e03b59 72%,transparent 90%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 3px 5px at 50px 11px,#fff9d5 0 23%,#ffda6b 46%,#e8b639 73%,transparent 90%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 3px 5px at 86px 8px,#ecffe5 0 20%,#8ae0a0 45%,#35ae70 72%,transparent 90%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 3px 5px at 122px 11px,#fffdf2 0 30%,#ffecc6 52%,#e9d4a6 75%,transparent 92%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 14px 11px at 14px 8px,#ff4c715e,transparent 80%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 14px 11px at 50px 11px,#ffd26b66,transparent 80%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 14px 11px at 86px 8px,#62dc9870,transparent 80%) 0 0/144px 23px repeat-x,
  radial-gradient(ellipse 14px 11px at 122px 11px,#fff4d366,transparent 80%) 0 0/144px 23px repeat-x,
  linear-gradient(#3b6552,#3b6552) left 1px/100% 1px no-repeat!important;
 opacity:.92;filter:drop-shadow(0 0 2px #e9c57750);
 animation:sv-ny-garland-glow 5.4s ease-in-out infinite;
}
html body[data-page].theme-newyear > .r44-top::after {
 inset:auto 0 -18px!important;z-index:3;
}
html body[data-page].theme-newyear main.wrap #autumn4 .a4-hero::after {
 inset:1px 10px auto!important;z-index:2;
 animation-delay:-2.7s;
}
@keyframes sv-ny-garland-glow {
 0%,100% {opacity:.78}
 46% {opacity:1}
 72% {opacity:.88}
}

/* Slow, staggered snowfall across the viewport. Clicks and scrolling pass through. */
html body[data-page].theme-newyear .sv-ny-snow {
 pointer-events:none!important;
}
html body[data-page].theme-newyear .sv-ny-snow i {
 display:block;top:-16px;left:var(--x);
 width:var(--size,4px);height:var(--size,4px);
 background:#f3fbff;border-radius:50%;box-shadow:0 0 4px #e8faff80;
 animation:sv-ny-fall-festive var(--duration,16s) linear infinite;
 animation-delay:var(--delay,0s);will-change:transform;
}
html body[data-page].theme-newyear .sv-ny-snow i:nth-child(4n+1) {--ny-drift:19px}
html body[data-page].theme-newyear .sv-ny-snow i:nth-child(4n+2) {--ny-drift:-13px}
html body[data-page].theme-newyear .sv-ny-snow i:nth-child(4n+3) {--ny-drift:9px}
html body[data-page].theme-newyear .sv-ny-snow i:nth-child(4n) {--ny-drift:-21px}
@keyframes sv-ny-fall-festive {
 0% {transform:translate3d(0,-3vh,0);opacity:0}
 9% {opacity:.76}
 48% {opacity:.64}
 87% {opacity:.5}
 100% {transform:translate3d(var(--ny-drift,16px),106vh,0);opacity:0}
}

/* Festive accents reuse the existing surfaces and their exact sizes. */
html body[data-page].theme-newyear main.wrap #autumn4 .a4-hero {
 border-color:#c6aa6b!important;
 box-shadow:0 15px 44px #0004,inset 0 0 30px #e7cc9510;
}
html body[data-page].theme-newyear main.wrap #autumn4 .a4-stats>a:nth-child(1) {border-color:#537f67}
html body[data-page].theme-newyear main.wrap #autumn4 .a4-stats>a:nth-child(2) {border-color:#9a8050}
html body[data-page].theme-newyear main.wrap #autumn4 .a4-stats>a:nth-child(3) {border-color:#85515a}
html body[data-page].theme-newyear main.wrap #autumn4 .a4-stats>a:nth-child(4) {border-color:#7c918d}

@media(max-width:760px) {
 /* Override the original rule hiding every particle after number six. */
 html body[data-page].theme-newyear .sv-ny-snow i:nth-child(-n+14) {display:block}
 html body[data-page].theme-newyear .sv-ny-snow i:nth-child(n+15) {display:none;animation:none;will-change:auto}
 html body[data-page].theme-newyear .sv-ny-snow i {box-shadow:0 0 2px #e8faff55}
}
/* The existing visibilitychange listener already maintains this document flag. */
html[data-ny-paused] body[data-page].theme-newyear .sv-ny-snow i,
html[data-ny-paused] body[data-page].theme-newyear > .r44-top::after,
html[data-ny-paused] body[data-page].theme-newyear main.wrap #autumn4 .a4-hero::after {
 animation-play-state:paused!important;
}
@media(prefers-reduced-motion:reduce) {
 html body[data-page].theme-newyear .sv-ny-snow {display:none!important}
 html body[data-page].theme-newyear .sv-ny-snow i {animation:none!important;will-change:auto}
 html body[data-page].theme-newyear > .r44-top::after,
 html body[data-page].theme-newyear main.wrap #autumn4 .a4-hero::after {
  animation:none!important;opacity:.94;
 }
}
