:root {
  color-scheme: dark;
  --page: #111513;
  --page-soft: #171d1a;
  --panel: #1b221e;
  --panel-raised: #232c27;
  --panel-inset: #141a17;
  --line: #39443d;
  --line-bright: #56635a;
  --text: #f4f1e8;
  --muted: #aeb8af;
  --subtle: #78847b;
  --coral: #f06449;
  --coral-bright: #ff795c;
  --lime: #d8f36a;
  --mint: #82d8c1;
  --display-font: Georgia, "Times New Roman", serif;
  --body-font: "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--page);
  background-image: repeating-linear-gradient(135deg, transparent 0 54px, rgb(255 255 255 / 1.2%) 55px 56px);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: flex;
  width: min(1240px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--page);
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-note,
.text-button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgb(216 243 106 / 45%);
}

.text-button {
  padding: 10px 0 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button:hover {
  color: var(--lime);
}

.setup-view {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding: 56px 0 64px;
  animation: appear 420ms ease-out both;
}

.setup-intro {
  position: relative;
  min-width: 0;
  padding: 10px 0 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--coral);
}

.setup-intro h1,
.prompt-copy h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 68px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.99;
}

.setup-intro h1 span {
  color: var(--coral);
  font-style: italic;
}

.intro-copy {
  max-width: 490px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.stage-display {
  display: flex;
  min-height: 224px;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.stage-art {
  position: relative;
  display: grid;
  width: 224px;
  height: 224px;
  flex: 0 0 224px;
  place-items: center;
  border: 1px solid rgb(130 216 193 / 20%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(130 216 193 / 7%) 0 37%, transparent 38%), repeating-conic-gradient(from 0deg, rgb(130 216 193 / 10%) 0deg 1deg, transparent 1deg 15deg);
}

.stage-callout {
  min-width: 0;
  max-width: 300px;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--coral);
  color: var(--text);
  font-family: var(--display-font);
  font-size: 28px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.stage-callout span {
  display: block;
  margin: 11px 0;
  color: var(--coral);
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.stage-art::before,
.stage-art::after {
  position: absolute;
  border: 1px solid rgb(130 216 193 / 14%);
  border-radius: 50%;
  content: "";
  inset: 15px;
}

.stage-art::after {
  inset: 32px;
}

.hero-mic {
  z-index: 1;
  width: 108px;
  height: 150px;
  filter: drop-shadow(0 10px 20px rgb(0 0 0 / 35%));
}

.stage-spark {
  position: absolute;
  z-index: 2;
  color: var(--lime);
  font-size: 18px;
}

.spark-one {
  top: 24px;
  right: 37px;
}

.spark-two {
  bottom: 31px;
  left: 32px;
  color: var(--coral);
  font-size: 13px;
}

.setup-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgb(35 44 39 / 96%), rgb(25 32 28 / 98%));
  box-shadow: 0 24px 60px rgb(0 0 0 / 24%);
}

.setup-tabs {
  display: flex;
  gap: 24px;
  margin: -2px 0 24px;
  border-bottom: 1px solid var(--line);
}

.setup-tab {
  position: relative;
  padding: 0 0 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.setup-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.setup-tab:hover,
.setup-tab.is-active {
  color: var(--text);
}

.setup-tab.is-active::after {
  background: var(--coral);
}

.setup-tab-panel {
  min-width: 0;
}

.player-count {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.player-list {
  display: grid;
  gap: 8px;
}

.player-row {
  display: grid;
  min-height: 50px;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-inset);
}

.player-number,
.claim-key {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.player-name-input {
  width: 100%;
  min-width: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.player-name-input:focus-visible {
  outline-offset: 1px;
}

.remove-player-button,
.remove-prompt-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font-size: 20px;
}

.remove-player-button:hover,
.remove-prompt-button:hover {
  background: rgb(240 100 73 / 14%);
  color: var(--coral-bright);
}

.roster-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.add-player-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.add-player-button span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.add-player-button:hover:not(:disabled) {
  color: var(--lime);
}

.add-player-button:disabled {
  color: var(--subtle);
  cursor: not-allowed;
}

.keyboard-hint,
.setup-footnote {
  color: var(--subtle);
  font-size: 11px;
}

.start-button,
.next-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--coral);
  color: #181b17;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: background-color 150ms ease, transform 150ms ease;
}

.start-button:hover,
.next-button:hover {
  transform: translateY(-2px);
  background: var(--coral-bright);
}

.start-button span,
.next-button span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.setup-footnote {
  margin: 13px 0 0;
  text-align: center;
}

.options-heading .eyebrow {
  margin-bottom: 7px;
}

.options-heading h2,
.prompt-manager-heading h3 {
  margin: 0;
  color: var(--text);
}

.options-heading h2 {
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 400;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.option-control {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-inset);
}

.option-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.option-help {
  min-height: 30px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.45;
}

.point-stepper {
  display: grid;
  height: 36px;
  grid-template-columns: 32px minmax(30px, 1fr) 32px;
  align-items: center;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.step-button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  font-size: 18px;
}

.step-button:hover {
  background: var(--panel-raised);
}

#points-to-win {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  appearance: textfield;
}

#points-to-win::-webkit-inner-spin-button,
#points-to-win::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

#sing-time {
  width: 100%;
  min-height: 36px;
  margin-top: 5px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
}

.prompt-manager {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.prompt-manager-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.prompt-manager-heading h3 {
  font-size: 13px;
}

.prompt-count {
  color: var(--subtle);
  font-size: 10px;
}

.prompt-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 11px;
}

#new-prompt {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-inset);
  color: var(--text);
  font-size: 12px;
}

#new-prompt::placeholder {
  color: var(--subtle);
}

.prompt-add-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--mint);
  border-radius: 4px;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.prompt-add-button:hover {
  background: rgb(130 216 193 / 10%);
}

.prompt-list {
  display: grid;
  max-height: 170px;
  gap: 5px;
  margin: 12px 0 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  list-style: none;
}

.prompt-item {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 3px 3px 9px;
  border-radius: 3px;
  background: rgb(255 255 255 / 3%);
  color: var(--muted);
  font-size: 11px;
}

.prompt-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-view {
  flex: 1;
  padding: 28px 0 52px;
  animation: appear 360ms ease-out both;
}

.game-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.round-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.round-label strong {
  color: var(--coral);
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 400;
}

.target-label {
  margin-left: 10px;
  color: var(--subtle);
}

.target-label span {
  color: var(--text);
}

.timer-wrap {
  display: grid;
  min-width: 94px;
  justify-items: center;
  padding: 7px 15px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.timer-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timer-value {
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.timer-wrap.is-urgent .timer-value {
  color: var(--coral-bright);
  animation: pulse 700ms ease-in-out infinite alternate;
}

.game-new-button {
  justify-self: end;
}

.game-stage {
  display: grid;
  min-height: 290px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 36px;
  padding: 34px 0 20px;
}

.prompt-copy h1 {
  font-size: 44px;
  line-height: 1.08;
}

.prompt-start-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px;
  background: var(--coral);
  color: var(--page);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 150ms ease, transform 150ms ease;
}

.prompt-start-button:hover {
  transform: translateY(-2px);
  background: var(--coral-bright);
}

.prompt-start-button span {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.prompt-text {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 30px;
  line-height: 1.2;
}

.prompt-nudge {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mic-zone {
  position: relative;
  display: grid;
  min-height: 230px;
  place-items: center;
  isolation: isolate;
}

.mic-halo {
  position: absolute;
  z-index: -1;
  width: 205px;
  aspect-ratio: 1;
  border: 1px solid rgb(240 100 73 / 30%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(240 100 73 / 11%), transparent 68%);
  box-shadow: 0 0 0 18px rgb(240 100 73 / 3%), 0 0 0 38px rgb(240 100 73 / 2%);
}

.game-mic {
  width: 110px;
  height: 160px;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 32%));
}

.mic-zone-label {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
}

.claim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.claim-header > span:first-child {
  color: var(--coral-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.claim-instruction {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.claim-button {
  display: grid;
  min-height: 82px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.claim-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: var(--panel-raised);
}

.claim-button:disabled {
  cursor: default;
}

.claim-button:disabled:not(.is-winner):not(.is-singer) {
  opacity: 0.58;
}

.claim-button.is-winner,
.claim-button.is-singer {
  border-color: var(--coral);
  background: rgb(240 100 73 / 13%);
  box-shadow: inset 3px 0 var(--coral);
}

.claim-button.is-approved {
  border-color: var(--lime);
}

.claim-button.is-out {
  opacity: 0.42;
}

.claim-key {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 4px;
  color: var(--muted);
}

.claim-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
}

.claim-action {
  grid-column: 2 / -1;
  grid-row: 2;
  align-self: start;
  margin-top: -7px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.claim-button.is-approved .claim-action {
  color: var(--lime);
}

.claim-button.is-singer .claim-action,
.claim-button.is-out .claim-action {
  color: var(--coral-bright);
}

.claim-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.claim-score strong {
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
}

.game-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.score-note {
  color: var(--muted);
  font-size: 12px;
}

.next-button {
  width: auto;
  min-width: 180px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  font-size: 11px;
}

.page-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.page-footer span:last-child {
  color: var(--coral);
  font-size: 16px;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  to {
    opacity: 0.55;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 40px, 720px);
  }

  .setup-view {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 32px;
  }

  .setup-intro h1 {
    font-size: 54px;
  }

  .stage-display {
    min-height: 184px;
    gap: 16px;
  }

  .stage-art {
    width: 184px;
    height: 184px;
    flex-basis: 184px;
  }

  .stage-callout {
    padding-left: 13px;
    font-size: 20px;
  }

  .hero-mic {
    width: 90px;
    height: 128px;
  }

  .setup-panel {
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: calc(100% - 32px);
  }

  .topbar {
    min-height: 66px;
  }

  .topbar-note {
    margin-left: auto;
    font-size: 9px;
  }

  .setup-view {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 40px 0;
  }

  .setup-intro {
    padding-top: 0;
  }

  .setup-intro h1 {
    font-size: 50px;
  }

  .intro-copy {
    max-width: 540px;
    margin-top: 16px;
    font-size: 14px;
  }

  .stage-display {
    min-height: 92px;
    gap: 15px;
    margin-top: 22px;
  }

  .stage-art {
    position: relative;
    top: auto;
    right: auto;
    width: 92px;
    height: 92px;
    margin: 0;
    flex-basis: 92px;
    opacity: 1;
  }

  .stage-callout {
    padding-left: 12px;
    font-size: 19px;
  }

  .stage-callout span {
    margin: 6px 0;
    font-size: 9px;
  }

  .stage-art::before {
    inset: 7px;
  }

  .stage-art::after {
    inset: 15px;
  }

  .hero-mic {
    width: 43px;
    height: 62px;
  }

  .stage-spark {
    font-size: 11px;
  }

  .spark-one {
    top: 7px;
    right: 13px;
  }

  .spark-two {
    bottom: 9px;
    left: 10px;
    font-size: 8px;
  }

  .setup-panel {
    padding: 18px;
  }

  .game-view {
    padding-top: 20px;
  }

  .game-topline {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .round-label {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 9px;
  }

  .round-label strong {
    font-size: 24px;
  }

  .target-label {
    margin-left: 3px;
  }

  .timer-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  .game-new-button {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
  }

  .game-stage {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
    padding: 28px 0 20px;
  }

  .prompt-copy h1 {
    font-size: 34px;
  }

  .prompt-text {
    font-size: 23px;
  }

  .prompt-nudge {
    font-size: 11px;
  }

  .mic-zone {
    min-height: 165px;
  }

  .mic-halo {
    width: 112px;
    box-shadow: 0 0 0 10px rgb(240 100 73 / 3%), 0 0 0 20px rgb(240 100 73 / 2%);
  }

  .game-mic {
    width: 62px;
    height: 94px;
  }

  .mic-zone-label {
    bottom: 2px;
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .claim-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .claim-instruction {
    text-align: left;
  }

  .claim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .claim-button {
    min-height: 84px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding: 9px;
  }

  .claim-key {
    width: 22px;
    height: 22px;
  }

  .claim-name {
    font-size: 12px;
  }

  .claim-score {
    grid-column: 2;
    margin-top: -8px;
  }

  .claim-action {
    grid-column: 2;
    grid-row: 3;
    margin-top: -10px;
    font-size: 8px;
  }

  .claim-score strong {
    font-size: 18px;
  }

  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .option-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 0.8fr);
    column-gap: 12px;
  }

  .option-label,
  .option-help {
    grid-column: 1;
  }

  .option-help {
    min-height: 0;
  }

  .point-stepper,
  #sing-time {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }

  .page-footer {
    min-height: 52px;
    font-size: 8px;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 390px) {
  .app-shell {
    width: calc(100% - 24px);
  }

  .topbar-note {
    max-width: 100px;
    line-height: 1.3;
    text-align: right;
  }

  .setup-intro h1 {
    font-size: 43px;
  }

  .stage-art {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
  }

  .stage-display {
    gap: 10px;
  }

  .stage-callout {
    padding-left: 10px;
    font-size: 17px;
  }

  .game-stage {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 4px;
  }

  .prompt-copy h1 {
    font-size: 30px;
  }

  .prompt-text {
    font-size: 20px;
  }

  .claim-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-button {
    grid-template-columns: 25px minmax(0, 1fr) auto;
  }

  .claim-score {
    grid-column: auto;
    margin-top: 0;
  }

  .page-footer span:nth-child(2) {
    max-width: 130px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/*
:root {
  color-scheme: light;
  --ink: #21231f;
  --muted: #77776e;
  --paper: #f4f0e6;
  --paper-deep: #e9e2d4;
  --orange: #e84f32;
  --orange-dark: #c83b23;
  --green: #475b42;
  --line: rgba(33, 35, 31, 0.15);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 6.4%;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wordmark-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: -0.08em;
}

.topbar-note,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #81985f;
  box-shadow: 0 0 0 4px rgba(129, 152, 95, 0.13);
}

.text-button {
  padding: 9px 0 9px 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.text-button span {
  font-size: 19px;
}

.setup-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.84fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  flex: 1;
  padding: 46px 0 58px;
}

.setup-intro {
  position: relative;
  padding: 14px 0 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--orange);
}

.setup-intro h1,
.prompt-copy h1 {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.setup-intro h1 span {
  color: var(--orange);
  font-style: italic;
}

.intro-copy {
  max-width: 420px;
  margin: 22px 0 0;
  color: #5d5f57;
  font-size: 15px;
  line-height: 1.7;
}

.stage-art {
  position: relative;
  display: flex;
  width: 300px;
  height: 240px;
  align-items: center;
  justify-content: center;
  margin: 2px auto -7px;
  transform: rotate(-5deg);
}

.stage-art::before {
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: #e9e1d1;
  content: "";
}

.hero-mic {
  position: relative;
  z-index: 1;
  width: 130px;
  height: auto;
  filter: drop-shadow(7px 9px 0 rgba(33, 35, 31, 0.11));
}

.stage-spark {
  position: absolute;
  color: var(--orange);
  font-size: 24px;
}

.spark-one {
  top: 39px;
  left: 43px;
}

.spark-two {
  right: 42px;
  bottom: 54px;
  color: var(--green);
  font-size: 18px;
}

.stage-caption {
  position: absolute;
  right: 8px;
  bottom: 41px;
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: rotate(5deg);
}

.quick-rules {
  display: flex;
  gap: 23px;
  color: #73736a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-rules span:first-child {
  color: var(--orange-dark);
}

.setup-panel {
  padding: 26px 29px 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.67);
  box-shadow: 9px 10px 0 rgba(33, 35, 31, 0.04);
}

.setup-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.setup-tab {
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.setup-tab.is-active {
  color: var(--ink);
}

.setup-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--orange);
  content: "";
}

.setup-tab-panel {
  padding-top: 23px;
}

.panel-heading,
.prompt-manager-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading .eyebrow,
.options-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 9px;
}

.panel-heading h2,
.options-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.player-count,
.prompt-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panel-copy {
  margin: 9px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.player-list {
  display: grid;
  gap: 8px;
}

.player-row {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 13px;
  border: 1px solid rgba(33, 35, 31, 0.12);
  background: #fbf9f2;
}

.player-number {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.player-name-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.player-name-input:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.remove-player-button,
.remove-prompt-button {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.remove-player-button:hover,
.remove-prompt-button:hover {
  background: #f1e6dc;
  color: var(--orange-dark);
}

.roster-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.add-player-button {
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.add-player-button span {
  margin-right: 5px;
  font-size: 16px;
  vertical-align: -1px;
}

.add-player-button:disabled {
  color: #9b9a91;
  cursor: not-allowed;
}

.keyboard-hint {
  color: #8b8a80;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.options-panel {
  min-height: 370px;
}

.options-heading {
  margin-bottom: 17px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.option-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.option-help {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.point-stepper {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #fbf9f2;
}

.point-stepper input {
  width: 35px;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  appearance: textfield;
}

.point-stepper input::-webkit-inner-spin-button,
.point-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.step-button {
  width: 32px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 18px;
}

.option-control select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fbf9f2;
  color: var(--ink);
  font-size: 11px;
}

.prompt-manager {
  margin-top: 19px;
}

.prompt-manager-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
}

.prompt-form {
  display: flex;
  height: 37px;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: #fbf9f2;
}

.prompt-form input {
  min-width: 0;
  flex: 1;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.prompt-add-button {
  padding: 0 12px;
  border: 0;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.prompt-add-button span {
  margin-left: 4px;
}

.prompt-list {
  display: grid;
  max-height: 100px;
  gap: 4px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.prompt-item {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 8px;
  background: rgba(233, 226, 212, 0.48);
  color: #51534c;
  font-size: 10px;
}

.prompt-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-item .remove-prompt-button {
  width: 23px;
  height: 23px;
  font-size: 16px;
}

.start-button {
  display: flex;
  width: 100%;
  height: 51px;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
  padding: 0 18px;
  border: 0;
  background: var(--orange);
  color: #fffaf0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: background 120ms ease, transform 120ms ease;
}

.start-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.start-button span {
  font-size: 18px;
}

.setup-footnote {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.page-footer {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #85847a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.page-footer span:last-child {
  color: var(--orange);
  font-size: 15px;
}

.game-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 37px 0 42px;
}

.game-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.round-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.round-label strong {
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.target-label {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.target-label span {
  color: var(--ink);
}

.timer-wrap {
  display: grid;
  min-width: 98px;
  justify-items: center;
  gap: 2px;
  padding: 9px 15px 8px;
  border: 1px solid var(--line);
  background: #eee8da;
  transition: background 180ms ease, color 180ms ease;
}

.timer-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.timer-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.timer-wrap.is-urgent {
  background: var(--orange);
  color: white;
}

.timer-wrap.is-urgent .timer-label {
  color: rgba(255, 255, 255, 0.8);
}

.game-new-button {
  justify-self: end;
}

.game-stage {
  display: grid;
  min-height: 350px;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 20px;
  margin: 26px 0 24px;
  padding: 27px clamp(25px, 6vw, 80px);
  background: var(--green);
  color: var(--paper);
}

.prompt-copy .eyebrow {
  color: #d2d7c5;
}

.prompt-copy h1 {
  max-width: 610px;
  font-size: clamp(37px, 5vw, 67px);
  line-height: 1.02;
}

.prompt-text {
  max-width: 570px;
  margin: 16px 0 0;
  color: #f7d16a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 35px);
  font-style: italic;
  line-height: 1.2;
}

.prompt-nudge {
  margin: 23px 0 0;
  color: #d2d7c5;
  font-size: 11px;
}

.mic-zone {
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mic-halo {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(244, 240, 230, 0.035), 0 0 0 45px rgba(244, 240, 230, 0.025);
}

.game-mic {
  position: relative;
  z-index: 1;
  width: 120px;
  height: auto;
  filter: drop-shadow(8px 11px 0 rgba(15, 20, 15, 0.16));
}

.mic-zone-label {
  z-index: 1;
  margin-top: 3px;
  color: #d2d7c5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.claim-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 11px;
}

.claim-header > span:first-child {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.claim-instruction {
  color: var(--muted);
  font-size: 10px;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.claim-button {
  position: relative;
  display: grid;
  min-height: 73px;
  grid-template-columns: 25px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.68);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.claim-button:not(:disabled):hover {
  border-color: var(--orange);
  background: #fffaf0;
  transform: translateY(-2px);
}

.claim-button:disabled {
  cursor: default;
}

.claim-button[data-player-id] {
  min-width: 0;
}

.claim-key {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.claim-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claim-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
}

.claim-score strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.claim-button:disabled:not(:has(+ .claim-button)) {
  opacity: 0.65;
}

.game-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
}

.score-note {
  color: var(--muted);
  font-size: 11px;
}

.next-button {
  min-width: 130px;
  padding: 11px 14px;
  border: 0;
  background: var(--orange);
  color: #fffaf0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.next-button:hover {
  background: var(--orange-dark);
}

@media (max-width: 900px) {
  .app-shell {
    padding: 0 4%;
  }

  .setup-view {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
    gap: 35px;
  }

  .setup-intro h1 {
    font-size: clamp(44px, 6vw, 65px);
  }

  .stage-art {
    width: 250px;
    height: 205px;
  }

  .quick-rules {
    gap: 12px;
    font-size: 8px;
  }

  .setup-panel {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 0 20px;
  }

  .topbar {
    height: 68px;
  }

  .topbar-note {
    font-size: 10px;
  }

  .setup-view {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 37px 0;
  }

  .setup-intro {
    padding-top: 0;
  }

  .setup-intro h1 {
    font-size: clamp(47px, 11vw, 66px);
  }

  .intro-copy {
    max-width: 470px;
    margin-top: 16px;
    font-size: 13px;
  }

  .stage-art {
    position: absolute;
    top: 6px;
    right: -13px;
    width: 110px;
    height: 125px;
    margin: 0;
    opacity: 0.8;
  }

  .stage-art::before {
    width: 96px;
    height: 96px;
  }

  .hero-mic {
    width: 65px;
  }

  .stage-caption {
    display: none;
  }

  .stage-spark {
    font-size: 15px;
  }

  .spark-one {
    top: 10px;
    left: 0;
  }

  .spark-two {
    right: -1px;
    bottom: 14px;
    font-size: 14px;
  }

  .quick-rules {
    gap: 17px;
    margin-top: 22px;
    font-size: 9px;
  }

  .setup-panel {
    padding: 22px 19px 18px;
  }

  .options-panel {
    min-height: auto;
  }

  .page-footer {
    min-height: 45px;
    gap: 10px;
    font-size: 7px;
  }

  .game-view {
    padding: 23px 0 29px;
  }

  .game-topline {
    grid-template-columns: 1fr auto;
    row-gap: 16px;
  }

  .timer-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  .game-new-button {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    padding-left: 0;
  }

  .game-stage {
    min-height: 350px;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 17px 0 21px;
    padding: 28px 24px 18px;
  }

  .prompt-copy h1 {
    font-size: clamp(38px, 9vw, 55px);
  }

  .prompt-nudge {
    margin-top: 16px;
    line-height: 1.5;
  }

  .mic-zone {
    position: absolute;
    right: 30px;
    width: 105px;
    min-height: 150px;
    margin-top: 160px;
    opacity: 0.75;
  }

  .mic-halo {
    width: 100px;
    height: 100px;
    box-shadow: 0 0 0 12px rgba(244, 240, 230, 0.035);
  }

  .game-mic {
    width: 55px;
  }

  .mic-zone-label {
    font-size: 6px;
  }

  .claim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .claim-button {
    min-height: 64px;
  }

  .claim-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .game-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-top: 12px;
  }
}

@media (max-width: 400px) {
  .app-shell {
    padding: 0 14px;
  }

  .topbar-note {
    gap: 6px;
    font-size: 9px;
  }

  .setup-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .options-panel {
    min-height: 470px;
  }

  .quick-rules {
    gap: 11px;
    font-size: 8px;
  }

  .page-footer span:nth-child(2) {
    max-width: 155px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
*/

.room-connect {
  margin-bottom: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-inset);
}

.room-connect-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.room-connect-heading p,
.room-status,
.room-code-label {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.room-connect-heading p,
.room-code-label {
  color: var(--lime);
}

#room-status {
  color: var(--subtle);
  text-align: right;
  letter-spacing: 0.04em;
}

.host-room-button,
.join-room-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--mint);
  border-radius: 4px;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.host-room-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.host-room-button span {
  color: var(--lime);
  font-size: 18px;
  font-weight: 400;
}

.host-room-button:hover:not(:disabled),
.join-room-form button:hover {
  background: rgb(130 216 193 / 10%);
}

.host-room-button:disabled {
  color: var(--subtle);
  cursor: default;
}

.join-room-form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 8px;
}

.join-room-form input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 11px;
}

.join-room-form input::placeholder {
  color: var(--subtle);
}

#join-room-code {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-room-form button {
  padding: 0 10px;
  border-color: var(--coral);
  background: var(--coral);
  color: var(--page);
}

.room-code-row {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.room-code-row output {
  min-width: 6ch;
  color: var(--text);
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
}

.room-code-toggle {
  margin-left: auto;
  padding: 5px 7px;
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.room-code-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.room-feedback {
  min-height: 15px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.remote-lobby-view {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 44px 0;
  animation: appear 360ms ease-out both;
}

.remote-lobby-panel {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgb(0 0 0 / 24%);
}

.guest-room-code-row {
  margin: -4px 0 28px;
}

.remote-lobby-panel h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 54px;
  font-weight: 400;
}

.remote-player-label,
.remote-lobby-status {
  color: var(--muted);
  font-size: 13px;
}

.remote-player-label strong {
  color: var(--lime);
}

.remote-lobby-panel h2 {
  margin: 26px 0 10px;
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.remote-player-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote-player-list li {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-inset);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.you-label {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.remote-lobby-status {
  margin: 18px 0 0;
}

@media (max-width: 700px) {
  .room-connect {
    padding: 11px;
  }

  .join-room-form {
    grid-template-columns: minmax(75px, 0.75fr) minmax(0, 1fr) auto;
  }

  .remote-lobby-view {
    padding: 30px 0;
  }

  .remote-lobby-panel {
    padding: 20px;
  }

  .remote-lobby-panel h1 {
    font-size: 42px;
  }
}

@media (max-width: 380px) {
  .join-room-form {
    grid-template-columns: minmax(68px, 0.7fr) minmax(0, 1fr);
  }

  .join-room-form button {
    grid-column: 1 / -1;
  }
}