:root {
  --bg: #070405;
  --bg-elevated: rgba(14, 10, 11, 0.82);
  --bg-panel: rgba(17, 12, 13, 0.88);
  --border: rgba(255, 164, 112, 0.18);
  --border-strong: rgba(255, 186, 127, 0.34);
  --text: #f7f1e3;
  --muted: rgba(247, 241, 227, 0.66);
  --soft: rgba(247, 241, 227, 0.46);
  --ember: #ff8f4c;
  --amber: #ffd078;
  --crimson: #db3a2d;
  --burnt: #8d1b14;
  --shadow: 0 26px 54px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(141, 27, 20, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 143, 76, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28)),
    url("assets/images/gonzo-horizon.svg") center/cover no-repeat;
  opacity: 0.48;
  pointer-events: none;
}

.gonzo-ambient,
.gonzo-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gonzo-ambient--north {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 208, 120, 0.16), transparent 18%),
    radial-gradient(circle at 82% 11%, rgba(219, 58, 45, 0.14), transparent 22%);
  mix-blend-mode: screen;
}

.gonzo-ambient--south {
  background:
    radial-gradient(circle at 68% 78%, rgba(255, 143, 76, 0.11), transparent 20%),
    radial-gradient(circle at 33% 88%, rgba(141, 27, 20, 0.16), transparent 20%);
}

.gonzo-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
}

.gonzo-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  width: min(1560px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.topbar,
.panel-shell {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 520px);
  gap: 18px;
  padding: 20px;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

.eyebrow,
.section-kicker,
.mini-copy,
.program-chip,
.status-pill,
.info-pill,
.signal-chip,
.guide-stat span,
.timeline-year,
.pool-chip,
.resource-link,
.site-network__eyebrow {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
}

.eyebrow,
.section-kicker,
.mini-copy {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-row,
.section-head,
.screen-head,
.control-head,
.guide-stats,
.program-chip-row,
.action-row,
.resource-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-row {
  align-items: flex-end;
}

.brand-row h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 10vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.signal-chip,
.status-pill,
.info-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy,
.program-meta,
.dossier-card p,
.resource-card p,
.pool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.topbar-stack {
  display: grid;
  gap: 14px;
}

.live-pill {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 7, 7, 0.72);
}

.live-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff7cc 0%, var(--amber) 28%, var(--crimson) 100%);
  box-shadow: 0 0 18px rgba(255, 208, 120, 0.72);
}

.live-pill__body {
  display: grid;
  gap: 6px;
}

.live-pill__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}

.live-pill__copy {
  color: var(--text);
  line-height: 1.45;
}

.relay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.screen-shell,
.guide-shell,
.schedule-shell,
.intel-panel {
  padding: 18px;
}

.screen-shell {
  display: grid;
  gap: 16px;
}

.screen-head {
  justify-content: space-between;
}

.screen-stage {
  position: relative;
  border-radius: 30px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(3, 3, 4, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 54px rgba(255, 143, 76, 0.06);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 143, 76, 0.09), transparent 30%),
    #020203;
}

.screen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.boot-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  background:
    radial-gradient(circle, rgba(255, 143, 76, 0.14), transparent 30%),
    rgba(3, 3, 4, 0.86);
  text-align: center;
  z-index: 3;
}

.boot-panel p {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0.1em;
  color: var(--amber);
}

.boot-panel span {
  max-width: 42ch;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.broadcast-bug {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: clamp(58px, 7vw, 96px);
  opacity: 0.86;
  pointer-events: none;
}

.broadcast-bug__image {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 18px rgba(255, 143, 76, 0.2));
}

.screen-glare,
.screen-scanlines,
.screen-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.screen-glare {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(255, 143, 76, 0.06));
  mix-blend-mode: screen;
}

.screen-scanlines {
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.18;
}

.screen-vignette {
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.72);
}

.control-rack {
  display: grid;
  gap: 16px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.deck-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.deck-button:hover,
.deck-button:focus-visible,
.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.deck-button--accent {
  background:
    linear-gradient(180deg, rgba(255, 208, 120, 0.22), rgba(219, 58, 45, 0.14)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 208, 120, 0.36);
}

.deck-button--utility {
  background:
    linear-gradient(180deg, rgba(255, 143, 76, 0.12), rgba(141, 27, 20, 0.14)),
    rgba(255, 255, 255, 0.03);
}

.action-button {
  min-height: 48px;
}

.action-button--ghost {
  width: 100%;
}

.volume-control {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.volume-control span,
.volume-track strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.volume-track {
  display: flex;
  align-items: center;
  gap: 14px;
}

.volume-track input[type="range"] {
  width: 100%;
  accent-color: var(--ember);
}

.guide-shell {
  display: grid;
  gap: 16px;
}

.section-head {
  align-items: flex-start;
}

.section-head h2,
.section-head h3,
.program-card h3,
.dossier-card h3 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
}

.status-pill--muted {
  color: var(--muted);
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-stat,
.program-card,
.dossier-card,
.timeline-item,
.work-card,
.resource-card,
.pool-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-stat {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.guide-stat strong {
  font-size: 1.2rem;
}

.program-card,
.dossier-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.program-card--live {
  background:
    linear-gradient(180deg, rgba(255, 208, 120, 0.08), rgba(255, 143, 76, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.program-chip-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.program-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.action-row--stack {
  display: grid;
  gap: 10px;
}

.schedule-list,
.timeline-list,
.card-list,
.resource-grid,
.pool-grid {
  display: grid;
  gap: 12px;
}

.gonzo-game {
  display: grid;
  gap: 16px;
}

.game-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.game-copy p {
  margin: 0;
  max-width: 78ch;
}

.gonzo-game__canvas {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #100a06;
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.52),
    0 24px 42px rgba(0, 0, 0, 0.22);
  touch-action: manipulation;
  cursor: crosshair;
}

.game-readout {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.schedule-item.is-live {
  border-color: rgba(255, 208, 120, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 208, 120, 0.09), rgba(255, 143, 76, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.schedule-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
}

.schedule-item__time,
.schedule-item__meta span,
.timeline-year,
.resource-link,
.pool-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.schedule-item h3,
.timeline-copy strong,
.work-card h3,
.resource-card h3,
.pool-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.intel-panel {
  display: grid;
  gap: 14px;
}

.intel-panel--wide {
  grid-column: span 3;
}

.timeline-item,
.work-card,
.resource-card,
.pool-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.timeline-item {
  grid-template-columns: 86px minmax(0, 1fr);
}

.timeline-year {
  color: var(--amber);
}

.timeline-copy {
  display: grid;
  gap: 8px;
}

.work-card__meta {
  color: var(--amber);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.obsession-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.obsession-list li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.65;
  color: var(--muted);
}

.resource-grid,
.pool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-link {
  color: var(--amber);
  text-decoration: none;
}

.resource-link:hover,
.resource-link:focus-visible {
  color: #ffe5b2;
  outline: none;
}

.is-disabled {
  opacity: 0.44;
  pointer-events: none;
}

.resource-actions {
  justify-content: flex-start;
}

.pool-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pool-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--soft);
}

@media (max-width: 1180px) {
  .topbar,
  .relay-grid,
  .intel-grid {
    grid-template-columns: 1fr;
  }

  .intel-panel--wide {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .gonzo-shell {
    width: min(100vw - 20px, 1560px);
    padding: 16px 0 24px;
  }

  .topbar,
  .screen-shell,
  .guide-shell,
  .schedule-shell,
  .intel-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-stats,
  .resource-grid,
  .pool-grid,
  .game-copy {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .brand-row h1 {
    font-size: clamp(3.2rem, 18vw, 5.1rem);
  }
}

@media (max-width: 540px) {
  .controls {
    grid-template-columns: 1fr;
  }

  .volume-track {
    flex-direction: column;
    align-items: stretch;
  }

  .screen-stage {
    padding: 8px;
  }
}
