.modal:has(.game-shell){width:min(1130px,calc(100% - 20px))}.lesson-layout:has(.game-shell){grid-template-columns:135px 1fr}.lesson-content:has(.game-shell){padding:18px}.game-shell{background:#fff;border:1px solid #dcd9e5;border-radius:15px;overflow:hidden}.game-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 16px;background:#f2edf9;font-size:12px}.game-bar b{font-family:Fredoka;font-size:18px}.game-stage{position:relative;background:#b7c8a0;aspect-ratio:800/450;touch-action:none}.game-stage canvas{display:block;width:100%;height:100%}.game-hint{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:#fffef2ed;padding:8px 14px;border-radius:20px;font-size:11px;text-align:center;pointer-events:none;white-space:nowrap}.game-tools{padding:12px 16px;border-top:1px solid #eee;display:flex;flex-wrap:wrap;gap:7px}.game-tools button{font-size:11px;border:1px solid #ddd3e7;background:#faf7ff;color:#614b7d;padding:8px 10px;border-radius:9px}.game-panel{padding:18px;background:#fffcf3;border-top:1px solid #e9e1cd;min-height:150px}.game-panel h3{font-size:23px;margin:0 0 8px}.game-panel p{font-size:13px;line-height:1.7;margin:8px 0}.game-panel .choices{grid-template-columns:repeat(2,1fr);margin-top:10px}.game-panel .choice{padding:10px;font-size:12px}.mission-dots{display:flex;gap:5px}.mission-dots span{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:10px;background:#ddd4e9;color:#755d92}.mission-dots .done{background:#577e54;color:white}.inventory{display:flex;gap:7px;font-size:11px;align-items:center;flex-wrap:wrap}.inventory span{background:#f8f2df;border-radius:7px;padding:5px 7px}.game-message{color:#476e45;font-size:13px;min-height:22px}.story-scene{border-radius:15px;overflow:hidden;background:#ece4f5;height:150px;display:grid;place-items:center;position:relative}.story-scene:before{content:'';width:110px;height:110px;background:#f0cc80;border-radius:50%;position:absolute;right:30px;top:18px;animation:breathe 6s ease-in-out infinite}.story-scene:after{content:'';position:absolute;bottom:-55px;width:120%;height:120px;background:#91ad7d;border-radius:50%}.story-scene span{font-size:65px;position:relative;z-index:1;animation:float 4s ease-in-out infinite}.chapter-counter{font-size:11px;color:#7b6e8d}.chapter-nav{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:8px}.chapter-dots{display:flex;gap:5px}.chapter-dots i{height:7px;width:7px;background:#dfd6e9;border-radius:50%}.chapter-dots i.on{background:#7253b5;width:18px}.reflect{background:#eaf0e6;border-radius:10px;padding:13px 16px;font-size:13px;line-height:1.6}.game-win{animation:pop .45s ease-out}.game-options .selected{background:#ded0f2}.game-controls-note{font-size:10px;color:#7e7688;margin:6px 0 0}.game-reset{border:0;background:none;color:#7e6b95;text-decoration:underline;font-size:10px}.lesson-card:first-child .card-art svg{animation:landscape 8s ease-in-out infinite}.hero-art svg{animation:float 7s ease-in-out infinite}.float-label{animation:float 5s ease-in-out infinite}@keyframes float{50%{transform:translateY(-8px)}}@keyframes breathe{50%{transform:scale(1.07);opacity:.8}}@keyframes pop{0%{transform:scale(.95)}70%{transform:scale(1.02)}100%{transform:scale(1)}}@keyframes landscape{50%{transform:scale(1.025)}}@media(max-width:650px){.lesson-layout:has(.game-shell){grid-template-columns:1fr}.game-panel .choices{grid-template-columns:1fr}.game-bar{gap:6px;flex-wrap:wrap}.game-stage{aspect-ratio:800/520}.game-hint{font-size:9px;bottom:5px;max-width:95%;white-space:normal;width:max-content}.game-panel{padding:14px}.game-tools{padding:10px}.game-tools button{font-size:10px}.lesson-content:has(.game-shell){padding:14px 8px}.story-scene{height:130px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
@media print{#lesson{display:none!important}.parent-content details{display:block}.parent-content details>summary~*{display:block!important}}
