:root{--cream:#fff8e7;--ink:#3a2e5c;--green:#226447;--green-light:#eaf5ec;--berry:#a92f56;--gold:#ffca55;--line:#e4decb;--white:#fff;--shadow:0 5px 0 #3a2e5c13;font-family:"Trebuchet MS",system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;padding:18px 16px 28px}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;min-height:48px;border:2px solid transparent;border-radius:15px;font-weight:800;color:var(--ink)}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #186b9b;outline-offset:4px}[hidden]{display:none!important}.wrap{max-width:620px;margin:auto}.game-nav{display:flex;gap:6px;justify-content:center;padding:5px;border-radius:18px;background:#f0ebdc}.game-nav a{flex:1;text-decoration:none;color:var(--ink);text-align:center;font-size:.85rem;font-weight:700;padding:12px 7px;border-radius:13px;display:flex;align-items:center;justify-content:center;min-height:48px}.game-nav [aria-current]{background:white;box-shadow:0 2px 4px #3a2e5c10}header{text-align:center;padding:28px 0 22px}.eyebrow{font-size:.7rem;letter-spacing:.12em;font-weight:800;color:#6d654f}h1{font-size:clamp(1.7rem,6vw,2.5rem);line-height:1.1;letter-spacing:-.045em;margin:8px 0 10px}h2{font-size:1.3rem;line-height:1.25;margin:0 0 12px}p{line-height:1.5;margin:10px 0}header p{margin:0;color:#686073}.card{background:white;border:1px solid var(--line);border-radius:25px;padding:27px;box-shadow:var(--shadow);margin-bottom:18px}#welcome,#finished{text-align:center}.intro-art{font-size:3.2rem;letter-spacing:.12em;margin:0 0 20px}.example{font-size:2rem;font-weight:800;margin:22px auto}.example span{display:inline-block;background:#fff1c9;border:2px dashed #be8d21;border-radius:10px;min-width:46px;padding:3px}.small{font-size:.88rem;color:#685f73}.primary,.secondary{width:100%;padding:13px 16px;margin-top:10px}.primary{background:var(--green);color:white;box-shadow:0 4px 0 #174932}.secondary{background:#f3f0e8;border-color:#e5dfd0}.primary span,.secondary span{display:block;font-size:.78rem;font-weight:400;margin-top:4px}.quiet{background:none;padding:5px 10px;color:#5e546e;font-size:.85rem}.progress-row{display:flex;justify-content:space-between;align-items:center;margin:-5px 0 4px;font-size:.85rem;font-weight:700}.garden{display:flex;justify-content:center;gap:6px;margin:0 0 16px;font-size:1.5rem;min-height:36px}.garden span{min-width:25px;text-align:center}.question-card{text-align:center}.question-card .eyebrow{margin-top:0}.equation{display:flex;align-items:center;justify-content:center;gap:clamp(7px,2vw,17px);font-size:clamp(1.8rem,7vw,2.8rem);font-weight:800;margin:22px 0 12px}.equation input{min-width:0;width:2.1em;text-align:center;font-size:inherit;font-weight:800;color:var(--ink);background:#fff3cf;border:3px solid #c0922b;border-radius:13px;height:1.65em;padding:2px}.equation input::placeholder{color:#9b741f}.equation input:read-only{background:#eaf5ec;border-color:var(--green)}.feedback{min-height:42px;font-size:.9rem;margin:8px 0;color:#675a75}.feedback.success{color:var(--green);font-weight:800}.keypad{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.keypad button{background:#f6f3ec;border-color:#eae4d6;font-size:1.15rem;min-width:0;min-height:48px;padding:4px}.keypad button:last-child{font-size:.8rem}.helper{background:#fbfdf9;border-color:#d6e5d6;padding:22px}.helper-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.helper-heading h2{margin:0;font-size:1.15rem}.helper p{font-size:.9rem}.tabs{display:flex;background:#edf0e7;padding:4px;border-radius:14px;margin:16px 0}.tabs button{flex:1;background:transparent;min-height:42px;font-size:.85rem}.tabs [aria-pressed=true]{background:white;box-shadow:0 2px 3px #0000000d}.legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:.75rem;margin:0 0 12px}.legend span:first-child{color:var(--green)}.legend span:last-child{color:var(--berry)}.counters{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;padding:14px;background:white;border:1px solid #dce5d7;border-radius:15px}.counter{aspect-ratio:1;border:2px dashed #b6bba8;border-radius:50%;min-width:0}.counter.known{background:#38875b;border:2px solid #226447}.counter.added{background:#ee91b1;border:2px solid var(--berry)}.count-status{text-align:center;font-weight:800;padding:8px 0;margin:6px 0!important}.helper-actions{display:flex;gap:9px}.helper-actions button{flex:1;margin:0;padding:10px;font-size:.85rem}.add-one{background:#ffce62;border-color:#dbac43}.number-path{display:flex;gap:7px;overflow-x:auto;max-width:100%;padding:15px 5px 10px;scroll-behavior:smooth}.step{flex:0 0 43px;height:51px;border-radius:12px;background:white;border:2px solid #cfdac9;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:1rem}.step small{height:16px;font-size:.65rem}.step.visited{background:#fce6ee;border-color:#d68ba3}.step.start{background:var(--green-light);border-color:var(--green)}.step.current{outline:3px solid var(--berry);outline-offset:1px}.back-link{display:block;margin-top:25px;color:var(--green);font-weight:700}footer{text-align:center;margin:24px 0 0;font-size:.75rem;color:#756b7c}@media(max-width:400px){body{padding:12px 10px 22px}.card{padding:21px 16px}.helper{padding:18px 15px}.game-nav a{font-size:.72rem}.counters{gap:4px;padding:10px}.garden{gap:3px}.helper-actions button{font-size:.78rem}.equation{gap:8px}.keypad{gap:5px}header{padding:24px 0 18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
