:root {
  color-scheme: light dark;
  font-family: "Pretendard Variable", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #17191d;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  --muted: #69717c;
  --line: #e1e5e9;
  --soft: #f7f8fa;
  --accent: #0967d6;
}

* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.install-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
main { align-self: center; width: min(100%, 420px); margin: 32px auto 48px; text-align: center; }
.app-icon { display: block; width: 128px; height: 128px; margin: 0 auto 24px; border-radius: 28px; }
h1 { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 750; }
.tagline { margin: 8px 0 0; font-size: 17px; line-height: 1.5; font-weight: 450; }
.status { min-height: 22px; margin: 28px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; word-break: keep-all; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store { display: grid; align-content: center; gap: 4px; min-height: 76px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--soft); transition: background .15s, border-color .15s; }
.store:hover { border-color: var(--accent); }
.store-device { color: var(--muted); font-size: 12px; line-height: 1.4; }
.store-name { font-size: 18px; line-height: 1.4; font-weight: 650; white-space: nowrap; }
.store[data-recommended="true"] { background: #17191d; border-color: #17191d; color: #fff; }
.store[data-recommended="true"] .store-device { color: #c2c8cf; }
.install-qr { display: none; margin: 28px auto 0; }
.install-qr img { display: block; width: 116px; height: 116px; margin: auto; background: #fff; border-radius: 4px; }
.install-qr figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.website-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 20px; font-size: 14px; text-decoration: none; color: var(--accent); }
.website-link:hover { text-decoration: underline; text-underline-offset: 4px; }
footer { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer > span { font-size: 13px; font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
footer a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 720px) {
  body:not([data-platform="ios"]):not([data-platform="android"]) .install-qr { display: block; }
}
@media (max-height: 600px) {
  .install-page { padding-top: 20px; padding-bottom: 16px; }
  main { margin-top: 12px; margin-bottom: 24px; }
  .app-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 16px; }
  .status { margin-top: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root { color: #f1f3f5; background: #111315; --muted: #a4abb4; --line: #393e43; --soft: #1e2226; --accent: #76b8ff; }
  .store[data-recommended="true"] { color: #17191d; background: #f1f3f5; border-color: #f1f3f5; }
  .store[data-recommended="true"] .store-device { color: #59616b; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
