/* =====================================================================
   Christmas layer. Everything is scoped to html.sm-xmas, so switching
   "Christmas effects" off in the theme editor removes all of it.
   ===================================================================== */
:root{--xm-red:#ff4d5e;--xm-green:#36d686;--xm-gold:#ffcd57;--xm-white:#fff6e5}

/* ---- snow canvas + snow button ---- */
.sm-snow{position:fixed;inset:0;z-index:30;pointer-events:none;display:none}
.sm-snowbtn{position:fixed;right:1rem;bottom:1rem;z-index:50;display:grid;place-items:center;width:2.7rem;height:2.7rem;border-radius:50%;
  background:rgba(20,20,21,.92);border:1px solid var(--s-border-2);color:#fff;font-size:1rem;transition:background .2s,color .2s,transform .2s}
.sm-snowbtn:hover{background:#222226;transform:scale(1.06)}
.sm-snowbtn.is-off{color:#6d6d75}
.sm-snowbtn.is-off::after{content:"";position:absolute;width:1.5rem;height:2px;border-radius:2px;background:#6d6d75;transform:rotate(-45deg)}

/* ---- warm red / green glow at the very top of the page ---- */
html.sm-xmas body::before{
  background:
    radial-gradient(34rem 15rem at 14% 0,rgba(255,77,94,.11),transparent 70%),
    radial-gradient(34rem 15rem at 86% 0,rgba(54,214,134,.10),transparent 70%),
    radial-gradient(48rem 18rem at 50% 0,rgba(255,255,255,.05),transparent 70%)!important}

/* ---- string lights hanging under the header ---- */
.sm-lights{position:absolute;left:0;right:0;top:100%;height:1.6rem;margin:0;padding:0 .5rem;list-style:none;display:flex;pointer-events:none;z-index:2;overflow:visible}
.sm-lights li{--c:var(--xm-red);flex:1;position:relative;height:.8rem;border-bottom:2px solid #2d2d32;border-radius:0 0 50% 50%/0 0 100% 100%}
.sm-lights li::after{content:"";position:absolute;left:50%;bottom:-.62rem;width:.5rem;height:.7rem;margin-left:-.25rem;
  border-radius:50% 50% 50% 50%/40% 40% 60% 60%;background:var(--c);box-shadow:0 0 .7rem .12rem var(--c);animation:xm-twinkle 2.6s ease-in-out infinite}
.sm-lights li::before{content:"";position:absolute;left:50%;bottom:-.08rem;width:.28rem;height:.2rem;margin-left:-.14rem;background:#2d2d32;border-radius:1px}
.sm-lights li:nth-child(4n+1){--c:var(--xm-red)}
.sm-lights li:nth-child(4n+2){--c:var(--xm-gold);}
.sm-lights li:nth-child(4n+3){--c:var(--xm-green)}
.sm-lights li:nth-child(4n){--c:var(--xm-white)}
.sm-lights li:nth-child(3n)::after{animation-delay:-.9s}
.sm-lights li:nth-child(3n+1)::after{animation-delay:-1.7s}
.sm-lights li:nth-child(5n)::after{animation-duration:3.3s}
@keyframes xm-twinkle{0%,100%{opacity:1}45%{opacity:.35;box-shadow:0 0 .35rem .04rem var(--c)}}
@media(max-width:700px){.sm-lights li:nth-child(even){display:none}.sm-lights{padding:0}}

/* ---- santa hat on the logo ---- */
html.sm-xmas .fm-logo__mark{position:relative;overflow:visible!important}
.sm-hat{position:absolute;z-index:3;left:-.45rem;top:-.72rem;width:1.55rem;height:auto;transform:rotate(-16deg);pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}

/* ---- candy cane stripe under the hero button ---- */
html.sm-xmas .sm-hero .sm-btn--primary{padding-bottom:.85rem}
html.sm-xmas .sm-hero .sm-btn--primary::before{content:"";position:absolute;left:0;right:0;bottom:0;height:.28rem;
  background:repeating-linear-gradient(135deg,#e5384a 0 .5rem,#fff .5rem .75rem,#2fb872 .75rem 1.25rem,#fff 1.25rem 1.5rem)}

/* ---- cards: spotlight follows the cursor ---- */
.sm-pcard,.sm-fcard,.sm-tech__card,.sm-fg__card{position:relative;will-change:transform}
.sm-pcard::before,.sm-fcard::before,.sm-tech__card::before,.sm-fg__card::before{content:"";position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .25s;
  background:radial-gradient(18rem circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.13),transparent 60%)}
.is-tilt::before{opacity:1}
.is-tilt{border-color:rgba(255,255,255,.4)!important}

@media (prefers-reduced-motion:reduce){.sm-lights li::after{animation:none}.sm-snow{display:none!important}}
