:root {
  --bg: #020617;
  --panel: #0f172a;
  --border: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #fbbf24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.75 system-ui, -apple-system, "PingFang TC", "Hiragino Sans", "Noto Sans TC", sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
header .home-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; font-size: 20px; border-radius: 12px; }
header .home-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
header img { width: 44px; height: 44px; border-radius: 10px; }
nav.lang { display: flex; gap: 8px; margin: 16px 0 24px; flex-wrap: wrap; }
nav.lang button {
  appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 15px; cursor: pointer;
}
nav.lang button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
h1 { font-size: 28px; line-height: 1.3; margin: 0 0 4px; }
h2 { font-size: 20px; margin: 32px 0 8px; color: #fff; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: 15px; }
a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--panel); }
.card {
  display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; margin: 12px 0; text-decoration: none; color: var(--text);
}
.card strong { color: #fff; }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; }
/* 沒有 JavaScript 時三種語言全部顯示；有 JavaScript 時只顯示選取的語言 */
.js [data-lang] { display: none; }
.js [data-lang].active { display: block; }

/* ---------- 首頁 ---------- */
body.home { background: radial-gradient(120% 60% at 50% 0%, #1e1b4b 0%, var(--bg) 60%) no-repeat, var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { text-align: center; padding: 8px 0 8px; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 48px rgba(34, 211, 238, .25); }
.hero h1 { font-size: 34px; margin: 16px 0 4px; }
.hero h1 small { display: block; font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: .04em; margin-top: 2px; }
.lead { max-width: 560px; margin: 12px auto 20px; color: var(--text); }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 180px; height: auto; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 230px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px 16px 12px; margin: 0 -16px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  width: 100%; height: auto; border-radius: 18px; scroll-snap-align: center;
  border: 1px solid var(--border); background: var(--panel);
}
@media (min-width: 720px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 32px 0 12px; }
}
.feats { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 12px; }
@media (min-width: 720px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feats li {
  display: flex; gap: 12px; align-items: flex-start; background: var(--panel);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
}
.feats svg {
  flex: none; width: 26px; height: 26px; margin-top: 3px; fill: none; stroke: var(--accent);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feats strong { display: block; color: #fff; line-height: 1.4; }
.feats span { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; margin-top: 2px; }
