:root {
  --text-main: #2c3e50;
  --text-muted: #7f8c8d;
  --bg-sand: #f9f6f0;
  --line-color: rgba(44, 62, 80, 0.08);
}

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100dvh;
  overflow: hidden; position: fixed;
  background: linear-gradient(135deg, #f2ece4 0%, #e5dfd8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 左上角品牌整合式點擊連結 */
.corner-brand-link {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  z-index: 10;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.corner-brand-link:hover, .corner-brand-link:active {
  opacity: 0.95;
  transform: translateX(-2px);
}

/* 按鈕左側的小箭頭，與兩行字完美契合 */
.back-arrow {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1px;
}

/* 品牌文字區 */
.studio-tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 移除縮排，達成絕對垂直幾何對齊 */
.brand-name {
  font-family: "Georgia", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-main);
  line-height: 1.1;
  text-indent: 0; /* 徹底移除舊有的縮排，治好對齊強迫症 */
}

.brand-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 1;
}

/* 大廳容器：改為整體垂直居中佈局，消滅孤立感 */
.lobby-container {
  width: 100%; height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 讓內容整體凝聚在螢幕中央 */
  padding: 24px;
  box-sizing: border-box;
}

/* 中央主標題區：不再遙遠，優雅落座於卡片上方 */
.lobby-header {
  text-align: center;
  margin-bottom: 36px; /* 與下方卡片保持黃金比例的舒適間距 */
}

.main-title {
  font-size: 26px; /* 稍微放大，突顯字體本身的厚實質感 */
  color: var(--text-main);
  margin: 0 0 10px 0;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* 遊戲選單網格 */
.game-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

/* 卡片基礎樣式 */
.game-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px 16px 20px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.game-tag-badge {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(44, 62, 80, 0.06);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.03));
}

.game-card h3 {
  font-size: 15px;
  margin: 0 0 4px 0;
  color: var(--text-main);
  font-weight: 700;
}

.game-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  font-weight: 500;
}

.funny-hint {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.65;
  font-weight: 400;
  margin-top: auto; 
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  width: 100%;
  padding-top: 8px;
}

/* 主題框線 */
.game-card.theme-blue { border: 1.5px solid rgba(90, 127, 168, 0.25); }
.game-card.theme-green { border: 1.5px solid rgba(118, 140, 129, 0.25); }
.game-card.theme-purple { border: 1.5px solid rgba(155, 139, 187, 0.25); }
.game-card.theme-orange { border: 1.5px solid rgba(219, 171, 165, 0.25); }

.game-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.85);
}

/* 絕對定位到底部的優雅頁尾 */
.lobby-footer {
  position: absolute;
  bottom: 28px;
  text-align: center;
  width: 100%;
}

.lobby-footer p {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.5;
  letter-spacing: 0.3px;
  margin: 0;
}