/* I Know Your Age Game — 暖米色纸感猜年龄小册子（配色与布局参照 kepigame） */
:root{
  --bg:#eee7da; --surface:#fffdf7; --surface-2:#f6f0e2;
  --text:#221d19; --muted:#625a52; --ink-mid:#3b342e; --ink-soft:#625a52;
  --primary:#ffd23f; --primary-deep:#ffc800; --pop-hover:#ffc800;
  --accent:#c8423a; --accent-soft:#f7e0dc; --accent-ink:#8f2a23;
  --line:rgb(34 32 28 / .13); --line-strong:rgb(34 32 28 / .24);
  --radius:20px; --radius-sm:14px; --radius-pill:999px;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px; --space-9:88px;
  --fs-xs:12px; --fs-sm:14px; --fs-base:17px; --fs-md:20px; --fs-lg:24px;
  --fs-xl:32px; --fs-2xl:44px; --fs-3xl:62px;
  --font-display:"Dela Gothic One","Arial Rounded MT Bold",system-ui,sans-serif;
  --font-body:"M PLUS Rounded 1c",system-ui,-apple-system,"Segoe UI",sans-serif;
  --shadow-card:0 14px 30px rgb(34 32 28 / .10), 0 2px 0 rgb(34 32 28 / .05);
  --shadow-soft:0 4px 0 rgb(34 32 28 / .10);
  --shadow-btn:0 4px 0 var(--primary-deep);
  --paper:radial-gradient(rgb(34 32 28 / .035) 1px, transparent 1px);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0; background-color:var(--bg); color:var(--text);
  font-family:var(--font-body); font-size:var(--fs-base); line-height:1.6; font-weight:700;
  -webkit-font-smoothing:antialiased;
  background-image:none;
}
h1,h2,h3,h4{margin:0 0 var(--space-3); font-family:var(--font-display); font-weight:400; line-height:1.26; letter-spacing:-.005em; text-wrap:balance}
h1{font-size:var(--fs-2xl)}
h2{font-size:var(--fs-xl)}
h3{font-size:var(--fs-lg)}
h4{font-size:var(--fs-md)}
p{margin:0 0 var(--space-4); text-wrap:pretty; max-width:66ch}
a{color:var(--accent); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
a:hover{color:var(--text); background:var(--primary)}
img,svg{max-width:100%}
:focus-visible{outline:3px solid var(--accent); outline-offset:3px}
::selection{background:var(--primary); color:var(--text)}
.wrap{max-width:1080px; margin-inline:auto; padding-inline:20px}
.narrow{max-width:700px}
.skip{position:absolute; left:-9999px}
.skip:focus{left:16px; top:10px; background:var(--primary); border-radius:var(--radius-sm); padding:8px 14px; z-index:60}
/* header */
.topbar{position:sticky; top:0; z-index:40; background:var(--bg); border-bottom:1px solid var(--line)}
.topbar-in{display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:66px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text)}
.brand:hover{background:none}
.brand-chip{display:grid; place-items:center; width:36px; height:36px; background:var(--primary); border-radius:11px; box-shadow:0 3px 0 var(--primary-deep); transform:rotate(-4deg); font-family:var(--font-display); font-size:12px; letter-spacing:-.03em; color:var(--text)}
.brand-name{font-family:var(--font-display); font-size:15px; letter-spacing:-.01em}
.nav{display:flex; gap:6px; flex-wrap:wrap}
.nav a{font-size:13px; font-weight:700; text-decoration:none; color:var(--muted); padding:7px 12px; border-radius:var(--radius-pill)}
.nav a:hover{background:var(--surface); color:var(--text); box-shadow:var(--shadow-soft)}
/* footer */
.foot{margin-top:var(--space-9); background:var(--surface-2); border-top:1px solid var(--line); padding-block:var(--space-7) var(--space-5); font-size:var(--fs-sm)}
.foot-in{display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:var(--space-6)}
.foot-name{font-family:var(--font-display); font-size:var(--fs-md); margin:0 0 8px; letter-spacing:-.01em}
.foot-note{margin:0; max-width:34ch; color:var(--muted)}
.foot h3{font-family:var(--font-body); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; font-weight:800}
.foot ul{list-style:none; margin:0; padding:0; display:grid; gap:9px}
.foot a{color:var(--text); text-decoration:none; border-bottom:2px solid var(--line)}
.foot a:hover{background:var(--primary); border-bottom-color:transparent}
.foot-copy{margin-top:var(--space-6); padding-top:var(--space-4); border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.foot-copy p{margin:0; font-size:12px; color:var(--muted)}


/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:8px 22px; border:2px solid var(--text); border-radius:9px 12px 10px 13px / 12px 9px 13px 10px; background:#fff; color:var(--text); font-family:var(--font-body); font-size:16px; font-weight:900; cursor:pointer; text-decoration:none; box-shadow:none; transition:transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease}
.btn-primary{background:var(--primary); border-color:var(--text); font-size:18px; min-height:56px; box-shadow:0 5px 0 var(--primary-deep)}
.btn:hover{background:var(--surface-2); transform:translateY(-1px); box-shadow:0 4px 0 rgb(34 32 28 / .16)}
.btn-primary:hover{background:var(--pop-hover); box-shadow:0 6px 0 var(--primary-deep)}
.btn:active{transform:translateY(2px); box-shadow:0 2px 0 rgb(34 32 28 / .2)}
.btn-primary:active{box-shadow:0 3px 0 var(--primary-deep)}
.btn:disabled{opacity:.45; cursor:not-allowed; box-shadow:none; transform:none}
.btn-block{width:100%; max-width:380px; margin-inline:auto}
.btn-ghost{background:#fff}
/* hero — 对照 kepigame.com/games/nenrei.html：插画在上、大标题、粗短句、事实行、黄色大按钮、小注脚 */
.hero{padding-block:clamp(24px,4vh,40px) 40px; background:var(--bg)}
.hero-in{display:flex; flex-direction:column; align-items:center; justify-content:flex-start; text-align:center; max-width:600px; margin-inline:auto; padding-inline:16px; padding-top:clamp(8px,2vh,24px)}
.hero-top{display:flex; flex-direction:column; align-items:center; width:100%}
.hero-art{order:-1}
.hero h1{margin:6px 0 0; max-width:100%; order:0; font-family:var(--font-display); font-size:clamp(42px,13vw,60px); font-weight:400; line-height:1.08; letter-spacing:.04em}
.h1-tail{display:block; margin-top:10px; font-family:var(--font-body); font-size:17px; font-weight:900; line-height:1.45; letter-spacing:0}
.hero-lede{margin:14px 0 0; max-width:46ch; order:1; font-size:16px; line-height:1.55; font-weight:800; color:var(--ink-mid); border:0; padding:0}
.eyebrow{margin:18px 0 16px; max-width:none; order:2; background:none; border-radius:0; padding:0; font-size:15px; font-weight:900; letter-spacing:.03em; text-transform:none; color:var(--ink-mid)}
.hero-note{margin:10px 0 0; max-width:40ch; font-size:14px; line-height:1.6; color:var(--ink-soft)}
/* hero illustration — memory strata slab with a sweeping lens */
.hero-art{display:block; width:min(100%,340px); height:auto; margin:0 auto 2px; overflow:visible; filter:none}
.hero-art .art-lens{animation:lensSweep 4.8s ease-in-out infinite; will-change:transform}
@keyframes lensSweep{0%,100%{transform:translate(0,0)}25%{transform:translate(-34px,20px)}50%{transform:translate(-6px,22px)}75%{transform:translate(30px,-16px)}}
@media (prefers-reduced-motion:reduce){.hero-art .art-lens{animation:none}}
/* game board — 纸卡 */
.board{width:100%; max-width:100%; background:#fff; border:1px solid rgb(34 32 28 / .10); border-radius:13px 17px 14px 18px / 17px 13px 18px 14px; box-shadow:0 18px 34px rgb(34 32 28 / .12); overflow:hidden}
.board-head{display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface-2); border-bottom:1px solid var(--line); padding:12px 20px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.board-head [data-ika-count]{color:var(--accent)}
.bar{height:10px; background:color-mix(in srgb, var(--muted) 16%, var(--surface)); overflow:hidden}
.bar-fill{height:100%; width:0; border-radius:0 var(--radius-pill) var(--radius-pill) 0; background:linear-gradient(90deg,color-mix(in srgb, var(--primary) 45%, var(--surface)),var(--primary),color-mix(in srgb, var(--accent) 40%, var(--surface))); transition:width 280ms ease}
.board-body{min-height:300px; display:flex; flex-direction:column; justify-content:center; padding:28px var(--space-5) var(--space-5)}
.modes{display:grid; gap:15px}
.facts{justify-self:center; margin:0 0 var(--space-2); background:var(--surface-2); border-radius:var(--radius-pill); padding:6px 14px; font-size:13px; line-height:1.5; font-weight:700; color:var(--muted); max-width:none; text-align:center}
.modes p.hint{margin:var(--space-2) 0 0; font-size:13px; line-height:1.6; color:var(--muted); max-width:none; text-align:center}
.modes p.hint a{color:var(--accent)}
.mode-btn{display:grid; gap:2px; text-align:left; padding:15px 18px; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius-sm); box-shadow:var(--shadow-soft); cursor:pointer; font-family:var(--font-body); color:var(--text)}
.mode-btn:hover{background:var(--surface-2); transform:translateY(-1px)}
.mode-name{font-family:var(--font-display); font-size:var(--fs-md); line-height:1.3}
.mode-sub{font-size:var(--fs-sm); color:var(--muted); font-weight:500}
/* question */
.q-sub{margin:0 0 var(--space-3); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); max-width:none}
.q-text{font-size:clamp(21px,3vw,27px); line-height:1.36; margin:0 0 var(--space-3); letter-spacing:-.01em}
.answers{display:grid; gap:11px; margin-top:var(--space-4)}
.answer{display:flex; align-items:center; gap:14px; width:100%; text-align:left; padding:14px 16px; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius-sm); font-family:var(--font-body); font-size:var(--fs-base); font-weight:500; color:var(--text); cursor:pointer; box-shadow:var(--shadow-soft); transition:transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease}
.answer:hover{background:var(--surface-2); transform:translateY(-1px); box-shadow:0 5px 0 rgb(34 32 28 / .12)}
.answer b{font-weight:800}
.answer .mark{flex:none; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--primary); font-family:var(--font-body); font-size:14px; font-weight:800; color:var(--text)}
.answer:hover .mark{background:var(--accent); color:#fff}
/* result — 纸上的朱红印章 */
.result{display:grid; gap:var(--space-4); justify-items:center; text-align:center; padding-block:6px}
.stamp{position:relative; width:180px; height:180px; display:grid; place-items:center; align-content:center; gap:0; border:3px solid var(--accent); outline:1px solid var(--accent); outline-offset:-11px; border-radius:50%; transform:rotate(-5deg); background:var(--surface); box-shadow:0 6px 0 rgb(200 66 58 / .14); animation:stampIn 420ms cubic-bezier(.2,.9,.25,1.2) both}
.stamp-label{display:block; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:color-mix(in srgb, var(--accent) 82%, var(--text)); max-width:none}
.stamp-age{display:block; font-family:var(--font-display); font-size:66px; line-height:1; color:var(--accent); font-variant-numeric:tabular-nums}
.stamp-unit{display:block; font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:color-mix(in srgb, var(--accent) 82%, var(--text)); max-width:none}
.result-lead{margin:0; font-size:var(--fs-md); line-height:1.55; max-width:36ch; color:var(--muted)}
.result-lead b{font-family:var(--font-display); font-weight:400; color:var(--text); font-variant-numeric:tabular-nums}
.clinch{width:100%; text-align:left; background:var(--surface-2); border-radius:var(--radius-sm); border-left:5px solid var(--accent); padding:var(--space-4) var(--space-5)}
.clinch h3{display:block; margin:0 0 6px; font-family:var(--font-body); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; color:var(--accent); line-height:1.4}
.clinch p{margin:0; font-size:var(--fs-sm); max-width:none}
.clinch b{font-variant-numeric:tabular-nums}
.result-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.result-note{margin:0; font-size:12px; color:var(--muted); max-width:34ch}
@keyframes stampIn{from{opacity:0; transform:rotate(-14deg) scale(.86)} to{opacity:1; transform:rotate(-5deg) scale(1)}}


/* sections */
.section{padding-block:var(--space-8); border-top:1px solid var(--line)}
.section:first-of-type{border-top:0}
.section-head{max-width:640px; margin-bottom:var(--space-6)}
.section-head h2{margin-bottom:0}
.section-head p{margin:var(--space-3) 0 0; color:var(--muted); font-size:var(--fs-md); line-height:1.6; max-width:52ch}
/* steps */
.steps{list-style:none; margin:0; padding:0; display:grid; gap:var(--space-4)}
.step{display:grid; grid-template-columns:60px 1fr; gap:var(--space-4); align-items:start; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); padding:var(--space-4) var(--space-5); box-shadow:var(--shadow-soft)}
.step-num{display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--primary); font-family:var(--font-display); font-size:16px; line-height:1; color:var(--text); font-variant-numeric:tabular-nums}
.step h3{margin:0 0 4px; font-size:var(--fs-md)}
.step p{margin:0; color:var(--muted); font-size:var(--fs-sm)}
/* strata — 每个十年一种颜色 */
.strata{display:grid; grid-template-columns:repeat(6,1fr); gap:10px}
.stratum{padding:var(--space-4) var(--space-3); border-radius:var(--radius-sm); display:grid; gap:5px; align-content:start; background:color-mix(in srgb, var(--primary) 32%, var(--surface)); box-shadow:inset 0 0 0 1px rgb(34 32 28 / .1)}
.stratum:nth-child(2){background:color-mix(in srgb, var(--accent) 18%, var(--surface))}
.stratum:nth-child(3){background:color-mix(in srgb, var(--primary) 14%, var(--surface))}
.stratum:nth-child(4){background:color-mix(in srgb, var(--muted) 14%, var(--surface))}
.stratum:nth-child(5){background:color-mix(in srgb, var(--accent) 9%, var(--surface))}
.stratum:nth-child(6){background:color-mix(in srgb, var(--primary) 48%, var(--surface))}
.strum-year{font-family:var(--font-display); font-size:15px; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.3}
.strum-name{font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:rgb(34 32 28 / .62)}
.strum-items{font-size:13px; line-height:1.55; color:rgb(34 32 28 / .78)}
/* split */
.split{display:grid; grid-template-columns:280px 1fr; gap:var(--space-7); align-items:start}
.split-side{position:sticky; top:92px}
.split-side h2{font-size:var(--fs-xl); margin-bottom:var(--space-2)}
.split-side p{margin:0; font-size:var(--fs-sm); color:var(--muted); line-height:1.6}
/* prose */
.prose{max-width:68ch}
.prose h2{margin-top:var(--space-7); font-size:var(--fs-xl)}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose h3{margin-top:var(--space-6); font-size:var(--fs-lg)}
.prose ul{list-style:none; padding-left:0; margin:0 0 var(--space-5); display:grid; grid-template-columns:repeat(2,1fr); gap:10px}
.prose ul li{margin:0; padding:16px 17px; min-height:126px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:var(--shadow-soft); font-size:var(--fs-sm); line-height:1.7}
.prose ol{list-style:none; padding-left:0; margin:0 0 var(--space-5); display:grid; gap:10px; counter-reset:prose-step}
.prose ol li{counter-increment:prose-step; position:relative; margin:0; padding:16px 18px 16px 60px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:var(--shadow-soft); font-size:var(--fs-sm); line-height:1.68}
.prose ol li::before{content:counter(prose-step); position:absolute; left:15px; top:14px; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:var(--primary); color:var(--text); font-size:13px; font-weight:800; font-variant-numeric:tabular-nums}
.prose ol li>strong{font-weight:800}
.prose a{color:var(--accent); background:linear-gradient(transparent 64%, rgb(255 210 63 / .8) 64%); text-decoration:none}
.prose a:hover{background:var(--primary)}
.prose blockquote{margin:0 0 var(--space-5); padding:var(--space-4) var(--space-5); border-radius:var(--radius-sm); background:var(--surface); border-left:5px solid var(--primary); box-shadow:var(--shadow-soft); font-weight:500}
.prose blockquote p:last-child{margin:0}
.prose table{width:100%; border-collapse:separate; border-spacing:0; font-size:var(--fs-sm); margin:0 0 var(--space-5); border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; background:var(--surface)}
.prose th,.prose td{text-align:left; padding:13px 16px; border-bottom:1px solid var(--line); vertical-align:top}
.prose thead th{background:var(--surface-2); font-family:var(--font-body); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--muted)}
.prose tbody tr:last-child td{border-bottom:0}
.prose td:first-child{font-weight:700; width:32%}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em; background:var(--surface-2); border-radius:5px; padding:1px 5px}


/* faq */
.faq details{border-bottom:1px solid var(--line); padding-block:var(--space-4)}
.faq details:first-of-type{border-top:1px solid var(--line)}
.faq summary{display:flex; justify-content:space-between; gap:16px; cursor:pointer; list-style:none; font-family:var(--font-body); font-size:var(--fs-base); font-weight:800; line-height:1.5; color:var(--text)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--surface-2); color:var(--muted); font-size:19px; line-height:1; font-weight:700}
.faq details[open] summary::after{content:"\2013"; background:var(--primary); color:var(--text)}
.faq summary:hover::after{background:var(--primary)}
.faq details p{margin:12px 0 0; color:var(--muted); font-size:var(--fs-sm); line-height:1.7; max-width:64ch}
/* next */
.next-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4)}
.next-list a{display:grid; gap:7px; height:100%; padding:var(--space-5); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:var(--shadow-soft); text-decoration:none; color:var(--text); transition:transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease}
.next-list a:hover{background:var(--surface-2); transform:translateY(-2px); box-shadow:0 6px 0 rgb(34 32 28 / .12)}
.next-k{justify-self:start; background:var(--accent-soft); color:var(--accent-ink); border-radius:var(--radius-pill); padding:3px 10px; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase}
.next-t{font-family:var(--font-display); font-size:var(--fs-md); line-height:1.35}
.next-d{font-size:var(--fs-sm); color:var(--muted); line-height:1.6}
/* inner page */
.page{padding-block:var(--space-6) var(--space-7)}
.crumbs{display:flex; gap:8px; margin-bottom:var(--space-3); font-size:12px; font-weight:700; color:var(--muted); flex-wrap:wrap}
.crumbs a{color:var(--muted); text-decoration:none; border-bottom:2px solid var(--line)}
.crumbs a:hover{color:var(--text); background:var(--primary)}
.page h1{font-size:clamp(28px,4.4vw,42px); line-height:1.28; max-width:22ch}
.page-lede{font-size:var(--fs-md); color:var(--muted); max-width:54ch; line-height:1.6}
.section .page h1,.faq h2{line-height:1.3}
/* responsive */
@media (max-width:900px){
  .hero-in{padding-top:6px}
  .split{grid-template-columns:1fr; gap:var(--space-5)}
  .split-side{position:static}
  .strata{grid-template-columns:repeat(3,1fr)}
  .foot-in{grid-template-columns:1fr 1fr}
  .next-list{grid-template-columns:1fr}
}
@media (max-width:600px){
  :root{--fs-md:18px; --fs-xl:27px; --fs-base:16px}
  .topbar-in{flex-wrap:wrap; padding-block:12px 14px; min-height:0; gap:10px}
  .nav{gap:2px}
  .nav a{font-size:12px; padding:8px 10px}
  .hero{padding-block:20px 32px}
  .hero-in{min-height:auto; padding-inline:8px}
  .hero-art{width:min(100%,210px); height:auto}
  .eyebrow{font-size:13px; padding:0; letter-spacing:.02em; max-width:100%}
  .hero h1{font-size:clamp(34px,12vw,46px); line-height:1.08; letter-spacing:.02em}
  .h1-tail{font-size:15px; margin-top:8px; line-height:1.4}
  .hero-lede{font-size:14px; line-height:1.5; max-width:38ch; margin-top:10px}
  .eyebrow{margin:14px 0 12px}
  .hero-note{font-size:13px}
  .board-body{min-height:auto; padding:20px var(--space-4) var(--space-4)}
  .board-body{padding:var(--space-4); min-height:260px}
  .btn{min-height:50px; font-size:15px}
  .stamp{width:150px; height:150px}
  .stamp-age{font-size:54px}
  .result-actions .btn{width:100%}
  .section{padding-block:var(--space-7)}
  .strata{grid-template-columns:1fr 1fr}
  .prose ul{grid-template-columns:1fr}
  .strum-items{font-size:12px}
  .foot-in{grid-template-columns:1fr}
  .step{grid-template-columns:44px 1fr; padding:var(--space-4)}
  .step-num{width:38px; height:38px; font-size:14px}
  .next-list{grid-template-columns:1fr}
  .page h1{font-size:clamp(24px,6.4vw,30px)}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .stamp{animation:none}
  .btn,.answer,.next-list a,.mode-btn,.bar-fill{transition:none}
}
