﻿:root { color-scheme: light; --paper:#fffaf0; --ink:#194d3c; --muted:#486454; --orange:#be421f; --green:#287453; --pale:#eef2df; --line:#cbd6c3; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:18px/1.5 'Trebuchet MS',Arial,sans-serif; }
button,input { font:inherit; } button,a { -webkit-tap-highlight-color:transparent; } button { cursor:pointer; } button:disabled { cursor:default; } a { color:inherit; } button { color:var(--ink); } button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid #175aa6; outline-offset:5px; } h1:focus { outline:none; } h1,h2,p { margin-top:0; } h1,h2 { line-height:1.1; } h1 { font-size:clamp(36px,4.6vw,64px); letter-spacing:-2px; } h2 { font-size:26px; letter-spacing:-.6px; } .topbar { max-width:1440px; margin:auto; min-height:98px; padding:18px 48px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #e8e6d8; } .brand { border:0; background:none; padding:0; font-size:36px; font-weight:900; letter-spacing:-1px; } .brand span { color:#497c3b; } nav { display:flex; align-items:center; gap:26px; font-weight:bold; } nav a { text-decoration:none; } nav button { border:0; border-left:1px solid var(--line); border-right:1px solid var(--line); padding:10px 22px; background:none; min-height:48px; } .stars { white-space:nowrap; } .stars span { color:#af6a00; font-size:30px; } main { max-width:1344px; margin:auto; padding:0 28px 30px; } .hero { display:grid; grid-template-columns:1fr 1.08fr; align-items:center; min-height:365px; margin:0 -10px 16px; } .hero-copy { padding:32px 0 25px 10px; position:relative; z-index:1; } .hero h1 { max-width:570px; margin-bottom:20px; } .hero p { font-size:23px; line-height:1.5; margin-bottom:26px; } .hero img { display:block; width:100%; height:365px; object-fit:cover; border-radius:0 0 25px 25px; } .primary,.secondary { border:0; border-radius:28px; padding:14px 26px; font-weight:bold; min-height:52px; line-height:1.3; transition:transform .15s; } .primary { color:white; background:var(--orange); box-shadow:0 3px 0 #8a3019; } .primary:hover { background:#a93719; transform:translateY(-1px); } .primary:active { transform:translateY(2px); } .primary span { margin-left:18px; } .secondary { background:#e9eedc; border:1px solid #bbcdb2; } .text-button { border:0; background:none; min-height:48px; padding:10px 12px; text-decoration:underline; text-underline-offset:4px; font-weight:bold; } .trail { background:var(--pale); border-radius:22px; padding:20px 30px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin:10px 0 24px; } .trail h2 { margin:0; font-size:24px; } .stamp { display:flex; align-items:center; gap:12px; font-size:17px; font-weight:bold; } .stamp b { display:grid; place-items:center; border:2px dashed #91a674; background:#fbf9ed; color:#62734b; width:52px; height:52px; border-radius:50%; font-size:22px; } .stamp.earned b { background:var(--green); color:white; border-style:solid; border-color:var(--green); } .worlds { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; } .world { display:flex; gap:15px; border:1px solid #d8dfd0; border-radius:22px; background:#fffdf7; padding:26px 20px; } .world h2 { margin:0 0 12px; font-size:25px; } .world p { font-size:17px; line-height:1.5; min-height:76px; margin-bottom:8px; } .world small { display:block; color:var(--muted); font-size:13px; margin-bottom:20px; } .world .primary { font-size:16px; padding:12px 18px; } .world-art { width:48px; height:58px; flex-shrink:0; font-size:44px; line-height:1; color:#347155; } .orange .world-art { color:#a45e20; } .purple .world-art { color:#575793; } .home-options { display:flex; justify-content:center; align-items:center; gap:18px; margin:24px 0 16px; flex-wrap:wrap; } .kind-note { text-align:center; color:var(--muted); margin:22px 0; } .grownups { max-width:750px; margin:25px auto 0; font-size:15px; color:var(--muted); } summary { cursor:pointer; min-height:44px; text-align:center; } .game-top { margin:28px auto 24px; display:flex; justify-content:space-between; align-items:center; gap:20px; max-width:1000px; font-size:16px; } .game-top > div { text-align:center; font-weight:bold; } progress { display:block; width:190px; height:10px; margin:8px auto 0; accent-color:var(--green); } .quiet { color:var(--muted); font-size:15px; } .learning-card { background:#fffdf8; border:1px solid #dbe2d3; border-radius:28px; box-shadow:0 15px 40px #27533308; padding:32px 44px; max-width:820px; margin:auto; text-align:center; } .section-label { color:var(--muted); font-size:16px; margin-bottom:12px; } .learning-card h1 { font-size:36px; line-height:1.2; letter-spacing:-1px; margin-bottom:18px; } .instruction { font-size:22px; max-width:610px; margin:0 auto 22px; } .fraction-bar { display:flex; width:100%; max-width:440px; height:130px; border:3px solid var(--ink); border-radius:10px; overflow:hidden; margin:28px auto; background:#f7f5e7; } .part { display:grid; place-items:center; flex:1; min-width:0; border:0; border-right:3px solid var(--ink); background:#f7f5e7; color:var(--ink); font-size:30px; } .part:last-child { border-right:0; } .part.filled { background:#378360; color:white; } button.part:hover { box-shadow:inset 0 0 0 5px #eda83c; } button.part:focus-visible { outline:5px solid #e2a125; outline-offset:-7px; } .counters { display:flex; justify-content:center; flex-wrap:wrap; gap:15px; margin:30px auto; } .counters .part { width:66px; height:66px; border:3px solid var(--ink); border-radius:50%; flex:none; } .selection-note { color:var(--muted); font-size:18px; } .share-options { display:flex; justify-content:center; gap:24px; margin:28px 0; } .share-choice { background:#fff; border:2px solid var(--line); padding:16px; border-radius:14px; font-weight:bold; min-width:0; } .share-choice:hover { border-color:var(--green); } .share-picture { display:flex; width:210px; max-width:100%; height:105px; border:3px solid var(--ink); margin-bottom:12px; } .share-picture i { width:50%; background:#bde0c5; } .share-picture i + i { border-left:3px solid var(--ink); background:#ffe3a5; } .share-picture.unequal i { width:25%; } .share-picture.unequal i + i { width:75%; } .feedback { background:#fff0d5; border-radius:16px; margin:20px auto 0; padding:18px; line-height:1.5; } .feedback:empty { display:none; } .feedback.success { background:#e9f1df; } .feedback p { margin:0; } .feedback button { margin-top:16px; } .choices { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin:26px 0 12px; } .choice { min-width:84px; min-height:68px; border:2px solid #9eb49b; background:white; border-radius:14px; font-size:27px; font-weight:bold; padding:12px 22px; } .choice:hover { background:#eaf2df; border-color:var(--green); } .choice:disabled { opacity:.6; } .fraction { display:inline-flex; flex-direction:column; align-items:stretch; vertical-align:middle; font-size:26px; line-height:1.1; min-width:26px; text-align:center; margin:0 5px; } .fraction > span:first-child { border-bottom:2px solid currentColor; padding:0 3px 3px; } .fraction > span:last-child { padding-top:3px; } .groups,.pattern { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin:30px 0; } .groups > span,.pattern > span { padding:12px; background:#f9ebbf; border:2px solid #b69336; border-radius:13px; font-size:24px; } .groups > span { color:#805900; letter-spacing:2px; } .machine { display:flex; align-items:center; justify-content:center; gap:22px; margin:30px auto; font-size:32px; } .machine > span { padding:10px 20px; border-radius:14px; background:#e9ecdb; } .machine small { display:block; font-size:14px; } .equation { font-size:42px; margin:30px 0; } #answer-form label { display:block; margin-bottom:12px; } #answer-form > div { display:flex; justify-content:center; gap:15px; flex-wrap:wrap; } input { width:95px; border:2px solid #9eb49b; border-radius:12px; padding:10px; font-size:27px; text-align:center; } .compare { max-width:440px; margin:auto; } .compare p { margin-bottom:10px; } .compare .fraction-bar { height:82px; margin:14px 0 26px; } .results { max-width:780px; margin:30px auto; text-align:center; } .results img { width:300px; height:200px; object-fit:cover; border-radius:30px; } .results h1 { font-size:44px; margin:18px 0; } .result-actions { display:flex; justify-content:center; gap:16px; margin:26px 0; flex-wrap:wrap; } #storage-note { text-align:center; font-size:15px; } .sr-only,.skip-link:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; } .skip-link:focus { display:block; padding:10px; } @media(min-width:1350px) { .hero { min-height:395px; } .hero img { height:395px; } }
@media(max-width:1000px) { .topbar { padding:18px 28px; } .brand { font-size:30px; } nav { gap:16px; font-size:16px; } nav button { padding:10px 12px; } .world { display:block; padding:22px; } .world-art { margin-bottom:14px; } .trail { padding:20px; gap:14px; } .trail h2 { max-width:160px; } .stamp { gap:7px; } .stamp b { width:40px; height:40px; } .hero p { font-size:20px; } .hero h1 { font-size:44px; } }
@media(max-width:680px) { body { font-size:17px; } .topbar { flex-wrap:wrap; padding:16px 20px; gap:8px; } .brand { font-size:29px; } nav { width:100%; justify-content:space-between; gap:6px; font-size:15px; } nav button { padding:6px 12px; } main { padding:0 18px 24px; } .hero { display:flex; flex-direction:column; margin:0 0 16px; } .hero-copy { padding:26px 4px 0; width:100%; } .hero h1 { font-size:43px; max-width:420px; } .hero p { font-size:19px; } .hero img { height:220px; object-fit:cover; margin-top:12px; } .desktop-break { display:none; } .trail { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:18px 12px; } .trail h2 { grid-column:1/-1; max-width:none; text-align:center; margin-bottom:6px; font-size:22px; } .stamp { flex-direction:column; font-size:14px; gap:7px; } .worlds { grid-template-columns:1fr; gap:14px; } .world { display:flex; gap:20px; } .world p { min-height:0; } .world small { margin-bottom:14px; } .world h2 { font-size:26px; } .world-art { width:50px; } .home-options { gap:8px; flex-direction:column; } .game-top { flex-wrap:wrap; margin:14px 0; gap:10px; } .quiet { display:none; } .learning-card { padding:24px 16px; border-radius:22px; } .learning-card h1 { font-size:29px; } .instruction { font-size:20px; } .fraction-bar { height:115px; margin:25px auto; } .share-options { gap:12px; } .share-choice { padding:10px 7px; width:50%; font-size:16px; } .share-picture { width:100%; height:90px; } .choices { gap:10px; } .choice { min-width:60px; padding:12px 17px; } .machine { gap:10px; font-size:26px; } .machine > span { padding:10px 14px; } .results h1 { font-size:34px; } .results img { max-width:100%; } .counters { gap:8px; } .counters .part { width:54px; height:54px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
/* Keep the illustrated hero and tablet text apart; align destination actions. */
.hero { column-gap:20px; }
.world > div:last-child { display:flex; flex-direction:column; align-items:flex-start; }
.world small { margin-top:auto; }
@media(min-width:681px) and (max-width:1000px) { .hero h1 { font-size:40px; } .hero p { font-size:19px; } .desktop-break { display:none; } .world { display:flex; flex-direction:column; } .world > div:last-child { flex:1; } }
