.toy-games{width:100%;max-width:820px;margin:0 auto;text-align:center;color:#34495f}.toy-selection{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:12px}.toy-course{border:0;border-radius:30px;background:#e5f3fa;padding:24px;color:inherit;font:inherit;cursor:pointer;box-shadow:0 6px 0 #c4e1eb}.toy-course:nth-child(2){background:#fff0cb;box-shadow:0 6px 0 #eedbae}.toy-course svg{width:145px;max-width:80%;height:auto}.toy-course h2{font-size:30px;margin:12px 0}.toy-course p{margin:8px;font-size:18px}.toy-button{border:0;background:#e8f4f8;border-radius:18px;min-height:48px;padding:10px 18px;font:inherit;font-weight:800;color:#446879;cursor:pointer}.toy-button:disabled{opacity:.45;cursor:default}.toy-button:active,.toy-course:active{transform:translateY(3px)}.toy-modes,.toy-toolbar{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:14px auto}.toy-modes button[aria-pressed=true]{background:#d4eddd;outline:3px solid #91bca4}.toy-title{font-size:26px;margin:0 0 12px}.toy-turn{min-height:44px;display:flex;justify-content:center;align-items:center;gap:14px;font-size:20px;font-weight:800;margin:12px}.toy-turn>.toy-piece{width:28px;height:28px}.toy-board{display:grid;position:relative;margin:16px auto;user-select:none}.tic-board{grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;border-radius:28px;background:#fbe9c7;width:min(100%,410px);box-sizing:border-box}.toy-cell{position:relative;display:flex;align-items:center;justify-content:center;border:0;padding:0;cursor:pointer;aspect-ratio:1;background:#fffaf0;border-radius:18px}.toy-cell:disabled{cursor:default}.toy-piece{display:block;width:65%;height:65%;border-radius:50%;box-sizing:border-box;pointer-events:none}.toy-piece.blue{background:#7bbfd7;box-shadow:inset 0 -5px 0 #5c9fbb}.toy-piece.coral{background:#e89d9e;box-shadow:inset 0 -5px 0 #cc858e}.tic-board .toy-piece.blue{background:transparent;border:12px solid #7bbfd7;box-shadow:none}.toy-piece.cross{position:relative;border-radius:0;background:transparent;box-shadow:none}.toy-piece.cross:before,.toy-piece.cross:after{content:'';position:absolute;left:43%;top:0;width:16%;height:100%;border-radius:10px;background:#e89d9e;transform:rotate(45deg)}.toy-piece.cross:after{transform:rotate(-45deg)}.just-placed{animation:toy-pop .32s ease-out}.winning{background:#d9edcc}.winning .toy-piece{animation:toy-wiggle .7s ease-in-out 2}.gomoku-board{grid-template-columns:repeat(15,1fr);width:min(100%,620px);background:#f8dfb3;padding:10px;border-radius:20px;box-sizing:border-box;box-shadow:0 5px 0 #e9c894}.gomoku-board .toy-cell{border-radius:0;background:linear-gradient(#caa675,#caa675) center/1px 100% no-repeat,linear-gradient(#caa675,#caa675) center/100% 1px no-repeat;touch-action:none}.gomoku-board .toy-piece{width:85%;height:85%;box-shadow:inset 0 -2px 0 #507d96}.gomoku-board .preview:after{content:'';width:85%;height:85%;position:absolute;border-radius:50%;background:#7bbfd780;border:2px dashed #4d8ca7;box-sizing:border-box}.gomoku-board .winning{background-color:#cfe9ba}.toy-cell:focus-visible,.toy-button:focus-visible,.toy-course:focus-visible{outline:4px solid #537ba3;outline-offset:3px}.toy-tip{font-size:15px;color:#637989}.toy-finish{position:relative;overflow:hidden;border-radius:26px;background:#e5f2e8;padding:18px;margin:18px auto 0;max-width:460px;animation:toy-reveal .35s ease-out}.toy-finish.learn{background:#eaf0fb}.toy-finish.draw{background:#f6eafa}.toy-friend{width:84px;height:84px;animation:toy-bounce .5s ease-out 2}.learn .toy-friend{animation:toy-wave .7s ease-in-out 2}.draw .toy-friend{animation:toy-wiggle .7s ease-in-out 2}.toy-finish h3{font-size:24px;margin:6px}.toy-finish p{font-size:16px;line-height:1.6}.toy-paper{position:absolute;left:var(--x);top:-15px;width:9px;height:17px;border-radius:3px;pointer-events:none;animation:toy-confetti 1s ease-out forwards;transform:rotate(var(--angle))}.toy-finish .toy-button{background:#fff}.toy-finish>*:not(.toy-paper){position:relative;z-index:1}@keyframes toy-pop{0%{transform:scale(.3)}65%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes toy-wiggle{0%,100%{transform:rotate(0)}30%{transform:rotate(-7deg)}70%{transform:rotate(7deg)}}@keyframes toy-bounce{50%{transform:translateY(-12px)}}@keyframes toy-wave{50%{transform:rotate(-9deg) translateY(-3px)}}@keyframes toy-confetti{to{top:100%;transform:rotate(calc(var(--angle) + 140deg));opacity:0}}@keyframes toy-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media(max-width:600px){.toy-selection{gap:14px;padding:0}.toy-course{padding:18px 8px}.toy-course h2{font-size:24px}.toy-course p{font-size:15px}.toy-toolbar{gap:8px}.toy-toolbar .toy-button{padding:10px 12px}.tic-board{gap:9px;padding:12px;width:min(100%,350px)}.tic-board .toy-piece.blue{border-width:10px}.gomoku-board{padding:5px}.toy-turn{font-size:18px}.toy-finish h3{font-size:21px}}@media(prefers-reduced-motion:reduce){.toy-games *{animation:none!important;transition:none!important}}
.lesson-tabs .tab:nth-child(5){grid-column:span 2}@media(max-width:900px){.lesson-tabs .tab:last-child{grid-column:auto;width:auto;justify-self:stretch}.lesson-tabs .tab:nth-child(5){grid-column:auto}}
.app[data-scene="games"] .scene-nav{position:static;transform:none;margin:24px auto 0;width:max-content;max-width:100%}
.app[data-scene="games"] .board{margin-bottom:0}
@media(orientation:landscape) and (min-width:700px){.gomoku-board{width:min(100%,620px,calc(100svh - 330px))}}
.toy-modes .toy-button{display:flex;align-items:center;gap:8px}.toy-modes svg{width:30px;height:30px}
#gamesTab{background:#ffe2cd;--tab-color:#e9ab7d}#gamesTab:after{background:#e9ab7d}
.toy-parent{display:flex;flex-wrap:wrap;gap:16px;margin:8px 0 16px}.toy-parent label{display:flex;align-items:center;gap:8px}.toy-parent select{font:inherit;padding:8px;border:1px solid #c9dde6;border-radius:10px}.toy-parent input{width:20px;height:20px;accent-color:#5c9fbb}
.gomoku-board{grid-template-columns:repeat(var(--board-size,15),1fr)}.toy-hint{display:flex;align-items:center;gap:6px}.toy-hint svg{width:27px;height:27px}.toy-cell.hinted:after{content:'';position:absolute;inset:12%;border:3px dashed #d89a35;border-radius:50%;background:#ffda7055;pointer-events:none;animation:toy-hint-pulse 1s ease-in-out 3}.your-turn>.toy-piece{animation:toy-breathe 1.8s ease-in-out 3}
.toy-tutorial{padding:18px;margin:0 auto 18px;max-width:460px;border-radius:24px;background:#fff1ca}.toy-demo{display:flex;gap:12px;justify-content:center;position:relative;padding:16px}.toy-demo:after{content:'';position:absolute;left:10%;right:10%;top:50%;height:5px;border-radius:3px;background:#83b98b;animation:toy-demo-line 2s ease-out forwards}.toy-demo>.toy-piece{position:relative;z-index:1;width:42px;height:42px;animation:toy-demo-piece .3s ease-out both}.toy-tutorial p{font-weight:800;font-size:18px}.toy-help-offer{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px auto;background:#fff1ca}.toy-help-offer svg{width:38px;height:38px}
@keyframes toy-demo-piece{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}@keyframes toy-demo-line{0%,65%{transform:scaleX(0)}100%{transform:scaleX(1)}}@keyframes toy-breathe{50%{transform:scale(1.15);filter:brightness(1.1)}}@keyframes toy-hint-pulse{50%{transform:scale(.9);background:#ffda7099}}
.parent-save-bar{position:sticky;bottom:-18px;background:#fff;padding:12px 0 8px;border-top:1px solid #ddeaf0;z-index:2}.parent-save-bar p{font-size:14px}.parent-save-bar button{border:0;border-radius:12px;padding:12px 16px;min-height:44px;color:#345970;background:#d5eddd;font:inherit;font-weight:800;margin:4px}.parent-save-bar button:disabled{opacity:.5}.parent-close-prompt{background:#fff0d3;padding:10px;border-radius:12px}.toy-settings-note{width:100%;font-size:13px}.parent-game-group h3{margin:14px 0 8px}.toy-selection{grid-template-columns:repeat(3,minmax(0,1fr))}.toy-course h2{font-size:24px}.toy-course svg{width:110px}.toy-course:nth-child(3){background:#e9e1f7;box-shadow:0 6px 0 #d3c5e5}.toy-course:nth-child(4){background:#e1efda;box-shadow:0 6px 0 #c4d9b9}.toy-course:nth-child(5){background:#ffe2cd;box-shadow:0 6px 0 #efc9aa}.fun-play{position:relative;overflow:hidden;min-height:200px;padding:18px;border-radius:24px;background:#fff5de}.fun-status{min-height:26px;font-size:18px;font-weight:800}.memory-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.memory-card{position:relative;border:0;background:#86bad0;border-radius:20px;min-height:130px;cursor:pointer;font:inherit;box-shadow:0 5px 0 #6497af}.memory-card>span{display:flex;position:absolute;inset:0;flex-direction:column;align-items:center;justify-content:center;backface-visibility:hidden;transition:transform .35s}.memory-card svg{width:80px;height:80px}.memory-front{transform:rotateY(180deg);background:#fffaf0;border-radius:20px}.memory-front strong{font-size:22px}.flipped .memory-back{transform:rotateY(180deg)}.flipped .memory-front{transform:rotateY(0)}.matched{box-shadow:0 5px 0 #9cb989}.matched .memory-front{background:#dceecf}.home-friend svg{width:110px;height:110px;animation:toy-bounce .5s 2}.animal-homes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.animal-home{position:relative;border:0;border-radius:20px;background:#fffaf0;padding:14px;cursor:pointer;font:inherit;font-weight:800;color:#446879}.animal-home>svg{width:130px;max-width:80%}.animal-home strong{display:block;font-size:20px}.home-sign{position:absolute;right:12px;top:10px;background:#e6f2f5;border-radius:50%;padding:5px}.home-sign svg{width:40px;height:40px}.home-arrival>span:last-child{position:absolute;inset:10% 25%;animation:animal-arrive .65s ease-out}.home-arrival>span:last-child svg{width:100%;height:100%}.fun-success{animation:toy-reveal .4s ease-out}.fun-gentle{animation:toy-wave .4s 1}.fun-train-track{display:flex;align-items:flex-end;gap:5px;margin:25px 0;border-bottom:5px dashed #b9c5b3;padding-bottom:8px}.train-engine{flex:0 0 75px}.train-engine svg{width:75px}.train-carriage{flex:1;min-width:0;background:#8bc3d8;min-height:65px;border-radius:12px 12px 8px 8px;padding:8px 2px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;position:relative}.train-carriage:after{content:'';position:absolute;bottom:-12px;left:15%;width:14px;height:14px;border-radius:50%;background:#60798d;box-shadow:28px 0 #60798d}.train-carriage:nth-child(odd){background:#f3c488}.train-tickets{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:35px 0}.train-ticket{border:0;border-radius:18px;background:#fffaf0;color:#446879;font:inherit;font-size:26px;font-weight:800;min-width:76px;min-height:76px;padding:12px;cursor:pointer;box-shadow:0 4px 0 #e5d5b1}.train-ticket:disabled{opacity:.3;cursor:default}.ticket-day{display:block;font-size:28px}.train-ticket:has(.ticket-day){font-size:15px}.ticket-arrival{animation:toy-pop .35s}.train-depart{animation:train-depart 1.1s ease-in forwards}.fun-play button:focus-visible{outline:4px solid #537ba3;outline-offset:2px}@keyframes animal-arrive{from{opacity:0;transform:translateY(-50px) scale(.5)}to{opacity:1;transform:none}}@keyframes train-depart{to{transform:translateX(110%);opacity:.2}}
@media(max-width:900px){.toy-selection{grid-template-columns:repeat(2,minmax(0,1fr))}.toy-course:last-child{grid-column:1/-1;max-width:380px;width:100%;justify-self:center;box-sizing:border-box}}@media(max-width:600px){.toy-course h2{font-size:20px}.memory-table{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-card{min-height:130px}.fun-play{padding:12px}.train-engine{flex-basis:42px}.train-engine svg{width:42px}.train-carriage{font-size:12px;min-height:48px}.train-carriage:after{width:8px;height:8px;bottom:-8px;box-shadow:15px 0 #60798d}.animal-home>svg{width:100px}.home-sign{right:5px;top:5px}.home-sign svg{width:30px;height:30px}}
.memory-table:has(.memory-card:nth-child(6)):not(:has(.memory-card:nth-child(7))){grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:600px){.memory-table:has(.memory-card:nth-child(6)):not(:has(.memory-card:nth-child(7))){grid-template-columns:repeat(2,minmax(0,1fr))}}

.toy-piece.black{background:#292929;border:1px solid #171717;box-shadow:inset 0 -4px 0 #111}.toy-piece.white{background:#fff;border:2px solid #aaa;box-shadow:inset 0 -4px 0 #ddd}.gomoku-board .toy-piece.black{box-shadow:inset 0 -2px 0 #111}.gomoku-board .toy-piece.white{box-shadow:inset 0 -2px 0 #ddd}.gomoku-board[data-turn="1"] .preview:after{background:#29292980;border-color:#292929}.gomoku-board[data-turn="2"] .preview:after{background:#ffffffb0;border-color:#888}

.toy-nudge{animation:toy-wiggle .3s ease-in-out}.toy-cell.winning:not(:disabled){cursor:pointer}
.math-progress{display:flex;justify-content:center;gap:10px;margin:10px}.math-progress span{width:15px;height:15px;border-radius:50%;background:#d5e6ed}.math-progress .done{background:#77b497}.math-play{min-height:260px}.math-play button,.math-group-end button{font:inherit;color:inherit;cursor:pointer}.math-play button:disabled{cursor:default}.math-shape{width:100%;height:100%;max-height:95px}.math-strand{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;padding:24px 0;margin:10px 0 20px;background:linear-gradient(#d6baa0,#d6baa0) center/90% 3px no-repeat}.math-strand>span{display:grid;place-items:center;width:64px;height:64px;background:#fff5de}.math-gap{border:3px dashed #aec3c9;border-radius:50%;font-size:30px;font-weight:800}.math-choices{display:flex;justify-content:center;flex-wrap:wrap;gap:16px}.math-choice{width:90px;height:90px;border:0;border-radius:18px;background:#fffaf1;padding:8px;box-shadow:0 4px 0 #dfcfae}.math-choice:disabled{opacity:.25}.math-choices .math-choice:active{transform:translateY(3px)}.math-play .math-hint{outline:4px solid #e5b94f;outline-offset:3px}.math-correct{animation:toy-pop .35s ease-out}.math-picnic{display:flex;justify-content:center;flex-wrap:wrap;gap:16px}.math-bear-seat{border:0;background:#e8f1dd;padding:12px;border-radius:24px;width:125px}.math-bear-seat>svg{width:100%;height:95px}.math-plate{display:grid;place-items:center;height:65px;background:#fffaf1;border:3px solid #d7ddc2;border-radius:50%;margin-top:8px}.math-plate svg{width:60px;height:60px;animation:toy-pop .3s ease-out}.math-fed{background:#d4e9cb}.math-basket{display:flex;justify-content:center;gap:8px;min-height:70px;margin:24px auto 0;border-bottom:6px solid #b99d7a;max-width:440px}.math-basket span{width:60px;height:60px}.math-basket svg{width:100%}.math-number-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.math-number-card{position:relative;min-height:140px;border:3px solid transparent;border-radius:20px;background:#fffaf1;padding:12px}.math-number-card strong{font-size:54px}.math-dots{display:grid;grid-template-columns:repeat(2,25px);justify-content:center;gap:12px}.math-dots i{display:block;width:25px;height:25px;border-radius:50%;background:#c27654}.math-card-content{display:grid;place-items:center;min-height:104px}.math-card-cover{display:none}.math-card-cover svg{width:85px}.concealed:not(.flipped):not(.matched) .math-card-cover{display:grid;place-items:center}.concealed:not(.flipped):not(.matched) .math-card-content{display:none}.math-number-card.matched{background:#dceecf;opacity:.65}.math-selected{border-color:#6ba6c1!important;outline:3px solid #6ba6c1;outline-offset:2px}.math-scene{position:relative;width:min(100%,320px);aspect-ratio:1;margin:0 auto 25px;background:#e2f2f8;border-radius:24px}.math-scene.boat{background:linear-gradient(#e2f2f8 70%,#b2dce8 70%)}.math-slot{position:absolute;border:0;background:transparent;padding:0}.math-slot svg{max-height:none;stroke-dasharray:5 4}.math-slot[data-filled=yes] svg{stroke-dasharray:none;animation:toy-pop .35s ease-out}.math-slot.math-selected{outline:none}.math-slot.math-selected svg{filter:drop-shadow(0 0 4px #6ba6c1)}.math-group-end{display:flex;justify-content:center;gap:16px;margin:20px 0}.math-group-end button{display:flex;align-items:center;gap:8px;background:#d4eddd;min-height:64px}.math-group-end svg,.math-play~.math-group-end svg,.toy-toolbar button>svg{width:32px;height:32px}.toy-course:nth-child(6){background:#ffe5df}.toy-course:nth-child(7){background:#f8e9cb}.toy-course:nth-child(8){background:#ddeef4}.toy-course:nth-child(9){background:#dbeedc}@media(max-width:900px){.toy-selection .toy-course:last-child{grid-column:auto;max-width:none}.math-number-card{min-height:125px}}@media(max-width:600px){.math-strand>span{width:43px;height:43px}.math-strand{gap:5px;padding:15px 0}.math-choice{width:74px;height:74px}.math-bear-seat{width:95px;padding:8px}.math-bear-seat>svg{height:70px}.math-number-table{grid-template-columns:repeat(2,minmax(0,1fr))}.math-choices{gap:12px}.math-play{min-height:230px}.math-group-end{gap:8px}.math-number-card{min-height:120px}}@media(prefers-reduced-motion:reduce){.math-correct,.math-slot svg,.math-plate svg{animation:none!important}}
.math-slot svg{width:100%;height:100%}.math-scene.house:after{content:'';position:absolute;left:46%;top:83%;width:10%;height:12%;border-radius:3px 3px 0 0;background:#af987b;pointer-events:none}.math-slot.math-selected svg{stroke-width:3;filter:drop-shadow(0 0 5px #e1ae47)}@media(min-width:900px) and (max-height:900px){.math-shapes{display:flex;justify-content:center;align-items:center;gap:35px;min-height:270px}.math-shapes .math-scene{width:270px;flex:0 0 270px;margin:0}.math-shapes .math-choices{max-width:250px;align-content:center}.math-shapes .math-choice{width:85px;height:85px}.math-picnic .math-bear-seat{width:110px}.math-number-card{min-height:120px}.math-number-card .math-card-content{min-height:85px}.math-play{padding:16px}}
