@import url('./games/set-a.css');
@import url('./games/set-b.css');
@import url('./games/fruit-truck.css');
@import url('./games/garden-choice.css');

.toybox-parent-answers {
  max-width: 68ch;
  margin: 2rem auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  line-height: 1.6;
}
.toybox-parent-answers a { text-decoration: underline; text-underline-offset: .17em; }
#app:has(.game-heading) + .toybox-parent-answers { display: none; }
@import url('./games/bridge-builders.css');
@import url('./games/picnic-helpers.css');
@import url('./games/pattern-parade.css');
@import url('./games/tens-delivery.css');
@import url('./games/bear-balance.css');
@import url('./games/number-trail.css');
@import url('./games/shape-dock.css');
@import url('./games/measure-meadow.css');
@import url('./games/regrouping-delivery.css');
:root{color-scheme:light;--red:#b92f35;--ink:#203e37;--cream:#fff9ec;--paper:#fffdf5;--green:#2b7255;--gold:#efb94c;--line:#d9c8a4;--shadow:#7856371a;font-family:'Trebuchet MS',Verdana,sans-serif;color:var(--ink);background:#f2e7ce;font-size:18px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow-x:hidden;overflow-wrap:break-word}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:4px solid #2670ab;outline-offset:4px}button:hover:not(:disabled),.game-box:hover{filter:brightness(.97)}img{max-width:100%;object-fit:contain}button{touch-action:manipulation}.skip{position:absolute;top:-100px;left:12px;background:white;padding:15px;z-index:99}.skip:focus{top:8px}.loading{padding:5vw}
.masthead{background:var(--red);color:white;padding:20px max(24px,calc((100vw - 1300px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:7px solid #e9bc64}.brand{font-family:Georgia,serif;font-size:29px;font-weight:bold;text-decoration:none;letter-spacing:-.6px}.brand span{display:inline-block}.brand-note{font-size:16px;letter-spacing:.6px}.toybox,.playroom{max-width:1300px;margin:0 auto;padding:34px 24px 48px}.welcome{display:flex;align-items:center;justify-content:space-between;min-height:210px;margin-bottom:14px}.eyebrow{text-transform:uppercase;font-weight:bold;font-size:13px;letter-spacing:1.6px;margin:0 0 12px;color:#855b31}h1,h2,p{margin-top:0}h1{font-family:Georgia,serif;font-size:clamp(36px,5vw,60px);line-height:1.05;margin-bottom:16px;letter-spacing:-1.2px}h2{font-family:Georgia,serif}.intro{font-size:23px;line-height:1.5;margin:0}.welcome-guides{display:flex;align-items:flex-end;gap:10px;min-width:250px}.welcome-zig{width:130px;height:160px}.welcome-zag{width:145px;height:190px}.game-shelf{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:26px 19px;padding-top:18px}.game-box{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:310px;padding:18px 12px 22px;text-decoration:none;border:2px solid #d8bf91;border-bottom:9px solid #bd9258;border-radius:10px;background:var(--cream);box-shadow:0 7px 0 #d6bc8a,0 16px 25px var(--shadow)}.game-box:nth-child(3n+2){background:#f1f6e8}.game-box:nth-child(3n){background:#edf3f5}.box-number{position:absolute;top:13px;left:13px;font-weight:bold;font-size:13px;color:#845c36}.box-art{width:104px;height:105px;margin:8px 0 12px;mix-blend-mode:multiply}.game-box h2{font-size:25px;line-height:1.07;min-height:53px;margin:0 0 10px}.box-skill{font-size:14px;line-height:1.4;min-height:39px}.box-play{margin-top:auto;padding-top:18px;color:var(--red);font-size:18px;font-weight:bold}.box-play span{padding-left:5px}.played-badge{font-size:11px;color:var(--green);padding-top:9px}.parent-note{background:#fff8;margin-top:40px;padding:22px;border-top:2px solid var(--line);line-height:1.6}.parent-note summary{cursor:pointer;font-weight:bold}.parent-note p{margin:16px 0 0}.footer{display:flex;justify-content:space-between;gap:20px;padding:22px max(24px,calc((100vw - 1250px)/2));font-size:13px;border-top:1px solid #c8ae83}.play-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-bottom:25px}.play-controls a{margin-right:auto}.shell-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:52px;border:2px solid var(--line);border-radius:9px;padding:12px 19px;background:var(--paper);color:var(--ink);text-decoration:none;font-weight:bold}.shell-button.primary{color:white;background:var(--red);border-color:var(--red)}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.game-heading h1{font-size:clamp(36px,4.4vw,53px)}.range-label{font-size:13px;font-weight:bold;display:grid;gap:7px;min-width:190px}.range-label select{min-height:52px;padding:10px 12px;background:var(--paper);color:var(--ink);border:2px solid var(--line);border-radius:8px;width:100%;font-size:16px}.session-strip{display:flex;gap:20px;align-items:center;border-bottom:2px solid #d6c6a3;padding:8px 0 16px}.session-strip>.shell-button{margin-left:auto;font-size:15px;min-height:44px;padding:7px 14px}.round-spots{display:flex;gap:8px}.round-spots span{height:14px;width:14px;border:2px solid #8e774e;border-radius:50%;background:transparent}.round-spots span.filled{background:var(--green);border-color:var(--green)}.instruction-band{display:flex;gap:17px;align-items:center;min-height:102px;padding:12px 0}.instruction-guide{width:68px;height:78px;flex-shrink:0}.instruction-band p{font-size:clamp(22px,2.5vw,30px);font-weight:bold;line-height:1.3;margin:0}.play-table{background:var(--paper);border:2px solid #dbc69f;border-bottom:8px solid #ba925d;border-radius:16px;padding:26px;min-height:365px;box-shadow:0 14px 24px #765a3820}.scene{min-width:0;max-width:100%;width:100%;font-size:22px}.scene p{line-height:1.4}.tray{border:2px dashed #c4ae83;border-radius:14px;padding:18px;background:#f5eedc;min-height:90px}.paper-card{border:2px solid #d5c3a1;border-radius:9px;background:#fff9e9;padding:12px;box-shadow:0 4px 0 #ddc99f}.token{min-width:58px;min-height:58px;border:2px solid #d1ba91;border-radius:9px;background:#fff9eb;display:inline-flex;align-items:center;justify-content:center;position:relative;padding:4px;vertical-align:middle;color:var(--ink);font-weight:bold;flex-shrink:0}.token.selected,.token[aria-pressed="true"]{outline:4px solid var(--green);outline-offset:1px}.token .object-art{width:58px;height:53px;mix-blend-mode:multiply}.object-art{width:75px;height:66px;object-fit:contain;mix-blend-mode:multiply}.big-number{font-size:clamp(38px,5vw,65px);line-height:1;font-weight:bold;display:inline-block;font-variant-numeric:tabular-nums}.equation{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-size:32px;font-weight:bold;margin:16px 0}.choice-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;margin-top:20px}.object-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:8px;align-items:center}.action{min-height:54px;min-width:58px;background:var(--green);color:white;border:2px solid var(--green);border-radius:10px;padding:12px 18px;font-size:21px;font-weight:bold}.action:disabled{opacity:.55}.small-action{min-width:52px;min-height:52px;border:2px solid #b29b74;border-radius:8px;background:#fff9eb;color:var(--ink);font-size:20px;font-weight:bold;padding:8px 13px}.lane{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.marker{min-height:46px;min-width:40px;text-align:center;border:2px solid #d4bd91;padding:8px;background:#fff9e9;font-weight:bold}.character{width:95px;height:108px;object-fit:contain}.feedback{min-height:65px;display:flex;align-items:center;font-size:19px;line-height:1.4;padding:17px 4px;color:#56675d}.feedback.wrong{color:#8c4e1d;font-weight:bold}.feedback.win{color:var(--green);font-weight:bold}.win-ribbon{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:#e5efd9;padding:18px;border:2px solid #a9c299;border-radius:13px}.win-ribbon h2{font-size:26px;margin-bottom:7px}.win-ribbon p{margin:0;line-height:1.4}.win-guide{width:65px;height:78px}.win-ribbon .primary{margin-left:auto}.demo-backdrop{position:fixed;inset:0;z-index:60;background:#122b26ad;display:flex;align-items:center;justify-content:center;padding:20px;overflow:hidden}.demo-dialog{width:min(1150px,100%);max-height:92dvh;overflow-y:auto;overflow-x:hidden;border:3px solid #e0bd70;border-radius:16px;background:var(--cream);padding:24px;box-shadow:0 25px 70px #10282280}.demo-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.demo-heading h2{font-size:32px;margin-bottom:12px}.demo-copy{font-size:18px;line-height:1.4}.demo-table{background:var(--paper);border:2px solid var(--line);border-radius:12px;padding:18px;pointer-events:none}.demo-target{outline:5px solid #d89417!important;outline-offset:3px;box-shadow:0 0 0 9px #f7cf6b80!important}.demo-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;font-weight:bold}.demo-table button[aria-disabled]{opacity:1}.scene button:disabled{filter:saturate(.8)}
@media(max-width:1000px){.game-shelf{grid-template-columns:repeat(3,minmax(0,1fr))}.brand-note{display:none}.game-heading{align-items:flex-start}.play-table{padding:22px}.welcome{min-height:180px}}
@media(max-width:620px){:root{font-size:16px}.masthead{padding:17px 18px}.brand{font-size:23px}.toybox,.playroom{padding:24px 15px 32px}.welcome{min-height:150px;align-items:center}.welcome h1{font-size:38px}.intro{font-size:18px}.welcome-guides{min-width:105px;gap:0}.welcome-zig{width:55px;height:86px}.welcome-zag{width:63px;height:110px}.eyebrow{font-size:11px;line-height:1.5}.game-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.game-box{padding:17px 9px;min-height:270px}.box-art{height:88px;width:90px}.game-box h2{font-size:22px;min-height:48px}.box-skill{font-size:12px}.box-play{font-size:16px}.play-controls{gap:7px;margin-bottom:23px}.play-controls .shell-button{font-size:14px;padding:10px;flex:1;white-space:nowrap}.game-heading{display:block}.game-heading h1{font-size:36px}.range-label{max-width:none;grid-template-columns:auto 1fr;align-items:center;gap:10px;margin-bottom:18px}.range-label select{font-size:14px;min-width:0}.session-strip{gap:12px;font-size:14px}.round-spots{gap:5px}.round-spots span{height:11px;width:11px}.session-strip>.shell-button{font-size:12px;min-height:40px;padding:6px}.instruction-band{gap:10px;min-height:100px}.instruction-guide{width:50px;height:64px}.instruction-band p{font-size:23px}.play-table{padding:16px 12px;border-radius:12px;min-height:330px}.scene{font-size:19px}.scene p{font-size:17px}.big-number{font-size:42px}.equation{gap:7px;font-size:27px}.tray{padding:12px}.object-art{width:58px;height:53px}.token{min-height:54px;min-width:54px}.token .object-art{width:45px;height:44px}.object-grid{grid-template-columns:repeat(auto-fit,minmax(49px,1fr));gap:5px}.action{font-size:18px;padding:12px 14px}.character{width:70px;height:80px}.choice-row{gap:9px}.feedback{font-size:17px}.win-ribbon{padding:13px;gap:12px}.win-guide{width:46px;height:62px}.win-ribbon h2{font-size:22px}.win-ribbon p{font-size:15px}.win-ribbon .primary{margin-left:0}.win-ribbon .shell-button{flex:1}.footer{padding:20px 16px;font-size:11px;gap:10px}.demo-backdrop{padding:9px}.demo-dialog{padding:15px;max-height:96dvh}.demo-heading{align-items:flex-start}.demo-heading h2{font-size:26px}.demo-heading .shell-button{font-size:13px;padding:9px;min-width:95px}.demo-copy{font-size:15px}.demo-table{padding:10px}.demo-bottom{font-size:14px;gap:8px}.demo-bottom .shell-button{font-size:15px;padding:10px}.parent-note{font-size:15px}}
/* Introduce the two guides by name without putting a gate before the games. */
.welcome{gap:28px}.welcome-copy{flex:1;min-width:0}.welcome-guides{align-self:center;align-items:flex-end;justify-content:center;gap:22px;min-width:310px}.guide-introduction{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;min-width:0;text-align:center}.guide-introduction img{display:block}.guide-introduction figcaption{font-size:18px;line-height:1.25}.guide-introduction strong{display:block;font-family:Georgia,serif;font-size:28px}.guide-introduction span{display:block;margin-top:3px;color:#56675d}
@media(max-width:800px){.welcome{flex-direction:column;align-items:stretch;gap:16px}.welcome-guides{min-width:0;width:100%;gap:18px}.welcome .welcome-copy h1{font-size:clamp(34px,6vw,48px)}.guide-introduction{width:145px}.welcome-zig{width:100px;height:120px}.welcome-zag{width:110px;height:140px}}
@media(max-width:360px){.welcome-guides{gap:12px}.guide-introduction{flex:1;width:auto}.guide-introduction figcaption{font-size:17px}.guide-introduction strong{font-size:25px}}
/* Secondary navigation needs the same generous finger targets as game actions. */
.session-strip>.shell-button{min-height:52px;min-width:96px;padding:10px 14px}
.footer a{display:inline-flex;align-items:center;min-height:52px;padding:8px 0}
@media(max-width:360px){.session-strip{flex-wrap:wrap}.session-strip>.shell-button{margin-left:auto}}
/* Ten-level progress uses the existing paper-and-ink visual language. */
.level-badge{font-size:14px;font-weight:bold;color:var(--green);padding-top:10px}
.range-label{min-width:0;max-width:360px}.range-label select{max-width:100%}
.game-heading>div{min-width:0}.game-heading>.range-label{flex:0 1 360px}
.save-notice{padding:12px;background:#fff0ce;border:2px solid #b98237;border-radius:8px;font-size:16px;line-height:1.4}
[data-game="measure-meadow"] .measure-unit{flex-basis:var(--measure-unit-width,12.5%)}
[data-game="pattern-parade"] .parade-reading-note{display:block}
@media(max-width:620px){.range-label{max-width:none;grid-template-columns:1fr}.game-heading>.range-label{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
