/**
 * RBX Multiple — Halloween 2026 seasonal theme
 * Dark night + pumpkin orange. Toggle off via theme switcher → blush.
 */
html[data-theme="halloween"] {
  --aqua: #FF8A3D;
  --aqua-bright: #FF9F43;
  --aqua-deep: #E85D04;
  --aqua-glow: rgba(255, 138, 61, 0.45);
  --cream: #050304;
  --cream-2: #0A0605;
  --sand: #1A100C;
  --mint: #0C0807;
  --ink: #E8D4C0;
  --ink-soft: #C4A890;
  --muted: #8A7060;
  --white: #FFFFFF;
  --surface: #120e0c;
  --surface-muted: #0a0706;
  --surface-elevated: #16120f;
  --line: rgba(255, 140, 60, 0.1);
  --line-strong: rgba(255, 140, 60, 0.18);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.85);
  --theme-progress: linear-gradient(90deg, #FF9F43, #FF8A3D, #E85D04);
  color-scheme: dark;
  background: #050304;
}

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

/* ── Ambient — near-black, minimal glow ── */
html[data-theme="halloween"] .bg-base {
  background:
    radial-gradient(520px 90vh at 0% 18%, rgba(255, 130, 50, 0.11), transparent 58%),
    radial-gradient(700px 420px at 70% 20%, rgba(180, 60, 10, 0.14), transparent 60%),
    radial-gradient(500px 360px at 10% 80%, rgba(80, 20, 100, 0.08), transparent 55%),
    linear-gradient(180deg, #030203 0%, #080504 50%, #0A0605 100%);
}

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(255, 100, 30, 0.35), transparent 68%);
}
html[data-theme="halloween"] .orb-2 {
  background: radial-gradient(circle, rgba(100, 30, 140, 0.3), transparent 65%);
}
html[data-theme="halloween"] .orb-3 {
  background: radial-gradient(circle, rgba(255, 120, 40, 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(255, 140, 60, 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(255, 140, 60, 0.12);
}
html[data-theme="halloween"] .nav-pills a {
  color: #A89078 !important;
}
html[data-theme="halloween"] .nav-pills a:hover {
  color: #FFB347 !important;
  background: rgba(255, 138, 61, 0.12) !important;
}
html[data-theme="halloween"] .btn-ghost {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(255, 140, 60, 0.28) !important;
  color: #C4A890 !important;
}
html[data-theme="halloween"] .theme-toggle {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 140, 60, 0.22) !important;
}
html[data-theme="halloween"] .theme-toggle__btn:not([aria-pressed="true"]) {
  color: #8A7060 !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(255, 138, 61, 0.12);
}

html[data-theme="halloween"] .btn-aqua {
  background: linear-gradient(135deg, #FF9F43 0%, #E85D04 55%, #C2410C 100%);
  color: #1A0800;
  box-shadow:
    0 8px 28px rgba(232, 93, 4, 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(255, 120, 40, 0.55);
}

html[data-theme="halloween"] .btn-ghost {
  color: var(--ink-soft);
  border-color: rgba(255, 160, 80, 0.28);
  background: rgba(255, 120, 40, 0.06);
}
html[data-theme="halloween"] .btn-ghost:hover {
  border-color: var(--aqua);
  color: var(--aqua-bright);
  background: rgba(255, 120, 40, 0.12);
}

/* ── Splash ── */
html[data-theme="halloween"] .splash-badge {
  background: rgba(255, 120, 40, 0.12);
  border-color: rgba(255, 140, 60, 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(255, 140, 60, 0.16);
  color: var(--muted);
  backdrop-filter: none;
}
html[data-theme="halloween"] .install-strip__ver {
  color: var(--aqua-bright);
  background: rgba(255, 138, 61, 0.12);
}
html[data-theme="halloween"] .browser-row {
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 140, 60, 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(255, 140, 60, 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(255, 140, 60, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 140, 60, 0.1),
    0 0 60px rgba(255, 100, 30, 0.15);
}
html[data-theme="halloween"] .splash-tutorial__glow {
  background: radial-gradient(circle, rgba(255, 120, 40, 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;
}

/* ── Cards / sections (unified dark surfaces) ── */
html[data-theme="halloween"] .stagger-sec {
  background: var(--surface-muted);
}

html[data-theme="halloween"] .bento-card,
html[data-theme="halloween"] .faq-item,
html[data-theme="halloween"] .stagger-card,
html[data-theme="halloween"] .tl-visual {
  background: linear-gradient(165deg, rgba(36, 20, 14, 0.92), rgba(18, 10, 8, 0.96)) !important;
  border-color: rgba(255, 140, 60, 0.16) !important;
  box-shadow: var(--shadow) !important;
}

html[data-theme="halloween"] .showcase-visual {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="halloween"] .ext-panel {
  background: linear-gradient(165deg, #16120f, #0c0908) !important;
  border-color: rgba(255, 140, 60, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(255, 140, 60, 0.08) inset,
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 100, 30, 0.1) !important;
}

html[data-theme="halloween"] .ext-head {
  border-bottom-color: rgba(255, 140, 60, 0.12);
}

html[data-theme="halloween"] .ext-stats {
  border-bottom-color: rgba(255, 140, 60, 0.12);
}

html[data-theme="halloween"] .ext-stats b {
  color: #e8d4c0;
}

html[data-theme="halloween"] .ext-launch {
  background: linear-gradient(135deg, rgba(255, 120, 40, 0.16), rgba(10, 6, 5, 0.95));
  border-color: rgba(255, 140, 60, 0.28);
  box-shadow: 0 0 20px rgba(255, 90, 20, 0.06);
}

html[data-theme="halloween"] .ext-launch-title {
  color: #e8d4c0;
}

html[data-theme="halloween"] .ext-row,
html[data-theme="halloween"] .ext-row:hover {
  background: rgba(14, 10, 8, 0.78);
  border-color: rgba(255, 140, 60, 0.12);
}

html[data-theme="halloween"] .ext-row:hover {
  background: rgba(24, 14, 10, 0.92);
  border-color: rgba(255, 140, 60, 0.24);
}

html[data-theme="halloween"] .ext-row--live {
  background: linear-gradient(90deg, rgba(255, 120, 40, 0.2), rgba(14, 10, 8, 0.88));
  border-color: rgba(255, 140, 60, 0.32);
}

html[data-theme="halloween"] .ext-row--sel {
  background: rgba(18, 12, 10, 0.9);
  box-shadow: inset 3px 0 0 var(--aqua-deep);
}

html[data-theme="halloween"] .ext-ava {
  background: rgba(8, 5, 4, 0.95);
  color: var(--aqua-bright);
  border-color: rgba(255, 140, 60, 0.22);
}

html[data-theme="halloween"] .ext-name {
  color: #e8d4c0;
}

html[data-theme="halloween"] .ext-status--live {
  color: #ffb347;
  background: rgba(255, 120, 40, 0.18);
  border-color: rgba(255, 140, 60, 0.32);
}

html[data-theme="halloween"] .ext-join {
  background: rgba(255, 120, 40, 0.1);
  color: var(--aqua-bright);
  border-color: rgba(255, 140, 60, 0.3);
}

html[data-theme="halloween"] .ext-foot {
  background: rgba(8, 5, 4, 0.9);
  border-top-color: rgba(255, 140, 60, 0.12);
}

html[data-theme="halloween"] .ext-foot-btn {
  background: rgba(16, 10, 8, 0.95);
  color: var(--muted);
  border-color: rgba(255, 140, 60, 0.16);
}

html[data-theme="halloween"] .ext-foot-btn:hover {
  color: #e8d4c0;
  border-color: rgba(255, 140, 60, 0.32);
}

html[data-theme="halloween"] .ext-foot-btn--primary {
  background: linear-gradient(135deg, #ffb347 0%, #ff8a3d 48%, #e85d04 100%);
  color: #1a0800;
  border-color: rgba(255, 180, 100, 0.5);
  box-shadow:
    0 6px 22px rgba(232, 93, 4, 0.5),
    0 0 0 1px rgba(255, 160, 80, 0.3);
}

html[data-theme="halloween"] .ext-foot-btn--primary:hover {
  color: #1a0800;
  border-color: rgba(255, 200, 140, 0.65);
  box-shadow:
    0 10px 30px rgba(232, 93, 4, 0.6),
    0 0 0 1px rgba(255, 180, 100, 0.4);
  filter: brightness(1.06);
}

html[data-theme="halloween"] .ext-panel__preview-badge {
  color: #FFB347;
  background: rgba(10, 6, 5, 0.85);
  border-color: rgba(255, 140, 60, 0.35);
}

/* ── 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-visual--windows {
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.12), rgba(0, 0, 0, 0.35));
}

html[data-theme="halloween"] .bento-win {
  background: #14100e;
  border-color: rgba(255, 140, 60, 0.45);
}

html[data-theme="halloween"] .bento-win__chrome {
  background: rgba(255, 120, 40, 0.15);
}

html[data-theme="halloween"] .bento-win__screen {
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.12), transparent 55%), #0e0a08;
}

html[data-theme="halloween"] .bento-win__tag {
  color: #e8d4c0;
}

html[data-theme="halloween"] .bento-win__meta {
  color: #8a7060;
}

html[data-theme="halloween"] .bento-win__cta {
  color: #1a0800;
}

html[data-theme="halloween"] .bento-visual--launch {
  background: linear-gradient(145deg, rgba(255, 138, 61, 0.1), rgba(0, 0, 0, 0.38));
}

html[data-theme="halloween"] .bento-launch-page {
  background: #14100e;
  border-color: rgba(255, 140, 60, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="halloween"] .bento-launch-page__bar {
  background: rgba(255, 120, 40, 0.12);
  border-bottom-color: rgba(255, 140, 60, 0.14);
}

html[data-theme="halloween"] .bento-launch-page__title {
  color: #e8d4c0;
}

html[data-theme="halloween"] .bento-launch-page__cta {
  color: #1a0800;
}

html[data-theme="halloween"] .bento-launch-alts li img {
  border-color: rgba(255, 140, 60, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="halloween"] .bento-launch-alts li span {
  background: #0e0a08;
  color: var(--aqua-bright);
  border-color: rgba(255, 140, 60, 0.3);
}

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"] .tl-num {
  background: radial-gradient(circle at 35% 30%, #1a120e, #0a0706);
  border-color: rgba(255, 140, 60, 0.5);
  color: #ffb347;
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.12), 0 4px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="halloween"] .tl-rail::after {
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.55), rgba(255, 140, 60, 0.06));
}

html[data-theme="halloween"] .tl-visual {
  background: linear-gradient(165deg, rgba(22, 14, 12, 0.95), rgba(10, 7, 6, 0.98)) !important;
  border-color: rgba(255, 140, 60, 0.14) !important;
  box-shadow: none !important;
}

html[data-theme="halloween"] .tl-visual__icon {
  background: rgba(255, 120, 40, 0.12);
  border: 1px solid rgba(255, 140, 60, 0.2);
  color: #ffb347;
}

html[data-theme="halloween"] .tl-visual__label {
  color: #c4a890;
}

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

html[data-theme="halloween"] .bento-icon {
  background: linear-gradient(165deg, rgba(32, 18, 12, 0.95), rgba(12, 8, 6, 0.98));
  border: 1px solid rgba(255, 138, 61, 0.42);
  color: #ffb347;
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 160, 0.14),
    inset 0 0 0 1px rgba(255, 140, 60, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.45);
  text-shadow: 0 0 20px rgba(255, 150, 60, 0.4);
}

html[data-theme="halloween"] .bento-card:hover .bento-icon {
  border-color: rgba(255, 160, 80, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.18),
    0 12px 32px rgba(255, 90, 20, 0.15),
    0 10px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme="halloween"] .bento-card:hover {
  border-color: rgba(255, 160, 80, 0.35);
  box-shadow: 0 24px 64px rgba(255, 100, 30, 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(255, 120, 40, 0.15);
  color: var(--aqua-bright);
  border-color: rgba(255, 140, 60, 0.3);
}
html[data-theme="halloween"] .showcase-points li {
  background: linear-gradient(165deg, rgba(22, 14, 12, 0.92), rgba(12, 8, 6, 0.96));
  border-color: rgba(255, 140, 60, 0.16);
  color: var(--muted);
}

html[data-theme="halloween"] .showcase-points li:hover {
  background: linear-gradient(165deg, rgba(32, 18, 14, 0.95), rgba(14, 9, 7, 0.98));
  border-color: rgba(255, 138, 61, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="halloween"] .showcase-points strong {
  color: #e8d4c0;
}

html[data-theme="halloween"] .showcase-points-icon {
  color: var(--aqua-bright);
  background: rgba(255, 120, 40, 0.14);
  border: 1px solid rgba(255, 140, 60, 0.22);
}

html[data-theme="halloween"] footer,
html[data-theme="halloween"] .site-foot {
  color: var(--muted);
  border-top-color: rgba(255, 140, 60, 0.12);
}

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

html[data-theme="halloween"] .nav-drawer__panel {
  background: rgba(8, 5, 4, 0.96);
  border-bottom-color: rgba(255, 140, 60, 0.15);
}

html[data-theme="halloween"] .nav-menu-btn {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 140, 60, 0.2);
}

html[data-theme="halloween"] .nav-menu-btn__bar {
  background: #C4A890;
}

html[data-theme="halloween"] .ext-demo-toast {
  background: rgba(14, 10, 8, 0.96);
  color: #E8D4C0;
  border-color: rgba(255, 140, 60, 0.25);
}

/* ── 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;
}

html[data-theme="halloween"] .theme-toggle {
  background: rgba(255, 120, 40, 0.1);
  border-color: rgba(255, 140, 60, 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, #FF9F43, #E85D04);
  color: #1A0800;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 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;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #f5e6b8, #d4a843 48%, #8a5a18 100%);
  box-shadow:
    0 0 48px rgba(255, 200, 120, 0.22),
    0 0 100px rgba(255, 140, 40, 0.12),
    inset -14px -10px 0 rgba(5, 3, 4, 0.4);
  animation: hw-moon-pulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hw-moon::before {
  content: "";
  position: absolute;
  inset: -120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.14) 0%, transparent 62%);
  z-index: -1;
}

.hw-moon::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(8, 5, 4, 0.22);
  top: 26%;
  left: 40%;
  box-shadow:
    1.1em 1.4em 0 -0.35em rgba(8, 5, 4, 0.16),
    -0.65em 1.6em 0 -0.45em rgba(8, 5, 4, 0.14),
    0.4em -0.5em 0 -0.2em rgba(8, 5, 4, 0.12);
}

.hw-moon--a {
  left: 6%;
  top: 12%;
  width: 88px;
  height: 88px;
  opacity: 0.9;
}

.hw-moon--b {
  right: 8%;
  top: 58%;
  width: 52px;
  height: 52px;
  opacity: 0.42;
  animation-delay: -2.5s;
}

.hw-moon--b::before {
  inset: -90%;
  opacity: 0.7;
}

@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; }

/* Bats */
.hw-bat {
  position: absolute;
  top: var(--hw-y, 20%);
  left: -8vw;
  width: 34px;
  height: 16px;
  opacity: 0.6;
  animation: hw-bat-fly var(--hw-dur, 20s) linear infinite;
  animation-delay: var(--hw-delay, 0s);
}
.hw-bat::before,
.hw-bat::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: #120a08;
  border-radius: 50% 50% 0 50%;
  box-shadow: 0 0 0 1px rgba(255, 140, 60, 0.08);
}
.hw-bat::before { left: 0; transform: rotate(-25deg); transform-origin: right center; animation: hw-wing 0.28s ease-in-out infinite alternate; }
.hw-bat::after { right: 0; border-radius: 50% 50% 50% 0; transform: rotate(25deg); transform-origin: left center; animation: hw-wing 0.28s ease-in-out infinite alternate-reverse; }

@keyframes hw-wing {
  from { transform: rotate(-38deg) scaleY(0.8); }
  to { transform: rotate(-8deg) scaleY(1.15); }
}
@keyframes hw-bat-fly {
  0% { transform: translate(0, 0) scale(0.7); }
  25% { transform: translate(30vw, -4vh) scale(1); }
  50% { transform: translate(55vw, 3vh) scale(0.9); }
  75% { transform: translate(80vw, -2vh) scale(1.05); }
  100% { transform: translate(112vw, 4vh) scale(0.75); }
}

/* 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%, #ff8a3d 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, #ff8a3d);
  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, #ff8a3d);
}
@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; }
}

/* ── 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;
  display: block;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 120, 30, 0.12), transparent 72%);
}

.pumpkin-stage__canvas:focus-visible {
  outline: 2px solid var(--aqua-bright);
  outline-offset: 4px;
}
.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(255, 138, 61, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(255, 138, 61, 0); }
}

@media (max-width: 960px) {
  .pumpkin-stage {
    max-width: 300px;
    margin-bottom: 16px;
  }
  .hw-moon--a {
    left: 4%;
    top: 8%;
    width: 64px;
    height: 64px;
  }
  .hw-moon--b {
    right: 5%;
    top: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.35;
  }
  .theme-toggle__btn { padding: 5px 9px; font-size: 11px; }
}

@media (max-width: 960px) {
  .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, .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(255, 140, 60, 0.12);
}

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

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

html[data-theme="halloween"] .splash h1 em,
html[data-theme="halloween"] .sec-head h2 em {
  background: linear-gradient(135deg, #FFB347 0%, #FF8A3D 55%, #E85D04 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(255, 138, 61, 0.3);
}

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

html[data-theme="halloween"] .ext-chrome span:first-child { background: #FF8A3D; }
html[data-theme="halloween"] .ext-chrome span:nth-child(2) { background: rgba(232, 93, 4, 0.55); }
html[data-theme="halloween"] .ext-chrome span:nth-child(3) { background: rgba(232, 93, 4, 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(255, 138, 61, 0.4);
}

html[data-theme="halloween"] .ext-join,
html[data-theme="halloween"] .ext-launch-btn,
html[data-theme="halloween"] .cta-band .btn-aqua {
  background: linear-gradient(135deg, #FFB347 0%, #FF8A3D 45%, #E85D04 100%);
  color: #1A0800;
  box-shadow: 0 12px 36px rgba(232, 93, 4, 0.4);
}

html[data-theme="halloween"] .faq-band {
  background: linear-gradient(145deg, rgba(36, 20, 14, 0.92), rgba(14, 9, 7, 0.98));
  border: 1px solid rgba(255, 140, 60, 0.18);
  box-shadow: var(--shadow-lg);
  color: #e8d4c0;
}

html[data-theme="halloween"] .faq-band-aside {
  background: transparent;
  box-shadow: none;
  color: inherit;
}

html[data-theme="halloween"] .ext-stats,
html[data-theme="halloween"] .faq-item {
  border-color: rgba(255, 140, 60, 0.18);
  background: rgba(26, 14, 12, 0.65);
}

html[data-theme="halloween"] .yt-player__play {
  background: linear-gradient(145deg, #FFB347, #E85D04);
  color: #1A0800;
  box-shadow: 0 12px 36px rgba(232, 93, 4, 0.5), 0 0 0 8px rgba(255, 138, 61, 0.15);
}

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

html[data-theme="halloween"] .splash::before {
  inset: 0;
  clip-path: none;
  background: radial-gradient(ellipse 90% 70% at 35% -10%, rgba(255, 138, 61, 0.11), transparent 62%);
  opacity: 1;
}

html[data-theme="halloween"] .splash-grid {
  position: relative;
  z-index: 1;
}

html[data-theme="halloween"] .ext-scene__halo {
  background: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(255, 138, 61, 0.28), rgba(255, 100, 30, 0.06) 50%, transparent 72%);
  opacity: 0.7;
}

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

html[data-theme="halloween"] .faq-band-aside .btn {
  background: rgba(255, 120, 40, 0.12);
  color: var(--aqua-bright);
  border: 1px solid rgba(255, 140, 60, 0.35);
  box-shadow: none;
}

html[data-theme="halloween"] .faq-band-aside .btn:hover {
  background: rgba(255, 120, 40, 0.22);
  border-color: rgba(255, 160, 80, 0.5);
}

html[data-theme="halloween"] .dl-toast__wrap {
  background: rgba(14, 10, 8, 0.96);
  border-color: rgba(255, 140, 60, 0.22);
}

html[data-theme="halloween"] .dl-toast__line {
  background: rgba(255, 140, 60, 0.1);
}

html[data-theme="halloween"] .dl-toast__line-fill {
  background: linear-gradient(90deg, #ffb347, #e85d04);
}

html[data-theme="halloween"] .dl-toast__label {
  color: #e8d4c0;
}

html[data-theme="halloween"] .dl-toast__icon {
  color: var(--aqua-bright);
  background: rgba(255, 120, 40, 0.12);
  border-color: rgba(255, 140, 60, 0.28);
}

html[data-theme="halloween"] .ext-download.is-dl-active {
  animation-name: dl-btn-pulse;
}

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 {
  filter: none;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35), 0 8px 24px rgba(232, 93, 4, 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);
}
