:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1f24;
  --muted: #5b616e;
  --line: #e6e3dc;
  --accent: #6a3de8;
  --accent-ink: #ffffff;
  --answer-bg: #f3efff;
  --answer-line: #b9a4f7;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f25;
    --text: #eceef2;
    --muted: #a3a9b6;
    --line: #2c3039;
    --accent: #b39bff;
    --accent-ink: #160d2e;
    --answer-bg: #221c36;
    --answer-line: #5b47a0;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { border-radius: 9px; }
.dot { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffb27a, var(--accent)); display: inline-block; }
.menu { display: flex; gap: 16px; font-size: 15px; }
.menu a { color: var(--muted); text-decoration: none; }
.menu a:hover { color: var(--text); }

main { padding: 24px 16px 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.2; margin: 8px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 23px; line-height: 1.3; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.answer {
  background: var(--answer-bg);
  border-left: 4px solid var(--answer-line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-size: 18px;
  margin: 12px 0 24px;
}
.lead { font-size: 19px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { width: 38%; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.qlist { list-style: none; padding: 0; }
.qlist li { border-bottom: 1px solid var(--line); }
.qlist a { display: block; padding: 10px 2px; text-decoration: none; color: var(--text); }
.qlist a:hover { color: var(--accent); }

.related, .cta {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.related h2 { margin-top: 0; font-size: 19px; }
.cta p { margin-top: 0; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0 4px; }
.badge { display: inline-flex; line-height: 0; }
.badge-ios img { height: 50px; width: auto; }
.badge img { height: 50px; width: auto; }
.badge:nth-child(2) { margin: -12px; }
.badge:nth-child(2) img { height: 74px; }
.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.btn-ios { background: var(--text); color: var(--bg); }

.video { position: relative; aspect-ratio: 16 / 9; margin: 20px 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screens { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin: 20px 0; scroll-snap-type: x mandatory; }
.screens img { flex: 0 0 auto; width: 180px; border-radius: 12px; border: 1px solid var(--line); scroll-snap-align: start; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 20px 0 32px; }
.foot a { color: var(--muted); }

h2.plain { scroll-margin-top: 12px; }
h2[id] { scroll-margin-top: 12px; }
.anchor { margin-left: 8px; font-size: 16px; color: var(--muted); text-decoration: none; opacity: 0; }
h2:hover .anchor, .anchor:focus { opacity: 1; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0 20px; font-size: 15px; }
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 8px 0 4px; }
.shot { float: right; width: 190px; margin: 0 0 12px 20px; }
.shot img { border-radius: 14px; border: 1px solid var(--line); display: block; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 560px) { .shot { float: none; width: 60%; margin: 0 auto 16px; } }
.games { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.games li { margin: 0; }
.games a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; height: 100%; }
.games a:hover { border-color: var(--accent); }
.games img { border-radius: 10px; aspect-ratio: 210 / 300; object-fit: cover; object-position: center 40%; width: 100%; display: block; margin-bottom: 8px; }
.games strong { display: block; font-size: 16px; }
.games span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.count { color: var(--muted); font-size: 14px; }
.facts th { width: 34%; }
