/* Theatre Vote — shared chrome. Dark stage doctrine: near-black field,
   serif captions, one object of attention. */
:root {
  --bg: #0a0a0f;
  --panel: #14141c;
  --line: #26262f;
  --ink: #e8e4da;
  --dim: #8a8578;
  --accent: #c9a86a;      /* brass */
  --good: #7fb069;
  --bad: #b06969;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.caption { font-family: var(--serif); color: var(--dim); letter-spacing: 0.04em; }
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 20px; min-height: 100%; display: flex; flex-direction: column; }
h1.brand { font-family: var(--serif); font-weight: normal; font-size: 1.35rem; letter-spacing: 0.12em; color: var(--accent); text-align: center; margin: 18px 0 4px; }
.sub { text-align: center; font-size: 0.8rem; color: var(--dim); margin-bottom: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
input[type=text], textarea, select {
  width: 100%; background: #0e0e14; color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; font-size: 1rem; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
button {
  background: var(--accent); color: #14110a; border: 0; border-radius: 8px;
  padding: 12px 18px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease;
}
button:active { transform: scale(0.97); }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: #5c2323; color: #f0dede; }
button:disabled { opacity: 0.45; cursor: default; }

/* audience vote panels */
.vote-panel {
  display: block; width: 100%; margin: 10px 0; padding: 26px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font-size: 1.15rem; text-align: center;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s;
}
.vote-panel.big { padding: 48px 18px; font-size: 1.4rem; }
.vote-panel.selected { border-color: var(--accent); background: #1c1a12; }
.vote-panel.spring { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .vote-panel, button { transition: none; }
  .vote-panel.spring { transform: none; }
}
.prompt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; margin: 10px 0 20px; text-align: center; }
.state-note { text-align: center; color: var(--dim); font-size: 0.85rem; margin-top: 18px; min-height: 1.2em; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.rowline { display: flex; gap: 10px; align-items: center; }
.rowline > * { flex: 1; }
.small { font-size: 0.8rem; color: var(--dim); }
a { color: var(--accent); }
code.tok { background: #0e0e14; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 0.92em; user-select: all; }
