/* ============================================================
   詞武林官網 — 沿用 App 的視覺系統（app/src/index.css）
   暗墨底 × 燈火琥珀 × 硃砂印 × 圓角柔影
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141110;
  --bg-deep: #0d0b0a;
  --surface: #1e1a16;
  --surface-2: #262019;
  --line: #322a22;
  --ink: #f4ecdd;
  --ink-dim: #cabda6;
  --ink-faint: #9c9078;
  --amber: #e8a13c;
  --amber-deep: #b97d20;
  --teal: #56b8a3;
  --red: #d96c5f;
  --cinnabar: #c3402f;
  --cinnabar-soft: rgba(195, 64, 47, 0.12);
  --gold: #d8b25a;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  --font-en: 'Fraunces', Georgia, serif;
  --font-zh: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-zh-serif: 'Noto Serif TC', 'PMingLiU', 'Source Han Serif TC', serif;
  --pad: clamp(20px, 6vw, 96px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-zh);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(232, 161, 60, 0.09), transparent 60%),
    radial-gradient(80% 40% at 50% 110%, rgba(0, 0, 0, 0.5), transparent 70%);
}

main { position: relative; z-index: 1; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── 頂部招募橫幅 ─────────────────────────────────────────── */
.alphaBar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(195, 64, 47, 0.22), rgba(232, 161, 60, 0.16));
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
.alphaBar b { font-weight: 700; letter-spacing: 1px; }
.alphaDot { color: var(--cinnabar); font-size: 9px; animation: pulse 1.8s ease-in-out infinite; }
.alphaMeta { color: var(--ink-dim); }
.alphaBar a {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--amber);
  color: #2a1d08;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.alphaBar a:hover { filter: brightness(1.08); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .alphaDot { animation: none; } }

/* ── 導覽列 ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
  padding: 0 var(--pad);
  background: rgba(13, 11, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-zh-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 4px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.navLinks { display: flex; gap: 30px; font-size: 14px; color: var(--ink-dim); }
.navLinks a:hover { color: var(--amber); }
.navCta {
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #2a1d08;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.navCta:hover { filter: brightness(1.08); }

/* ── 共用區塊 ─────────────────────────────────────────────── */
.section { padding: clamp(70px, 9vw, 120px) var(--pad); }
.kicker {
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sectionTitle {
  font-family: var(--font-zh-serif);
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: 2px;
  line-height: 1.35;
}
.sectionTitle em { color: var(--amber); font-style: normal; }
.divider {
  width: 168px;
  margin-top: 18px;
  opacity: 0.55;
}
.lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.95;
}

.btnPrimary {
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #2a1d08;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btnPrimary:hover { filter: brightness(1.08); }
.btnPrimary:active { transform: scale(0.985); }
.btnGhost {
  display: inline-block;
  padding: 15px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-weight: 700;
  letter-spacing: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btnGhost:hover { border-color: var(--amber-deep); color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(56px, 7vw, 96px) var(--pad) clamp(70px, 8vw, 110px);
  overflow: hidden;
}
.heroBg {
  position: absolute;
  inset: 0;
  background: url('/assets/art/scene-city.webp') center 22% / cover no-repeat;
  opacity: 0.22;
  filter: saturate(0.9);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 16, 0.55) 0%, rgba(20, 17, 16, 0.86) 62%, var(--bg) 100%);
}
.heroInner { position: relative; z-index: 2; }
.eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-zh-serif);
  font-size: clamp(38px, 5.6vw, 68px);
  letter-spacing: 3px;
  line-height: 1.28;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.trust span {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 26, 22, 0.7);
  color: var(--ink-dim);
  font-size: 13px;
}
.trust b { color: var(--amber); font-weight: 700; }

.heroArt {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.seal {
  position: absolute;
  top: -6px;
  right: 4%;
  z-index: 3;
  padding: 14px 9px;
  border: 3px solid var(--cinnabar);
  border-radius: 8px;
  background: var(--cinnabar-soft);
  color: var(--cinnabar);
  font-family: var(--font-zh-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  transform: rotate(-3deg);
  backdrop-filter: blur(4px);
}

/* 手機外框（放真實截圖） */
.phone {
  position: relative;
  width: min(290px, 76vw);
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}
.phone img { border-radius: 22px; }
.phone::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 15px;
  border-radius: 0 0 11px 11px;
  background: var(--bg-deep);
  z-index: 2;
}

/* ── 跑馬燈 ───────────────────────────────────────────────── */
.marquee {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 20px var(--pad);
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
  font-family: var(--font-zh-serif);
  font-size: clamp(17px, 2.4vw, 25px);
  letter-spacing: 4px;
}
.marquee i { color: var(--amber); font-style: normal; font-size: 0.7em; }

/* ── 困境 ─────────────────────────────────────────────────── */
.pain { background: var(--bg-deep); }
.painGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.painGrid li {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.painGrid b {
  display: block;
  margin-bottom: 12px;
  color: var(--cinnabar);
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
}
.painGrid h3 { margin-bottom: 8px; font-size: 19px; letter-spacing: 1px; }
.painGrid p { color: var(--ink-faint); font-size: 15px; }

/* ── 解法 ─────────────────────────────────────────────────── */
.featureList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 18px;
  margin-top: 52px;
}
.featureList li {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber-deep);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 161, 60, 0.06), transparent 55%), var(--surface);
  box-shadow: var(--shadow);
}
.featureList b {
  display: block;
  margin-bottom: 14px;
  color: var(--amber);
  font-family: var(--font-zh-serif);
  font-size: 24px;
  letter-spacing: 2px;
}
.featureList h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: 1px; }
.featureList p { color: var(--ink-dim); font-size: 15px; }
.featureList small {
  display: block;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ── 數字 ─────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats div {
  padding: 34px 18px;
  background: var(--bg-deep);
  text-align: center;
}
.stats b {
  display: block;
  color: var(--amber);
  font-family: var(--font-en);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── 畫面展示 ─────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.shots figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shots img { width: 100%; }
.shots figcaption { padding: 18px 20px 22px; }
.shots h3 { margin-bottom: 7px; font-size: 17px; letter-spacing: 1px; }
.shots p { color: var(--ink-faint); font-size: 14px; line-height: 1.75; }
.shotTag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid var(--amber-deep);
  border-radius: 999px;
  color: var(--amber);
  font-size: 11.5px;
  letter-spacing: 1px;
}

/* ── 招募區 ───────────────────────────────────────────────── */
.beta {
  padding: clamp(70px, 9vw, 120px) var(--pad);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(195, 64, 47, 0.14), transparent 62%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
  text-align: center;
}
.beta .sectionTitle { margin-inline: auto; }
.beta .lead { margin-inline: auto; }
.betaFacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(760px, 100%);
  margin: 44px auto;
}
.betaFacts li {
  flex: 1 1 190px;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.betaFacts b {
  display: block;
  color: var(--amber);
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.betaFacts span { display: block; margin-top: 9px; color: var(--ink-faint); font-size: 13px; }

.betaSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1060px, 100%);
  margin: 0 auto 44px;
  text-align: left;
}
.betaSteps li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.betaSteps b {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-zh-serif);
  font-size: 22px;
  letter-spacing: 3px;
}
.betaSteps h3 { margin-bottom: 10px; font-size: 18px; letter-spacing: 1px; }
.betaSteps p { color: var(--ink-dim); font-size: 14.5px; line-height: 1.85; }

.betaActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.betaNote {
  width: min(680px, 100%);
  margin: 22px auto 0;
  color: var(--ink-faint);
  font-size: 13.5px;
  line-height: 1.95;
}
.inlineLink { color: var(--amber); border-bottom: 1px solid currentColor; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  width: min(780px, 100%);
  margin: 64px auto 0;
  text-align: left;
}
.faqTitle {
  margin-bottom: 20px;
  font-family: var(--font-zh-serif);
  font-size: 22px;
  letter-spacing: 3px;
  text-align: center;
}
.faq details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--amber); }
.faq details p {
  padding: 0 22px 20px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.95;
}

/* ── 線上試玩入口（首頁與 /play/ 共用；遊戲畫面本身的樣式在 /play/assets/play.css）── */
.playTeaser { background: var(--bg-deep); border-top: 1px solid var(--line); }
.playTeaser .gameGrid { margin-top: 44px; }
.playTeaser .heroActions { margin-top: 30px; }
.gameGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.gameGrid a {
  display: grid;
  align-content: start;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.gameGrid a:hover { border-color: var(--amber-deep); }
.gameGrid a:active { transform: scale(0.99); }
.gameGrid b {
  color: var(--amber);
  font-family: var(--font-zh-serif);
  font-size: 21px;
  letter-spacing: 3px;
}
.gameGrid span { color: var(--ink-dim); font-size: 14px; line-height: 1.75; }
.gameGrid small { color: var(--ink-faint); font-size: 12px; letter-spacing: 1px; }
.gameGrid .go { color: var(--amber); font-size: 13px; font-weight: 700; }

/* ── 頁尾 ─────────────────────────────────────────────────── */
footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
  padding: 48px var(--pad);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
}
footer .brand { color: var(--ink); margin-bottom: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer nav a { border-bottom: 1px solid transparent; }
footer nav a:hover { color: var(--amber); border-color: currentColor; }
footer small { display: block; margin-top: 12px; }

/* ── 條款／隱私頁 ─────────────────────────────────────────── */
.legalPage article {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 84px) var(--pad) clamp(70px, 9vw, 110px);
}
.legalPage h1 {
  font-family: var(--font-zh-serif);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 3px;
}
.legalPage .updated {
  margin: 20px 0 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
}
.legalPage h2 {
  margin: 40px 0 12px;
  color: var(--amber);
  font-family: var(--font-zh-serif);
  font-size: 20px;
  letter-spacing: 2px;
}
.legalPage p {
  margin-bottom: 14px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 2;
}
.legalPage a:not(.backLink):not(.brand) { color: var(--amber); border-bottom: 1px solid currentColor; }
.legalPage ul { margin: 0 0 14px; }
.legalPage li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.95;
}
.legalPage li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber-deep);
  font-size: 10px;
  line-height: 2.6;
}
.backLink {
  display: inline-block;
  margin-top: 44px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cinnabar);
  font-weight: 700;
}

/* ── 404 ──────────────────────────────────────────────────── */
.notFound {
  display: grid;
  place-items: center;
  gap: 18px;
  min-height: 62vh;
  padding: 60px var(--pad);
  text-align: center;
}
.notFound h1 {
  font-family: var(--font-zh-serif);
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 4px;
}
.notFound p { color: var(--ink-dim); }

/* ── RWD ──────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .heroArt { margin-top: 40px; }
  .painGrid, .featureList, .betaSteps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 620px) {
  .navLinks { display: none; }
  .nav { height: 64px; }
  .alphaMeta { width: 100%; order: 3; font-size: 12px; }
  .shots { grid-template-columns: 1fr; }
  .heroActions .btnPrimary,
  .heroActions .btnGhost,
  .betaActions .btnPrimary,
  .betaActions .btnGhost { width: 100%; text-align: center; }
  .seal { display: none; }
  /* 首頁的試玩入口在手機上縮成兩欄小卡：十張完整卡片會把下載區推到很遠 */
  .playTeaser .gameGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .playTeaser .gameGrid a { padding: 14px 12px; }
  .playTeaser .gameGrid b { font-size: 18px; letter-spacing: 2px; }
  .playTeaser .gameGrid span:not(.go) { display: none; }
}

/* ── 內容頁：攻略／資料／關於／更新紀錄（scripts/build_site_guides.py 產生）──────
   純靜態、零 JS。放在檔尾，才蓋得過上面 620px 那條把 .navLinks 整個藏起來的規則。 */
.faqMore { margin-top: 14px; text-align: center; font-size: 14.5px; }

.docSkip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: #2a1d08;
  font-weight: 700;
}
.docSkip:focus { top: 12px; }
.docNav .navLinks { gap: 22px; }
.docNav .navLinks a { white-space: nowrap; }
.docNav .navLinks a[aria-current='page'] { color: var(--amber); }
.docNav .brand { white-space: nowrap; }

.docCrumbs {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
  color: var(--ink-faint);
  font-size: 13px;
}
.docCrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.docCrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line); }
.docCrumbs a { border-bottom: 1px solid transparent; }
.docCrumbs a:hover { color: var(--amber); border-color: currentColor; }

.doc {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 26px var(--pad) 20px;
}
.docHead { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.docHead h1 {
  font-family: var(--font-zh-serif);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 2px;
  line-height: 1.35;
}
.docHead .lead { max-width: none; }
.docMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 13.5px;
}
.docMeta a { color: var(--ink-dim); border-bottom: 1px solid var(--line); }
.docMeta a:hover { color: var(--amber); }

.doc h2 {
  margin: 44px 0 14px;
  color: var(--amber);
  font-family: var(--font-zh-serif);
  font-size: clamp(21px, 3.4vw, 26px);
  letter-spacing: 1px;
  line-height: 1.45;
}
.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
  letter-spacing: 1px;
}
.doc p { margin-bottom: 14px; color: var(--ink-dim); font-size: 15.5px; line-height: 2; }
.doc strong { color: var(--ink); }

.tldr {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc .tldr h2 { margin: 0 0 8px; font-size: 15px; letter-spacing: 3px; }
.doc .tldr p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.95; }

.docList, .docSteps { display: grid; gap: 8px; margin: 0 0 14px; }
.docList li, .docSteps li { position: relative; color: var(--ink-dim); font-size: 15px; line-height: 1.95; }
.docList li { padding-left: 20px; }
.docList li::before { content: '◆'; position: absolute; left: 0; color: var(--amber-deep); font-size: 10px; line-height: 2.9; }
.docSteps { counter-reset: step; }
.docSteps li { padding-left: 32px; }
.docSteps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber-deep);
  color: #1a1206;
  font-size: 12px;
  font-weight: 700;
}

/* 表格：外層負責水平捲動，頁面本身永遠不橫向捲動 */
.tableWrap {
  max-width: 100%;
  margin: 14px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-deep);
  -webkit-overflow-scrolling: touch;
}
.tableWrap:focus-visible { outline-offset: 2px; }
.docTable { width: 100%; border-collapse: collapse; font-size: 14px; }
.docTable caption {
  padding: 12px 14px 4px;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: left;
}
.docTable th, .docTable td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.docTable thead th { color: var(--ink-faint); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.docTable tbody th { color: var(--ink); font-weight: 600; }
.docTable tbody tr:last-child > * { border-bottom: 0; }
.docTable .num { text-align: right; font-variant-numeric: tabular-nums; }
.docTable [lang='en'] { font-family: var(--font-en); }

.docNote { color: var(--ink-faint); }
.doc p.docNote { font-size: 13.5px; line-height: 1.9; }

.docFaq { width: 100%; margin: 48px 0 0; }
.doc .docFaq .faqTitle { margin-bottom: 18px; color: var(--ink); text-align: left; }
.doc .docFaq details p { margin: 0; }

.docSources { margin-top: 48px; padding-top: 6px; border-top: 1px solid var(--line); }
.docSources ul { display: grid; gap: 6px; margin-bottom: 14px; }
.docSources li { color: var(--ink-dim); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.docSources h3 { color: var(--ink-faint); font-size: 14px; }

.docRelated h2 { color: var(--ink); }
.docCards { margin-top: 6px; }
.docHub .gameGrid b { font-size: 19px; letter-spacing: 1px; line-height: 1.5; }

.release { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: 0; }
.doc .release h2 { margin-bottom: 4px; }
.release .docMeta { margin: 0 0 14px; }

.docCta {
  width: min(860px, calc(100% - 2 * var(--pad)));
  margin: 36px auto 70px;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(195, 64, 47, 0.16), transparent 62%),
    var(--bg-deep);
  text-align: center;
}
.docCta h2 { font-family: var(--font-zh-serif); font-size: clamp(21px, 4vw, 28px); letter-spacing: 2px; }
.docCta p { max-width: 560px; margin: 12px auto 22px; color: var(--ink-dim); font-size: 15px; }

@media (max-width: 620px) {
  .docNav { gap: 10px; }
  .docNav .brand { gap: 8px; font-size: 18px; letter-spacing: 2px; }
  .docNav .navLinks { display: flex; gap: 14px; font-size: 13.5px; }
  .docNav .navLinks .hideSm { display: none; }
  .docNav .navCta { padding: 8px 12px; font-size: 13px; }
  .doc { padding-inline: 16px; }
  .docCrumbs { padding-inline: 16px; }
  .docTable th, .docTable td { padding: 8px 10px; }
  .docCta { width: calc(100% - 32px); }
  .docCta .betaActions a { width: 100%; }
}
@media (max-width: 420px) {
  .docNav .navLinks .hideXs { display: none; }
}

/* 下載 QR（2026-09-28）：黑白、白底留白——掃描器最穩；圖由 scripts/build_play_qr.py 產生 */
.playQr { margin: 26px auto 0; text-align: center; max-width: 240px; }
.playQr img { display: block; margin: 0 auto; width: 176px; height: 176px; background: #fff; padding: 10px; border-radius: 14px; }
.playQr figcaption { margin-top: 10px; font-size: 14px; line-height: 1.7; }
.heroQrLink { margin: 12px 0 0; font-size: 14px; }
