/* Alchemical Abyss: styled after the stream's HUD. Fonts and images are
   served with the site; nothing loads from other origins. */
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url(fonts/silkscreen-400.woff2) format("woff2"); }
@font-face { font-family: "Silkscreen"; font-weight: 700; font-display: swap; src: url(fonts/silkscreen-700.woff2) format("woff2"); }
@font-face { font-family: "VT323"; font-weight: 400; font-display: swap; src: url(fonts/vt323.woff2) format("woff2"); }

:root {
  --bg: #07060f;
  --panel: rgba(10, 9, 22, 0.88);
  --inset: #12101f;
  --cyan: #00e5ff;
  --cyan-dim: #0a7f99;
  --cyan-halo: rgba(0, 229, 255, 0.45);
  --magenta: #ff007f;
  --purple: #c33cff;
  --gold: #ffb800;
  --acid: #4dff1e;
  --danger: #ff2e5f;
  --text: #ece9ff;
  --muted: #9a96c4;
  --line: #2b2645;
  --pixel: "Silkscreen", "Courier New", monospace;
  --term: "VT323", ui-monospace, Menlo, monospace;
  --read: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) url(wall.png) repeat;
  background-size: 396px 210px;
  image-rendering: pixelated;
  color: var(--text);
  font: 22px/1.3 var(--term);
}
/* Depth: the stream's vignette and faint scanlines. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before { background: radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(4, 3, 10, 0.78) 100%); }
body::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
body > * { position: relative; z-index: 1; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--cyan-halo); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---- Top tab (the stream's top recess) ---- */
.hud-top { display: flex; justify-content: center; padding-top: 12px; }
.hud-top .tab {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 8px 26px; background: var(--panel); border: 2px solid var(--cyan); border-top: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 18px 100%);
  font: 700 14px var(--pixel); letter-spacing: 1px; color: var(--cyan);
}
.hud-top .tab a { color: var(--text); }
.hud-top .live { color: var(--magenta); display: inline-flex; align-items: center; gap: 8px; }
.hud-top .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---- Panels: the HUD's double neon border ---- */
.panel {
  position: relative; background: var(--panel); border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-halo), inset 0 0 0 4px var(--inset), inset 0 0 0 5px rgba(0, 229, 255, 0.35);
  padding: 16px 18px 18px; min-width: 0;
}
.panel h2, .panel h3 {
  margin: 0 0 12px; padding-bottom: 8px; font: 700 18px var(--pixel); letter-spacing: 1px; color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-halo); border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--magenta), var(--purple) 60%, transparent) 1;
}
.panel p { margin: 0 0 10px; }
.sub { font: 12px var(--pixel); letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; }

/* ---- Hero ---- */
.title {
  text-align: center; margin: 26px 0 6px; font: 700 clamp(30px, 7vw, 78px)/1 var(--pixel); letter-spacing: 2px;
  color: #e9a6ff; text-shadow: 0 0 2px #fff, 0 0 14px var(--purple), 0 0 34px rgba(195, 60, 255, 0.6), 4px 4px 0 #3b0f5c;
}
.tagline { text-align: center; color: var(--text); font-size: 27px; margin: 0 auto 20px; max-width: 760px; }
.tagline b { color: var(--gold); font-weight: 400; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-block; padding: 12px 20px; font: 700 15px var(--pixel); letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: rgba(255, 0, 127, 0.16); border: 2px solid var(--magenta);
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.45), inset 0 0 12px rgba(255, 0, 127, 0.25);
}
.btn:hover { background: rgba(255, 0, 127, 0.3); color: #fff; }
.btn.ghost { border-color: var(--cyan); background: rgba(0, 229, 255, 0.08); box-shadow: 0 0 12px var(--cyan-halo); }

.stage { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 16px; align-items: start; }
.screen { padding: 6px; }
.screen img { display: block; width: 100%; height: auto; image-rendering: auto; }
@media (max-width: 980px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage .screen { order: -1; }
}

/* Names panel (CHATTER MUTATORS) */
.mon { margin: 0 0 10px; }
.mon .nm { display: flex; justify-content: space-between; font-size: 21px; }
.mon .nm span:last-child { color: var(--muted); }
.bar { height: 10px; background: #1a1730; border: 1px solid var(--line); overflow: hidden; margin-top: 3px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--gold) 55%, var(--acid)); }
.queue { margin-top: 12px; color: var(--gold); font-size: 20px; }

/* Vote panel (LIVE CHAT VOTE) */
.opt { margin: 8px 0 12px; }
.opt .lbl { display: flex; justify-content: space-between; color: var(--cyan); font-size: 21px; }
.opt.c .lbl { color: var(--magenta); }
.opt .bar > i { background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); box-shadow: 0 0 10px var(--cyan); animation: swing 7s ease-in-out infinite alternate; }
.opt.b .bar > i { animation-duration: 9s; animation-delay: -3s; }
.opt.c .bar > i { background: linear-gradient(90deg, #7a0040, var(--magenta)); box-shadow: 0 0 10px var(--magenta); animation-duration: 11s; animation-delay: -5s; }
@keyframes swing { from { width: 18%; } to { width: 64%; } }
.closes { color: var(--muted); font-size: 20px; }

/* ---- Sections ---- */
.section-title { font: 700 22px var(--pixel); color: var(--cyan); letter-spacing: 1px; text-shadow: 0 0 10px var(--cyan-halo); margin: 40px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid .panel p { color: #d6d3f2; font-size: 21px; }
kbd, code { font: inherit; color: var(--acid); text-shadow: 0 0 6px rgba(77, 255, 30, 0.5); }
.about { margin-top: 16px; }
.about p { font-size: 22px; }

/* ---- Documents (privacy, terms): readable type inside a HUD panel ---- */
.doc { margin: 28px auto 0; max-width: 860px; }
.doc h1 { margin: 0 0 4px; font: 700 clamp(24px, 4vw, 34px) var(--pixel); color: #e9a6ff; text-shadow: 0 0 14px var(--purple); }
.doc .meta { font: 13px var(--pixel); color: var(--muted); margin: 0 0 18px; }
.doc .panel { font: 16px/1.65 var(--read); }
.doc .panel h2 { margin-top: 26px; font-size: 16px; }
.doc .panel h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #dcd9f5; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; }
.doc kbd { font-family: var(--term); font-size: 19px; }

/* ---- Bottom tab ---- */
footer { display: flex; justify-content: center; margin-top: 48px; }
footer .tab {
  display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; align-items: center;
  padding: 10px 28px; background: var(--panel); border: 2px solid var(--cyan); border-bottom: 0;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  font: 12px var(--pixel); letter-spacing: 1px; color: var(--muted);
}
footer .tab b { color: var(--magenta); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .hud-top .live::before, .opt .bar > i { animation: none; }
  .opt .bar > i { width: 40%; }
}
