:root {
  --bg: #0e0e12;
  --panel: #17171d;
  --panel-2: #1e1e26;
  --gold: #c9a84c;
  --white: #f0f0eb;
  --muted: #8d8d97;
  --line: #2b2b34;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100%;
  overscroll-behavior: none;
}

.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.screen.active { display: flex; }

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 5.5vw, 36px);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2.statement {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 5vw, 29px);
  line-height: 1.4;
  margin: 14px 0 30px;
  font-weight: 500;
  max-width: 620px;
}

p.sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.55;
}

input[type="text"] {
  width: 100%;
  max-width: 340px;
  padding: 16px 18px;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  margin: 20px 0;
  text-align: center;
}
input[type="text"]:focus { outline: none; border-color: var(--gold); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 8px;
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 8px;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
}

.choice-btn {
  padding: 20px 22px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.choice-btn:active { background: var(--panel-2); }
.choice-btn:disabled { opacity: 0.35; }
.choice-btn.selected { border-color: var(--gold); background: var(--panel-2); }

.badge {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.answered-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.explain-box {
  background: var(--panel);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 18px 20px;
  max-width: 500px;
  text-align: left;
  color: #d4d4d9;
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 14px;
}

.your-answer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 500px;
  text-align: left;
  font-size: 15px;
  color: var(--white);
  margin: 10px 0;
}
.your-answer b { color: var(--gold); }

/* ---- HOST ---- */
.host-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.qr-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}
.qr-box img { display: block; width: 260px; height: 260px; }
.join-url {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.player-count {
  font-size: 20px;
  margin: 18px 0;
  color: var(--muted);
}
.player-count b { color: var(--white); font-size: 28px; }

.bars {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}
.bar-row { text-align: left; }
.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #d4d4d9;
}
.bar-track {
  height: 38px;
  background: var(--panel-2);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.6s ease;
  background: var(--gold);
  opacity: 0.85;
}
.bar-fill.b { background: #6b6b78; }

.host-controls { margin-top: 30px; display: flex; gap: 14px; }
.host-progress { color: var(--muted); font-size: 15px; margin-bottom: 10px; letter-spacing: 0.04em; }

.final-stat {
  font-size: 20px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
  margin-top: 10px;
}
.final-stat b { color: var(--gold); }

@media (min-width: 700px) {
  h2.statement { font-size: 32px; }
}
