/* 色票：由 tools/build-pages.ts 從 web/index.html 抽出，不要手改 */
  :root {
    --bg: #FBFAF5; --ink: #2E3133; --ink2: #5F635D; --card: #FFFFFF; --line: #E2DAC2; --cell: #F1ECDD;
    --brand: #1E50A2; --brand-ink: #FFFFFF; --accent: #EB6101; --accent-ink: #9F563A; --sand: #D8A373;
    --glass: rgba(255, 255, 255, .55); --glass-line: rgba(255, 255, 255, .85); --glass-hi: rgba(255, 255, 255, .95);
    --glass-shadow: 0 10px 28px rgba(30, 60, 90, .10); --blur: 20px;
    --tint1: #7EBEA5; --tint2: #F8B500; --tint1-a: .38; --tint2-a: .24;
    --sat: env(safe-area-inset-top);
    --sans: "Noto Sans TC", system-ui, -apple-system, "Hiragino Sans", "Segoe UI", sans-serif;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #15191B; --ink: #EDE8DA; --ink2: #B3AF9F; --card: #1E2326; --line: #2C3236; --cell: #23292C;
      --brand: #8DB3E8; --brand-ink: #15191B; --accent: #ED6D3D; --accent-ink: #ED6D3D; --sand: #B8875C;
      --glass: rgba(34, 40, 44, .55); --glass-line: rgba(255, 255, 255, .14); --glass-hi: rgba(255, 255, 255, .18);
      --glass-shadow: 0 10px 28px rgba(0, 0, 0, .35);
      --tint1: #3A6FC4; --tint2: #BF783A; --tint1-a: .40; --tint2-a: .30;
    }
  }
/* 遊戲說明頁、遊戲一覽頁共用的樣式（docs/規格/30-遊戲說明頁.md〈品牌視覺〉）。
   色票不在這裡：tools/build-pages.ts 從 web/index.html 的 :root 抽出來放在這份前面，寫成 dist/pages.css，色票只有一個來源。
   外框用玻璃（頁首、卡片、按鈕）、盤面平塗（示意圖、截圖、遊戲圖示）；不用漸層、不用 emoji。 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; overflow-x: hidden; overflow-wrap: break-word; }
a { color: var(--brand); }
h1, h2, p, ul, figure { margin: 0; }

/* 背景兩塊平塗的色塊（位置照分享圖 tools/render-og.ts）：玻璃後面要有東西才看得出模糊 */
body::before, body::after { content: ''; position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; }
body::before { width: min(560px, 92vw); aspect-ratio: 1; right: max(-160px, -26vw); top: max(-220px, -36vw); background: var(--tint1); opacity: var(--tint1-a); }
body::after { width: min(420px, 70vw); aspect-ratio: 1; left: max(-140px, -24vw); bottom: max(-230px, -38vw); background: var(--tint2); opacity: var(--tint2-a); }

/* 玻璃：半透明＋背景模糊＋上緣一道細亮線 */
.glass, .play, .card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .card { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.wrap { max-width: 720px; margin: 0 auto; padding: 12px 16px 32px; }

/* 頁首：logo＋品牌名稱、語言切換 */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 16px; border-radius: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: .02em; }
.logo { width: 26px; height: 35px; flex: none; }
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; color: var(--ink2); }
.langs a { color: var(--ink2); text-decoration: none; padding: 2px 0; }
.langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

main { display: grid; gap: 16px; margin-top: 16px; }
section { padding: 20px; border-radius: 24px; }
h1 { font-size: 30px; line-height: 1.3; font-weight: 900; }
h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; line-height: 1.4; margin-bottom: 8px; }
h2 .i { color: var(--brand); }

/* 標題：遊戲圖示＋名稱、簡介、開始玩 */
.hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 24px 20px; }
.gicon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; flex: none; }
.gicon .i { width: 28px; height: 28px; }
.gicon.big { width: 72px; height: 72px; border-radius: 20px; }
.gicon.big .i { width: 42px; height: 42px; }
.blurb { font-size: 17px; }
.free { font-size: 14px; color: var(--ink2); }
.intro { text-align: left; }

/* 主要按鈕：瑠璃色底、圖示＋文字 */
.play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 28px; border-radius: 14px; background: var(--brand); border-color: transparent; color: var(--brand-ink); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px color-mix(in srgb, var(--brand) 28%, transparent); }
.play .i { width: 22px; height: 22px; }
.play:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.cta { text-align: center; }

/* 示意圖（規格 14 示範動畫的兩格）＋盤面截圖：都是平塗，不加玻璃 */
.figs { display: grid; gap: 16px; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.demo .arrow { align-self: center; color: var(--ink2); margin-top: -2em; }
.demo .arrow .i { width: 22px; height: 22px; }
figure { display: grid; gap: 6px; justify-items: center; text-align: center; }
figure .dm { display: block; width: 100%; max-width: 280px; margin: 0; }
figcaption { font-size: 14px; line-height: 1.5; color: var(--ink2); }
figcaption b { display: block; color: var(--ink); font-size: 15px; }
.shot img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: 16px; }

.lines { padding: 0; list-style: none; display: grid; gap: 10px; }
.lines li { display: flex; gap: 10px; align-items: flex-start; }
.lines li > .i { color: var(--brand); margin-top: .25em; vertical-align: 0; }
.section-text + h2 { margin-top: 16px; }

/* 其他遊戲、遊戲一覽的卡片 */
.cards { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; color: var(--ink); text-decoration: none; height: 100%; }
.card b { display: block; font-size: 17px; }
.card span.t { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.card .go { margin-left: auto; color: var(--ink2); }

footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--ink2); display: grid; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
footer a { color: var(--ink2); }
