/* season-halloween.css - the Halloween look, on while <html data-season="halloween"> (js/season.js).
   Keeps the Huadorr cream and ink; coral becomes pumpkin orange, with night purple as a second colour,
   a small witch hat on the logo, a thin orange and purple stripe under the top bar, and a few bats
   drifting across (drawn by season.js). Nothing covers content. Remove the <link> to drop it entirely. */

/* ---------- colours ---------- */
html[data-season="halloween"] {
  --acc: #F2771F; --acc-t: #B4520C; --tint: #FCE4D2;
  --hw: #6A42B0; --hw-soft: #ECE5F7;
}
html[data-season="halloween"][data-theme="dark"] {
  --acc: #FF8A3D; --acc-t: #FF9A55; --tint: #3A2620;
  --hw: #A586E8; --hw-soft: #241C36;
}
@media (prefers-color-scheme: dark) {
  html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) {
    --acc: #FF8A3D; --acc-t: #FF9A55; --tint: #3A2620;
    --hw: #A586E8; --hw-soft: #241C36;
  }
}

/* ---------- logo: a small witch hat on the U (header, sidebar and footer logos) ---------- */
html[data-season="halloween"] .brand b,
html[data-season="halloween"] .ft-logo b { position: relative; display: inline-block; }
html[data-season="halloween"] .brand b::before,
html[data-season="halloween"] .ft-logo b::before {
  content: ""; position: absolute; left: 50%; top: -.64em; width: 1em; height: .82em; transform: translateX(-46%) rotate(-8deg); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cpath d='M14 26 L21 3 C22 1 24 1 25 3 L26 6 L23 9 L28 26 Z' fill='%236A42B0'/%3E%3Crect x='14.5' y='21' width='13' height='3.5' fill='%23F2771F'/%3E%3Cellipse cx='21' cy='27' rx='19' ry='4.5' fill='%236A42B0'/%3E%3C/svg%3E");
}

/* ---------- top bar: thin orange / purple stripe, public pages only ---------- */
html[data-season="halloween"] .wrap:not(:has(#nav)) > header { position: relative; }
html[data-season="halloween"] .wrap:not(:has(#nav)) > header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; opacity: .9;
  background: repeating-linear-gradient(-45deg, var(--acc) 0 6px, transparent 6px 12px, var(--hw) 12px 18px, transparent 18px 24px);
}

/* ---------- menu: the selected item uses night purple ---------- */
html[data-season="halloween"] { --nav-on: var(--hw); }
@media (min-width: 900px) {
  html[data-season="halloween"] nav#nav button.on { box-shadow: inset 3px 0 0 var(--hw); }
}

/* ---------- home ---------- */
html[data-season="halloween"] .hm-sheet { border-top: 3px solid var(--hw); }
html[data-season="halloween"] .hm-steps li:first-child { border-top-color: var(--hw); }
html[data-season="halloween"] { --band-bg: #43296F; --band-fg: #FFFFFF; --band-sub: rgba(255, 255, 255, .74); }
html[data-season="halloween"][data-theme="dark"] { --band-bg: #2A1B46; --band-fg: #F6EFE4; --band-sub: rgba(246, 239, 228, .7); }
@media (prefers-color-scheme: dark) {
  html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) { --band-bg: #2A1B46; --band-fg: #F6EFE4; --band-sub: rgba(246, 239, 228, .7); }
}
/* a crescent moon and a few stars in the top-right corner of the band */
html[data-season="halloween"] #root .hm-band::before {
  content: ""; position: absolute; right: max(30px, calc(50vw - 560px)); top: 18px; width: 74px; height: 50px; pointer-events: none; opacity: .9;
  background: no-repeat right top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 50'%3E%3Cpath d='M58 4 A18 18 0 1 0 70 34 A14 14 0 1 1 58 4 Z' fill='%23FFD98A'/%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='8' cy='10' r='1.4'/%3E%3Ccircle cx='26' cy='30' r='1'/%3E%3Ccircle cx='38' cy='8' r='1.2'/%3E%3Ccircle cx='16' cy='42' r='.9'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 640px) { html[data-season="halloween"] #root .hm-band::before { width: 54px; height: 36px; right: 16px; top: 14px; } }

/* ---------- Discover scan, chat, Premium, announcement ---------- */
html[data-season="halloween"] .dsc-arc { background: conic-gradient(var(--hw) 0 28%, transparent 28% 100%); }
html[data-season="halloween"] .bub.me, html[data-season="halloween"] .m.me { background: var(--acc) !important; color: #1B1A2E !important; }
html[data-season="halloween"] .th-h { box-shadow: inset 0 -2px 0 var(--hw); }
html[data-season="halloween"] .pm-card.pm-reserve { border-color: var(--acc) !important; }
html[data-season="halloween"] .pm-rib { background: var(--hw) !important; color: #fff !important; }
html[data-season="halloween"] .ann.t-info { --ann: var(--hw); }

/* ---------- extra touches ---------- */
/* a spider on a thread, hanging from the top bar on the right of the headline */
html[data-season="halloween"] .hm-hero { position: relative; }
html[data-season="halloween"] .hm-hero::after {
  content: ""; position: absolute; right: 7%; top: -4px; width: 40px; height: 156px; pointer-events: none; transform-origin: 50% 0;
  background: no-repeat center top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%232A2340' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%232A2340'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%232A2340'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); animation: hwDangle 5s ease-in-out infinite;
}
html[data-season="halloween"][data-theme="dark"] .hm-hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) .hm-hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); }
}
@keyframes hwDangle { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(10px); } }
/* a cobweb in the top-right corner of the example panel */
html[data-season="halloween"] .hm-ladder { position: relative; }
html[data-season="halloween"] .hm-ladder::before {
  content: ""; position: absolute; right: 0; top: 0; width: 74px; height: 74px; pointer-events: none;
  background: no-repeat right top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.55'%3E%3Cpath d='M80 0 L0 0' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L8 30' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L26 58' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L52 76' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L80 80' stroke='%235B4A7A'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%235B4A7A'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-season="halloween"][data-theme="dark"] .hm-ladder::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.55'%3E%3Cpath d='M80 0 L0 0' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L8 30' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L26 58' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L52 76' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L80 80' stroke='%23B9A9E0'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%23B9A9E0'/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) .hm-ladder::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.55'%3E%3Cpath d='M80 0 L0 0' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L8 30' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L26 58' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L52 76' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L80 80' stroke='%23B9A9E0'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%23B9A9E0'/%3E%3C/g%3E%3C/svg%3E"); }
}
/* two carved pumpkins sitting on the bottom edge of the closing band */
html[data-season="halloween"] .hm-band { position: relative; }
html[data-season="halloween"] .hm-band::after {
  content: ""; position: absolute; bottom: 0; right: max(24px, calc(50vw - 590px)); width: 76px; height: 42px; pointer-events: none;
  background: no-repeat center bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 42'%3E%3Cg%3E%3Cellipse cx='22' cy='27' rx='19' ry='14' fill='%23F2771F'/%3E%3Cellipse cx='22' cy='27' rx='8' ry='14' fill='%23E0661A'/%3E%3Cpath d='M22 13 Q21 7 25 4' stroke='%232E7D4F' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M12 23 L16 19 L18 24 Z M32 23 L28 19 L26 24 Z' fill='%23331F12'/%3E%3Cpath d='M12 30 Q22 38 32 30 L29 31 L27 34 L25 31 L22 34 L19 31 L17 34 L15 31 Z' fill='%23331F12'/%3E%3C/g%3E%3Cg%3E%3Cellipse cx='58' cy='31' rx='14' ry='10' fill='%23F28A2E'/%3E%3Cellipse cx='58' cy='31' rx='6' ry='10' fill='%23E2731F'/%3E%3Cpath d='M58 21 Q58 16 61 14' stroke='%232E7D4F' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='53' cy='29' r='2' fill='%23331F12'/%3E%3Ccircle cx='63' cy='29' r='2' fill='%23331F12'/%3E%3Cpath d='M52 34 Q58 38 64 34' stroke='%23331F12' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
@media (max-width: 640px) {
  html[data-season="halloween"] .hm-hero::after { right: 2%; height: 74px; width: 22px; background-size: auto 100%; }
  html[data-season="halloween"] .hm-band::after { width: 58px; height: 32px; right: 18px; }
  html[data-season="halloween"] #root .hm-band { padding-top: 64px !important; padding-bottom: 64px !important; }
}
@media (prefers-reduced-motion: reduce) { html[data-season="halloween"] .hm-hero::after { animation: none; } }

/* ---------- inside the app (Discover, Like, chat, Premium, profile) ---------- */
/* orange / purple stripe along the top of every app page */
html[data-season="halloween"] .wrap:has(#nav) #view { position: relative; }
html[data-season="halloween"] .wrap:has(#nav) #view::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; z-index: 3; opacity: .9;
  background: repeating-linear-gradient(-45deg, var(--acc) 0 6px, transparent 6px 12px, var(--hw) 12px 18px, transparent 18px 24px);
}
/* computers: a spider hangs from it on the right, and pumpkins sit under the sidebar menu */
@media (min-width: 900px) {
  html[data-season="halloween"] .wrap:has(#nav) #view::after {
    content: ""; position: absolute; right: 26px; top: 0; width: 30px; height: 96px; pointer-events: none; z-index: 3; transform-origin: 50% 0;
    background: no-repeat center top / auto 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%232A2340' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%232A2340'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%232A2340'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); animation: hwDangle 5s ease-in-out infinite;
  }
  html[data-season="halloween"] nav#nav::after {
    content: ""; display: block; width: 76px; height: 42px; margin: 22px 0 0 18px; pointer-events: none;
    background: no-repeat left bottom / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 42'%3E%3Cg%3E%3Cellipse cx='22' cy='27' rx='19' ry='14' fill='%23F2771F'/%3E%3Cellipse cx='22' cy='27' rx='8' ry='14' fill='%23E0661A'/%3E%3Cpath d='M22 13 Q21 7 25 4' stroke='%232E7D4F' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M12 23 L16 19 L18 24 Z M32 23 L28 19 L26 24 Z' fill='%23331F12'/%3E%3Cpath d='M12 30 Q22 38 32 30 L29 31 L27 34 L25 31 L22 34 L19 31 L17 34 L15 31 Z' fill='%23331F12'/%3E%3C/g%3E%3Cg%3E%3Cellipse cx='58' cy='31' rx='14' ry='10' fill='%23F28A2E'/%3E%3Cellipse cx='58' cy='31' rx='6' ry='10' fill='%23E2731F'/%3E%3Cpath d='M58 21 Q58 16 61 14' stroke='%232E7D4F' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='53' cy='29' r='2' fill='%23331F12'/%3E%3Ccircle cx='63' cy='29' r='2' fill='%23331F12'/%3E%3Cpath d='M52 34 Q58 38 64 34' stroke='%23331F12' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  }
}
@media (min-width: 900px) {
html[data-season="halloween"][data-theme="dark"] .wrap:has(#nav) #view::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) .wrap:has(#nav) #view::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); } }
}
/* chat: a faint cobweb in the top corner of the conversation */
html[data-season="halloween"] .th-body { background-repeat: no-repeat; background-position: right top; background-size: 92px 92px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.5'%3E%3Cpath d='M80 0 L0 0' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L8 30' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L26 58' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L52 76' stroke='%235B4A7A'/%3E%3Cpath d='M80 0 L80 80' stroke='%235B4A7A'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%235B4A7A'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%235B4A7A'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-season="halloween"][data-theme="dark"] .th-body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.5'%3E%3Cpath d='M80 0 L0 0' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L8 30' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L26 58' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L52 76' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L80 80' stroke='%23B9A9E0'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%23B9A9E0'/%3E%3C/g%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) .th-body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg stroke-width='.9' opacity='.5'%3E%3Cpath d='M80 0 L0 0' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L8 30' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L26 58' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L52 76' stroke='%23B9A9E0'/%3E%3Cpath d='M80 0 L80 80' stroke='%23B9A9E0'/%3E%3Cpath d='M66 0 Q67 7 73 12 Q75 15 80 14' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M50 0 Q52 13 62 21 Q68 28 80 28' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M34 0 Q36 19 48 30 Q60 41 80 44' fill='none' stroke='%23B9A9E0'/%3E%3Cpath d='M18 0 Q20 27 36 42 Q54 58 80 62' fill='none' stroke='%23B9A9E0'/%3E%3C/g%3E%3C/svg%3E"); } }

@media (prefers-reduced-motion: reduce) { html[data-season="halloween"] .wrap:has(#nav) #view::after { animation: none; } }

/* computers: the top decoration always spans the whole content area (sidebar edge to screen edge),
   whatever width the page itself uses, and stays under the top bar while the page scrolls */
@media (min-width: 900px) {
  html[data-season="halloween"] .wrap:has(#nav) #view::before { position: fixed; top: 64px; left: 248px; right: 0; }
  html[data-season="halloween"] .wrap:has(#nav) #view::after { position: fixed; top: 64px; right: 26px; }
}

/* computers: the decoration hangs from the page body, not from the page area, because the page area
   slides in when you switch pages and anything attached to it would jump */
@media (min-width: 900px) {
  html[data-season="halloween"] .wrap:has(#nav) #view::before,
  html[data-season="halloween"] .wrap:has(#nav) #view::after { content: none !important; }
  html[data-season="halloween"] body:has(#nav):not(.adm-on)::before {
    content: ""; position: fixed; top: 64px; left: 248px; right: 0; height: 3px; pointer-events: none; z-index: 3; opacity: .9;
    background: repeating-linear-gradient(-45deg, var(--acc) 0 6px, transparent 6px 12px, var(--hw) 12px 18px, transparent 18px 24px);
  }
  html[data-season="halloween"] body:has(#nav):not(.adm-on)::after {
    content: ""; position: fixed; top: 64px; right: 26px; width: 30px; height: 96px; pointer-events: none; z-index: 3;
    transform-origin: 50% 0; animation: hwDangle 5s ease-in-out infinite;
    background: no-repeat center top / auto 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%232A2340' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%232A2340' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%232A2340'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%232A2340'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E");
  }
  html[data-season="halloween"][data-theme="dark"] body:has(#nav):not(.adm-on)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) {
  html[data-season="halloween"]:not([data-theme="light"]):not([data-theme="dark"]) body:has(#nav):not(.adm-on)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 156'%3E%3Cline x1='20' y1='0' x2='20' y2='122' stroke='%23C9BDEA' stroke-width='1' opacity='.7'/%3E%3Cpath d='M17 128 Q8 120 4 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 131 Q7 129 3 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M17 134 Q8 138 5 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M18 137 Q12 145 11 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 128 Q32 120 36 126' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 131 Q33 129 37 136' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M23 134 Q32 138 35 145' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M22 137 Q28 145 29 151' fill='none' stroke='%23C9BDEA' stroke-width='1.6' stroke-linecap='round'/%3E%3Cellipse cx='20' cy='134' rx='6.5' ry='7.5' fill='%23C9BDEA'/%3E%3Ccircle cx='20' cy='124.5' r='4' fill='%23C9BDEA'/%3E%3Ccircle cx='18.4' cy='124' r='.9' fill='%23FFB347'/%3E%3Ccircle cx='21.6' cy='124' r='.9' fill='%23FFB347'/%3E%3C/svg%3E"); }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) {
  html[data-season="halloween"] body::after { animation: none !important; }
}
