
/* ===== halloween: a spider on a silk thread, two bats, and a logo lit like a lantern ===== */
.hw{display:none}
html[data-season="halloween"] header.site .logo{position:relative}
html[data-season="halloween"] .hw{display:block;position:absolute;left:0;top:50%;width:20px;height:18px;margin-top:-9px;
  pointer-events:none;z-index:3}
/* the lantern: the gold flickers toward pumpkin, the way a candle does */
html[data-season="halloween"] header.site .logo svg path{animation:hw-ember 5.2s linear infinite}
html[data-season="halloween"] header.site .logo > svg{filter:drop-shadow(0 0 5px rgba(255,138,31,.45));
  animation:hw-glow 5.2s linear infinite}
@keyframes hw-ember{0%,100%{fill:#F5C518}40%{fill:#ff9a26}43%{fill:#F5C518}46%{fill:#ff8a1f}70%{fill:#ffb21f}}
@keyframes hw-glow{0%,100%{filter:drop-shadow(0 0 4px rgba(255,138,31,.35))}40%{filter:drop-shadow(0 0 9px rgba(255,138,31,.7))}
  43%{filter:drop-shadow(0 0 3px rgba(255,138,31,.25))}46%{filter:drop-shadow(0 0 8px rgba(255,120,20,.65))}}

/* the spider hangs from the point of the V, sways and breathes on its thread */
.hw-swing{position:absolute;left:10px;top:16px;width:0;height:0;transform-origin:0 0;animation:hw-sway 3.8s ease-in-out infinite alternate}
.hw-silk{position:absolute;left:-.5px;top:0;width:1px;height:46px;transform-origin:50% 0;
  transition:transform .8s cubic-bezier(.2,1.4,.4,1)}
.hw-silk i{display:block;width:100%;height:100%;transform-origin:50% 0;
  background:linear-gradient(rgba(255,255,255,.04),rgba(255,255,255,.5));
  animation:hw-silk-bob 2.6s ease-in-out 3.2s infinite alternate,hw-silk-drop 1.6s cubic-bezier(.2,1.4,.4,1) 1.6s backwards}
.hw-spider{position:absolute;left:-11px;top:42px;width:22px;height:25px;transition:transform .8s cubic-bezier(.2,1.4,.4,1)}
.hw-bob{display:block;width:100%;height:100%;
  animation:hw-bob 2.6s ease-in-out 3.2s infinite alternate,hw-drop 1.6s cubic-bezier(.2,1.4,.4,1) 1.6s backwards}
.hw-bob svg{display:block;width:100%;height:100%;filter:drop-shadow(0 0 4px rgba(255,138,31,.45)) drop-shadow(0 4px 5px rgba(0,0,0,.8))}
.hw-eyes{transform-origin:16px 12px;animation:hw-blink 6s ease-in-out infinite}
/* the spider can be caught: grab it, pull it down on its silk, let go and it bounces */
html[data-season="halloween"].hw-play .hw-spider{pointer-events:auto;cursor:grab;touch-action:none}
html[data-season="halloween"].hw-play .hw-spider::before{content:'';position:absolute;inset:-12px}
.hw-spider:hover .hw-bob svg{animation:hw-shiver .12s linear infinite alternate}
.hw.hw-live .hw-swing,.hw.hw-live .hw-silk i,.hw.hw-live .hw-bob{animation:none}
.hw.hw-live .hw-silk,.hw.hw-live .hw-spider{transition:none}
.hw.hw-grab .hw-spider{cursor:grabbing}
.hw.hw-angry .hw-eyes circle{fill:#ff3b30}
@keyframes hw-shiver{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}
/* what it says when pulled */
.hw-say{position:fixed;z-index:120;padding:7px 12px;border-radius:999px;pointer-events:none;white-space:nowrap;
  background:#141414;border:1px solid rgba(255,138,31,.55);color:#ffd9a8;font:600 12.5px/1.2 var(--fb,system-ui);
  box-shadow:0 10px 30px -10px rgba(0,0,0,.9),0 0 18px -6px rgba(255,138,31,.6);
  transform:translate(-50%,-100%) scale(.6);opacity:0;animation:hw-say 1.9s var(--ease) forwards}
@keyframes hw-say{12%{opacity:1;transform:translate(-50%,-130%) scale(1)}80%{opacity:1;transform:translate(-50%,-140%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-170%) scale(.9)}}
/* and when pulled once too often: the whole page, webbed */
.hw-web{position:fixed;inset:0;z-index:9990;cursor:pointer;background:radial-gradient(circle at var(--x) var(--y),rgba(10,10,10,.1),rgba(6,6,6,.55) 70%);
  animation:hw-dim .5s var(--ease) both}
.hw-web svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.hw-web path{fill:none;stroke:rgba(235,235,235,.75);stroke-width:1.3;stroke-linecap:round;
  stroke-dasharray:var(--len);stroke-dashoffset:var(--len);animation:hw-spin .9s var(--ease) forwards;animation-delay:var(--d)}
.hw-web .hw-web-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.8);opacity:0;
  max-width:min(420px,calc(100vw - 40px));padding:22px 26px;border-radius:22px;text-align:center;
  background:rgba(14,14,14,.92);border:1px solid rgba(255,138,31,.5);box-shadow:0 30px 80px -20px rgba(0,0,0,.95),0 0 40px -10px rgba(255,138,31,.5);
  animation:hw-card .7s cubic-bezier(.2,1.4,.4,1) 1.1s forwards}
.hw-web-card b{display:block;font:800 clamp(24px,5vw,34px)/1.05 var(--fd,system-ui);letter-spacing:-.02em;color:#fff}
.hw-web-card span{display:block;margin-top:10px;font:500 13px/1.4 var(--fm,ui-monospace,monospace);letter-spacing:.06em;color:#ffb23a}
.hw-web.hw-tear{animation:hw-tear .7s var(--ease) forwards}
@keyframes hw-dim{from{opacity:0}to{opacity:1}}
@keyframes hw-spin{to{stroke-dashoffset:0}}
@keyframes hw-card{to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes hw-tear{to{opacity:0;transform:translateY(60px) scale(1.06) rotate(1.5deg)}}
@keyframes hw-sway{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}
@keyframes hw-silk-bob{from{transform:scaleY(1)}to{transform:scaleY(1.13)}}
@keyframes hw-bob{from{transform:translateY(0)}to{transform:translateY(6px)}}
@keyframes hw-silk-drop{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes hw-drop{from{transform:translateY(-46px) scale(.6)}to{transform:none}}
@keyframes hw-blink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}

/* two bats leave from behind the logo, now and then, and are gone over the top of the header */
.hw-bat{position:absolute;left:0;top:-2px;width:30px;height:14px;filter:drop-shadow(0 0 5px rgba(255,138,31,.6));opacity:0;animation:hw-fly 13s ease-in var(--d,3s) infinite}
.hw-bat svg{display:block;width:100%;height:100%;transform-origin:50% 40%;animation:hw-flap .16s ease-in-out infinite alternate}
.hw-bat--2{width:22px;height:10px;animation-name:hw-fly2}
@keyframes hw-flap{from{transform:scaleY(1)}to{transform:scaleY(.3)}}
@keyframes hw-fly{0%{opacity:0;transform:translate(0,4px) scale(.2)}4%{opacity:1}
  12%{transform:translate(52px,-10px) scale(.9) rotate(-8deg)}20%{transform:translate(96px,2px) scale(1) rotate(6deg)}
  28%{opacity:1;transform:translate(150px,-30px) scale(1.15) rotate(-12deg)}31%,100%{opacity:0;transform:translate(170px,-46px) scale(1.2)}}
@keyframes hw-fly2{0%{opacity:0;transform:translate(0,2px) scale(.2)}4%{opacity:1}
  14%{transform:translate(28px,-14px) scale(.9) rotate(10deg)}22%{transform:translate(70px,-6px) scale(1) rotate(-6deg)}
  30%{opacity:1;transform:translate(110px,-34px) scale(1.1)}33%,100%{opacity:0;transform:translate(124px,-50px) scale(1.1)}}

@media (prefers-reduced-motion:reduce){
  html[data-season="halloween"] header.site .logo svg path,html[data-season="halloween"] header.site .logo > svg,
  .hw-swing,.hw-silk i,.hw-bob,.hw-eyes{animation:none}
  .hw-silk,.hw-spider{transition:none}
  .hw-bat{display:none}
}


/* ===== christmas: a bauble on the V, lights under the header, snow that settles, a sleigh ===== */
.xm{display:none}
html[data-season="christmas"] header.site .logo{position:relative}
html[data-season="christmas"] .xm{display:block;position:absolute;left:0;top:50%;width:20px;height:18px;margin-top:-9px;pointer-events:none;z-index:3}
.xm-swing{position:absolute;left:10px;top:17px;width:0;height:0;transform-origin:0 0;animation:xm-sway 4.2s ease-in-out infinite alternate}
.xm-rib{position:absolute;left:-.75px;top:0;width:1.5px;height:30px;transform-origin:50% 0}
.xm-rib i{display:block;width:100%;height:100%;background:linear-gradient(#8a6d10,#F5C518);transform-origin:50% 0;
  animation:xm-drop-r 1.4s cubic-bezier(.2,1.4,.4,1) .8s backwards}
.xm-ball{position:absolute;left:-15px;top:27px;width:30px;height:36px}
.xm-bob{display:block;width:100%;height:100%;transform-origin:50% 0;animation:xm-drop 1.4s cubic-bezier(.2,1.4,.4,1) .8s backwards}
.xm-bob svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 7px rgba(245,197,24,.5)) drop-shadow(0 5px 6px rgba(0,0,0,.8))}
.xm-crack{opacity:0;transition:opacity .2s ease}
.xm.xm-hit1 .xm-crack{opacity:.55}
.xm.xm-hit2 .xm-crack{opacity:1}
.xm.xm-hit2 .xm-bob svg{animation:xm-shiver .1s linear infinite alternate}
.xm.xm-gone .xm-ball,.xm.xm-gone .xm-rib{visibility:hidden}
.xm.xm-again .xm-bob,.xm.xm-again .xm-rib i{animation:xm-drop 1.4s cubic-bezier(.2,1.4,.4,1) backwards}
.xm.xm-again .xm-rib i{animation-name:xm-drop-r}
html[data-season="christmas"].xm-play .xm-ball{pointer-events:auto;cursor:grab;touch-action:none}
html[data-season="christmas"].xm-play .xm-ball::before{content:'';position:absolute;inset:-12px}
.xm.xm-live .xm-swing,.xm.xm-live .xm-bob,.xm.xm-live .xm-rib i{animation:none}
.xm.xm-grab .xm-ball{cursor:grabbing}
.xm-ball:hover .xm-bob svg{filter:drop-shadow(0 0 12px rgba(255,216,77,.9)) drop-shadow(0 5px 6px rgba(0,0,0,.8))}
@keyframes xm-sway{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}
@keyframes xm-drop{from{transform:translateY(-30px) scale(.4);opacity:0}to{transform:none;opacity:1}}
@keyframes xm-drop-r{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes xm-shiver{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}

/* the frost the blizzard leaves on the screen: wipe it away */
.xfr{position:fixed;inset:0;z-index:9990;touch-action:none;cursor:pointer;animation:xfr-in .7s ease both}
.xfr canvas{position:absolute;inset:0;width:100%;height:100%}
.xfr-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;
  max-width:min(440px,calc(100vw - 40px));padding:22px 28px;border-radius:22px;background:rgba(14,14,14,.9);
  border:1px solid rgba(245,197,24,.55);box-shadow:0 30px 80px -20px rgba(0,0,0,.6),0 0 40px -10px rgba(245,197,24,.55);
  transition:opacity .3s ease;animation:xfr-card .7s cubic-bezier(.2,1.4,.4,1) .5s backwards}
.xfr-card b{display:block;font:800 clamp(26px,5vw,38px)/1.05 var(--fd,system-ui);letter-spacing:-.02em;color:#fff}
.xfr-card span{display:block;margin-top:10px;font:500 13px/1.4 var(--fm,ui-monospace,monospace);letter-spacing:.06em;color:#F5C518}
.xfr.xfr-melt{animation:xfr-melt .9s ease forwards;pointer-events:none}
@keyframes xfr-in{from{opacity:0}to{opacity:1}}
@keyframes xfr-card{from{opacity:0;transform:translate(-50%,-50%) scale(.8)}to{opacity:1;transform:translate(-50%,-50%)}}
@keyframes xfr-melt{to{opacity:0;filter:blur(6px)}}

/* the lights: a dark wire in scallops under the pill, bulbs in gold, warm white and amber */
.xl{display:none}
html[data-season="christmas"] .xl{display:block;position:absolute;left:0;top:calc(100% - 5px);height:0;pointer-events:none}
.xl svg{position:absolute;left:0;top:0;overflow:visible}
/* the header slides away on scroll: its lights go with it rather than hang at the top of the page */
html[data-season="christmas"] .xl{transition:opacity .3s ease}
html[data-season="christmas"] header.site.hidden .xl,html[data-season="christmas"] header.site.hidden .xm{opacity:0}
html[data-season="christmas"] .xm{transition:opacity .3s ease}
.xw{fill:none;stroke:#3b3b3b;stroke-width:1.5;stroke-linecap:round}
.xk{fill:#2c2c2c;stroke:#5a5a5a;stroke-width:.6}
.xb{pointer-events:auto;cursor:pointer}
.xb .xg{fill:var(--c)}
.xb .xh{fill:var(--g);opacity:.6}
.xb .xs2{fill:none;stroke:rgba(255,255,255,.75);stroke-width:1;stroke-linecap:round}
.xb .xhit{fill:transparent}
.x0{--c:#F5C518;--g:url(#xhg0)}.x1{--c:#FFF1C8;--g:url(#xhg1)}.x2{--c:#FFAE1A;--g:url(#xhg2)}
.xl[data-mode="glow"] .xg{animation:xl-breathe 3.2s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.37s)}
.xl[data-mode="glow"] .xh{animation:xl-breathe-h 3.2s ease-in-out infinite alternate;animation-delay:calc(var(--i) * -.37s)}
.xl[data-mode="chase"] .xg,.xl[data-mode="chase"] .xh{animation:xl-chase 1.2s linear infinite;animation-delay:calc(var(--i) * -.2s)}
.xl[data-mode="alt"] .xg,.xl[data-mode="alt"] .xh{animation:xl-alt 1.4s steps(1) infinite;animation-delay:calc(var(--i) * .7s)}
.xl[data-mode="sparkle"] .xg,.xl[data-mode="sparkle"] .xh{animation:xl-twinkle 2.4s ease-out infinite;animation-delay:calc(var(--r) * -2.4s)}
.xl[data-mode="wave"] .xg,.xl[data-mode="wave"] .xh{animation:xl-wave 2.2s ease-in-out infinite;animation-delay:calc(var(--i) * -.11s)}
.xl[data-mode="party"] .xg,.xl[data-mode="party"] .xh{animation:xl-chase .42s linear infinite;animation-delay:calc(var(--i) * -.07s)}
.xb.hot .xg,.xb.hot .xh{animation:none;opacity:1}
.xb.dead .xg{animation:none;opacity:.14}
.xb.dead .xh{animation:none;opacity:0}
.xb.relit .xg,.xb.relit .xh{animation:xl-flick .9s steps(1) both}
@keyframes xl-breathe{from{opacity:1}to{opacity:.72}}
@keyframes xl-breathe-h{from{opacity:.75}to{opacity:.35}}
@keyframes xl-chase{0%,30%{opacity:1}34%,100%{opacity:.2}}
@keyframes xl-alt{0%{opacity:1}50%{opacity:.2}}
@keyframes xl-twinkle{0%{opacity:.3}8%{opacity:1}30%,100%{opacity:.3}}
@keyframes xl-wave{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes xl-flick{0%{opacity:1}15%{opacity:.1}30%{opacity:1}45%{opacity:.2}60%,100%{opacity:1}}

/* snow, the sleigh, presents */
.xsn{position:fixed;inset:0;width:100%;height:100%;z-index:85;pointer-events:none}
.xsl{position:fixed;left:0;top:0;width:300px;height:70px;z-index:86;pointer-events:none;display:none;
  transform-origin:150px 35px;will-change:transform}
.xsl.on{display:block}
.xsl svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none;
  filter:drop-shadow(0 0 6px rgba(245,197,24,.35)) drop-shadow(0 6px 8px rgba(0,0,0,.6))}
.xsl .xslhit{fill:transparent;pointer-events:all;cursor:pointer}
.xsl .xbod{fill:url(#xgd)}
.xsl .xant,.xsl .xleg{fill:none;stroke:#E6B514;stroke-width:1.7;stroke-linecap:round}
.xsl .xleg{stroke:url(#xgd);stroke-width:2.3}
.xsl .xrein{fill:none;stroke:#F5C518;stroke-opacity:.6;stroke-width:.9}
.xsl .xnose0{fill:#151515}
.xsl .xnose{fill:#FFF1C8}
.xsl .xnh{fill:url(#xng);animation:xs-nose 1.1s ease-in-out infinite alternate}
.xdeer{transform-box:fill-box;animation:xs-bob .52s ease-in-out infinite alternate;animation-delay:calc(var(--k) * -.13s)}
.xleg{transform-box:fill-box;transform-origin:50% 0}
.xleg-f{animation:xs-gal .26s ease-in-out infinite alternate;animation-delay:calc(var(--k) * -.13s)}
.xleg-b{animation:xs-gal .26s ease-in-out infinite alternate-reverse;animation-delay:calc(var(--k) * -.13s)}
.xsled{animation:xs-bob 1.1s ease-in-out infinite alternate}
.xarm{transform-box:fill-box;transform-origin:100% 0;animation:xs-arm .9s ease-in-out infinite alternate}
@keyframes xs-bob{from{transform:translateY(-1.6px)}to{transform:translateY(1.6px)}}
@keyframes xs-gal{from{transform:rotate(-34deg)}to{transform:rotate(30deg)}}
@keyframes xs-arm{from{transform:rotate(-8deg)}to{transform:rotate(10deg)}}
@keyframes xs-nose{from{opacity:.55;transform:scale(.8)}to{opacity:1;transform:scale(1.15)}}
.xsn,.xsl{transition:opacity .6s ease}
.xgift{position:fixed;left:0;top:0;width:30px;height:30px;z-index:86;pointer-events:none;will-change:transform;
  filter:drop-shadow(0 0 6px rgba(245,197,24,.5)) drop-shadow(0 6px 6px rgba(0,0,0,.6))}
.xgift svg{display:block;width:100%;height:100%}
.xgift.open{transition:transform .35s cubic-bezier(.2,1.4,.4,1),opacity .35s ease;opacity:0}
.xsay{position:fixed;z-index:120;padding:8px 14px;border-radius:999px;pointer-events:none;white-space:nowrap;max-width:calc(100vw - 24px);
  background:#141414;border:1px solid rgba(245,197,24,.6);color:#FFE9A0;font:600 13px/1.2 var(--fb,system-ui);
  box-shadow:0 10px 30px -10px rgba(0,0,0,.9),0 0 22px -6px rgba(245,197,24,.65);
  transform:translate(-50%,-100%) scale(.6);opacity:0;animation:xs-say 2.6s var(--ease,ease) forwards}
@keyframes xs-say{10%{opacity:1;transform:translate(-50%,-130%) scale(1)}82%{opacity:1;transform:translate(-50%,-145%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-175%) scale(.92)}}
/* snow off / on: bottom left; on the phone bottom right, above the tab bar */
.xtg{position:fixed;left:16px;bottom:16px;z-index:87;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;padding:0;
  background:rgba(16,16,16,.9);border:1px solid rgba(245,197,24,.35);color:#F5C518;cursor:pointer;
  box-shadow:0 10px 24px -10px rgba(0,0,0,.9);transition:border-color .2s ease,transform .2s ease}
.xtg:hover{border-color:#F5C518;transform:rotate(30deg)}
.xtg:focus-visible{outline:2px solid #F5C518;outline-offset:3px}
.xtg svg{width:20px;height:20px}
.xtg .xtg-x{opacity:0;transition:opacity .2s ease}
.xtg.off{color:#8a8a8a}.xtg.off .xtg-x{opacity:1}
@media (max-width:1024px){.xtg{bottom:calc(84px + env(safe-area-inset-bottom));left:auto;right:12px;width:36px;height:36px}}
html.srch-open .xtg,html.reel-lock .xtg{visibility:hidden}

@media (prefers-reduced-motion:reduce){
  .xm-swing,.xm-bob,.xm-rib i,.xl .xg,.xl .xh{animation:none!important}
}
