/* Halloween 2026 reskin. Every rule is gated by server-authorized body state. */
body.is-halloween-theme {
  --halloween-bg: #120914;
  --halloween-bg-deep: #09060c;
  --halloween-surface: #211528;
  --halloween-surface-soft: #2c1a35;
  --halloween-orange: #ff8a00;
  --halloween-orange-soft: #ffb347;
  --halloween-purple: #8f3fff;
  --halloween-purple-soft: #be78ff;
  --halloween-green: #75ff57;
  --halloween-green-soft: #3affac;
  --halloween-red: #ff4655;
  --halloween-ink: #fff4e7;
  --halloween-muted: #c5afc0;
  --halloween-line: rgba(255, 138, 0, .2);
  --bg: var(--halloween-bg);
  --surface: var(--halloween-surface);
  --surface-soft: var(--halloween-surface-soft);
  --ink: var(--halloween-ink);
  --muted: var(--halloween-muted);
  --line: #503550;
  --accent: #f18a28;
  --accent-strong: #ffc06b;
  --button-bg: #62323d;
  --featured-border: #89535d;
  --featured-glow-start: rgba(255, 138, 0, .22);
  --featured-glow-end: rgba(143, 63, 255, .2);
  --search-fade: rgba(18, 9, 20, 0);
  --shadow: 0 16px 40px rgba(6, 2, 10, .36);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 138, 0, .12), transparent 25%),
    radial-gradient(circle at 92% 18%, rgba(143, 63, 255, .16), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(117, 255, 87, .045), transparent 30%),
    var(--bg);
}

body.is-halloween-theme[data-theme="light"] {
  --halloween-bg: #f3e6cf;
  --halloween-bg-deep: #e7d3b4;
  --halloween-surface: #fff4df;
  --halloween-surface-soft: #ead7ba;
  --halloween-orange: #b7580b;
  --halloween-orange-soft: #874009;
  --halloween-purple: #74369b;
  --halloween-purple-soft: #5c2c7c;
  --halloween-green: #2e7046;
  --halloween-green-soft: #1e7652;
  --halloween-red: #a63842;
  --halloween-ink: #281827;
  --halloween-muted: #695467;
  --halloween-line: rgba(104, 52, 25, .22);
  --bg: var(--halloween-bg);
  --surface: var(--halloween-surface);
  --surface-soft: var(--halloween-surface-soft);
  --ink: var(--halloween-ink);
  --muted: var(--halloween-muted);
  --line: #c8ad94;
  --accent: #aa4e0b;
  --accent-strong: #683187;
  --button-bg: #e8c9a3;
  --featured-border: #ad7f75;
  --featured-glow-start: rgba(183, 88, 11, .14);
  --featured-glow-end: rgba(116, 54, 155, .12);
  --search-fade: rgba(243, 230, 207, 0);
  --shadow: 0 10px 28px rgba(77, 45, 38, .12);
  background:
    radial-gradient(circle at 8% 12%, rgba(183, 88, 11, .11), transparent 27%),
    radial-gradient(circle at 92% 18%, rgba(116, 54, 155, .095), transparent 30%),
    var(--bg);
}

body.is-halloween-theme .topbar {
  position: relative;
  border-bottom: 1px solid var(--halloween-line);
  background: linear-gradient(90deg, rgba(255, 138, 0, .055), transparent 42%, rgba(143, 63, 255, .08));
}
body.is-halloween-theme .topbar::after {
  content: "";
  position: absolute;
  top: -13px;
  right: -14px;
  width: 75px;
  height: 75px;
  background: url("./assets/halloween/decor/cobweb.svg") no-repeat top right / contain;
  opacity: .14;
  pointer-events: none;
}
body.is-halloween-theme .brand-logo {
  border: 1px solid color-mix(in srgb, var(--halloween-purple) 60%, var(--halloween-orange));
  box-shadow: 0 0 14px rgba(255, 138, 0, .25), 0 0 3px var(--halloween-green-soft);
}
body.is-halloween-theme .topbar-brand h1 { text-shadow: 0 0 18px rgba(143, 63, 255, .26); }
body.is-halloween-theme .topbar-brand .eyebrow::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -3px;
  background: url("./assets/halloween/decor/pumpkin.svg") no-repeat center / contain;
  opacity: .7;
  pointer-events: none;
}
body.is-halloween-theme .menu-button,
body.is-halloween-theme .theme-button,
body.is-halloween-theme .wallet-button {
  border-color: var(--halloween-line);
  background: color-mix(in srgb, var(--surface) 86%, var(--halloween-purple) 14%);
  box-shadow: 0 5px 16px rgba(26, 6, 30, .2);
}

body.is-halloween-theme .search-box {
  border-color: color-mix(in srgb, var(--halloween-purple) 50%, var(--halloween-line));
  background: color-mix(in srgb, var(--surface) 88%, var(--halloween-purple) 12%);
  box-shadow: 0 7px 20px rgba(25, 5, 32, .18);
}
body.is-halloween-theme .search-box:focus-within {
  border-color: var(--halloween-orange);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--halloween-green) 30%, transparent);
}
body.is-halloween-theme .category-button {
  border-color: color-mix(in srgb, var(--halloween-purple) 32%, var(--line));
  background: color-mix(in srgb, var(--surface) 85%, var(--halloween-purple) 15%);
}
body.is-halloween-theme .category-button.is-active {
  border-color: color-mix(in srgb, var(--halloween-orange) 75%, var(--halloween-purple));
  background: linear-gradient(125deg, rgba(255, 138, 0, .3), rgba(143, 63, 255, .22));
  color: var(--ink);
}
body.is-halloween-theme .category-button:focus-visible,
body.is-halloween-theme .side-menu-link:focus-visible,
body.is-halloween-theme .app-row:focus-visible { outline: 2px solid var(--halloween-green); outline-offset: 2px; }

body.is-halloween-theme .featured-band:not(.is-halloween-message) {
  height: 184px;
  min-height: 184px;
  max-height: none;
  border-color: var(--halloween-orange);
  box-shadow: 0 12px 30px rgba(12, 4, 19, .32), 0 0 18px rgba(143, 63, 255, .16);
}
body.is-halloween-theme .featured-band:not(.is-halloween-message)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("./assets/halloween/decor/cobweb.svg"), url("./assets/halloween/decor/pumpkin.svg");
  background-repeat: no-repeat;
  background-size: 90px 90px, 31px 31px;
  background-position: left top, right 8px bottom 6px;
  opacity: .21;
  pointer-events: none;
}
body.is-halloween-theme .featured-band:not(.is-halloween-message)::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 5px;
  z-index: 2;
  width: clamp(112px, 33%, 164px);
  height: 174px;
  background: url("./assets/halloween/malicious-block-producer.webp") no-repeat right bottom / contain;
  opacity: .96;
  filter: drop-shadow(0 0 12px rgba(158, 54, 255, .75));
  pointer-events: none;
}
body.is-halloween-theme .featured-slide {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 9px;
  padding-right: clamp(119px, 36%, 180px);
  box-shadow: inset 0 0 45px rgba(68, 13, 81, .31);
}
body.is-halloween-theme .featured-button { justify-self: start; margin-left: 0; }
body.is-halloween-theme .featured-button {
  border: 1px solid rgba(255, 179, 71, .52);
  background: linear-gradient(130deg, #8d3a13, #562276);
  color: #fff8ed;
}
body.is-halloween-theme[data-theme="light"] .featured-button { background: linear-gradient(130deg, #9b430e, #663083); }

body.is-halloween-theme .app-row {
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 91%, var(--halloween-purple) 9%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--halloween-purple) 13%, transparent);
}
body.is-halloween-theme .app-row:hover {
  background: color-mix(in srgb, var(--surface) 85%, var(--halloween-orange) 15%);
  box-shadow: inset 0 0 0 1px var(--halloween-line);
}
body.is-halloween-theme .app-section .section-title { position: relative; }
body.is-halloween-theme .app-section:not(.mining-groups-section) .section-title-button {
  color: var(--halloween-orange-soft);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 0 12px rgba(255, 119, 21, .32);
}
body.is-halloween-theme .app-section:not(.mining-groups-section) .section-title-button span { color: inherit; }
body.is-halloween-theme .app-section:nth-of-type(3n) .section-title::after {
  content: "";
  position: absolute;
  right: 8px;
  top: -4px;
  width: 29px;
  height: 29px;
  background: url("./assets/halloween/decor/ghost.svg") no-repeat center / contain;
  opacity: .19;
  pointer-events: none;
}
body.is-halloween-theme .section-title-button:hover { color: var(--halloween-orange-soft); }

body.is-halloween-theme .side-menu {
  border-left-color: var(--halloween-orange);
  background: radial-gradient(circle at 100% 8%, rgba(143, 63, 255, .2), transparent 34%), var(--surface);
  box-shadow: -20px 0 48px rgba(12, 3, 18, .45);
  overflow-y: auto;
}
body.is-halloween-theme .side-menu::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 115px;
  height: 115px;
  background: url("./assets/halloween/decor/cobweb.svg") no-repeat top right / contain;
  opacity: .18;
  pointer-events: none;
}
body.is-halloween-theme .side-menu-header {
  isolation: isolate;
  position: relative;
  min-height: 147px;
  padding: 12px;
  border: 1px solid rgba(255, 143, 41, .55);
  border-radius: 14px;
  background: radial-gradient(circle at 90% 45%, #32411b, transparent 38%), linear-gradient(125deg, #160e24, #291630);
  overflow: hidden;
}
body.is-halloween-theme .side-menu-header::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: -8px;
  z-index: 0;
  width: 112px;
  height: 137px;
  background: url("./assets/halloween/block-keeper.webp") no-repeat right bottom / contain;
  opacity: .98;
  filter: drop-shadow(0 0 10px rgba(145, 255, 83, .65));
  pointer-events: none;
}
body.is-halloween-theme .side-menu-header > * { position: relative; z-index: 1; }
body.is-halloween-theme .side-menu-header .eyebrow,
body.is-halloween-theme .side-menu-header h2 { color: #fff1de; }
body.is-halloween-theme .side-menu > * { position: relative; z-index: 1; }
body.is-halloween-theme .side-menu-link { border-color: var(--halloween-line); }
body.is-halloween-theme .side-menu-link:hover { border-color: var(--halloween-purple-soft); }
body.is-halloween-theme .halloween-menu-link { color: var(--halloween-orange-soft); }

body.is-halloween-theme .ranking-intro {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 158px;
  padding: 17px clamp(112px, 30%, 190px) 17px 15px;
  border: 1px solid rgba(255, 146, 43, .62);
  border-radius: 15px;
  background: radial-gradient(circle at 85% 50%, #24431d, transparent 34%), linear-gradient(120deg, #171127, #271436);
  box-shadow: 0 9px 26px rgba(9, 2, 20, .3);
  overflow: hidden;
}
body.is-halloween-theme .ranking-intro::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: -10px;
  width: clamp(103px, 30%, 165px);
  height: 159px;
  background: url("./assets/halloween/good-block-producer.webp") no-repeat right bottom / contain;
  opacity: .98;
  filter: drop-shadow(0 0 11px rgba(127, 250, 85, .56));
  pointer-events: none;
}
body.is-halloween-theme .ranking-intro h2 { color: #fff5e8; }
body.is-halloween-theme .ranking-intro p,
body.is-halloween-theme .ranking-intro > strong small { color: #e1d7dc; }
body.is-halloween-theme .ranking-intro > strong { color: #b7ff8a; text-align: left; font-size: 18px; }
body.is-halloween-theme .ranking-list-shell {
  border-color: var(--halloween-line);
  box-shadow: 0 9px 25px rgba(26, 6, 35, .12);
}
body.is-halloween-theme .ranking-list-head { background: color-mix(in srgb, var(--surface-soft) 78%, var(--halloween-purple) 22%); }
body.is-halloween-theme .ranking-row { border-bottom-color: var(--halloween-line); }

body.is-halloween-theme .wallet-analytics-card,
body.is-halloween-theme .wallet-mining-app-card {
  --accent-strong: var(--halloween-green-soft);
  border-color: var(--halloween-line);
}
body.is-halloween-theme .wallet-mining-app-card { background: color-mix(in srgb, var(--surface) 90%, var(--halloween-purple) 10%); }
body.is-halloween-theme .achievements-hero,
body.is-halloween-theme .achievement-group,
body.is-halloween-theme .achievement-item {
  border-color: var(--halloween-line);
  box-shadow: 0 6px 22px rgba(143, 63, 255, .06);
}
body.is-halloween-theme .supporter-view .supporter-hero,
body.is-halloween-theme .supporter-view .supporter-card {
  border-color: color-mix(in srgb, var(--halloween-purple) 38%, var(--halloween-line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 86%, var(--halloween-purple) 14%), var(--surface));
}
body.is-halloween-theme .supporter-view .supporter-hero { position: relative; }

body.is-halloween-theme .submit-app-footer {
  isolation: isolate;
  position: relative;
  align-items: flex-end;
  min-height: 145px;
  padding: 24px 12px 17px 96px;
  border-top: 1px solid rgba(255, 145, 37, .42);
  background: radial-gradient(circle at 11% 96%, rgba(196, 45, 58, .26), transparent 39%);
  overflow: hidden;
}
body.is-halloween-theme .submit-app-footer::before {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -9px;
  width: 91px;
  height: 138px;
  background: url("./assets/halloween/nacki.webp") no-repeat left bottom / contain;
  opacity: .95;
  filter: drop-shadow(0 0 8px rgba(255, 101, 49, .7));
  pointer-events: none;
}
body.is-halloween-theme .submit-app-link { position: relative; z-index: 1; }
body.is-halloween-theme .submit-app-footer::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 7px;
  width: 28px;
  height: 28px;
  background: url("./assets/halloween/decor/candy.svg") no-repeat center / contain;
  opacity: .36;
  pointer-events: none;
}

body.is-halloween-theme .halloween-entry,
body.is-halloween-theme .halloween-2026 {
  --h-ink: var(--halloween-ink);
  --h-muted: var(--halloween-muted);
  --h-line: rgba(255, 138, 0, .38);
  --h-surface: rgba(17, 10, 22, .91);
  --h-ember: var(--halloween-orange-soft);
  --h-emerald: var(--halloween-green-soft);
}
body.is-halloween-theme .halloween-entry {
  border-color: rgba(255, 138, 0, .57);
  background: radial-gradient(circle at 95% 5%, rgba(143, 63, 255, .28), transparent 44%), linear-gradient(140deg, #221128, #110b18 60%, #2c151d);
  box-shadow: 0 12px 30px rgba(5, 2, 9, .35), 0 0 18px rgba(255, 138, 0, .11);
}
body.is-halloween-theme .halloween-entry [data-halloween-entry] { background: linear-gradient(125deg, #a64a12, #602884); color: #fff; }
body.is-halloween-theme .halloween-2026 {
  border-color: rgba(255, 138, 0, .42);
  background: radial-gradient(circle at 96% 6%, rgba(143, 63, 255, .25), transparent 32%), radial-gradient(circle at 2% 74%, rgba(255, 70, 85, .12), transparent 34%), linear-gradient(155deg, #120b17, #09090e 58%, #211026);
  box-shadow: 0 18px 50px rgba(8, 2, 12, .4), 0 0 20px rgba(143, 63, 255, .12);
}
body.is-halloween-theme .halloween-2026 > * { position: relative; z-index: 1; }
body.is-halloween-theme .halloween-header { position: relative; }
body.is-halloween-theme .halloween-header::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 27px;
  height: 27px;
  background: url("./assets/halloween/decor/bones.svg") no-repeat center / contain;
  opacity: .28;
  pointer-events: none;
}
body.is-halloween-theme .halloween-collect-dialog { border-color: rgba(255, 138, 0, .5); background: radial-gradient(circle at 90% 0%, rgba(143, 63, 255, .18), transparent 45%), #180d20; }

body.is-halloween-theme[data-theme="light"] .halloween-entry,
body.is-halloween-theme[data-theme="light"] .halloween-2026 {
  --h-ink: #2a192b;
  --h-muted: #665567;
  --h-line: rgba(151, 74, 22, .35);
  --h-surface: rgba(255, 248, 231, .93);
  --h-ember: #8e440e;
  --h-emerald: #1c7045;
}
body.is-halloween-theme[data-theme="light"] .halloween-entry {
  background: radial-gradient(circle at 95% 5%, rgba(143, 63, 255, .11), transparent 42%), linear-gradient(140deg, #fff2dc, #f5e5ce 62%, #e9d2c7);
}
body.is-halloween-theme[data-theme="light"] .halloween-2026 {
  background: radial-gradient(circle at 96% 6%, rgba(143, 63, 255, .12), transparent 31%), linear-gradient(155deg, #fff2dc, #f5e5cf 63%, #e9d8cd);
}
body.is-halloween-theme[data-theme="light"] .halloween-collect-dialog { background: radial-gradient(circle at 90% 0%, rgba(143, 63, 255, .1), transparent 45%), #fff2dc; }

/* The three event destinations use one small illustrated scene. Keep every
   interactive element and all readable copy above the artwork. */
body.is-halloween-theme .halloween-2026 {
  border-color: rgba(255, 145, 40, .72);
  background:
    radial-gradient(circle at 88% 28%, rgba(151, 39, 235, .16), transparent 38%),
    linear-gradient(165deg, #180b24, #0b0813 63%, #1e0c27);
  box-shadow: 0 22px 55px rgba(6, 1, 13, .55), 0 0 25px rgba(255, 119, 20, .17);
}
body.is-halloween-theme .halloween-header {
  isolation: isolate;
  min-height: 350px;
  padding: 12px 16px 20px;
  border: 1px solid rgba(255, 151, 46, .62);
  border-radius: 18px;
  background: #100917;
  box-shadow: inset 0 0 25px rgba(255, 122, 16, .12), 0 10px 25px rgba(0, 0, 0, .28);
  overflow: hidden;
}
body.is-halloween-theme .halloween-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 270px;
  background:
    linear-gradient(0deg, #100917 0%, rgba(16, 9, 23, .08) 42%),
    url("./assets/halloween/haunted-village-hero.webp") no-repeat right top / auto 270px;
  pointer-events: none;
}
body.is-halloween-theme .halloween-header::after {
  top: 5px;
  right: 5px;
  width: 70px;
  height: 70px;
  background-image: url("./assets/halloween/decor/cobweb.svg");
  opacity: .52;
}
body.is-halloween-theme .halloween-header .halloween-back {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 3px 10px 3px 3px;
  border: 1px solid rgba(255, 157, 49, .56);
  border-radius: 11px;
  background: rgba(13, 7, 20, .88);
  color: #fff5e9;
}
body.is-halloween-theme .halloween-header .halloween-back > .internal-back-icon {
  border-color: rgba(255, 157, 49, .74);
  background: rgba(255, 113, 21, .12);
  color: #fff5e9;
}
body.is-halloween-theme .halloween-header .halloween-mode {
  margin-top: 151px;
  background: rgba(13, 7, 20, .9);
}
body.is-halloween-theme .halloween-header .halloween-mode.is-preview { color: #ffca83; }
body.is-halloween-theme .halloween-header .halloween-kicker {
  color: #76ffd0;
  text-shadow: 0 0 10px rgba(47, 255, 183, .32);
}
body.is-halloween-theme .halloween-header h2 {
  color: #fff5dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 8vw, 55px);
  letter-spacing: -.025em;
  text-shadow: 0 2px 0 #823513, 0 0 15px rgba(255, 106, 19, .8);
}
body.is-halloween-theme .halloween-header > small { color: #ead3d9; }
body.is-halloween-theme .halloween-intro,
body.is-halloween-theme .halloween-journal,
body.is-halloween-theme .halloween-clue,
body.is-halloween-theme .halloween-solve,
body.is-halloween-theme .halloween-chamber {
  border-color: rgba(255, 148, 38, .55);
  background:
    url("./assets/halloween/decor/cobweb.svg") no-repeat right top / 74px 74px,
    radial-gradient(circle at 98% 100%, rgba(122, 34, 173, .18), transparent 40%),
    var(--h-surface);
  box-shadow: inset 0 0 22px rgba(255, 129, 21, .06), 0 8px 24px rgba(0, 0, 0, .2);
}
body.is-halloween-theme .halloween-intro::before,
body.is-halloween-theme .halloween-journal::before {
  content: "";
  width: 31px;
  height: 31px;
  background: url("./assets/halloween/decor/pumpkin.svg") no-repeat center / contain;
  filter: drop-shadow(0 0 8px rgba(255, 120, 18, .6));
  pointer-events: none;
}
body.is-halloween-theme .halloween-journal::before {
  background-image: url("./assets/halloween/decor/ghost.svg");
}
body.is-halloween-theme .halloween-journal {
  isolation: isolate;
  position: relative;
}
body.is-halloween-theme .halloween-journal::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: clamp(85px, 24vw, 120px);
  height: clamp(85px, 24vw, 120px);
  border: 2px solid #f28855;
  border-radius: 13px;
  background: url("./assets/halloween/horror-girl.webp") no-repeat center 19% / cover;
  box-shadow: 0 0 17px rgba(245, 61, 80, .45);
  opacity: .94;
  pointer-events: none;
}
body.is-halloween-theme .halloween-journal > .halloween-kicker,
body.is-halloween-theme .halloween-journal > h3 { max-width: calc(100% - clamp(101px, 27vw, 136px)); }
body.is-halloween-theme .halloween-journal > p:not(.halloween-kicker) { margin-top: 52px; }
body.is-halloween-theme .halloween-hall {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 148, 38, .55);
  background: radial-gradient(circle at 95% 35%, rgba(134, 37, 165, .17), transparent 44%), var(--h-surface);
}
body.is-halloween-theme .halloween-chamber.is-locked {
  isolation: isolate;
  position: relative;
  min-height: 155px;
  padding-right: clamp(107px, 29%, 160px);
  overflow: hidden;
}
body.is-halloween-theme .halloween-chamber.is-locked::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -9px;
  width: clamp(85px, 24%, 124px);
  height: 150px;
  background: url("./assets/halloween/nacki-sword.webp") no-repeat right bottom / contain;
  opacity: .94;
  filter: drop-shadow(0 0 11px rgba(255, 121, 45, .77));
  pointer-events: none;
}
body.is-halloween-theme .halloween-progress { gap: 9px; color: #ffb84f; font-size: 15px; }
body.is-halloween-theme .halloween-progress i {
  width: 34px;
  height: 34px;
  border: 2px solid #e8782b;
  background: radial-gradient(circle, #39263a, #0e0b16);
  box-shadow: 0 0 10px rgba(255, 112, 20, .3);
}
body.is-halloween-theme .halloween-progress i.is-lit {
  border-color: #ffbf60;
  background: radial-gradient(circle, #ffd583, #ed6f20);
  box-shadow: 0 0 16px rgba(255, 126, 21, .85);
}
body.is-halloween-theme .halloween-seal {
  border-color: rgba(255, 146, 44, .43);
  background: linear-gradient(130deg, rgba(255, 129, 24, .1), rgba(108, 30, 146, .12));
}
body.is-halloween-theme .halloween-seal.is-discovered { box-shadow: inset 0 0 17px rgba(255, 132, 34, .13); }

body.is-halloween-theme .supporter-view .supporter-hero {
  isolation: isolate;
  position: relative;
  min-height: 365px;
  padding: 217px 18px 22px;
  overflow: hidden;
  border-color: rgba(255, 153, 47, .7);
  border-radius: 18px;
  background: #150b20;
  color: #fff5e9;
  box-shadow: 0 16px 35px rgba(5, 0, 12, .42), inset 0 0 20px rgba(255, 131, 21, .15);
}
body.is-halloween-theme .supporter-view .supporter-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 257px;
  background:
    linear-gradient(0deg, #150b20 0%, rgba(21, 11, 32, .03) 50%),
    url("./assets/halloween/haunted-village-hero.webp") no-repeat right top / auto 257px;
  pointer-events: none;
}
body.is-halloween-theme .supporter-view .supporter-hero > * { position: relative; z-index: 1; }
body.is-halloween-theme .supporter-view .supporter-hero h2 {
  color: #fff2d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 7vw, 44px);
  text-shadow: 0 0 15px rgba(255, 99, 17, .75);
}
body.is-halloween-theme .supporter-view .supporter-hero p { color: #f0dce5; }
body.is-halloween-theme .supporter-view .supporter-kicker { color: #ffba69; }
body.is-halloween-theme .supporter-view .supporter-payment-hero { min-height: 275px; padding-top: 165px; }
body.is-halloween-theme .supporter-view .supporter-payment-hero::before { height: 200px; background-size: auto, auto 200px; }
body.is-halloween-theme .supporter-view .supporter-progress {
  height: 14px;
  border: 1px solid rgba(255, 166, 59, .6);
  box-shadow: 0 0 12px rgba(255, 115, 26, .35);
}
body.is-halloween-theme .supporter-view .supporter-progress span {
  background: linear-gradient(90deg, #e74d20, #ffba3d);
  box-shadow: 0 0 10px rgba(255, 156, 28, .7);
}
body.is-halloween-theme .supporter-view .supporter-progress-label,
body.is-halloween-theme .supporter-view .supporter-progress-hint { color: #ffcb82 !important; }
body.is-halloween-theme .supporter-view .donation-currency-selector-label,
body.is-halloween-theme .supporter-view .donation-amount-card > strong {
  color: var(--halloween-orange-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 5.5vw, 29px);
}
body.is-halloween-theme .supporter-view .donation-currency-selector button,
body.is-halloween-theme .supporter-view .donation-amount-presets button {
  border-color: rgba(255, 132, 35, .5);
  background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 85%, #76216e), var(--surface));
  box-shadow: inset 0 0 12px rgba(255, 124, 26, .07);
}
body.is-halloween-theme .supporter-view .donation-currency-selector button.is-selected,
body.is-halloween-theme .supporter-view .donation-amount-presets button.is-selected {
  border-color: #ffb65a;
  box-shadow: 0 0 0 1px #ff8135, 0 0 18px rgba(255, 114, 20, .57);
}
body.is-halloween-theme .supporter-view .donation-amount-card {
  border-color: rgba(255, 152, 45, .65);
  background:
    url("./assets/halloween/decor/pumpkin.svg") no-repeat right 9px top 8px / 28px,
    radial-gradient(circle at 100% 0%, rgba(160, 36, 172, .22), transparent 42%),
    var(--surface);
  box-shadow: 0 12px 28px rgba(6, 1, 13, .25);
}
body.is-halloween-theme .supporter-view .donation-unlocks-preview { border-color: rgba(255, 153, 50, .45); }
body.is-halloween-theme .supporter-view .donation-unlocks-preview li.is-coming-soon.has-pack-image {
  border-color: rgba(251, 143, 51, .7);
  box-shadow: 0 0 12px rgba(255, 125, 34, .15);
}
body.is-halloween-theme .supporter-view .donation-unlocks-preview li.is-active-pack {
  border-color: #ffbd67;
  box-shadow: 0 0 20px rgba(255, 126, 22, .3);
}
body.is-halloween-theme .supporter-view .supporter-primary-button {
  border-color: #ffb566;
  background: linear-gradient(135deg, #b54b1e, #63208b);
  color: #fff9ec;
  box-shadow: 0 0 15px rgba(255, 112, 24, .26);
}

body.is-halloween-theme .mining-groups-section > .section-title .section-title-button {
  color: var(--halloween-orange-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  text-shadow: 0 0 10px rgba(255, 101, 17, .38);
}
body.is-halloween-theme .mining-groups-section > .section-title .section-title-button span { color: inherit; font-size: inherit; }
body.is-halloween-theme .mining-group-block h3 { color: var(--halloween-orange-soft); letter-spacing: .09em; }
body.is-halloween-theme .mining-group-list .app-row {
  position: relative;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255, 138, 39, .5);
  border-radius: 14px;
  background:
    url("./assets/halloween/decor/cobweb.svg") no-repeat right top / 34px 34px,
    linear-gradient(110deg, color-mix(in srgb, var(--surface) 88%, #963f31), color-mix(in srgb, var(--surface) 93%, #782395));
  box-shadow: inset 0 0 12px rgba(255, 128, 18, .08), 0 5px 16px rgba(5, 1, 10, .2);
}
body.is-halloween-theme .mining-group-list .app-row:hover,
body.is-halloween-theme .mining-group-list .app-row:focus-visible { border-color: #ffba59; box-shadow: 0 0 15px rgba(255, 118, 24, .25); }
body.is-halloween-theme .mining-group-list .app-icon { border-color: rgba(255, 161, 55, .75); box-shadow: 0 0 11px rgba(255, 118, 26, .22); }
body.is-halloween-theme .mining-group-list .app-open-button,
body.is-halloween-theme .mining-group-list .app-row button:not(.app-row-menu-button) {
  border: 1px solid #ffad52;
  background: linear-gradient(130deg, #893414, #62217e);
  color: #fff6e9;
  box-shadow: 0 0 10px rgba(255, 114, 24, .4);
}
body.is-halloween-theme .search-box { border-color: rgba(255, 142, 40, .72); box-shadow: 0 0 15px rgba(255, 118, 24, .2); }
body.is-halloween-theme .category-button { border-color: rgba(183, 80, 187, .68); box-shadow: inset 0 0 8px rgba(134, 40, 166, .12); }
body.is-halloween-theme .category-button.is-active { border-color: #ff9f40; box-shadow: 0 0 14px rgba(255, 118, 22, .36); }

body.is-halloween-theme[data-theme="light"] .halloween-2026 { background: linear-gradient(155deg, #fff2dc, #f2decc); }
body.is-halloween-theme[data-theme="light"] .halloween-intro,
body.is-halloween-theme[data-theme="light"] .halloween-journal,
body.is-halloween-theme[data-theme="light"] .halloween-clue,
body.is-halloween-theme[data-theme="light"] .halloween-solve,
body.is-halloween-theme[data-theme="light"] .halloween-chamber { box-shadow: 0 8px 20px rgba(80, 32, 31, .12); }
body.is-halloween-theme[data-theme="light"] .mining-group-list .app-row { box-shadow: 0 5px 13px rgba(87, 43, 45, .12); }

body.is-halloween-theme .halloween-leaderboard { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
body.is-halloween-theme .halloween-leaderboard li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--h-line); border-radius: 10px; background: color-mix(in srgb, var(--h-surface) 88%, var(--halloween-purple) 12%); }
body.is-halloween-theme .halloween-leaderboard-rank { color: var(--h-ember); font-weight: 900; }
body.is-halloween-theme .halloween-leaderboard li strong { min-width: 0; overflow-wrap: anywhere; color: var(--h-ink); font-size: 14px; }
body.is-halloween-theme .halloween-leaderboard time { color: var(--h-muted); font-size: 11px; text-align: right; }
body.is-halloween-theme .halloween-leaderboard-empty { padding: 10px; border: 1px dashed var(--h-line); border-radius: 10px; }

@media (max-width: 480px) {
  body.is-halloween-theme .featured-band:not(.is-halloween-message)::after { width: 114px; height: 158px; }
  body.is-halloween-theme .ranking-intro::after { width: 112px; height: 151px; }
}

@media (max-width: 380px) {
  body.is-halloween-theme .halloween-header::before {
    background:
      linear-gradient(0deg, #100917 0%, rgba(16, 9, 23, .07) 58%),
      url("./assets/halloween/haunted-village-mobile.webp") no-repeat center 30% / cover;
  }
  body.is-halloween-theme .supporter-view .supporter-hero::before {
    background:
      linear-gradient(0deg, #150b20 0%, rgba(21, 11, 32, .04) 58%),
      url("./assets/halloween/haunted-village-mobile.webp") no-repeat center 30% / cover;
  }
  body.is-halloween-theme .topbar { gap: 7px; }
  body.is-halloween-theme .topbar-brand { gap: 7px; }
  body.is-halloween-theme .topbar-actions { gap: 4px; }
  body.is-halloween-theme .brand-logo { width: 36px; height: 36px; }
  body.is-halloween-theme .topbar-brand h1 { font-size: 18px; }
  body.is-halloween-theme .featured-band:not(.is-halloween-message) { height: 190px; min-height: 190px; max-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-halloween-theme *,
  body.is-halloween-theme *::before,
  body.is-halloween-theme *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
