:root {
  color-scheme: light;
  --ink: #192d32;
  --text: #394e51;
  --paper: #f8f7ee;
  --white: #fffef8;
  --line: #23383a;
  --muted-line: #d0d7c9;
  --yellow: #ffdb61;
  --mint: #d9f1dc;
  --peach: #ffe1cc;
  --blue: #dbedfb;
  --lilac: #e8e1ff;
  --rose: #ffdae4;
  --shadow: 0 4px 0 var(--line);
  --wrap: 1200px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 1rem; line-height: 1.6; }
main { flex: 1; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #3152b2; outline-offset: 4px; }
.skip { position: fixed; top: .8rem; left: .8rem; z-index: 10; padding: .65rem 1rem; background: var(--yellow); border-radius: .5rem; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 6vw, 6.1rem); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 900; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.1vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 4.15vw, 3.55rem); }
h3 { font-size: clamp(1.26rem, 2vw, 1.62rem); }
p { color: var(--text); }
p + p { margin-top: .95rem; }
.eyebrow {
  display: flex; align-items: center; gap: .6rem; width: fit-content;
  color: var(--ink); font: 750 .75rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .105em; text-transform: uppercase; margin: 0 0 .95rem;
}
.eyebrow::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: #228265; box-shadow: 2px 2px 0 #1c3c38; }
.section-head { max-width: 650px; margin: 0 0 1.8rem; }
.section-head > p:last-child:not(.eyebrow) { margin-top: .8rem; max-width: 55ch; }
.centered { text-align: center; margin-inline: auto; }
.centered > p { margin-inline: auto; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .52rem;
  min-height: 48px; padding: .6rem 1rem;
  border: 2px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  background: var(--white); color: var(--ink); font-size: .95rem; font-weight: 800; line-height: 1.25; text-align: center;
  text-decoration: none; transition: transform 160ms, box-shadow 160ms, background-color 160ms;
}
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.button svg { width: 18px; height: 18px; flex: none; }
.button.small { min-height: 40px; padding: .45rem .8rem; font-size: .88rem; }
.button.navy { background: #20383d; color: white; box-shadow: 0 4px 0 #101e22; }
.button.navy:hover:not(:disabled) { background: #2e4b50; }
.button.yellow { background: var(--yellow); }
.button.outline { background: var(--white); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar { display: flex; min-height: 77px; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.165rem; font-weight: 900; line-height: 1; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand > svg { width: 42px; height: 42px; }
.brand-sub { display: block; margin-top: .25rem; font: 750 .63rem/1 ui-monospace, "Cascadia Mono", monospace; text-transform: uppercase; letter-spacing: .22em; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: clamp(.85rem, 2.65vw, 2.35rem); }
.site-nav a:not(.button), .site-footer nav a { font-weight: 680; font-size: .94rem; text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current]:not(.button), .site-footer nav a:hover { text-decoration: underline; }
.menu-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .65rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-weight: 760; }
.menu-toggle svg { width: 20px; height: 20px; }

.home-hero {
  overflow: hidden;
  background-color: #dff2e4;
  background-image: radial-gradient(ellipse at 18% 42%, #f0f7dc 0, transparent 60%), radial-gradient(#528c7338 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(1.7rem, 3.5vw, 3.15rem); align-items: center; padding-block: clamp(2.5rem, 4.3vw, 4.35rem); }
.hero-copy h1 { font-size: clamp(2.7rem, 5.47vw, 4.8rem); line-height: .99; letter-spacing: -.065em; text-wrap: initial; }
.hero-copy h1 span { color: #175e4c; }
.hero-copy > p:not(.eyebrow):not(.hero-note) { max-width: 36ch; margin-top: 1.3rem; font-size: clamp(1.05rem, 1.55vw, 1.27rem); }
.hero-copy .eyebrow { background: #ecf6de; padding: .4rem .7rem; border: 1px solid #8aaf96; border-radius: 6px; }
.hero-note { font-size: .875rem; font-weight: 620; margin-top: 1.15rem; }
.console {
  min-width: 0; padding: 12px; border: 2px solid #172b30; border-radius: 21px;
  background: #263e44; box-shadow: 0 6px 0 #182c31, 0 15px 24px #193c3230, inset 0 0 0 2px #ffffff24;
  color: #eef6ed;
}
.console-top, .console-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.console-top { padding: 1px 5px 10px; font: 700 .72rem/1 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .1em; }
.console-top span:first-child { display: flex; gap: 7px; align-items: center; }
.console-top i { width: 8px; height: 8px; background: #9be6af; box-shadow: 0 0 7px #9be6af55; }
.screen { position: relative; border: 2px solid #132a2e; border-radius: 10px; overflow: hidden; background: #93cce2; }
.hero-art { width: 100%; height: auto; aspect-ratio: 620 / 420; }
.game-hud { position: absolute; top: .7rem; left: .7rem; padding: .2rem .5rem; border: 1px solid #f6dfa487; border-radius: 5px; background: #19353a; color: #fff9e7; font: 800 .84rem/1.45 ui-monospace, monospace; }
.game-hud span { color: #ffdc63; }
.console-controls { padding: 8px 3px 1px; min-height: 45px; }
.speaker { display: flex; align-items: center; gap: 5px; padding-left: 5px; }
.speaker i { width: 4px; height: 11px; background: #0c2026; border-radius: 4px; box-shadow: 1px 1px 0 #5d7675; }
.jump { display: inline-flex; align-items: center; gap: .35rem; min-height: 35px; padding: .15rem .55rem; color: #f9fae9; background: #385358; border: 1px solid #87a19e; border-radius: 6px; font-size: .825rem; font-weight: 780; }
.jump:hover { background: #4b686a; }
.jump:focus-visible { outline-color: #ffdd73; }
.jump svg { width: 15px; height: 15px; color: #ffda65; }
#hero-genie { transform-box: fill-box; transform-origin: center; }
#hero-genie.jumping { animation: jump .56s cubic-bezier(.23,.65,.5,1); }
@keyframes jump { 0%, 100% { transform: translate(0,0); } 45% { transform: translate(45px,-70px) rotate(8deg); } }
.quick-facts { background: var(--yellow); border-block: 1px solid var(--line); }
.quick-facts ul { display: flex; align-items: center; justify-content: center; list-style: none; padding: 0; margin-block: 0; }
.quick-facts li { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: .65rem; padding: .82rem .5rem; font-size: .94rem; font-weight: 810; line-height: 1.28; text-align: center; }
.quick-facts li + li { border-left: 1px solid #23383a55; }
.quick-facts svg { width: 21px; height: 21px; flex: 0 0 auto; }
.game-grid, .os-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.mint { --tone: var(--mint); }
.peach { --tone: var(--peach); }
.blue, .sky { --tone: var(--blue); }
.yellow { --tone: #fff1bd; }
.lilac { --tone: var(--lilac); }
.rose { --tone: var(--rose); }
.game-card { background: var(--white); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.game-thumb { position: relative; background: var(--tone); border-bottom: 2px solid var(--line); }
.game-thumb img { width: 100%; height: auto; }
.game-thumb span { position: absolute; bottom: .58rem; left: .65rem; font: 700 .72rem/1.2 ui-monospace, monospace; text-transform: uppercase; background: var(--white); border: 1px solid var(--line); padding: .28rem .42rem; border-radius: 5px; }
.game-card-copy { padding: 1rem 1.15rem 1.25rem; }
.game-card-copy p { margin-top: .45rem; }
.how-section { background: #eeefe2; border-block: 1px solid var(--muted-line); }
.how-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.how-grid li { background: var(--white); border: 1px solid var(--muted-line); border-radius: 15px; padding: 1.15rem; }
.how-grid h3 { margin: .85rem 0 .45rem; }
.step-icon, .square-icon { display: grid; place-items: center; width: 49px; height: 49px; background: var(--tone); border: 1px solid var(--line); border-radius: 9px; }
.step-icon svg, .square-icon svg { width: 22px; height: 22px; }
.map-section { background: #e0efea; border-bottom: 1px solid var(--muted-line); }
.map-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.8rem; }
.map-head .section-head { margin: 0; }
.map-head .button { flex: none; margin-bottom: .25rem; }
.world-map {
  position: relative; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 1.08rem; padding: 1.35rem;
  margin: 0; list-style: none; border: 1px solid #96ada4; border-radius: 18px; background: #f5f8ed;
  background-image: radial-gradient(#789b855c 1px, transparent 1px); background-size: 15px 15px;
}
.world-map::before { content: ""; position: absolute; left: 8%; right: 8%; top: 85px; border-top: 3px dashed #5e7864; pointer-events: none; }
.world-map li:nth-child(odd) { margin-bottom: .7rem; }
.world-map li:nth-child(even) { margin-top: .7rem; }
.world-map li { min-width: 0; }
.world-map a { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: .65rem; background: var(--tone); border: 1px solid #526964; border-radius: 12px; text-decoration: none; transition: transform 150ms, box-shadow 150ms; }
.world-map a:hover { transform: translateY(-4px); box-shadow: 0 4px 0 #526964; }
.world-map-art { display: block; }
.world-map-art svg { width: 100%; max-height: 100px; }
.map-index { display: block; font: 750 .72rem/1.25 ui-monospace, monospace; text-transform: uppercase; margin: .4rem 0 .22rem; letter-spacing: .05em; }
.world-map strong { display: block; font-weight: 850; line-height: 1.17; margin-bottom: .6rem; }
.world-map-badge { display: flex; margin-top: auto; align-items: center; gap: .32rem; font-size: .8rem; font-weight: 800; }
.world-map-badge svg { width: 20px; height: 20px; flex: none; }
.split-section, .prose-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.feature-card { position: relative; min-height: 100%; border: 2px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3.6vw, 2.65rem); box-shadow: var(--shadow); }
.feature-card h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: initial; }
.feature-card p:not(.eyebrow) { margin: .8rem 0 1.2rem; max-width: 50ch; }
.feature-download { background: var(--lilac); }
.feature-parents { background: var(--mint); }
.feature-mascot, .feature-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem; }
.feature-icon { border: 1px solid var(--line); border-radius: 15px; background: #f8fcef; }
.feature-icon svg { width: 31px; height: 31px; }
.faq-section { border-block: 1px solid var(--muted-line); background: #f0f0e4; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.2rem, 5vw, 4.35rem); }
.faq-layout .section-head { margin-bottom: 0; }
.faqs { display: grid; gap: .65rem; align-content: start; }
.faqs details { border: 1px solid #a9b8ae; border-radius: 11px; background: var(--white); }
.faqs summary { min-height: 49px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 790; list-style: none; border-radius: 10px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary > span { position: relative; width: 15px; height: 15px; flex: none; }
.faqs summary > span::before, .faqs summary > span::after { content: ""; position: absolute; left: 1px; right: 1px; height: 2px; top: 6px; background: var(--ink); }
.faqs summary > span::after { transform: rotate(90deg); }
.faqs details[open] summary > span::after { display: none; }
.faqs details > div { padding: 0 1rem .95rem; }
.signup-block { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 1.5rem; background: #243d42; color: #fffbee; border-radius: 20px; padding: clamp(1.3rem, 4.5vw, 3.75rem); }
.signup-block > div p { color: #e0e9df; margin-top: .75rem; }
.signup-block .eyebrow::before { background: var(--yellow); box-shadow: 2px 2px 0 #a37e38; }
.signup-block > div .button { margin-top: 1.1rem; }
.signup-block > div .button:focus-visible { outline-color: #ffe389; }
.signup-form { background: var(--white); color: var(--ink); padding: clamp(1rem, 2.5vw, 1.65rem); border-radius: 12px; }
.signup-form h3 { margin-bottom: .8rem; }
.signup-form label { display: block; font-size: .9rem; font-weight: 750; margin-bottom: .25rem; }
.form-row { display: flex; align-items: stretch; gap: .55rem; }
.form-row input { width: 100%; min-width: 0; border: 1px solid #82948b; border-radius: 8px; padding: .6rem .65rem; color: var(--ink); background: white; }
.form-row button { flex: none; }
.form-row button:disabled { opacity: .7; }
.signup-form p { margin: .65rem 0 0; font-size: .875rem; }
.signup-form .form-status { font-weight: 720; }
.signup-form .form-status:empty { margin: 0; }
.site-footer { background: #eeeee1; border-top: 1px solid var(--muted-line); padding-block: 2rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; margin-bottom: 1.35rem; }
.site-footer nav { flex-wrap: wrap; }
.legal { font-size: .83rem; border-top: 1px solid #c5ccbf; padding-top: 1rem; }

.page-hero { padding-block: clamp(2.5rem, 6vw, 5rem); background: var(--tone, #e0efea); background-image: radial-gradient(#5d7c6e33 1px, transparent 1px); background-size: 16px 16px; border-bottom: 1px solid #9aafa3; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.05rem); }
.page-hero p:not(.eyebrow):not(.hero-note) { font-size: clamp(1.05rem,2vw,1.26rem); max-width: 53ch; margin-top: 1rem; }
.page-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,350px); align-items: center; gap: 2rem; }
.intro-art svg { width: 100%; max-height: 250px; }
.course-hero .world-map { margin-top: 2rem; }
.progress-panel { display: grid; gap: .2rem; padding: 1rem 1.15rem; background: var(--white); border: 1px solid #748980; border-radius: 12px; }
.progress-panel label { font-size: 1.05rem; font-weight: 850; }
.progress-panel span { font-size: .92rem; font-weight: 680; }
.progress-panel small { color: var(--text); font-size: .825rem; }
progress { width: 100%; height: 13px; border: 1px solid #617870; border-radius: 12px; overflow: hidden; accent-color: #2c775c; background-color: #e6eee1; margin-block: .35rem; }
progress::-webkit-progress-bar { background-color: #e6eee1; }
progress::-webkit-progress-value { background-color: #2c775c; }
progress::-moz-progress-bar { background-color: #2c775c; }
.world-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1.25rem; }
.world-detail { scroll-margin-top: 1rem; border: 2px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.world-detail-head { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,105px); align-items: center; gap: .8rem; min-height: 120px; border-bottom: 1px solid var(--line); background: var(--tone); padding: 1rem; }
.world-detail-head .eyebrow { font-size: .7rem; margin-bottom: .35rem; }
.world-detail-head h2 { font-size: clamp(1.48rem, 2.6vw, 2.12rem); text-wrap: initial; }
.world-detail-head p:not(.eyebrow) { margin-top: .4rem; font-size: .94rem; }
.world-detail-head .badge-earned { font-weight: 800; }
.world-icon svg { width: 46px; height: 46px; }
.quest-list { list-style: none; margin: 0; padding: .45rem .9rem; }
.quest-list li + li { border-top: 1px solid #e1e5d9; }
.quest-list a { text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 48px; padding: .42rem .35rem; border-radius: 4px; }
.quest-list a:hover { background: #edf4e9; }
.quest-list a > span:first-child { display: flex; align-items: baseline; gap: .65rem; }
.quest-no { font: 700 .8rem/1.2 ui-monospace, monospace; color: #375958; }
.quest-time { white-space: nowrap; color: var(--text); font-size: .83rem; }
.quest-done { display: inline-block; margin-left: .4rem; color: #1e6651; }
.breadcrumbs { margin-bottom: 1.35rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; padding: 0; margin: 0; font-size: .89rem; font-weight: 710; }
.breadcrumbs li + li::before { content: "/"; padding-right: .45rem; color: #53736e; }
.lesson-hero { padding-block: clamp(1.65rem,4vw,3.4rem); }
.lesson-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,220px); gap: 1.5rem; align-items: center; }
.quest-meta { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1rem; }
.quest-meta span { display: inline-flex; align-items: center; gap: .38rem; padding: .35rem .58rem; background: var(--white); border: 1px solid #849893; border-radius: 6px; font-size: .88rem; font-weight: 750; }
.quest-meta svg { width: 17px; height: 17px; }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px, .51fr); align-items: start; gap: clamp(1.35rem, 4vw, 3.5rem); }
.lesson-body, .lesson-side { display: grid; gap: 1.25rem; align-content: start; }
.lesson-body h2, .lesson-side h2 { font-size: 1.64rem; }
.goal-card { border: 1px solid #9aab9e; border-radius: 13px; background: var(--white); padding: 1.2rem; }
.goal-card ul { display: grid; gap: .45rem; list-style: none; margin: .65rem 0 0; padding: 0; }
.goal-card li { display: flex; align-items: center; gap: .55rem; }
.goal-card svg, .tip-panel svg { width: 20px; height: 20px; flex: none; }
.goal-card svg { color: #256c56; }
.instructions ol { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .7rem; counter-reset: quest; }
.instructions li { display: flex; gap: .75rem; align-items: start; counter-increment: quest; }
.instructions li::before { content: counter(quest); display: grid; place-items: center; width: 29px; height: 29px; flex: none; border: 1px solid var(--line); background: var(--yellow); border-radius: 6px; font: 800 .85rem/1 ui-monospace, monospace; }
.quest-link { margin-top: .85rem; font-weight: 750; }
.prompt { background: #e8e1ff; border: 1px solid #776b9f; border-radius: 13px 13px 13px 4px; padding: 1rem; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.prompt-head > span, .prompt-head button { display: inline-flex; align-items: center; gap: .45rem; font-weight: 780; }
.prompt-head > span svg { width: 25px; height: 25px; }
.prompt-head button { background: var(--white); color: var(--ink); border: 1px solid #776b9f; border-radius: 6px; padding: .32rem .5rem; font-size: .82rem; min-height: 36px; }
.prompt-head button svg { width: 15px; height: 15px; }
.prompt blockquote { margin: .75rem 0 0; font-weight: 650; }
.tip-panel { background: var(--tone); border: 1px solid #98aa9e; border-radius: 13px; padding: 1rem; }
.tip-panel h2 { display: flex; gap: .55rem; align-items: center; }
.tip-panel p, .reward p { margin-top: .4rem; }
.lesson-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.lesson-nav a { display: block; background: var(--white); border: 1px solid #a1afa4; border-radius: 9px; text-decoration: none; padding: .65rem .85rem; font-weight: 780; }
.lesson-nav a:hover { background: #e7f1e4; }
.lesson-nav a:last-child { text-align: right; }
.lesson-nav span { display: block; font-size: .78rem; color: var(--text); font-weight: 650; }
.video-frame {
  background: repeating-linear-gradient(0deg,#29434a,#29434a 3px,#2c474d 3px,#2c474d 4px); color: white;
  border: 2px solid #1a3137; border-radius: 15px; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; padding: .9rem;
}
.video-frame > div { background: #ffde71; width: 44px; height: 44px; border-radius: 9px; color: #24383b; display: grid; place-items: center; }
.video-frame svg { width: 22px; height: 22px; }
.video-frame span { color: #e0e9e4; font-size: .85rem; }
.reward { display: grid; grid-template-columns: 45px 1fr; gap: .65rem; align-items: start; background: var(--tone); border: 1px solid #85978c; border-radius: 12px; padding: 1rem; }
.reward > svg { width: 45px; height: 45px; }
.reward button, .reward-status { grid-column: 1 / -1; }
.reward-status { font-weight: 720; font-size: .88rem; }
.reward-status:empty { display: none; }
.reward button:disabled { opacity: .9; }
.os-card, .text-card { background: var(--tone, var(--white)); border: 1px solid #8e9f95; border-radius: 14px; padding: 1.25rem; }
.os-card { display: flex; flex-direction: column; align-items: flex-start; }
.os-card .square-icon { background: var(--white); margin-bottom: .75rem; }
.os-card ol { flex: 1; margin-block: .8rem 1.2rem; padding-left: 1.3rem; }
.os-card li + li { margin-top: .35rem; }
.split-section article:not(.feature-card) > h2, .text-card h2 { font-size: clamp(1.65rem,2.85vw,2.32rem); margin-bottom: .6rem; }
.tool-section { padding-bottom: 0; }
.tool-section .section-head { margin-bottom: 0; }
.tool-section + .section { padding-top: 2.5rem; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: #e6efd9; border: 2px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 2.1rem); }
.inline-cta h2 { font-size: clamp(1.7rem,3.2vw,2.6rem); }
.inline-cta p { margin-top: .6rem; }
.inline-cta .button { flex: none; }
.parent-list { padding-left: 1.3rem; margin: 0; }
.parent-list li + li { margin-top: .6rem; }
.policy { display: grid; gap: 2rem; }
.policy h2 { font-size: clamp(1.65rem,3vw,2.32rem); margin-bottom: .5rem; }
.certificate { border: 3px double var(--line); border-radius: 12px; background: #fffae5; text-align: center; padding: clamp(1.1rem,5vw,3rem); }
.certificate > svg { width: 80px; margin: 0 auto 1rem; }
.certificate .eyebrow { margin-inline: auto; }
.certificate h1 { font-size: clamp(2.4rem,5vw,4rem); margin-bottom: 1rem; }
.certificate-line { margin: 1rem auto .6rem; width: min(90%, 380px); border-bottom: 1px solid var(--line); height: 2rem; }
.certificate-date { margin: 1.5rem auto 0; width: min(60%, 170px); }
.certificate-date span { display: block; border-bottom: 1px solid var(--line); height: 1rem; }
p.certificate-actions { margin-top: .75rem; }
@media (max-width: 1060px) {
  .wrap { width: min(var(--wrap), calc(100% - 56px)); }
  .world-map { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .world-map::before { display: none; }
  .world-map li:nth-child(n) { margin: 0; }
}
@media (max-width: 790px) {
  .wrap { width: calc(100% - 40px); }
  .topbar { min-height: 66px; flex-wrap: wrap; gap: .6rem; }
  .site-nav { padding-bottom: .85rem; flex-basis: 100%; flex-wrap: wrap; gap: .8rem 1rem; }
  .site-header.menu-ready .site-nav { display: none; }
  .site-header.menu-ready .site-nav.open { display: grid; align-items: stretch; }
  .site-header.menu-ready .site-nav a:not(.button) { display: flex; align-items: center; min-height: 40px; }
  .site-header.menu-ready .site-nav .button { justify-self: start; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.55rem; padding-block: 2.3rem 2.7rem; }
  .hero-copy, .console { width: min(100%, 620px); }
  .hero-copy h1 { font-size: clamp(2.75rem,10.7vw,4.85rem); }
  .hero-copy > p:not(.eyebrow):not(.hero-note) { margin-top: .85rem; }
  .hero-copy .actions { margin-top: 1.15rem; }
  .hero-note { margin-top: .8rem; }
  .game-grid, .os-grid { gap: .9rem; }
  .how-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faq-layout, .lesson-layout { grid-template-columns: 1fr; }
  .page-intro { grid-template-columns: minmax(0,1fr) minmax(0,240px); gap: 1.25rem; }
  .world-detail-head { grid-template-columns: auto 1fr; }
  .world-detail-art { display: none; }
  .lesson-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 32px); }
  .brand > svg { width: 37px; height: 37px; }
  .brand { font-size: 1.08rem; }
  .section { padding-block: 3.25rem; }
  .hero-grid { padding-top: 1.9rem; }
  .hero-copy .eyebrow { font-size: .66rem; letter-spacing: .075em; }
  .console { padding: 9px; border-radius: 15px; }
  .console-top { font-size: .64rem; padding-bottom: 8px; }
  .game-hud { top: .48rem; left: .48rem; font-size: .73rem; }
  .quick-facts li { font-size: .82rem; flex-direction: column; gap: .26rem; }
  .quick-facts svg { width: 18px; height: 18px; }
  .game-grid, .os-grid, .split-section, .prose-grid, .signup-block, .world-grid, .page-intro, .lesson-side { grid-template-columns: 1fr; }
  .map-head, .inline-cta { flex-direction: column; align-items: flex-start; }
  .world-map { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .6rem; gap: .55rem; }
  .world-detail-art { display: block; }
  .world-detail-head { grid-template-columns: auto minmax(0,1fr) 62px; min-height: 0; }
  .world-icon svg { width: 36px; height: 36px; }
  .page-hero h1 { font-size: clamp(2.7rem,12vw,4.25rem); }
  .intro-art { max-width: 220px; justify-self: center; }
  .lesson-intro { grid-template-columns: 1fr; }
  .lesson-art { display: none; }
  .lesson-layout { padding-top: 2.15rem; }
}
@media (max-width: 430px) {
  .hero-copy .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: .65rem; }
  .hero-copy .actions .button { font-size: .82rem; min-height: 48px; padding-inline: .43rem; }
  .hero-copy .actions .button svg { width: 15px; height: 15px; }
  .how-grid { gap: .55rem; }
  .how-grid li { padding: .85rem; }
  .world-detail-art { display: none; }
  .world-detail-head { grid-template-columns: auto minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .skip, .breadcrumbs, .certificate-actions { display: none !important; }
  body { display: block; background: white; }
  .certificate-page { padding: 0; width: 100%; }
  .certificate { padding: 2rem; }
}
