/* Shared styles for the AutoHotspot guide pages (all languages). No external requests. */
:root {
  color-scheme: light dark;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --fg: #16181f;
  --muted: #5a5e6b;
  --rule: #e1e4ee;
  --accent: #1f55d6;
  --accent-fg: #ffffff;
  --hero-a: #3667e7;
  --hero-b: #153184;
  --hero-fg: #ffffff;
  --hero-muted: #d5defa;
  --hero-hi: #ffd257;
  --ok: #1e7f45;
  --warn: #9a5b00;
  --no: #b3261e;
  --code-bg: #eef1f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1a1d24;
    --fg: #e5e7ee;
    --muted: #a3a8b6;
    --rule: #2b2f3a;
    --accent: #9dbbff;
    --accent-fg: #0d1a3d;
    --hero-a: #22469f;
    --hero-b: #0e1f55;
    --hero-muted: #b9c6ec;
    --ok: #7fd49b;
    --warn: #f0b85a;
    --no: #ff9a8f;
    --code-bg: #232733;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
:lang(ja) body, body:lang(ja) { line-height: 1.8; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- top bar ---------- */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  max-width: 68rem; margin: 0 auto; padding: .9rem 1rem;
}
.hero .bar { color: var(--hero-fg); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: inherit; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.langs { display: flex; gap: .15rem; flex-wrap: wrap; font-size: .85rem; margin-left: -.45rem; }
@media (min-width: 34rem) { .langs { margin-left: 0; } }
.langs a { color: var(--hero-muted); text-decoration: none; padding: .15rem .45rem; border-radius: 999px; }
.langs a[aria-current="page"] { color: var(--hero-fg); background: rgba(255,255,255,.16); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  color: var(--hero-fg);
  overflow: hidden;
}
.hero-inner {
  max-width: 68rem; margin: 0 auto; padding: 1.5rem 1rem 0;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end;
}
@media (min-width: 52rem) {
  .hero-inner { grid-template-columns: 1.35fr 1fr; padding-top: 2.5rem; }
}
.eyebrow { color: var(--hero-hi); font-weight: 700; letter-spacing: .02em; margin: 0 0 .6rem; font-size: .95rem; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.18; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--hero-hi); }
.hero .sub { color: var(--hero-muted); font-size: 1.1rem; margin: 0 0 1.5rem; max-width: 36rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chips li {
  margin: 0; padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; padding-bottom: 2.5rem; }
/* Official Google Play badge, cropped to its visible edge (the files ship with uneven transparent margins). */
.badge { display: inline-block; }
.badge img { height: 56px; width: auto; }
.cta-note { color: var(--hero-muted); font-size: .9rem; }
.hero-shot { justify-self: center; width: min(19rem, 78vw); }
.hero-shot img { border-radius: 22px 22px 0 0; box-shadow: 0 -4px 40px rgba(0,0,0,.35); }

/* ---------- article ---------- */
main { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.tldr {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 1.1rem 1.25rem; margin: 0 0 2.5rem;
}
.tldr h2 { margin: 0 0 .4rem; padding: 0; border: 0; font-size: 1.05rem; }
.tldr p { margin: .4rem 0; }
.tldr ul { margin: .4rem 0; }
h2 {
  font-size: 1.5rem; line-height: 1.3; margin: 3rem 0 .75rem;
  scroll-margin-top: 1rem;
}
h3 { font-size: 1.12rem; margin: 1.9rem 0 .4rem; }
p, li { margin: .65rem 0; }
ul, ol { padding-left: 1.3rem; }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 5px; font-size: .88em; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* walkthrough video: a local poster until the reader presses play (assets/video.js), so the page itself
   makes no request to YouTube; without JS the poster is a plain link to the video. */
.video { margin: 1.5rem 0 1rem; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--hero-b); border: 1px solid var(--rule);
}
.video-frame > a, .video-frame > iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(10, 16, 40, .72); box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: background .15s, transform .15s;
}
.video-play::after {
  content: ""; position: absolute; left: 29px; top: 22px;
  border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #fff;
}
.video-frame a:hover .video-play, .video-frame a:focus-visible .video-play { background: #1f55d6; transform: scale(1.06); }
.video-len {
  position: absolute; right: .6rem; bottom: .6rem; padding: .05rem .45rem; border-radius: 6px;
  background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; font-weight: 600;
}
@media (max-width: 34rem) {
  .video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .video-play::after { left: 22px; top: 17px; border-width: 11px 0 11px 18px; }
}
.video figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }

/* comparison */
.options { display: grid; gap: .9rem; margin: 1.25rem 0; }
.opt {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.15rem;
}
.opt h3 { margin: 0 0 .35rem; font-size: 1.05rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.opt p { margin: .35rem 0; }
.tag { font-size: .78rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); } .tag.no { color: var(--no); }
.opt.me { border: 2px solid var(--accent); }

/* steps with screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
/* Narrow screens: a swipeable row where the next shot peeks in, instead of three unreadable thumbnails. */
@media (max-width: 34rem) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
    margin-right: -1rem; padding-right: 1rem;
  }
  .shots figure { scroll-snap-align: start; }
}
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--rule); }
.shots figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; line-height: 1.45; }

/* FAQ */
details {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: .15rem 1.1rem; margin: .6rem 0;
}
summary {
  cursor: pointer; font-weight: 650; padding: .75rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: .3rem; }
details p { margin: .6rem 0 .9rem; }

/* closing CTA */
.closing {
  margin: 3rem 0 0; padding: 1.5rem 1.25rem; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-fg);
}
.closing h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.closing p { color: var(--hero-muted); margin: 0 0 1.1rem; }

footer {
  max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem;
}
footer p { margin: .35rem 0; }
