:root {
  --fg: #1d1d1f;
  --fg-2: #424245;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
  --max: 980px;
  --nav-h: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header (Apple-style sticky + blur) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.brand {
  font-weight: 600;
  color: var(--fg);
  font-size: 20px;
  letter-spacing: 0;
}
.brand:hover { text-decoration: none; color: var(--fg); }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a {
  color: var(--fg);
  font-size: 13px;
  opacity: 0.82;
  font-weight: 400;
}
.site-header nav a:hover { opacity: 1; text-decoration: none; }

main { min-height: 60vh; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 88px 0 56px;
}
.hero .eyebrow {
  color: var(--accent);
  font-size: 17px;
  margin: 0 0 10px;
  font-weight: 400;
}
.hero h1 {
  font-size: 72px;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg);
}
.hero .tagline {
  font-size: 26px;
  color: var(--fg);
  margin: 0 0 8px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero .sub {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-ghost {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Downloads (QR cards) ---------- */
.downloads {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 600px;
  margin: 48px auto 0;
}
.download-card {
  background: var(--bg);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .28s ease, box-shadow .28s ease;
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.download-card .store-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 0 0 4px;
  font-weight: 500;
}
.download-card .store-name {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.download-card .qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  object-fit: contain;
}
.download-card .scan-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 16px;
}
.download-card .btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 980px;
  font-size: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 400;
  transition: background .18s ease;
}
.download-card .btn:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.download-landing {
  text-align: center;
  padding: 72px 0 80px;
}
.download-landing .eyebrow {
  color: var(--accent);
  font-size: 15px;
  margin: 0 0 10px;
}
.download-landing h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.download-landing .sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}
.download-options {
  max-width: 980px;
}
.fallback-download {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.fallback-download p {
  margin: 0 0 8px;
  color: var(--fg-2);
  font-size: 15px;
}
.fallback-download a {
  overflow-wrap: anywhere;
  font-size: 15px;
}

/* ---------- Features (alt section on bg-soft) ---------- */
.features-wrap {
  background: var(--bg-soft);
  padding: 96px 0;
  margin-top: 96px;
}
.features-title {
  text-align: center;
  font-size: 40px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 8px;
}
.features-sub {
  text-align: center;
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 56px;
}
.features {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 920px;
  margin: 0 auto;
}
.feature {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.feature .icon {
  font-size: 32px;
  margin: 0 0 14px;
  line-height: 1;
}
.feature h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Generic cards (games / events list pages) ---------- */
.card-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 32px 0;
}
.card {
  background: var(--bg);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  display: block;
  color: inherit;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Doc / legal pages ---------- */
main { padding: 40px 0 64px; }
article.doc { max-width: 720px; margin: 0 auto; }
article.doc h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 600; }
article.doc h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; font-weight: 600; }
article.doc h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 600; }
article.doc p { color: var(--fg-2); }
article.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

.policy-page {
  background: var(--bg);
}
.policy-main {
  min-height: 100vh;
  padding: 0;
}
.policy-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}
article.policy-doc {
  max-width: none;
}
article.policy-doc h1 {
  font-size: 30px;
  line-height: 1.14;
  margin: 0 0 22px;
  text-align: center;
}
article.policy-doc h2 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  line-height: 1.25;
}
article.policy-doc p {
  font-size: 15px;
  line-height: 1.74;
  margin: 12px 0;
}
article.policy-doc p:first-of-type {
  margin-top: 0;
}
article.policy-doc b {
  color: var(--fg);
  font-weight: 600;
}
article.policy-doc a {
  overflow-wrap: anywhere;
}

.notice {
  background: #fff9e6;
  border: 1px solid #ffd666;
  padding: 16px 18px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 15px;
}

.nav-list { list-style: none; padding: 0; }
.nav-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  padding: 28px 0;
  color: var(--muted);
  font-size: 12px;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 734px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 44px; }
  .hero .tagline { font-size: 21px; }
  .features-wrap { padding: 64px 0; margin-top: 64px; }
  .features-title { font-size: 30px; }
  .features-sub { font-size: 17px; margin-bottom: 40px; }
  .downloads { grid-template-columns: 1fr; max-width: 320px; }
  .download-landing { padding: 52px 0 64px; }
  .download-landing h1 { font-size: 38px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 12px; }
  article.doc h1 { font-size: 30px; }
  .policy-container { padding: 22px 16px 36px; }
  article.policy-doc h1 { font-size: 28px; }
  article.policy-doc h2 { font-size: 19px; margin-top: 32px; padding-top: 20px; }
  article.policy-doc p { font-size: 15px; line-height: 1.72; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
