@font-face{font-family:Bricolage;src:url("assets/fonts/bricolage.ttf") format("truetype");font-weight:200 800;font-display:swap}
@font-face{font-family:Nunito;src:url("assets/fonts/nunito.ttf") format("truetype");font-weight:200 900;font-display:swap}
:root{--paper:#faf7ed;--ink:#192f3e;--muted:#4e5e62;--rule:#c9c6b7;--blue:#224f99;--display:Bricolage,"Arial Rounded MT Bold",sans-serif;--body:Nunito,system-ui,sans-serif;color:var(--ink);background:var(--paper);font:600 17px/1.48 var(--body);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #1d50a1;outline-offset:4px}
#main:focus,h1:focus,h2:focus{outline:none}
button{touch-action:manipulation}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand{font-family:var(--display);font-weight:780}
h1,h2,h3{text-wrap:balance}
.icon{width:1.2em;height:1.2em;display:inline-block;vertical-align:middle;flex-shrink:0}
.wrap{width:min(1232px,calc(100% - clamp(32px,8.2vw,136px)));margin-inline:auto}
.site-header{border-bottom:1px solid #d9d5c8}
.site-bar{display:flex;align-items:center;gap:clamp(20px,5vw,74px);min-height:84px}
.brand{display:inline-flex;align-items:center;gap:10px;line-height:.94;font-size:23px;letter-spacing:-1.1px;flex-shrink:0}
.brand img{width:54px;height:54px}
.site-bar nav{display:flex;align-items:center;gap:9px}
.site-bar nav a,.grown-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:50px;padding:8px 17px;font-size:15px;font-weight:800}
.site-bar nav a[aria-current],.grown-link[aria-current]{color:#204a8c;background:#e2eaf2}
.site-bar nav a:hover,.grown-link:hover{background:#e9ebdf}
.grown-link{margin-left:auto;border:1.5px solid #adb4aa}
.skip{position:absolute;top:8px;left:10px;transform:translateY(-200%);z-index:10;background:white;padding:12px}
.skip:focus{transform:none}
main{padding-block:30px 46px}
.hero{display:grid;grid-template-columns:43% 57%;position:relative;isolation:isolate;overflow:hidden;border:1.5px solid #969b86;border-radius:18px;background:#f8eac0;min-height:clamp(300px,25.5vw,350px)}
.hero-copy{align-self:center;padding:32px 16px 32px clamp(25px,3.2vw,48px);z-index:1}
.hero h1{font-size:clamp(54px,5.15vw,78px);letter-spacing:-.066em;line-height:.94}
.hero h1 span{color:var(--blue)}
.hero-copy>p{font-size:clamp(16px,1.4vw,20px);line-height:1.35;max-width:350px;margin:16px 0 18px;font-weight:650}
.hero-art{position:relative;align-self:stretch}
.hero-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:50% 53%}
.hero-art::before{position:absolute;z-index:1;inset:0 auto 0 -1px;width:10px;content:"";background:radial-gradient(circle at left center,#f8eac0 0 7px,transparent 7.6px) left top/10px 19px repeat-y}
.map-places{position:absolute;inset:0;display:flex}
/* Map click areas are sized to where each place sits in the painting. */
.map-place{position:relative;flex:1}.map-place.garden{flex:33}.map-place.market{flex:29}.map-place.friends{flex:18}.map-place.pier{flex:20}
.map-place:focus-visible{outline-offset:-4px}
.map-marker{position:absolute;left:var(--pin-x,50%);top:var(--pin-y,58%);height:37px;width:37px;transform:translate(-50%,-50%);display:grid;place-items:center;background:#fffbed;border:2px solid var(--accent);color:var(--accent);border-radius:50%;box-shadow:0 2px 0 #2537294d}
.map-marker::after{content:"";position:absolute;width:8px;height:8px;bottom:-5px;left:calc(50% - 5px);background:#fffbed;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg)}
.map-place.garden{--pin-x:46%;--pin-y:63%}
.map-place.market{--pin-x:58%;--pin-y:54%}
.map-place.friends{--pin-x:55%;--pin-y:31%}
.map-place.pier{--pin-x:30%;--pin-y:56%}
.map-name{position:absolute;z-index:1;opacity:0;pointer-events:none;left:var(--pin-x);top:calc(var(--pin-y) + 22px);transform:translateX(-50%);border-radius:6px;background:var(--ink);color:#fff;padding:3px 8px;font-size:13px;white-space:nowrap}
.map-place:focus-visible .map-name,.map-place:hover .map-name{opacity:1}
@media(hover:none){.map-name{opacity:1}}
.players{margin-top:18px}
.players-title{font-size:15px;font-weight:850;margin-bottom:7px}
.player-list{display:flex;flex-wrap:wrap;gap:7px}
.player{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:6px 13px 6px 9px;border:1.5px solid #8d927f;border-radius:30px;background:#fffdf5;font-size:15px;font-weight:850}
.player-art{font-size:26px;line-height:1}
.player[aria-pressed=true]{background:#ffdf65;border:2px solid var(--ink);box-shadow:0 2px 0 var(--ink)}
.player:hover{border-color:var(--ink)}
.map-place:hover .map-marker,.map-place:focus-visible .map-marker{background:var(--tint)}
.hero-star{position:absolute;left:34%;top:17%;height:36px;width:36px;background:#de7540;clip-path:polygon(50% 0,60% 35%,89% 19%,71% 47%,100% 58%,64% 64%,62% 100%,46% 72%,17% 88%,29% 58%,0 49%,33% 39%)}
.pill,.back-link,.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-weight:850}
.pill{border:1.5px solid var(--ink);border-radius:30px;padding:8px 17px;background:#fffdf5;line-height:1.2}
.pill.primary{color:#fff;background:var(--blue);border-color:var(--blue)}
.pill:hover,.mode:hover,.choice:not(:disabled):not(.tried):hover{box-shadow:0 2px 0 #172d3b}
.pill:active,.choice:active{transform:translateY(1px)}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0 15px}
.section-head h2,.tool-teaser h2{font-size:clamp(29px,2.65vw,40px);letter-spacing:-.055em;line-height:1.12}
.trail{flex:1;max-width:138px;border-top:2px dashed #b6b9a7;position:relative;margin-left:auto;margin-right:7px}
.trail::after{content:"";position:absolute;right:-4px;top:-5px;border:1.8px solid #8b9786;background:var(--paper);width:6px;height:6px;border-radius:50%}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.6vw,22px)}
.garden{--accent:#285740;--tint:#e6efd9;--line:#91ae8a}
.market{--accent:#894019;--tint:#f9e8c7;--line:#c5aa7a}
.pier{--accent:#284f82;--tint:#e2ebf3;--line:#8faac8}
.friends{--accent:#8a3557;--tint:#f7e4ec;--line:#cf9fb4}
.game-card{display:block;background:#fffdf5;border:1.4px solid #a5a89a;border-radius:16px;padding:7px;overflow:hidden;position:relative}
.game-card:hover{border-color:var(--accent);box-shadow:0 3px 0 var(--line)}
.card-image{height:clamp(138px,12.9vw,192px);border-radius:10px 10px 5px 5px;overflow:hidden;position:relative;background:var(--tint)}
.card-image img{width:100%;height:100%;object-fit:cover;display:block;object-position:50% 52%}
.garden .card-image img{object-position:50% 23%}
.market .card-image img{object-position:50% 37%}
.pier .card-image img{object-position:50% 4%}
.friends .card-image img{object-position:50% 62%}
.card-body{padding:14px 13px 10px}
.subject{font-size:12px;line-height:1;font-weight:850;letter-spacing:.065em;text-transform:uppercase;display:inline-flex;align-items:center;gap:7px;color:var(--accent)}
.subject .icon{font-size:15px}
.card-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:5px 0 4px}
.card-row h3{font-size:clamp(25px,2.3vw,35px);line-height:1.07;letter-spacing:-.055em}
.circle-arrow{background:var(--tint);border:1px solid var(--line);width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;color:var(--accent);flex-shrink:0}
.card-desc{font-size:16px;line-height:1.4;color:#425254}
.tool-teaser{display:flex;align-items:center;gap:20px;border-block:1px solid var(--rule);margin-top:27px;padding:18px 4px}
.tool-teaser h2{font-size:24px}
.tool-teaser p{font-size:15px;margin-top:2px;color:var(--muted)}
.tool-teaser .pill{margin-left:auto;flex-shrink:0}
.teaser-book{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:#ece1ef;color:#66487a;transform:rotate(-5deg);font-size:26px}
.back-link{color:#37516a;font-size:15px;justify-content:flex-start;padding:3px 2px}
.back-link:hover,.text-btn:hover{text-decoration:underline}
.game-layout{border:1.5px solid #9ca698;background:#fffdf6;border-radius:20px;overflow:hidden;margin-top:10px}
.game-band{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:var(--tint);padding:15px clamp(18px,3vw,40px);position:relative}
.game-thumb{width:78px;height:68px;border-radius:10px;object-fit:cover;border:3px solid #fffdf3;transform:rotate(-3deg);box-shadow:0 1px 2px #46594255}
.game-band h1{font-size:clamp(26px,3vw,43px);line-height:1.05;letter-spacing:-.055em}
.game-band .subject{margin-bottom:5px}
.modes{display:flex;gap:3px;border-radius:35px;background:#fffdf5;border:1px solid var(--line);padding:3px;margin-left:auto}
.mode{min-height:44px;padding:8px 17px;border:0;border-radius:25px;background:transparent;font-size:15px;font-weight:850}
.mode[aria-pressed=true]{background:var(--accent);color:#fff}
.board{margin:0 auto;max-width:820px;padding:clamp(22px,3vw,38px) clamp(15px,4vw,56px);text-align:center}
.round-label{font-size:14px;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:9px}
.round-dots{display:inline-flex;gap:4px}
.round-dots i{width:9px;height:9px;border:1px solid var(--accent);border-radius:50%}
.round-dots .filled{background:var(--accent)}
.board h2{font-size:clamp(27px,3.2vw,44px);letter-spacing:-.05em;line-height:1.12;margin:14px 0}
.scene{border-block:1px dashed var(--line);background:var(--tint);border-radius:8px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.17em;min-height:92px;padding:15px 10px;margin:16px auto;color:var(--accent);font:750 clamp(31px,4.5vw,55px)/1.15 var(--display);max-width:690px}
.scene.single{font-size:58px}
.scene.sequence{font-size:clamp(22px,3.5vw,41px)}
.choices{display:grid;grid-template-columns:repeat(var(--choices),minmax(0,1fr));max-width:555px;gap:12px;margin:18px auto 12px}
.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:86px;border:1.5px solid var(--line);border-radius:15px;background:#fffef8;padding:10px 6px;font-size:17px;font-weight:850}
.choice-art{font:750 39px/1.15 var(--display);color:var(--accent)}
.choice.correct{border:2px solid #286344;background:#e3efd7;color:#1b4e35}
.choice-slot{display:flex;flex-direction:column;gap:3px;min-width:0}
.choice-hear{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--accent);font-size:14px;font-weight:850}
.choice-hear:hover{background:var(--tint)}
.choice.tried{opacity:.42;border-style:dashed;cursor:default;animation:nudge .36s ease-in-out}
@keyframes nudge{25%{transform:translateX(-5px)}50%{transform:translateX(4px)}75%{transform:translateX(-2px)}}
@media(prefers-reduced-motion:reduce){.choice.tried{animation:none}}
.voice-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:12px 0 6px}
.voice-setting{display:flex;align-items:center;gap:9px;min-height:52px;padding:7px 14px;border:1.5px solid #8d927f;border-radius:14px;background:#fffdf5;font-weight:800;text-align:left}
.voice-state{margin-left:auto;padding:2px 10px;border-radius:20px;background:#ede9dd;color:#4e5248;font-size:14px}
.voice-setting[aria-pressed=true] .voice-state{background:#285740;color:#fff}
.settings-status:not(:empty){margin-top:6px;color:#285740;font-weight:800}
.game-tools{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:17px 0 0}
.text-btn{font-size:15px;background:transparent;border:0;padding:4px 10px}
.feedback{margin:0 auto;max-width:590px}
.feedback p{font-size:17px;padding:9px 14px;border-radius:9px;background:#f5efda;color:#384946}
.feedback p.positive{background:#e7f1df;color:#214e37}
.feedback .pill{margin-top:12px}
.finish .finish-art{width:100%;height:155px;object-fit:cover;border-radius:12px}
.finish p{margin-bottom:6px}
.sr-only{position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}
.voice-status:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:#fffdf5;border:1px solid var(--ink);border-radius:12px;padding:10px 15px;z-index:3;max-width:95vw;width:max-content}
.grown{max-width:830px;margin:auto}
.grown h1{font-size:clamp(42px,6vw,65px);line-height:1;letter-spacing:-.055em;margin:12px 0 20px}
.grown h2{font-size:27px;letter-spacing:-.035em;margin:18px 0 8px}
.grown p,.grown li{max-width:65ch}
.grown ul{padding-left:24px}
.grown li{margin:8px 0}
.grown .note{background:#f6ebca;border-radius:14px;padding:4px 22px 18px;margin:23px 0}
@media(max-width:850px){
 .site-bar{gap:25px}.hero-star{left:36%;top:11%;width:25px;height:25px}
 .card-body{padding:10px 7px 8px}.card-desc{font-size:15px}.circle-arrow{width:27px;height:27px}
}
@media(max-width:680px){
 .wrap{width:calc(100% - 30px)}.site-bar{flex-wrap:wrap;gap:0;min-height:0;padding:9px 0 6px;justify-content:space-between}
 .brand{font-size:20px}.brand img{width:44px;height:44px}.grown-link{font-size:14px;padding:7px 12px}
 .site-bar nav{order:3;flex-basis:100%;margin-top:7px;gap:5px}.site-bar nav a{min-height:44px;font-size:14px;padding:6px 13px}
 main{padding-block:16px 28px}.hero{grid-template-columns:1fr;border-radius:15px}.hero-copy{padding:23px 22px 21px}
 .hero h1{font-size:clamp(43px,8.5vw,58px);line-height:.99}.hero h1 br{display:none}.hero h1 br::after{content:" "}
 .hero-copy>p{font-size:16px;margin:10px 0 12px;max-width:33ch}.hero-star{left:auto;right:8%;top:16%;width:25px;height:25px}
 .players{margin-top:14px}.player-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .player{flex-direction:column;justify-content:center;gap:1px;padding:6px 2px;border-radius:16px;font-size:14px}
 .hero-art{height:clamp(124px,31vw,180px);grid-row:2}.map-name{top:calc(var(--pin-y) + 17px);font-size:12px;padding:2px 7px}.map-place.friends .map-name{transform:translateX(-74%)}.hero-art img{object-position:50% 55%}
 .hero-art::before{inset:-1px 0 auto;width:100%;height:8px;background:radial-gradient(circle at center top,#f8eac0 0 5px,transparent 5.8px) left top/15px 8px repeat-x}
 .cards{grid-template-columns:1fr;gap:12px}.game-card{display:grid;grid-template-columns:35% 65%;padding:6px;border-radius:13px}
 .card-image{height:100%;min-height:113px;border-radius:8px}.card-body{padding:10px 10px 10px 13px}.card-row h3{font-size:26px}
 .card-desc{font-size:14px}.section-head{margin:23px 0 12px}.trail{max-width:65px}
 .teaser-book{display:none}.tool-teaser{flex-wrap:wrap;gap:11px}.tool-teaser .pill{margin-left:0}
 .game-band{flex-wrap:wrap;gap:12px;padding:14px}.game-thumb{width:62px;height:57px}.modes{margin:0 auto 0 0}
 .board{padding:20px 12px}.scene{margin:12px auto}.choices{gap:8px}.choice{font-size:15px}.game-tools{gap:5px}
}
@media(max-width:380px){.hero-star{display:none}.card-row{gap:4px}.card-row h3{font-size:23px}.card-body{padding-left:9px}.circle-arrow{width:22px;height:22px}.tool-teaser{padding:14px 2px}}
@media(forced-colors:active){.mode[aria-pressed=true],.choice.correct,.site-bar [aria-current],.player[aria-pressed=true],.voice-setting[aria-pressed=true]{outline:2px solid Highlight}.round-dots .filled{background:Highlight}}
/* ---------- Curriculum scenes, choices, stamps, and settings ---------- */
@media (max-width: 1000px) and (min-width: 681px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step-name { margin-top: 3px; font-size: 14px; font-weight: 850; color: var(--accent); }
.market-practice { align-items: center; gap: 14px; flex-wrap: wrap; }
.market-practice .step-name { margin: 0; color: #28573d; }

.scene.face span { font-size: 88px; line-height: 1.05; }
.scene.letter span { font: 800 clamp(70px, 10vw, 104px)/1 var(--display); letter-spacing: .02em; color: var(--ink); }
.scene.letters { gap: .35em; }
.scene.letters span { min-width: 1.2em; padding: 2px 8px; border: 2px solid var(--line); border-radius: 10px; background: #fffef8; color: var(--ink); }
.scene.printed span { font: 800 clamp(48px, 7vw, 72px)/1.1 var(--body); letter-spacing: .03em; color: var(--ink); }
.scene.sentence p, .scene.passage p { max-width: 36ch; margin: auto; font: 700 clamp(21px, 2.5vw, 27px)/1.5 var(--body); color: var(--ink); text-align: left; }
.scene.passage p { font-size: clamp(18px, 2vw, 21px); max-width: 52ch; }
.blank { display: inline-block; width: 3.2em; height: .95em; margin: 0 .15em; border-bottom: 3px solid var(--accent); vertical-align: baseline; }
.scene.story { gap: 14px; flex-wrap: nowrap; padding-inline: clamp(12px, 3vw, 26px); }
.scene.story p { margin: 0; text-align: left; font: 700 clamp(18px, 2.1vw, 22px)/1.45 var(--body); color: var(--ink); }
.story-art { flex-shrink: 0; font-size: clamp(42px, 6vw, 58px); }
.scene.frames, .scene.groupline, .scene.baskets, .scene.coins, .scene.tens { gap: 12px; }
.ten-frame { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 6px; border: 2px solid #91613c; border-radius: 8px; background: #ecd6af; }
.frame-cell { display: grid; place-items: center; width: clamp(30px, 4.4vw, 44px); height: clamp(30px, 4.4vw, 44px); border: 1px dashed #947f5c; border-radius: 5px; background: #fffcf1; font-size: clamp(18px, 2.6vw, 27px); line-height: 1; }
.frame-sign { font: 800 34px/1 var(--display); color: var(--accent); }
.scene.groupline span { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.2; letter-spacing: .05em; }
.scene.groupline span.gone { opacity: .28; text-decoration: line-through 3px; filter: grayscale(.8); }
.scene.equation span { font: 800 clamp(40px, 6vw, 60px)/1 var(--display); color: var(--ink); }
.ten-bar { display: grid; grid-template-rows: repeat(10, 9px); gap: 2px; padding: 3px; border-radius: 4px; background: #284f82; }
.ten-bar i, .ones i { display: block; width: 12px; height: 9px; border-radius: 2px; background: #cfe0f4; }
.ones { display: flex; flex-wrap: wrap; align-content: flex-end; gap: 4px; max-width: 60px; }
.ones i { width: 14px; height: 14px; border-radius: 50%; background: #894019; }
.coin { display: grid; place-content: center; text-align: center; border-radius: 50%; border: 2px solid #8f8a76; background: linear-gradient(145deg, #f1eee6, #c7c3b4); color: #2e2c24; }
.coin b { font: 800 16px/1 var(--display); }
.coin small { font-size: 10px; font-weight: 800; }
.coin.c1 { width: 52px; height: 52px; border-color: #8a4d26; background: linear-gradient(145deg, #eab184, #b56c3b); }
.coin.c5 { width: 60px; height: 60px; }
.coin.c10 { width: 48px; height: 48px; }
.coin.c25 { width: 68px; height: 68px; }
.basket-group { max-width: 120px; padding: 6px 8px; border: 2px solid #a57948; border-radius: 8px 8px 22px 22px; background: #f3e2c2; font-size: 22px; line-height: 1.25; letter-spacing: .04em; }
.dot-array { display: grid; grid-template-columns: repeat(var(--columns), 1fr); gap: 5px; }
.dot-array i { width: clamp(12px, 2vw, 18px); height: clamp(12px, 2vw, 18px); border-radius: 50%; background: var(--accent); }
.fraction-shape, .clock-face { width: clamp(120px, 18vw, 160px); height: auto; }
.fraction-shape path, .fraction-shape rect { fill: #fffef8; stroke: var(--ink); stroke-width: 1.6; }
.fraction-shape .shaded { fill: #e8a44c; }
.clock-face circle { fill: #fffef8; stroke: var(--ink); stroke-width: 2.4; }
.clock-face text { font: 800 9px var(--body); fill: var(--ink); }
.clock-face line { stroke: var(--ink); stroke-linecap: round; }
.clock-face .hand-hour { stroke-width: 4.5; }
.clock-face .hand-minute { stroke-width: 2.6; stroke: #b4532e; }
.clock-face .hub { fill: var(--ink); stroke: none; }
.scene.number-row { gap: 10px; }
.scene.number-row span { min-width: 1.6em; padding: 4px 10px; border-radius: 10px; background: #fffef8; border: 1.5px solid var(--line); color: var(--ink); font: 800 clamp(26px, 3.6vw, 38px)/1.2 var(--display); }

.choice .choice-label { line-height: 1.2; }
.text-choice { min-height: 70px; font-size: 19px; }
.choices.stacked { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.choices.stacked .text-choice { min-height: 58px; padding: 10px 16px; font-size: 17px; text-align: left; align-items: flex-start; }
.choices.stacked .choice-slot { flex-direction: row; align-items: center; gap: 6px; }
.choices.stacked .choice { flex: 1; }
.choices.stacked .choice-hear { flex-shrink: 0; padding-inline: 10px; }
.choices.groups .choice-art { font-size: 26px; letter-spacing: .03em; line-height: 1.25; overflow-wrap: anywhere; }
.choices.groups .choice { min-height: 110px; }
.choice.correct { animation: pop .42s ease-out; }
@keyframes pop { 40% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .choice.correct { animation: none; } }

.stamp-earned { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px auto 8px; padding: 8px 16px; width: fit-content; border: 2px dashed var(--accent); border-radius: 14px; background: var(--tint); transform: rotate(-2deg); }
.stamp-earned p { margin: 0; }
.stamp-big { font-size: 40px; animation: stamp-in .5s ease-out; }
@keyframes stamp-in { 0% { transform: scale(1.8) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp-big { animation: none; } }

.passport { max-width: 960px; margin: auto; }
.passport h1 { font-size: clamp(38px, 5vw, 58px); letter-spacing: -.05em; line-height: 1.05; margin: 12px 0 8px; }
.passport-intro { color: var(--muted); margin-bottom: 18px; }
.passport-place { margin: 18px 0; padding: 14px clamp(12px, 2vw, 22px) 18px; border: 1.5px solid var(--line); border-radius: 18px; background: #fffdf6; }
.passport-place h2 { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 24px; letter-spacing: -.03em; margin-bottom: 10px; }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.stamp-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 2px dashed #c9c6b7; border-radius: 14px; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.stamp-slot .stamp-art { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #efece2; font: 800 18px/1 var(--display); }
.stamp-slot.earned { border-style: solid; border-color: var(--accent); background: var(--tint); color: var(--ink); }
.stamp-slot.earned .stamp-art { background: #fffdf5; font-size: 28px; transform: rotate(-8deg); }
.stamp-slot.current { box-shadow: 0 0 0 3px #ffdf65; }
.stamp-here { font-size: 12px; color: var(--accent); }

.levels { display: grid; gap: 10px; margin: 12px 0 8px; }
.level-row { padding: 12px 16px; border: 1.5px solid #c9c6b7; border-radius: 14px; background: #fffdf5; }
.level-row label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 850; }
.level-row select { min-height: 44px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; }
.level-steps { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.grade-chip { display: inline-block; margin-left: 3px; padding: 0 7px; border-radius: 10px; background: #ede9dd; font-size: 12px; }

.play-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px 4px 8px; border: 1.5px solid #c9c6b7; border-radius: 30px; background: #fffdf5; font-size: 15px; font-weight: 850; }
.who-chip span { font-size: 24px; line-height: 1; }
.who-chip.none { padding-left: 14px; color: var(--muted); border-style: dashed; }
.who-chip:hover { border-color: var(--ink); }
.age-pick { margin-top: 14px; }
.age-list { display: flex; flex-wrap: wrap; gap: 6px; }
.age { min-width: 48px; min-height: 48px; border: 1.5px solid #8d927f; border-radius: 50%; background: #fffdf5; font: 800 20px/1 var(--display); }
.age:hover { border-color: var(--ink); background: #ffdf65; }
.almost { font-weight: 800; color: var(--accent); }
.stamps > li { display: flex; }
.stamps .stamp-slot { flex: 1; }
a.stamp-slot:hover { border-color: var(--accent); }
.stamp-slot.visited { border-style: solid; border-color: var(--line); }
.stamp-slot.visited .stamp-art { background: #fffdf5; font-size: 24px; }
.stamp-slot.locked { opacity: .55; }
.settings { margin-top: 28px; padding: 6px 20px 20px; border: 1.5px solid #c9c6b7; border-radius: 16px; background: #fffdf5; }
.settings h3 { font-size: 21px; letter-spacing: -.02em; margin: 18px 0 6px; }
.settings h3:focus { outline: none; }
.hold-button { position: relative; overflow: hidden; min-height: 52px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 30px; background: #fffdf5; font-weight: 850; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-label { position: relative; }
.hold-fill { position: absolute; inset: 0; width: 0; background: #ffdf65; }
.hold-button.holding .hold-fill { width: 100%; transition: width 1.5s linear; }
@media (prefers-reduced-motion: reduce) { .hold-button.holding .hold-fill { transition: none; width: 100%; } }
.confirm { margin: 10px 0; padding: 12px 16px; border: 2px solid #b4532e; border-radius: 12px; background: #fbeee6; }
.confirm p { margin-bottom: 8px; font-weight: 700; }
.pill.danger { color: #fff; background: #a3401f; border-color: #a3401f; }
.backup-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.file-pill { cursor: pointer; }
.file-pill:focus-within { outline: 3px solid #1d50a1; outline-offset: 4px; }
.number-line { display: flex; align-items: flex-start; width: min(100%, 520px); border-top: 4px solid var(--ink); }
.number-line .tick { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.number-line .tick i { width: 3px; height: 14px; background: var(--ink); }
.number-line .tick.end i { height: 22px; }
.number-line .tick b { font: 800 18px/1.4 var(--display); color: var(--ink); }
.number-line .tick.mark i { width: 6px; height: 26px; background: #b4532e; }
.number-line .tick.mark b { color: #b4532e; }
.io-table { border-collapse: collapse; font: 800 24px/1.3 var(--display); color: var(--ink); background: #fffef8; }
.io-table th { padding: 4px 22px; font: 850 14px/1.4 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); border-bottom: 2px solid var(--line); }
.io-table td { padding: 4px 22px; text-align: center; border-bottom: 1px solid #e6e1d0; }
.scene.fraction { gap: 24px; }

@media (max-width: 680px) {
  .scene.story { flex-direction: column; }
  .scene.story p { text-align: center; }
  .scene.face span { font-size: 72px; }
  .choices.groups .choice-art { font-size: 21px; }
  .basket-group { font-size: 18px; max-width: 92px; }
  .frame-cell { width: 26px; height: 26px; font-size: 17px; }
}
[hidden]{display:none!important}
