/* arena-fx.css (2026-11-15, Worker-Arena-Spice): the visual layer for /arena and /arena/crew. VISUAL ONLY:
   no form field, consent text, link, legal line or page order changes. Nothing here changes layout (only
   backgrounds, shadows, opacity, transforms on decorative layers), so there is no layout shift.
   Levels are classes on <html>, set by arena-fx.js from ?fx=0|1|2|3 (default in that file):
     fx-l1 "polish"  CSS only: LED stripe field behind the header (the flyer's purple zebra on a dot grid, stepped
                     like a real LED wall), slow CRT roll band, gold glow on the main buttons, a breathing glow on
                     "Sign up", lineup rows that light up as they scroll in.
     fx-l2 "arcade"  + the flyer's own zebra-LED shader (a cheap port) in a fixed canvas behind everything,
                     coin-drop press on the buttons, a small pixel burst on the thank-you state.
     fx-l3 "spicy"   + the shader swirls under a finger / follows tilt, the set playing now lights up on show
                     night, an attract-mode marquee in the top gutter.
   fx-still = prefers-reduced-motion: every animation off, the shader draws one still frame.
   Text that sits on the field gets a dark scrim (background + feathered shadow) so contrast stays AA. */

.fx-bg, .fx-field, .fx-burst, .fx-marquee { pointer-events: none; }

/* ── Level 1: LED stripe field behind the header ─────────────────────────── */
.fx-field {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: min(1000px, 125vh);
  overflow: hidden;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(#000 0 55%, transparent 100%);
          mask-image: linear-gradient(#000 0 55%, transparent 100%);
}
.fx-stripes {
  position: absolute; inset: 0;
  /* stripes are the black bands on top of a violet / magenta / teal wash, like the flyer's pelt */
  background-image:
    linear-gradient(135deg, transparent 0 22%, #000 22% 50%, transparent 50% 72%, #000 72%),
    linear-gradient(100deg, #6a2cc8 0%, #b0207e 45%, #6a2cc8 70%, #127e8a 100%);
  background-size: 135px 135px, 100% 100%;
  /* the dot grid: each LED is a round dot, 9 px pitch; the stripes move a whole dot per step */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 2.4px, rgba(0,0,0,.35) 3px, transparent 3.6px);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 2.4px, rgba(0,0,0,.35) 3px, transparent 3.6px);
  -webkit-mask-size: 9px 9px; mask-size: 9px 9px;
  animation: fx-drift 7.5s steps(15) infinite;
}
@keyframes fx-drift { to { background-position: 135px 0, 0 0; } }

/* the CRT roll: one soft wide band drifting down the glass, never a flash */
.fx-roll {
  position: absolute; left: 0; right: 0; top: -30vh; height: 30vh;
  background: linear-gradient(transparent, rgba(255, 240, 210, 0.035) 50%, transparent);
  animation: fx-roll 9s linear infinite;
  will-change: transform;
}
@keyframes fx-roll { to { transform: translateY(160vh); } }
.fx-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
/* crew page has its own scanlines on body::before; arena has .crt. Our layer sits just above them. */

/* Scrims: dark panel behind text that sits on the field (L1: the header; L2+: everything). */
html.fx-l1 .hero > .eyebrow, html.fx-l1 .hero > .venue, html.fx-l1 .hero > .addr,
html.fx-l1 .hero > .tagline, html.fx-l1 .hero > .detail-line, html.fx-l1 .topbar a,
html.fx-l1 #ask > .eyebrow, html.fx-l1 #ask > .lead, html.fx-l1 .thanks > * {
  background: rgba(0, 0, 0, 0.84);
  box-shadow: 0 0 12px 8px rgba(0, 0, 0, 0.84);
}
html.fx-l1 .hero > h1.px .line, html.fx-l1 .hero > .date, html.fx-l1 #ask > h1 {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 16px 10px rgba(0, 0, 0, 0.6);
}

/* footer "/" separators were #4a4a4a on black (2.1:1 on today's page too); lift them to the faint grey */
html.fx-l1 footer .sep { color: #8a8577; }

/* Buttons: gold glow, breathing on the hero "Sign up" (an affordance, two elements animate at most) */
html.fx-l1 .cta, html.fx-l1 button[type="submit"] { position: relative; }
html.fx-l1 .cta::before, html.fx-l1 button[type="submit"]::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  box-shadow: 0 0 22px 4px rgba(239, 196, 79, 0.55);
  opacity: 0.55;
}
html.fx-l1 .cta, html.fx-l1 button[type="submit"] { isolation: isolate; }
html.fx-l1 .cta::before { animation: fx-breathe 2.4s ease-in-out infinite; }
@keyframes fx-breathe { 50% { opacity: 1; } }
html.fx-l1 button[type="submit"]:disabled::before { opacity: 0; }

/* Lineup rows light up as they scroll in (only rows below the fold at load: nothing visible ever hides) */
html.fx-l1 .tl li.fx-pre { opacity: 0; transform: translateX(-10px); }
html.fx-l1 .tl li.fx-in {
  opacity: 1; transform: none;
  transition: opacity .45s ease-out, transform .45s ease-out;
  transition-delay: var(--fx-d, 0s);
}
html.fx-l1 .tl li.fx-in .dot { animation: fx-dot .9s steps(3) var(--fx-d, 0s) 1; }
@keyframes fx-dot { 0%, 66% { background: var(--gold); box-shadow: 0 0 12px 2px rgba(239, 196, 79, .7); } }

/* ── Level 2: the shader canvas + scrims everywhere ──────────────────────── */
.fx-canvas {
  position: absolute; left: 0; top: 0;
  image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: 0;
  transition: opacity .8s ease-out;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 34%, rgba(0,0,0,.4) 42%, transparent 56%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0 34%, rgba(0,0,0,.4) 42%, transparent 56%);
}
.fx-canvas.on { opacity: var(--fx-op, 0.62); }
.fx-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
html.fx-gl .fx-field { display: none; }

html.fx-gl .wrap > section > h2.px, html.fx-gl .h2-sub, html.fx-gl .tl .num, html.fx-gl .tl .who,
html.fx-gl .wrap > section > .tagline, html.fx-gl .steps li, html.fx-gl .free-line,
html.fx-gl .signup-col > h2.px, html.fx-gl footer, html.fx-gl .between > *,
html.fx-gl .thanks > * {
  background: rgba(0, 0, 0, 0.86);
  box-shadow: 0 0 12px 8px rgba(0, 0, 0, 0.86);
}
html.fx-gl .tl::before { box-shadow: 0 0 0 2px #000, 0 0 10px 6px rgba(0, 0, 0, .8); }
/* panels let 12 % of the field through; push them to near-solid so dim text inside keeps AA */
html.fx-gl .panel { background: rgba(0, 0, 0, 0.93); }

/* coin drop on press: a pixel coin falls into the slot, the button flashes once */
html.fx-l2 .fx-coin::after {
  content: ""; position: absolute; left: 50%; top: -18px; width: 10px; height: 14px; margin-left: -5px;
  background: #ffe9a6; box-shadow: inset -3px 0 0 var(--gold-dk), 0 0 0 2px #000;
  animation: fx-coin .38s steps(5) 1 forwards;
}
html.fx-l2 .fx-coin { animation: fx-flash .38s steps(2) 1; }
@keyframes fx-coin { to { transform: translateY(26px); opacity: 0; } }
@keyframes fx-flash { 50% { filter: brightness(1.35); } }

.fx-burst { position: fixed; z-index: 5; width: 0; height: 0; }
.fx-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--c, #efc44f); box-shadow: 0 0 0 2px #000; }

/* ── Level 3: now playing + attract marquee ─────────────────────────────── */
html.fx-l3 .tl li.fx-now .dot { background: var(--gold); animation: fx-blink 1s steps(2) infinite; }
html.fx-l3 .tl li.fx-now .who .px { color: #fff6d8; text-shadow: 0 0 10px rgba(239, 196, 79, .9), 0 0.12em 0 #000; }
html.fx-l3 .tl li.fx-now .tag { position: relative; box-shadow: 0 0 0 2px var(--gold), 0 0 14px 2px rgba(239, 196, 79, .6); }
html.fx-l3 .tl li.fx-now .tag::after {
  content: "On now"; position: absolute; left: 100%; top: 50%; margin: -9px 0 0 10px;
  font-family: var(--px); font-size: 9px; line-height: 12px; color: #000; background: var(--gold); padding: 3px 5px;
  white-space: nowrap; animation: fx-blink2 1s steps(2) infinite;
}
@keyframes fx-blink2 { 50% { background: #fff6d8; } }
@keyframes fx-blink { 50% { background: #000; } }

.fx-marquee {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 20px; overflow: hidden;
  background: #000; border-bottom: 2px solid #3a1060;
  font-family: var(--px); font-size: 9px; line-height: 18px; color: var(--gold);
  text-transform: uppercase; white-space: nowrap;
}
.fx-marquee span { display: inline-block; padding-left: 100%; animation: fx-marq 26s linear infinite; will-change: transform; }
.fx-marquee b { color: #ff5fc0; font-weight: 400; }
@keyframes fx-marq { to { transform: translateX(-100%); } }

/* ── Reduced motion: static everything ──────────────────────────────────── */
html.fx-still .fx-stripes, html.fx-still .fx-roll, html.fx-still .fx-marquee span,
html.fx-still .cta::before, html.fx-still .tl li .dot { animation: none !important; }
html.fx-still .fx-roll { display: none; }
html.fx-still .fx-marquee span { padding-left: 16px; }
html.fx-still .tl li.fx-pre { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx-stripes, .fx-roll, .fx-marquee span, html.fx-l1 .cta::before { animation: none !important; }
}
