:root {
  --bg: #07111a;
  --panel: rgba(13, 28, 40, .78);
  --panel-hover: rgba(18, 39, 54, .92);
  --border: rgba(111, 223, 247, .12);
  --text: #f5fbff;
  --muted: #849aa8;
  --muted-2: #607887;
  --cyan: #6fdff7;
  --green: #7dc910;
  --danger: #ff657a;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(53, 152, 219, .24), transparent 36%),
    linear-gradient(150deg, #07111a, #0b1924 56%, #07111a);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.045em;
  text-decoration: none;
}

.room-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #a6bac6;
  background: rgba(10, 23, 33, .55);
  font-size: 12px;
  white-space: nowrap;
}

.room-count__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(111, 223, 247, .38);
}

.content { padding: 82px 0 58px; }
.section-head { margin-bottom: 28px; }

.eyebrow {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  line-height: .98;
  letter-spacing: -.06em;
}

.rooms {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--panel), rgba(8, 20, 29, .70));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.rooms-loading {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}

.room-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 24px;
  align-items: center;
  min-height: 88px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.room-card:last-child { border-bottom: 0; }
.room-card:hover { background: var(--panel-hover); }

.room-card--active {
  background: rgba(53, 152, 219, .035);
}

.room-card--speaking {
  background: rgba(53, 152, 219, .07);
}

.room-card__main { min-width: 0; }

.room-card__name {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card__desc {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #657d8b;
  border-radius: 50%;
}

.room-card--active .status-dot {
  border-color: transparent;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(111, 223, 247, .35);
}

.room-card--speaking .status-dot {
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 0 12px rgba(125, 201, 16, .40);
}

.room-card--active .room-card__status,
.room-card--speaking .room-card__status {
  color: #abc3d1;
}

.room-card__arrow {
  color: #5f7d8e;
  font-size: 19px;
  transition: color .15s ease, transform .15s ease;
}

.room-card:hover .room-card__arrow {
  color: var(--cyan);
  transform: translateX(2px);
}

.status-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 101, 122, .16);
  border-radius: 12px;
  color: #d88d99;
  background: rgba(255, 101, 122, .04);
  font-size: 12px;
}

.hidden { display: none !important; }

footer {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  color: #4f6674;
  font-size: 11px;
}

.footer-sep { color: #354c59; }

@media (max-width: 680px) {
  .shell { padding: 22px 16px 18px; }
  .content { padding: 58px 0 38px; }
  .section-head { margin-bottom: 22px; }
  .rooms { border-radius: 18px; }

  .room-card {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 86px;
    padding: 16px 17px;
  }

  .room-card__status {
    grid-column: 1;
    margin-top: -2px;
  }

  .room-card__arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (max-width: 430px) {
  .topbar { align-items: flex-start; }
  .room-count { max-width: 70%; }
  .room-card__name { font-size: 16px; }
  .room-card__desc { font-size: 12px; }
}
