:root {
  --bg: #0c0a08;
  --bg-2: #13100d;
  --panel: #18140f;
  --line: #3a3026;
  --line-soft: #2a231c;
  --gold: #c9a45c;
  --gold-hi: #ead39a;
  --text: #ddd3c2;
  --muted: #9b907f;
  --ok: #7cc36a;
  --warn: #d9a23f;
  --idle: #6f665a;
  --font-display: "Cinzel", "Noto Serif TC", "Times New Roman", serif;
  --font-body: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "Hiragino Sans", system-ui, sans-serif;
  --radius: 6px;
}

/* 簡中、日文用各自的字型，避免同一個字在繁中字型裡字形不同 */
:root:lang(zh-Hans) {
  --font-display: "Cinzel", "Noto Serif SC", "Times New Roman", serif;
  --font-body: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}
/* Cinzel 沒有西里爾字母，俄文標題用 Philosopher */
:root:lang(ru) {
  --font-display: "Philosopher", "Times New Roman", serif;
}
:root:lang(ja) {
  --font-display: "Cinzel", "Noto Serif JP", "Yu Mincho", serif;
  --font-body: "Segoe UI", "Yu Gothic UI", "Meiryo", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 116px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-hi); }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace; font-size: 0.9em; }
code { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0.05em 0.35em; word-break: break-all; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; margin: 12px 0; }
pre code { background: none; border: 0; padding: 0; word-break: normal; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 10, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { display: flex; align-items: flex-end; gap: 24px; height: 52px; }
.brand { font-family: var(--font-display); font-weight: 700; color: var(--gold); text-decoration: none; letter-spacing: 0.08em; white-space: nowrap; align-self: center; }
.brand span { color: var(--muted); font-weight: 500; }

/* 第一層：語言分頁（底線式，接著下面的子分頁列） */
.tabs { display: flex; margin-left: auto; flex-shrink: 0; }
.tabs a {
  font-size: 0.92rem; color: var(--muted); text-decoration: none;
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  padding: 7px 16px 8px; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--gold-hi); }
.tabs a[aria-current="page"] { position: relative; color: var(--gold-hi); background: var(--bg-2); border-color: var(--line); }

.tabs .globe { align-self: center; margin-right: 4px; font-size: 0.9rem; opacity: 0.8; }

/* 窄螢幕：分頁放不下，改在頁面最上面一次列出所有語言（會折行），標題列只留版本分頁 */
.lang-strip { display: none; }
@media (max-width: 1000px) {
  .tabs, .topbar-inner { display: none; }
  .lang-strip {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
    padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line-soft);
  }
  .lang-strip .globe { font-size: 1rem; margin-right: 2px; }
  .lang-strip a {
    font-size: 0.85rem; color: var(--text); text-decoration: none; white-space: nowrap;
    padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  }
  .lang-strip a:hover { border-color: var(--gold); color: var(--gold-hi); }
  .lang-strip a[aria-current="page"] { color: #1a1206; background: var(--gold); border-color: var(--gold); font-weight: 600; }
  .topbar .subbar-inner { border-top: 0; }
  html { scroll-padding-top: 64px; }
}

/* 第二層：桌面版／瀏覽器版子分頁，跟頁內導覽同一列 */
.subbar-inner { display: flex; align-items: center; gap: 20px; height: 46px; }
.topbar .subbar-inner { max-width: none; background: var(--bg-2); border-top: 1px solid var(--line); }
.subbar-inner { padding-left: max(16px, calc((100% - 1080px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1080px) / 2 + 16px)); }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.92rem; opacity: 0.85; }
.nav a:hover { color: var(--gold-hi); opacity: 1; }
.subtabs { display: flex; gap: 4px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex-shrink: 0; }
.subtabs button {
  font: inherit; font-size: 0.85rem; color: var(--muted); background: transparent; cursor: pointer;
  border: 0; border-radius: 999px; padding: 3px 14px; white-space: nowrap;
}
.subtabs button small { font-size: 0.78em; opacity: 0.8; margin-left: 4px; }
.subtabs button:hover { color: var(--gold-hi); }
.subtabs button[aria-pressed="true"] { color: #1a1206; background: var(--gold); }

/* 只顯示目前版本的內容 */
body[data-platform="desktop"] [data-only="web"],
body[data-platform="web"] [data-only="desktop"] { display: none; }
.link-btn { font: inherit; color: var(--gold-hi); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* 選版本的大卡片：首屏一份、安裝區塊開頭一份（compact）。選中的用金框和淡金底，靠 body[data-platform] 判斷 */
.platform-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); justify-content: center; gap: 12px; margin: 8px auto 28px; }
.pick-label { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.05em; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px 16px;
  font: inherit; color: var(--text); text-align: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, background 0.15s;
}
.pick:hover { border-color: var(--gold); }
.pick-icon { font-size: 1.6rem; line-height: 1.25; }
.pick-title { font-weight: 700; font-size: 1.1rem; color: var(--gold-hi); }
.pick-sub { font-size: 0.8rem; color: var(--muted); }
.pick-desc { font-size: 0.86rem; line-height: 1.45; margin-top: 6px; }
body[data-platform="desktop"] .pick[data-platform="desktop"],
body[data-platform="web"] .pick[data-platform="web"] { border-color: var(--gold); background: rgba(201, 164, 92, 0.14); box-shadow: inset 0 0 0 1px var(--gold); }
body[data-platform="desktop"] .pick[data-platform="desktop"]::after,
body[data-platform="web"] .pick[data-platform="web"]::after {
  /* 勾勾用 SVG 畫（文字的 ✓ 在各字型裡位置不一，會偏離圓心） */
  content: ""; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%231a1206' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.platform-pick.compact { justify-content: start; grid-template-columns: repeat(2, max-content); margin: 0 0 28px; }
.compact .pick { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; padding: 10px 38px 10px 14px; text-align: left; white-space: nowrap; }
.compact .pick-icon { font-size: 1.2rem; }
.compact .pick-title { font-size: 1rem; }
.compact .pick::after { top: 50% !important; margin-top: -10px; }
@media (max-width: 760px) {
  .platform-pick { gap: 8px; }
  .pick { padding: 12px 8px 14px; }
  .pick-desc { font-size: 0.8rem; }
  .platform-pick.compact { grid-template-columns: 1fr 1fr; }
  .compact .pick { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 30px 8px 12px; white-space: normal; }
  .compact .pick-icon { display: none; }
}

/* Hero */
.hero {
  padding: 88px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(201, 120, 40, 0.18), transparent 70%),
    linear-gradient(var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
}
.eyebrow { color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--gold-hi); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 16px; word-break: keep-all; text-shadow: 0 2px 24px rgba(201, 120, 40, 0.35); }
.lead { max-width: 640px; margin: 0 auto 32px; color: var(--text); font-size: 1.08rem; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer; transition: filter 0.15s, border-color 0.15s;
}
.btn-primary {
  color: #1a1206;
  background: linear-gradient(#e6c47c, #b88a3e);
  border: 1px solid #f1d899;
  box-shadow: 0 4px 18px rgba(201, 140, 60, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[aria-disabled="true"] {
  color: var(--muted); background: var(--panel); border-color: var(--line); box-shadow: none; cursor: default; filter: none;
}
.btn-ghost { color: var(--gold-hi); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn small { font-weight: 400; opacity: 0.75; }

.meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 0.9rem; }
.meta strong { color: var(--text); font-weight: 600; }

/* 截圖：一排橫向捲動，寬螢幕一次兩張；上一張／下一張按鈕由 app.js 在放不下時加上 */
.screens { padding: 48px 0 8px; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 4px 4px 12px;
}
.shots + .shots, .shots-nav + .shots { margin-top: 16px; }
.shot { margin: 0; scroll-snap-align: start; }
.screens img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.screens figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; text-align: center; }
/* 啟動器、瀏覽器版（有直式的手機畫面）：同樣高度並排 */
.shots-platform { grid-auto-columns: max-content; }
.shots-platform .shot { width: min-content; }
.shots-platform img { height: clamp(240px, 30vw, 360px); width: auto; max-width: none; }
.shots-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.shots-nav[hidden] { display: none; }
.shots-nav > button {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 2px; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 1.35rem; line-height: 1; color: var(--gold-hi);
  background: rgba(201, 164, 92, 0.08); border: 1px solid rgba(201, 164, 92, 0.6); transition: background 0.15s, border-color 0.15s;
}
.shots-nav > button:hover:not(:disabled) { background: rgba(201, 164, 92, 0.2); border-color: var(--gold); }
.shots-nav > button:disabled { opacity: 0.3; cursor: default; }
/* 第幾步的圓點（手機書籤教學） */
.shots-dots { display: flex; align-items: center; gap: 6px; }
.shots-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width 0.2s, background 0.2s; }
.shots-dots button[aria-current="step"] { width: 20px; background: var(--gold); }
.shots-credit { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 12px 0 0; opacity: 0.8; }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
h3 { font-size: 1.15rem; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

/* Language grid */
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lang {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.lang.available { border-color: var(--line); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.15); }
.lang-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lang-name { font-weight: 600; font-size: 1.05rem; }
.lang-code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.lang-sub { color: var(--muted); font-size: 0.85rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.status.available { color: var(--ok); }
.status.available::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.beta { color: var(--warn); }
.status.beta::before { background: var(--warn); }
.lang.beta { border-color: var(--line); }
.status.planned { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 16px 18px 16px 64px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #1a1206; background: var(--gold);
}
.steps strong { color: var(--gold-hi); display: block; margin-bottom: 2px; }
.steps p { margin: 0; color: var(--text); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card p { margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin-bottom: 6px; }
.cli-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.92rem; }
.cli-list dt { white-space: nowrap; }
.cli-list dd { margin: 0; color: var(--muted); }

/* Sources */
.card .card-sub { color: var(--muted); font-size: 0.85rem; margin: -6px 0 10px; }
.links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.links a {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--gold-hi); background: var(--bg-2);
}
.links a:hover { border-color: var(--gold); }
.links a::after { content: "↗"; color: var(--muted); }
.links .host { color: var(--muted); font-size: 0.8rem; margin-left: auto; white-space: nowrap; }
.source-note { color: var(--muted); font-size: 0.9rem; margin: 20px 0 0; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold-hi); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq .answer { padding: 0 0 18px; color: var(--text); }
.faq .answer p { margin: 0 0 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); padding: 32px 0 40px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.footer p { margin: 0 0 6px; }
.footer-small { opacity: 0.7; font-size: 0.8rem; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .brand span { display: none; }
  .topbar-inner { gap: 12px; }
  .tabs a { padding: 7px 10px 8px; font-size: 0.85rem; }
  .subtabs { margin: 0 auto; }
  .subtabs button small { display: none; }
  .hero { padding: 56px 0 40px; }
  .cards { grid-template-columns: 1fr; }
  .shots-game { grid-auto-columns: 88%; gap: 12px; }
  .section { padding: 48px 0; }
  .steps li { padding-left: 58px; }
  .steps li::before { left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Web (bookmarklet) */
.bookmarklet-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bookmarklet { cursor: grab; border-style: dashed; }
.bookmarklet:active { cursor: grabbing; }
.bookmarklet-hint { color: var(--muted); font-size: 0.88rem; }
.bookmarklet-hint.flash { color: var(--warn); }
.bookmarklet-code { max-height: 6em; overflow: auto; font-size: 0.8rem; color: var(--muted); }
.bookmarklet-code code { white-space: pre-wrap; word-break: break-all; }
.web-steps { margin: 12px 0 0; padding-left: 1.4em; }
.web-steps li { margin-bottom: 8px; }
.web-usage { margin-top: 16px; }

/* 手機書籤教學：iPhone／Android 分頁，每步一個 HTML/CSS 畫的深色示意畫面（.phone）＋短標題＋說明。
   手機上一次一張（置中、下面圓點和上一張／下一張），寬螢幕直接排成格子 */
#web .cards { grid-template-columns: 1fr; }
#web .card > h3 { font-family: var(--font-body); font-weight: 700; }
.os-tabs { display: inline-flex; gap: 4px; margin: 18px 0 14px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.os-tabs button { font: inherit; font-size: 0.9rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 16px; cursor: pointer; }
.os-tabs button:hover { color: var(--gold-hi); }
.os-tabs button[aria-pressed="true"] { color: #1a1206; background: var(--gold); }
.guide[data-os="ios"] [data-os-pane="android"],
.guide[data-os="android"] [data-os-pane="ios"] { display: none; }
.guide-steps {
  list-style: none; margin: 0; padding: 4px 2px 6px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; align-items: start;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  transition: height 0.25s;
}
.guide-steps::-webkit-scrollbar { display: none; }
.guide-step { width: 100%; max-width: 300px; justify-self: center; scroll-snap-align: center; }
.guide-step h4 { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-family: var(--font-body); font-size: 1rem; color: var(--gold-hi); }
.step-no { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.8rem; font-weight: 700; color: #1a1206; background: var(--gold); }
.guide-step p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.guide-step .step-note { margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.guide-note { color: var(--muted); font-size: 0.82rem; margin: 10px 0 0; }
@media (min-width: 761px) {
  .guide-steps { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 18px; overflow: visible; scroll-snap-type: none; }
  .guide-step { max-width: none; }
}

/* 示意畫面：深色模式的 Safari／Chrome，配網站的色調。只畫跟這一步有關的那一截，裁掉的那邊淡出 */
.phone {
  position: relative; width: 100%; max-width: 232px; margin: 0 auto; overflow: hidden; box-sizing: border-box;
  border: 5px solid #050403; border-radius: 22px; background: #110e0b; color: #e6ddcd;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, 0.5);
  font: 10.5px/1.35 -apple-system, "Segoe UI", system-ui, sans-serif;
}
.phone.android { font-family: Roboto, "Segoe UI", system-ui, sans-serif; }
.phone.crop-top { padding-bottom: 22px; border-bottom: 0; border-radius: 22px 22px 0 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
.phone.crop-bottom { padding-top: 22px; border-top: 0; border-radius: 0 0 22px 22px; -webkit-mask-image: linear-gradient(transparent, #000 26px); mask-image: linear-gradient(transparent, #000 26px); }
.ph-screen { position: relative; }
.ph-url { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 8px 10px; padding: 5px 10px; border-radius: 10px; background: #241e17; color: #a39885; white-space: nowrap; overflow: hidden; }
.android .ph-url { justify-content: space-between; border-radius: 999px; }
.ph-url.focus { justify-content: flex-start; background: #1b1611; color: #f1e8d8; box-shadow: inset 0 0 0 1.5px var(--gold); }
.ph-dots { padding: 0 4px; border-radius: 4px; font-weight: 700; color: #e6ddcd; }
.ph-ph { display: block; flex: 1; height: 6px; border-radius: 3px; background: #3a3127; }
.ph-site { display: grid; gap: 7px; justify-items: start; padding: 6px 14px 4px; }
.ph-brand { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold); }
.ph-brand i { font-style: normal; color: var(--muted); }
.ph-title { font-family: var(--font-display); font-size: 14px; line-height: 1.25; color: var(--gold-hi); }
.ph-btn { padding: 6px 10px; border-radius: 6px; background: var(--gold); color: #1a1206; font-weight: 700; }
.ph-code { padding: 2px 6px; border: 0; border-radius: 4px; background: #1f1a14; color: #8f8574; font: 9px/1.3 Consolas, "Cascadia Mono", monospace; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 9.5px; }
.ph-sheet { border-top: 1px solid #3a3026; border-radius: 14px 14px 0 0; background: #1d1813; padding: 4px 0 6px; }
.ph-sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.ph-fav { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--gold); color: #1a1206; font-family: var(--font-display); font-size: 9px; font-weight: 700; }
.ph-apps { display: flex; gap: 10px; padding: 4px 12px 8px; }
.ph-apps i { width: 26px; height: 26px; border-radius: 50%; background: #2b241c; }
.ph-row { display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 12px; border-top: 1px solid #2a231b; }
.ph-row.dim { opacity: 0.55; }
.ph-ico { flex: none; width: 14px; text-align: center; color: #a39885; }
.ph-t { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-t b, .ph-t small { overflow: hidden; text-overflow: ellipsis; }
.ph-t small { color: #8f8574; font-size: 9px; }
.ph-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px 8px; border-bottom: 1px solid #2a231b; }
.ph-head b { flex: 1; min-width: 0; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-head > span { flex: none; min-width: 24px; padding: 1px 5px; border-radius: 6px; color: var(--gold-hi); }
.ph-head > span:last-child { text-align: right; }
.android .ph-head b { text-align: left; }
.android .ph-head > span { color: #e6ddcd; }
.ph-foot { display: flex; justify-content: space-between; padding: 8px 16px 10px; border-top: 1px solid #2a231b; background: #1d1813; color: var(--gold-hi); }
.ph-foot > span { padding: 1px 6px; border-radius: 6px; }
.ph-field { margin: 8px 12px 0; padding: 6px 9px; border-radius: 8px; background: #241e17; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.android .ph-field { margin-top: 2px; border-radius: 4px; background: transparent; border: 1px solid #4a3d2e; }
.ph-label { margin: 8px 12px 0; color: var(--gold); font-size: 9.5px; }
.ph-menu { position: absolute; top: 38px; right: 8px; width: 60%; border: 1px solid #3a3026; border-radius: 8px; background: #241e17; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.ph-icons { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 12px; }
.ph-icons span { padding: 0 3px; border-radius: 5px; }
.ph-pop { width: 62%; margin: 2px 10px 0 auto; border: 1px solid #3a3026; border-radius: 6px; background: #241e17; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); overflow: hidden; }
.ph-pop .ph-row:first-child, .ph-suggest .ph-row:first-child { border-top: 0; }
.ph-suggest { margin: 0 10px 6px; border: 1px solid #3a3026; border-radius: 10px; background: #241e17; overflow: hidden; }
/* D2 Survivors 的標題畫面（只用文字和 CSS） */
.ph-gametitle { display: grid; justify-items: center; gap: 5px; padding: 14px 10px 12px; background: radial-gradient(ellipse at 50% 30%, #3b1d10, #0b0806 72%); }
.ph-gametitle b { font-family: "Cinzel", serif; line-height: 1; background: linear-gradient(#f3cf78, #b8321f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-gametitle b:first-child { font-size: 22px; }
.ph-gametitle b:nth-child(2) { margin-bottom: 4px; font-size: 11px; letter-spacing: 0.22em; }
.ph-gametitle .ph-ph { flex: none; background: #3a2b1d; }
/* 次要的提示框，以及要按的地方：金色光暈加點按漣漪 */
.phone .glow { box-shadow: 0 0 0 1px rgba(201, 164, 92, 0.55); }
.phone .tap { position: relative; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 14px 2px rgba(201, 164, 92, 0.5); }
.phone .ph-row.tap { background: rgba(201, 164, 92, 0.12); border-radius: 0; }
.phone .tap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(234, 211, 154, 0.35); pointer-events: none; animation: guide-tap 2.2s ease-out infinite;
}
@keyframes guide-tap {
  0% { transform: scale(0.2); opacity: 0.9; }
  60%, 100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone .tap::after { display: none; }
}
/* 遊戲剛更新，翻譯修正中 */
.notice { background: rgba(217, 162, 63, 0.12); border-bottom: 1px solid rgba(217, 162, 63, 0.45); color: var(--text); font-size: 0.92rem; padding: 12px 0; }
.notice strong { color: var(--warn); }
.notice[hidden] { display: none; }

/* 更新紀錄 */
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.changelog time { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.changelog .kind { justify-self: start; font-size: 0.75rem; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-hi); white-space: nowrap; }
.changelog .kind-game-fix { color: var(--warn); border-color: rgba(217, 162, 63, 0.5); }
.changelog .kind-language { color: var(--ok); border-color: rgba(124, 195, 106, 0.45); }
@media (max-width: 760px) {
  .changelog li { grid-template-columns: auto 1fr; }
  .changelog-summary { grid-column: 1 / -1; }
}

/* 中文化社群 Discord */
.hero-community { margin: 16px 0 0; font-size: 0.92rem; }
.footer-community { font-size: 0.95rem; margin-bottom: 12px !important; }
.footer .footer-community a { color: var(--gold-hi); }

/* 贊助 */
.support { margin-top: 40px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.support h3 { font-size: 1.05rem; margin-bottom: 6px; }
.support p { margin: 0 0 10px; }
.support-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 0 !important; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.footer-community .sep { margin: 0 10px; color: var(--muted); }

/* 首頁（語言選擇） */
.root-page .hero { min-height: calc(100vh - 120px); border-bottom: 0; }
.root-langs { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.root-langs li { position: relative; }
.root-lang {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color 0.15s;
}
.root-lang:hover, .root-langs .suggested .root-lang { border-color: var(--gold); }
.root-lang-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold-hi); }
.root-langs li[lang^="zh-Hans"] .root-lang-name { font-family: "Cinzel", "Noto Serif SC", serif; }
.root-langs li[lang="ja"] .root-lang-name { font-family: "Cinzel", "Noto Serif JP", serif; }
.root-lang-title { font-weight: 600; }
.root-lang-desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.root-lang-enter { color: var(--gold-hi); font-weight: 600; }
.root-suggested { position: absolute; top: -10px; right: 14px; font-size: 0.75rem; padding: 1px 10px; border-radius: 999px; color: #1a1206; background: var(--gold); }
.root-eyebrow { text-transform: none; letter-spacing: 0.05em; font-size: 0.9rem; }
.root-planned { color: var(--muted); font-size: 0.9rem; margin: 28px auto 0; max-width: 760px; }
@media (max-width: 760px) {
  .root-langs { grid-template-columns: 1fr; }
}

kbd { font-family: inherit; font-size: 0.85em; padding: 0.05em 0.4em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--bg-2); white-space: nowrap; }
