/* ==========================================================================
   桌游吗 · 全局样式
   ========================================================================== */

:root {
  --bg: #080b16;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-2: rgba(255, 255, 255, 0.095);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #eaf0ff;
  --text-dim: #9aa6c9;
  --text-mute: #6c78a1;
  --x: #38bdf8;
  --o: #fb7185;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --success: #34d399;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 12% -10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(820px 520px at 92% 0%, rgba(34, 211, 238, 0.18), transparent 62%),
    radial-gradient(760px 700px at 50% 118%, rgba(251, 113, 133, 0.14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ------------------------------- Layout --------------------------------- */

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 22px;
}

.app-view { flex: 1 1 auto; padding-bottom: 40px; }

/* ------------------------------- Header --------------------------------- */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;      /* 窄屏时不被导航挤压 */
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1224;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px -12px rgba(139, 92, 246, 0.9);
}
.brand-logo img { width: 100%; height: 100%; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.brand-text strong { font-size: 17px; letter-spacing: 0.02em; }
.brand-text small { font-size: 11px; color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase; }

.app-nav { display: flex; align-items: center; gap: 10px; }
.app-nav .ico { font-size: 14px; }

/* 手机访问：右上角菜单只显示图标；放不下时换行，不挤压品牌文字 */
@media (max-width: 560px) {
  .app-header { flex-wrap: wrap; row-gap: 10px; }
  .app-nav { flex-wrap: wrap; gap: 8px; }
  .app-nav .lbl { display: none; }
  .nav-chip, .nav-link { padding: 6px 10px; }
}

.nav-chip {
  padding: 7px 15px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.nav-chip.is-active { color: var(--text); border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.16); }

.nav-link {
  padding: 7px 15px;
  font-size: 13px;
  border-radius: 999px;
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  transition: color .2s, border-color .2s, background .2s;
}
.nav-link:hover { color: var(--text); border-color: var(--border); background: var(--surface-2); }

/* -------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  margin-top: 8px;
  padding: 46px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(150deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.08) 55%, rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 28, 0.6);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 620px; }

.hero-eyebrow {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  color: #d9c9ff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffffff, #c9d6ff 55%, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-dim); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-stats b { font-size: 18px; color: var(--text); margin-right: 2px; }
.hero-stats .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-mute); }

/* ------------------------------ Sections -------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 44px 0 20px;
}
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: 0.01em; }
.section-head p { margin: 0; font-size: 13px; color: var(--text-mute); }

/* --------------------------- 人数筛选 ----------------------------------- */

.home-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  align-self: center;
}

.filter-label { font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-mute); }

.filter-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.filter-chip {
  padding: 7px 16px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-dim);
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.filter-chip:hover { color: var(--text); border-color: var(--border); background: var(--surface-2); }
.filter-chip.is-active {
  color: #0a0e1a;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(120deg, #a78bfa, #22d3ee);
  box-shadow: 0 12px 26px -14px rgba(139, 92, 246, 0.95);
}

.grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
}

/* ---------------------------- Game cards -------------------------------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), border-color .28s, box-shadow .28s;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 34px 60px -28px rgba(139, 92, 246, 0.55);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(360px 180px at 85% 0%, rgba(139, 92, 246, 0.28), transparent 68%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.game-card:hover .card-glow { opacity: 1; }

.card-title-row { display: flex; align-items: center; gap: 12px; }

/* 编号：与游戏名同排同号字 */
.card-num {
  display: inline-grid;
  place-items: center;
  padding: 7px 11px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: #dbe3ff;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
}

.card-title-row h3 { margin: 0; font-size: 18px; letter-spacing: 0.01em; }

.badge {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 999px;
  color: #0a0e1a;
  font-weight: 700;
  background: linear-gradient(120deg, #a78bfa, #22d3ee);
}

.card-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
  flex: 1 1 auto;
}

.game-card.is-upcoming .card-num { opacity: 0.7; }

/* 底部标签：最多 3 个、每个最多 2 字 */
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.tag {
  padding: 3px 9px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 999px;
  color: #b9c4e6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  transition: color .2s;
}
.card-cta .arrow { transition: transform .25s; }
.game-card:hover .card-cta { color: #e9d5ff; }
.game-card:hover .card-cta .arrow { transform: translateX(4px); }
.card-cta.muted { color: var(--text-mute); font-weight: 500; }

.game-card.is-upcoming { cursor: default; opacity: 0.72; }
.game-card.is-upcoming:hover { transform: none; border-color: var(--border-soft); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.95); }

/* ----------------------------- Game page -------------------------------- */

.game-page { padding-top: 20px; }

.game-page-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.game-page-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  font-size: 30px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
/* 编号形态：与首页卡片 .card-num 观感一致 */
.game-page-icon.is-num {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  color: var(--text);
}

.game-page-title h1 { margin: 0 0 6px; font-size: clamp(22px, 3.6vw, 30px); }
.game-page-title p { margin: 0; font-size: 13.5px; color: var(--text-dim); }

/* ------------------------------- Footer --------------------------------- */

.app-footer {
  padding: 30px 0 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-mute);
  border-top: 1px solid var(--border-soft);
}
.app-footer p { margin: 0; }

/* ------------------------------ Buttons --------------------------------- */

.btn {
  padding: 11px 20px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform .18s, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: rgba(139, 92, 246, 0.45); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }

.btn-primary {
  border-color: transparent;
  color: #0a0e1a;
  background: linear-gradient(120deg, #a78bfa, #22d3ee);
  box-shadow: 0 14px 30px -16px rgba(139, 92, 246, 0.95);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(120deg, #a78bfa, #22d3ee); }

/* 游戏脚本按需加载时的占位提示 */
.game-loading {
  padding: 40px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
.game-loading.is-error { color: #fda4af; }

/* --------------------- 游戏内提示条（模式页签与内容之间） --------------------- */

/* 各游戏共用：错误/提示一律走这一行，不用 alert 弹窗。
   位置：模式页签的下一行（由 JS 插到 .mode-panel 之前）
   宽度：与内容列 / .mode-tabs 同宽（站点统一 min(94vw, 620px)），纯 CSS，无 JS 测量 */
.bgc-notice {
  align-self: center;
  box-sizing: border-box;
  width: min(94vw, 620px);
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  font-size: 12.5px;
  text-align: center;
  border-radius: var(--radius-sm);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.12);
}
.bgc-notice[hidden] { display: none; }

/* ------------------------- 首页快速加入 --------------------------- */

.quick-join {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.quick-join-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.quick-join-form { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-join-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.55);
  transition: border-color .2s;
}
.quick-join-input:focus { outline: none; border-color: rgba(139, 92, 246, 0.55); }
.quick-join-msg { margin: 10px 0 0; font-size: 12.5px; color: #fda4af; }
body.theme-light .quick-join-input { background: rgba(15, 23, 42, 0.04); }

/* ------------------------- 人数选择（房间大厅） --------------------------- */

/* 按钮点击选择人数，不用下拉框；选项数量由游戏注册信息里的可玩人数决定 */
.pc-field { display: block; margin-bottom: 14px; }
.pc-field > .pc-label { display: block; margin-bottom: 7px; font-size: 12.5px; color: var(--text-dim); }
.pc-options { display: flex; flex-wrap: wrap; gap: 8px; }

.pc-btn {
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(6, 9, 18, 0.55);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.pc-btn:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.45); }
.pc-btn.is-active {
  color: #0a0e1a;
  border-color: transparent;
  background: linear-gradient(120deg, #a78bfa, #22d3ee);
  box-shadow: 0 12px 26px -18px rgba(139, 92, 246, 0.95);
}

/* 卡片本身已用 gap 排版时（井字棋 / 海战棋），不再叠加外边距 */
.room-card > .pc-field,
.bs-card > .pc-field { margin-bottom: 0; }

/* ------------------------------ Switch ---------------------------------- */

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: background .22s, border-color .22s;
  flex: 0 0 auto;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8edff;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1);
}
.switch input:checked + .switch-track { background: rgba(139, 92, 246, 0.75); border-color: rgba(167, 139, 250, 0.8); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:disabled + .switch-track { opacity: 0.45; }
.switch.is-disabled { cursor: not-allowed; opacity: 0.6; }

/* ------------------------------ Details --------------------------------- */

details.panel {
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
}
details.panel > summary {
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "＋"; font-size: 15px; color: var(--text-mute); transition: transform .25s; }
details.panel[open] > summary::after { content: "－"; }
details.panel > summary:hover { background: var(--surface-2); }
.panel-body { padding: 4px 20px 20px; font-size: 13.5px; line-height: 1.75; color: var(--text-dim); }
.panel-body h4 { margin: 16px 0 6px; font-size: 13.5px; color: var(--text); }
.panel-body h4:first-child { margin-top: 6px; }
.panel-body p, .panel-body ol, .panel-body ul { margin: 0 0 10px; padding-left: 20px; }
.panel-body p { padding-left: 0; }
.panel-body li { margin-bottom: 5px; }
.panel-body strong { color: #c4b5fd; }

/* --------------------------- Contact / Modal ---------------------------- */

.nav-btn { font-family: inherit; cursor: pointer; }

.nav-btn .theme-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.nav-btn .theme-icon svg { display: block; }

/* 主题切换：纯图标按钮，收窄内边距 */
.nav-btn[data-act="theme"] { display: inline-flex; align-items: center; padding: 7px 11px; }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 16, 0.68);
  animation: modal-fade .2s ease-out;
}

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(26, 32, 56, 0.99), rgba(11, 15, 28, 0.99));
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modal-pop .22s cubic-bezier(.2, .8, .3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--text-dim);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

.modal-title { margin: 0 0 8px; font-size: 18px; }
.modal-sub { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: var(--text-mute); }

.service-row { margin-bottom: 18px; text-align: left; }
.service-row:last-child { margin-bottom: 0; }
.service-label { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--text-dim); }

.service-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.service-value code { font-size: 16px; letter-spacing: 0.06em; color: var(--text); }

.service-copy { padding: 6px 14px; font-size: 12.5px; border-radius: 999px; }

.service-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.service-qr img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.service-qr span { font-size: 12.5px; color: var(--text-mute); }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 640px) {
  #app { padding: 0 15px; }
  .app-header { gap: 10px; }
  .hero { padding: 32px 22px; }
  .brand { gap: 10px; }
  .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
  .brand-text { flex: 0 0 auto; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { display: none; }
  .game-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-filter { width: 100%; margin-left: 0; }
}

/* ------------------------------ 亮色主题 ------------------------------ */

body.theme-light {
  --bg: #eef1f9;
  --surface: rgba(15, 23, 42, 0.045);
  --surface-2: rgba(15, 23, 42, 0.085);
  --border: rgba(15, 23, 42, 0.16);
  --border-soft: rgba(15, 23, 42, 0.1);
  --text: #1c2438;
  --text-dim: #4a5674;
  --text-mute: #79839f;
  --shadow-lg: 0 30px 60px -30px rgba(30, 41, 82, 0.35);
  background-image:
    radial-gradient(900px 600px at 12% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(820px 520px at 92% 0%, rgba(34, 211, 238, 0.12), transparent 62%),
    radial-gradient(760px 700px at 50% 118%, rgba(251, 113, 133, 0.1), transparent 60%);
}

/* Hero：深色底换成浅色底，标题渐变换成深色系 */
body.theme-light .hero {
  background:
    linear-gradient(150deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.07) 55%, rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 44px -26px rgba(30, 41, 82, 0.35);
}
body.theme-light .hero::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 65%);
}
body.theme-light .hero h1 {
  background: linear-gradient(100deg, #1c2438, #3d4d78 55%, #0e7490);
  -webkit-background-clip: text;
  background-clip: text;
}
body.theme-light .hero-eyebrow {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

/* 卡片：浅色文字换成深色系 */
body.theme-light .game-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
  box-shadow: 0 18px 40px -26px rgba(30, 41, 82, 0.4);
}
body.theme-light .game-card.is-upcoming:hover {
  box-shadow: 0 18px 40px -26px rgba(30, 41, 82, 0.4);
}
body.theme-light .card-num {
  color: #3d4d78;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.1));
}
body.theme-light .tag { color: #4a5674; background: rgba(15, 23, 42, 0.05); }
body.theme-light .card-cta { color: #7c3aed; }
body.theme-light .game-card:hover .card-cta { color: #6d28d9; }
body.theme-light .panel-body strong { color: #6d28d9; }

/* 弹窗：深色卡片换成白色 */
body.theme-light .modal-mask { background: rgba(120, 132, 166, 0.45); }
body.theme-light .modal-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(240, 243, 250, 0.99));
}
body.theme-light .service-qr img { background: #f4f6fb; }

/* 按钮渐变上的深色文字在亮色下依然可读，无需调整 */
