/* 首頁專用樣式（原本內嵌在 index.html，為了安全標頭搬出來） */
.home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.home .logo { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.home .btn { width: 220px; text-align: center; text-decoration: none; padding: 12px 16px; font-size: 15px; }
.home .dev-link { margin-top: 28px; font-size: 12px; color: var(--muted); }
.home .who { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.7; }
.home .login-error { max-width: 300px; font-size: 13px; color: var(--red); text-align: center; line-height: 1.6; }
.home .linkish { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }
.home .login-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.home .main-links { display: contents; }
.home .dev-link-tight { margin-top: 0; }

/* ---------- 大廳（11/23 前端先行，照畫布《大廳・日間》） ---------- */
/* 背景與立繪之後由玩家在「我的」或「收藏」挑；現在先用簡約背景＋名字第一個字 */
body.room-day .home { background: var(--bg); }
.lobby { position: relative; min-height: 100dvh; overflow: hidden; color: var(--text); }
.lobby-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 38% at 50% 30%, rgba(214, 178, 255, 0.55), rgba(255, 255, 255, 0) 75%),
    radial-gradient(ellipse 40% 28% at 30% 60%, rgba(255, 211, 230, 0.6), rgba(255, 255, 255, 0) 75%),
    radial-gradient(ellipse 40% 28% at 75% 55%, rgba(198, 228, 255, 0.6), rgba(255, 255, 255, 0) 75%),
    var(--bg);
}
.lobby-stand {
  position: fixed; z-index: 1; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 220px; height: 220px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%);
}
.lobby-stand span { font-family: var(--serif); font-size: 120px; font-weight: 700; color: rgba(91, 47, 158, 0.14); }
.lobby-top { position: fixed; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 16px 12px; }
.lobby-round {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; padding: 0; border: none;
  background: none; color: var(--text); font-family: inherit; font-size: 10px; cursor: pointer;
}
.lobby-icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--glass-rgb), 0.72); border: 1px solid rgba(var(--line-rgb), 0.25);
}
.lobby-who { padding: 6px 12px; border-radius: 999px; background: rgba(var(--glass-rgb), 0.72); border: 1px solid rgba(var(--line-rgb), 0.22); font-size: 12px; }
.lobby-who:empty { display: none; }
.lobby-menu {
  position: fixed; z-index: 4; left: 12px; top: 80px; display: flex; flex-direction: column; min-width: 160px; padding: 6px;
  border-radius: 16px; background: rgba(var(--glass-rgb), 0.95); border: 1px solid rgba(var(--line-rgb), 0.18);
  box-shadow: 0 10px 24px rgba(var(--line-rgb), 0.18);
}
.lobby-menu a, .lobby-menu button {
  padding: 11px 12px; border: none; border-radius: 10px; background: none; color: var(--text) !important; text-align: left;
  font-family: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
}
.lobby-menu a:hover, .lobby-menu button:hover { background: rgba(var(--line-rgb), 0.08); }
.lobby-continue {
  position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(126px + env(safe-area-inset-bottom));
  width: min(310px, calc(100vw - 80px)); height: 58px; border-radius: 999px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(115deg, #ffd3e6 0%, #e2cfff 28%, #c6e4ff 52%, #cdf7e2 74%, #fff0c4 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 14px rgba(150, 120, 210, 0.25), 0 8px 24px rgba(190, 160, 255, 0.35);
  color: #2a2140 !important;
}
.lobby-continue-title { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 4px; }
.lobby-continue-sub { font-size: 11px; color: #4d4166; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

