:root {
  --wood: #3a2418;
  --wood-dark: #24150e;
  --green: #1f4a34;
  --green-deep: #163827;
  --leather: #2b6b49;
  --leather-lite: #3d855c;
  --gold: #d4b15f;
  --cream: #f3ead2;
  --ink: #f4efe4;
  --muted: #c9c0a8;
  --aye: #7dcf9a;
  --noe: #e07a6a;
  --air: #c31e1e;
  --highlight: #ffe27a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at center, #2c1c12 0%, #140c08 70%);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
}
a { color: var(--gold); }
.banner-air {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 18px;
  background: #160808;
  border-bottom: 2px solid var(--air);
  font-family: "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
}
.banner-air .on-air {
  background: var(--air);
  color: white;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  animation: pulse 1.2s ease-in-out infinite;
}
.banner-air .on-air.off {
  background: #5a3a3a;
  animation: none;
  color: #e6d6d6;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; }
header h1 { font-weight: 500; margin: 8px 0 4px; font-size: 1.8rem; }
.lead { color: var(--muted); margin: 0 0 16px; max-width: 70ch; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.chamber {
  background: linear-gradient(#1a3d2c, #12281d);
  border: 8px solid var(--wood);
  box-shadow: 0 0 0 3px #5b3a22, inset 0 0 80px rgba(0,0,0,0.35);
  min-height: 560px;
  position: relative;
  padding: 16px;
}
.speaker-row { display: flex; justify-content: center; margin-bottom: 8px; }
.speaker-chair {
  width: 180px;
  background: linear-gradient(#4a2d12, #2a180a);
  border: 2px solid var(--gold);
  color: var(--cream);
  text-align: center;
  padding: 10px 8px 12px;
  border-radius: 6px 6px 2px 2px;
}
.speaker-chair.active { box-shadow: 0 0 0 3px var(--highlight), 0 0 24px rgba(255, 226, 122, 0.6); }
.speaker-chair .title { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); }
.speaker-chair .name { font-size: 0.95rem; margin-top: 4px; }
.floor {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  gap: 10px;
  min-height: 360px;
}
.bench {
  background: repeating-linear-gradient(
    to bottom,
    var(--green-deep) 0 14px,
    var(--leather) 14px 46px
  );
  border: 2px solid #0e2a1c;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bench h2 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--cream);
}
.bench.aye h2 { color: var(--aye); }
.bench.noe h2 { color: var(--noe); }
.seat {
  background: var(--leather-lite);
  color: #082016;
  border-radius: 3px 3px 0 0;
  padding: 6px 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 4px solid #1a3d2c;
}
.seat.active {
  background: var(--highlight);
  box-shadow: 0 0 0 2px #fff4c2, 0 0 18px rgba(255, 226, 122, 0.55);
  font-weight: 700;
}
.seat .p { font-variant-numeric: tabular-nums; }
.table {
  background: #6b4a28;
  border: 3px solid #3c2714;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  color: var(--cream);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.75rem;
  text-align: center;
}
.meter {
  width: 100%;
  height: 220px;
  background: #1a120c;
  border: 1px solid var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.meter .fill {
  width: 100%;
  background: linear-gradient(to top, var(--noe), #d8c47a, var(--aye));
  height: 50%;
  transition: height 0.35s ease;
}
.meter .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 3px #000;
}
.stream {
  margin-top: 12px;
  background: rgba(8, 16, 12, 0.72);
  border: 1px solid #0e2a1c;
  min-height: 140px;
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
  font-size: 0.95rem;
}
.bubble { margin: 8px 0; max-width: 85%; }
.bubble .who { font-size: 0.75rem; color: var(--gold); font-family: "Segoe UI", sans-serif; letter-spacing: 0.06em; }
.bubble.aye { margin-right: auto; border-left: 3px solid var(--aye); padding-left: 8px; }
.bubble.noe { margin-left: auto; border-right: 3px solid var(--noe); padding-right: 8px; text-align: right; }
.bubble.speaker {
  margin: 12px auto;
  max-width: 90%;
  text-align: center;
  border: 1px solid var(--gold);
  background: #24180c;
  padding: 10px;
  color: var(--cream);
  font-style: italic;
}
.bubble.speaker .who { color: var(--air); letter-spacing: 0.14em; font-style: normal; }
.side {
  background: #1c130e;
  border: 1px solid #5b3a22;
  padding: 12px;
}
.side h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.side label, .side select, .side button, .side p { font-family: "Segoe UI", sans-serif; }
.side select, .side button {
  width: 100%;
  margin: 6px 0 10px;
  padding: 8px;
  font-size: 0.95rem;
}
.side button {
  background: var(--air);
  color: white;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.side button:disabled { background: #6a3b3b; cursor: not-allowed; }
.side button.secondary { background: #3d5a46; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-top: 1px solid #3a2a1c; padding: 8px 0; }
.list a { text-decoration: none; }
.muted { color: var(--muted); font-size: 0.88rem; }

.credits {
  margin: 0 0 16px;
  padding: 10px 10px 6px;
  border: 1px solid var(--gold);
  background: #140e0a;
}
.credits h2 { margin-bottom: 4px; }
.credit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.92rem;
  margin: 6px 0;
}
.credit-row strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.credit-slot { border-top: 1px solid #3a2a1c; margin-top: 8px; padding-top: 4px; }
.credit-slot .muted { margin: 0 0 6px; }
