/* Name Entry */
.name-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 60px;
  width: 100%;
}

.name-entry .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
}

.name-entry input {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
}

/* Lobby */
.lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  width: 100%;
}

.lobby .welcome {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.lobby .welcome strong {
  color: var(--accent);
}

.lobby .divider {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

.lobby .join-form {
  display: flex;
  gap: 12px;
  width: 100%;
}

.lobby .join-form input {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  flex: 1;
}

/* Room */
.room-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 12px;
}

/* Room list */
.room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.room-card {
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.room-card:hover, .room-card:active {
  border-color: var(--accent);
  background: rgba(0, 206, 201, 0.08);
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.room-card-code {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
}

.room-card-game {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.room-card-players {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Room view */
.room-code-display {
  text-align: center;
}

.room-code-display .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.room-code-display .code {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--accent);
}

.player-list {
  list-style: none;
}

.player-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-list .player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.player-list .player-name {
  flex: 1;
  font-weight: 600;
}

.game-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-option {
  padding: 14px 10px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.game-option:hover, .game-option.selected {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.15);
}

.game-option .game-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.mode-toggle {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
}

.mode-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-toggle button.active {
  background: var(--primary);
  color: var(--text);
}

.room-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
