/* lobby-screen.css — 等待開始大廳(2026-05-22) */

.hd-lobby {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.hd-lobby__card {
  background: var(--hd-card-bg, #fff);
  border: 1px solid var(--hd-border, #e5e1d8);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  padding: 40px 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  /* 2026-06-03 BUG:loading 大廳的 AI 聊天室會把卡片撐到比畫面高,
     垂直置中下頂部(spinner/標題)被推出視窗外看不到。
     限制卡片不超過視窗高、改 flex column,讓聊天室插槽吃剩餘空間並內部捲動。 */
  max-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hd-lobby__spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--hd-border, #e5e1d8);
  border-top-color: var(--hd-accent, #6B9E47);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: hd-lobby-spin 1s linear infinite;
}

@keyframes hd-lobby-spin {
  to { transform: rotate(360deg); }
}

.hd-lobby__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--hd-ink, #2c2a26);
  margin: 0 0 8px;
}

.hd-lobby__subtitle {
  font-size: 14px;
  color: var(--hd-ink-soft, #6b665e);
  margin: 0 0 24px;
  line-height: 1.6;
}

.hd-lobby__who {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hd-lobby__who-item {
  flex: 1;
  max-width: 200px;
  background: var(--hd-bg-soft, #f0ece3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-lobby__who-lbl {
  font-size: 12px;
  color: var(--hd-ink-soft, #6b665e);
}

.hd-lobby__who-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--hd-ink, #2c2a26);
}

/* 聊天室插槽(Point 4 填入分頁聊天) */
.hd-lobby__chat-slot:not(:empty) {
  margin-top: 24px;
  text-align: left;
  /* 2026-06-03 BUG:吃卡片剩餘高度,讓內部 .hd-chat 有界、訊息多時自身捲動而非撐高卡片 */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* lobby 內的聊天室填滿插槽(其 __body 已是 flex:1 + min-height:0,會內部捲動) */
.hd-lobby__chat-slot > .hd-chat {
  flex: 1 1 auto;
  min-height: 0;
}
