/* Storybook edition: self-contained, no fonts or images to download. */
:root{font-family:'Trebuchet MS','Arial Rounded MT Bold',Arial,sans-serif;color:#343765;background:#c1edfc}body{background:radial-gradient(ellipse at 8% 0%,#fff7c9 0,transparent 30%),linear-gradient(#bdefff 0%,#e5f9ff 45%,#dcf3b9 100%);min-height:100vh}body:before,body:after{content:'';position:fixed;pointer-events:none;z-index:-1;border-radius:50%;background:#ffffff75;width:380px;height:105px;top:110px;left:-80px;box-shadow:300px -60px 0 20px #ffffff55,900px 25px 0 5px #ffffff80}body:after{top:auto;bottom:-70px;left:-5%;width:65%;height:210px;background:#9bd47b;box-shadow:600px 10px 0 20px #aadd81}header{max-width:none;height:88px;padding:10px max(26px,calc((100vw - 1420px)/2));background:#ffffffdc;border:0;box-shadow:0 4px 0 #ffffff66,0 9px 30px #258db21a}.brand{color:#6555b4;letter-spacing:1.5px;font-size:31px;text-shadow:1px 2px #e6dffa}.brand svg{height:70px;width:70px}.brand small{color:#489bb1;font-size:10px;text-shadow:none}.headActions button{background:#f5f0ff;border:2px solid #ddd3f7;border-bottom:4px solid #d0c2ed;font-weight:bold;color:#7360ad}.headActions #sound{font-size:23px;min-width:48px}main{padding-top:24px;max-width:1500px}.intro{margin-bottom:22px}.intro h1{font-size:43px;color:#5750a3;text-shadow:0 3px white;letter-spacing:-1.5px;margin:7px 0}.intro .eyebrow{color:#338da6;letter-spacing:1.8px}.intro p{color:#4a7d98;font-size:15px}.total{position:relative;border:3px solid white;background:linear-gradient(130deg,#fff7bb,#ffd76c);box-shadow:0 5px 0 #e2b950,0 8px 20px #d4a53a22;color:#aa671c;border-radius:23px;font-weight:900;padding:15px 24px;transform:rotate(3deg);font-size:30px}.total small{font-weight:700;color:#ad792c}#worlds{gap:12px;padding:3px 3px 8px;margin-bottom:14px}#worlds button{flex:1;justify-content:center;border:3px solid white;border-bottom:5px solid #c4d5d2;border-radius:18px;background:#f6fff0;color:#477549;box-shadow:0 3px 8px #37768d0e;padding:12px;font-weight:800;font-size:12px;transition:transform .2s}#worlds button:nth-child(2){background:#fff0d8;color:#a86129;border-bottom-color:#edc393}#worlds button:nth-child(3){background:#dff8ff;color:#2687a7;border-bottom-color:#8cd2e8}#worlds button:nth-child(4){background:#f0e5ff;color:#8b57b6;border-bottom-color:#ccb1e6}#worlds button:nth-child(5){background:#fff5c9;color:#a27b22;border-bottom-color:#e3c166}#worlds button.active{background:linear-gradient(135deg,#8263d5,#a183ed);border-color:#fff;border-bottom-color:#7354b6;color:white;transform:translateY(-2px)}#worlds b{font-size:24px;line-height:1}#worlds small{display:flex;background:#ffffff66;border-radius:100%;width:22px;height:22px;align-items:center;justify-content:center}.playLayout{grid-template-columns:184px minmax(300px,1fr) 250px;gap:18px}.levelPanel,.codePanel,.gamePanel{border:3px solid white;box-shadow:0 7px 0 #9fc9c559,0 12px 24px #5296a510;border-radius:27px}.levelPanel{background:linear-gradient(#fffdf7,#fff6dd)}.codePanel{background:linear-gradient(#fff,#f6eeff)}.gamePanel{background:#fffef7}.panelTitle{font-size:15px;color:#655391}.panelTitle>span+span{background:#eadcff;color:#8d68b4;padding:4px 7px;border-radius:10px}#levels{gap:8px}#levels button{border:2px solid #ede4ce;border-bottom:4px solid #d9cfb2;background:#fffdf5;color:#94794a;font-size:15px;font-weight:bold;border-radius:14px;min-height:49px}#levels button:has(small:not(:empty)){box-shadow:0 2px 3px #c5ac5a13}#levels button.current{background:linear-gradient(#ffe57f,#ffc347);color:#945724;border:2px solid #fff;border-bottom:4px solid #e4a73e;box-shadow:0 0 0 3px #ffda6d;transform:rotate(-5deg)}#levels small{font-size:10px}.friend{background:radial-gradient(circle,#fff8bf 50%,transparent 51%);margin:18px -5px 0}.friend svg{width:115px;height:115px;filter:drop-shadow(0 5px 0 #d9b56725)}#worldDescription{color:#a28c5c;font-size:12px;line-height:1.65}.quiet{color:#8a74a7;font-weight:bold;font-size:12px}#teacher{border-top-color:#f1e2ba;font-size:10px}.gameTop{padding:18px 22px 15px}.gameTop .eyebrow{color:#b49a55;font-size:10px}h2{color:#625199;font-size:23px}.gameTop #hint{background:#fff3b9;color:#b0842f;border:2px solid #ffe799;border-bottom:4px solid #ecd184;border-radius:13px;padding:8px 12px}#scene{margin:0 10px;border:3px solid #e1f0bc;border-radius:20px;background:#b9edfc}#board{background:#b9edfc}#speech{position:relative;bottom:auto;left:auto;right:auto;border:0;border-top:3px solid #f2d989;border-radius:0;padding:12px 15px;background:#fff7d9;color:#8c703d;box-shadow:none;font-weight:700;font-size:12px;min-height:43px}.legend{color:#8d8e65;padding:13px 7px;font-size:11px}.legend span:first-child{color:#b58c32}.subtle{color:#9c89ad;font-size:12px}#commands{border:2px dashed #d7c6ef;background:#f3eaff;border-radius:17px;min-height:147px;padding:10px;gap:7px}#commands button{background:linear-gradient(#fff,#e9f9ff);border:2px solid #bcdfeb;border-bottom:4px solid #9dcbdc;color:#4b93b2;width:39px;height:42px;font-weight:900;border-radius:12px;box-shadow:none}#commands button.executing{background:#ffe68d;border-color:#eabd50;color:#a66e25;transform:scale(1.13)}.empty{color:#aa8bc5;font-size:12px;font-weight:bold}.palette{gap:10px}.palette button{font-weight:900;font-size:31px;height:65px;border:2px solid #b0d6f6;border-bottom:5px solid #75b7e5;background:linear-gradient(#e2f5ff,#b9e6ff);color:#4289bb;border-radius:16px;box-shadow:0 3px 5px #7888b010}.palette button:nth-child(2){border-color:#c4b4ee;border-bottom-color:#a48ad5;background:linear-gradient(#f2eaff,#ddd0fb);color:#8e69ba}.palette button:nth-child(3){border-color:#fac39f;border-bottom-color:#eaa477;background:linear-gradient(#fff0da,#ffdbad);color:#ca8a48}.palette button:nth-child(4){border-color:#b6dba6;border-bottom-color:#8dc174;background:linear-gradient(#f1ffdf,#d1f4b5);color:#7ca256}.palette small{font-weight:800;font-size:10px}.repeatBox{color:#9c82b2}.repeatBox select{border:2px solid #dfd1f1;color:#8f6fad;border-radius:10px;padding:6px}.run{background:linear-gradient(#a7dc68,#80c448);border:2px solid #b9e486;border-bottom:6px solid #609d38;color:#fff;text-shadow:0 2px #68a83f;font-size:16px;border-radius:17px;box-shadow:0 4px 12px #71ab3526;padding:15px 6px}.run:hover{background:linear-gradient(#b9e77e,#93d25a)}.undo{color:#a28cba}.tip{background:#fff8dd;border:1px solid #f2e3aa;border-radius:13px;color:#ad985e;padding:10px;font-size:11px;position:relative}.tip:before{content:'✦';color:#edba45;font-size:18px;position:absolute;left:9px;top:12px}footer{color:#649e78;font-size:10px}dialog{border:5px solid white;background:linear-gradient(#f1e8ff,#fffdf5);border-radius:32px;color:#826997;overflow:visible}dialog::backdrop{background:#36487c90;backdrop-filter:blur(6px)}dialog h2{text-align:center;color:#8060b3}dialog .close{background:#e7dcf9;color:#9479bd;border:2px solid white;width:37px;height:37px;padding:0;border-radius:50%}.starsWin{color:#ffc438;text-shadow:0 3px #dda23b,2px 0 white,-2px 0 white;font-size:48px;letter-spacing:8px}.heroWolf svg{filter:drop-shadow(0 7px 0 #b9a2ce25);height:145px!important}.heroWolf{animation:happy .7s ease-in-out infinite alternate}.modalButtons button:not(.run){background:#e6d9fa;color:#9674bd}.confetti{position:fixed;z-index:9999;top:-30px;pointer-events:none;border-radius:3px;animation:confetti-fall 2.7s ease-in forwards}.star-spark{animation:star-glow 1.7s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}.butterfly{animation:flutter 2.4s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}.cloud-drift{animation:cloud-drift 5s ease-in-out infinite alternate}.scene-river{animation:river-flow 2.8s linear infinite}.welcome-badge{font-size:10px;color:#bb9b58;background:#fff8d8;border-radius:12px;padding:4px 8px}.wolf{filter:drop-shadow(0 3px 0 #36543422)}.wolf .tail{animation:wag .7s ease-in-out infinite alternate}@keyframes happy{to{transform:translateY(-5px) rotate(3deg)}}@keyframes star-glow{to{filter:drop-shadow(0 0 7px #fff6a0);opacity:.8}}@keyframes flutter{to{translate:0 -7px;rotate:8deg}}@keyframes cloud-drift{to{translate:18px 0}}@keyframes river-flow{to{stroke-dashoffset:-28}}@keyframes confetti-fall{to{transform:translateY(105vh) rotate(650deg);opacity:0}}@media(min-width:1500px){main{padding-top:28px}}@media(max-width:1100px){.playLayout{grid-template-columns:140px minmax(280px,1fr) 210px;gap:12px}#worlds button{font-size:11px;gap:6px;padding:11px 7px}#worlds small{display:none}.gameTop{padding:15px}.gameTop h2{font-size:20px}.palette button{height:59px}}@media(max-width:800px){.playLayout{grid-template-columns:1fr 230px}.levelPanel{padding:12px}.intro h1{font-size:35px}#worlds button{flex:none;font-size:12px}.total{padding:12px 16px}#commands{min-height:140px}#board{min-height:0}}@media(max-width:580px){header{height:76px;padding:8px 12px}.brand{font-size:23px}.brand svg{width:51px;height:51px}.brand small{font-size:7px}.headActions{gap:5px}.headActions button{padding:8px;font-size:10px}.headActions #sound{min-width:37px;font-size:19px}main{padding:20px 10px}.intro h1{font-size:29px}.intro .eyebrow{font-size:7px;letter-spacing:1px}.intro p{font-size:11px;max-width:220px}.total{border-radius:17px;padding:10px!important;font-size:21px!important}.total small{font-size:7px}.playLayout{display:flex;gap:13px}.levelPanel{padding:11px}.levelPanel,.codePanel,.gamePanel{border-radius:22px}.codePanel{padding:17px}#commands{min-height:66px}.palette button{height:58px}.gameTop{padding:14px 17px}.legend{font-size:10px}#speech{font-size:11px;padding:10px}.gameTop #hint{font-size:10px;padding:7px 9px}#worlds{margin-bottom:10px}.intro{gap:6px;margin-bottom:19px}dialog{padding:26px}.starsWin{font-size:39px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
