/* ==========================================================================
   halloween.css · "Lights Out" seasonal skin, Halloween 2026
   Every rule is scoped to html.halloween, which /seasonal.js only sets inside
   the skin's date window, so outside it this file does nothing. Linked from
   index.html and the four legal pages.

   The site's own colors are tokens, so the skin is mostly a token swap. The
   rest covers the few places that hardcode a light color, and the buttons
   that sit dark text on orange (the site's --ink turns light here, so those
   get pinned back to a dark ink).
   ========================================================================== */

html.halloween {
  color-scheme: dark;
  --hw-on-orange: #140F08;

  /* index.html tokens */
  --paper: #0F0D0B;
  --card: #16130F;
  --wash: #1A1612;
  --sand: #14110E;
  --line: #2C261F;
  --line-soft: #221D18;
  --ink: #EFE7D8;
  --ink-dim: #BDB3A2;
  --ash: #A39886;
  --btc-deep: #F7A440;     /* small orange text, now on dark: 8:1 */
  --btc-accent: #F7931A;
  --btc-glow: rgba(247, 147, 26, 0.22);
  --red: #F0645E;
  --green: #4ADE80;
  --mark-bg: #F7931A;      /* nav brand mark goes pumpkin */
  --mark-fg: #0F0D0B;
  --mesh-rgb: 247, 147, 26; /* background mesh lines become faint embers */
  --mesh-max: 0.16;

  /* legal.css tokens (its own names, same values) */
  --paper-deep: #14110E;
  --ink-soft: #BDB3A2;
  --ink-faint: #A39886;
  --rule: #2C261F;
  --orange-deep: #F7A440;
}
html.halloween body { background: var(--paper); color: var(--ink); }
html.halloween ::selection { background: var(--btc, #F7931A); color: var(--hw-on-orange); }

/* ---------- banner + headline extras (hidden by the [hidden] attribute
   everywhere else, so they stay out of sight even if this file fails) ---- */
html.halloween .hw-bar[hidden] { display: block; }
html.halloween .hw-only[hidden] { display: inline; }
.hw-bar {
  background: #F7931A; color: #140F08;
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--ls);
  text-transform: uppercase; text-align: center;
  padding: 9px 16px;
}

/* the "real Bitcoin" line glows like a carved pumpkin and flickers now and then */
html.halloween .collection-lede .it {
  color: #F7931A;
  text-shadow: 0 0 18px rgba(247, 147, 26, 0.55), 0 0 42px rgba(247, 147, 26, 0.25);
}
@media (prefers-reduced-motion: no-preference) {
  html.halloween .collection-lede .it { animation: hw-flicker 5.5s infinite; }
}
@keyframes hw-flicker {
  0%, 46%, 48%, 53%, 100% { opacity: 1; }
  47% { opacity: 0.55; }
  52% { opacity: 0.75; }
}

/* ---------- dark text on orange fills ---------- */
html.halloween .wait-row button,
html.halloween .nav-bag:not(.empty) .bag-n,
html.halloween .prod-btn.live,
html.halloween .prod-btn.live:hover,
html.halloween .prod-btn.live[disabled]:hover,
html.halloween .wait-row button[disabled]:hover,
html.halloween .btn.solid,
html.halloween .btn.solid:hover { color: var(--hw-on-orange); }

/* ---------- hardcoded light overlays ---------- */
html.halloween .prod-vis .chip,
html.halloween .pdp-shot .chip { background: rgba(15, 13, 11, 0.86); }
html.halloween .prod-vis.has-img .sku { background: rgba(15, 13, 11, 0.82); }
html.halloween .thumb-row { background: rgba(15, 13, 11, 0.78); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
@media (max-width: 640px) {
  html.halloween .nav-links { background: rgba(15, 13, 11, 0.98); }
}

/* swatches: the dark ones need an edge to show on a dark page */
html.halloween .sw.black,
html.halloween .sw.navy { border-color: #5A5146; }
