/* Lobby */
.lobby-container {
  text-align: center;
  max-width: 400px;
  width: 100%;
  padding: 40px;
}

.game-title {
  font-size: 48px;
  font-weight: 900;
  color: #e74c3c;
  letter-spacing: 6px;
  margin-bottom: 8px;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.game-credits {
  font-size: 13px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.lobby-section {
  margin-bottom: 16px;
}

.lobby-section input {
  width: 100%;
}

.lobby-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lobby-buttons .btn-primary {
  width: 100%;
}

.join-row {
  display: flex;
  gap: 8px;
}

.join-row input {
  flex: 1;
  text-transform: uppercase;
}

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

.room-code-display {
  font-size: 20px;
  margin-bottom: 12px;
}

.room-code-display span {
  font-weight: 900;
  color: #f39c12;
  letter-spacing: 4px;
  font-size: 28px;
}

.waiting-text {
  color: #aaa;
  margin-bottom: 16px;
}

#player-list {
  list-style: none;
  margin-bottom: 20px;
}

#player-list li {
  padding: 8px 16px;
  background: #16213e;
  margin-bottom: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#player-list li .player-avatar {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Room Code Bar (in-game) */
#room-code-bar {
  position: absolute;
  top: 8px;
  right: 16px;
  background: #16213e;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #aaa;
  z-index: 10;
}

#room-code-bar span {
  font-weight: 900;
  color: #f39c12;
  letter-spacing: 3px;
  font-size: 15px;
}

/* Avatar Picker */
#avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-btn {
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 48px;
  text-align: center;
  border: 2px solid #444;
  border-radius: 8px;
  background: #16213e;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-btn:hover:not(.taken) {
  border-color: #3498db;
  transform: scale(1.1);
}

.avatar-btn.selected {
  border-color: #f39c12;
  background: #1a2744;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
}

.avatar-btn.taken {
  opacity: 0.3;
  cursor: not-allowed;
}
