/* Seasonal looks for the homepage hero (seasonal.js sets html[data-season]).
   Each look only recolours the existing wallpaper (base, rings, ribbons) and adds one layer on top of it:
   snow, stars, sparkles or a string of lights. Text, layout and the dock are untouched.
   Preview any look with ?season=winter | aurora | lights | gilded | off. */

/* The added layer sits above the wallpaper and below the welcome text. */
.season-layer{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;transition:filter .45s ease,opacity .45s ease}
.season-layer canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
body.launcher-open .season-layer,body.window-open .season-layer{filter:blur(6px) brightness(.62);opacity:.7}

/* A soft bank of snow along the bottom edge (winter and the snowy holiday looks). */
.season-drift{position:absolute;left:-5%;right:-5%;bottom:-2px;height:clamp(60px,11vh,120px);
  background:
    radial-gradient(60% 120% at 12% 100%,rgba(255,255,255,.5),transparent 70%),
    radial-gradient(50% 110% at 48% 100%,rgba(240,246,255,.42),transparent 70%),
    radial-gradient(55% 120% at 86% 100%,rgba(255,255,255,.48),transparent 70%);
  filter:blur(6px)}
html[data-season="gilded"] .season-drift,html[data-season="aurora"] .season-drift{display:none}

/* ---------- Winter: icy violet, frost-blue rings, falling snow ---------- */
html[data-season="winter"] .wallpaper{background:
  radial-gradient(circle at 71% 34%,rgba(214,228,255,.78),transparent 19%),
  radial-gradient(circle at 78% 67%,rgba(110,96,235,.9),transparent 31%),
  radial-gradient(circle at 14% 13%,#5b3bc4 0,#2c1a6b 37%,#0f0a2a 75%)}
html[data-season="winter"] .wallpaper::before{border-color:rgba(222,236,255,.6);box-shadow:0 0 60px #a9c8ff,inset 0 0 80px rgba(255,255,255,.42)}
html[data-season="winter"] .wallpaper::after{border-color:rgba(70,64,190,.5);box-shadow:0 0 50px rgba(186,214,255,.7),inset 0 0 65px rgba(220,232,255,.45)}
html[data-season="winter"] .ribbon{background:linear-gradient(90deg,rgba(64,44,170,.82),rgba(214,232,255,.88) 40%,rgba(96,82,214,.7));box-shadow:inset 0 0 45px rgba(255,255,255,.4),0 0 38px rgba(160,200,255,.45)}
html[data-season="winter"] .glow{background:linear-gradient(180deg,rgba(8,6,30,.02),rgba(8,6,30,.3))}

/* ---------- Northern Lights: night sky, aurora ribbons, stars and a little snow ---------- */
html[data-season="aurora"] .wallpaper{background:
  radial-gradient(circle at 72% 30%,rgba(98,255,196,.32),transparent 24%),
  radial-gradient(circle at 30% 62%,rgba(140,80,255,.36),transparent 34%),
  linear-gradient(180deg,#040a1c 0%,#0a1030 48%,#1a0a36 100%)}
html[data-season="aurora"] .wallpaper::before{border-color:rgba(110,255,200,.28);box-shadow:0 0 90px rgba(80,255,190,.55),inset 0 0 90px rgba(120,255,210,.3);filter:blur(14px)}
html[data-season="aurora"] .wallpaper::after{border-color:rgba(150,90,255,.3);box-shadow:0 0 80px rgba(170,110,255,.6),inset 0 0 70px rgba(150,120,255,.35);filter:blur(16px)}
html[data-season="aurora"] .ribbon{background:linear-gradient(90deg,rgba(20,190,150,0),rgba(90,255,196,.62) 42%,rgba(150,90,255,.5) 75%,rgba(150,90,255,0));box-shadow:0 0 60px rgba(90,255,196,.35);filter:blur(10px);mix-blend-mode:screen;opacity:.85}
html[data-season="aurora"] .glow{background:linear-gradient(180deg,rgba(2,4,14,0),rgba(2,4,14,.42))}

/* ---------- Holiday Lights: cranberry and plum, gold ribbons, a string of bulbs, snow ---------- */
html[data-season="lights"] .wallpaper{background:
  radial-gradient(circle at 71% 34%,rgba(255,196,120,.5),transparent 20%),
  radial-gradient(circle at 78% 67%,rgba(196,30,84,.75),transparent 32%),
  radial-gradient(circle at 14% 13%,#7a1650 0,#3d0b33 40%,#14051a 78%)}
html[data-season="lights"] .wallpaper::before{border-color:rgba(255,214,150,.42);box-shadow:0 0 60px rgba(255,176,90,.6),inset 0 0 80px rgba(255,236,200,.3)}
html[data-season="lights"] .wallpaper::after{border-color:rgba(150,20,70,.5);box-shadow:0 0 50px rgba(255,120,150,.55),inset 0 0 65px rgba(255,200,210,.35)}
html[data-season="lights"] .ribbon{background:linear-gradient(90deg,rgba(130,14,60,.82),rgba(255,206,140,.82) 40%,rgba(160,30,90,.7));box-shadow:inset 0 0 45px rgba(255,240,220,.3),0 0 38px rgba(255,150,120,.4)}
html[data-season="lights"] .glow{background:linear-gradient(180deg,rgba(20,2,14,.05),rgba(20,2,14,.32))}

/* The string: a drooping wire with bulbs placed along it by seasonal.js. */
.season-lights{position:absolute;inset:0}
.season-lights svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.season-lights path{fill:none;stroke:rgba(20,30,20,.85);stroke-width:2}
.season-bulb{position:absolute;width:12px;height:18px;margin:-2px 0 0 -6px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:var(--bulb);box-shadow:0 0 10px 2px var(--bulb),0 0 26px 6px color-mix(in srgb,var(--bulb) 55%,transparent);transform-origin:50% 0;rotate:var(--tilt,0deg);animation:season-twinkle var(--speed,2.6s) ease-in-out var(--delay,0s) infinite alternate}
.season-bulb::before{content:"";position:absolute;left:3px;top:-5px;width:6px;height:6px;border-radius:2px;background:#2b3326}
@keyframes season-twinkle{from{opacity:1;filter:brightness(1.15)}to{opacity:.45;filter:brightness(.75)}}

/* ---------- Gilded: deep plum, gold satin ribbons, drifting gold sparkles ---------- */
html[data-season="gilded"] .wallpaper{background:
  radial-gradient(circle at 71% 34%,rgba(255,226,150,.62),transparent 19%),
  radial-gradient(circle at 78% 67%,rgba(120,40,170,.85),transparent 31%),
  radial-gradient(circle at 14% 13%,#5a1a7c 0,#2a0a3e 38%,#0e0416 76%)}
html[data-season="gilded"] .wallpaper::before{border-color:rgba(255,214,120,.55);box-shadow:0 0 60px rgba(255,196,80,.65),inset 0 0 80px rgba(255,240,200,.35)}
html[data-season="gilded"] .wallpaper::after{border-color:rgba(120,40,170,.5);box-shadow:0 0 50px rgba(255,210,120,.55),inset 0 0 65px rgba(255,230,180,.35)}
html[data-season="gilded"] .ribbon{background:linear-gradient(90deg,rgba(110,62,8,.82),rgba(255,226,150,.92) 38%,rgba(196,132,30,.85) 62%,rgba(120,70,12,.72));box-shadow:inset 0 0 45px rgba(255,250,230,.4),0 0 38px rgba(255,196,90,.45)}
html[data-season="gilded"] .glow{background:linear-gradient(180deg,rgba(14,4,22,.04),rgba(14,4,22,.32))}

/* ---------- Light theme: the same four looks, as daytime versions ---------- */
html[data-ss-theme="light"][data-season="winter"] .wallpaper{background:radial-gradient(circle at 77% 16%,rgba(255,255,255,.7),transparent 23rem),radial-gradient(circle at 20% 88%,rgba(98,96,214,.24),transparent 34rem),linear-gradient(145deg,#eef3fc 0%,#c9cdf0 52%,#e6e9f8 100%)}
html[data-ss-theme="light"][data-season="aurora"] .wallpaper{background:radial-gradient(circle at 75% 20%,rgba(90,230,180,.3),transparent 24rem),radial-gradient(circle at 20% 80%,rgba(140,90,240,.26),transparent 32rem),linear-gradient(160deg,#e9f6f4 0%,#cdd9f0 55%,#e5dcf6 100%)}
html[data-ss-theme="light"][data-season="lights"] .wallpaper{background:radial-gradient(circle at 77% 16%,rgba(255,206,120,.34),transparent 23rem),radial-gradient(circle at 20% 88%,rgba(190,30,80,.18),transparent 34rem),linear-gradient(145deg,#fbefe9 0%,#ecc6d2 52%,#f7e6ea 100%)}
html[data-ss-theme="light"][data-season="gilded"] .wallpaper{background:radial-gradient(circle at 77% 16%,rgba(255,214,110,.4),transparent 23rem),radial-gradient(circle at 20% 88%,rgba(112,31,159,.2),transparent 34rem),linear-gradient(145deg,#fbf3e2 0%,#e7cfa2 52%,#f4e6cc 100%)}
html[data-ss-theme="light"][data-season="aurora"] .ribbon{mix-blend-mode:multiply;opacity:.5}
html[data-ss-theme="light"] .season-drift{opacity:.85}

/* Reduced motion: lights stay lit, nothing falls (seasonal.js draws one still frame). */
@media (prefers-reduced-motion:reduce){.season-bulb{animation:none}}
html.ss-reduce-motion .season-bulb{animation:none}
