/* December theme (preview, 17 Nov 2026): the one shared look for the homepage, /join, /join-16 and /sf-16. Frost and snow (B) plus hanging baubles and the
   footer band (C). Palette: frost blue, white, silver, warm gold light. No red or green wash; evergreen only in the garland.
   Everything that moves animates transform or opacity only (compositor); no filter, blend mode, box-shadow or canvas on anything that moves.
   Scoped to html.xd / .xd-* ; colours are !important where the override sheets win (p, li, a). */
html body .pv-tag{position:fixed;left:10px;bottom:10px;z-index:2147483000;margin:0!important;padding:5px 8px!important;border-radius:6px;background:#0a0a0a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font:700 11px/1 Inter,sans-serif!important;letter-spacing:.02em!important;text-transform:none!important;box-shadow:0 0 0 1px rgba(255,255,255,.55);pointer-events:none}
html.xd{--xdh:64px}
@media (max-width:767px){html.xd{--xdh:40px}}
html.xd .hero,html.xd .join-hero{position:relative;overflow:hidden}
html.xd .hero .hero-content{padding-bottom:calc(var(--xdh) + 8px)!important}
.xd-layer{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}
.xd-layer.xm-back{z-index:-1}
.xd-wash{position:absolute;inset:0;background:linear-gradient(180deg,rgba(150,196,246,.16) 0%,rgba(84,134,208,.11) 100%)}
.xd-vig{position:absolute;inset:0;background:radial-gradient(120% 95% at 38% 42%,rgba(6,14,30,0) 38%,rgba(6,14,30,.50) 100%),linear-gradient(90deg,rgba(6,12,24,.52) 0%,rgba(6,12,24,.26) 52%,rgba(6,12,24,0) 80%)}
@media (max-width:767px){.xd-vig{background:radial-gradient(130% 90% at 50% 40%,rgba(6,14,30,.18) 30%,rgba(6,14,30,.55) 100%)}}
.xd-gl{position:absolute;top:0;width:min(60vw,560px);height:min(46vw,380px);background:radial-gradient(circle at 0 0,rgba(232,244,255,.55) 0%,rgba(232,244,255,.20) 38%,rgba(232,244,255,0) 68%)}
.xd-gl.l{left:0}.xd-gl.r{right:0;transform:scaleX(-1)}
.xd-rim{position:absolute;inset:0;box-shadow:inset 0 0 70px 10px rgba(226,240,255,.22),inset 0 0 18px 2px rgba(240,248,255,.35)}
.xd-drift{position:absolute;left:0;bottom:-1px;width:100%;height:var(--xd,64px);display:block}
.xd-dshade{position:absolute;left:0;right:0;bottom:calc(var(--xd,64px) - 8px);height:36px;background:linear-gradient(0deg,rgba(8,20,44,.20),rgba(8,20,44,0))}
.xd-garland{position:absolute;left:0;top:-4px;width:100%;height:140px;overflow:visible}
.xd-items{position:absolute;inset:0}

/* snow: compositor-only. outer element falls, inner sways and turns */
.xd-flakes{position:absolute;inset:0;overflow:hidden}
.xd-f{position:absolute;top:-50px;width:0;height:0;will-change:transform}
.xd-f b{display:block;position:absolute;left:calc(var(--s) / -2);top:0;width:var(--s);height:var(--s);background-size:contain;background-repeat:no-repeat;opacity:var(--o,.9)}
/* ONE animation per flake (a fall with a gentle weave and a slow turn); its keyframes are generated per flake by the script, in plain numbers */

/* string of lights: warm, clearly visible, gentle twinkle */
.xd-lt{position:absolute;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;background:radial-gradient(circle,#fff 0,#fff 14%,var(--c) 15%,var(--c) 27%,var(--h) 28%,rgba(255,200,110,0) 70%);}
.xd-g{position:absolute;inset:0;will-change:opacity}
.xd-g0{animation:xdTw 3.1s ease-in-out infinite alternate}
.xd-g1{animation:xdTw 3.9s ease-in-out -1.3s infinite alternate}
.xd-g2{animation:xdTw 4.6s ease-in-out -2.6s infinite alternate}
.xd-h0{animation:xdShim 3.8s ease-in-out infinite alternate}
.xd-h1{animation:xdShim 4.7s ease-in-out -2s infinite alternate}
@keyframes xdTw{0%{opacity:.5}100%{opacity:1}}

/* hanging things: a string and an ornament that sway from the top. Rise in once on load (like the birthday balloons), then swing */
.xd-or,.xd-bell{position:absolute;width:0;height:0}
.xd-or{animation:xdIn 1.1s cubic-bezier(.2,.8,.25,1) both;will-change:transform}
.xd-built .xd-or{animation:none}
@keyframes xdIn{from{transform:translate3d(0,-180px,0);opacity:0}to{transform:none;opacity:1}}
.xd-sw{display:flex;flex-direction:column;align-items:center;width:0;transform-origin:50% 0;animation:xdSwing var(--sw,5s) ease-in-out var(--dl,0s) infinite alternate;will-change:transform}
@keyframes xdSwing{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
.xd-sw>*{flex:none}
.xd-layer *{max-width:none!important}
.xd-str{display:block;width:1.5px!important;background:linear-gradient(180deg,#e4f0fb,#9dbfe0)}
.xd-ob{position:relative;display:block;line-height:0}
.xd-ob svg{display:block}
.xd-halo{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:radial-gradient(circle,rgba(255,222,130,.70) 0%,rgba(255,206,100,.28) 46%,rgba(255,200,90,0) 70%);}
.xd-halo.xd-static{opacity:.8}
@keyframes xdShim{0%{opacity:.45}100%{opacity:1}}
/* bells: lit gold with a soft halo and a slow shimmer */
.xd-bell .xd-sw{--sw:4.4s}
.xd-bh{width:54px;height:54px;margin:-27px 0 0 -27px}
.xd-spk{position:absolute;width:11px;height:11px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5Z' fill='%23fff6c4'/%3E%3C/svg%3E") no-repeat center/contain}

/* seasonal line (OURS, draft for Tamara) */
html body .xd-line{display:flex;align-items:center;gap:9px;margin:0 0 12px!important;padding:0;font:600 12px/1.2 'JetBrains Mono',ui-monospace,monospace!important;letter-spacing:.16em;text-transform:uppercase;color:#e4f1ff!important;-webkit-text-fill-color:#e4f1ff!important;text-shadow:0 1px 8px rgba(4,12,28,.7)}
html body .xd-line svg{flex:none;width:16px;height:16px}
@media (max-width:767px){html body .xd-line{justify-content:center;text-align:center;margin-bottom:10px!important;font-size:11px!important}html.xd .hero .hero-content{margin-top:104px}}
@media (max-width:1023px){html.xd .hero-logo{margin-top:118px!important}html.xd .join-hero-copy{padding-top:118px}}

/* evergreen band above the footer (C) */
.xd-foot{display:block;height:64px;line-height:0;overflow:hidden;pointer-events:none}
.xd-foot svg{display:block}

.xd-off *{animation-play-state:paused!important}
.xd-still .xd-f{display:none}
@media (prefers-reduced-motion:reduce){.xd-layer *,.xd-layer{animation:none!important}.xd-f{display:none}}
@media print{.xd-layer,.xd-foot{display:none}}

/* viewport layer (19 Nov): fixed over the whole page, never takes a tap, light enough that body text stays readable */
.xd-vp{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden}
.xd-vp *{pointer-events:none;max-width:none!important}
.xd-vfrost{position:absolute;inset:0;background:radial-gradient(ellipse 120% 100% at 50% 45%,rgba(150,196,246,0) 58%,rgba(150,196,246,.15) 100%),linear-gradient(180deg,rgba(214,234,255,.14) 0%,rgba(214,234,255,0) 12%)}
.xd-vflakes{position:absolute;inset:0;overflow:hidden;transition:opacity .6s ease}
.xd-vflakes.xd-vhide{opacity:0}
.xd-vp .xd-f{top:-30px}
.xd-voff .xd-f{animation-play-state:paused!important}
.xd-vstill .xd-vflakes{display:none}
@media (prefers-reduced-motion:reduce){.xd-vp .xd-f{animation:none!important;display:none}}
@media print{.xd-vp{display:none}}
