/**
 * RBX Multiple — Halloween (black photo + orange accent)
 */
html[data-theme="halloween"] {
  --aqua: #F97316;
  --aqua-bright: #FB923C;
  --aqua-deep: #EA580C;
  --aqua-glow: rgba(249, 115, 22, 0.45);
  --cream: #030303;
  --cream-2: #080808;
  --sand: #121212;
  --mint: #050505;
  --ink: #FAF0E6;
  --ink-soft: #E7D5C3;
  --muted: #A89888;
  --white: #0C0C0C;
  --line: rgba(249, 115, 22, 0.14);
  --line-strong: rgba(249, 115, 22, 0.28);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.82);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.92);
  --theme-progress: linear-gradient(90deg, #EA580C, #F97316, #FB923C);
  color-scheme: dark;
  background: #030303;
}

html[data-theme="halloween"] body {
  color: var(--ink);
}

/* ── Global: dark base (hero carries the art) ── */
html[data-theme="halloween"] .bg-base {
  background: #030303;
}

html[data-theme="halloween"] .bg-orbs {
  display: none;
}

html[data-theme="halloween"] .hw-sky {
  opacity: 0.35;
  z-index: 2;
}

html[data-theme="halloween"] main {
  position: relative;
  z-index: 4;
}

html[data-theme="halloween"] main > section:not(.splash) {
  background: transparent;
  backdrop-filter: none;
  border-top: none;
  box-shadow: none;
}

/* ── Cinematic hero (Bloxshade-style, Halloween graded photo) ── */
html[data-theme="halloween"] .splash--cinema {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  margin: 0;
  display: block;
  overflow: hidden;
}

html[data-theme="halloween"] .splash--cinema::before {
  display: none;
}

html[data-theme="halloween"] .splash-cinema__media {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

html[data-theme="halloween"] .splash-cinema__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.03);
}

html[data-theme="halloween"] .splash-cinema__photo {
  display: none;
}

html[data-theme="halloween"] .splash-cinema__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 38%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

html[data-theme="halloween"] .splash-cinema__inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(88px, 10vh, 120px) 0 clamp(48px, 6vh, 72px);
  box-sizing: border-box;
}

html[data-theme="halloween"] .splash-cinema__copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

html[data-theme="halloween"] .splash-cinema__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.9);
}

html[data-theme="halloween"] .splash-cinema__title {
  margin: 0;
}

html[data-theme="halloween"] .splash-cinema__brand {
  display: block;
  font-family: "Bebas Neue", "Nunito", sans-serif;
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #fff7ed 35%, #fb923c 78%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.65));
}

html[data-theme="halloween"] .splash-cinema__tagline {
  display: block;
  margin-top: 6px;
  font-family: "Bebas Neue", "Nunito", sans-serif;
  font-size: clamp(1.75rem, 5vw, 3.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff7ed;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

html[data-theme="halloween"] .splash-cinema__lead {
  margin-top: 18px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 237, 213, 0.82);
  font-size: 17px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

html[data-theme="halloween"] .splash-cinema__actions {
  margin-top: 26px;
  justify-content: center;
}

html[data-theme="halloween"] .splash-cinema__actions .btn-aqua {
  padding: 14px 28px;
  font-size: 15px;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.45);
}

html[data-theme="halloween"] .splash-cinema__ghost {
  color: #fed7aa !important;
  border-color: rgba(251, 146, 60, 0.45) !important;
  background: rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="halloween"] .splash-cinema__meta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  width: 100%;
}

html[data-theme="halloween"] .splash-cinema__meta.install-meta {
  align-items: center;
}

html[data-theme="halloween"] .browser-row--cinema {
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(249, 115, 22, 0.22);
}

html[data-theme="halloween"] .browser-row--cinema .browser-row__label {
  padding-right: 0;
  width: 100%;
  text-align: center;
}

html[data-theme="halloween"] .browser-row--cinema .browser-list {
  justify-content: center;
}

html[data-theme="halloween"] .splash-cinema__pumpkin {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 40px);
  transform: translateX(calc(-50% + min(42vw, 420px)));
  z-index: 3;
  width: min(160px, 22vw);
  pointer-events: auto;
  opacity: 0.92;
}

html[data-theme="halloween"] .splash-cinema__pumpkin .pumpkin-stage {
  margin: 0;
  max-width: 100%;
  aspect-ratio: 1;
}

html[data-theme="halloween"] .splash-cinema__pumpkin .pumpkin-stage__label {
  color: rgba(254, 215, 170, 0.75);
}

/* Tutorial band under hero */
html[data-theme="halloween"] .hw-tutorial-band {
  position: relative;
  z-index: 5;
  padding: clamp(40px, 6vw, 64px) 0;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(249, 115, 22, 0.15);
}

html[data-theme="halloween"] .hw-tutorial-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

html[data-theme="halloween"] .hw-tutorial-band__copy h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 8px 0 12px;
  color: #fff7ed;
}

html[data-theme="halloween"] .hw-tutorial-band__copy p {
  color: var(--muted);
  max-width: 42ch;
}

html[data-theme="halloween"] .hw-tutorial-band__player {
  margin: 0;
  max-width: none;
}

html[data-theme="halloween"] #nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(10px);
}

html[data-theme="halloween"] #nav.solid {
  background: rgba(0, 0, 0, 0.88) !important;
}

html[data-theme="halloween"] body {
  padding-top: 0;
}

@media (max-width: 900px) {
  html[data-theme="halloween"] .splash-cinema__inner {
    padding-top: clamp(88px, 12vh, 120px);
  }
  html[data-theme="halloween"] .splash-cinema__pumpkin {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(200px, 55vw);
    margin: 24px auto 0;
  }
  html[data-theme="halloween"] .splash--cinema {
    min-height: auto;
  }
  html[data-theme="halloween"] .splash-cinema__inner {
    min-height: auto;
    flex-direction: column;
  }
  html[data-theme="halloween"] .hw-tutorial-band__grid {
    grid-template-columns: 1fr;
  }
}


html[data-theme="halloween"] .orb-1,
html[data-theme="halloween"] .orb-2,
html[data-theme="halloween"] .orb-3 {
  opacity: 0.22;
  filter: blur(100px);
}
html[data-theme="halloween"] .orb-1 {
  background: radial-gradient(circle, rgba(234, 88, 12, 0.35), transparent 68%);
}
html[data-theme="halloween"] .orb-2 {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 65%);
}
html[data-theme="halloween"] .orb-3 {
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2), transparent 70%);
}

html[data-theme="halloween"] .bg-aurora,
html[data-theme="halloween"] .bg-shimmer,
html[data-theme="halloween"] .bg-sweep,
html[data-theme="halloween"] .bg-grid,
html[data-theme="halloween"] .bg-particles {
  display: none !important;
  opacity: 0 !important;
}

/* ── Nav ── */
html[data-theme="halloween"] #nav {
  background: rgba(5, 3, 4, 0.82);
  border-bottom-color: rgba(180, 83, 9, 0.1);
  backdrop-filter: blur(16px) saturate(1.1);
}
html[data-theme="halloween"] #nav.solid {
  background: rgba(5, 3, 4, 0.94) !important;
}
html[data-theme="halloween"] .nav-pills {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(180, 83, 9, 0.12);
}
html[data-theme="halloween"] .nav-pills a {
  color: #A89078 !important;
}
html[data-theme="halloween"] .nav-pills a:hover {
  color: #FDBA74 !important;
  background: rgba(249, 115, 22, 0.12) !important;
}
html[data-theme="halloween"] .btn-ghost {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
  color: #C4A890 !important;
}
html[data-theme="halloween"] .theme-toggle {
  display: none !important;
}

html[data-theme="halloween"] .brand {
  color: #C4A890;
}
html[data-theme="halloween"] .browser-row__label {
  color: var(--muted);
}

html[data-theme="halloween"] .nav-pills a {
  color: var(--ink-soft);
}
html[data-theme="halloween"] .nav-pills a:hover {
  color: var(--aqua-bright);
  background: rgba(249, 115, 22, 0.12);
}

html[data-theme="halloween"] .btn-aqua {
  background: linear-gradient(135deg, #FB923C 0%, #EA580C 55%, #C2410C 100%);
  color: #140808;
  box-shadow:
    0 8px 28px rgba(234, 88, 12, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
html[data-theme="halloween"] .btn-aqua:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.55);
}

html[data-theme="halloween"] .btn-ghost {
  color: var(--ink-soft);
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(234, 88, 12, 0.06);
}
html[data-theme="halloween"] .btn-ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua-bright);
  background: rgba(234, 88, 12, 0.12);
}

/* ── Splash ── */
html[data-theme="halloween"] .splash-badge {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(180, 83, 9, 0.28);
  color: var(--aqua-bright);
}
html[data-theme="halloween"] .splash-badge-dot {
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua-glow);
}

html[data-theme="halloween"] .splash h1 {
  color: #D4B8A0;
  text-shadow: 0 0 40px rgba(255, 100, 20, 0.15);
}
html[data-theme="halloween"] .splash h1 em {
  color: var(--aqua-bright);
  font-style: italic;
}

html[data-theme="halloween"] .splash-lead {
  color: var(--ink-soft);
}

html[data-theme="halloween"] .install-strip {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(180, 83, 9, 0.16);
  color: var(--muted);
  backdrop-filter: none;
}
html[data-theme="halloween"] .install-strip__ver {
  color: var(--aqua-bright);
  background: rgba(249, 115, 22, 0.12);
}
html[data-theme="halloween"] .browser-row {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(180, 83, 9, 0.14) !important;
  backdrop-filter: none;
  box-shadow: none;
}
html[data-theme="halloween"] .browser-row__label {
  color: #8A7060;
}
html[data-theme="halloween"] .browser-chip {
  background: #12100E !important;
  border-color: rgba(180, 83, 9, 0.2) !important;
  color: #C4A890 !important;
  box-shadow: none !important;
}
html[data-theme="halloween"] .browser-chip img {
  /* keep brand colors, slightly dim on black chips */
  opacity: 0.92;
  filter: none;
}

html[data-theme="halloween"] .splash-tutorial__frame {
  background: linear-gradient(160deg, rgba(40, 20, 12, 0.95), rgba(18, 10, 8, 0.98));
  border-color: rgba(180, 83, 9, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(180, 83, 9, 0.1),
    0 0 60px rgba(234, 88, 12, 0.15);
}
html[data-theme="halloween"] .splash-tutorial__glow {
  background: radial-gradient(circle, rgba(234, 88, 12, 0.45), transparent 70%);
}
html[data-theme="halloween"] .splash-tutorial__kicker span {
  color: var(--aqua);
}
html[data-theme="halloween"] .splash-tutorial__kicker strong {
  color: #D4B8A0;
}

/* Kill leftover frosted-white panels */
html[data-theme="halloween"] .bento-card,
html[data-theme="halloween"] .faq-item,
html[data-theme="halloween"] .how-card,
html[data-theme="halloween"] .stagger-card {
  background: linear-gradient(165deg, #120e0c, #0a0706) !important;
  border-color: rgba(180, 83, 9, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="halloween"] .ext-panel {
  background: linear-gradient(165deg, #16120f, #0c0908) !important;
  border-color: rgba(180, 83, 9, 0.18) !important;
}

/* ── Cards / sections ── */
html[data-theme="halloween"] .sec-kicker {
  color: var(--aqua);
}
html[data-theme="halloween"] .sec-head h2 {
  color: #D4B8A0;
}
html[data-theme="halloween"] .sec-head h2 em {
  color: var(--aqua-bright);
}
html[data-theme="halloween"] .sec-head p {
  color: var(--muted);
}

html[data-theme="halloween"] .bento-card,
html[data-theme="halloween"] .faq-item,
html[data-theme="halloween"] .tl-item,
html[data-theme="halloween"] .showcase-visual,
html[data-theme="halloween"] .ext-panel {
  background: linear-gradient(165deg, rgba(36, 20, 14, 0.92), rgba(18, 10, 8, 0.96));
  border-color: rgba(180, 83, 9, 0.16);
  box-shadow: var(--shadow);
}

html[data-theme="halloween"] .bento-card h3,
html[data-theme="halloween"] .faq-item h3,
html[data-theme="halloween"] .tl-copy h3 {
  color: #FFF3E8;
}
html[data-theme="halloween"] .bento-card p,
html[data-theme="halloween"] .faq-item p,
html[data-theme="halloween"] .tl-copy p {
  color: var(--muted);
}
html[data-theme="halloween"] .bento-num,
html[data-theme="halloween"] .bento-icon {
  color: var(--aqua-bright);
}
html[data-theme="halloween"] .bento-card:hover {
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 24px 64px rgba(234, 88, 12, 0.18);
}

html[data-theme="halloween"] .ext-title { color: #FFF3E8; }
html[data-theme="halloween"] .ext-tag { color: var(--aqua); }
html[data-theme="halloween"] .ext-add {
  background: rgba(234, 88, 12, 0.15);
  color: var(--aqua-bright);
  border-color: rgba(180, 83, 9, 0.3);
}
html[data-theme="halloween"] .showcase-points li {
  color: var(--ink-soft);
}
html[data-theme="halloween"] .showcase-points-icon {
  color: var(--aqua);
}

html[data-theme="halloween"] footer,
html[data-theme="halloween"] .site-footer {
  color: var(--muted);
  border-top-color: rgba(180, 83, 9, 0.12);
}

/* ── Theme toggle ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: rgba(42, 27, 36, 0.06);
  border: 1px solid var(--line-strong);
  margin-left: 12px;
  margin-right: 10px;
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .theme-toggle { margin-left: auto; }
}
html[data-theme="halloween"] .theme-toggle {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(180, 83, 9, 0.25);
}

.theme-toggle__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--pill);
  color: var(--muted);
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.theme-toggle__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
html[data-theme="halloween"] .theme-toggle__btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: #140808;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.4);
}
html[data-theme="halloween"] .theme-toggle__btn:not([aria-pressed="true"]) {
  color: var(--ink-soft);
}

/* ── Floating decorations ── */
.hw-sky {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
html:not([data-theme="halloween"]) .hw-sky { display: none; }

.hw-moon {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #E9FBC8, #84CC16 50%, #3F6212 100%);
  box-shadow:
    0 0 40px rgba(249, 115, 22, 0.35),
    0 0 70px rgba(234, 88, 12, 0.2),
    inset -12px -8px 0 rgba(5, 3, 8, 0.4);
  animation: hw-moon-pulse 7s ease-in-out infinite;
  opacity: 0.9;
}
.hw-moon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 7, 6, 0.2);
  top: 28%;
  left: 42%;
  box-shadow: 16px 20px 0 -4px rgba(11, 7, 6, 0.14), -10px 24px 0 -6px rgba(11, 7, 6, 0.12);
}

@keyframes hw-moon-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.1); }
}

/* Spider webs */
.hw-web {
  position: absolute;
  width: 160px;
  height: 160px;
  opacity: 0.35;
  background:
    radial-gradient(circle at 0 0, transparent 28%, rgba(232, 220, 200, 0.35) 29%, transparent 30%),
    repeating-conic-gradient(from 0deg at 0 0, transparent 0deg 18deg, rgba(232, 220, 200, 0.25) 18deg 19deg);
  mask-image: radial-gradient(circle at 0 0, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 0%, transparent 72%);
}
.hw-web--tl { top: 0; left: 0; }
.hw-web--tr { top: 0; right: 0; transform: scaleX(-1); }
.hw-web--bl { bottom: 0; left: 0; transform: scaleY(-1); width: 120px; height: 120px; opacity: 0.25; }

/* Lottie (ready-made) decor */
.hw-lottie {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}
.hw-lottie--bat-lg {
  top: 14%;
  left: 4%;
  width: 120px;
  height: 120px;
}
.hw-lottie--bat-sm {
  top: 42%;
  right: 2%;
  width: 88px;
  height: 88px;
  opacity: 0.55;
  transform: scaleX(-1);
}
.hw-lottie svg { overflow: visible !important; }

html[data-theme="halloween"] .splash h1 {
  animation: hw-splash-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html[data-theme="halloween"] .splash-badge {
  animation: hw-splash-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
@keyframes hw-splash-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

html[data-theme="halloween"] .pumpkin-stage__glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45), rgba(234, 88, 12, 0.2) 50%, transparent 70%);
}
html[data-theme="halloween"] .pumpkin-stage:not(.is-ready) .pumpkin-stage__canvas {
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(249, 115, 22, 0.28), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.5), transparent);
}

/* legacy CSS bats / float pumpkins — hidden when Lottie is used */
.hw-bat,
.hw-float-pump {
  display: none !important;
}

/* Ghosts */
.hw-ghost {
  position: absolute;
  animation: hw-ghost-drift 7s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 220, 180, 0.25));
  opacity: 0.7;
}
.hw-ghost--sm { opacity: 0.5; }
@keyframes hw-ghost-drift {
  0%, 100% { transform: translateY(0) translateX(0) rotate(-2deg); }
  50% { transform: translateY(-22px) translateX(10px) rotate(3deg); }
}

/* Skeletons */
.hw-skel {
  position: absolute;
  animation: hw-skel-bob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
  opacity: 0.85;
}
.hw-skel--flip { transform: scaleX(-1); }
.hw-skel--flip { animation-name: hw-skel-bob-flip; }
@keyframes hw-skel-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}
@keyframes hw-skel-bob-flip {
  0%, 100% { transform: scaleX(-1) translateY(0) rotate(-3deg); }
  50% { transform: scaleX(-1) translateY(-10px) rotate(4deg); }
}

/* Tombstones */
.hw-tomb {
  position: absolute;
  width: 52px;
  height: 58px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #3a3a42, #1c1c22);
  border: 1px solid rgba(255, 180, 100, 0.15);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.4);
  color: #9a9080;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}
.hw-tomb::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 36px;
  height: 20px;
  margin-left: -18px;
  border-radius: 18px 18px 0 0;
  background: inherit;
  border: 1px solid rgba(255, 180, 100, 0.15);
  border-bottom: 0;
}
.hw-tomb--sm { width: 40px; height: 46px; font-size: 9px; opacity: 0.6; }

/* Spiders on threads */
.hw-spider {
  position: absolute;
  width: 14px;
  height: var(--hw-len, 80px);
  background: linear-gradient(180deg, rgba(220, 200, 180, 0.35), transparent);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: center;
  animation: hw-spider-drop 5s ease-in-out infinite;
}
.hw-spider::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 12px;
  height: 10px;
  margin-left: -6px;
  border-radius: 50%;
  background: #1a100c;
  box-shadow:
    -8px 0 0 -3px #1a100c, 8px 0 0 -3px #1a100c,
    -7px 4px 0 -4px #1a100c, 7px 4px 0 -4px #1a100c;
}
@keyframes hw-spider-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

/* Candy corn */
.hw-candy {
  position: absolute;
  width: 14px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #fff8e8 0 28%, #f97316 28% 62%, #fff 62%);
  opacity: 0.55;
  animation: hw-candy-spin 8s linear infinite;
}
@keyframes hw-candy-spin {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* Embers / falling leaves */
.hw-embers { position: absolute; inset: 0; }
.hw-ember {
  position: absolute;
  bottom: -10px;
  width: var(--sz, 6px);
  height: var(--sz, 6px);
  border-radius: 50% 50% 50% 0;
  background: var(--c, #f97316);
  opacity: 0.7;
  left: var(--x, 50%);
  animation: hw-ember-rise var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
  box-shadow: 0 0 8px var(--c, #f97316);
}
@keyframes hw-ember-rise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 40px)) rotate(320deg); opacity: 0; }
}

.hw-float-pump {
  position: absolute;
  width: 48px;
  height: 42px;
  border-radius: 50% 50% 48% 48%;
  background:
    radial-gradient(ellipse at 40% 35%, #FDBA74, #EA580C 55%, #7C2D12 100%);
  box-shadow: inset -6px -4px 12px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 120, 30, 0.25);
  animation: hw-float 9s ease-in-out infinite;
  opacity: 0.85;
}
.hw-float-pump::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 8px;
  height: 12px;
  margin-left: -4px;
  background: linear-gradient(#4A7C23, #2D5016);
  border-radius: 3px;
}
.hw-float-pump::after {
  content: "";
  position: absolute;
  inset: 16% 20%;
  background:
    linear-gradient(135deg, transparent 40%, #1a0800 40% 48%, transparent 48%) 0 8% / 38% 38%,
    linear-gradient(-135deg, transparent 40%, #1a0800 40% 48%, transparent 48%) 100% 8% / 38% 38%,
    radial-gradient(ellipse at 50% 85%, #ffaa33 0 40%, transparent 55%);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 170, 50, 0.8));
}

@keyframes hw-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

/* ── 3D pumpkin stage ── */
.pumpkin-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 28px;
  aspect-ratio: 1;
  perspective: 900px;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.pumpkin-stage:active { cursor: grabbing; }

.pumpkin-stage__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  outline: none;
  display: block;
  background: transparent;
}
.pumpkin-stage:not(.is-ready) .pumpkin-stage__canvas {
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 140, 30, 0.28), transparent 68%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.45), transparent);
}

.pumpkin-stage__glow {
  position: absolute;
  inset: 12% 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 160, 40, 0.55), rgba(255, 80, 0, 0.15) 50%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  animation: hw-glow-breathe 2.8s ease-in-out infinite;
}
@keyframes hw-glow-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.pumpkin-stage__label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A7A60;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.7;
}

html:not([data-theme="halloween"]) .pumpkin-stage {
  display: none;
}

/* splash visual stack */
.splash-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

html[data-theme="halloween"] .splash-visual {
  gap: 8px;
}

/* Seasonal badge pulse */
html[data-theme="halloween"] .splash-badge-dot {
  animation: hw-dot-pulse 1.6s ease-in-out infinite;
}
@keyframes hw-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}

@media (max-width: 860px) {
  .pumpkin-stage {
    max-width: 300px;
    margin-bottom: 16px;
  }
  .hw-moon { width: 48px; height: 48px; top: 6%; right: 6%; }
  .theme-toggle { margin-right: 6px; }
  .theme-toggle__btn { padding: 5px 9px; font-size: 11px; }
}

@media (max-width: 860px) {
  .hw-skel, .hw-tomb, .hw-web--bl { display: none; }
  .hw-ghost { opacity: 0.4; }
  .hw-spider { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-moon, .hw-bat, .hw-float-pump, .pumpkin-stage__glow,
  .hw-ghost, .hw-skel, .hw-spider, .hw-candy, .hw-ember,
  html[data-theme="halloween"] .splash-badge-dot {
    animation: none !important;
  }
}

/* ── Remap hardcoded blush pinks → pumpkin orange ── */
html[data-theme="halloween"] #nav.solid {
  background: rgba(11, 7, 6, 0.88);
  box-shadow: 0 1px 0 rgba(180, 83, 9, 0.12);
}

html[data-theme="halloween"] .nav-pills a:hover {
  background: rgba(249, 115, 22, 0.18);
}

html[data-theme="halloween"] .btn-aqua:hover {
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.55);
}

html[data-theme="halloween"] .splash h1 em,
html[data-theme="halloween"] .sec-head h2 em {
  background: linear-gradient(135deg, #FDBA74 0%, #F97316 55%, #EA580C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="halloween"] .splash-badge-dot {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.3);
}

html[data-theme="halloween"] .browser-chip:hover,
html[data-theme="halloween"] .install-strip__link:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.14);
}

html[data-theme="halloween"] .ext-chrome span:first-child { background: #F97316; }
html[data-theme="halloween"] .ext-chrome span:nth-child(2) { background: rgba(234, 88, 12, 0.55); }
html[data-theme="halloween"] .ext-chrome span:nth-child(3) { background: rgba(234, 88, 12, 0.28); }

html[data-theme="halloween"] .ext-add:hover,
html[data-theme="halloween"] .ext-row:hover,
html[data-theme="halloween"] .bento-card:hover,
html[data-theme="halloween"] .faq-item:hover {
  border-color: rgba(249, 115, 22, 0.4);
}

html[data-theme="halloween"] .ext-join,
html[data-theme="halloween"] .ext-launch-btn,
html[data-theme="halloween"] .cta-band .btn-aqua,
html[data-theme="halloween"] .faq-band-aside {
  background: linear-gradient(135deg, #FDBA74 0%, #F97316 45%, #EA580C 100%);
  color: #140808;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.4);
}

html[data-theme="halloween"] .ext-stats,
html[data-theme="halloween"] .ext-row,
html[data-theme="halloween"] .tl-step,
html[data-theme="halloween"] .how-card,
html[data-theme="halloween"] .faq-item {
  border-color: rgba(180, 83, 9, 0.18);
  background: rgba(26, 14, 12, 0.65);
}

html[data-theme="halloween"] .tl-rail::before {
  background: linear-gradient(180deg, var(--aqua), transparent);
}

html[data-theme="halloween"] .yt-player__play {
  background: linear-gradient(145deg, #FDBA74, #EA580C);
  color: #140808;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.5), 0 0 0 8px rgba(249, 115, 22, 0.15);
}

html[data-theme="halloween"] .splash-tutorial__frame {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(249, 115, 22, 0.22);
}

html[data-theme="halloween"] .splash::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, transparent 60%);
}

html[data-theme="halloween"] .showcase-visual::before,
html[data-theme="halloween"] .ext-scene__halo {
  background: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(249, 115, 22, 0.35), rgba(234, 88, 12, 0.1) 50%, transparent 72%);
}

html[data-theme="halloween"] .faq-band-aside h2,
html[data-theme="halloween"] .faq-band-aside p {
  -webkit-text-fill-color: #140808;
  color: #140808;
}

html[data-theme="halloween"] footer a:hover {
  color: var(--aqua-bright);
}

/* Brand mark: orange ring, no pink bleed */
html[data-theme="halloween"] .brand-mark img,
html[data-theme="halloween"] .ext-head-brand img,
html[data-theme="halloween"] .mrm-add-modal__icon img {
  filter: none;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.35), 0 8px 24px rgba(234, 88, 12, 0.35);
}

html[data-theme="halloween"] .yt-player__veil {
  background: linear-gradient(180deg, transparent 40%, rgba(11, 7, 6, 0.75));
}

html[data-theme="halloween"] .install-strip__link {
  color: var(--aqua-bright);
}
