@import url("/fonts.css");
:root {
  --paper: #f7f6ef;
  --ink: #202d24;
  --muted: #6d746b;
  --line: #dbdfd2;
  --lime: #d9f978;
  --pink: #f6b5cc;
  --soft: #eeeee4;
  --white: #fffef8;
  --danger: #a13536;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8d6ee8;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
button svg,
a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 15px;
}
textarea {
  resize: vertical;
  min-height: 125px;
  line-height: 1.6;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--ink);
  border: 0;
  background: none;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
label input,
label textarea {
  margin-top: 7px;
}
small,
.muted {
  color: var(--muted);
}
.mono {
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6f9855;
  display: inline-block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 11px 17px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 0.15s,
    background 0.15s;
}
.btn:hover {
  background: #344c3b;
  transform: translateY(-1px);
}
.btn.lime {
  background: var(--lime);
  color: var(--ink);
}
.btn.lime:hover {
  background: #c9ec66;
}
.btn.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  background: var(--soft);
}
.btn.small {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 12px;
}
.btn.danger {
  color: var(--danger);
  background: transparent;
  border: 1px solid #e6c8c8;
}
.btn:disabled:hover {
  transform: none;
}
.text-btn {
  background: none;
  padding: 5px 0;
  color: var(--ink);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.hidden,
[hidden] {
  display: none !important;
}
.error {
  background: #fff0ee;
  border: 1px solid #edb9b0;
  color: #87332e;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}
.header {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
  gap: 15px;
}
.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
}
.header .byline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wrap {
  max-width: 1380px;
  margin: auto;
  padding: 32px 5vw 55px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 20px 5vw;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 610px;
  padding: 65px 0;
}
.hero h1 {
  font-size: clamp(60px, 6.7vw, 104px);
  line-height: 0.98;
  letter-spacing: -6px;
  margin: 25px 0;
}
.hero h1 em {
  font-family: var(--serif);
  font-weight: 400;
  color: #5f7937;
}
.hero p {
  font-size: 17px;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.ticket {
  position: relative;
  transform: rotate(2deg);
  border: 1px solid var(--ink);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #e1e5d4;
}
.ticket-top {
  padding: 24px 30px;
  border-bottom: 1px dashed #b7bfaf;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ticket-stage {
  padding: 42px 35px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.ticket-stage .quote {
  font: 32px/1.25 var(--serif);
  margin: 24px 0;
}
.ticket-stage .example {
  color: #c0c9bb;
  font-size: 11px;
}
.ticket-bottom {
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-emoji {
  font-size: 35px;
  letter-spacing: 6px;
}
.ticket-score {
  font: 52px/1 var(--serif);
}
.ticket-score small {
  font: 16px var(--sans);
}
.ticket-tag {
  background: var(--pink);
  color: var(--ink);
  padding: 8px 18px;
  position: absolute;
  right: -10px;
  top: 90px;
  transform: rotate(8deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.steps {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 32px 0;
}
.step-number {
  font: italic 30px var(--serif);
  color: #889176;
}
.steps h3 {
  font-size: 16px;
  margin: 8px 0;
}
.steps p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}
.form-panel {
  max-width: 470px;
  margin: 60px auto 80px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  background: var(--white);
}
.form-panel h1 {
  font: 40px/1.1 var(--serif);
  letter-spacing: -1px;
}
.form-panel p {
  margin: 12px 0 25px;
  color: var(--muted);
}
.form-panel form {
  display: grid;
  gap: 18px;
}
.form-panel .btn {
  width: 100%;
}
.join-code {
  text-transform: uppercase;
  font:
    28px "Courier New",
    monospace;
  letter-spacing: 0.2em;
  text-align: center;
}
.back {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}
.room-heading {
  margin-bottom: 26px;
}
.room-heading h1 {
  font: 38px/1.15 var(--serif);
  letter-spacing: -1px;
  margin-top: 5px;
}
.room-heading .tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.console {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
}
.stage {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.stage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 23px 28px;
  border-bottom: 1px solid #3c493c;
  align-items: center;
}
.stage .pill {
  border-color: #59644f;
  color: #d9e3cc;
}
.stage .muted {
  color: #b7c1ad;
}
.stage-main {
  padding: 42px 34px 36px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.stage-main .joke {
  font: clamp(25px, 3vw, 39px)/1.3 var(--serif);
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
  max-width: 740px;
  margin: 20px 0 26px;
}
.stage-main .joke.long {
  font-size: 24px;
}
.stage-main .empty-icon {
  font-size: 60px;
  filter: grayscale(0.4);
  margin-bottom: 18px;
}
.stage-main h2 {
  font: 38px/1.15 var(--serif);
  margin: 12px 0;
}
.stage-main p {
  max-width: 380px;
  font-size: 14px;
  color: #b7c1ad;
}
.stage audio {
  width: min(100%, 400px);
  height: 38px;
  margin: 10px 0;
}
.stage-controls {
  padding: 20px 27px;
  border-top: 1px solid #3c493c;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.stage .btn.secondary {
  color: var(--paper);
  border-color: #5c6853;
}
.stage .btn.secondary:hover {
  background: #364732;
}
.stage .text-btn {
  color: #d1dcc6;
}
.stage-status {
  font-size: 12px;
  color: #b7c1ad;
}
.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  text-align: left;
  width: 100%;
  border-top: 1px solid #43503b;
  padding-top: 24px;
  margin-top: 10px;
}
.verdict .score {
  font: 76px/1 var(--serif);
  letter-spacing: -3px;
  color: var(--lime);
}
.verdict .score span {
  font: 16px var(--sans);
  letter-spacing: 0;
  color: #c0cbb4;
}
.verdict .reaction-name {
  font: 26px var(--serif);
  margin: 8px 0;
}
.verdict .reaction-emoji {
  font-size: 30px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}
.verdict .eyebrow {
  color: #b7c1ad;
}
.threshold-status {
  display: inline-block;
  margin-top: 13px;
  font-size: 11px;
  color: #d5e0c7;
}
.stage .error {
  margin: 0 25px 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 22px;
}
.panel h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.panel h3 {
  font-size: 14px;
  font-weight: 600;
}
.panel-heading {
  margin-bottom: 20px;
}
.queue-empty {
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.queue-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.queue-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.queue-item:last-child {
  padding-bottom: 0;
}
.queue-item p {
  font-size: 13px;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.queue-item .name {
  font-size: 12px;
  font-weight: 600;
}
.queue-item .meta {
  font-size: 11px;
  color: var(--muted);
}
.queue-item audio {
  width: 100%;
  height: 32px;
}
.side {
  display: grid;
  gap: 18px;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
}
.tab {
  flex: 1;
  padding: 12px 4px;
  background: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.vault-list {
  max-height: 330px;
  overflow: auto;
  margin-top: 14px;
}
.vault-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.vault-item p {
  font-size: 13px;
  margin-bottom: 10px;
}
.vault-item small {
  font-size: 10px;
}
.invite {
  display: flex;
  gap: 18px;
  align-items: center;
}
.invite img {
  width: 90px;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.invite .code {
  font:
    27px "Courier New",
    monospace;
  letter-spacing: 3px;
  margin: 4px 0;
}
.invite p {
  font-size: 11px;
  color: var(--muted);
}
.under-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.vote-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vote-btn {
  display: flex;
  flex: 1;
  min-width: 60px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 11px;
  padding: 12px 8px;
  font-size: 11px;
  color: var(--ink);
}
.vote-btn span {
  font-size: 25px;
}
.vote-btn.active {
  background: var(--lime);
  border-color: var(--ink);
}
.vote-counts {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}
.vote-bar {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.bar-track {
  height: 7px;
  border-radius: 5px;
  background: #e9ecdf;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #809856;
  transition: width 0.4s;
}
.explain {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.explain summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.explain p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0;
}
.flow {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0;
  font-size: 11px;
}
.flow span {
  padding: 8px 10px;
  background: var(--soft);
  border-radius: 5px;
}
.history {
  margin-top: 22px;
}
.history-list {
  display: grid;
  gap: 0;
}
.history-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}
.history-item p {
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.record-button {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}
.record-button.recording {
  background: #ffe2de;
  border-color: #bd6056;
  color: #922c26;
}
.record-timer {
  font:
    13px "Courier New",
    monospace;
}
.record-preview {
  width: 100%;
  margin-top: 15px;
  height: 38px;
}
.record-note {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0;
}
.composer {
  display: grid;
  gap: 15px;
}
.composer .record-section {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.char-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.guest-wrap {
  max-width: 620px;
  margin: auto;
  padding: 30px 22px 60px;
}
.guest-wrap .room-heading {
  margin-bottom: 22px;
}
.guest-wrap .stage {
  margin-bottom: 22px;
}
.guest-wrap .stage-main {
  min-height: 180px;
  padding: 25px;
}
.guest-wrap .stage-main .joke {
  font-size: 25px;
  margin: 12px 0;
}
.guest-wrap .verdict .score {
  font-size: 55px;
}
.guest-wrap .verdict .reaction-emoji {
  font-size: 22px;
}
.guest-wrap .verdict .reaction-name {
  font-size: 20px;
}
.guest-wrap .panel {
  margin-bottom: 20px;
}
.submission-status {
  font-size: 12px;
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.stage-page {
  max-width: 1450px;
  margin: auto;
  padding: 28px 4vw 40px;
}
.stage-page .stage-main {
  min-height: 48vh;
}
.stage-page .stage-main .joke {
  font-size: clamp(28px, 4.7vw, 65px);
  max-width: 1000px;
}
.stage-page .stage-main .joke.long {
  font-size: clamp(24px, 3vw, 42px);
}
.stage-page .stage-main h2 {
  font-size: 56px;
}
.stage-page .stage-main .empty-icon {
  font-size: 85px;
}
.stage-page .verdict {
  max-width: 800px;
}
.stage-page .verdict .score {
  font-size: 94px;
}
.stage-page .verdict .reaction-emoji {
  font-size: 45px;
}
.stage-page .stage-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 22px;
}
.stage-page .invite img {
  width: 100px;
  height: 100px;
}
.stage-page .invite .code {
  font-size: 36px;
}
.stage-page .stage-footer .panel {
  min-width: 280px;
  max-width: 430px;
  flex: 1;
}
.connection {
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 23px;
  border-radius: 12px;
  max-width: calc(100% - 32px);
  box-shadow: 0 5px 30px #0002;
  z-index: 20;
  font-size: 13px;
}
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}
.particle {
  position: absolute;
  font-size: 36px;
  animation: float-up 2.4s ease-out forwards;
}
@keyframes float-up {
  0% {
    transform: translateY(30px) rotate(-15deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-240px) rotate(20deg);
    opacity: 0;
  }
}
.connection.offline {
  color: var(--danger);
}
@media (min-width: 1500px) {
  .wrap {
    padding-left: 35px;
    padding-right: 35px;
  }
}
@media (max-width: 950px) {
  .hero {
    gap: 35px;
    min-height: 550px;
  }
  .hero h1 {
    font-size: 75px;
    letter-spacing: -4px;
  }
  .ticket-stage {
    padding: 30px 20px;
  }
  .ticket-stage .quote {
    font-size: 27px;
  }
  .console {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
  }
  .under-stage {
    grid-template-columns: 1fr;
  }
  .stage-main {
    padding: 30px 24px;
  }
  .verdict {
    gap: 15px;
  }
  .verdict .score {
    font-size: 60px;
  }
  .stage-page .stage-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .header {
    height: 68px;
    padding: 0 20px;
  }
  .header .byline {
    display: none;
  }
  .wrap {
    padding: 25px 20px 40px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 35px 0 50px;
  }
  .hero h1 {
    font-size: 78px;
    letter-spacing: -4px;
  }
  .hero p {
    font-size: 15px;
  }
  .ticket {
    max-width: 460px;
    transform: rotate(1deg);
    margin: 0 8px;
  }
  .steps {
    gap: 22px;
    grid-template-columns: 1fr;
  }
  .steps > div {
    display: grid;
    grid-template-columns: 40px 1fr;
  }
  .steps h3 {
    margin: 0 0 5px;
  }
  .steps p {
    grid-column: 2;
    max-width: none;
  }
  .step-number {
    grid-row: span 2;
  }
  .console {
    grid-template-columns: 1fr;
  }
  .room-heading h1 {
    font-size: 32px;
  }
  .room-heading .tools {
    margin-top: 15px;
  }
  .room-heading {
    align-items: start;
  }
  .stage-main .joke {
    font-size: 29px;
  }
  .stage-main {
    min-height: 270px;
  }
  .stage-controls {
    padding: 18px;
  }
  .under-stage {
    grid-template-columns: 1fr;
  }
  .form-panel {
    margin: 30px 20px 50px;
    padding: 25px;
  }
  .footer {
    padding: 20px;
  }
  .stage-page {
    padding: 20px 15px;
  }
  .stage-page .stage-main h2 {
    font-size: 38px;
  }
  .stage-page .stage-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .stage-page .stage-footer .panel {
    max-width: none;
  }
  .stage-page .verdict .score {
    font-size: 72px;
  }
  .stage-page .verdict .reaction-emoji {
    font-size: 28px;
  }
  .stage-page .stage-main {
    min-height: 350px;
  }
  .guest-wrap {
    padding: 24px 16px;
  }
  .panel {
    padding: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .particle {
    display: none;
  }
}

.ticket-top svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
}
.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}
/* The comedy stage: rich violet, warm spotlights, and a physical emoji crowd. */
:root {
  --crickets: #b5dca3;
  --groan: #c1a4ff;
  --chuckle: #ffd27a;
  --laugh: #ffad7b;
  --roar: #f399ce;
}
.stage,
.ticket {
  background: #171421;
  color: #fff9ef;
  border: 1px solid #40364f;
  box-shadow: 0 20px 65px #24143222;
}
.stage {
  background: radial-gradient(
    ellipse at 50% 0%,
    #46324b 0,
    #21192e 38%,
    #15141f 75%
  );
}
.stage-head {
  border-color: #ffffff17;
  padding: 18px 26px;
}
.stage-head .eyebrow {
  color: #d3c2e1;
}
.stage .pill {
  color: #e9d5ff;
  border-color: #78648c;
}
.stage-main {
  padding: 30px 30px 14px;
  min-height: 250px;
}
.stage-main .joke {
  font: 500 clamp(26px, 2.8vw, 42px)/1.24 var(--serif);
  max-width: 950px;
  margin: 18px 0 22px;
}
.stage-main > .eyebrow {
  color: #d0b9d9;
}
.stage-main .muted,
.stage-main p,
.stage-status {
  color: #c4b8ce;
}
.stage-controls {
  position: relative;
  z-index: 2;
  background: #1c1828;
  border-color: #ffffff1c;
}
.stage .btn.lime {
  background: #dcc7ff;
  color: #261632;
}
.stage .btn.secondary {
  border-color: #746382;
}
.stage .btn.secondary:hover {
  background: #382b49;
}
.stage .text-btn {
  color: #e6d3ef;
}
.stage-main .empty-icon {
  filter: none;
  font-size: 70px;
}
.decision-reveal {
  width: 100%;
  text-align: left;
}
.decision-path {
  display: flex;
  gap: 12px;
  justify-content: center;
  color: #aa95ba;
  font: 10px/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0 18px;
  border-top: 1px solid #ffffff1b;
}
.decision-path i {
  color: #74647d;
  font-style: normal;
}
.trait-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.trait-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: #ffffff0c;
  border: 1px solid #ffffff24;
  border-radius: 99px;
  font-size: 12px;
  color: #eee1fb;
}
.trait-chips img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.trait-chips b {
  font: 10px var(--sans);
  color: #c8b3db;
}
.trait-chip {
  animation: chip-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--order) * 0.13s);
}
.trait-chips .format-chip {
  border-color: #bb98e15c;
  background: #a875e71a;
}
.verdict-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 4px 24px;
  animation: verdict-in 0.7s 0.65s both;
}
.score-orbit {
  width: 118px;
  height: 118px;
  position: relative;
  flex: none;
}
.score-orbit svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.score-orbit circle {
  fill: none;
  stroke-width: 3;
}
.score-track {
  stroke: #ffffff14;
}
.score-progress {
  stroke: #d8f982;
  stroke-linecap: round;
  stroke-dasharray: var(--score) 100;
  animation: score-fill 1.1s 0.8s both;
}
.score-orbit strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font: 55px/0.95 var(--serif);
  letter-spacing: -3px;
  color: #e1fca7;
}
.score-orbit small {
  font: 10px var(--sans);
  letter-spacing: 2px;
  color: #bfaecb;
  margin-top: 9px;
}
.verdict-title {
  flex: 1;
  min-width: 0;
}
.verdict-title .eyebrow {
  color: #bfa3d3;
  font-size: 9px;
}
.stage-main .verdict-title h2 {
  font: clamp(25px, 3vw, 44px)/1.05 var(--serif);
  letter-spacing: -1px;
  margin: 7px 0 0;
}
.threshold-status {
  color: #cabcd3;
  font-size: 11px;
  margin-top: 12px;
}
.verdict-mascot {
  width: 105px;
  height: 105px;
  object-fit: contain;
  transform: rotate(10deg);
  filter: drop-shadow(0 12px 18px #0004);
}
.reaction-spectrum {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  animation: verdict-in 0.7s 1s both;
}
.reaction-spectrum > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  padding: 0 0 13px;
  gap: 1px;
}
.reaction-spectrum img {
  width: 29px;
  height: 29px;
  grid-column: 1/-1;
}
.reaction-spectrum span {
  color: #c9bad6;
  font-size: 10px;
}
.reaction-spectrum strong {
  color: var(--tone);
  font:
    12px "Courier New",
    monospace;
}
.reaction-spectrum i {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 4px;
  background: #ffffff10;
  border-radius: 4px;
  overflow: hidden;
}
.reaction-spectrum i::after {
  content: "";
  display: block;
  width: var(--share);
  height: 100%;
  background: var(--tone);
  border-radius: 4px;
}
.emoji-arena {
  position: relative;
  height: 290px;
  margin: 0 -30px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #5f3f552b, transparent 70%);
  border-bottom: 1px solid #ffffff1a;
}
.emoji-arena::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 13px;
  background: linear-gradient(transparent, #08060c77);
  pointer-events: none;
}
.emoji-arena canvas {
  display: block;
  touch-action: pan-y;
}
.arena-caption {
  position: absolute;
  top: 17px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.arena-caption > span {
  color: #9c86ad;
  font-size: 8px;
  letter-spacing: 0.17em;
}
.shake-crowd {
  pointer-events: auto;
  color: #c4afd5;
  background: #ffffff09;
  border: 1px solid #ffffff15;
  border-radius: 99px;
  font-size: 10px;
  padding: 7px 10px;
}
.shake-crowd:hover {
  background: #ffffff20;
}
.waiting-arena {
  height: 175px;
  margin: 0;
}
.pile-note {
  color: #ac99b9;
  font-size: 9px;
  text-align: center;
  padding: 12px 5px;
}
.ingredient-details {
  border-top: 1px solid #ffffff17;
  padding: 12px 0 0;
  color: #bba5c8;
  font-size: 11px;
}
.ingredient-details summary {
  cursor: pointer;
}
.ingredient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  margin: 20px 0;
}
.ingredient-grid > div {
  display: grid;
  grid-template-columns: 1fr 45px 30px;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.ingredient-grid meter {
  width: 45px;
  accent-color: #c9a9f3;
}
.stage-main .ingredient-details p {
  text-align: left;
  font-size: 11px;
  max-width: none;
  margin: 12px 0;
}
body[data-mode="stage"] {
  background: #100f18;
  color: #f6f0fa;
  color-scheme: dark;
}
body[data-mode="stage"] .header {
  border-color: #ffffff15;
  height: 65px;
}
body[data-mode="stage"] .brand,
body[data-mode="stage"] .text-btn {
  color: #eee1fb;
}
body[data-mode="stage"] .brand span {
  color: #d6b7f9;
}
body[data-mode="stage"] .byline,
body[data-mode="stage"] .muted,
body[data-mode="stage"] small {
  color: #bba9c8;
}
body[data-mode="stage"] .pill,
body[data-mode="stage"] .footer {
  border-color: #ffffff24;
}
.stage-page {
  max-width: 1450px;
  padding: 26px 4vw 35px;
  margin: auto;
}
.stage-page .room-heading {
  margin-bottom: 18px;
}
.stage-page .room-heading h1 {
  font: 23px var(--serif);
  letter-spacing: 0;
}
.stage-page .room-heading .eyebrow {
  font-size: 9px;
  color: #bda5ca;
}
.stage-page .stage-main {
  padding: 30px 5% 18px;
}
.stage-page .stage-main .joke {
  font-size: clamp(32px, 3.4vw, 55px);
  max-width: 1050px;
}
.stage-page .decision-reveal {
  max-width: 1100px;
}
.stage-page .verdict-hero {
  justify-content: center;
  gap: 35px;
  max-width: 850px;
  margin: auto;
}
.stage-page .verdict-title {
  flex: initial;
  max-width: 500px;
}
.stage-page .score-orbit {
  width: 140px;
  height: 140px;
}
.stage-page .score-orbit strong {
  font-size: 65px;
}
.stage-page .verdict-mascot {
  width: 135px;
  height: 135px;
}
.stage-page .emoji-arena {
  height: 310px;
  margin: 0 -6%;
}
.stage-page .waiting-arena {
  height: 230px;
  margin: 0;
}
.stage-page .trait-chips > span {
  font-size: 14px;
  padding: 8px 15px;
}
.stage-page .reaction-spectrum {
  max-width: 800px;
  margin: 0 auto;
}
.stage-page .stage-footer {
  align-items: stretch;
  margin-top: 20px;
}
.stage-page .panel,
.stage-page .invite {
  background: #1d1827;
  border-color: #3d314a;
  color: #e4d8ec;
}
.stage-page .invite img {
  background: white;
  border-radius: 9px;
  padding: 6px;
}
.stage-page .code {
  color: #e3cef8;
}
.stage-page .explain {
  color: #bca9c9;
}
.stage-page .flow span {
  background: #30243e;
  color: #e1d0ef;
}
.stage-page .bar-track {
  background: #ffffff0d;
}
.stage-page .bar-fill {
  background: #be92ec;
}
body[data-mode="stage"] .footer {
  color: #8f7fa0;
}
.ticket {
  transform: rotate(2deg);
  border-radius: 24px;
  overflow: hidden;
}
.ticket-top {
  border-color: #ffffff20;
  padding: 20px 25px;
}
.ticket .ticket-stage {
  padding: 28px 26px 20px;
  background: radial-gradient(ellipse at 50% 0%, #574063, #1d1828 90%);
}
.ticket .quote {
  font-size: 32px;
}
.ticket .trait-chips {
  margin-top: 25px;
}
.ticket .trait-chips > span {
  font-size: 10px;
}
.ticket .emoji-arena {
  height: 240px;
  margin: 0;
}
.ticket .pill {
  font-size: 8px;
  border-color: #ffffff30;
}
.preview-score {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 5px 28px;
}
.preview-score > strong {
  font: 62px var(--serif);
  color: #daf395;
  letter-spacing: -3px;
}
.preview-score > strong > span {
  font: 14px var(--sans);
  color: #b8a5c6;
  letter-spacing: 0;
}
.preview-score > div {
  font: 21px/1.2 var(--serif);
}
.preview-score small {
  display: block;
  font: 9px var(--sans);
  margin-top: 9px;
  color: #b7a4c5;
}
@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes verdict-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes score-fill {
  from {
    stroke-dasharray: 0 100;
  }
}
@media (min-width: 1300px) {
  .hero {
    gap: 7vw;
  }
}
@media (max-width: 700px) {
  .stage-main {
    padding: 24px 18px 12px;
  }
  .verdict-hero {
    gap: 12px;
    padding: 24px 0 20px;
  }
  .score-orbit {
    width: 88px;
    height: 88px;
  }
  .score-orbit strong {
    font-size: 42px;
  }
  .verdict-mascot {
    width: 65px;
    height: 65px;
  }
  .stage-main .verdict-title h2 {
    font-size: 26px;
  }
  .verdict-title .threshold-status {
    font-size: 9px;
  }
  .reaction-spectrum {
    gap: 6px;
  }
  .reaction-spectrum > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }
  .reaction-spectrum img {
    width: 26px;
    height: 26px;
  }
  .reaction-spectrum span {
    width: 100%;
    text-align: center;
    font-size: 9px;
  }
  .reaction-spectrum strong {
    font-size: 10px;
  }
  .emoji-arena {
    height: 235px;
    margin: 0 -18px;
  }
  .waiting-arena {
    margin: 0;
    height: 160px;
  }
  .trait-chips {
    gap: 5px;
  }
  .trait-chips > span {
    font-size: 10px;
    padding: 5px 8px;
  }
  .trait-chips img {
    width: 19px;
    height: 19px;
  }
  .trait-chips b {
    font-size: 9px;
  }
  .decision-path {
    font-size: 7px;
    gap: 7px;
  }
  .ingredient-grid {
    grid-template-columns: 1fr;
  }
  .stage-page .stage-main {
    padding: 25px 18px 14px;
  }
  .stage-page .score-orbit {
    width: 94px;
    height: 94px;
  }
  .stage-page .score-orbit strong {
    font-size: 45px;
  }
  .stage-page .verdict-mascot {
    width: 70px;
    height: 70px;
  }
  .stage-page .verdict-hero {
    gap: 12px;
  }
  .stage-page .trait-chips > span {
    font-size: 11px;
    padding: 6px 8px;
  }
  .stage-page .emoji-arena {
    height: 235px;
    margin: 0 -18px;
  }
  .stage-page .waiting-arena {
    margin: 0;
  }
  .ticket {
    transform: none;
  }
  .hero {
    gap: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trait-chip,
  .verdict-hero,
  .reaction-spectrum,
  .score-progress {
    animation: none;
  }
}
.joke-panel {
  width: 100%;
}
.stage-page .stage-footer {
  display: block;
}
@media (min-width: 1000px) {
  .stage-page {
    padding: 18px 3vw;
  }
  .stage-page .decision-path {
    padding: 0 0 14px;
    border: 0;
    font-size: 8px;
  }
  .stage-page .trait-chips {
    gap: 6px;
  }
  .stage-page .trait-chips > span {
    padding: 5px 9px;
    font-size: 10px;
  }
  .stage-page .trait-chips img {
    width: 22px;
    height: 22px;
  }
  .stage-page .verdict-hero {
    gap: 18px;
    padding: 23px 0 18px;
  }
  .stage-page .verdict-title h2 {
    font-size: clamp(28px, 2.6vw, 40px);
  }
  .stage-page .score-orbit {
    width: 104px;
    height: 104px;
  }
  .stage-page .score-orbit strong {
    font-size: 49px;
  }
  .stage-page .verdict-mascot {
    width: 92px;
    height: 92px;
  }
  .stage-page .emoji-arena {
    height: 245px;
    margin: 0 -15px;
  }
  .stage-page .arena-caption {
    left: 15px;
    right: 15px;
  }
  .stage-page .pile-note {
    font-size: 8px;
  }
  .stage-page .stage-head {
    padding: 13px 25px;
  }
  .stage-page .stage-footer {
    margin-top: 14px;
  }
  .stage-page .stage-footer .panel {
    padding: 14px 22px;
  }
  .stage-page .stage-footer .vote-counts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .stage-page .stage-footer .vote-bar {
    grid-template-columns: auto 1fr 16px;
    gap: 7px;
  }
}
@media (min-width: 1000px) and (max-height: 850px) {
  body[data-mode="stage"] .header {
    height: 50px;
  }
  .stage-page {
    padding: 12px 3vw;
  }
  .stage-page .room-heading {
    margin-bottom: 12px;
  }
  .stage-page .room-heading h1 {
    font-size: 20px;
  }
  .stage-page .stage-head {
    padding: 10px 22px;
  }
  .stage-page .verdict-hero {
    padding: 15px 0;
  }
  .stage-page .score-orbit {
    width: 90px;
    height: 90px;
  }
  .stage-page .score-orbit strong {
    font-size: 44px;
  }
  .stage-page .verdict-mascot {
    width: 80px;
    height: 80px;
  }
  .stage-page .emoji-arena {
    height: 180px;
  }
  .stage-page .decision-path {
    padding-bottom: 10px;
  }
  .stage-page .pile-note {
    padding: 8px 0;
  }
}
.encore-player {
  margin-top: 10px;
}
@media (min-width: 1000px) {
}
/* Separate physical corrals: category ingredients (25%) and reactions (75%). */
.corral-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;
  width: 1px;
  background: linear-gradient(#c9a3ef55, #c9a3efaa);
  pointer-events: none;
}
.emoji-arena::before {
  content: "";
  position: absolute;
  inset: 0 75% 0 0;
  background: #bd88ff09;
  pointer-events: none;
}
.corral-label {
  position: absolute;
  top: 15px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #c0acd0;
  pointer-events: none;
}
.corral-categories {
  left: 0;
  width: 25%;
  text-align: center;
  padding: 0 4px;
}
.corral-reactions {
  left: calc(25% + 15px);
}
.corral-reactions small {
  display: block;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 3px;
  color: #9f8bae;
}
.emoji-arena > .shake-crowd {
  position: absolute;
  top: 10px;
  right: 12px;
}
@media (max-width: 700px) {
  .corral-label {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
  .corral-reactions {
    left: calc(25% + 10px);
  }
  .emoji-arena > .shake-crowd {
    font-size: 9px;
    right: 8px;
    padding: 5px 8px;
  }
}

/* The revealed stage: words first, then a room whose emptiness means something. */
.stage.has-verdict {
  background: #18151f;
}
.has-verdict .stage-head {
  display: none;
}
.stage.has-verdict .stage-main {
  display: block;
  padding: 32px 30px 16px;
}
.stage.has-verdict .joke-panel {
  position: relative;
  padding: 0;
  border: 0;
  text-align: left;
}
.stage.has-verdict .joke-panel > .eyebrow {
  color: #a99db2;
  font-size: 9px;
}
.stage.has-verdict .joke {
  max-width: 100%;
  margin: 14px 0 24px;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}
.stage.has-verdict .joke.long {
  font-size: clamp(24px, 2.5vw, 36px);
}
.verdict-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.verdict-line > .eyebrow {
  color: #a99db2;
  font-size: 8px;
}
.stage-main .verdict-line h2 {
  font: 24px/1.2 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.verdict-line[data-reaction="groan"] h2 {
  color: #d8baff;
}
.verdict-line[data-reaction="roar"] h2 {
  color: #f9b4dd;
}
.verdict-line[data-reaction="crickets"] h2 {
  color: #b5c4ad;
}
.quiet-score {
  font: 14px var(--sans);
  color: #b7a9c0;
}
.quiet-score small {
  font-size: 10px;
}
.has-verdict .decision-reveal {
  max-width: none;
}
.stage.has-verdict .emoji-arena {
  height: 270px;
  margin: 16px 0 0;
  background: none;
  border-bottom-color: #ffffff12;
}
.has-verdict .emoji-arena::before,
.has-verdict .emoji-arena::after {
  display: none;
}
.has-verdict .corral-divider {
  background: #ffffff13;
  top: 14px;
  bottom: 12px;
}
.has-verdict .corral-label {
  color: #82748d;
  font-size: 8px;
}
.has-verdict .corral-categories {
  text-align: left;
  padding-left: 4px;
}
.has-verdict .shake-crowd {
  border: 0;
  background: none;
  color: #82748d;
}
.has-verdict .ingredient-details {
  border-top: 0;
  padding-top: 16px;
}
.has-verdict .ingredient-details summary {
  color: #a698b1;
  font-size: 11px;
}
.ingredient-details[open] {
  padding-bottom: 15px;
}
.ingredient-details .decision-path {
  margin-top: 20px;
  padding: 16px 0;
}
.ingredient-details h3 {
  font: 11px var(--sans);
  color: #d6c8df;
  margin: 24px 0 14px;
}
.ingredient-details .reaction-spectrum {
  max-width: none;
  animation: none;
}
.ingredient-grid > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ingredient-grid img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.has-verdict .trait-chip {
  animation: none;
}
.stage-page .has-verdict .joke-panel {
  padding-right: 0;
}
.stage-page .room-heading > div > .eyebrow {
  display: none;
}
@media (max-width: 700px) {
  .stage.has-verdict .stage-main {
    padding: 22px 18px 14px;
  }
  .stage-page .has-verdict .joke-panel {
    padding-right: 0;
  }
  .stage.has-verdict .joke {
    font-size: 31px;
  }
  .verdict-line {
    gap: 8px 12px;
  }
  .verdict-line > .eyebrow {
    flex-basis: 100%;
  }
  .stage-main .verdict-line h2 {
    font-size: 22px;
  }
  .stage.has-verdict .emoji-arena {
    height: 220px;
  }
  .ingredient-grid {
    grid-template-columns: 1fr;
  }
  .ingredient-details .reaction-spectrum {
    gap: 7px;
  }
  .ingredient-details .reaction-spectrum > div {
    grid-template-columns: 1fr;
  }
  .ingredient-details .reaction-spectrum strong {
    font-size: 10px;
  }
  .ingredient-details .decision-path {
    font-size: 7px;
    gap: 6px;
  }
}

/* Quiet framing keeps the joke as the brightest thing in the room. */
.header .brand {
  color: #777780;
}
.header .brand img {
  opacity: 0.72;
}
body[data-mode="stage"] .header .brand,
body[data-mode="stage"] .header .brand span,
body[data-mode="stage"] .header .byline,
body[data-mode="stage"] .header .pill,
.stage-page .room-heading h1,
.stage-page .room-heading .connection {
  color: #82828b;
}
body[data-mode="stage"] .header .pill {
  border-color: #ffffff14;
}
.header .live-dot {
  background: #85858c;
}
.stage-heading-tools {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stage-outside-invite .invite {
  background: none;
  border: 0;
  padding: 0;
  gap: 10px;
}
.stage-outside-invite .invite img {
  width: 58px;
  height: 58px;
  border-radius: 5px;
}
.stage-outside-invite .invite .code {
  font-size: 14px;
  color: #92929a;
  margin: 0;
}
.stage-outside-invite .invite .eyebrow {
  font-size: 7px;
  color: #82828b;
  letter-spacing: 0.08em;
}
.stage-outside-invite .invite p,
.stage-outside-invite .invite .text-btn {
  display: none;
}
.category-stack {
  position: absolute;
  top: 36px;
  bottom: 8px;
  left: 0;
  width: 25%;
  padding: 0 14px 0 3px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ffffff25 transparent;
}
.category-stack-list {
  margin-top: auto;
  flex-shrink: 0;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  color: #c6becb;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  animation: category-settle 0.45s both;
  animation-delay: calc(var(--order) * 0.08s + 0.2s);
}
.category-row img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.category-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@keyframes category-settle {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .stage-page .room-heading {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .stage-page .room-heading h1 {
    font-size: 16px;
  }
  .stage-heading-tools {
    gap: 0;
    flex-shrink: 0;
  }
  .stage-heading-tools > .connection {
    display: none;
  }
  .stage-outside-invite .invite {
    flex-direction: column;
    gap: 3px;
  }
  .stage-outside-invite .invite img {
    width: 48px;
    height: 48px;
  }
  .stage-outside-invite .invite .eyebrow {
    display: none;
  }
  .stage-outside-invite .invite .code {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .category-stack {
    top: 32px;
    bottom: 4px;
    padding: 0 2px 0 0;
  }
  .category-row {
    font-size: 9px;
    gap: 3px;
    min-height: 30px;
  }
  .category-row img {
    width: 16px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .category-row {
    animation: none;
  }
}

/* Keep the invitation at the lower right, outside the performance area. */
.stage-page .stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.stage-page .stage-footer > .panel {
  min-width: 0;
  flex: 1;
}
.stage-footer > .stage-outside-invite {
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px 0;
}
@media (max-width: 700px) {
  .stage-page .stage-footer {
    gap: 12px;
  }
  .stage-footer > .stage-outside-invite {
    padding-bottom: 14px;
  }
}

.not-joke-key {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #bba5c8;
  line-height: 1.6;
  max-width: 700px;
}
.not-joke-key img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Audience view: one room, with the prediction attached to its joke. */
body.guest-room {
  --ink: #f6effc;
  --muted: #c4b2d0;
  --line: #ffffff24;
  --white: #271e36;
  --soft: #362742;
  color-scheme: dark;
  min-height: 100vh;
  background: radial-gradient(
    ellipse at 50% 0,
    #573b69 0,
    #30213f 45%,
    #1a1425 100%
  );
  background-attachment: fixed;
  color: var(--ink);
}
.guest-room .guest-wrap {
  max-width: 760px;
  padding: 28px 24px 60px;
}
.audience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.audience-heading h1 {
  font: 500 16px/1.4 var(--sans);
  letter-spacing: 0;
  color: #e1d0ee;
}
.audience-heading .connection {
  color: #cbb9d8;
  font-size: 11px;
  flex-shrink: 0;
}
.audience-heading .connection.offline {
  color: #ffbdc8;
  flex-shrink: 1;
}
.audience-round {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #a986c2;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0, #563962, #2e213d 55%, #21192e);
  box-shadow: 0 16px 40px #10091e33;
}
.guest-wrap .audience-round .stage {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.guest-wrap .audience-round .stage-main {
  padding: 12px 0 22px;
  min-height: 0;
}
.guest-wrap .audience-round .stage-main .joke {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 14px 0 24px;
}
.guest-wrap .audience-round .stage-main .joke.long {
  font-size: 25px;
}
.guest-wrap .audience-waiting {
  padding: 16px 10px 30px;
  text-align: center;
}
.guest-wrap .audience-waiting .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.guest-wrap .audience-waiting h2 {
  font: 30px/1.2 var(--serif);
}
.guest-wrap .audience-waiting p {
  max-width: 390px;
  font-size: 14px;
  margin: 14px auto 0;
}
.guest-room #voting-panel {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.guest-room #voting-panel h2 {
  font: 500 17px/1.4 var(--sans);
}
.guest-room .vote-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.guest-room .vote-btn {
  min-width: 0;
  padding: 14px 3px;
  background: #ffffff0a;
  color: #eee3f6;
  border-color: #ffffff30;
}
.guest-room .vote-btn:hover {
  background: #ffffff19;
}
.guest-room .vote-btn.active {
  background: #e1c5ff;
  border-color: #eedcff;
  color: #29173d;
  box-shadow: 0 0 0 2px #e1c5ff33;
}
.guest-room .bar-track {
  background: #ffffff16;
}
.guest-room .bar-fill {
  background: #d2a5f4;
}
.guest-wrap .guest-submit {
  --ink: #30233c;
  --muted: #706577;
  --line: #ddd5e3;
  --white: #ffffff;
  --soft: #f0eaf5;
  color-scheme: light;
  color: var(--ink);
  background: #fffefc;
  border: 1px solid #e4dce8;
  border-radius: 20px;
  padding: 24px;
}
.guest-room .guest-submit h2 {
  font: 26px/1.3 var(--serif);
  margin-bottom: 5px;
}
.guest-room .btn {
  background: #dfc4f7;
  color: #29173d;
}
.guest-room .record-button {
  background: transparent;
  border: 1px solid #a68cb8;
  color: #eee0fa;
}
.guest-room .text-btn,
.guest-room .explain {
  color: #d3bcdf;
}
.guest-room input::placeholder,
.guest-room textarea::placeholder {
  color: #aa96bb;
  opacity: 1;
}
.guest-room .flow span {
  background: #463052;
  color: #eedff7;
}
.guest-room .error {
  background: #512b3d;
  color: #ffd4dd;
}
@media (max-width: 700px) {
  .guest-room .guest-wrap {
    padding: 22px 18px 44px;
  }
  .audience-heading {
    gap: 10px;
    margin-bottom: 22px;
  }
  .audience-heading h1 {
    font-size: 14px;
  }
  .audience-heading .connection {
    font-size: 10px;
  }
  .guest-wrap .guest-submit {
    padding: 20px 16px;
  }
  .guest-room .vote-options {
    gap: 5px;
  }
  .guest-room .vote-btn {
    font-size: 10px;
  }
}

/* Preserve the game-board boundary and a distinct, light submission surface. */
.guest-wrap .audience-waiting .awaiting-verdict {
  border-top: 1px solid #ffffff17;
  margin-top: 24px;
  padding-top: 24px;
}
.guest-wrap .audience-waiting h2 {
  margin-top: 12px;
}
.guest-wrap .audience-waiting .awaiting-verdict p {
  font-size: 13px;
  margin-top: 8px;
}
.guest-room .vote-btn:disabled {
  cursor: default;
  opacity: 0.75;
}
.guest-room .vote-btn:disabled:hover {
  background: #ffffff0a;
}
.guest-room .vote-btn.active:disabled {
  background: #e1c5ff;
  opacity: 1;
}
.guest-room .reaction-votes {
  font-size: 10px;
  color: inherit;
  margin-top: 4px;
}
.voting-note {
  display: block;
  margin-top: 12px;
  min-height: 36px;
}
.guest-submit .record-button,
.guest-submit .text-btn {
  color: #5b3b74;
}
.guest-submit input::placeholder,
.guest-submit textarea::placeholder {
  color: #82748e;
}
.guest-submit .btn[type="submit"] {
  background: #5c3675;
  color: white;
}
.guest-submit .error {
  background: #f9e8ec;
  color: #943b4f;
}
@media (max-width: 700px) {
  .audience-round {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .guest-wrap .audience-waiting h2 {
    font-size: 27px;
  }
}
