:root {
  color-scheme: light;
  --paper: #fffcf5;
  --ink: #193744;
  --muted: #47606a;
  --blue: #1c5a76;
  --line: #d9e2e0;
  --sun: #ffd479;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.22; }
h2 { font-size: clamp(1.65rem, 3.7vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.28rem; }
a { color: var(--blue); text-underline-offset: .19em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #276f98; outline-offset: 4px; }
code { overflow-wrap: anywhere; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 8px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { background: #fffdf8; border-bottom: 1px solid var(--line); }
.nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav { min-height: 74px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.04rem; font-weight: 800; text-decoration: none; }
.brand img { flex-shrink: 0; border-radius: 28%; }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.nav-links a:hover, .footer-links a:hover, .nav-links [aria-current] { text-decoration: underline; }
.nav-links .language { padding-inline: 11px; border: 1px solid #cedada; border-radius: 999px; white-space: nowrap; }

.hero { padding: clamp(38px, 6vw, 82px) 0; background: radial-gradient(ellipse at 85% 0%, #d4ecff, transparent 67%), linear-gradient(180deg, #ecf7fe, #f1f7e9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.35fr); gap: clamp(26px, 4.5vw, 66px); align-items: center; }
.hero-copy { padding-block: 3px; }
.family-link { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; font-weight: 750; }
.family-link::before { content: ""; width: .65em; height: .65em; border-radius: 50%; background: #e9a73b; }
.hero h1 { margin-top: 15px; font-size: clamp(1.18rem, 2vw, 1.58rem); letter-spacing: .015em; }
.hero-tagline { margin-top: 12px; font-size: clamp(2.3rem, 4.3vw, 4.1rem); font-weight: 850; line-height: 1.12; letter-spacing: -.055em; }
:lang(zh) .hero-tagline { letter-spacing: -.075em; }
.intro { max-width: 36ch; margin-top: 19px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.13rem); }
:lang(zh) .intro { max-width: 28em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 25px; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 18px; border: 1px solid #e0b04b; border-radius: 999px; background: var(--sun); color: #283b3e; font-weight: 800; text-decoration: none; }
.button:hover { background: #ffe29f; }
.quiet-link { font-weight: 750; }
.hero-image { padding: clamp(5px, .8vw, 10px); border: 1px solid #fff; border-radius: clamp(18px, 2.8vw, 35px); background: #fff; box-shadow: 0 16px 34px #204b6124; }
.hero-image img { width: 100%; height: auto; border-radius: clamp(12px, 2.1vw, 27px); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 23px 0; border-bottom: 1px solid var(--line); }
.facts div { padding-inline: clamp(9px, 3vw, 34px); }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt, .parent-facts dt, .app-details dt { color: var(--muted); font-size: .88rem; }
.facts dd { font-size: clamp(1rem, 2.1vw, 1.35rem); font-weight: 800; line-height: 1.35; }
.section { margin-block: clamp(48px, 8vw, 96px); scroll-margin-top: 22px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 16px 42px; margin-bottom: 24px; }
.section-heading p, .game-card p, .parents-panel p { color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 22px; }
.game-card img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: contain; border-radius: 15px; }
.game-card div { padding: 15px 11px 12px; }
.game-card p { margin-top: 6px; font-size: .95rem; }
.mint { background: #edf5ec; }
.peach { background: #fdf0e6; }
.lilac { background: #f4effb; }
.parents-panel { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(24px, 5vw, 62px); padding: clamp(22px, 5vw, 55px); border: 1px solid #d7e8eb; border-radius: 24px; background: #edf7fb; }
.parents-panel p { margin: 13px 0 20px; }
.parent-facts div { padding: 11px 0; }
.parent-facts div + div { border-top: 1px solid #cddfe2; }
.parent-facts dd, .app-details dd { font-weight: 700; }

.inner { padding-block: clamp(40px, 7vw, 84px); }
.page-heading { max-width: 760px; margin-bottom: 34px; }
.page-heading h1 { margin-bottom: 14px; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.045em; }
.page-heading p { color: var(--muted); font-size: 1.06rem; }
.page-heading .updated { margin-bottom: 8px; font-size: .93rem; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: clamp(26px, 5vw, 60px); }
.faq h2, .contact h2, .policy h2 { margin-bottom: 13px; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 4px; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin: 10px 0 2px; color: var(--muted); }
.contact { padding: clamp(18px, 3vw, 30px); border: 1px solid #dae8eb; border-radius: 20px; background: #edf7fb; }
.contact p { margin-bottom: 16px; color: var(--muted); }
.email { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.app-details { margin-top: 18px; padding-top: 13px; border-top: 1px solid #cddfe2; overflow-wrap: anywhere; }
.app-details div + div { margin-top: 8px; }
.policy { max-width: 760px; }
.policy section { padding-block: 20px; border-top: 1px solid var(--line); }
.policy p + p { margin-top: 10px; }

.site-footer { padding-block: 24px; background: #edf3ec; border-top: 1px solid var(--line); }
.footer-inner p { margin-top: 5px; color: var(--muted); font-size: .85rem; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .hero-grid { gap: 24px; }
  .nav-links, .footer-links { column-gap: 14px; }
  .game-grid { gap: 10px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .nav, .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
  .nav { position: relative; }
  .nav-links { width: 100%; }
  .nav > .brand { padding-inline-end: 82px; }
  .nav-links .language { position: absolute; inset: 15px 0 auto auto; }
  .hero-grid, .section-heading, .game-grid, .parents-panel, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 30px; }
  .hero-grid { gap: 26px; }
  .hero-tagline { font-size: clamp(2.4rem, 9vw, 3.65rem); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding-block: 16px; }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .game-grid { gap: 15px; }
  .section-heading, .parents-panel { gap: 12px; }
}
