:root{color-scheme:light;--paper:#fffef8;--ground:#f6f5ed;--ink:#193b32;--muted:#4e655c;--green:#246450;--line:#d7e2d8;--mint:#e5efe3;--sand:#faeed9;--sky:#e5eef2;--rose:#f9e8df;--focus:#9a4f26;font:16px/1.5 'Segoe UI',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink)}[hidden]{display:none!important}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a.button{min-height:44px;border:1px solid var(--line);padding:10px 16px;border-radius:12px;background:var(--paper);font-weight:600;cursor:pointer;text-decoration:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,a.button:hover{border-color:var(--green);background:#f1f6ed}button:disabled{opacity:.64;cursor:default}button.primary,a.primary{background:var(--green);color:#fff;border-color:var(--green)}button.primary:hover,a.primary:hover{background:#184e3d}button.quiet{border-color:transparent;background:transparent}button.quiet:hover{background:var(--mint)}button.danger{color:#8b352d}button.large{min-height:54px;padding:12px 21px}button[aria-pressed=true].pill{background:var(--mint);border-color:#8ba899}button[data-selected=true]{outline:3px solid var(--green);outline-offset:-4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,5vw,54px);font-weight:740;letter-spacing:-.045em;line-height:1.06}h2{font-size:clamp(21px,3vw,30px);letter-spacing:-.025em;line-height:1.2}h3{font-size:18px;letter-spacing:-.01em;line-height:1.3}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{font-size:12px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;color:var(--muted)}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link:focus{position:absolute;z-index:5;top:8px;left:8px;background:var(--paper);padding:12px;color:var(--ink)}.shell{max-width:1160px;margin:auto;padding:32px 28px 44px}.shell-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner{max-width:1160px;display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:auto;padding:13px 28px}.brand{display:flex;gap:11px;align-items:center;font-size:19px;font-weight:730;line-height:1.1}.brand-icon{width:53px;height:44px;background:var(--mint);border-radius:13px;display:grid;place-items:center}.brand-icon svg{width:45px;height:36px}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:4px}.actions,.tools,.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.split{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.stack{display:grid;gap:14px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:19px}.panel{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:20px;min-width:0}.panel>h2{margin-bottom:7px}.panel>p+p{margin-top:10px}.loading{padding:36px;text-align:center;color:var(--muted)}.hero{background:#eef2e5;border:1px solid var(--line);border-radius:26px;display:grid;grid-template-columns:1fr 1fr;align-items:center;overflow:hidden;gap:10px;padding:24px}.hero-copy{padding:10px 0 10px 12px}.hero h1{margin:8px 0 13px}.hero p{max-width:44ch}.hero .town-art{width:100%;height:auto;display:block}.routine{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:18px 0 0}.routine span{background:var(--paper);padding:6px 10px;border-radius:8px;font-size:13px;font-weight:650}.section-lead{margin:24px 0 12px;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.section-lead h2{font-size:23px}.game-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.game-card{display:grid;grid-template-rows:auto auto auto;gap:7px;width:100%;text-align:left;justify-content:stretch;align-items:start;padding:14px;border-radius:18px;border-color:var(--line);font-weight:400}.game-card strong{font-size:22px;letter-spacing:-.02em}.card-art{display:flex;align-items:center;justify-content:center;min-height:104px;border-radius:12px;background:var(--mint);overflow:hidden}.card-art.sand{background:var(--sand)}.card-art.sky{background:var(--sky)}.card-art .picture{width:min(54%,138px);height:91px;flex-shrink:0}.card-art .picture.secondary{width:37%;margin-left:-22px}.play-footer{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.game-shell{max-width:930px;margin:auto}.game-top{margin-bottom:15px}.dots{display:flex;gap:6px;align-items:center}.dots span{border:1px solid #90a99b;border-radius:50%;width:12px;height:12px}.dots .played{background:var(--green);border-color:var(--green)}.dots .current{background:#ddaa68;border-color:#a46d33}.game-stage{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:20px;text-align:center}.game-stage h1{font-size:clamp(28px,4vw,41px);margin:4px 0 8px}.hint-row{min-height:25px;margin-top:8px}.game-tools{margin:13px 0;justify-content:center}.feedback{min-height:31px;font-size:19px;font-weight:650;margin:8px 0;color:var(--green)}.carpet{border-radius:18px;background:#f2f5eb;padding:16px;margin-top:15px}.fleet,.bays,.pick-row,.objects,.targets{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.bays{margin-top:11px}.piece,.bay,.choice{width:clamp(91px,15vw,138px);min-height:83px;display:grid;justify-items:center;align-content:center;gap:3px;padding:7px;background:var(--paper);font-weight:650;line-height:1.2}.picture{display:block;width:112px;max-width:100%;height:70px;pointer-events:none}.piece svg,.bay svg,.choice svg{height:56px}.piece small,.bay small,.choice small{font-size:13px}.piece[draggable=true],.choice[draggable=true]{cursor:grab}.piece[draggable=true]:active,.choice[draggable=true]:active{cursor:grabbing}.bay{border:2px dashed #779786;background:#e7eee1}.bay.filled{border-style:solid;background:#dfeadc}.over{outline:3px solid var(--green);outline-offset:-3px;background:#d6e9d9!important}.parking-done{color:var(--green);min-height:54px;display:grid;place-items:center;font-size:26px}.loads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:490px;margin:auto}.load{display:grid;width:100%;justify-items:center;gap:4px;padding:11px;font-weight:650}.load[draggable=true]{cursor:grab}.cargo{display:grid;grid-template-columns:repeat(3,28px);grid-auto-rows:31px;gap:1px;min-height:65px;width:86px;justify-items:center}.cargo svg{width:29px;height:31px}.delivery-stop{margin:12px auto 0;max-width:250px;min-height:58px;display:grid;place-items:center;border:2px dashed #769886;border-radius:14px;background:#e6eee0;font-weight:650}.scene{margin:4px auto 12px;max-width:290px;height:152px;border-radius:17px;background:#e1eddf;position:relative;display:grid;place-items:center;overflow:hidden}.scene .bridge{width:132px;height:70px;border:15px solid #a87956;border-bottom:0;border-radius:70px 70px 0 0;position:absolute;bottom:20px;left:calc(50% - 66px)}.scene .bear{position:absolute;width:100px;height:66px;z-index:1}.scene .bear.under{bottom:11px}.scene .bear.on{bottom:75px}.scene .bear.in{bottom:56px}.scene .truck{position:absolute;width:166px;height:100px;bottom:6px;z-index:2}.scene .what{width:160px;height:100px}.pick-row button{width:auto;min-width:95px;max-width:170px}.targets{margin-top:11px}.targets button{min-height:63px;min-width:128px;border-style:dashed}.pick-row .choice{min-height:65px}.calm,.finish{max-width:600px;margin:38px auto;text-align:center;display:grid;justify-items:center;gap:16px;padding:35px 23px}.calm svg,.finish svg{width:166px;height:104px}.parent-title{margin-bottom:21px}.parent-title h1{font-size:clamp(31px,4vw,44px);margin:5px 0 7px}.board .panel{align-self:start}.board h2{font-size:25px}.tag{display:inline-flex;border-radius:7px;background:var(--mint);padding:3px 7px;font-size:12px;font-weight:650;color:var(--ink)}.tag.sand{background:var(--sand)}.filter{margin-top:12px}.record{padding:13px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.record:last-child{border-bottom:0}.record h3{margin:4px 0}.record p{white-space:pre-wrap}.record .actions{margin-top:7px}.record .actions button{min-height:38px;padding:6px 10px;font-size:14px}.record .meta{display:flex;flex-wrap:wrap;gap:5px 11px}.record strong.score{font-size:20px}.trend{display:grid;gap:12px;margin:13px 0}.trend progress{width:100%;height:12px;accent-color:var(--green);display:block;margin-top:6px}.empty{padding:18px 0;color:var(--muted)}.all-goals{margin-top:18px}.all-goals details,.form-extra{border-top:1px solid var(--line);padding:11px 0}.all-goals details:first-of-type{margin-top:13px}.all-goals summary,.form-extra summary{cursor:pointer;font-weight:650;padding:4px}.benchmarks{display:grid;gap:8px;margin:10px 0;padding:11px 13px;border-radius:10px;background:#f3f6ee}.benchmarks p{font-size:14px}.board-nav{margin-bottom:15px}.form-page{max-width:850px;margin:auto}.form-page h1{margin:7px 0 9px;font-size:clamp(27px,4vw,41px)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:5px;font-weight:620;font-size:14px;align-content:start}.field small{font-weight:400}.field input:not([type=checkbox]),.field select,.field textarea,.select{width:100%;min-height:46px;padding:9px 10px;border:1px solid #aebfb3;border-radius:9px;background:var(--paper)}.field textarea{min-height:90px;resize:vertical}.full{grid-column:1/-1}.check{display:flex;gap:9px;align-items:center;font-weight:600;font-size:14px;min-height:44px}.check input{width:19px;height:19px;accent-color:var(--green)}.form-extra .field-grid{margin-top:10px}.status-line{color:var(--green);font-weight:650;min-height:24px}.error{color:#8b352d;font-size:14px;font-weight:650}.auth{max-width:450px;margin:34px auto;padding:25px}.auth h1{font-size:34px;margin:7px 0 9px}.auth-art{height:90px;width:144px;justify-self:center}.auth form{margin-top:18px}.auth .actions{margin-top:3px}.auth .submit{flex:1}.auth .field{margin-bottom:2px}.auth .check{min-height:36px}.details-settings{max-width:650px;margin:auto}.details-settings h1{font-size:35px;margin-bottom:10px}.play-ideas{display:grid;grid-template-columns:1fr 1fr;gap:14px}.idea-card{display:grid;gap:8px}.idea-card .picture{width:87px;height:56px}.light-box{padding:11px 14px;border-radius:11px;background:var(--sand);color:#593d27}.confirm-box{margin-top:13px;padding:11px;background:var(--rose);border-radius:10px}.scroll-safe{overflow-wrap:anywhere}
@media(max-width:720px){.shell{padding:17px 15px 31px}.header-inner{padding:11px 15px}.hero{grid-template-columns:1fr;padding:16px}.hero-copy{padding:3px}.hero .town-art{max-width:390px;justify-self:center}.game-cards{grid-template-columns:1fr}.game-card{grid-template-columns:100px 1fr;grid-template-rows:auto auto;align-items:end;gap:4px 12px}.game-card .card-art{grid-row:1/3;min-height:74px}.game-card .picture{height:62px;width:75%;margin:0}.game-card .picture.secondary{display:none}.game-card strong{font-size:19px}.game-card .muted{align-self:start}.grid-two,.play-ideas{grid-template-columns:1fr}.game-stage{padding:15px 11px}.carpet{padding:12px 8px}.panel{padding:17px}.game-stage .feedback{min-height:25px}.bays,.fleet{gap:6px}.piece,.bay{width:80px;min-height:75px}.choice small{font-size:12px}.field-grid{gap:11px}.field select{min-width:0}.brand{font-size:17px}.game-top .tools button{padding:7px 10px}}@media(max-width:380px){.field-grid{grid-template-columns:1fr}.header-inner>.actions{width:100%}.loads{gap:6px}.load{padding:8px 4px}.game-card{grid-template-columns:76px 1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.targets .place-target{display:grid;justify-items:center;gap:2px;padding:5px 10px}.place-target .place-art,.choice .place-art{width:72px;height:42px}.trial-details{margin-top:6px;color:var(--muted);font-size:14px}.trial-details summary{cursor:pointer;min-height:26px}.trial-details ol{margin:3px 0 0;padding-left:20px}
.town-tour{margin-top:14px;padding:13px 16px;background:var(--mint)}

.game-stage{position:relative;isolation:isolate;overflow:hidden}
.round-stars{display:flex;align-items:center;gap:3px;color:#746655;font-size:27px;line-height:1.2}
.round-stars .earned{color:#9c570e;text-shadow:0 1px #fff5cc}
.finish .round-stars{font-size:38px;gap:7px}
[data-piece], [data-drop]{transition:transform 160ms ease, background-color 160ms ease, opacity 160ms ease}
.dragging{transform:scale(.95);opacity:.55}
.over{transform:scale(1.04)}
.landed{animation:settle 320ms ease-out both}
@keyframes settle{from{transform:translateY(-11px) scale(.92);opacity:.7}65%{transform:translateY(2px) scale(1.035)}to{transform:translateY(0) scale(1);opacity:1}}
.confetti{position:absolute;inset:0;z-index:2;pointer-events:none}
.confetti i{position:absolute;top:11px;left:var(--spot,8%);width:8px;height:13px;border-radius:2px;background:var(--confetti-color,#d98532);animation:confetti-fall 850ms var(--delay,0ms) ease-out both}
.confetti i:nth-child(3n+2){--confetti-color:#377f67;--delay:65ms}
.confetti i:nth-child(3n+3){--confetti-color:#b76583;--delay:135ms}
.confetti i:nth-child(2){--spot:15%}.confetti i:nth-child(3){--spot:21%}.confetti i:nth-child(4){--spot:27%}.confetti i:nth-child(5){--spot:33%}.confetti i:nth-child(6){--spot:38%}
.confetti i:nth-child(7){--spot:62%}.confetti i:nth-child(8){--spot:67%}.confetti i:nth-child(9){--spot:73%}.confetti i:nth-child(10){--spot:79%}.confetti i:nth-child(11){--spot:85%}.confetti i:nth-child(12){--spot:92%}
@keyframes confetti-fall{0%{opacity:0;transform:translateY(-15px) rotate(-30deg)}20%{opacity:.9}100%{opacity:0;transform:translateY(155px) rotate(170deg)}}
.number-objects{display:grid;justify-items:center;gap:9px;margin:0 auto 15px;padding:12px 6px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.number-row{display:flex;justify-content:center;gap:clamp(4px,1.5vw,13px);width:100%}
.count-object{display:grid;place-items:center;width:min(14%,58px);aspect-ratio:1}
.count-object .picture{width:100%;height:100%}
.number-objects .count-object{position:relative}
.count-guide{position:absolute;right:0;bottom:0;display:grid;place-items:center;min-width:18px;height:18px;padding:0 2px;border-radius:10px;background:var(--green);color:white;font-size:11px;font-weight:750;line-height:1}
.number-frames{gap:6px}
.number-frames .number-row{justify-content:flex-start;gap:0;width:min(100%,310px);padding:3px;background:#edf2e9;border:1px solid #d6e2d8;border-radius:9px}
.number-frames .count-object{width:20%;height:clamp(29px,8vw,49px);padding:2px 4px;aspect-ratio:auto}
.fill-train{display:flex;align-items:end;gap:4px;max-width:545px;margin:4px auto 20px;border-bottom:4px solid #74887d;border-radius:10px}
.fill-train .fill-engine{width:clamp(68px,18vw,144px);height:auto;flex:none;transform:scaleX(-1)}
.fill-wagon{display:grid;align-content:end;justify-items:center;gap:4px;width:100%;min-width:0;min-height:82px;margin:0 6px 8px 0;padding:7px 4px;background:#fae5af;border:2px dashed #967043;border-bottom:8px solid #aa7651;border-radius:11px}
.fill-wagon .number-row{justify-content:flex-start;gap:0;width:min(100%,282px)}
.fill-wagon .count-object{width:20%;height:clamp(25px,7vw,40px);aspect-ratio:auto;padding:1px}
.fill-empty{align-self:center;margin:auto;color:#6e512d;font-weight:650}
.fill-controls{justify-content:center}
.fill-controls .fill-supply{min-height:58px;padding:7px 12px}
.fill-supply .picture{width:38px;height:38px}
.fill-supply[data-fill-source]:enabled{cursor:grab;touch-action:none;user-select:none}
.fill-drag-preview{position:fixed;z-index:10;top:0;left:0;width:46px;height:46px;pointer-events:none;filter:drop-shadow(0 3px 4px #324c4055)}
.fill-drag-preview .picture{width:100%;height:100%}
.fill-loading .number-row:last-child .count-object:last-child{animation:settle 320ms ease-out}
.fill-sent{animation:fill-depart 620ms ease-out both}
@keyframes fill-depart{from{transform:translateX(0)}to{transform:translateX(-12px)}}
html[data-quiet-motion] :is(.fill-sent,.fill-loading .number-row:last-child .count-object:last-child){animation:none}
.practice-review{margin-bottom:18px}
.practice-review .review-window{min-width:135px}
.review-window select{min-height:44px;padding:6px 9px;border:1px solid #aebfb3;border-radius:9px;background:var(--paper)}
.review-scroll{overflow:auto;margin:12px 0}
.review-scroll:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.review-table{width:100%;min-width:690px;border-collapse:collapse;font-size:14px;text-align:left}
.review-table th,.review-table td{padding:8px 10px;border-bottom:1px solid var(--line)}
.review-table thead{background:var(--mint)}
.practice-review p+p{margin-top:6px}
.loads .load{align-content:start;min-width:0;padding:8px}
.load .load-truck{height:clamp(45px,11vw,76px)}
.delivery-items{display:grid;align-content:start;gap:5px;width:100%;min-height:clamp(46px,10vw,86px);padding:5px 2px;border-radius:10px;background:#f0f4eb}
.delivery-items .number-row{gap:clamp(2px,1vw,7px)}
.delivery-items .count-object{width:min(17%,38px)}
.delivery-stop:has(.sr-only){color:var(--green);font-size:24px}
.sound-track,.sound-choices,.rhyme-choices,.blend-result{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}
.sound-track{padding:12px 6px 20px;background:#dbe8ee;border-radius:13px;border-bottom:4px solid #8da9ac}
.sound-car,.sound-choice{min-width:clamp(48px,13vw,76px);min-height:58px;font-size:clamp(23px,5vw,36px);font-weight:750}
.sound-track .sound-car{position:relative;display:grid;place-items:center;padding:4px 8px;border-radius:10px;background:#f9e6ab;border:2px solid #a17949}
.sound-track button.sound-car:active{background:#ffda7d}
.sound-car::after{content:"";position:absolute;inset:auto 0 -9px;height:11px;pointer-events:none;background:radial-gradient(circle at 24% 50%,#34515b 0 5px,transparent 5.5px),radial-gradient(circle at 76% 50%,#34515b 0 5px,transparent 5.5px)}
.sound-track .sound-gap{border-style:dashed;background:#f4f8fa;color:#4e655c}
.sound-track .silent-car{background:#edf1ea;border-color:#a5b2a4}
.sound-choices,.rhyme-choices,.blend-result{margin:17px auto 4px}
.sound-choice[draggable=true]{cursor:grab}
.blend-result strong{font-size:clamp(29px,7vw,42px);color:var(--green)}
.rhyme-target{display:grid;place-items:center;margin:auto;width:100px;min-height:88px;border-radius:13px;background:#dbe8ee}
.rhyme-art{display:grid;place-items:center;font-size:clamp(38px,10vw,55px);line-height:1.3}
button.rhyme-art{display:grid;width:clamp(82px,23vw,116px);min-height:83px}
.rhyme-choice{display:grid;justify-items:center;gap:4px}
.phonics-muted{font-weight:650}
.rescue-stage{position:relative;width:min(100%,430px);margin:0 auto 15px}
.rescue-scene{display:block;width:100%;height:auto;border-radius:13px}
.rescue-stage button.rescue-replay{position:absolute;right:7px;bottom:7px;width:44px;padding:3px;font-size:24px}
.rescue-moving .rescue-animal{animation:rescue-hop 620ms ease-out}
.rescue-moving .rescue-driving{animation:rescue-roll 680ms ease-out}
.rescue-moving .rescue-driving .rescue-animal{animation:none}
@keyframes rescue-hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px)}}
@keyframes rescue-roll{from{transform:translateX(-10px)}to{transform:translateX(0)}}
html[data-quiet-motion] .rescue-moving :is(.rescue-animal,.rescue-driving){animation:none}
html[data-quiet-motion] .rescue-replay{display:none}
.rescue-targets,.pick-row:has(.rescue-choice){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:580px;margin-inline:auto}
.targets button.rescue-choice,.pick-row button.rescue-choice{display:grid;justify-items:center;align-content:start;gap:5px;width:100%;min-width:0;max-width:none;padding:5px;line-height:1.2}
.rescue-choice small{font-size:clamp(11px,2vw,14px)}
.pattern-road{margin:0 auto 16px}
.pick-row:has(.number-choice),.pick-row:has(.picture-choice){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:470px;margin-inline:auto}
.pick-row .number-choice,.pick-row .picture-choice{width:100%;min-width:0}
.pick-row.pattern-choices{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);justify-items:center}
.choice.number-choice{font-size:29px}
.trial-prompt{display:flex;align-items:center;justify-content:center;gap:10px;width:fit-content;max-width:100%;margin:10px auto 18px;padding:10px clamp(12px,4vw,30px);background:var(--sky);border-radius:14px}
.trial-prompt h1{margin:0}
.prompt-replay{flex:none;width:44px;padding:6px}
.answer-tray .picture-choice{padding:5px}
.picture-choice .picture{height:clamp(46px,9vw,78px)}
button.preference-switch{gap:7px;padding:7px 10px}
.switch-track{display:block;position:relative;width:34px;height:20px;border:1px solid #5c776c;border-radius:20px;background:#e2e9e0}
.switch-track::after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#48645a}
.preference-switch[aria-checked="true"] .switch-track{background:#246450;border-color:#246450}
.preference-switch[aria-checked="true"] .switch-track::after{left:17px;background:#fff}
.pattern-road{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);max-width:560px;background:#dae3e0;border-radius:13px;padding:8px;gap:4px}
.road-tile{display:grid;place-items:center;aspect-ratio:1.3;min-width:0;border-radius:6px;background:#edf3ef;font-size:23px;font-weight:700}
.road-tile .picture{height:auto;max-height:52px;width:100%}
.road-gap{border:2px dashed #709084}
.depot-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:460px}
.depot-levels button{text-align:left;justify-content:flex-start}
.depot{display:grid;gap:14px}
.depot-reference{display:flex;justify-content:center;gap:8px;padding:4px 0 14px;border-bottom:2px solid #ced9ce}
.depot-card,.depot-choice{display:grid;place-items:center;min-width:0;border-radius:15px}
.depot-card{width:min(41%,156px);border:2px solid #93aec4;background:#e3f0fb}
.depot-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(6px,1.6vw,14px);margin:auto;width:min(100%,380px)}
.depot-choices[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,520px)}
.depot-choices[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,665px)}
button.depot-choice{padding:4px;min-height:clamp(65px,13vw,124px)}
.depot :is(.depot-card,.depot-choice) .picture{width:100%;height:clamp(56px,12vw,108px)}
.depot-choice[data-selected="true"]{background:#e0eee0;opacity:1}
.first-then{display:flex;justify-content:center;align-items:center;gap:clamp(8px,2vw,20px);margin:0 auto 14px;padding:8px 10px;border-radius:16px;background:#edf4eb;color:var(--ink)}
.first-then>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px}
.first-then>div>span:first-child{font-size:.875rem;font-weight:650;color:var(--muted)}
.first-then svg{width:39px;height:28px}
.round-checks{display:inline-flex;gap:4px}
.round-checks b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:#56695e;background:#fff;font-size:.95rem;line-height:1}
.round-checks b.checked{color:#fff;background:var(--green)}
.answer-reaction{display:flex;align-items:center;justify-content:center;gap:9px}
.answer-frog{display:block;flex:none;width:72px;height:56px}
.answer-frog.happy{animation:frog-hop 480ms ease-out}
@keyframes frog-hop{0%,100%{transform:translateY(0)}42%{transform:translateY(-8px)}}
html[data-quiet-motion] .answer-frog{animation:none}
.focus-reset{width:min(100%,280px);text-align:left;margin:0 auto}
.snake-next{margin-block:8px}
.play-routine{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:center;margin-bottom:14px}
.play-routine .first-then{margin:0}
.play-timer{font-size:15px;font-weight:650;white-space:nowrap;color:var(--green);font-variant-numeric:tabular-nums}
@media(max-width:420px){.depot-levels{grid-template-columns:1fr}.depot-levels button{justify-content:center}}
html[data-quiet-motion] .confetti{display:none}
html[data-quiet-motion] .landed{animation:none}
html[data-quiet-motion] [data-piece],html[data-quiet-motion] [data-drop]{transition:none}
html[data-quiet-motion] .dragging,html[data-quiet-motion] .over{transform:none}
@media(prefers-reduced-motion:reduce){.confetti{display:none}.dragging,.over{transform:none}}

.celebration{width:min(440px,calc(100% - 32px));max-height:calc(100% - 32px);padding:0;border:1px solid #ead39c;border-radius:25px;background:#fffbef;color:var(--ink);box-shadow:0 18px 70px #1b312548;overflow:auto}
.celebration::backdrop{background:#173c35a0}
.celebration-content{display:grid;justify-items:center;gap:12px;padding:28px 20px;text-align:center}
.celebration h2{font-size:clamp(29px,7vw,40px)}
.victory-vehicle{display:grid;place-items:center;width:130px;height:78px;border-radius:40px;background:#fae9bd}
.victory-vehicle .picture{width:104px;height:65px;animation:victory-hop 580ms ease-out}
.celebration .round-stars{font-size:clamp(37px,12vw,64px);gap:8px;color:#9c570e}
.celebration .earned{animation:star-pop 420ms ease-out both}
.celebration .earned:nth-child(2){animation-delay:120ms}
.celebration .earned:nth-child(3){animation-delay:240ms}
@keyframes victory-hop{0%,100%{transform:translateY(0)}48%{transform:translateY(-9px) rotate(-5deg)}74%{transform:translateY(2px)}}
@keyframes star-pop{from{opacity:.25;transform:scale(.55)}60%{opacity:1;transform:scale(1.14)}to{opacity:1;transform:scale(1)}}
.celebration .tools{justify-content:center;margin-top:8px}
.celebration .confetti i{width:9px;height:15px;animation:party-fall 1.65s var(--delay,0ms) ease-out both}
@keyframes party-fall{0%{opacity:0;transform:translateY(-18px) rotate(-24deg)}12%{opacity:1}68%{opacity:.95}100%{opacity:0;transform:translateY(260px) rotate(210deg)}}
html[data-quiet-motion] .celebration .confetti{display:block}
html[data-quiet-motion] .celebration :is(.earned,.victory-vehicle .picture){animation:none}
html[data-quiet-motion] .celebration .confetti i{animation:none;top:19px;width:5px;height:5px;opacity:.75}
@media(prefers-reduced-motion:reduce){.celebration .confetti{display:block}.celebration .confetti i{animation:none;top:19px;width:5px;height:5px;opacity:.75}}

.hero{position:relative;isolation:isolate;background:linear-gradient(135deg,#101c37,#233a58);border-color:#304660;color:#fff8e8}
.hero .eyebrow{color:#ffd892}
.hero .muted{color:#e0e8f7}
.hero .routine span{background:#344b68;color:#fff8e8}
.hero .routine b{color:#ffd892}
.hero-copy,.hero .town-art{z-index:1}
.hero-stars{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(circle at 3% 11%,#ffe0a3 0 1.5px,transparent 2.5px),
  radial-gradient(circle at 25% 6%,#d5e3f7 0 1px,transparent 2px),
  radial-gradient(circle at 44% 15%,#e8d7b2 0 1px,transparent 2px),
  radial-gradient(circle at 52% 8%,#f6dba4 0 2px,transparent 3px),
  radial-gradient(circle at 58% 28%,#c4d4eb 0 1px,transparent 2px),
  radial-gradient(circle at 65% 12%,#f6dba4 0 1.5px,transparent 2.5px),
  radial-gradient(circle at 74% 18%,#c4d4eb 0 1px,transparent 2px),
  radial-gradient(circle at 86% 7%,#ffe0a3 0 1px,transparent 2px),
  radial-gradient(circle at 96% 12%,#e6edfa 0 1.5px,transparent 2.5px),
  radial-gradient(circle at 97% 44%,#d5e3f7 0 1px,transparent 2px),
  radial-gradient(circle at 4% 91%,#c4d4eb 0 1px,transparent 2px),
  radial-gradient(circle at 36% 94%,#ffe0a3 0 1px,transparent 2px)}
.hero-stars i{position:absolute;top:11%;left:68%;width:52px;height:2px;border-radius:50%;opacity:0;background:linear-gradient(90deg,transparent,#ffdf9b);animation:shooting-star 12s ease-out infinite}
.hero-stars i:nth-child(2){top:23%;left:81%;animation-delay:6s}
@keyframes shooting-star{
  0%{opacity:0;transform:rotate(19deg) translateX(0)}
  3%{opacity:.8}
  12%,100%{opacity:0;transform:rotate(19deg) translateX(75px)}
}
html[data-quiet-motion] .hero-stars i{animation:none}

.card-art.snake-card{background:#deeddb}
.card-art .snake-card-art{width:min(86%,170px)}
.game-card{grid-template-rows:auto auto;align-items:center}
.snake-game{max-width:840px;margin:auto;display:grid;gap:12px}
.snake-game h1{margin-bottom:5px}
.snake-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,220px);align-items:center;gap:22px}
.snake-board{display:block;width:100%;height:auto;aspect-ratio:4/3;background:#f4f7eb;border:2px solid #719184;border-radius:14px}
.snake-board:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.snake-controls{display:grid;gap:9px;align-content:center}
.snake-score{display:flex;gap:5px;align-items:center;font-size:22px;font-weight:650}
.snake-icon{width:24px;height:24px;flex:none}
.snake-pad{display:grid;grid-template-columns:repeat(3, minmax(48px,1fr));gap:5px;margin-top:3px}
.snake-pad button{min-height:48px;padding:3px;font-size:23px;touch-action:manipulation}
.snake-pad button[data-direction="ArrowUp"]{grid-column:2;grid-row:1}
.snake-pad button[data-direction="ArrowLeft"]{grid-column:1;grid-row:2}
.snake-pad button[data-direction="ArrowDown"]{grid-column:2;grid-row:2}
.snake-pad button[data-direction="ArrowRight"]{grid-column:3;grid-row:2}
.snake-message{min-height:24px;font-weight:650}
.snake-message:empty{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%)}
.snake-sad{display:block;width:124px;height:79px}
.snake-end h2{font-size:clamp(24px,6vw,32px)}
.snake-close{position:absolute;top:7px;right:7px;width:44px;padding:7px}
.snake-achievements{border-top:1px solid var(--line);padding-top:12px}
.snake-achievements h2{font-size:20px;margin-bottom:3px}
.snake-achievements ul{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:8px 0 0;list-style:none}
.snake-achievements li{display:flex;align-items:center;gap:5px;min-width:56px;padding:5px 8px;border:1px solid var(--line);border-radius:10px;background:var(--ground);font-size:16px}
.snake-achievements [data-badge-status]{display:flex}
.snake-achievements .snake-icon{width:18px;height:18px}
.snake-achievements .unlocked{background:var(--sand);border-color:#ae8042}
.snake-achievements [data-badge-status]{color:var(--muted)}
.snake-achievements .unlocked [data-badge-status]{color:#74450f;font-weight:700}
.snake-help summary{cursor:pointer;width:fit-content;padding:8px 0;font-weight:600}
.snake-help p{max-width:50ch;color:var(--muted)}
@media(max-width:720px){
  .hero{grid-template-columns:1fr 1.05fr}
  .game-card{grid-template-rows:auto}
  .game-card .card-art{grid-row:1}
}
@media(max-width:630px){
  .snake-layout{grid-template-columns:minmax(0,1fr);gap:10px}
  .snake-controls{grid-template-columns:1fr 1fr;align-items:end}
  .snake-score{grid-column:1/-1}
  .snake-pad{grid-column:1/-1;justify-self:center;width:min(100%,250px)}
  .hero-stars i{top:7%;left:58%}
  .hero-stars i:nth-child(2){top:22%;left:68%}
}
