/* ── Lobby-specific styles ───────────────────────*/

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo { font-size: 28px; }

.session-info {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

/* Stages */
.stage { display: none; flex-direction: column; gap: 20px; }
.stage.active { display: flex; }

/* Device Check */
.video-wrap {
  position: relative;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  flex-direction: column;
  gap: 8px;
}
.video-overlay.hidden { display: none; }

.participant-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.role-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.role-badge.host { color: var(--warn); border-color: var(--warn); }
.role-badge.guest { color: var(--muted); }

/* Mic Meter */
.mic-meter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mic-meter-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.mic-meter {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.mic-meter-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.05s linear;
}
.mic-meter-fill.hot { background: var(--danger); }

/* Device Selectors */
.device-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.device-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Status Indicators */
.status-row { display: flex; gap: 12px; }

.status-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 10px 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}
.status-dot.ok { background: var(--success); }
.status-dot.warn { background: var(--warn); }
.status-dot.err { background: var(--danger); }

.status-text {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* Waiting Room */
.waiting-card {
  text-align: center;
  padding: 32px 24px;
}

.waiting-pulse {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 16px;
}

.waiting-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.waiting-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* Error States */
.error-card {
  border-color: rgba(255, 59, 92, 0.3);
  background: rgba(255, 59, 92, 0.05);
}
.error-card .card-title { color: var(--danger); }

.error-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
