/* MainNet seasonal layer. Loaded on every page; inert unless season.js
   sets a season class on <html>. Decorative only: never blocks clicks. */

.season-layer{position:fixed;inset:0;pointer-events:none;z-index:70;overflow:hidden}
.season-snow{position:absolute;inset:0;width:100%;height:100%}

/* String lights along the top edge */
.season-lights{position:fixed;left:0;right:0;top:0;height:26px;pointer-events:none;z-index:71}
.season-lights svg{display:block;width:100%;height:26px;overflow:visible}
.season-lights .wire{fill:none;stroke:rgba(214,196,150,.38);stroke-width:1}
.season-lights .bulb{transform-box:fill-box;transform-origin:center;animation:season-twinkle 3.2s ease-in-out infinite}
.season-lights .bulb.c0{fill:#f4d27a;filter:drop-shadow(0 0 4px rgba(244,210,122,.85))}
.season-lights .bulb.c1{fill:#e0574a;filter:drop-shadow(0 0 4px rgba(224,87,74,.8))}
.season-lights .bulb.c2{fill:#5fb38a;filter:drop-shadow(0 0 4px rgba(95,179,138,.75))}
.season-lights .bulb.c3{fill:#fff4dc;filter:drop-shadow(0 0 4px rgba(255,244,220,.85))}
@keyframes season-twinkle{0%,100%{opacity:1}50%{opacity:.35}}

/* A small star over the MainNet mark */
html.season-christmas header .brand{position:relative}
html.season-christmas header .brand::after{
  content:"";position:absolute;left:18px;top:-9px;width:12px;height:12px;pointer-events:none;
  background:#f4d27a;filter:drop-shadow(0 0 6px rgba(244,210,122,.9));
  clip-path:polygon(50% 0,61% 38%,100% 38%,68% 61%,79% 100%,50% 76%,21% 100%,32% 61%,0 38%,39% 38%);
  animation:season-star 4s ease-in-out infinite}
@keyframes season-star{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(.82) rotate(18deg);opacity:.8}}

/* Greeting ribbon */
.season-greeting{
  position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;z-index:72;
  display:flex;align-items:center;gap:12px;max-width:min(92vw,560px);
  padding:11px 14px 11px 18px;border-radius:999px;
  background:rgba(8,20,38,.88);color:#f5ecd6;border:1px solid rgba(244,210,122,.35);
  box-shadow:0 10px 30px rgba(0,0,0,.35),0 0 24px rgba(244,210,122,.12);
  font:500 14px/1.4 Georgia,'Songti SC','Noto Serif CJK SC',serif;letter-spacing:.01em;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:opacity .6s ease,transform .6s ease;pointer-events:auto}
.season-greeting.show{opacity:1;transform:translate(-50%,0)}
.season-greeting .mark{color:#f4d27a;font-size:16px;flex:none}
.season-greeting button{
  flex:none;appearance:none;border:0;background:transparent;color:rgba(245,236,214,.7);
  font:inherit;font-size:18px;line-height:1;padding:2px 6px;cursor:pointer;border-radius:50%}
.season-greeting button:hover,.season-greeting button:focus-visible{color:#fff;outline:1px solid rgba(244,210,122,.5)}

/* Light-background pages (Research) get a darker garland wire */
html.season-light-page .season-lights .wire{stroke:rgba(80,70,50,.35)}

/* Respect the site's motion controls and the system setting */
html.motion-off .season-lights .bulb,html.motion-paused .season-lights .bulb,
html.motion-off header .brand::after,html.motion-paused header .brand::after{animation:none}
@media (prefers-reduced-motion:reduce){
  .season-lights .bulb,html.season-christmas header .brand::after{animation:none}
  .season-greeting{transition:none}
}
@media print{.season-layer,.season-lights,.season-greeting{display:none!important}
  html.season-christmas header .brand::after{display:none}}