/* Vườn Số · khu vườn nhỏ, những khám phá lớn. */
:root{--ink:#254b43;--ink-soft:#62766c;--cream:#fffdf3;--mint:#b8e3cb;--sun:#ffdc8b;--blue:#a9d9e0;--pink:#efb5b4;--grape:#c9bee6;--leaf:#6bb78a;--orange:#efbd8e}
html,body{height:100%;height:100dvh;background:#edf3e6}
body{touch-action:manipulation;font-weight:700}
#app{height:100dvh;padding:16px max(18px,env(safe-area-inset-right)) 20px max(18px,env(safe-area-inset-left));max-width:1600px;margin:auto}
.b3{box-shadow:0 4px 0 var(--d,#d5ddcd),0 8px 14px #254b430b;border:1px solid #fff9;transition:transform .16s,box-shadow .16s}
.b3::before{opacity:.35;height:28%}.b3:active{transform:translateY(3px);box-shadow:0 1px 0 var(--d,#d5ddcd)}
.big{min-height:58px;font-size:21px;padding:12px 22px;justify-content:center;border-radius:20px}
.big.alt{--c:#fffdf5;--d:#d9dfca}
#hub{isolation:isolate;border-radius:34px;overflow:hidden;border:1px solid #fff;box-shadow:0 12px 50px #315a4012;gap:0}
.world{z-index:-1;inset:0;border-radius:0;background:#b9ddbb}
.gardenArt{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.world>.cl{display:none}.world>.bfly{left:auto!important;right:20%;top:50%!important;opacity:.7}
.hubTop{padding:25px 30px;gap:18px;align-items:flex-start}
.logo{font-size:36px;color:#275849;text-shadow:none;letter-spacing:-1px;animation:none}
.logo::before{content:'✿';font-family:serif;color:#dba964;margin-right:9px;display:inline-block;transform:rotate(-12deg)}
.logo small{font-size:11px;color:#598475;text-shadow:none;letter-spacing:1.5px;margin:8px 0 0 44px;text-transform:uppercase}
.hubTop>div:last-child{gap:8px!important;max-width:55%}
.pill{min-height:46px;font-size:20px;padding:7px 13px;background:#fffcf1e8!important;--d:#b2cbb4!important;box-shadow:0 3px 0 #a6c1ac55}
.hubMid{grid-template-columns:1fr;position:relative;align-items:center;padding:15px 38px 25px;flex:1}
#hub .bipHome{position:absolute;right:17%;top:11%;width:150px;pointer-events:none}
#hub .bipHome .bubble{display:none}
#hub .bipImg{width:92px;height:92px;filter:drop-shadow(0 12px 8px #315a4020);opacity:.95}
#hub .right{justify-self:start;align-self:center;width:min(440px,46%);max-width:none;gap:18px}
.heroIntro{background:#fffdf2eb;padding:25px 27px;border-radius:28px;border:1px solid #fff;box-shadow:0 10px 30px #4c785714;backdrop-filter:blur(8px)}
.heroIntro .eyebrow{color:#789575;font-size:11px;letter-spacing:2px;font-weight:900;display:flex;align-items:center;gap:8px}
.heroIntro .eyebrow::before{content:'';width:7px;height:7px;border-radius:50%;background:#82b68b}
.heroIntro h1{font-family:var(--display);font-size:clamp(29px,3.5vw,47px);line-height:1.12;margin:13px 0 10px;letter-spacing:-.7px;color:#285746}
.heroIntro p{font-size:15px;line-height:1.7;color:#6b7f6e;margin:0;max-width:310px}
.heroChips{display:flex;gap:7px;margin-top:18px;flex-wrap:wrap}.heroChips span{border:1px solid #e0e7d0;border-radius:10px;font-size:11px;padding:5px 8px;color:#6c856d;background:#fbf9e9}
.playNext{background:#f6d99a;--d:#c2a666;border-radius:22px;min-height:92px;padding:17px 20px;gap:14px;animation:none;box-shadow:0 5px 0 #b99f6f,0 10px 18px #254b4312}
.playNext .pn{width:45px;height:45px;background:#fffcf0;font-size:22px;box-shadow:0 3px 0 #d8c695;animation:none;color:#5a7f5b}
.playNext b{font-size:21px;line-height:1.25}.playNext small{font-size:11px;line-height:1.5;color:#706f53;margin-top:5px}
.journeyProgress{display:flex;align-items:center;gap:10px;font-size:11px;color:#436b53;padding:0 9px}
.journeyProgress .track{height:6px;border-radius:10px;background:#fff9;flex:1;overflow:hidden}.journeyProgress i{display:block;background:#81ac7b;height:100%;border-radius:10px}
.hubBot{margin:0 26px 24px;padding:12px;gap:10px;background:#fffdf3ed;border:1px solid #fff;border-radius:26px;box-shadow:0 6px 20px #3c745012;flex-wrap:nowrap;z-index:8}
.hubBot .big{flex:1;background:transparent;box-shadow:none;border:0;--c:transparent;min-height:55px;gap:8px;padding:8px 10px;font-size:18px;border-radius:17px;white-space:nowrap}
.hubBot .big:hover{background:#edf3e2}.hubBot .big::before{display:none}.hubBot .bigIc{width:29px;height:29px}
.hubBot #mapBtn{background:#e2efdc;color:#376a4c}
.kidHub{bottom:20%;width:160px}.world .kidHub img{width:160px;height:200px;filter:drop-shadow(0 14px 8px #305d4428)}
.kidName,.mapKid span{border:1px solid #fff;background:#fffdf1e8;box-shadow:0 3px 0 #88a17c33;font-size:13px;line-height:1.7;color:#55775e}
.pet{bottom:20%!important}.petSay{border:1px solid #e1e5ce;box-shadow:0 4px 12px #325f4314}
#map{background:#fffdf4;border-radius:30px;overflow:hidden;border:1px solid #fff}
.bar{padding:12px 16px;gap:14px}.round{width:48px;height:48px;font-size:23px;border-radius:17px;box-shadow:0 3px 0 #d8dfca;background:#fffdf6}
.title{font-size:25px;gap:8px}.title small{font-size:12px;font-weight:700;line-height:1.4}
.mapScroll{flex:1;overflow:auto;touch-action:pan-y;position:relative;background:#d6e5bb;border-radius:23px;margin:0 10px 10px}
.mapInner{position:relative;isolation:isolate;background:none;overflow:hidden}.mapLandscape{position:absolute;inset:0;pointer-events:none}
.mapSvg{z-index:-1}.node{z-index:2;width:100px;height:100px;border-radius:24px}.node .nimg{filter:drop-shadow(0 8px 5px #29503926)}
.node .nnum{border:2px solid #fff6e4;color:#526f53;background:#fff9e9;font-size:18px;min-width:34px;box-shadow:0 3px 0 #526f5333}
.node.cur .nnum{background:#f5d38c;color:#4d6848}.node.done .nnum{background:#8ab387;color:#fff}
.node.lock .nimg{filter:grayscale(.65) opacity(.65)}.node small{white-space:normal;width:158px;border:1px solid #fff;background:#fffcf2ed;font-size:13px;line-height:1.3;top:99px;border-radius:12px;box-shadow:0 3px 0 #66886220;padding:6px 9px;text-align:center}
.node.cur .nimg{animation:nodeBounce 3s ease-in-out infinite}.node.cur::after{opacity:.65}
.worldTag{z-index:1;font-size:14px;box-shadow:0 3px 0 #73936930;border:1px solid #fff;background:#fff9e3;color:#54754c;max-width:42%;text-align:center;transform:translateX(-50%);border-radius:16px;padding:8px 12px;white-space:normal;line-height:1.3}
.mapKid{pointer-events:none;z-index:4}.mapKid img{width:66px;height:83px;filter:drop-shadow(0 6px 5px #29503920)}.mapKid span{display:none}
.startBanner{border:1px solid #fff;background:#f7e9bc;color:#67764f;font-size:14px;box-shadow:0 3px 0 #71916c30}
#game{gap:6px}.stageWrap{background:#f9fbef;border:2px solid #fff;border-radius:29px;box-shadow:0 7px 0 #dce5cf,0 18px 30px #315a4010}
.stageBg{background:linear-gradient(#e9f3e2,#f8f9e9)}.stageBg.theme-night{background:linear-gradient(#4c6384,#779c9e)}
.stageBg .bgimg,.stageBg>.deco,.stageBg .vig{display:none}
.stageBg::before{content:'';position:absolute;width:100%;height:35%;bottom:-20%;background:#c4dabc;border-radius:50%;box-shadow:400px -10px 0 10px #d5e4c9,-300px -10px 0 10px #d8e8ce;opacity:.8}
.stage{padding:22px;gap:19px;overflow:auto;touch-action:pan-y}.stage>*{flex-shrink:0}
.prompt{font-size:clamp(22px,2.7vw,33px);background:#fffdf7ef;border:1px solid #fff;box-shadow:0 4px 0 #d8e1c9;padding:12px 22px;border-radius:20px;line-height:1.3}
.eq{color:#315d4a}.choices{gap:13px}.choice{height:78px;min-width:82px;border-radius:23px;font-size:36px;border:3px solid #fff;--c:#fffdf6;--d:#cddbc3;box-shadow:0 5px 0 #cddbc3,0 10px 14px #274b4310}
.choice.good{background:#d4e8be;border-color:#8db485}.choice.bad{background:#f9ddc7;border-color:#dfb393}
.bipRow{padding:9px 15px;gap:13px;min-height:78px;max-height:112px}.bipRow .bubble{flex:1;max-width:none;box-shadow:0 3px 0 #dce3d0;font-size:16px;padding:12px 18px;background:#fffdf6;text-align:left;line-height:1.45}
.bipRow .bubble::after{display:none}.bipRow .bip{width:50px;height:58px;flex-shrink:0}.speak{width:48px;height:48px;font-size:23px;flex-shrink:0}
.dots{max-width:38%;gap:5px;flex-wrap:wrap;justify-content:flex-end}.dots i{width:10px;height:10px;box-shadow:none;background:#d6e0cf}.dots i.on{background:#e8bd68;transform:scale(1.1)}.dots i.ok{background:#7aaf89}
#overlay{background:#254b4366;backdrop-filter:blur(6px);touch-action:pan-y}.panel{border-radius:32px;background:#fffdf4;border:1px solid #fff;box-shadow:0 15px 70px #163f4533;max-height:92dvh;gap:16px;padding:28px}
.panel h2{color:#345f4c}.panel p{color:#71806c;font-size:16px;line-height:1.6}
.tiles.practice{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-height:57dvh;padding:4px 3px 12px;touch-action:pan-y}
.practice .tile{min-height:94px;border-radius:20px;padding:12px;gap:10px;background:#f3f5e8;border:1px solid #e0e6d4;box-shadow:0 4px 0 #d8e0cc;animation:none}
.practice .tile b{font-size:18px;line-height:1.2}.practice .tile .tx span{display:block;font-size:10px;color:#7a8b71;margin-top:6px}.practice .tile .stars{display:none}.practice .tile .ic{width:44px;height:50px}
#gate{background:#d6e7cc!important}#gate::before{background:radial-gradient(ellipse at 70% 25%,#fff9d8,#d2e5ce 75%)!important}
#gate .gp{background:#fffdf4!important;border:1px solid #fff;box-shadow:0 10px 0 #b8cfac,0 20px 70px #3a665b20!important;touch-action:pan-y}
.runnerScene{width:100%;flex:1;min-height:260px;position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(#d2efeb,#f3f3d6);isolation:isolate;animation:none}
.runnerHud{position:absolute;top:17px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:center;color:#537b68;font-size:11px;letter-spacing:1.4px;z-index:4}.runnerHud b{font-size:18px;letter-spacing:0;background:#fff9df;padding:6px 13px;border-radius:20px;color:#7a764d}
.runnerQuestion{position:absolute;top:15%;left:50%;transform:translateX(-50%);font-family:var(--display);font-size:clamp(25px,3.2vw,40px);white-space:nowrap;z-index:4;color:#305d4b}
.runnerBlocks{position:absolute;top:38%;left:0;right:0;display:flex;justify-content:space-between;padding:0 calc(23% - 39px);z-index:5}
.runnerBlock{width:78px;height:73px;border-radius:20px;background:linear-gradient(145deg,#fff3d0,#eed09b);box-shadow:0 7px 0 #ba9a68,0 12px 15px #41604320;border:2px solid #fff8db;position:relative;flex:none;color:#546747;transition:transform .2s,background .2s}
.runnerBlock span{font-family:var(--display);font-size:33px;line-height:1}.runnerBlock small{display:block;font-size:13px;opacity:.5;line-height:1}.runnerBlock.selected{outline:3px solid #88ad86;outline-offset:5px}.runnerBlock.hit{background:#b6d99c;transform:translateY(-8px)}.runnerBlock.miss{background:#f2c9b7;animation:shake .35s}
.runnerHill{position:absolute;width:80%;height:55%;border-radius:50%;background:#bdd9ad;bottom:-10%;left:-15%;z-index:0}.runnerHill.b{left:auto;right:-20%;bottom:-3%;background:#a9cc9e}
.runnerTrack{position:absolute;left:0;right:0;bottom:11%;height:10%;background:#ecdcb2;border-top:6px solid #89b78a;border-bottom:4px solid #ceb988;transform:perspective(300px) rotateX(12deg)}
.runnerActor{position:absolute;left:50%;bottom:22%;width:70px;height:83px;transform:translateX(-50%);transition:left .34s ease-in-out;z-index:3}
.runnerBody{display:block;position:relative;width:100%;height:100%;z-index:2;filter:drop-shadow(0 8px 4px #54734b30)}
.runnerBody.facingLeft{scale:-1 1}
.runnerBody img{width:100%;height:100%;object-fit:contain}.runnerActor i{position:absolute;bottom:-5px;left:10%;width:80%;height:10px;background:#4b714b33;border-radius:50%}
.runnerActor.jumping .runnerBody{animation:runnerHop .46s ease-in-out both}.runnerActor.jumping i{animation:runnerShadow .46s ease-in-out both}
@keyframes runnerHop{0%,100%{transform:translateY(0) scaleY(1)}20%{transform:translateY(-10px) scaleY(1.05)}50%{transform:translateY(var(--jump-rise,-85px)) scaleY(1.02)}80%{transform:translateY(-15px) scaleY(1.04)}}
@keyframes runnerShadow{50%{transform:scale(.5);opacity:.35}}
.runnerMessage{position:absolute;bottom:2.5%;left:5%;right:5%;text-align:center;font-size:13px;color:#496e50}.runnerControls{display:flex;gap:12px;justify-content:center;animation:none}.runnerControls button{min-height:50px;min-width:55px;padding:9px 20px;background:#fffdf5;border-radius:17px;font-size:22px;--d:#c7d4bf}.runnerControls .runnerJump{background:#f4d997;font-size:20px;min-width:180px;--d:#c4b07a}
.runnerSky i{position:absolute;left:7%;top:15%;width:85px;height:23px;background:#fff9;border-radius:50%;box-shadow:23px -15px 0 -4px #fff9;animation:cloudSlide 35s linear infinite}.runnerSky i+ i{left:75%;top:26%;animation-delay:-15s}
@keyframes cloudSlide{50%{transform:translateX(65px)}}
.mathWork{width:min(680px,100%);display:flex;flex-direction:column;align-items:center;gap:18px}.mathNote{font-size:13px;color:#6c856d;text-align:center;line-height:1.6}.mathTools{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.mathTools button,.mathConfirm{padding:12px 20px;border-radius:16px;background:#fffdf4;border:1px solid #d6dfc8;box-shadow:0 4px 0 #cdd8c0;font-size:18px;min-height:51px}.mathConfirm{background:#f3d696;min-width:170px;--d:#c9b078}
.placeBoard{width:100%;display:grid;grid-template-columns:1fr 1fr;border-radius:24px;border:2px solid #fff;background:#fffdf3c9;overflow:hidden}.placeCol{padding:16px;display:flex;flex-direction:column;align-items:center;gap:14px}.placeCol+ .placeCol{border-left:2px dashed #d6dfc8}.placeCol h3{margin:0;font-size:14px;color:#728870}.placeCol>b{font-family:var(--display);font-size:32px}.bundles{min-height:95px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:240px}.tenBundle{display:flex;gap:2px;padding:5px;background:#dce8c6;border-radius:7px;border:1px solid #b1c69b;position:relative}.tenBundle i{display:block;width:3px;height:51px;border-radius:2px;background:linear-gradient(#e8bd78,#c29258)}.tenBundle::after{content:'';position:absolute;left:0;right:0;height:5px;top:25px;background:#e8ac9d}.oneStick{width:7px;height:51px;border-radius:3px;background:linear-gradient(#eac589,#c7965b);box-shadow:1px 2px 0 #a2875822}.placeAdjust{display:flex;gap:12px}.placeAdjust button{width:43px;height:40px;border-radius:12px;background:#e6eddb;font-size:26px;line-height:1}
.rulerWork{width:min(650px,100%);padding:26px 20px 18px;background:#fffaf0;border-radius:25px;border:1px solid #fff}.rulerObject{position:relative;height:48px;width:calc(var(--length) * 100% / 10);background:linear-gradient(#f1bb91,#ce9472);border-radius:8px;box-shadow:0 5px 0 #ac815e;display:grid;place-items:center;color:#fff8e1;font-size:19px;margin-bottom:21px;min-width:0}.ruler{height:65px;display:flex;justify-content:space-between;background:#f4dfaa;border-radius:0 0 9px 9px;position:relative;border-top:2px solid #c3a66c}.ruler span{position:relative;width:0;text-align:center;display:flex;flex-direction:column;align-items:center;font-size:15px;color:#876e47}.ruler span::before{content:'';display:block;height:19px;width:1px;background:#a68b56;margin-bottom:7px}.ruler span:first-child::before{background:#b87565;width:2px}.rulerUnit{text-align:right;font-size:12px;color:#8b7d54;margin-top:7px}
.weekBoard{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;width:100%;}.dayCard{padding:14px 5px;border-radius:16px;background:#fffdf2;border:2px solid #fff;box-shadow:0 4px 0 #d9e2c9;display:flex;flex-direction:column;align-items:center;gap:9px;font-size:12px;min-height:110px}.dayCard.today{background:#dcebc9;border-color:#97b483}.dayCard span{font-size:25px}.dayCard em{font-size:10px;font-style:normal;color:#7a8a6b}.dayCard.good{background:#b7d99f}
.maze{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;width:min(360px,75vw)}.maze button{height:60px;background:#fff9e7;box-shadow:0 4px 0 #d2d6b5;border-radius:17px;font-family:var(--display);font-size:25px;border:2px solid #fff;position:relative}.maze button.visited{background:#b7d6a1;color:#48724e}.maze button.current{background:#f5d99c;outline:3px solid #92b385;outline-offset:2px}.maze button small{font-size:12px;margin-left:3px}.maze button:disabled{opacity:1;cursor:default}.maze button.available::after{content:'';position:absolute;inset:4px;border:1px dashed #aabf89;border-radius:11px}
.splitBaskets{display:flex;align-items:center;justify-content:center;gap:14px;width:100%}.splitBasket{min-width:110px;max-width:240px;min-height:105px;flex:1;background:#faf2d9;border:2px solid #e9cf9e;border-radius:15px 15px 35px 35px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap;gap:7px;padding:15px;box-shadow:0 5px 0 #d8c19a}.splitBasket button{width:27px;height:27px;background:radial-gradient(circle at 35% 25%,#f9d899,#e6aa78);border-radius:50%;box-shadow:0 3px 0 #c89468;font-size:0;flex:none}.splitBasket.b button{background:radial-gradient(circle at 35% 25%,#c8e7af,#8db67c);box-shadow:0 3px 0 #769b6c}.splitBasket:empty::before{content:'Giỏ trống';font-size:13px;color:#a99572;align-self:center}.splitRecord{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.splitRecord span{padding:6px 12px;border-radius:10px;background:#e2edce;font-size:15px;color:#587550}.splitEquation{font-family:var(--display);font-size:30px}
.robotClaim{background:#fffdf1;border:1px solid #fff;box-shadow:0 5px 0 #d8e0c7;border-radius:24px;display:flex;align-items:center;padding:20px 26px;gap:20px;font-family:var(--display);font-size:clamp(25px,4vw,40px)}.robotClaim img{width:85px;height:85px;object-fit:contain}.proofDots{display:flex;justify-content:center;gap:13px;align-items:center;flex-wrap:wrap}.proofDots .group{display:flex;gap:6px;background:#fff9;padding:15px;border-radius:16px;flex-wrap:wrap;max-width:230px}.proofDots i{width:20px;height:20px;background:radial-gradient(circle at 30% 25%,#f4d8a0,#dfa772);border-radius:50%;box-shadow:0 3px 0 #c89468}.proofDots .group.b i{background:radial-gradient(circle at 30% 25%,#d3e6b4,#93bd83);box-shadow:0 3px 0 #719a69}
.motionStudio{position:fixed;inset:0;z-index:85;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 30%,#fff9e5,#e0edda 80%);padding:24px max(24px,env(safe-area-inset-right)) 30px max(24px,env(safe-area-inset-left));color:#365f4c;touch-action:manipulation}
.motionStudio header{display:flex;justify-content:space-between;align-items:center;width:min(900px,100%);margin:auto}.motionStudio header small{font-size:10px;letter-spacing:2px;color:#869b78}.motionStudio h2{font-family:var(--display);font-size:28px;margin:5px 0}.studioClose{width:48px;height:48px;background:#fffdf4;border-radius:16px;font-size:23px;box-shadow:0 4px 0 #cbd9c0}
.studioScene{flex:1;min-height:150px;position:relative;isolation:isolate;display:grid;place-items:center;width:min(700px,100%);margin:auto}.studioActor{width:min(270px,60vw);height:93%;max-height:480px;position:absolute;bottom:calc(7% + 32px)}.studioAvatar{width:100%;height:100%;min-height:150px;position:relative}.motionStudio nav button[aria-pressed=true]{background:#e9f4dc;box-shadow:0 2px 0 #b9cdaa;transform:translateY(2px)}.studioRing{width:min(380px,80vw);height:90px;border-radius:50%;background:radial-gradient(ellipse at 50% 30%,#fdf7df,#d0dcb7);box-shadow:0 10px 0 #b5c69f,0 24px 30px #4a745620;position:absolute;bottom:7%;z-index:-1}.studioName{position:absolute;bottom:2%;background:#fff9e9;padding:7px 22px;border-radius:15px;font-size:15px;box-shadow:0 3px 0 #d7ddc4}.studioOrb{position:absolute;width:90px;height:90px;left:10%;top:25%;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff2d2,#ecd299);opacity:.7;animation:hover 5s ease-in-out infinite}.studioOrb.b{left:auto;right:12%;width:60px;height:60px;top:50%;background:radial-gradient(circle at 30% 20%,#f2dcd8,#d9b4b3);animation-delay:-2s}.studioTip{text-align:center;font-size:14px;color:#789170;margin:12px}.motionStudio nav{display:flex;justify-content:center;gap:12px}.motionStudio nav button{min-width:105px;min-height:75px;padding:10px;background:#fffcf0;border-radius:20px;box-shadow:0 4px 0 #c7d5bb;font-size:25px}.motionStudio nav span{display:block;font-size:12px;margin-top:5px}
@media(max-width:900px){.hubTop{padding:22px}.hubMid{padding:10px 25px 20px}#hub .right{width:48%;gap:14px}.heroIntro{padding:21px}.heroIntro h1{font-size:34px}.heroIntro p{font-size:13px}.heroChips{display:none}.hubBot{margin:0 16px 17px;gap:4px}.hubBot .big{font-size:16px;padding:8px}.hubTop>div:last-child{max-width:60%}.pill{font-size:18px;padding:7px 11px}.logo{font-size:31px}.logo small{font-size:9px;letter-spacing:1px}.kidHub{bottom:21%}.world .kidHub img{width:135px;height:170px}.tiles.practice{grid-template-columns:repeat(2,minmax(0,1fr))}.stage{padding:16px;gap:16px}.bipRow .bubble{font-size:14px}.weekBoard{gap:4px}.dayCard{font-size:11px}}
@media(max-width:600px){#app{padding:9px 8px 13px}#hub{border-radius:25px}.hubTop{padding:18px 15px}.logo{font-size:27px}.logo small{font-size:8px;margin-left:31px;letter-spacing:.5px}.hubTop>div:last-child{gap:5px!important;max-width:51%}.pill{min-height:36px;font-size:15px;padding:5px 8px}#starPill{display:none}.hubMid{padding:6px 17px 15px;align-items:start}#hub .right{width:100%;align-self:start;gap:12px}.heroIntro{background:#fffdf0ed;padding:19px 21px;width:100%}.heroIntro h1{font-size:33px;max-width:270px;margin:9px 0}.heroIntro p{font-size:12px;max-width:260px;line-height:1.6}.heroIntro .eyebrow{font-size:9px}.playNext{padding:12px 16px;min-height:77px;max-width:100%}.playNext b{font-size:18px}.playNext small{font-size:10px}.journeyProgress{font-size:10px;padding:0 5px}.hubBot{margin:0 9px 10px;padding:7px 4px;gap:0;border-radius:20px;flex-wrap:nowrap}.hubBot .big{flex:1;flex-direction:column;gap:4px;min-height:62px;font-size:10px;padding:6px 4px;border-radius:14px}.hubBot .bigIc{width:22px;height:22px}#hub .bipHome{display:none}.gardenArt{width:160%;left:-60%;top:10%;height:100%}.kidHub{bottom:16%}.world .kidHub img{width:120px;height:150px}.kidName{font-size:11px}.pet{transform:scale(.8);transform-origin:bottom}.bar{padding:8px 5px;gap:10px}.title{font-size:20px}.title small{font-size:10px}.round{width:43px;height:43px;font-size:20px;flex-shrink:0}.ticon{width:32px;height:32px}.dots{max-width:23%;gap:4px}.dots i{width:7px;height:7px}.stage{padding:13px;gap:15px}.prompt{font-size:22px;padding:10px 13px}.choice{height:63px;min-width:64px;font-size:29px;border-radius:18px;padding:0 12px}.choices{gap:10px}.bipRow{padding:9px 3px;gap:8px}.bipRow .bubble{font-size:12px;padding:10px 12px}.bipRow .bip{width:38px;height:45px}.speak{width:40px;height:40px;font-size:19px}.panel{padding:22px 16px;border-radius:25px}.panel h2{font-size:26px}.panel .big{font-size:17px;min-height:50px;padding:10px 17px}.practice .tile{flex-direction:column;text-align:center;gap:7px;min-height:120px;padding:10px}.practice .tile b{font-size:15px}.practice .tile .ic{width:47px;height:47px}.tiles.practice{gap:10px;max-height:59dvh}.runnerHud{top:13px;left:12px;right:12px;font-size:8px;letter-spacing:.6px}.runnerHud b{font-size:13px;padding:5px 9px}.runnerQuestion{font-size:25px;top:18%}.runnerBlock{width:64px;height:64px;border-radius:18px}.runnerBlock span{font-size:29px}.runnerBlocks{padding:0 calc(23% - 32px)}.runnerActor{width:58px;height:69px}.runnerMessage{font-size:11px;bottom:2%}.runnerControls{gap:10px}.runnerControls button{min-width:45px;min-height:47px;padding:8px 15px}.runnerControls .runnerJump{min-width:150px;font-size:18px}.weekBoard{grid-template-columns:repeat(4,1fr);gap:8px}.dayCard{min-height:80px;font-size:12px;padding:10px 5px}.dayCard span{font-size:21px}.mathWork{gap:13px}.placeCol{padding:12px 8px}.bundles{gap:6px;min-height:95px}.tenBundle{gap:1px;padding:4px 3px}.tenBundle i{width:2px;height:42px}.oneStick{width:5px;height:42px}.placeCol>b{font-size:25px}.robotClaim{padding:15px;gap:10px;font-size:30px}.robotClaim img{width:65px;height:65px}.maze button{height:54px}.splitBaskets{gap:9px}.splitBasket{min-width:90px;padding:10px;gap:6px}.splitBasket button{width:23px;height:23px}.motionStudio{padding:18px 15px 25px}.motionStudio h2{font-size:24px}.motionStudio nav{gap:8px}.motionStudio nav button{min-width:0;flex:1;max-width:100px;padding:10px 7px;font-size:23px;min-height:70px}.motionStudio nav span{font-size:10px}}
@media(max-height:630px) and (min-width:601px){#app{padding-top:8px;padding-bottom:13px}.hubTop{padding:15px 23px}.heroIntro{padding:16px 20px}.heroIntro h1{font-size:32px;margin:9px 0}.heroIntro p{font-size:12px}.heroChips{display:none}.hubMid{padding-bottom:15px}#hub .right{gap:10px}.hubBot{margin-bottom:12px;padding:7px}.playNext{min-height:78px;padding:12px 16px}.hubBot .big{min-height:44px}.stage{padding:10px;gap:12px}.prompt{font-size:23px;padding:9px 16px}.choice{height:58px;font-size:29px;min-width:65px}.bipRow{min-height:56px;padding:5px 10px}.bipRow .bip{width:38px;height:42px}.bipRow .bubble{font-size:13px;padding:9px 15px}.runnerScene{min-height:210px}.runnerQuestion{font-size:27px}.runnerHud{top:10px}.runnerBlock{height:55px;width:62px;border-radius:15px}.runnerBlocks{padding:0 calc(23% - 31px)}.runnerActor{height:60px;width:51px}.runnerControls button{min-height:42px;padding:5px 15px}.weekBoard .dayCard{min-height:83px;padding:10px 5px}.placeCol{padding:10px}.bundles{min-height:62px}.tenBundle i,.oneStick{height:37px}.mathWork{gap:12px}.maze{width:290px;gap:7px}.maze button{height:44px}.studioActor{max-height:330px}.motionStudio nav button{min-height:60px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.runnerActor.jumping .runnerBody{transform:translateY(var(--jump-rise,-45px))}}

.stage{justify-content:safe center}
.takeFrame{display:grid;grid-template-columns:repeat(5,44px);gap:10px;padding:14px;background:#fffdf2;border:2px solid #d6e2c6;border-radius:22px;box-shadow:0 4px 0 #c9d6b9}.takeDot,.takeEmpty{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff1bd,#e9b677 70%);box-shadow:0 4px 0 #c19760;border:1px solid #fff9d4}.takeEmpty,.takeDot.taken{background:#edf0e1;border:1px dashed #cbd7bb;box-shadow:none}.takeDot.counted{font:800 26px/1 var(--display);color:var(--ink);text-shadow:0 1.5px 0 #fff3cf,0 -1.5px 0 #fff3cf,1.5px 0 0 #fff3cf,-1.5px 0 0 #fff3cf}.tachWrap #bj{pointer-events:none}.tachWrap #bj circle.out{fill:#2B2D42;fill-opacity:.16;stroke-opacity:.42}.tachWrap .net{display:flex;align-items:center;gap:10px;font-size:27px;background:#fffdf3;box-shadow:0 4px 0 #d3ddc6;padding:4px 18px 8px 12px}
/* Tách Thạch: hạt được vớt bay vào xô gỗ (SweetFx.scoop, creatures.js) và nằm lại trong xô; ô vừa vớt thành chỗ trống */
.net em{font-style:normal;white-space:nowrap}.net #netN{display:inline-block}.pail{position:relative;display:block;width:84px;height:96px;flex:none}.pail svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}.pailPile{position:absolute;inset:0}.pailPile i{position:absolute;width:17px;height:17px;margin:-8.5px 0 0 -8.5px;border-radius:50%;background:radial-gradient(circle at 32% 24%,#fff1bd,#e9b677 70%);box-shadow:0 2px 0 #c19760}
.machine{max-width:100%;width:min(400px,100%)}.mtop{box-shadow:0 4px 0 #d9b25c}.bins{width:100%}.bin{flex:1;min-width:0;width:auto;background:#e4f0e6;box-shadow:0 4px 0 #cbdccf}
.shapes{width:min(482px,100%);grid-template-columns:repeat(4,minmax(0,1fr))}.shapeBtn{width:100%;height:auto;aspect-ratio:1}.shapeBtn svg{max-width:86%;max-height:86%}
.seq{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:min(650px,100%);gap:8px}.seqItem{width:100%;height:auto;aspect-ratio:1}.seqItem svg{max-width:88%;max-height:88%}
.sky#skyB{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px;padding:18px 23px 14px;height:auto;min-height:0;overflow:visible;width:min(600px,96%);background:#fff7}
#skyB .balloon{font-size:24px}
.pile{background:#fffdf6;box-shadow:0 5px 0 #d5dfc7;min-width:150px;max-width:250px}.pile .fruits{display:flex;flex-wrap:wrap;justify-content:center;max-width:180px;gap:5px;min-height:30px}.pile .fruits>i{width:25px;height:25px}
.fruitTen{display:grid;grid-template-columns:repeat(5,7px);gap:2px;background:#e6edda;border:1px solid #c4d0b1;border-radius:7px;padding:5px}.pile .fruitTen i,.pile .fruitOnes i{width:7px;height:7px;box-shadow:0 1px 0 #bc8e7b55}.fruitOnes{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px;padding:4px;max-width:46px}
.croc{box-shadow:0 5px 0 #d5dfc7;color:#5e9663}.pond{background:radial-gradient(ellipse at 50% 0,#daefdf,#87c3c2 80%)}.leaf{width:80px;height:60px;background:radial-gradient(circle at 40% 35%,#d4eab7,#7eb480);box-shadow:inset 0 -6px 0 #6d9f6922,0 5px 0 #426e4822}.frog{width:58px;height:58px;font-size:42px;line-height:58px}
body #shop{background:linear-gradient(130deg,#edf3e4,#fff8e9);color:#365e4a}body #shop .detail{background:#fffdf5;box-shadow:0 6px 0 #d4dec5}body #shop .stage3d{background:radial-gradient(ellipse at 50% 35%,#fffdf2,#e2ecd8)}body #shop .tab{--d:#d4ddc6;min-height:50px;border-radius:17px}body #shop .tab.on{--c:#e2ebca;--d:#afbf98}body #shop .card{--c:#fffdf7;--d:#d8dfcc;border-radius:22px}body #shop .card .th{background:radial-gradient(ellipse,#fffdf6,#f0f3e5)}body #shop .card.sel{outline:3px solid #9fb688}body #shop .pr{background:#f6e5b9}body #shop .wallet{--d:#cbd7be}body #shop .v3dBtn{font-size:12px;background:#fffdf0;color:#5b7a56;box-shadow:0 3px 0 #cbd7be}
body .ae-ov{background:linear-gradient(130deg,#edf3e4,#fff8e9);color:#365e4a}body .ae-stage{background:radial-gradient(ellipse at 50% 35%,#fffdf2,#e2ecd8);box-shadow:0 5px 0 #d1dcc4}body .ae-panel{background:#fffdf4;box-shadow:0 5px 0 #d1dcc4}body .ae-b3{box-shadow:0 4px 0 var(--d,#d3ddc6),0 8px 16px #365e4a0b}body .ae-tab[aria-selected=true]{--c:#f3d899;--d:#c5ad76}body .ae-act.ok{--c:#8eb68a;--d:#6e956b}body .ae-act.dice{--c:#c1b9d5;--d:#9b91b3}body .ae-card[aria-pressed=true]{outline:3px solid #9fba8e;--c:#e8f0dc;--d:#b4c8a1}body .ae-sw[aria-pressed=true]{outline:3px solid #7c9c72}body .ae-scroll,body #shop .grid,body #shop .tabs{touch-action:pan-y}
@media(max-width:600px){.vs{gap:10px;flex-wrap:nowrap;width:100%}.pile{min-width:0;width:39%;padding:11px;max-width:140px}.pile .fruits{max-width:100%}.pile .fruits>i{width:16px;height:16px}.pile .n{font-size:38px}.croc{width:48px;height:58px;font-size:45px;flex-shrink:0}.fruitTen{grid-template-columns:repeat(5,5px);gap:1px;padding:3px}.pile .fruitTen i,.pile .fruitOnes i{width:5px;height:5px}.fruitOnes{max-width:32px;gap:2px;padding:2px}.leaf{width:61px;height:47px}.frog{width:44px;height:44px;font-size:34px;line-height:44px}.seq{gap:5px}.seqItem{border-radius:11px}.seqItem.q{font-size:29px}.train .loco{font-size:35px}.car{width:43px;height:48px;font-size:25px}.train{gap:7px;width:100%}.sky#skyB{gap:10px 13px;padding:16px 16px 12px}#skyB .balloon{font-size:17px}.shapeBtn{border-radius:17px}.shapes{gap:10px}.goal{gap:8px;font-size:19px;padding:8px 12px}.goal svg{width:45px;height:45px}body #shop .body{grid-template-rows:minmax(150px,1fr) minmax(190px,40dvh)}body #shop .detail{min-height:0}body #shop .stage3d{min-height:100px}body #shop .sTitle{font-size:22px}body #shop .sTitle img{width:35px;height:35px}body #shop .wallet{font-size:19px;padding:7px 12px}body #shop .card{min-height:155px}body .ae-head{gap:8px}body .ae-title{min-width:130px;font-size:23px}body .ae-title small{font-size:11px}body .ae-act{min-height:46px;padding:8px 13px;font-size:17px}body .ae-pill{min-height:43px;font-size:18px;padding:7px 11px}body .ae-body{grid-template-rows:minmax(210px,35dvh) 1fr}body .ae-stage{min-height:180px}}

body #shop .card .th{position:relative;min-width:0;width:100%;aspect-ratio:1}
body #shop .card .th img{position:absolute;left:4%;top:4%;width:92%;height:92%;object-fit:contain}

body #shop .card{display:flex;flex-direction:column;height:224px;min-height:224px;align-items:center;gap:4px}
body #shop .card .th{height:132px;flex:none;aspect-ratio:auto}
body #shop .card b{font-size:14px;line-height:1.2;min-height:34px;max-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body #shop .card .pr{flex:none;line-height:25px}

/* Lời thoại: loa nhỏ "chạm để nghe" trên ô trò trong thư viện (index.html có luật .tile span{display:none}) */
.tile>.narrChip{display:grid}

/* Ếch và Lá: ếch là nhân vật từng khung (PropFx.sprite 'mini_frog', hộp .frogArt phủ kín ô .frog để kéo thả như cũ);
   bờ cỏ cuối ao là chỗ ếch ngồi chờ; lá nằm dưới ếch, ếch đang nhảy nằm trên các bạn khác. */
.pond::after{content:'';position:absolute;left:0;right:0;bottom:0;height:27%;border-radius:60% 60% 24px 24px/24px 24px 24px 24px;background:linear-gradient(#bfe0a2,#93c47e);box-shadow:inset 0 5px 0 #d5ecbf;pointer-events:none;z-index:0}
.pond .leaf{z-index:1}.pond .frog{z-index:2;font-size:0;line-height:0;filter:drop-shadow(0 5px 3px #2c5a4a40)}.pond .frog.hopping{z-index:4}.pond .frog.drag{z-index:5}
.frog .frogArt{position:absolute;left:0;top:0;width:100%;height:100%}.frog img.frogArt,.frog .frogArt img{width:100%;height:auto;display:block}
.echIco{display:inline-block;width:1.5em;height:1.5em;vertical-align:-.4em;flex:none}.frogIco{background:url(../assets/ai/mini_frog.png) center/contain no-repeat}.leafIco{width:1.45em;height:1.05em;vertical-align:-.15em;border-radius:50%/60% 60% 40% 40%;background:radial-gradient(circle at 40% 35%,#d4eab7,#7eb480);box-shadow:inset 0 -3px 0 #6d9f6930}
@media(max-width:600px){.pond .frog{width:46px;height:46px}}

.runnerTrack{
  background:linear-gradient(90deg,#fff5d2 0 50%,transparent 50%) 0 48%/48px 3px repeat-x,#ecdcb2;
}
.runnerScenery{
  position:absolute;inset:auto 0 20% 0;height:54px;pointer-events:none;
  background:repeat-x left bottom/116px 54px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 54'%3E%3Cpath d='M18 50V28m64 22V28' stroke='%23808854' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M4 33c1-7 6-10 7-17 2-13 14-17 20-7 4 5 4 11 8 17 5 9-1 15-17 15C8 41 2 39 4 33ZM69 33c2-8 7-11 9-21 2-9 12-8 16-1 3 5 3 12 7 18 6 9-3 14-16 14-13 0-19-3-16-10Z' fill='%2395bf8f'/%3E%3Cpath d='M50 52q-6-10-9-8m9 8q5-11 11-12m42 12q-3-6-6-6m6 6q3-8 7-9' fill='none' stroke='%238bad79' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.vs .croc{
  position:relative;isolation:isolate;flex:none;width:clamp(72px,15vw,150px);
  height:clamp(84px,16vw,168px);background:none;box-shadow:none;
}
.croc .crocArt{position:absolute;inset:0;width:100%;height:100%;display:block;filter:drop-shadow(0 4px 3px #486b4340)}
.croc .crocArt img{width:100%;height:100%;object-fit:contain}
.crocSign{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);z-index:1;
  min-width:1.15em;padding:0 .1em;line-height:1.12;text-align:center;border-radius:.35em;
  background:#fffdf2;box-shadow:0 3px #c4d3a9;font-size:clamp(29px,5vw,55px);
}
.croc[data-equal] .crocArt{filter:drop-shadow(0 4px 3px #486b4320)}

.trainTrack{width:min(100%,680px);overflow:hidden;padding:2px 0 15px;position:relative}
.trainTrack::before{
  content:'';position:absolute;left:0;right:0;bottom:4px;height:15px;
  background:repeating-linear-gradient(90deg,#d2b68f 0 6px,transparent 6px 18px);
  border-block:3px solid #8b8271;opacity:.85;
}
.trainTrack .train{position:relative;gap:clamp(3px,1.1vw,9px);width:100%;margin:0 auto;padding-bottom:10px}
.trainUnit{flex:none;position:relative}
.trainUnit+.trainUnit::before{content:'';position:absolute;width:11px;left:-10px;bottom:9px;height:4px;background:#746654}
.trainUnit .car{display:block;width:clamp(34px,12vw,72px);height:clamp(38px,10vw,63px);font-size:clamp(22px,5vw,32px)}
.trainUnit .car.cur{animation:none;outline:3px solid var(--sun)}
.trainUnit.loco{width:clamp(44px,14vw,83px);height:clamp(64px,16vw,110px)}
.locoMask{position:absolute;inset:0 -4px -12px 0;overflow:hidden}
.loco .trainArt{position:absolute;left:-39%;bottom:-31%;display:block;width:228%}
.trainArt>img{width:100%}
@media(max-width:600px){
  .vs .pile{width:calc((100% - 92px) / 2)}
  .trainTrack .train{gap:4px}
  .trainUnit .car{width:clamp(30px,10.5vw,60px)}
}
.candyTip{font-size:15px}
@media (min-height:650px) and (min-width:601px){.stage.tachStage{padding-block:12px;row-gap:17px}}
@media (max-width:420px){
  .jellyField .jelly,.jellyField .jellyOut{width:min(110px,27vw);height:min(110px,27vw);margin:max(-55px,-13.5vw) 0 0 max(-55px,-13.5vw)}
  .jellyField .jBody svg{width:100%;height:100%}
}
@media (orientation:landscape) and (max-height:550px){
  .stage.candyStage{flex-direction:row;gap:clamp(14px,4vw,32px);padding:5px 12px;align-items:safe center;justify-content:safe center}
  .candyStage .candyHud{flex-direction:column;align-items:stretch;flex:none;width:clamp(118px,24vw,190px);gap:7px;margin:0}
  .candyStage .candyHud .box{font-size:14px;padding:6px 9px;text-align:center}
  .candyStage #board{max-height:none;padding:4px;border-radius:17px;box-shadow:0 5px 0 #2a1b4a,0 0 0 3px #ffffff99}
}
