:root{
  --bg:#070a14; --ink:#e8ecf6; --muted:#9aa4bf; --line:rgba(255,255,255,.12);
  --sun1:#ff5f6d; --sun2:#ffc371; --cyan:#38bdf8; --mint:#34d399; --rose:#fb7185;
  /* No orange anywhere: the brand gradient is a clean monochrome ink→muted wash. */
  --grad:linear-gradient(100deg,var(--ink),var(--muted));
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  background:var(--bg); color:var(--ink);
  font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
/* Wordmark: clean monospace, single color, no gradient/orange. */
.brand{font-family:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;font-weight:400;letter-spacing:0;color:var(--ink)}
.brand b{font-weight:600;color:var(--ink);background:none;-webkit-text-fill-color:var(--ink)}
button{font:inherit;cursor:pointer;border:none;border-radius:12px;padding:13px 20px;font-weight:700;color:#0a0e1a;background:var(--grad)}
button.ghost{background:rgba(255,255,255,.06);color:var(--ink);border:1px solid var(--line)}
button:disabled{opacity:.45;cursor:not-allowed}
input{font:inherit;color:var(--ink);background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:12px;padding:13px 15px;width:100%}
input::placeholder{color:var(--muted)}

/* ---------- viewer (the homepage = the stream) ---------- */
.stage{position:fixed;inset:0;background:#000;display:flex;align-items:center;justify-content:center;overflow:hidden}
.stage video{width:100%;height:100%;object-fit:cover;background:#000}
.topbar{position:fixed;top:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:18px 20px;
  background:linear-gradient(180deg,rgba(0,0,0,.6),transparent);z-index:10}
.topbar .brand{font-size:1.2rem}
.presence{margin-left:auto;display:flex;gap:10px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;font-weight:600;
  background:rgba(0,0,0,.4);border:1px solid var(--line);padding:8px 14px;border-radius:999px;backdrop-filter:blur(8px)}
.live-dot{width:9px;height:9px;border-radius:50%;background:#444}
.pill.live .live-dot{background:var(--rose);box-shadow:0 0 0 0 rgba(251,113,133,.7);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(251,113,133,.6)}70%{box-shadow:0 0 0 9px rgba(251,113,133,0)}100%{box-shadow:0 0 0 0 rgba(251,113,133,0)}}
.overlay{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;text-align:center;z-index:5;background:radial-gradient(800px 500px at 50% 40%,rgba(255,95,109,.12),transparent 70%)}
.overlay h1{font-size:clamp(1.6rem,5vw,2.6rem);margin:0}
.overlay p{color:var(--muted);max-width:34ch;margin:0}
.overlay.hidden{display:none}
.tapstart{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:20;
  background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
.tapstart.hidden{display:none}

/* ---------- broadcaster ---------- */
.go-wrap{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.go-card{width:100%;max-width:520px;background:rgba(255,255,255,.04);border:1px solid var(--line);
  border-radius:24px;padding:26px}
.go-card h1{margin:.1em 0 .1em;font-size:1.5rem}
.go-card .sub{color:var(--muted);margin:0 0 18px;font-size:.95rem}
.preview{position:relative;aspect-ratio:9/16;max-height:46vh;margin:0 auto 18px;border-radius:18px;overflow:hidden;background:#000;border:1px solid var(--line)}
.preview video{width:100%;height:100%;object-fit:cover}
.preview .state{position:absolute;top:12px;left:12px}
.fields{display:grid;gap:12px}
.row{display:flex;gap:12px}
.row>*{flex:1}
.status{margin-top:16px;text-align:center;color:var(--muted);min-height:1.4em;font-size:.92rem}
.status.on{color:var(--mint);font-weight:700}
.status.err{color:var(--rose);font-weight:700}
.count{font-weight:800}
.hidden{display:none}
