.lobby {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: stretch;
}

.lobby-join {
  display: grid;
  align-content: center;
  gap: clamp(12px, 2vh, 28px);
  padding: clamp(28px, 3vw, 56px);
  border-radius: 36px;
  background: var(--accent);
  container-type: inline-size;
  color: var(--accent-ink);
}

.join-how {
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}

.join-how strong {
  font-weight: 800;
  word-break: break-all;
}

.room-code {
  font-size: min(27cqi, 330px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  animation: pop 700ms var(--ease-out) both;
}

.qr {
  width: clamp(160px, 15vw, 280px);
  aspect-ratio: 1;
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.lobby-people {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  min-height: 0;
}

.people-count {
  font-size: clamp(36px, 3.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

#people-count {
  color: var(--ok);
}

.people {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.person {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
  animation: pop 500ms var(--ease-out) both;
}

.person.is-away {
  background: var(--ground-3);
  color: var(--ink-2);
}

.people-empty {
  max-width: 28ch;
  color: var(--ink-2);
  font-size: 22px;
}

.lobby-people .btn-big {
  justify-self: start;
}

@media (max-width: 900px) {
  .setup,
  .lobby {
    grid-template-columns: 1fr;
  }

  .setup-intro {
    position: static;
  }

  .setup-art {
    width: 220px;
  }
}
