:root {
  --bg:#f7f1e8; --surface:#fffaf2; --text:#2b2118; --muted:#6b5b4b;
  --accent:#c2562f; --primary:#a84024; --highlight:#e0a03a; --line:#dfd2c1;
  --soft:#f4e6d4; --pressed:#773019;
  --radius:12px; --serif:"Fraunces",Georgia,serif; --sans:"Inter",system-ui,sans-serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0;background:var(--bg);color:var(--text);font:400 16px/1.6 var(--sans)}
[hidden] {display:none!important}
h1,h2,h3,p {margin:0}
h1,h2,h3 {font-family:var(--serif);line-height:1.15}
h1 {font-size:clamp(2.55rem,5vw,4.65rem);letter-spacing:-.055em;overflow-wrap:anywhere}
h2 {font-size:clamp(1.55rem,3vw,2.25rem);letter-spacing:-.035em}
h3 {font-size:1.75rem;letter-spacing:-.025em}
p {max-width:70ch}
a {color:var(--primary);text-underline-offset:.18em}
a:hover {color:var(--pressed)}
a:focus-visible,button:focus-visible,summary:focus-visible,h3:focus-visible {outline:3px solid var(--primary);outline-offset:4px}
button {font:inherit;cursor:pointer}
.skip {position:absolute;z-index:2;left:16px;top:16px;transform:translateY(-160%);background:var(--surface);padding:8px 16px}
.skip:focus {transform:none}
.wrap {width:min(1120px,calc(100% - 48px));margin-inline:auto}
.site-header,.site-footer {border-block-end:1px solid var(--line)}
.header-inner,.footer-inner {min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand {display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:700;white-space:nowrap}
.brand-mark {display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:var(--text);color:var(--surface);font:700 21px var(--serif)}
nav {display:flex;gap:24px}
nav a,.site-footer a {color:var(--muted);font-size:.875rem;font-weight:600;text-decoration:none}
nav a:hover,.site-footer a:hover {text-decoration:underline}
.hero {display:grid;grid-template-columns:minmax(0,.76fr) minmax(0,1fr);gap:48px;align-items:center;padding-block:64px 48px}
.lead {font-size:1.125rem;margin-top:20px;max-width:35ch}
.intro-note {margin-top:16px;color:var(--muted);font-size:.875rem;max-width:40ch}
.game {overflow:hidden;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 24px rgba(0,0,0,.08);scroll-margin-top:16px}
.game-head {position:relative;isolation:isolate;overflow:hidden;padding:24px;background:var(--text);color:var(--surface)}
.game-head h2 {font-size:clamp(1.65rem,3vw,2.3rem)}
.game-head p {margin-top:4px;color:var(--line);font-size:.875rem}
.case-stamp {position:absolute;z-index:-1;right:24px;top:50%;translate:0 -50%;rotate:-13deg;display:grid;gap:5px;width:56px;height:62px;place-content:center;border:1px solid var(--highlight);border-radius:8px;opacity:.65}
.case-stamp i {display:block;width:24px;height:3px;background:var(--highlight);border-radius:3px}
.case-stamp i:last-child {width:14px}
.noscript {padding:24px}
.game-content {padding:20px 24px 24px}
.languages {display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.languages a,.languages span {padding:8px 9px;font-size:.8125rem;white-space:nowrap}
.languages span[aria-current] {border-radius:8px;background:var(--soft);color:var(--text);font-weight:700}
.game {container-type:inline-size}
.game-content {min-height:195px}
.game-note {margin-top:8px;color:var(--muted);font-size:.8125rem}
.game-note:empty {display:none}
.file-meta {display:flex;justify-content:space-between;gap:8px;min-height:22px;margin-bottom:6px;color:var(--muted);font-size:.8125rem;font-weight:700}
.game progress {display:block;width:100%;height:6px;margin-bottom:14px;accent-color:var(--primary)}
.file h3,[data-result-title] {font-size:clamp(1.2rem,4.8cqw,1.6rem);line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.choices button {min-height:51px;min-width:0;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);font-size:.9rem;line-height:1.35;text-align:start;overflow-wrap:anywhere}
.choices button:hover,.choices button.was-selected {border-color:var(--primary);background:var(--soft)}
.primary {margin-top:12px;min-height:44px;padding:8px 16px;border:none;border-radius:var(--radius);background:var(--primary);color:#fff;font-weight:700}
.primary:hover {background:var(--pressed)}
.question-nav,.result-actions {display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:8px;flex-wrap:wrap}
.question-nav [data-skip] {margin-inline-start:auto}
.text-button {min-height:44px;padding:6px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--primary);font-weight:600;text-decoration:underline;text-underline-offset:.18em}
.text-button:hover {background:var(--soft)}
.result-actions .primary {margin:0}
.result-age {margin:4px 0;font:700 clamp(2.5rem,12cqw,4.5rem)/1.1 var(--serif);color:var(--primary)}
.result-summary {margin:8px 0 14px;color:var(--muted)}
.timeline-list {margin:0;padding:0 0 8px;list-style:none;font-size:.9rem}
.timeline-list li {display:grid;gap:2px;padding:8px 4px;border-top:1px solid var(--line)}
[data-copy-text] {margin-top:8px;width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--surface);color:var(--text)}
.guide {max-width:760px}
.guide-section {padding-block:32px;border-top:1px solid var(--line);scroll-margin-top:16px}
.guide-section h2 {margin-bottom:14px}
.guide-section h3 {font-size:1.25rem;margin:24px 0 8px}
.guide-section p+p {margin-top:12px}
.steps {display:grid;gap:8px;margin:16px 0;padding-inline-start:24px}
.source {font-size:.875rem;color:var(--muted)}
.faq-list {border-top:1px solid var(--line)}
details {border-bottom:1px solid var(--line);padding-block:8px}
summary {cursor:pointer;font-weight:700;padding-block:6px}
details p {padding:0 0 8px 18px}
.site-footer {margin-top:24px;border:0;border-top:1px solid var(--line);color:var(--muted)}
.legal {max-width:760px;min-height:50vh;padding-block:48px}
.legal h1 {font-size:clamp(2.25rem,6vw,3.75rem);margin-bottom:16px;letter-spacing:-.04em}
.legal h2 {font-size:1.5rem;margin-top:24px}
.legal p {margin-top:12px}
@media (max-width:800px) {
  .hero {grid-template-columns:1fr;gap:24px;padding-block:32px}
  .lead,.intro-note {max-width:58ch}
}
@media (max-width:640px) {
  .wrap {width:calc(100% - 32px)}
  .hero {gap:16px;padding-block:24px}
  .header-inner,.footer-inner {min-height:60px}
  nav {gap:12px}
  h1 {font-size:clamp(2rem,8vw,2.75rem)}
  .lead {margin-top:12px;font-size:1rem}
  .intro-note {margin-top:10px}
  .game-head {padding:16px}
  .game-content {padding:12px 16px 16px}
  .primary {width:100%}
  .case-stamp {right:18px;width:42px;height:46px}
}
@media (max-width:360px) {
  .case-stamp {display:none}
  nav a,.brand {font-size:.8125rem}
  .footer-inner small {font-size:.75rem}
}
@media (prefers-reduced-motion:reduce) {html {scroll-behavior:auto}}

@media (max-width:430px) {
  .header-inner {gap:8px}
  .brand {gap:6px;font-size:.875rem}
  .brand-mark {width:25px;height:25px;font-size:18px}
  .languages {gap:0}
  .languages a,.languages span {padding:5px;font-size:.75rem}
  .choices {grid-template-columns:1fr}
  .choices button {min-height:44px}
}

.edition-links {padding:0 0 24px}
.edition-links h3 {font-size:1.25rem;margin:0 0 12px}
.edition-links ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
.edition-links li {display:grid;gap:2px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow-wrap:anywhere}
.edition-links span {font-size:.875rem;color:var(--muted)}

.switch-note {margin:0 0 10px;color:var(--primary);font-size:.875rem;font-weight:600}
.choices button {display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 13px}
.choices button::before {content:"";width:7px;height:7px;flex:none;border-radius:50%;border:1px solid var(--primary)}
.choices button:hover::before,.choices button.was-selected::before {background:var(--primary)}
.choices[data-regional-options] {grid-template-columns:1fr}
.choices[data-regional-options] button {min-height:49px}
.choices[data-regional-options] button:last-child {border-style:dashed;color:var(--muted)}
.result-clues {margin-block:12px 14px;padding:12px 14px;border-inline-start:3px solid var(--highlight);background:var(--soft);border-radius:var(--radius)}
.result-clues h4 {margin:0 0 6px;font:700 1.1rem/1.3 var(--serif)}
.result-age {animation:reveal-memory .25s ease-out both}
@keyframes reveal-memory {from {opacity:.25;transform:translateY(4px)} to {opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce) {.result-age {animation:none}}


@media (max-width:640px) {
  .hero {row-gap:12px;padding-block:20px 24px}
  .hero .intro {display:contents}
  .hero .lead {margin:0}
  .hero .intro-note {order:1;margin:0}
  .game-head {padding:12px 16px}
  .game-head h2 {font-size:1.4rem}
  .game-head p {font-size:.8125rem}
  [data-result-title] {scroll-margin-top:16px}
}
