/* ============================================================
   GRUMPYS UNDERGROUND — THANKSGIVING / AUTUMN SKIN (STAGED)
   ------------------------------------------------------------
   Staged 2026-11-02 for the Captain's approval. NOT live.

   This file is the whole skin. It loads AFTER the site's main
   <style> block and only overrides theme-level properties:
   palette variables, a few hard-coded glow colors, the themed
   border frame, and the falling-leaves overlay styles.

   TO REMOVE THE SKIN: delete the <link> to this file, the
   <div class="tg-frame">, and the falling-leaves.js <script>
   tag from index.html. Nothing else changes.
   ============================================================ */

/* ---------- Autumn palette ---------- */
:root {
  --bg: #150c05;
  --surface: #1e1108;
  --surface-2: #281809;
  --surface-3: #33200d;
  --ink: #fff6e8;
  --muted: #dec49c;
  --line: rgba(255, 219, 165, .17);
  --line-strong: rgba(255, 219, 165, .34);
  --acid: #f2a81d;        /* harvest gold (was acid green) */
  --cyan: #7d9b4e;        /* deep olive green (was cyan) */
  --pink: #e8641c;        /* burnt orange (was hot pink) */
  --hot-pink: #f58a3c;    /* light burnt orange */
  --amber: #ffc95e;
  --black: #0c0602;
  --shadow: 0 30px 90px rgba(0, 0, 0, .62);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0502;
    --surface: #130a04;
    --surface-2: #1a0f05;
    --surface-3: #241606;
    --ink: #fff8ee;
    --muted: #d8bf9a;
    --line: rgba(255, 224, 178, .15);
    --line-strong: rgba(255, 224, 178, .3);
    --acid: #ffb52e;
    --cyan: #8fae57;
    --pink: #f0731f;
    --hot-pink: #ff9a4d;
    --amber: #ffd06e;
  }
}

/* ---------- Warm ember background (replaces pink/cyan glows) ---------- */
body {
  background:
    radial-gradient(circle at 15% 18%, rgba(232, 100, 28, .07), transparent 24rem),
    radial-gradient(circle at 86% 42%, rgba(125, 155, 78, .055), transparent 28rem),
    radial-gradient(circle, rgba(255, 190, 80, .56) 0 1px, transparent 1.5px) 17px 29px / 149px 173px,
    radial-gradient(circle, rgba(255, 205, 110, .42) 0 1.7px, transparent 2.3px) 83px 101px / 263px 227px,
    radial-gradient(circle, rgba(240, 168, 29, .3) 0 2.6px, transparent 3.4px) 191px 47px / 397px 359px,
    radial-gradient(circle, rgba(255, 220, 150, .2) 0 4px, transparent 5px) 311px 211px / 619px 541px,
    repeating-linear-gradient(112deg, rgba(255,255,255,.012) 0 1px, transparent 1px 7px),
    var(--bg);
}

/* ---------- Warm the hero ---------- */
.hero::before { background-color: #0d0703; }
.hero-light {
  background:
    linear-gradient(107deg, transparent 0 69%, rgba(255, 190, 80, .16) 70%, transparent 73%),
    linear-gradient(78deg, transparent 0 58%, rgba(232, 100, 28, .13) 59%, transparent 63%);
}
h1 { text-shadow: 0 0 44px rgba(232, 100, 28, .22); }
h1 .underground {
  text-shadow: 5px 5px 0 rgba(232, 100, 28, .68), -3px -2px 0 rgba(125, 155, 78, .4);
}
@media (max-width: 760px) {
  h1 .underground {
    text-shadow: 3px 3px 0 rgba(232, 100, 28, .8), -2px -1px 0 rgba(125, 155, 78, .45);
  }
}

/* ---------- Seasonal caption (added 2026-11-02, the Captain's words) ---------- */
.tg-caption {
  margin: 14px 0 4px;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--acid);
  text-shadow: 0 0 18px rgba(242, 168, 29, .45), 2px 2px 0 rgba(232, 100, 28, .5);
}

/* ---------- Hard-coded pink glows -> burnt orange ---------- */
.live-strip::after {
  background:
    linear-gradient(100deg, rgba(232, 100, 28, .13), transparent 50%),
    var(--surface);
}
.venue-band {
  background:
    linear-gradient(90deg, transparent, rgba(232, 100, 28, .06) 50%, transparent),
    var(--surface-2);
}
.watch-live { box-shadow: 9px 9px 0 rgba(232, 100, 28, .16); }
.booking-panel {
  background:
    linear-gradient(115deg, rgba(242, 168, 29, .09), transparent 44%),
    var(--surface-2);
}

/* ---------- Themed border: autumn frame + leaf garland ---------- */
.tg-frame {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  border: 5px solid;
  border-image: linear-gradient(160deg, #8a4b1f, #f2a81d 30%, #b4551d 55%, #7d9b4e 80%, #8a4b1f) 1;
  box-shadow: inset 0 0 120px rgba(60, 30, 5, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='30' viewBox='0 0 144 30'%3E%3Cg%3E%3Cpath transform='translate(24 3) rotate(-18)' fill='%23e8641c' d='M0 0C7 3 9 12 0 22C-9 12-7 3 0 0Z'/%3E%3Cpath transform='translate(72 2) rotate(12)' fill='%23f2a81d' d='M0 0C7 3 9 12 0 22C-9 12-7 3 0 0Z'/%3E%3Cpath transform='translate(120 4) rotate(-9)' fill='%237d9b4e' d='M0 0C7 3 9 12 0 22C-9 12-7 3 0 0Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 24px;
}
@media (max-width: 760px) {
  .tg-frame { border-width: 3px; background-size: auto 17px; }
}

/* ---------- Falling leaves (elements injected by falling-leaves.js) ---------- */
.leaf-sky {
  position: fixed;
  inset: 0;
  z-index: 79;
  overflow: hidden;
  pointer-events: none;
}
.leaf {
  position: absolute;
  top: -6vh;
  left: var(--x);
  width: var(--size);
  color: var(--c);
  opacity: var(--o);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45));
  animation: leaf-fall var(--dur) linear var(--delay) infinite;
  will-change: transform;
}
.leaf svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  animation: leaf-sway var(--sway-dur) ease-in-out var(--delay) infinite alternate;
}
.leaf-sky.leaves-paused .leaf,
.leaf-sky.leaves-paused .leaf svg { animation-play-state: paused; }

@keyframes leaf-fall {
  0%   { transform: translate3d(0, -6vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)); }
}
@keyframes leaf-sway {
  from { transform: rotate(-38deg) scaleX(1); }
  50%  { transform: rotate(10deg) scaleX(.55); }
  to   { transform: rotate(42deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .leaf-sky { display: none; }
}
