/* =============================================================
   room.css — Path of Breathing · Live sitting room
   Styles for room.html (presence field, join/leave UI).
   Requires shared.css + module.css to be loaded first.
   ============================================================= */

html, body { overflow-x: hidden; }

/* ── Page layout — centered variants of the module.css bands ──── */
#room.band { gap: 8px; }
#timer.band { border-bottom: none; }
#room .band-label,
#timer .band-label { text-align: center; }
#room .band-content { text-align: center; }

.room-status {
  font-family: var(--sans);
  font-size: clamp(13px, 1.15vw, 14px);
  font-weight: 400;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  min-height: 1.4em;
}

/* ── Panels — room.js switches these via inline display, which
   overrides these initial states. ─────────────────────────────── */
#room-prejoin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#room-loading { display: none; text-align: center; }
#room-active { display: none; }

.room-instruction {
  font-family: var(--sans);
  font-size: clamp(13px, 1.15vw, 14px);
  font-weight: 400;
  color: var(--muted);
  margin-top: 2rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* Country dropdown — same underline language as the old text inputs,
   centered like everything else in the room. */
.room-select {
  display: block;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  width: 240px;
  margin-top: 1.5rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  text-align: center;
  text-align-last: center;
  color-scheme: dark;
}
[data-theme="light"] .room-select { color-scheme: light; }
.room-select:focus {
  border-bottom-color: var(--text);
}
/* The "nothing picked" state reads like a placeholder. */
.room-select:invalid,
.room-select option[value=""] {
  color: var(--muted);
}

.room-enter-btn,
.room-leave-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 44px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.3s, color 0.3s;
}
.room-enter-btn:hover,
.room-leave-btn:hover {
  color: var(--text);
  border-color: var(--text);
}
.room-enter-btn { margin-top: 2rem; }

.room-sitting {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
  text-align: center;
}

.presence-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 20px;
  padding: 2rem 0 1.5rem;
}

.presence-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

.presence-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.presence-person-country {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.75;
  margin-top: 2px;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.room-leave-btn { margin-top: 2.5rem; }
