.matchmaking-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.panel {
  width: 100%;
  max-width: 320px;
}

.nickname-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #2a2a2a;
}

.lobby-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input#lobby-code {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.join-row {
  display: flex;
  gap: 0.5rem;
}

.join-row input {
  flex: 1;
  min-width: 0;
}

.join-row button {
  flex-shrink: 0;
}

.error {
  margin: 0;
  color: #ff5a5a;
  font-size: 0.9rem;
}

.lobby-label {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.lobby-code {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--text);
}

.theme-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.theme-group label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

#theme-select {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

#theme-select:disabled {
  opacity: 0.75;
}

.panel h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.player-list li {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
}

.status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.85rem;
}
