body {
  display: grid;
  grid-template-rows: auto 1fr;
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
}

.wordmark {
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.bar-status {
  color: var(--ink-2);
  font-size: 18px;
}

.bar-actions {
  margin-left: auto;
}

body.is-offline .bar-status::after {
  content: ' · Reconnecting…';
  color: var(--bad);
}

main {
  display: grid;
  min-height: 0;
}

.screen {
  display: none;
  padding: 0 var(--gutter) var(--gutter);
}

body[data-screen='setup'] #setup,
body[data-screen='lobby'] #lobby,
body[data-screen='stage'] #stage,
body[data-screen='reveal'] #reveal,
body[data-screen='final'] #final {
  display: grid;
}

.setup {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-top: clamp(16px, 4vh, 48px);
}

.setup-intro {
  display: grid;
  gap: 28px;
  position: sticky;
  top: 24px;
}

.setup-intro h1 {
  font-size: clamp(48px, 6.4vw, 112px);
  max-width: 11ch;
  animation: rise 700ms var(--ease-out) both;
}

.lead {
  max-width: 34ch;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  animation: rise 700ms 90ms var(--ease-out) both;
}

.setup-art {
  width: min(100%, 420px);
  animation: rise 800ms 180ms var(--ease-out) both;
}

.setup-steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(22px, 2.4vw, 36px);
  border-radius: 28px;
  background: var(--ground-2);
  animation: rise 700ms var(--ease-out) both;
}

.step:nth-child(2) {
  animation-delay: 80ms;
}

.step:nth-child(3) {
  animation-delay: 160ms;
}

.step h2 {
  font-size: clamp(28px, 2.4vw, 40px);
}

.step.is-done h2 {
  color: var(--ok);
}

.step .field {
  width: 100%;
}

.step-note {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 17px;
}

.step-note.is-warning {
  color: var(--bad);
}

.step-done {
  font-weight: 600;
}

.playlist-card {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: var(--ground-3);
  animation: rise 400ms var(--ease-out) both;
}

.playlist-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.playlist-name {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
}

.choices {
  display: grid;
  gap: 22px;
  width: 100%;
}

.choices fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 600;
}

.choices label {
  position: relative;
}

.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choices span {
  cursor: pointer;
}

.choices span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ground-3);
  font-weight: 600;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease-out);
}

.choices label:hover span {
  transform: translateY(-2px);
}

.choices input:checked + span {
  background: var(--ink);
  color: var(--ground);
}

.choices input:focus-visible + span {
  outline: 3px solid var(--ok);
  outline-offset: 3px;
}
