/* XConnect Halloween 2026: an optional layer over the live cabinet design. */
html[data-xc-season="halloween"] {
  --color-accent-50: 255, 248, 238 !important;
  --color-accent-100: 255, 235, 210 !important;
  --color-accent-200: 255, 212, 167 !important;
  --color-accent-300: 255, 187, 122 !important;
  --color-accent-400: 255, 164, 84 !important;
  --color-accent-500: 251, 139, 53 !important;
  --color-accent-600: 242, 123, 43 !important;
  --color-accent-700: 190, 81, 24 !important;
  --color-accent-800: 143, 57, 24 !important;
  --color-accent-900: 91, 35, 25 !important;
  --color-accent-950: 48, 22, 23 !important;
  --color-on-accent: 28, 16, 11 !important;
  --xc-line: rgba(205, 176, 224, 0.22);
  --xc-line-strong: rgba(220, 183, 237, 0.29);
  --xc-line-hi: rgba(241, 176, 113, 0.42);
  --xc-line-hover: rgba(255, 180, 103, 0.62);
  --xc-grid-dot: rgba(198, 166, 221, 0.07);
}
html.dark[data-xc-season="halloween"] {
  --color-dark-950: 12, 11, 19 !important;
  --color-dark-900: 18, 16, 27 !important;
  --color-dark-850: 23, 20, 34 !important;
  --color-dark-800: 31, 26, 43 !important;
  --color-dark-700: 48, 39, 62 !important;
  --color-dark-600: 78, 65, 92 !important;
  --color-dark-500: 155, 145, 169 !important;
  --color-dark-400: 185, 176, 198 !important;
  --color-dark-300: 210, 204, 220 !important;
  --color-dark-200: 230, 225, 237 !important;
  --color-dark-100: 242, 238, 247 !important;
  --color-dark-50: 251, 247, 255 !important;
  background-color: #0c0b13;
}
html.dark[data-xc-season="halloween"] body { background-color: #0c0b13; }
html[data-xc-season="halloween"] .xc-auth-glow { opacity: 0.35; }
html[data-xc-season="halloween"] .xc-page-glow { opacity: 0.3; }
html[data-xc-season="halloween"] :is(.xc-cta, .btn-primary) {
  color: #21130c;
  text-shadow: none;
  box-shadow: 0 5px 22px -12px rgba(255, 155, 64, 0.55);
}
html[data-xc-season="halloween"] :is(button, a)[class~="bg-accent-600"],
html[data-xc-season="halloween"] :is(button, a)[class~="bg-accent-500"] { color: #21130c; }
html[data-xc-season="halloween"] .xc-brandmark {
  border-color: rgba(255, 172, 85, 0.55);
  box-shadow: inset 0 0 12px rgba(255, 143, 49, 0.05);
}
html[data-xc-season="halloween"] .xc-header {
  background-color: rgba(12, 11, 19, 0.92);
  border-bottom-color: rgba(202, 170, 224, 0.16);
}
html[data-xc-season="halloween"] .xc-sheet { background-image: none; }
html.light[data-xc-season="halloween"] {
  --color-accent-400: 165, 63, 17 !important;
  --color-accent-500: 162, 60, 15 !important;
  --color-accent-600: 159, 57, 13 !important;
  --color-on-accent: 255, 255, 255 !important;
  --xc-line: rgba(89, 57, 104, 0.2);
  --xc-line-strong: rgba(89, 57, 104, 0.3);
  --xc-line-hi: rgba(158, 73, 29, 0.42);
}
html.light[data-xc-season="halloween"] :is(.xc-cta, .btn-primary),
html.light[data-xc-season="halloween"] :is(button, a)[class~="bg-accent-600"],
html.light[data-xc-season="halloween"] :is(button, a)[class~="bg-accent-500"] { color: #fff; }
html.light[data-xc-season="halloween"] .xc-header { background-color: rgba(250, 247, 252, 0.94); }
#xc-halloween-decor { display: none; }
html[data-xc-season="halloween"] #xc-halloween-decor {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 21;
}
.xc-halloween-web {
  position: absolute;
  top: 56px;
  width: 148px;
  height: 148px;
  background: url('/season/halloween-2026/web.svg') center / contain no-repeat;
  opacity: 0.38;
}
.xc-halloween-web-left { left: 0; }
.xc-halloween-web-right { right: 0; transform: scaleX(-1); }
.xc-halloween-pumpkins {
  position: absolute;
  width: min(210px, calc((100vw - 1120px) / 2));
  height: auto;
  right: 12px;
  bottom: 4px;
  object-fit: contain;
  animation: xc-halloween-arrive 550ms ease-out both;
}
html.light .xc-halloween-web { filter: brightness(0.42) saturate(0.6); }
#xc-halloween-toggle {
  position: fixed;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px 0 5px;
  border: 1px solid rgba(174, 148, 195, 0.32);
  border-radius: 8px;
  background: #181321;
  color: #ddd4e7;
  font: 500 11px/1 Manrope, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
#xc-halloween-toggle img { width: 30px; height: 30px; object-fit: contain; }
#xc-halloween-toggle[aria-pressed="false"] { background: #171720; color: #b9b3c2; }
#xc-halloween-toggle:hover { border-color: #ffa454; background: #24182b; }
#xc-halloween-toggle:focus-visible { outline: 2px solid #ffa454; outline-offset: 3px; }
@keyframes xc-halloween-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1279px) {
  .xc-halloween-web { width: 80px; height: 80px; opacity: 0.23; }
  .xc-halloween-pumpkins { display: none; }
}
@media (max-width: 1023px) {
  .xc-halloween-web { top: 0; width: 64px; height: 64px; opacity: 0.23; }
  #xc-halloween-toggle {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 12px 16px calc(90px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .xc-halloween-pumpkins { animation: none; }
  #xc-halloween-toggle { transition: none; }
}
@media print {
  #xc-halloween-decor, #xc-halloween-toggle { display: none !important; }
}
