:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --white: #fff;
  --ink: #152b23;
  --muted: #4f6057;
  --forest: #154638;
  --dark: #12382e;
  --lime: #e5efb8;
  --rule: #d6ded4;
  --radius: 24px;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
a { color: var(--forest); text-underline-offset: .26em; }
img { max-width: 100%; display: block; height: auto; }
a:focus-visible, summary:focus-visible { outline: 3px solid #187161; outline-offset: 4px; }
main:focus { outline: none; }
[id] { scroll-margin-top: 20px; }
.wrap { width: min(100% - 80px, 1216px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; background: var(--white); padding: 10px 16px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.14rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 11px; flex-shrink: 0; }
.brand small { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3.3vw, 53px); }
.nav a, .footer-links a { text-decoration: none; color: var(--muted); font-weight: 650; white-space: nowrap; }
.nav a:hover, .footer-links a:hover { text-decoration: underline; color: var(--forest); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 10px 24px; border: 1px solid var(--forest); border-radius: 999px; background: var(--forest); color: var(--white); font-weight: 750; text-decoration: none; text-align: center; }
.button:hover { background: #1d5949; border-color: #1d5949; }
.button-small { min-height: 44px; padding: 7px 18px; }
.button-outline { color: var(--forest); background: transparent; border-color: #a7b6a8; }
.button-outline:hover { background: #e9eee4; border-color: var(--forest); }
.text-link { font-weight: 750; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--forest); font-size: .94rem; font-weight: 750; }
.eyebrow span { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #5c9172; }

.hero { min-height: 586px; padding-block: 57px 59px; display: grid; grid-template-columns: 4fr 5fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(3.08rem, 6vw, 5.6rem); font-weight: 850; letter-spacing: -.06em; }
.intro { max-width: 29em; color: var(--muted); font-size: clamp(1.03rem, 1.52vw, 1.21rem); }
.hero .actions { margin-top: 31px; }
.stage { position: relative; isolation: isolate; min-width: 0; min-height: 430px; aspect-ratio: 1.36; overflow: hidden; background: #dcead9; border: 1px solid #d1dfd1; border-radius: 32px; }
.stage::before, .stage::after, .stage-ring { position: absolute; pointer-events: none; border: 1px solid #9bb6a2; border-radius: 50%; content: ""; }
.stage::before { width: 77%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.stage::after { width: 97%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .45; }
.stage-ring { width: 58%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .6; }
.stage figure { position: absolute; z-index: 1; width: 27%; text-align: center; }
.stage figure img { width: 100%; border: 4px solid #fff; border-radius: clamp(11px, 1.4vw, 22px); box-shadow: 0 14px 26px #21493436; background: #f7f8ff; }
.stage figure.stage-center { z-index: 2; width: 32%; left: 35%; top: 7%; transform: rotate(-3deg); }
.stage .stage-left { left: 10%; top: 17%; transform: rotate(-13deg); }
.stage .stage-right { right: 9%; top: 18%; transform: rotate(12deg); }
.stage figcaption { margin-top: 6px; font-weight: 750; color: #294536; font-size: .9rem; }
.facts-strip { background: #edf1e5; border-block: 1px solid #dfe6d8; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding-block: 22px; }
.facts div { display: grid; gap: 2px; padding-inline: 12px; }
.facts div + div { border-left: 1px solid #cbd8ca; }
.facts strong { font-size: clamp(1.23rem, 3vw, 1.9rem); color: var(--forest); font-weight: 850; }
.facts span { color: var(--muted); }

.section { padding-block: clamp(54px, 7.3vw, 100px); }
.section-heading { display: grid; gap: 20px; grid-template-columns: 1fr minmax(240px, 390px); align-items: end; margin-bottom: 32px; }
.section-heading h2, .family-copy h2, .download-band h2 { font-size: clamp(2.2rem, 4.25vw, 4.1rem); font-weight: 850; letter-spacing: -.055em; }
.section-heading p, .download-band p { color: var(--muted); font-size: 1.09rem; }
.games { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.game { display: grid; grid-template-rows: auto 217px; grid-column: span 2; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.game:nth-child(n+4) { grid-column: span 3; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; min-height: 228px; }
.game-copy { padding: 25px 26px 15px; }
.game-copy p { color: var(--category); font-size: .9rem; font-weight: 750; }
.game-copy h3 { margin: 8px 0; font-size: 1.75rem; font-weight: 850; letter-spacing: -.02em; }
.game-copy span { color: #34473d; }
.game-visual { position: relative; overflow: hidden; }
.game-visual img { width: min(75%, 192px); margin: 0 auto; border: 4px solid #fff; border-radius: 19px; box-shadow: 0 8px 26px #24363b21; }
.game:nth-child(n+4) .game-visual img { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: min(89%, 172px); }
.game-sudoku { --surface: #e9edfb; --category: #414a86; }
.game-sort { --surface: #e1efe5; --category: #205f48; }
.game-sokoban { --surface: #f8ecd5; --category: #694828; }
.game-memory { --surface: #f1e8f7; --category: #65447e; }
.game-merge { --surface: #f8eadc; --category: #784723; }
.section-note { margin-top: 23px; color: var(--muted); }

.family-section { background: var(--dark); color: #f5f8ec; }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 43px; align-items: center; padding-block: clamp(45px, 7vw, 86px); }
.family-copy .eyebrow { color: #d5e7a7; }
.family-copy .eyebrow span { background: #c9e093; }
.family-copy h2 { margin: 15px 0 20px; }
.family-copy > p:not(.eyebrow), .family-copy ul { color: #d7e8dc; }
.family-copy ul { padding-left: 1.2em; margin-block: 16px 23px; }
.family-copy .text-link { color: #e7f2bd; }
.family-copy .text-link:focus-visible { outline-color: #d9ef95; }
.family-visual { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 18px 12px; align-items: center; }
.family-visual img { width: min(93%, 182px); border: 4px solid #f8f8f2; border-radius: 20px; box-shadow: 0 13px 25px #09221c91; }
.levels-frame { transform: rotate(-7deg) translateY(-6px); }
.family-frame { transform: rotate(6deg) translateY(10px); }
.family-visual figcaption { grid-column: span 2; color: #d1e5d5; font-size: .875rem; }
.download-band { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding: clamp(25px, 6vw, 65px); background: var(--lime); border-radius: 29px; }
.download-band p { margin: 12px 0 22px; }
.qr-link, .download-qr { color: var(--forest); display: grid; justify-items: center; text-align: center; gap: 7px; flex-shrink: 0; font-weight: 700; font-size: .9rem; }
.qr-link img, .download-qr img { background: white; border-radius: 12px; }
.footer { border-top: 1px solid var(--rule); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 29px; }
.footer-main p { margin-top: 7px; color: var(--muted); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .94rem; }
.registration { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; border-top: 1px solid var(--rule); padding-block: 15px; font-size: .88rem; color: var(--muted); }

.subpage { min-height: 54vh; }
.page-heading { max-width: 730px; padding-bottom: 34px; }
.page-heading h1 { margin: 12px 0 15px; font-size: clamp(2.55rem, 6vw, 5rem); font-weight: 850; letter-spacing: -.055em; }
.page-heading > p:not(.eyebrow) { font-size: 1.1rem; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.download-card { min-width: 0; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.primary-card { background: #eaf0e2; }
.download-card h2, .delivery-notes h2, .support-block h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); letter-spacing: -.03em; }
.download-card > p { margin: 10px 0 17px; color: var(--muted); }
.release-meta { display: flex; flex-wrap: wrap; gap: 9px 26px; margin-block: 17px 23px; }
.release-meta dt { color: var(--muted); font-size: .92rem; }
.release-meta dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.checksum { margin-top: 18px; }
.checksum summary, .accordion summary { cursor: pointer; font-weight: 750; color: var(--forest); }
.checksum p { margin-top: 10px; }
.checksum code { display: block; margin-block: 6px; color: var(--ink); overflow-wrap: anywhere; font-size: .9rem; }
.check-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.store-list { list-style: none; padding: 0; }
.store-list li { border-top: 1px solid var(--rule); }
.store-list a { min-height: 53px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 10px; text-decoration: none; font-weight: 750; }
.store-list span { color: var(--muted); font-size: .91rem; font-weight: 500; }
.store-list a:hover { text-decoration: underline; }
.delivery-notes { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 25px; margin-top: 44px; }
.download-qr { border: 1px solid var(--rule); background: var(--white); padding: 15px; border-radius: 17px; }
.accordion { margin-top: 12px; border-top: 1px solid var(--rule); }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary { min-height: 46px; padding: 12px 0; }
.accordion details > div { padding: 0 4px 16px 19px; color: var(--muted); }
.accordion p + p { margin-top: 8px; }
.accordion p a { margin-inline: .18em; }
.download-help { margin-top: 18px; }
.support-page { max-width: 1020px; }
.support-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.support-nav a { padding: 8px 13px; min-height: 44px; background: #eaf0e2; border-radius: 9px; font-weight: 700; text-decoration: none; }
.support-nav a:hover { text-decoration: underline; }
.support-block { margin-top: 40px; }
.support-block > p { margin-top: 12px; color: var(--muted); }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 15px; }
.policy-grid article { padding: 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--white); }
.policy-grid h3 { margin-bottom: 7px; }
.policy-grid a { display: flex; align-items: center; min-height: 42px; }

@media (max-width: 1040px) {
  .wrap { width: min(100% - 56px, 1216px); }
  .hero { min-height: auto; gap: 22px; }
  .stage { min-height: 0; aspect-ratio: 1.22; }
  .stage figure.stage-center { width: 33%; top: 10%; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 600px); }
  .header-inner { flex-wrap: wrap; gap: 3px 10px; padding-block: 8px 1px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0 clamp(16px, 6vw, 32px); }
  .nav a { display: inline-flex; min-height: 42px; align-items: center; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 25px; }
  .hero h1 { margin-block: 10px 16px; font-size: clamp(2.85rem, 8.8vw, 4.5rem); }
  .hero .actions { margin-top: 21px; }
  .stage { aspect-ratio: 1.28; border-radius: 23px; }
  .stage figure img { border-width: 3px; }
  .stage figure.stage-center { width: 34%; top: 7%; }
  .stage .stage-left { left: 8%; }
  .stage .stage-right { right: 6%; }
  .stage figcaption { margin-top: 3px; font-size: .78rem; }
  .facts { padding-block: 14px; }
  .facts div { font-size: .82rem; padding-inline: 4px; }
  .section-heading, .family-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 10px; margin-bottom: 23px; }
  .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game, .game:nth-child(n+4) { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto clamp(120px, 38vw, 220px); min-height: 0; }
  .game-copy { padding: 15px 13px 12px; }
  .game-copy h3 { font-size: 1.32rem; }
  .game:nth-child(n+4) .game-visual img { position: static; transform: none; width: min(75%, 192px); }
  .family-grid { gap: 31px; }
  .family-visual { max-width: 420px; margin-inline: auto; }
  .download-band { align-items: start; }
  .qr-link { display: none; }
  .footer-main { align-items: start; flex-direction: column; }
  .download-grid, .delivery-notes { grid-template-columns: 1fr; }
  .download-qr { width: max-content; }
  .policy-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .brand { gap: 7px; }
  .brand img { width: 32px; }
  .brand small { margin-left: 1px; }
  .button { padding-inline: 16px; }
  .game-copy { padding-inline: 10px; }
}
