/* BAGHOLDER CAM
   Someone in bed at 2am, phone at arm's length, watching a security feed
   of an empty store. One dark screen, mono overlays, one hot red. */

:root {
  --ink: #0A0908;
  --panel: #14110E;
  --panel-2: #1B1712;
  --line: #2A241D;
  --line-2: #3A3228;
  --fg: #E9DFC3;
  --fg-2: #A89E84;
  --red: #FF3B2F;
  --red-deep: #8F1D16;
  --yellow: #F2C21A;
  --yellow-deep: #8A6C07;
  --burlap: #8A7350;
  --burlap-2: #C9AD7F;

  --display: "Caprasimo", "Cooper Black", "Rockwell Extra Bold", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --hh: 60px;
  --gut: clamp(16px, 3vw, 36px);
  --max: 1440px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --z-base: 1;
  --z-over: 2;
  --z-sticky: 50;
  --z-toast: 80;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: var(--z-toast);
  background: var(--yellow); color: var(--ink); padding: 12px 16px;
  font-family: var(--mono); font-weight: 600; text-decoration: none; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── type ─────────────────────────────────────────────────────── */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin-top: 16px;
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  font-family: var(--mono); font-weight: 500; font-size: .875rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #FFD43F; }
.btn-line { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--fg-2); background: var(--panel-2); }

/* ── top bar ──────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--hh);
  display: flex; align-items: center; gap: 10px;
  padding-inline: var(--gut);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.bar-brand {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; text-decoration: none; flex-shrink: 0;
}
.bar-brand img { width: 34px; height: 34px; border-radius: 50%; }
.bar-name { font-family: var(--mono); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; white-space: nowrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 7px;
  font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .08em;
  color: var(--fg);
  border: 1px solid var(--red); border-radius: 4px;
  flex-shrink: 0;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 47, .7); }
  70% { box-shadow: 0 0 0 7px rgba(255, 59, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 47, 0); }
}
.ca-chip {
  margin-left: auto;
  min-height: 44px; padding: 0 14px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500;
  background: var(--panel); color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.ca-chip:hover { color: var(--fg); border-color: var(--fg-2); }
.ca-chip.is-live { color: var(--yellow); border-color: var(--yellow); }
.bar-links { display: none; }
.bar-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-family: var(--mono); font-size: .8125rem; color: var(--fg-2); text-decoration: none;
}
.bar-links a:hover { color: var(--fg); }
@media (max-width: 479px) {
  .bar { gap: 8px; }
  .bar-name { font-size: .6875rem; line-height: 1.15; }
  .bar-name span { display: block; }
  .ca-chip { padding: 0 11px; font-size: .6875rem; }
}
@media (min-width: 900px) {
  .bar-links { display: flex; }
}

/* ── 1. the stream ────────────────────────────────────────────── */
.stream {
  max-width: var(--max);
  margin-inline: auto;
  padding: 20px var(--gut) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "h1" "player" "info" "chat";
  gap: 16px;
}
.stream-h1 {
  grid-area: h1;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.75rem, 12vw, 4rem);
  line-height: .95;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.player { grid-area: player; min-width: 0; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050404 url("cam-hero-960.webp") center / cover no-repeat;
  border-radius: 10px 10px 0 0;
  isolation: isolate;
}
.push { position: absolute; inset: 0; transform-origin: 50% 55%; }
.js .push { animation: pushIn 40s ease-in-out infinite alternate; }
@keyframes pushIn { from { transform: scale(1); } to { transform: scale(1.12); } }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player[data-cam="07"] .cam-02,
.player[data-cam="02"] .cam-07 { visibility: hidden; }
.screen.is-flicker .push { filter: brightness(.72) contrast(1.15); }
.screen.is-flicker2 .push { filter: brightness(1.12); }

.noise {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated;
  opacity: .22; mix-blend-mode: screen;
  pointer-events: none; z-index: var(--z-base);
}
.screen.is-cut .noise { opacity: 1; mix-blend-mode: normal; background: #6d6a64; }
.scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: var(--z-base);
  background: linear-gradient(rgba(0, 0, 0, .22) 50%, rgba(0, 0, 0, 0) 50%) 0 0 / 100% 3px;
  opacity: .55;
}
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: var(--z-base);
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
}

.ov {
  position: absolute; z-index: var(--z-over);
  display: flex; gap: .9em; align-items: center;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(9px, 1.05vw, 13px); letter-spacing: .06em;
  color: #F4EDD9;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .8);
  pointer-events: none; white-space: nowrap;
}
.ov-tl { top: 3.5%; left: 3%; }
.ov-tr { top: 3.5%; right: 3%; }
.ov-bl { bottom: 4%; left: 3%; }
.ov-br { bottom: 4%; right: 3%; }
.ov .neg { color: #FF6A60; }
.rec { display: inline-flex; align-items: center; gap: .45em; color: #FF6A60; font-weight: 600; }
.rec-dot { width: .75em; height: .75em; border-radius: 50%; background: var(--red); box-shadow: 0 0 6px var(--red); }
.js .rec-dot { animation: recBlink 1.2s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: 0; } }
.ov-bl.is-alarm { color: var(--yellow); }

/* lower-third alert: slides in from the left, two beats, slides out */
.alert {
  position: absolute; z-index: var(--z-over);
  left: 3%; top: 17%;
  max-width: 33%;
  padding: .7em .9em .75em;
  background: rgba(10, 9, 8, .88);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--red);
  border-radius: 4px;
  font-size: clamp(9px, 1.15vw, 14px);
  line-height: 1.35;
  pointer-events: none;
  transform: translateX(0);
  transition: transform .5s var(--ease-out), opacity .35s;
}
.alert-a { font-family: var(--mono); font-weight: 600; letter-spacing: .05em; color: var(--yellow); }
.alert-b { margin-top: .3em; color: var(--fg); transition: opacity .25s, transform .35s var(--ease-out); }
.js .alert:not(.is-on) { transform: translateX(calc(-100% - 12vw)); opacity: 0; }
.js .alert:not(.is-b) .alert-b { opacity: 0; transform: translateY(4px); }
@media (min-width: 640px) { .alert { top: auto; bottom: 16%; } }

.controls {
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px;
  min-height: 52px;
  background: var(--panel);
  border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 10px 10px;
}
.cams { display: flex; gap: 4px; }
.cam-btn {
  min-height: 44px; min-width: 44px; padding: 0 12px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  background: transparent; color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.cam-btn:hover { color: var(--fg); border-color: var(--fg-2); }
.cam-btn[aria-pressed="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.livebar { position: relative; flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.livebar-fill { position: absolute; inset: 0; background: var(--red); border-radius: 2px; }
.livebar-head {
  position: absolute; right: -5px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 47, .25);
}
.controls-live { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .08em; color: #FF6A60; padding-left: 4px; }

.info {
  grid-area: info;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px;
  align-items: start; min-width: 0;
}
.info-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--red); }
.stream-title {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem); line-height: 1.4; letter-spacing: .01em;
}
.stream-desc { margin-top: 8px; max-width: 62ch; color: var(--fg-2); text-wrap: pretty; }
.stream-stats {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: .9375rem; color: var(--fg-2);
}
.stream-stats b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.stat { display: inline-flex; align-items: baseline; gap: .45em; }
#viewers { color: #FF6A60; }
.stream-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ── 2. chat ──────────────────────────────────────────────────── */
.chat {
  grid-area: chat;
  display: flex; flex-direction: column;
  height: 300px; min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.chat-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-title { font-family: var(--mono); font-weight: 600; font-size: .75rem; letter-spacing: .1em; color: var(--fg-2); }
.chat-pin { padding: 9px 14px 10px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: .875rem; line-height: 1.4; }
.chat-pin-by { font-family: var(--mono); font-size: .6875rem; color: var(--fg-2); margin-bottom: 3px; }
.chat-log {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  list-style: none; padding: 10px 14px 6px;
  font-size: .875rem; line-height: 1.45;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.chat-log:focus-visible { outline-offset: -3px; }
.msg { padding: 3px 0; overflow-wrap: anywhere; }
.msg.is-new { animation: msgIn .28s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg .emote-inline { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin: -4px 2px 0; }
.u { font-family: var(--mono); font-weight: 600; font-size: .8125rem; }
.u-c1 { color: var(--yellow); }
.u-c2 { color: var(--burlap-2); }
.u-c3 { color: var(--fg); }
.u-c4 { color: #FF8A80; }
.u-mod { color: var(--ink); background: var(--yellow); padding: 0 4px; border-radius: 3px; }
.u-bot { color: #FF6A60; }
.u-you { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.colon { color: var(--fg-2); }
.chat-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-in {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  font-family: var(--sans); font-size: 1rem;
  color: var(--fg); background: var(--ink);
  border: 1px solid var(--line-2); border-radius: 6px;
}
.chat-in::placeholder { color: var(--fg-2); opacity: 1; }
.chat-in:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: transparent; }
.chat-send {
  min-height: 44px; min-width: 64px; padding: 0 14px;
  font-family: var(--mono); font-weight: 600; font-size: .8125rem;
  background: var(--yellow); color: var(--ink);
  border: 0; border-radius: 6px; cursor: pointer;
}
.chat-send:active { transform: scale(.97); }

@media (min-width: 1000px) {
  .stream {
    grid-template-columns: auto minmax(0, 1fr) clamp(300px, 27vw, 390px);
    grid-template-areas:
      "player player chat"
      "h1 info info";
    column-gap: 20px; row-gap: 0;
    padding-top: 24px;
  }
  .chat { height: auto; contain: size; }
  .stream-h1 {
    position: relative; z-index: var(--z-over);
    align-self: start;
    max-width: 5.3em;
    margin-top: 22px;
    padding-right: 8px;
    font-size: clamp(4rem, 6.4vw, 6rem);
  }
  .info { padding-top: 22px; }
}

/* ── 3. ticker ────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; }
.js .ticker-track { animation: tick 46s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker-set {
  display: flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(.875rem, 1.5vw, 1.0625rem); letter-spacing: .06em;
  white-space: nowrap;
}
.ticker .dot { color: var(--red); }
.ticker .bones { color: var(--ink); background: var(--yellow); padding: 2px 8px; border-radius: 3px; font-weight: 600; }

/* ── 4. the VOD ───────────────────────────────────────────────── */
.vod {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(64px, 10vw, 140px) var(--gut);
}
.vod-head { margin-bottom: clamp(32px, 5vw, 56px); }
.vod-stage { display: grid; gap: clamp(48px, 8vw, 96px); }
.vod-screen, .vod-chart, .vod-static { display: none; }

.chapter { display: grid; gap: 22px; align-items: center; }
.ch-fig {
  position: relative;
  width: 100%; max-width: 420px;
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at 50% 42%, #2A231B 0%, var(--panel) 62%, #0D0B09 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ch-fig img { position: absolute; inset: 6% 4% 0; width: 92%; height: 94%; object-fit: contain; object-position: 50% 100%; }
.ch-stamp {
  position: absolute; inset: 0; pointer-events: none;
  font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .06em;
  color: #F4EDD9; text-shadow: 0 1px 2px #000;
}
.ch-stamp > span { position: absolute; }
.ch-date { top: 12px; left: 14px; }
.ch-day { top: 12px; right: 14px; }
.ch-pf {
  bottom: 12px; left: 14px;
  padding: 3px 7px; border-radius: 3px;
  background: rgba(10, 9, 8, .82); color: #FF6A60;
}
.ch-said {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  text-wrap: balance;
}
.ch-cap { margin-top: 14px; max-width: 36ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--fg-2); text-wrap: pretty; }

.scrubber { order: -1; }
.scrub-track { display: none; }
.scrub-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 64px; padding: 0 14px;
  font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .06em;
  color: var(--fg-2); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 6px;
}
.tick:hover { color: var(--fg); border-color: var(--fg-2); }

@media (min-width: 640px) {
  .chapter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); }
}

/* pinned: one recording frame, hard cuts between chapters (JS adds .is-pinned on desktop only) */
.vod.is-pinned {
  height: calc(100vh - var(--hh));
  height: calc(100svh - var(--hh));
  padding-block: clamp(20px, 3.5vh, 40px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "frame head" "frame text" "frame scrub";
  column-gap: clamp(32px, 5vw, 80px);
}
.vod.is-pinned .vod-stage,
.vod.is-pinned .chapter { display: contents; }
.vod.is-pinned .vod-head { grid-area: head; margin: 0; }
.vod.is-pinned .vod-screen,
.vod.is-pinned .vod-chart,
.vod.is-pinned .vod-static,
.vod.is-pinned .ch-fig { grid-area: frame; display: block; min-height: 0; }
.vod.is-pinned .vod-screen {
  background: radial-gradient(ellipse at 50% 40%, #2A231B 0%, var(--panel) 60%, #0B0908 100%);
  border: 1px solid var(--line); border-radius: 10px;
}
.vod.is-pinned .vod-chart {
  z-index: var(--z-base);
  width: 84%; height: 64%; margin: 18% 8% 0;
  overflow: visible;
}
.vod-chart path {
  fill: none; stroke: var(--red); stroke-width: .6;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0);
  filter: drop-shadow(0 0 6px rgba(255, 59, 47, .45));
}
.vod.is-pinned .ch-fig {
  z-index: var(--z-over);
  max-width: none; height: 100%; aspect-ratio: auto;
  background: none; border-color: transparent;
}
.vod.is-pinned .vod-static {
  z-index: 3;
  width: 100%; height: 100%;
  border-radius: 10px;
  image-rendering: pixelated;
  background: radial-gradient(circle at 50% 50%, #807B72, #3B3833);
  opacity: 0; pointer-events: none;
}
.vod.is-pinned .vod-static.is-on { opacity: 1; }
.vod.is-pinned .ch-text { grid-area: text; align-self: center; }
.vod.is-pinned .chapter:not(.is-current) .ch-fig,
.vod.is-pinned .chapter:not(.is-current) .ch-text { visibility: hidden; }
.vod.is-pinned .ch-date { font-size: .9375rem; font-weight: 600; top: 18px; left: 20px; }
.vod.is-pinned .ch-day { font-size: .9375rem; top: 18px; right: 20px; }
.vod.is-pinned .ch-pf { font-size: .9375rem; bottom: 18px; left: 20px; }
.vod.is-pinned .ch-fig.is-jolt { transform: translateX(6px); }
.vod.is-pinned .ch-said { font-size: clamp(2.5rem, 4.4vw, 4.4rem); }
.vod.is-pinned .scrubber { order: 0; grid-area: scrub; }
.vod.is-pinned .scrub-track { display: block; position: relative; height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 4px; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--red); border-radius: 2px; }
.vod.is-pinned .scrub-ticks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.vod.is-pinned .tick { justify-content: flex-start; border: 0; padding: 0; min-width: 0; width: 100%; border-left: 1px solid var(--line-2); padding-left: 10px; border-radius: 0; }
.vod.is-pinned .tick[aria-current="true"] { color: var(--yellow); }

/* ── 5. make him sell ─────────────────────────────────────────── */
.sell {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(64px, 10vw, 140px) var(--gut) clamp(48px, 7vw, 96px);
}
.sell-head { margin-bottom: 28px; }
.arena {
  position: relative;
  height: clamp(380px, 62vh, 620px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #1D1813 0%, var(--ink) 72%);
  border: 1px solid var(--line);
  border-radius: 12px;
  touch-action: manipulation;
}
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--line-2); border-style: solid; border-width: 0; }
.c-tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.c-tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.c-bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.c-br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.sell-slot {
  position: absolute; left: 50%; top: 50%;
  display: grid; justify-items: center; gap: 12px;
  translate: -50% -50%;
  will-change: transform;
}
.sell-btn {
  min-height: 64px;
  padding: 0 clamp(36px, 5vw, 56px);
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: .08em;
  color: var(--ink); background: var(--red);
  border: 0; border-radius: 14px;
  box-shadow: 0 7px 0 var(--red-deep);
  cursor: pointer;
  transition: background-color .25s, box-shadow .25s;
}
.sell-btn:hover { background: #FF5247; }
.sell-btn:active { box-shadow: 0 2px 0 var(--red-deep); translate: 0 5px; }
.sell-btn.is-buy { background: var(--yellow); box-shadow: 0 7px 0 var(--yellow-deep); }
.sell-btn.is-buy:hover { background: #FFD43F; }
.sell-btn.is-buy:active { box-shadow: 0 2px 0 var(--yellow-deep); }
.sell-btn.is-shake { animation: shake .42s var(--ease-out) 1; }
@keyframes shake {
  20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.buy-note { font-family: var(--mono); font-size: .8125rem; color: var(--yellow); white-space: nowrap; }
.sell-hud { margin-top: 18px; display: grid; gap: 10px; justify-items: start; }
.sell-count {
  position: absolute; left: 0; right: 0; bottom: 20px;
  padding-inline: 44px;
  text-align: center;
  font-size: .875rem; color: var(--fg-2); font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.sell-count b { color: var(--fg); font-weight: 600; }
/* the line lands inside the arena, where the eyes already are */
.sell-line {
  position: absolute; top: clamp(22px, 5vh, 44px); left: 50%;
  width: min(86%, 34ch);
  translate: -50% 0;
  text-align: center; text-wrap: balance;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem); line-height: 1.15;
  color: var(--fg);
  pointer-events: none;
}
.sell-line .caret { display: inline-block; width: .5em; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--red); }

/* ── 6. channel emotes ────────────────────────────────────────── */
.emotes {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) var(--gut);
}
.emotes-head { margin-bottom: 28px; display: grid; gap: 0; }
.tally { margin-top: 14px; font-size: .875rem; color: var(--fg-2); }
.tally b { color: var(--yellow); font-weight: 600; }
.rail {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gut) * -1);
  padding: 4px var(--gut) 14px;
  scroll-padding-inline: var(--gut);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.emote {
  flex: 0 0 60%;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0; cursor: pointer;
  transition: border-color .2s;
}
.emote.is-lg { flex-basis: 76%; }
.emote:hover { border-color: var(--burlap); }
.emote-well {
  position: relative; display: block;
  height: 240px;
  background: radial-gradient(ellipse at 50% 30%, #9C8460 0%, var(--burlap) 55%, #5E4D34 100%);
  overflow: hidden;
}
.emote.is-lg .emote-well { height: 300px; }
.emote-well img {
  position: absolute; left: 50%; bottom: 0;
  height: 92%; width: auto; max-width: none;
  translate: -50% 0;
  transition: transform .35s var(--ease-out);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
}
.emote:hover .emote-well img { transform: translateY(4px) scaleY(.985); }
.emote.is-pop .emote-well img { animation: heave .5s var(--ease-out); }
@keyframes heave { 30% { transform: translateY(-10px) scale(1.03); } 100% { transform: none; } }
.emote-meta { display: grid; gap: 4px; padding: 12px 14px 14px; }
.emote-code { font-family: var(--mono); font-weight: 600; font-size: .875rem; color: var(--yellow); }
.emote-cap { font-size: .9375rem; line-height: 1.4; color: var(--fg); }
.emote-act {
  justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 6px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.emote.is-copied .emote-act { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
@media (min-width: 900px) {
  .emotes-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 24px; }
  .emotes-head .h2, .emotes-head .lede { grid-column: 1; }
  .tally { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .rail {
    display: grid; overflow: visible; margin: 0; padding: 0;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    grid-template-rows: auto auto;
    gap: 14px;
  }
  .emote { flex: none; }
  .e1 { grid-column: 1; grid-row: 1 / span 2; }
  .e2 { grid-column: 2; grid-row: 1; }
  .e3 { grid-column: 3; grid-row: 1; }
  .e4 { grid-column: 4; grid-row: 1 / span 2; margin-top: 48px; }
  .e5 { grid-column: 2; grid-row: 2; }
  .e6 { grid-column: 3; grid-row: 2; }
  .emote-well { height: 210px; }
  .emote.is-lg .emote-well { height: auto; flex: 1; min-height: 360px; }
}

/* ── 7. merch ─────────────────────────────────────────────────── */
.merch {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) var(--gut) clamp(48px, 7vw, 88px);
  display: grid; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.merch-box { max-width: 480px; justify-self: center; width: 86%; }
.merch-box img {
  rotate: 2deg;
  border-radius: 6px;
  box-shadow: 12px 14px 0 #000;
}
.merch-box:hover img { animation: rock .9s var(--ease-out); }
@keyframes rock { 25% { rotate: 3.4deg; } 55% { rotate: 1.2deg; } 80% { rotate: 2.4deg; } 100% { rotate: 2deg; } }
.spec { margin-top: 28px; border-top: 1px solid var(--line-2); font-size: .9375rem; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.spec dt { font-weight: 600; font-size: .75rem; letter-spacing: .1em; color: var(--fg-2); }
.spec dd { line-height: 1.55; }
.spec ul { list-style: none; display: grid; gap: 5px; }
.spec li { position: relative; padding-left: 1.4em; }
.spec li::before { content: "+"; position: absolute; left: 0; color: var(--burlap-2); }
.spec-not li::before { content: "×"; color: #FF6A60; }
.spec-warn dt { color: var(--yellow); }
.spec-warn dd { color: var(--fg); }
.strike { position: relative; }
.strike::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%;
  height: 2px; background: var(--red);
  transform-origin: 0 50%; transform: scaleX(1);
  transition: transform .5s var(--ease-out);
}
.spec-not.is-armed .strike::after { transform: scaleX(0); }
.spec-not li:nth-child(2) .strike::after { transition-delay: .18s; }
.spec-not li:nth-child(3) .strike::after { transition-delay: .36s; }
.gauge {
  display: inline-block; width: 46px; height: 10px; margin-left: 6px; vertical-align: -1px;
  border: 1px solid var(--fg-2); border-radius: 2px; padding: 1px;
}
.gauge span { display: block; width: 8%; height: 100%; background: var(--red); animation: fuel 1.1s steps(1) infinite; }
@keyframes fuel { 50% { opacity: .15; } }
@media (min-width: 640px) {
  .spec-row { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
  .merch { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .merch-box { width: 100%; }
}

.aisle { margin: 0; }
.aisle-img { overflow: hidden; aspect-ratio: 2000 / 857; max-height: 82vh; background: var(--panel); }
.aisle-img img { width: 110%; max-width: none; height: 100%; object-fit: cover; margin-left: -5%; }
.aisle-cap {
  max-width: var(--max); margin-inline: auto;
  padding: 18px var(--gut) 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg);
}
.units {
  display: inline-block; height: 1.3em; overflow: hidden; vertical-align: bottom;
  font-family: var(--mono); font-weight: 600; color: var(--yellow);
}
.units-roll { display: flex; flex-direction: column; transition: transform .28s var(--ease-out); }
.units-roll span { height: 1.3em; line-height: 1.3em; }
.units.is-rolled .units-roll { transform: translateY(-1.3em); transition-duration: .5s; }

/* ── 8. the contract: calm ────────────────────────────────────── */
.contract { padding: clamp(80px, 11vw, 150px) var(--gut); }
.contract-panel {
  max-width: 780px; margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contract .h2 { font-size: clamp(2.25rem, 4.4vw, 3.4rem); }
.ca-rows { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.ca-rows dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--fg-2); }
.ca-rows dd { margin-top: 2px; font-size: 1.0625rem; }
.ca-addr-row { grid-column: 1 / -1; }
.ca-addr {
  display: block; margin-top: 6px; padding: 14px 16px;
  font-family: var(--mono); font-size: clamp(.875rem, 1.6vw, 1rem); line-height: 1.5;
  word-break: break-all;
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
  user-select: all;
}
.ca-addr.is-pre { color: var(--fg-2); user-select: auto; }
.countdown { margin-top: 18px; font-size: 1rem; color: var(--fg-2); }
.countdown b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.ca-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.ca-note { margin-top: 20px; font-size: .9375rem; color: var(--fg-2); max-width: 60ch; }
@media (max-width: 479px) { .ca-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 9. sign-off and footer ───────────────────────────────────── */
.signoff {
  max-width: 1100px; margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) var(--gut) clamp(56px, 8vw, 100px);
  text-align: center;
}
.watched { max-width: 44ch; margin-inline: auto; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--fg-2); text-wrap: pretty; }
.watched b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.big {
  margin-top: clamp(28px, 5vw, 48px);
  font-family: var(--display);
  font-size: clamp(3.25rem, 11vw, 6rem);
  line-height: .95; letter-spacing: -0.02em;
  text-wrap: balance;
}
.small { margin-top: 18px; font-family: var(--mono); font-size: .875rem; color: var(--fg-2); }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px var(--gut) calc(36px + env(safe-area-inset-bottom));
  max-width: var(--max); margin-inline: auto;
}
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }
.foot-brand img { width: 30px; height: 30px; border-radius: 50%; }
.live-pill-sm { font-size: .6875rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--mono); font-size: .8125rem; color: var(--fg-2); text-decoration: none;
}
.foot-links a:hover { color: var(--fg); }
.disclaimer { margin-top: 20px; max-width: 88ch; font-size: .8125rem; line-height: 1.6; color: var(--fg-2); }
.credit { margin-top: 16px; font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; color: var(--fg-2); }
.credit a { display: inline-block; padding-block: 12px; color: var(--yellow); text-underline-offset: 3px; }
.credit a:hover { color: var(--fg); }

/* ── toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: var(--z-toast);
  max-width: min(92vw, 440px);
  padding: 12px 16px;
  font-family: var(--mono); font-size: .8125rem; line-height: 1.45; text-align: center;
  color: var(--ink); background: var(--fg);
  border-radius: 8px;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast:empty { visibility: hidden; }

/* ── reduced motion: everything stops except the clocks and the chat ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js .push, .live-dot, .js .rec-dot, .js .ticker-track, .gauge span, .msg.is-new,
  .merch-box:hover img, .emote.is-pop .emote-well img { animation: none !important; }
  .js .ticker-track { width: auto; }
  .ticker-set { flex-wrap: wrap; justify-content: center; white-space: normal; row-gap: 8px; padding-inline: var(--gut); }
  .alert, .alert-b, .toast, .units-roll, .strike::after, .emote-well img, .btn, .sell-btn { transition: none !important; }
  .emote:hover .emote-well img { transform: none; }
  .spec-not.is-armed .strike::after { transform: scaleX(1); }
}
