/* ── LOBBY ── */
#lobby {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  animation: fadeUp 0.6s ease;
  max-width: 600px;
  width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

/* Ilgi alanlari */
.section-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.interests-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
  max-height: 100px;
  overflow-y: auto;
  padding: 0.25rem;
}

.interest-tag {
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  font-family: 'DM Sans', sans-serif;
}
.interest-tag:hover { border-color: var(--accent); color: var(--accent); }
.interest-tag.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.interest-tag.selected:hover { background: #9b8dff; }

.interest-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Avatar secimi */
.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar-option {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-option:hover { border-color: var(--accent); transform: scale(1.1); }
.avatar-option.selected { border-color: var(--accent); background: rgba(124,106,255,0.15); box-shadow: 0 0 12px rgba(124,106,255,0.3); }

/* Oda secimi */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.room-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.room-card.selected { border-color: var(--accent); background: rgba(124,106,255,0.1); }

.room-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.room-name { font-size: 0.75rem; font-weight: 600; font-family: 'Syne', sans-serif; }
.room-desc { font-size: 0.6rem; color: var(--muted); margin-top: 0.1rem; }

/* Arkadas kodu */
.friend-code-section {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.friend-code-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  width: 140px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  outline: none;
}
.friend-code-input:focus { border-color: var(--accent); }
.friend-code-input::placeholder { color: var(--muted); text-transform: none; letter-spacing: normal; }

.fc-btn {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.fc-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Start button */
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 1rem 2.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 40px rgba(124,106,255,0.3);
  letter-spacing: 0.02em;
}
.start-btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(124,106,255,0.5); background: #9b8dff; }
.start-btn:active { transform: translateY(0); }

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ── WAITING ── */
#waiting {
  display: none;
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.spinner {
  width: 60px; height: 60px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.waiting-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.waiting-sub { color: var(--muted); font-size: 0.9rem; }

.cancel-btn {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  padding: 0.5rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cancel-btn:hover { border-color: var(--accent2); color: var(--accent2); }

@media (max-width: 680px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
