:root{font-family:'Arial Rounded MT Bold','Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;color:#42523f;background:#80bc3c;font-synthesis:none;--green:#8bc847;--dark:#487c29;--cream:#fffcdf;--yellow:#ffdb54;--muted:#88916c}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,input,select,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,select{font:inherit;color:inherit}button,a,select{cursor:pointer}button{min-height:44px}button:disabled{opacity:.38;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid #2357b9;outline-offset:3px}img{display:block;max-width:100%;user-select:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:90px;z-index:30;padding:12px;background:white;border-radius:12px}.skip:focus{top:12px}.toy-app{height:100dvh;width:100%;display:grid;grid-template-columns:88px minmax(0,1fr) 92px;gap:12px;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:radial-gradient(ellipse at 8% 0,#d7ef8b88,transparent 45%),linear-gradient(110deg,#9bd750,#76bd39 55%,#8dcb42);box-shadow:inset 0 5px 3px #d0f28a,inset 0 -7px #529d30;isolation:isolate}.category-rail{min-height:0;display:flex;flex-direction:column;gap:8px;align-items:center;position:relative;padding-bottom:6px}.home-key{display:grid;place-items:center;width:68px;min-height:49px;border:3px solid #fff5ae;background:linear-gradient(#ffe98c,#ffd857);border-radius:18px;color:#aa7d2e;box-shadow:0 4px #599c32,inset 0 3px #fff7c8}.home-key svg{width:27px;height:27px}.category-tabs{flex:1;min-height:0;width:100%;display:grid;grid-template-rows:repeat(10,minmax(0,1fr));gap:7px;z-index:1}.category-tab{display:flex;align-items:center;gap:4px;justify-content:center;flex-direction:column;padding:3px 3px 4px;border:3px solid #fff7;border-radius:14px;background:var(--tab-color);box-shadow:0 4px #4d8b2b,inset 0 2px #ffffff80;min-height:0;position:relative}.category-tab img{width:100%;height:52%;min-height:0;object-fit:contain;border-radius:6px}.category-tab span{font-size:12px;line-height:1.2;font-weight:900;color:#40573b;white-space:nowrap}.category-tab.active{transform:translateX(4px);border-color:#fff7a5;outline:2px solid #fff7a5}.hinge{position:absolute;z-index:-1;top:42px;bottom:0;right:-13px;width:19px;background:linear-gradient(90deg,#eff0e4,#fff,#ced7c1);border-radius:15px}.book{min-width:0;min-height:0;height:100%;border:9px solid #fff;border-radius:30px;background:radial-gradient(#ede3b333 1px,transparent 1px),#fffcdf;background-size:20px 20px;box-shadow:0 7px #4e932e,0 0 0 5px #f5dc5d,inset 0 3px 10px #d6bc5530;overflow:hidden;position:relative;outline:none}.page{height:100%;width:100%;padding:16px 19px;display:flex;flex-direction:column;gap:12px;min-height:0}.page-heading{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.page-heading h1{font-size:clamp(22px,2.3vw,34px);font-weight:950;color:#5d7736;letter-spacing:.5px;line-height:1.25;margin:0}.small-badge{background:#fff1a5;border:2px solid #fff;border-radius:25px;box-shadow:0 3px #e0ce72;padding:8px 14px;color:#9c8238;font-size:12px;font-weight:800;white-space:nowrap}.category-grid{flex:1;min-height:0;display:grid;gap:15px;padding:2px 1px 8px}.category-card{min-height:0;min-width:0;display:flex;flex-direction:column;background:linear-gradient(145deg,#fff8,transparent 50%),var(--category-color);border:3px solid var(--card-edge);border-radius:21px;padding:7px 7px 0;box-shadow:0 5px var(--card-shadow),inset 0 3px #fff9;transition:transform .15s,box-shadow .15s}.category-card:hover{transform:translateY(-3px);box-shadow:0 8px var(--card-shadow)}.category-card:active{transform:translateY(3px);box-shadow:0 2px var(--card-shadow)}.cover-wrap{width:100%;flex:1;min-height:0;border:4px solid white;background:var(--category-color);border-radius:13px;overflow:hidden}.cover-wrap img{width:100%;height:100%;object-fit:contain}.category-info{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px 5px;flex-shrink:0}.category-info h2{font-size:clamp(18px,1.8vw,27px);color:#4a6153;margin:0;letter-spacing:.5px;white-space:nowrap;font-weight:900}.category-info small{display:block;color:#788c7c;font-size:11px;margin-top:4px;font-weight:650}.category-count{background:#fff9db;border:2px solid white;border-radius:15px;font-size:10px;font-weight:900;color:#ac8a3d;padding:5px 7px;white-space:nowrap}.mode-rail{display:flex;flex-direction:column;align-items:center;gap:19px;min-height:0;padding-top:10px}.speaker-grille{width:48px;height:36px;background:radial-gradient(circle,#4a822b 2px,transparent 3px);background-size:11px 11px;opacity:.8;margin-bottom:5px}.mode-key{width:88px;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;color:#fff;flex-shrink:0}.mode-key>span{width:76px;height:76px;display:grid;place-items:center;border:5px solid #fff9;border-radius:50%;background:linear-gradient(#a4ddf3,#62b9de);box-shadow:0 6px #4b8c2c,inset 0 5px #fff6;transition:transform .15s}.mode-key svg{width:36px;height:36px;filter:drop-shadow(0 2px #4b769533)}.mode-sort>span{background:linear-gradient(#ffc991,#f39856)}.mode-listen>span{background:linear-gradient(#e4b5ec,#bd87d1)}.mode-key strong{font-size:15px;letter-spacing:1px;color:#3d702b;text-shadow:0 1px #c7e58d;font-weight:900}.mode-key.active>span{border-color:#fff5a2;outline:3px solid #fff3a1;transform:translateY(3px);box-shadow:0 3px #4b8c2c,inset 0 4px #fff6}.mode-key:active>span{transform:translateY(5px);box-shadow:0 1px #4b8c2c}.sound-settings{margin-top:auto;display:flex;flex-direction:column;gap:8px;width:100%;padding-bottom:6px;align-items:center}.sound-settings label{font-size:11px;color:#45772c;font-weight:900}.sound-settings select{width:100%;min-height:44px;border:3px solid #e4efb5;border-radius:12px;background:#f7ffd7;color:#617b35;font-size:12px;font-weight:800;padding:4px 2px}.sound-key{width:100%;min-height:44px;border:3px solid #fff8bc;border-radius:13px;background:linear-gradient(#ffeb89,#ffdb57);font-size:12px;font-weight:800;box-shadow:0 4px #5a9531;color:#9c772f}.small-key,.big-key,.page-key,.arrow-key{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:3px solid white;background:linear-gradient(#d9efb2,#bada89);border-radius:15px;box-shadow:0 4px #99bc65,inset 0 3px #ffffff80;color:#63833b;font-weight:800;white-space:nowrap;transition:transform .1s}.small-key{padding:8px 13px;font-size:13px;min-height:44px}.small-key svg{width:21px;height:21px}.yellow,.big-key{background:linear-gradient(#ffe993,#ffd14c);box-shadow:0 4px #dbaf35,inset 0 3px #fff6be;color:#a17b2d}.blue{background:linear-gradient(#b4e3f7,#83c7e8);box-shadow:0 4px #65a9ce,inset 0 3px #dff6ff;color:#4c7d99}.small-key:active,.big-key:active,.page-key:active,.arrow-key:active{transform:translateY(3px)}.big-key{padding:14px 25px;min-height:56px;font-size:19px;border-radius:20px}.big-key svg{width:28px;height:28px}.page-key{font-size:29px;width:55px;height:44px;padding:0;background:linear-gradient(#b2dff4,#83c5e4);box-shadow:0 4px #6aa9c4;color:white}.pager{display:flex;align-items:center;justify-content:center;gap:22px;flex-shrink:0;height:50px;font-size:14px;color:#889870;font-weight:800}.pager>div{text-align:center;min-width:120px}.pager strong{display:block;font-size:15px}.pager small{display:block;font-size:11px;font-weight:500;margin-top:3px}.list-title{flex:1;min-width:0}.list-title h1{font-size:28px}.list-title>span{font-size:11px;color:#a0aa83;letter-spacing:1px}.heading-actions{display:flex;gap:9px}.cards-grid{display:grid;flex:1;min-height:0;gap:14px;padding:1px 1px 7px}.flashcard{display:flex;flex-direction:column;min-width:0;min-height:0;padding:7px;background:#fff;border:3px solid #dde6b8;border-radius:19px;box-shadow:0 5px #d1dba3;transition:transform .15s}.flashcard:hover{transform:translateY(-3px);border-color:#f0cb5b}.flashcard img{width:100%;height:0;flex:1;min-height:0;object-fit:contain;border-radius:10px}.flash-label{padding:5px 0 3px;flex-shrink:0}.flash-label strong{font-size:20px;display:block;color:#607d42}.flash-label small{font-size:12px;color:#91a07d;display:block;margin-top:2px}.flashcard.no-words .flash-label{display:none}.center-panel{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:15px;overflow:hidden;padding:8px}.center-panel h2{font-size:clamp(25px,3vw,40px);margin:0;color:#66813c}.center-panel p{font-size:14px;line-height:1.65;margin:0;color:#93a075}.big-star{font-size:80px;color:#f9cc4c}.setup-art{display:flex;gap:25px;align-items:center;font-size:32px;color:#f8ce4c}.setup-art svg{width:85px;height:85px;color:#d9a149;transform:rotate(-8deg);stroke-width:1.5}.setup-art span:last-child{font-size:20px}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;width:min(100%,690px);margin:7px 0 12px}.level-choice{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:17px 13px;background:#eff5dc;border:4px solid white;border-radius:22px;box-shadow:0 5px #c2d4a2;color:#7b9556}.level-choice.selected{background:#fff0ad;border-color:#f6d46b;box-shadow:0 5px #d7b64f}.level-choice>span{font-size:24px;color:#e6b845;letter-spacing:1px}.level-choice strong{font-size:19px;white-space:nowrap}.level-choice small{font-size:12px}.game-heading h1{font-size:25px;text-align:center}.game-heading .small-key{font-size:12px}.game-page{gap:9px}.game-play{min-height:0;flex:1;display:grid;grid-template-rows:28px minmax(100px,.85fr) 28px minmax(100px,1fr) 42px;gap:10px}.progress-row{display:flex;align-items:center;gap:12px;min-height:0}.progress-track{height:14px;background:#e5e9c6;flex:1;border-radius:20px;overflow:hidden;border:2px solid white}.progress-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#a1d453,#f4d65d);border-radius:20px;transition:width .25s}.progress-row>strong{color:#a3ac7a;font-size:15px;white-space:nowrap}.text-key{min-height:28px;border:0;background:none;font-size:12px;font-weight:700;color:#9eae7b;padding:3px 5px}.game-baskets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;justify-content:center;min-height:0;padding:8px 3px 8px}.game-basket{min-height:0;position:relative;border:4px solid white;border-radius:24px 24px 30px 30px;background:linear-gradient(#fff8,transparent 35%),var(--basket-color);box-shadow:0 7px var(--basket-edge);padding:14px 12px 10px;display:flex;flex-direction:column;align-items:center;gap:5px;transition:transform .15s,box-shadow .15s;overflow:visible;isolation:isolate}.game-basket::before{content:'';position:absolute;left:9%;right:9%;top:-6px;height:18px;border-radius:50%;background:#7c8c5977;box-shadow:inset 0 5px 6px #485d3e33;z-index:-1}.game-basket::after{content:'';position:absolute;inset:6px;border:2px dashed #fff9;border-radius:19px 19px 24px 24px;pointer-events:none;z-index:-1}.game-basket__cover{height:0;min-height:0;flex:1;max-width:90%;width:100%;object-fit:contain;border-radius:10px}.game-basket__label{font-size:20px;font-weight:900;color:#63836b;line-height:1.1}.game-basket__label small{font-size:11px;font-weight:500;margin-left:7px;color:#8a9e86}.game-basket__count{position:absolute;top:5px;right:7px;font-size:11px;font-weight:900;background:#fff6c9;border:2px solid white;border-radius:15px;padding:3px 7px;color:#a38d4f}.basket-collected{position:absolute;left:10px;bottom:8px;display:flex;align-items:center;max-width:35%;height:35px}.basket-collected img{width:34px;height:34px;object-fit:contain;border:2px solid white;border-radius:7px;background:white;box-shadow:0 2px 3px #58653933;transform:rotate(-8deg);margin-right:-18px}.basket-collected img:nth-child(2){transform:rotate(4deg)}.game-basket.is-hovered{outline:4px solid #e6b83c;outline-offset:3px;transform:translateY(-3px)}.game-basket.is-correct{animation:box-bounce .42s ease}.game-basket.is-wrong{animation:box-wiggle .3s ease}.tray-caption{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;color:#a1ab7a;min-height:0}.mini-pager{display:flex;align-items:center;gap:12px;font-size:12px}.mini-pager button{border:2px solid white;background:#e1edc3;color:#75974c;border-radius:10px;width:36px;min-height:28px;font-size:19px}.game-card-grid{display:grid;gap:11px;min-height:0;padding:0 2px 6px}.game-card{position:relative;min-width:0;min-height:0;background:white;border:3px solid white;border-radius:18px;padding:6px;box-shadow:0 4px #d9dfbc;touch-action:none;user-select:none;cursor:grab;transition:transform .14s,border-color .14s}.game-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;border-radius:9px}.game-card__question{position:absolute;top:5px;right:5px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#ffec9c;color:#c2a347;font-size:14px;font-weight:900}.game-card.is-selected{border-color:#edc34a;transform:translateY(-3px);box-shadow:0 5px #d9b957}.game-card.is-dragging{opacity:.25}.card-flight{position:fixed;pointer-events:none;z-index:100;object-fit:contain;background:white;border:4px solid white;border-radius:15px;box-shadow:0 7px 20px #4e663933}.feedback{margin:0;border:2px solid white;border-radius:17px;background:#eef2d9;color:#81985d;padding:7px 12px;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;min-height:0;text-align:center;line-height:1.3}.feedback[data-type="correct"]{background:#e3f0bf;color:#6e943e}.feedback[data-type="try"]{background:#fff0c7;color:#b69a4e}.reward-stars{font-size:clamp(36px,6vw,78px);color:#f0c642;letter-spacing:10px;text-shadow:0 5px #d0a73c;animation:reward-pop .6s ease}.celebration h2{font-size:36px}.listen-speaker{width:105px;height:105px;display:grid;place-items:center;background:linear-gradient(#eac3f1,#c995da);border:6px solid white;border-radius:50%;box-shadow:0 7px #af80bf;color:white}.listen-speaker svg{width:57px;height:57px}.voice-status{max-width:440px;background:#f4f1ce;border-radius:15px;padding:10px 14px!important;font-size:12px!important;color:#a69358!important}.stars-meter{color:#e2b83a;letter-spacing:3px;font-size:23px;white-space:nowrap}.listen-play{min-height:0;flex:1;display:flex;flex-direction:column;gap:14px}.listen-prompt{display:flex;align-items:center;justify-content:center;gap:20px;flex-shrink:0}.listen-prompt>span{font-size:16px;color:#a1a77b;font-weight:700}.listen-prompt .big-key{min-height:48px;font-size:16px;padding:10px 22px}.listen-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:15px;flex:1;min-height:0}.listen-card{min-height:0;min-width:0;padding:8px;background:#fff;border:4px solid #fff;border-radius:22px;box-shadow:0 5px #dfe2bd;transition:transform .15s}.listen-card img{width:100%;height:100%;object-fit:contain}.listen-card.is-correct{border-color:#9bc95b;background:#f5ffe7}.listen-card.is-wrong{animation:box-wiggle .3s ease;border-color:#efd485}.listen-feedback-row{display:flex;align-items:stretch;gap:10px;min-height:44px;flex-shrink:0}.listen-feedback-row .feedback{flex:1}.listen-page .page-heading h1{font-size:25px}dialog{color:#42523f}dialog::backdrop{background:#38573399}#viewer{width:100%;height:100dvh;max-width:none;max-height:none;inset:0;margin:0;border:12px solid #8cc64a;padding:10px;background:#fffcdf;box-shadow:inset 0 0 0 6px white;overflow:hidden}.viewer-shell{height:100%;display:flex;flex-direction:column;gap:9px;padding:7px 12px;min-height:0}.viewer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.viewer-top>span{font-size:20px;letter-spacing:1px;font-weight:900;color:#a79755;background:#fff1ad;border-radius:20px;padding:8px 25px}.viewer-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:25px}.image-stage{height:100%;aspect-ratio:1;min-height:0;max-width:calc(100% - 180px);display:block;position:relative;padding:0;border:5px solid white;border-radius:24px;background:white;box-shadow:0 4px #e5ddad;overflow:hidden;touch-action:pan-y;min-width:0}.image-stage img{width:100%;height:100%;object-fit:contain;pointer-events:none}.tap-read{position:absolute;right:9px;bottom:9px;border:2px solid white;border-radius:20px;background:#fff4bbdf;padding:5px 9px;display:flex;align-items:center;gap:5px;font-size:11px;color:#a29156;pointer-events:none}.tap-read svg{width:17px;height:17px}.image-stage>#image-error{position:absolute;inset:40% 10%;font-size:15px}.arrow-key{width:61px;height:61px;border-radius:50%;font-size:36px;color:white;background:linear-gradient(#a9dcf3,#77bee2);box-shadow:0 5px #5d9fbe;flex-shrink:0}.viewer-label{min-height:69px;flex-shrink:0;text-align:center}.viewer-label h2{font-size:29px;margin:0 0 2px;color:#718b43;letter-spacing:2px}.viewer-label p{font-size:18px;margin:0;color:#a1ad87}.viewer-label.concealed h2,.viewer-label.concealed p{visibility:hidden}.viewer-bottom{display:flex;justify-content:center;align-items:center;gap:20px;flex-shrink:0}.viewer-bottom>strong{font-size:18px;color:#a2ae79;min-width:65px}.speech-status{margin:0;text-align:center;min-height:16px;font-size:11px;line-height:1.3;color:#a7976c;flex-shrink:0}.viewer-bottom .small-key{font-size:12px}.viewer-bottom svg{width:20px;height:20px}@keyframes box-bounce{50%{transform:translateY(-7px) rotate(-2deg)}}@keyframes box-wiggle{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes reward-pop{0%{transform:scale(.7)}65%{transform:scale(1.12)}100%{transform:scale(1)}}
@media(min-width:1600px){.toy-app{grid-template-columns:112px minmax(0,1fr) 116px;gap:20px;padding:20px}.category-tabs{gap:10px}.category-tab span{font-size:16px}.home-key{width:84px;min-height:55px}.page{padding:23px 30px;gap:18px}.mode-rail{gap:29px;padding-top:20px}.mode-key{width:105px;gap:15px}.mode-key>span{width:92px;height:92px}.mode-key svg{width:43px;height:43px}.mode-key strong{font-size:19px}.category-grid{gap:23px}.category-info{padding:17px 9px}.category-info h2{font-size:31px}.category-info small{font-size:15px}.category-count{font-size:13px}.small-key{font-size:16px;padding:10px 17px;min-height:48px}.game-play{grid-template-rows:32px minmax(140px,.8fr) 32px minmax(140px,1fr) 49px;gap:14px}.game-basket__label{font-size:27px}.game-basket__count{font-size:15px}.feedback{font-size:19px}.game-card__question{font-size:17px;width:29px;height:29px}.tray-caption{font-size:16px}.flash-label strong{font-size:26px}.flash-label small{font-size:15px}.stars-meter{font-size:30px}.sound-settings label{font-size:13px}.sound-settings select,.sound-key{font-size:14px}}
@media(max-width:1100px){.toy-app{grid-template-columns:72px minmax(0,1fr) 78px;gap:10px;padding:10px}.book{border-width:7px;border-radius:25px}.page{padding:13px;gap:10px}.category-tab{border-width:2px;border-radius:11px}.category-tab span{font-size:11px}.category-tabs{gap:6px}.home-key{width:59px;min-height:46px}.mode-key{width:74px;gap:8px}.mode-key>span{width:63px;height:63px;border-width:4px}.mode-key svg{width:30px;height:30px}.mode-key strong{font-size:13px}.mode-rail{gap:17px}.speaker-grille{margin-bottom:2px}.small-badge{font-size:10px;padding:7px 10px}.page-heading h1{font-size:25px}.category-grid{gap:12px}.category-info{padding:10px 3px}.category-info h2{font-size:20px}.category-count{font-size:9px;padding:4px 6px}.category-info small{font-size:10px}.game-play{gap:9px}.game-baskets{gap:15px}.game-basket{padding:13px 9px 9px}.game-basket__label{font-size:18px}.game-basket__label small{font-size:10px}.basket-collected{height:26px;left:6px;bottom:5px}.basket-collected img{width:26px;height:26px;margin-right:-16px}.feedback{font-size:13px}.heading-actions{gap:7px}.small-key{font-size:12px;padding:8px 10px}.list-title h1{font-size:24px}.game-card-grid{gap:10px}.sound-settings select{font-size:11px}.sound-key{font-size:11px}.level-grid{gap:11px}.level-choice{padding:15px 8px}.level-choice strong{font-size:17px}}
@media(max-width:699px){.toy-app{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 70px;gap:10px;padding:8px 8px max(10px,env(safe-area-inset-bottom))}.category-rail{display:none}.book{grid-row:1;border-width:5px;border-radius:21px;box-shadow:0 4px #54932d,0 0 0 3px #f4d85f,inset 0 2px 7px #d6bc5522}.mode-rail{grid-row:2;display:flex;flex-direction:row;justify-content:space-around;gap:5px;align-items:center;padding:0}.speaker-grille{display:none}.mode-key{width:60px;flex-direction:column;gap:4px}.mode-key>span{width:47px;height:47px;border-width:3px;box-shadow:0 4px #4b8c2c}.mode-key svg{width:24px;height:24px}.mode-key strong{font-size:10px;letter-spacing:0}.mode-key.active>span{outline-width:2px;transform:translateY(1px);box-shadow:0 3px #4b8c2c}.sound-settings{width:90px;flex-shrink:0;margin:0;gap:5px;padding:0;display:grid;grid-template-columns:1fr}.sound-settings label{display:none}.sound-settings select{width:90px;min-height:28px;height:28px;border-width:2px;font-size:10px;padding:0 3px;border-radius:9px}.sound-key{width:90px;min-height:29px;height:29px;font-size:10px;border-width:2px;border-radius:10px;box-shadow:0 3px #5a9531}.page{padding:11px 10px;gap:10px}.page-heading{min-height:40px;gap:8px}.page-heading h1{font-size:22px}.small-badge{font-size:9px;padding:5px 7px;max-width:100px;white-space:normal;text-align:center;line-height:1.3}.category-grid{gap:11px;padding-bottom:5px}.category-card{border-width:2px;border-radius:15px;padding:4px 4px 0}.cover-wrap{border-width:3px;border-radius:10px}.category-info{padding:6px 3px;gap:3px}.category-info h2{font-size:17px;letter-spacing:0}.category-info small{font-size:9px;margin-top:2px}.category-count{font-size:8px;padding:3px 4px;border-width:1px}.small-key{min-height:40px;padding:7px 9px;border-width:2px;border-radius:12px;font-size:11px;gap:4px}.small-key svg{width:18px;height:18px}.list-heading{flex-wrap:wrap;min-height:72px;gap:7px}.list-title h1{font-size:23px}.list-title>span{font-size:9px}.heading-actions{gap:7px}.heading-actions .small-key{min-height:36px}.heading-actions .yellow>span{display:none}.heading-actions .yellow{width:38px}.cards-grid{gap:11px}.flashcard{padding:4px;border-width:2px;border-radius:14px}.flash-label{padding:4px 0}.flash-label strong{font-size:18px}.flash-label small{font-size:10px}.pager{height:44px;gap:18px;font-size:12px}.pager strong{font-size:12px}.pager small{font-size:10px}.page-key{min-height:38px;height:38px;width:45px;border-width:2px}.game-heading h1,.listen-page .page-heading h1{font-size:19px}.game-heading .small-key{font-size:10px;min-height:36px}.game-page{gap:7px}.game-play{grid-template-rows:24px minmax(86px,.82fr) 25px minmax(100px,1fr) 39px;gap:8px}.progress-row{gap:8px}.progress-row>strong{font-size:12px}.progress-track{height:12px}.text-key{font-size:10px;padding:0;white-space:nowrap}.game-baskets{padding:5px 1px 7px;gap:13px 11px}.game-basket{border-width:3px;border-radius:18px 18px 22px 22px;padding:10px 7px 8px;gap:3px}.game-basket::before{height:13px;top:-5px}.game-basket::after{inset:4px;border-width:1px;border-radius:13px 13px 17px 17px}.game-basket__label{font-size:15px}.game-basket__label small{display:none}.game-basket__count{font-size:9px;top:2px;right:4px;padding:2px 5px;border-width:1px}.basket-collected{height:20px;bottom:4px;left:5px}.basket-collected img{width:21px;height:21px;border-width:1px;margin-right:-15px}.tray-caption{font-size:11px}.game-card-grid{gap:9px;padding-bottom:4px}.game-card{border-width:2px;border-radius:12px;padding:3px;box-shadow:0 3px #d9dfbc}.game-card__question{width:17px;height:17px;top:3px;right:3px;font-size:11px}.feedback{font-size:11px;border-width:1px;padding:5px 8px;border-radius:12px}.level-grid{gap:9px;max-width:420px}.level-choice{padding:13px 5px;border-width:3px;border-radius:17px;gap:8px}.level-choice>span{font-size:18px;letter-spacing:0}.level-choice strong{font-size:13px}.level-choice small{font-size:10px}.center-panel{gap:12px;padding:2px}.center-panel h2{font-size:25px}.center-panel p{font-size:11px}.setup-art{gap:17px;font-size:23px}.setup-art svg{width:62px;height:62px}.big-key{min-height:49px;padding:12px 20px;font-size:16px;border-width:3px;border-radius:17px}.reward-stars{font-size:36px;letter-spacing:2px}.celebration h2{font-size:27px}.listen-speaker{width:80px;height:80px;border-width:4px}.listen-speaker svg{width:42px;height:42px}.stars-meter{font-size:15px;letter-spacing:0}.listen-prompt{gap:12px}.listen-prompt .big-key{min-height:43px;padding:8px 13px;font-size:13px}.listen-prompt>span{font-size:12px}.listen-card-grid{gap:12px}.listen-card{padding:5px;border-width:3px;border-radius:17px}.listen-feedback-row{min-height:40px}.voice-status{font-size:11px!important;padding:9px 12px!important}.listen-play{gap:11px}#viewer{border-width:8px;padding:6px}.viewer-shell{padding:6px 5px max(7px,env(safe-area-inset-bottom));gap:8px}.viewer-top .small-key{font-size:11px;min-height:39px}.viewer-top>span{font-size:13px;padding:7px 12px;letter-spacing:0}.viewer-body{gap:0;position:relative;flex-wrap:wrap;align-content:center}.image-stage{height:auto;width:100%;max-width:100%;aspect-ratio:1;max-height:100%;border-width:4px;border-radius:18px}.arrow-key{position:fixed;bottom:max(101px,calc(env(safe-area-inset-bottom) + 101px));z-index:2;width:45px;height:45px;font-size:27px;border-width:3px;min-height:44px}#prev{left:20px}#next{right:20px}.viewer-label{min-height:65px;padding:0 50px}.viewer-label h2{font-size:26px}.viewer-label p{font-size:16px}.viewer-bottom{gap:12px}.viewer-bottom>strong{font-size:15px;min-width:50px}.viewer-bottom .small-key{font-size:10px;min-height:37px;padding:7px 9px}.speech-status{font-size:10px;min-height:25px}.tap-read{font-size:10px;padding:4px 7px}.tap-read svg{width:15px;height:15px}}
@media(max-height:650px){.page{gap:8px;padding-top:10px;padding-bottom:10px}.page-heading{min-height:39px}.category-info small{display:none}.category-info{padding-top:6px;padding-bottom:7px}.game-play{gap:7px}.center-panel{gap:10px}.setup-art{display:none}.listen-speaker{width:62px;height:62px}.listen-speaker svg{width:33px;height:33px}.level-grid{margin:4px 0 8px}.level-choice{padding-top:12px;padding-bottom:12px}.viewer-label{min-height:57px}.viewer-label h2{font-size:24px}.viewer-label p{font-size:15px}}
@media(max-height:520px) and (orientation:landscape){.toy-app{grid-template-columns:60px minmax(0,1fr) 70px;grid-template-rows:minmax(0,1fr);padding:8px;gap:8px}.category-rail{display:none}.toy-app{grid-template-columns:minmax(0,1fr) 70px}.book{grid-column:1;grid-row:1}.mode-rail{grid-column:2;grid-row:1;flex-direction:column;gap:8px;padding:0;justify-content:flex-start}.mode-key{width:64px;gap:4px}.mode-key>span{width:45px;height:45px;border-width:3px}.mode-key svg{width:23px;height:23px}.mode-key strong{font-size:10px}.speaker-grille{display:none}.sound-settings{margin-top:auto;width:70px;gap:5px}.sound-settings label{display:none}.sound-settings select,.sound-key{width:70px;font-size:9px;min-height:27px;height:27px;padding:0 2px}.page{padding:9px 13px;gap:8px}.page-heading h1{font-size:22px}.level-grid{max-width:550px;gap:13px}.level-choice{padding:9px;gap:4px}.level-choice strong{font-size:15px}.level-choice>span{font-size:17px}.center-panel{gap:9px}.center-panel h2{font-size:23px}.center-panel p{font-size:11px}.big-key{min-height:44px;font-size:15px;padding:9px 20px}.game-play{grid-template-rows:22px minmax(64px,.7fr) 21px minmax(80px,1fr) 30px;gap:7px}.game-basket{padding:8px 10px 5px;gap:3px;border-width:2px;border-radius:15px}.game-basket::before{height:11px;top:-4px}.game-basket__label{font-size:14px}.game-basket__label small{display:none}.game-basket__count{font-size:9px}.game-card-grid{gap:9px}.feedback{font-size:11px;padding:4px 8px}.game-baskets{gap:15px;padding:4px 2px 5px}.game-card{border-width:2px;padding:3px;border-radius:12px}.listen-play{gap:8px}.listen-prompt{justify-content:flex-start}.listen-prompt .big-key{min-height:38px;padding:7px 15px;font-size:12px}.listen-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:1fr;gap:12px}.listen-feedback-row{min-height:35px}.stars-meter{font-size:21px}.listen-speaker{display:none}#viewer{border-width:8px;padding:5px}.viewer-shell{padding:4px 15px;gap:5px}.viewer-top{height:40px}.viewer-top .small-key{min-height:36px;padding:6px 12px;font-size:11px}.viewer-top>span{font-size:13px;padding:6px 20px}.viewer-body{gap:18px;flex-wrap:nowrap}.image-stage{height:100%;width:auto;max-width:calc(100% - 140px);max-height:100%;border-width:3px}.arrow-key{position:static;width:44px;height:44px;font-size:25px}.viewer-label{position:absolute;right:20px;top:43%;padding:0;width:130px;min-height:0}.viewer-label h2{font-size:22px}.viewer-label p{font-size:14px}.viewer-bottom{gap:17px;height:37px}.viewer-bottom .small-key{min-height:33px;padding:5px 12px}.speech-status{font-size:9px;min-height:13px}.tap-read{padding:3px 6px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:700px) and (max-width:1100px){.category-info{flex-wrap:wrap}.category-info h2{font-size:19px}.category-count{position:absolute;right:7px;top:7px}.category-card{position:relative}.category-info{justify-content:center;text-align:center}}
@media(max-width:699px) and (orientation:portrait){.sound-settings{width:142px;grid-template-columns:68px 68px;gap:6px}.sound-settings select,.sound-key{width:68px;height:44px;min-height:44px;font-size:9px}.mode-key{width:51px}.small-key,.heading-actions .small-key{min-height:44px}.page-key{min-height:44px;height:44px}.viewer-bottom .small-key{min-height:44px}.viewer-bottom{gap:8px}.viewer-bottom>strong{min-width:43px}}
@media(max-width:359px) and (orientation:portrait){.sound-settings{width:104px;grid-template-columns:50px 50px;gap:4px}.sound-settings select,.sound-key{width:50px;font-size:8px}.mode-key{width:51px}.viewer-bottom .small-key{padding:6px 7px;font-size:9px}}
@media(max-height:520px) and (orientation:landscape){.sound-settings select,.sound-key{min-height:40px;height:40px}}
.image-stage{flex-shrink:0;max-width:100%}
@media(max-width:699px) and (max-height:650px) and (orientation:portrait){.game-play{grid-template-rows:24px minmax(150px,1.25fr) 44px minmax(66px,1fr) 39px;gap:7px}.game-basket__cover{min-height:23px}.mini-pager{gap:5px}.mini-pager button{width:44px;min-height:44px;height:44px}.tray-caption{font-size:10px}}
.home-page{position:relative}.home-page[data-spread="true"]::before{content:'';position:absolute;left:50%;top:77px;bottom:21px;width:2px;background:#d5c77c55;box-shadow:0 0 12px 6px #d8cc8d22;pointer-events:none}.home-page[data-spread="true"] .category-grid{position:relative;gap:14px 25px}.home-page[data-spread="true"] .category-card{flex-direction:row;align-items:stretch;padding:7px;gap:5px;border-radius:20px}.home-page[data-spread="true"] .cover-wrap{height:100%;width:57%;flex:none}.home-page[data-spread="true"] .category-info{flex:1;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:7px 4px}.home-page[data-spread="true"] .category-info h2{font-size:clamp(19px,2vw,29px);white-space:normal;line-height:1.25}.home-page[data-spread="true"] .category-count{position:static;padding:3px 8px;margin-top:4px}.home-page[data-spread="true"] .category-info small{margin-top:5px}.home-page[data-spread="true"] .category-card:hover{transform:translateY(-2px)}
@media(max-width:1100px){.home-page[data-spread="true"] .category-grid{gap:12px 17px}.home-page[data-spread="true"] .category-card{padding:5px;gap:3px;border-radius:17px}.home-page[data-spread="true"] .cover-wrap{width:53%;border-width:3px}.home-page[data-spread="true"] .category-info h2{font-size:21px}.home-page[data-spread="true"] .category-info small{font-size:10px}.home-page[data-spread="true"] .category-count{font-size:9px;margin-top:3px}}
.game-heading .small-key{min-height:44px}
@media(max-height:520px) and (orientation:landscape){.sound-settings select,.sound-key{min-height:44px;height:44px}}
/* Tactile sorting bins: a shallow toy body, a real opening and three visible pockets. */
.game-play{grid-template-rows:28px var(--basket-area,190px) 28px minmax(66px,1fr) 42px;gap:10px}
.game-baskets{gap:22px;align-items:stretch;padding:7px 6px 11px}
.game-basket{
 --bin-radius:24px;position:relative;isolation:isolate;width:100%;max-width:420px;height:100%;
 justify-self:center;display:flex;flex-direction:column;justify-content:center;align-items:center;
 border:0;border-radius:var(--bin-radius);background:transparent;box-shadow:none;
 padding:32px 14px 13px;gap:10px;transform-origin:50% 90%;
 transition:transform .15s ease,filter .15s ease;container-type:size;
}
.game-basket::before{
 inset:16px 0 0;height:auto;border:3px solid #ffffffba;border-radius:22px 22px 30px 30px;
 background:linear-gradient(105deg,#fff8,transparent 25%,transparent 76%,#62704815),linear-gradient(var(--basket-color),var(--basket-edge));
 box-shadow:inset 0 4px 2px #fff9,inset 0 -7px 0 #0000000b,0 7px 0 var(--basket-edge),0 10px 7px #6872491b;
 z-index:-1;
}
.game-basket::after{inset:auto 22% -4px;height:4px;border:0;border-radius:8px;background:#fff7;z-index:0}
.basket-mouth{
 position:absolute;left:-3px;right:-3px;top:0;height:31px;border:6px solid var(--basket-edge);border-radius:50% / 45%;
 background:linear-gradient(#425c5780,#425c571a),var(--basket-edge);
 box-shadow:0 3px 0 #fff9,inset 0 5px 5px #273b4929,0 -2px 0 #fff9;
 transition:filter .15s,box-shadow .15s;pointer-events:none;
}
.basket-front{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:0;flex:1;max-height:100px;z-index:1}
.game-basket__cover{
 flex:0 1 76px;width:76px;height:76px;max-width:34%;min-height:0;min-width:0;object-fit:contain;
 padding:3px;border:3px solid #fff;border-radius:22px;background:#fffcf0;
 box-shadow:0 3px 0 #586d4b22;transform:rotate(-5deg);
}
.game-basket__label{display:block;min-width:0;line-height:1.2;color:#3d594e;text-align:left;font-size:25px;font-weight:900}
.game-basket__label strong{display:block;font-weight:900;overflow-wrap:anywhere;letter-spacing:.5px}
.game-basket__label small{display:block;font-size:11px;font-weight:700;color:#435d55b3;margin:5px 0 0;letter-spacing:.3px}
.game-basket__count{position:absolute;right:11px;top:21px;font-size:10px;padding:2px 6px;background:#fffbdf;border:1px solid #fff;border-radius:10px;color:#5b7160;z-index:2;line-height:1.1}
.basket-collected{position:relative;inset:auto;display:flex;justify-content:center;align-items:center;gap:8px;width:auto;max-width:100%;height:39px;flex-shrink:0;z-index:1}
.basket-slot{width:39px;height:39px;display:grid;place-items:center;overflow:hidden;border:2px solid #ffffffb0;border-radius:11px;background:#fff6;box-shadow:inset 0 2px 3px #445d4920;color:#fff;font-size:20px;text-shadow:0 1px #607b5a20}
.basket-collected .basket-slot img{width:100%;height:100%;margin:0;border:0;border-radius:8px;box-shadow:none;background:white;transform:none;object-fit:contain}
.basket-slot.is-filled{background:white;border-color:white;box-shadow:0 2px #687c4e26;animation:pocket-pop .24s ease-out}
.game-basket.is-hovered{outline:0;transform:translateY(-3px);filter:brightness(1.04)}
.game-basket.is-hovered .basket-mouth,.game-basket.is-receiving .basket-mouth{box-shadow:0 3px 0 #fff9,inset 0 5px 5px #273b4929,0 0 0 4px #ffdd68;filter:brightness(1.08)}
.game-basket.is-correct{animation:toy-box-bounce .36s ease-out}
.game-basket.is-wrong,.game-card.is-wrong{animation:toy-retry .28s ease-in-out}
.game-basket.is-full .game-basket__count{background:#fff5a3;color:#536b35}
.game-card{transition:transform .14s,border-color .14s,box-shadow .14s}
.game-card:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #d9dfbc}
.game-basket:active{transform:translateY(2px)}
.home-key,.sound-key,.category-tab,.level-choice,.flashcard,.listen-card{transition:transform .14s ease,box-shadow .14s ease}
.home-key:active,.sound-key:active,.category-tab:active,.level-choice:active,.flashcard:active,.listen-card:active:not(:disabled){transform:translateY(2px)}
@keyframes toy-box-bounce{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(2px) scale(1.025,.95)}72%{transform:translateY(-3px) scale(.99,1.02)}}
@keyframes toy-retry{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px) rotate(-1deg)}75%{transform:translateX(3px) rotate(1deg)}}
@keyframes pocket-pop{0%{transform:scale(.75)}70%{transform:scale(1.08)}100%{transform:scale(1)}}
@media(min-width:1600px){
 .game-play{grid-template-rows:32px var(--basket-area,230px) 32px minmax(100px,1fr) 49px;gap:14px}
 .game-baskets{gap:28px}.game-basket{max-width:470px;padding:37px 20px 16px;gap:14px}
 .basket-mouth{height:36px;border-width:7px}.game-basket__cover{width:96px;height:96px;flex-basis:96px;border-radius:25px}
 .game-basket__label{font-size:32px}.game-basket__label small{font-size:14px}.game-basket__count{font-size:13px;top:24px;right:14px}
 .basket-collected{height:48px;gap:12px}.basket-slot{width:48px;height:48px;border-radius:12px}
}
@media(max-width:1100px){
 .game-baskets{gap:17px}.game-basket{padding:28px 9px 11px;gap:8px}
 .game-basket__cover{width:60px;height:60px;flex-basis:60px;border-radius:17px;padding:2px;border-width:2px}
 .basket-front{gap:8px}.game-basket__label{font-size:21px}.game-basket__label small{font-size:10px}
 .basket-collected{height:33px;gap:6px}.basket-slot{width:33px;height:33px;border-radius:9px}
}
@media(max-width:699px){
 .game-play{grid-template-rows:24px var(--basket-area,230px) 44px minmax(66px,1fr) 39px;gap:8px}
 .game-baskets{gap:16px 13px;padding:4px 3px 10px}.game-basket{padding:24px 9px 9px;gap:6px}
 .game-basket::before{inset:12px 0 0;border-width:2px;border-radius:17px 17px 22px 22px}
 .game-basket::after{bottom:-3px;height:3px}.basket-mouth{height:24px;border-width:5px}
 .basket-front{gap:7px;max-height:70px}.game-basket__cover{width:49px;height:49px;flex-basis:49px;border-radius:13px}
 .game-basket__label{font-size:19px}.game-basket__label small{font-size:9px;margin-top:3px;letter-spacing:0}
 .game-basket__count{top:16px;right:7px;font-size:9px;padding:2px 5px}
 .basket-collected{height:29px;gap:5px}.basket-slot{width:29px;height:29px;border-radius:8px;font-size:16px}
}
@media(max-height:650px){
 .game-play{gap:7px}.game-basket{padding:23px 8px 8px;gap:5px}
 .basket-mouth{height:22px;border-width:4px}.game-basket::before{inset:11px 0 0}
 .game-basket__cover{height:42px;width:46px;flex-basis:46px;min-height:0;border-radius:12px}
 .game-basket__label{font-size:17px}.game-basket__label small{display:none}
 .game-basket__count{top:15px;font-size:9px}.basket-front{gap:7px}
 .basket-collected{height:24px;gap:5px}.basket-slot{width:24px;height:24px;border-radius:7px;font-size:14px}
}
@media(max-height:520px) and (orientation:landscape){
 .game-play{grid-template-rows:22px var(--basket-area,98px) 21px minmax(60px,1fr) 30px;gap:7px}
 .game-baskets{gap:14px;padding:3px 3px 8px}.game-basket{padding:20px 8px 7px;gap:4px}
 .game-basket__cover{height:35px;width:40px;flex-basis:40px}.game-basket__label{font-size:16px}
 .basket-collected{height:23px}.basket-slot{height:23px;width:23px}.game-basket__count{top:13px;font-size:8px}
}
@container(max-height:115px){
 .basket-front{max-height:43px;gap:7px}.game-basket__cover{height:35px;width:40px;flex-basis:40px}
 .game-basket__label{font-size:17px}.game-basket__label small{display:none}
 .basket-collected{height:24px;gap:5px}.basket-slot{height:24px;width:24px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.game-card-grid{align-items:center;justify-items:center}
.game-card{width:min(100%,var(--card-side,100%));height:min(100%,var(--card-side,100%))}
@media(max-width:699px) and (max-height:650px){
 .game-basket{padding:21px 7px 6px;gap:4px}.basket-front{gap:5px;min-height:26px}
 .game-basket__cover{height:28px;width:30px;flex-basis:30px;padding:1px;border-radius:9px}
 .game-basket__label{font-size:14px;white-space:nowrap;letter-spacing:0}.game-basket__label strong{letter-spacing:0}
 .game-basket__count{top:8px;right:7px;font-size:8px}.basket-collected{height:22px;gap:5px}.basket-slot{height:22px;width:22px;font-size:12px}
}

.game-card.is-sorted{visibility:hidden;pointer-events:none}

/* The drag layer lives under body, outside the card grid: never use grid percentage sizing here. */
.card-drag-preview{position:fixed;left:0;top:0;z-index:90;display:block;width:100px;height:100px;min-width:0;min-height:0;max-width:none;max-height:none;box-sizing:border-box;aspect-ratio:1;border:3px solid white;border-radius:14px;padding:4px;background:white;box-shadow:0 10px 25px #304c4d44;transform:translate(-50%,-50%) rotate(6deg);pointer-events:none;user-select:none;-webkit-touch-callout:none;overflow:hidden}
.card-drag-preview img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;border-radius:8px;pointer-events:none}
@media(prefers-reduced-motion:reduce){.card-drag-preview{transform:translate(-50%,-50%)}}
/* Decorative toy-book spine. It has no controls or category labels. */
.toy-app{grid-template-columns:54px minmax(0,1fr) 92px}
.toy-spine{position:relative;min-height:0;height:100%;pointer-events:none;user-select:none}
.spine-axle{position:absolute;top:19px;bottom:18px;left:50%;width:29px;transform:translateX(-50%);border-radius:18px;background:linear-gradient(90deg,#d5ddd9,#fff 32%,#f5f8f4 67%,#bcccbc);box-shadow:2px 3px 4px #426d372b,inset 2px 0 #fff9}
.spine-cap{position:absolute;left:3px;right:3px;height:42px;background:linear-gradient(100deg,#c6eb8b,#91d34d 44%,#70b43a);box-shadow:inset 0 4px 3px #e3f8b8aa,inset -4px 0 3px #598e3322,0 4px 0 #5b9c32}
.spine-cap--top{top:0;border-radius:25px 25px 12px 12px}.spine-cap--bottom{bottom:5px;border-radius:12px 12px 25px 25px}
.spine-rings{position:absolute;inset:51px -1px 57px;display:grid;grid-template-rows:repeat(8,minmax(0,1fr));gap:7px}
.spine-ring{position:relative;min-height:0;border-radius:15px 11px 11px 15px;border:1px solid #fff5;background:linear-gradient(90deg,#fff5,var(--ring) 23%,var(--ring) 67%,var(--ring-dark));box-shadow:inset 0 4px 1px #fff6,inset 0 -5px 0 var(--ring-dark),0 3px 1px #4f8c2d;overflow:hidden}
.spine-ring::before{content:'';position:absolute;left:7px;top:9px;bottom:12px;width:7px;max-height:28px;border-radius:8px;background:linear-gradient(#fffc,#fff2)}
.spine-ring::after{content:'';position:absolute;right:5px;top:8px;bottom:9px;width:3px;border-radius:4px;background:#fff3}
.basket-done-star{position:absolute;right:-7px;top:-14px;width:32px;height:32px;display:grid;place-items:center;border:3px solid #fff5c9;border-radius:50%;background:linear-gradient(#ffe992,#ffd04a);box-shadow:0 3px #c9a63f;color:#b58a23;font-size:20px;opacity:0;visibility:hidden;transform:scale(.6);pointer-events:none;z-index:3}
.game-basket.is-full .basket-done-star{visibility:visible;opacity:1;transform:scale(1);animation:pocket-pop .35s ease-out}
/* A surprise sticker is awarded once per completed round, then added to a local album. */
.celebration.center-panel{height:auto;flex:1;gap:10px}.celebration .reward-stars{font-size:42px;line-height:1.1;letter-spacing:6px}.celebration h2{font-size:31px}
.sticker-reward{display:flex;align-items:center;justify-content:center;gap:18px;max-width:100%;padding:6px 4px 10px;flex-shrink:0}
.surprise-sticker{display:grid;place-items:center;width:104px;height:104px;flex-shrink:0;padding:5px;border:5px solid white;border-radius:29px;background:var(--sticker-color,#fff0bd);box-shadow:0 5px #ddce9c,0 8px 15px #8e9f5a19;transform:rotate(-6deg);animation:sticker-reveal .6s ease-out}
.sticker-art{width:100%;height:100%;fill:none;stroke:#9d8a5d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sticker-info{min-width:0;text-align:left}.sticker-info>strong{display:block;color:#607f43;font-size:20px;line-height:1.35}.sticker-info>small{display:block;margin:5px 0 8px;color:#899966;font-size:12px;line-height:1.4}
.sticker-album{display:flex;gap:6px}.sticker-mini{display:block;width:30px;height:30px;padding:2px;background:#eeeccf;border:2px solid #fff9;border-radius:10px}.sticker-mini .sticker-art{opacity:.2;filter:grayscale(1)}.sticker-mini.collected{background:#fff9da;border-color:#fff;box-shadow:0 2px #d9d5ab}.sticker-mini.collected .sticker-art{opacity:1;filter:none}
@keyframes sticker-reveal{0%{opacity:0;transform:rotate(-18deg) scale(.55)}65%{opacity:1;transform:rotate(1deg) scale(1.06)}100%{opacity:1;transform:rotate(-6deg) scale(1)}}
@media(min-width:1600px){.toy-app{grid-template-columns:68px minmax(0,1fr) 116px}.spine-rings{inset-inline:3px}.spine-ring::before{width:9px;left:10px}}
@media(min-width:700px) and (max-width:1100px){.toy-app{grid-template-columns:44px minmax(0,1fr) 78px}.spine-rings{gap:6px;inset-inline:0}.spine-axle{width:24px}.spine-cap{left:0;right:0;height:37px}.spine-rings{top:46px;bottom:50px}}
@media(max-width:699px){.toy-app{grid-template-columns:minmax(0,1fr)}.toy-spine{display:none}.basket-done-star{width:23px;height:23px;font-size:14px;border-width:2px;top:-16px;right:-3px}.celebration.center-panel{gap:8px}.celebration .reward-stars{font-size:30px;letter-spacing:3px}.celebration h2{font-size:26px}.sticker-reward{gap:12px;padding:3px 0 7px}.surprise-sticker{width:78px;height:78px;border-width:4px;border-radius:23px;padding:3px}.sticker-info>strong{font-size:16px}.sticker-info>small{font-size:10px;margin:4px 0 6px}.sticker-album{gap:4px}.sticker-mini{width:24px;height:24px;padding:1px;border-radius:8px}}
@media(max-height:650px){.spine-rings{gap:5px;top:42px;bottom:46px}.spine-cap{height:33px}.celebration.center-panel{gap:6px}.celebration .reward-stars{font-size:27px}.celebration h2{font-size:24px}.surprise-sticker{width:72px;height:72px;border-width:3px;border-radius:20px}.sticker-info>strong{font-size:16px}.sticker-info>small{font-size:10px;margin:3px 0 5px}.sticker-mini{width:24px;height:24px}.sticker-reward{gap:12px;padding:2px 0 5px}}
@media(max-height:520px) and (orientation:landscape){.toy-spine{display:none}.toy-app{grid-template-columns:minmax(0,1fr) 70px}.celebration.center-panel{gap:5px}.celebration .reward-stars{font-size:22px}.celebration h2{font-size:23px}.celebration p{font-size:11px}.sticker-reward{padding:0 0 4px}.surprise-sticker{width:64px;height:64px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.spine-ring{height:clamp(24px,4.5dvh,46px);max-height:84%;align-self:center;border-radius:12px 9px 9px 12px}
.spine-axle{width:34px}
@media(min-width:700px) and (max-width:1100px){.spine-axle{width:29px}}
