/* Presenter view: projector, blinds closed, back row hard of seeing. Dark ground, huge type. */
:root {
  --bg: #0f1216;
  --ink: #f4f1ea;
  --dim: #a9a49a;
  --accent: #8ab8ff;
  --accent-ink: #0f1216;
  --line: #2a303a;
  --card: #171b21;
  --hot: #ffd166;
}
html { font-size: 26px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.35;
  min-height: 100vh;
}
[hidden] { display: none !important; }
#stage { padding: 2.2rem 3rem 0.5rem; max-width: 62rem; margin: 0 auto; }
#stage h1 { font-size: 3.4rem; line-height: 1.1; margin: 0 0 0.6rem; }
#stage .sub { font-size: 1.6rem; color: var(--accent); margin: 0 0 0.4rem; }
#stage .small { font-size: 1.2rem; color: var(--dim); }
#stage .lines { list-style: none; padding: 0; margin: 1.2rem 0 0; }
#stage .lines li { font-size: 2.3rem; line-height: 1.25; margin: 0.9rem 0; padding-left: 1.4rem; text-indent: -1.4rem; }
#stage .lines li::before { content: "\2022  "; color: var(--accent); }
#stage.title { text-align: center; padding-top: 2.5rem; }
#stage.title h1 { font-size: 4.2rem; }
#stage .caption { color: var(--dim); font-size: 1.15rem; margin: 0.6rem 0 0; }
#stage .hero { display: block; max-height: 46vh; width: auto; max-width: 100%; margin: 1rem auto 0; border-radius: 6px; }
#stage .media { display: block; width: 100%; max-height: 70vh; margin: 0.6rem 0; background: #000; border-radius: 6px; }
#stage.grid h1, #stage.video h1, #stage.audio h1, #stage.columns h1, #stage.diagram h1, #stage.timeline h1, #stage.image h1 { font-size: 2.6rem; margin-bottom: 0.3rem; }
#stage .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem 1rem; margin: 0.6rem 0; }
#stage .cell img { width: 100%; height: 22vh; object-fit: cover; border-radius: 6px; display: block; }
#stage .cell .ct { font-size: 1.35rem; margin-top: 0.2rem; }
#stage .cell .cd { font-size: 0.95rem; color: var(--dim); line-height: 1.25; }
#stage .audio { width: 100%; margin: 1rem 0; }
#stage .bignum { font-size: 7rem; line-height: 1; color: var(--hot); margin: 0.6rem 0 0.2rem; }
#stage .bigt { font-size: 2.4rem; margin-bottom: 0.6rem; }
#stage blockquote { font-size: 2.6rem; line-height: 1.25; margin: 1rem 0; padding-left: 1.2rem; border-left: 5px solid var(--accent); }
#stage blockquote footer { font-size: 1.2rem; color: var(--dim); margin-top: 0.6rem; }
#stage .cols { display: grid; gap: 1.5rem; margin: 1rem 0; }
#stage .cols2 { grid-template-columns: 1fr 1fr; }
#stage .cols3 { grid-template-columns: 1fr 1fr 1fr; }
#stage .col h3 { font-size: 1.6rem; margin: 0 0 0.4rem; color: var(--accent); font-weight: 600; }
#stage .col .lines li { font-size: 1.5rem; margin: 0.5rem 0; }
#stage .coltext { white-space: pre-wrap; font-size: 1.25rem; line-height: 1.35; margin: 0; }
#stage .timeline { list-style: none; padding: 0; margin: 1rem 0; border-left: 4px solid var(--line); }
#stage .timeline li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.45rem 0 0.45rem 1rem; font-size: 1.45rem; }
#stage .timeline .y { color: var(--hot); font-weight: 700; }
#stage .diagram svg { width: 100%; height: auto; display: block; margin: 0.8rem 0; }
#stage .split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
#stage .split .side { width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: 8px; }
#stage.text, #stage.big, #stage.quote, #stage.timeline, #stage.columns { max-width: 74rem; }
#stage .split .body h1 { font-size: 2.8rem; }
#stage .split .body .lines li { font-size: 1.9rem; }
#stage .split .body .bignum { font-size: 5.5rem; }
#stage .split .body blockquote { font-size: 2.1rem; }
#stage .split .body .timeline li { font-size: 1.25rem; grid-template-columns: 7rem 1fr; }
#stage .split .body .cols { gap: 1rem; }
#stage .split .body .col .lines li { font-size: 1.25rem; }
#stage.image .media { max-height: 58vh; width: auto; max-width: 100%; margin: 0.4rem 0 0.6rem; }
#stage.audio .media:not(audio) { max-height: 46vh; width: auto; max-width: 100%; }

.panel { max-width: 62rem; margin: 0 auto; padding: 0.5rem 3rem 6rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0.8rem 0; }
.row textarea, .row input[type=text] { flex: 1 1 24rem; }
input, textarea {
  font: inherit;
  font-size: 1.3rem;
  box-sizing: border-box;
  padding: 0.5rem 0.8rem;
  border: 3px solid #4a5260;
  border-radius: 12px;
  background: #fff;
  color: #111;
}
textarea { resize: vertical; }
button {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  min-height: 2.8rem;
  padding: 0.4rem 1.1rem;
  border-radius: 12px;
  border: 3px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
button.secondary { background: transparent; color: var(--accent); }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 4px solid var(--hot); outline-offset: 2px; }
label { font-weight: 700; display: block; margin: 0.8rem 0 0.2rem; }
label.inline { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.muted { color: var(--dim); }

#lthread .you, #lthread .reply { border-radius: 14px; padding: 0.7rem 1rem; margin: 0.8rem 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.55rem; line-height: 1.35; }
#lthread .you { background: var(--card); color: var(--dim); font-size: 1.2rem; }
#lthread .reply { border: 3px solid var(--line); }
.msg { padding: 0.6rem 1rem; border-radius: 12px; margin: 0.6rem 0; font-weight: 700; }
.msg.err { background: #4a1d1d; color: #ffd7d7; }
.msg.info { background: #1d2c4a; color: #d7e6ff; }

/* next-word view */
#ptext { font-size: 2.1rem; line-height: 1.4; min-height: 6rem; margin: 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#ptext .tok { border-bottom: 2px solid transparent; }
#ptext .tok.cur { background: var(--hot); color: #111; border-radius: 6px; }
#pchoices { display: grid; grid-template-columns: max-content 1fr max-content; gap: 0.4rem 1rem; align-items: center; font-size: 1.5rem; margin-top: 1rem; }
#pchoices .tk { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card); padding: 0.1rem 0.6rem; border-radius: 8px; white-space: pre; }
#pchoices .bar { height: 1.3rem; background: var(--line); border-radius: 6px; overflow: hidden; }
#pchoices .bar i { display: block; height: 100%; background: var(--accent); }
#pchoices .pct { font-variant-numeric: tabular-nums; color: var(--dim); }
#pchoices .tk.pick { background: var(--hot); color: #111; }
#pchoices .bar.pick i { background: var(--hot); }
#pchoices .pct.pick { color: var(--ink); font-weight: 700; }
#pchoices .head { grid-column: 1 / -1; color: var(--dim); font-size: 1.1rem; margin-top: 0.4rem; }

#note {
  position: fixed; left: 0; right: 0; bottom: 3.6rem;
  background: #221d0f; color: #ffe9a8; border-top: 3px solid var(--hot);
  padding: 0.6rem 3rem; font-size: 1.05rem; line-height: 1.35;
}
#hud {
  position: fixed; left: 0; right: 0; bottom: 0; height: 3.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(15, 18, 22, 0.92); border-top: 1px solid var(--line);
}
#hud button { min-height: 2.2rem; min-width: 3rem; font-size: 1.4rem; padding: 0 0.8rem; }
#hud #pos { color: var(--dim); font-size: 1rem; min-width: 6rem; text-align: center; }
#settings { position: fixed; inset: 0; background: rgba(15, 18, 22, 0.97); overflow: auto; padding-top: 3rem; }
#settings h2 { margin-top: 0; }
#settings input { width: 100%; }
