/* 🎃 Halloween — laid over style.css only while the season is on
   (main.season_theme, set on /admin › ธีมเทศกาล). Everything here is scoped
   to [data-season="halloween"], so the file can never leak into the normal
   look. Content stays on light cards: the night colours dress the frame
   (bar, headers, buttons), never the text people work with. */

:root[data-season="halloween"] {
  --t-900: #1E0B36;
  --t-800: #3A1666;
  --t-700: #52208E;
  --t-600: #6A2BB5;          /* the one strong colour: witch purple */
  --t-500: #8E4FD8;
  --mint:  #FF9A3C;          /* gradients now end in pumpkin */
  --t-100: #E9DBF9;
  --t-50:  #F5EEFD;
  --glow:  rgba(142, 79, 216, .25);
  --amber: #EE6A12;
  --amber-d: #9A3F00;
  --amber-l: #FFF0E3;
  --ink: #241433;
  --ink-2: #5A4A6B;
  --ink-3: #8B7C9B;
  --bg: #F3EEF8;
  --line: #E6DDF0;
  --line-2: #D4C6E3;
  --sh-btn: 0 6px 16px -8px rgba(74, 26, 130, .85);
  --pumpkin: #F7882F;
}

/* ── the frame ───────────────────────────────────────────────────────── */
[data-season="halloween"] .appbar {
  background:
    radial-gradient(160px 70px at 96% 0%, rgba(255, 154, 60, .55), transparent 70%),
    linear-gradient(118deg, #12051F, #3A1666 52%, #6A2BB5 82%, #B04A2A);
  box-shadow: 0 2px 16px -6px rgba(30, 8, 54, .85);
}
[data-season="halloween"] .appbar-brand .brand-name::after { content: " 🎃"; }
/* the moon rides in the empty middle of the bar, where nothing is written */
[data-season="halloween"] .appbar::before { content: ""; position: absolute; left: 58%; top: 9px;
  width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 38% 40%, #FFF9E6 0 55%, #F5DF9E 100%);
  box-shadow: 0 0 22px 6px rgba(255, 226, 150, .35); }
[data-season="halloween"] .usermenu-avatar { background: var(--pumpkin); color: #2A0E05; }
.season-chip { display: none; }
@media (min-width: 900px) {
  [data-season="halloween"] .season-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px;
    padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #FFE7CC;
    background: rgba(255, 154, 60, .18); box-shadow: inset 0 0 0 1px rgba(255, 154, 60, .45); }
}

/* a web hangs in the corner of the page, behind everything */
[data-season="halloween"] .layout {
  background: url('/static/season/web.svg') right 0 top 0 / 220px no-repeat;
}
@media (min-width: 900px) {
  [data-season="halloween"] .layout {
    background: url('/static/season/web.svg') right 0 top 0 / 260px no-repeat;
  }
}

/* the dark page headers become a night sky with a moon */
[data-season="halloween"] .kx-hero {
  background:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 22%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 78% 64%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(130% 150% at 100% 0%, #6A2BB5 0%, #3A1666 38%, #12051F 100%);
  box-shadow: 0 22px 44px -26px rgba(30, 8, 54, .95);
}
[data-season="halloween"] .kx-hero::before {     /* a pumpkin glow low in the corner, under nothing */
  width: 260px; height: 260px; right: -110px; top: auto; bottom: -170px;
  background: radial-gradient(circle, rgba(255, 140, 50, .28), transparent 65%);
}
[data-season="halloween"] .kx-hero::after { background: rgba(255, 154, 60, .08); }
[data-season="halloween"] .kx-stat-main { background: linear-gradient(150deg, #FF9A3C, #D9530F); }

/* buttons keep the purple (white text reads on it); pumpkin is for accents */
[data-season="halloween"] .btn-ghost:hover { border-color: var(--pumpkin); }
[data-season="halloween"] .tabbar a.on .ico,
[data-season="halloween"] .sidenav a.on .ico { filter: drop-shadow(0 0 6px rgba(255, 154, 60, .8)); }
[data-season="halloween"] .sidenav a.on::before { background: var(--pumpkin); }
[data-season="halloween"] .badge { background: var(--amber); }
[data-season="halloween"] .devtag { background: var(--pumpkin); color: #2A0E05; }

/* ── the sign-in page: a living night over a graveyard ────────────────
   The scene (_season_halloween_login.html) is a fixed layer behind the card;
   the card drops in on two spider threads and settles. */
[data-season="halloween"] body.signin-page { background: #0D0418; }
[data-season="halloween"] .signin { position: relative; z-index: 2; background: none; padding-bottom: 170px; }
.lg-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 112%, rgba(238, 106, 18, .38), transparent 65%),
    radial-gradient(700px 400px at 82% 12%, rgba(120, 70, 200, .35), transparent 70%),
    linear-gradient(180deg, #0B0315, #22093F 55%, #3A1666); }
.lg-flash { position: absolute; inset: 0; background: #D9CCFF; opacity: 0; animation: lg-flash 13s 4s infinite; }
@keyframes lg-flash { 0%, 90%, 100% { opacity: 0; } 91% { opacity: .22; } 92% { opacity: .02; } 93.5% { opacity: .3; } 96% { opacity: 0; } }

.lg-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .8); animation: lg-twinkle 3.2s var(--d) ease-in-out infinite; }
@keyframes lg-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.lg-shoot { position: absolute; top: 10%; left: 18%; width: 140px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); rotate: 18deg;
  animation: lg-shoot 9s 2.5s ease-in infinite; }
.lg-shoot-2 { top: 26%; left: 52%; width: 100px; animation-delay: 7s; animation-duration: 11s; }
@keyframes lg-shoot { 0% { opacity: 0; translate: 0 0; } 2% { opacity: 1; } 9% { opacity: 0; translate: 380px 125px; } 100% { opacity: 0; translate: 380px 125px; } }

.lg-moon { position: absolute; top: 9%; right: 13%; width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFFBEA 0 40%, #F8E7B2 75%, #EFD38A);
  box-shadow: 0 0 60px 18px rgba(255, 226, 150, .35), 0 0 160px 50px rgba(255, 190, 110, .14);
  animation: lg-moon 6s ease-in-out infinite alternate, lg-rise 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.lg-crater { position: absolute; left: 26%; top: 52%; width: 16px; height: 16px; border-radius: 50%; background: rgba(214, 186, 120, .45); }
.lg-crater.c2 { left: 58%; top: 28%; width: 11px; height: 11px; }
.lg-crater.c3 { left: 60%; top: 62%; width: 8px; height: 8px; }
@keyframes lg-moon { to { box-shadow: 0 0 80px 26px rgba(255, 226, 150, .45), 0 0 200px 70px rgba(255, 190, 110, .18); } }
@keyframes lg-rise { from { transform: translateY(60px); opacity: 0; } }
.lg-cloud { position: absolute; top: 15%; right: -30%; width: 260px; height: 46px; border-radius: 50px; opacity: .55;
  background: radial-gradient(60px 34px at 30% 40%, #4B2A73, transparent 70%), radial-gradient(90px 40px at 60% 60%, #3A1F5C, transparent 72%);
  filter: blur(2px); animation: lg-drift 38s linear infinite; }
.lg-cloud-2 { top: 22%; width: 200px; opacity: .4; animation-duration: 52s; animation-delay: -20s; }
@keyframes lg-drift { from { transform: translateX(0); } to { transform: translateX(-160vw); } }

/* the swarm: out of the moon, scattering left and down, once */
.lg-swarm { position: absolute; top: calc(9% + 40px); right: calc(13% + 40px); width: 0; height: 0; }
.lg-bat { position: absolute; width: var(--sz, 26px); color: #120520; opacity: 0;
  animation: lg-burst 2.6s calc(1.1s + var(--d)) cubic-bezier(.25, .7, .3, 1) forwards; }
.lg-bat svg { display: block; width: 100%; fill: currentColor; animation: hw-flap .18s ease-in-out infinite alternate; }
@keyframes lg-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.2); }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.4); }
}
.lg-orbit { position: absolute; left: -10px; top: -10px; width: 0; height: 0; animation: lg-orbit 7s linear infinite; }
.lg-orbit-2 { animation-duration: 10s; animation-direction: reverse; animation-delay: -3s; }
.lg-bat-o { --sz: 20px; left: 92px; opacity: 1; animation: none; }
.lg-orbit-2 .lg-bat-o { left: 120px; --sz: 15px; }
@keyframes lg-orbit { to { transform: rotate(360deg); } }

.lg-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; }
.lg-face { fill: #FFE27A; filter: drop-shadow(0 0 3px #FFB347); animation: lg-candle 1.8s var(--d) ease-in-out infinite; }
@keyframes lg-candle { 0%, 100% { opacity: 1; } 20% { opacity: .65; } 35% { opacity: .95; } 55% { opacity: .55; } 70% { opacity: .9; } }
.lg-eyes { fill: #F5FF7A; filter: drop-shadow(0 0 3px #DFFF4F); transform-box: fill-box; transform-origin: center;
  animation: lg-blink 4.5s ease-in-out infinite; }
.lg-eyes.e2 { fill: #FF6A4A; filter: drop-shadow(0 0 3px #FF3B1F); animation-delay: 2s; animation-duration: 6s; }
@keyframes lg-blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } 70% { opacity: 1; } 78%, 88% { opacity: 0; } }
.lg-fog { position: absolute; left: -50%; right: -50%; bottom: 20px; height: 140px; opacity: .55;
  background: radial-gradient(240px 60px at 20% 60%, rgba(210, 190, 240, .35), transparent 70%),
              radial-gradient(300px 70px at 55% 50%, rgba(200, 180, 235, .3), transparent 70%),
              radial-gradient(260px 60px at 85% 65%, rgba(210, 190, 240, .32), transparent 70%);
  animation: lg-fog 26s ease-in-out infinite alternate; filter: blur(6px); }
.lg-fog-2 { bottom: -10px; opacity: .45; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes lg-fog { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

/* a phone: the card fills the width, so it hangs lower and leaves the moon
   (smaller, in the corner) in sight above it */
@media (max-width: 560px) {
  [data-season="halloween"] .signin { justify-content: flex-start; padding-top: 112px; }
  .lg-moon { top: 18px; right: 8%; width: 74px; height: 74px; }
  .lg-swarm { top: 54px; right: calc(8% + 36px); }
  .lg-bat-o { left: 62px; }
  .lg-orbit-2 .lg-bat-o { left: 82px; }
}

/* the card: dropped on two threads, swings, settles */
[data-season="halloween"] .signin-card { position: relative;
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 154, 60, .3), 0 0 46px -10px rgba(255, 140, 50, .35);
  animation: lg-drop 1.5s cubic-bezier(.3, 1.3, .5, 1) .25s backwards; }
[data-season="halloween"] .signin-card::before, [data-season="halloween"] .signin-card::after {
  content: ""; position: absolute; bottom: 100%; width: 1px; height: 100vh; left: 22%;
  background: linear-gradient(rgba(220, 210, 255, 0), rgba(220, 210, 255, .55)); }
[data-season="halloween"] .signin-card::after { left: auto; right: 22%; }
@keyframes lg-drop {
  0% { transform: translateY(-110vh) rotate(-6deg); }
  55% { transform: translateY(14px) rotate(3deg); }
  75% { transform: translateY(-6px) rotate(-1.5deg); }
  100% { transform: none; }
}
.lg-spider { position: absolute; right: calc(22% - 11px); top: 0; z-index: 3; width: 22px; height: 0; pointer-events: none;
  animation: lg-spider-down 2.2s 1.7s cubic-bezier(.3, .9, .4, 1) backwards; }
.lg-spider b { position: absolute; top: -14px; left: 0; font-size: 22px; line-height: 1; filter: grayscale(1) brightness(.25);
  animation: lg-spider-wiggle 2.8s 4s ease-in-out infinite; }
@keyframes lg-spider-down { from { transform: translateY(-100vh); } }
@keyframes lg-spider-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } }

[data-season="halloween"] .signin-logo { animation: lg-glow 2.6s ease-in-out infinite alternate; }
@keyframes lg-glow { from { box-shadow: 0 16px 30px -14px rgba(74, 26, 130, .95), 0 0 0 0 rgba(255, 140, 50, 0); }
  to { box-shadow: 0 16px 30px -14px rgba(74, 26, 130, .95), 0 0 0 7px rgba(255, 140, 50, .22), 0 0 34px 6px rgba(255, 140, 50, .4); } }
[data-season="halloween"] .signin-card h1 span { color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 140, 50, .55); animation: lg-neon 4s 2s infinite; }
@keyframes lg-neon { 0%, 18%, 22%, 26%, 100% { opacity: 1; } 20%, 24% { opacity: .35; text-shadow: none; } }
[data-season="halloween"] .signin-card input:focus { border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 140, 50, .22), 0 0 18px -4px rgba(255, 140, 50, .6); }
[data-season="halloween"] .signin-card .btn { position: relative; overflow: hidden;
  background: linear-gradient(180deg, #7A33C9, #52208E); transition: transform .15s, box-shadow .2s; }
[data-season="halloween"] .signin-card .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 200, 140, .45), transparent); transform: skewX(-20deg);
  animation: lg-sheen 3.6s 2.6s ease-in-out infinite; }
@keyframes lg-sheen { 0% { left: -60%; } 35%, 100% { left: 130%; } }
[data-season="halloween"] .signin-card .btn:hover { transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(255, 120, 40, .75); }
.lg-spin { display: inline-block; animation: lg-spin .9s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
[data-season="halloween"] .season-hello { animation: lg-bob 2.4s ease-in-out infinite alternate; }
@keyframes lg-bob { to { transform: translateY(-3px); } }
[data-season="halloween"] .signin-foot { position: relative; color: rgba(255, 230, 200, .85); text-shadow: 0 1px 6px #0B0315, 0 0 2px #0B0315; }

.season-hello { display: none; }
[data-season="halloween"] .season-hello { display: block; margin: -2px auto 16px; width: fit-content;
  padding: 5px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700;
  color: #8A3A00; background: #FFF0E3; box-shadow: inset 0 0 0 1px #FFD2AE; }

/* ── what moves: bats crossing now and then, a spider on its thread ──── */
.hw-fx { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.hw-bat { position: absolute; left: 0; top: var(--top); width: var(--size); color: #1B0A2E;
  opacity: 0; animation: hw-fly var(--dur) linear var(--delay) 2 both; }
.hw-bat svg { display: block; width: 100%; height: auto; fill: currentColor;
  animation: hw-flap .22s ease-in-out infinite alternate; transform-origin: 50% 40%; }
.hw-bat.rtl { animation-name: hw-fly-back; }
@keyframes hw-fly {
  0%   { opacity: 0; transform: translate(-8vw, 0) rotate(4deg); }
  6%   { opacity: .9; }
  25%  { transform: translate(22vw, -18px) rotate(-6deg); }
  50%  { transform: translate(50vw, 14px) rotate(5deg); }
  75%  { transform: translate(78vw, -12px) rotate(-4deg); }
  94%  { opacity: .9; }
  100% { opacity: 0; transform: translate(108vw, 6px) rotate(3deg); }
}
@keyframes hw-fly-back {
  0%   { opacity: 0; transform: translate(108vw, 0) scaleX(-1); }
  6%   { opacity: .85; }
  33%  { transform: translate(70vw, 16px) scaleX(-1); }
  66%  { transform: translate(34vw, -14px) scaleX(-1); }
  94%  { opacity: .85; }
  100% { opacity: 0; transform: translate(-8vw, 4px) scaleX(-1); }
}
@keyframes hw-flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

.hw-spider { position: fixed; top: 56px; left: 214px; z-index: 39; width: 2px; pointer-events: none;
  display: none; transform-origin: top center; animation: hw-dangle 5s ease-in-out infinite alternate; }
.hw-spider::before { content: ""; display: block; width: 1px; height: 70px; margin: 0 auto;
  background: linear-gradient(rgba(60, 30, 90, .15), rgba(60, 30, 90, .55)); animation: hw-drop 7s ease-in-out infinite alternate; }
.hw-spider span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 22px; line-height: 1; margin-top: -4px;
  filter: grayscale(1) brightness(.35); }
@keyframes hw-dangle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes hw-drop { from { height: 46px; } to { height: 96px; } }
/* it hangs over the blank right side of the side menu, so it is only there
   while the menu is (wide screen, menu not folded) */
@media (min-width: 900px) { .hw-spider { display: block; } .nav-collapsed .hw-spider { display: none; } }

/* ── tricks on every page (static/season/halloween.js) ───────────────── */

/* the page's blocks rise in one after another. `backwards` only: once
   done they carry no transform, so sticky bars and fixed layers inside
   behave as always */
[data-season="halloween"] .page > * { animation: hw-rise .55s cubic-bezier(.2, .8, .3, 1) backwards; }
[data-season="halloween"] .page > :nth-child(2) { animation-delay: .06s; }
[data-season="halloween"] .page > :nth-child(3) { animation-delay: .12s; }
[data-season="halloween"] .page > :nth-child(4) { animation-delay: .18s; }
[data-season="halloween"] .page > :nth-child(5) { animation-delay: .24s; }
[data-season="halloween"] .page > :nth-child(n+6) { animation-delay: .3s; }
@keyframes hw-rise { from { opacity: 0; transform: translateY(14px); } }

/* small lights */
[data-season="halloween"] .kx-ico, [data-season="halloween"] .pagehead-ico {
  animation: hw-candle 2.4s ease-in-out infinite; }
@keyframes hw-candle {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 14px -2px rgba(255, 140, 50, .45); }
  30% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 6px -2px rgba(255, 140, 50, .25); }
  60% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 20px 0 rgba(255, 140, 50, .55); } }
[data-season="halloween"] .kx-hero h1 { text-shadow: 0 0 18px rgba(181, 123, 255, .55); }
[data-season="halloween"] .badge { animation: hw-pulse 2s ease-in-out infinite; }
@keyframes hw-pulse { 50% { box-shadow: 0 0 0 4px rgba(238, 106, 18, .22); } }
[data-season="halloween"] .empty .ico { animation: hw-float 3s ease-in-out infinite alternate; }
@keyframes hw-float { to { transform: translateY(-6px) rotate(-4deg); } }
[data-season="halloween"] .appbar-brand:hover .brand-name::after { display: inline-block; animation: hw-wobble .6s ease-in-out; }
@keyframes hw-wobble { 25% { transform: rotate(-16deg) scale(1.2); } 60% { transform: rotate(12deg); } }
@media (hover: hover) {
  [data-season="halloween"] .card { transition: box-shadow .25s, border-color .25s; }
  [data-season="halloween"] .card:hover { border-color: #E9CFF7;
    box-shadow: 0 1px 2px rgba(30, 8, 54, .05), 0 14px 30px -18px rgba(106, 43, 181, .55), 0 0 0 1px rgba(255, 154, 60, .12); }
}

/* embers behind the mouse */
.hw-spark { position: fixed; z-index: 70; width: var(--sz); height: var(--sz); margin: -2px 0 0 -2px; border-radius: 50%;
  pointer-events: none; background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  animation: hw-spark .8s ease-out forwards; }
@keyframes hw-spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* the burst where a button is pressed */
.hw-pop { position: fixed; z-index: 70; font-size: 17px; line-height: 1; font-style: normal; pointer-events: none;
  translate: -50% -50%; animation: hw-pop .8s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes hw-pop {
  0% { opacity: 1; transform: translate(0, 0) scale(.3) rotate(0); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(var(--r)); } }

/* a swarm crossing the screen */
.hw-swarm { position: fixed; left: 0; z-index: 69; width: var(--sz); color: #1B0A2E; pointer-events: none; opacity: 0;
  animation: hw-swarm var(--t) var(--d) cubic-bezier(.4, .1, .6, .9) forwards; }
.hw-swarm svg { display: block; width: 100%; fill: currentColor; animation: hw-flap .16s ease-in-out infinite alternate; }
.hw-swarm.rtl { animation-name: hw-swarm-back; }
@keyframes hw-swarm { 0% { opacity: 1; transform: translate(-10vw, 0); } 50% { transform: translate(50vw, var(--wob)); }
  100% { opacity: 1; transform: translate(110vw, 0); } }
@keyframes hw-swarm-back { 0% { opacity: 1; transform: translate(110vw, 0) scaleX(-1); } 50% { transform: translate(50vw, var(--wob)) scaleX(-1); }
  100% { opacity: 1; transform: translate(-10vw, 0) scaleX(-1); } }

/* the ghost that peeks in from the corner */
.hw-ghost { position: fixed; right: 10px; bottom: calc(var(--bar-h) + 20px + env(safe-area-inset-bottom)); z-index: 44;
  width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(130%) rotate(20deg); opacity: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
@media (min-width: 900px) { .hw-ghost { bottom: 26px; right: 22px; } }
.hw-ghost.on { transform: translateX(0) rotate(-8deg); opacity: 1; pointer-events: auto; }
.hw-ghost-body { display: block; font-size: 46px; line-height: 64px; filter: drop-shadow(0 6px 10px rgba(60, 20, 110, .45));
  animation: hw-haunt 2.2s ease-in-out infinite alternate; }
@keyframes hw-haunt { from { transform: translateY(3px); } to { transform: translateY(-7px) rotate(4deg); } }
.hw-ghost-say { position: absolute; right: 58px; top: -6px; padding: 4px 10px; border-radius: 12px 12px 2px 12px;
  background: #fff; color: #52208E; font: 800 .82rem/1.2 'Prompt', sans-serif; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(60, 20, 110, .6); opacity: 0; transform: scale(.6); transform-origin: bottom right;
  transition: opacity .2s .5s, transform .3s .5s cubic-bezier(.3, 1.6, .5, 1); }
.hw-ghost.on .hw-ghost-say { opacity: 1; transform: scale(1); }
.hw-ghost.boo { transform: translate(40px, -60vh) rotate(30deg) scale(.6); opacity: 0;
  transition: transform .9s cubic-bezier(.5, 0, .7, .4), opacity .9s; }
.hw-ghost.boo .hw-ghost-say { opacity: 0; }

/* a person who asked their device for stillness gets the colours, not the motion */
@media (prefers-reduced-motion: reduce) {
  [data-season="halloween"] *, [data-season="halloween"] *::before, [data-season="halloween"] *::after {
    animation: none !important; transition: none !important; }
  .hw-bat, .lg-bat, .lg-shoot, .lg-flash { display: none; }
  .lg-moon { opacity: 1; }
}
@media print { .hw-fx, .hw-spider { display: none; } }
