
:root{--forest:#164E48;--teal:#168C80;--turquoise:#42C7C4;--green:#86B84A;--amber:#F4A340;--blue:#3498DB;--ivory:#F8F5EC;--white:#fff;--accent:var(--teal);--tint:#E3F4EF}*{box-sizing:border-box}body{margin:0;background:var(--ivory);color:var(--forest);font:600 16px Nunito,system-ui,sans-serif}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #d9e3db;background:white;border-radius:14px;padding:9px 14px;box-shadow:0 3px 0 #d1ddd2;touch-action:manipulation}button:active:not(:disabled){transform:translateY(2px);box-shadow:none}button:focus-visible{outline:3px solid var(--amber)}button:disabled{opacity:.5;cursor:default}h1,h2,h3,p{margin:0}#app{height:100dvh;overflow:hidden;padding:clamp(9px,1.8vw,24px);display:flex;flex-direction:column;gap:clamp(8px,1.3vh,16px)}header{display:flex;align-items:center;gap:12px;min-height:36px}.brand{font-family:Fredoka,Nunito,system-ui,sans-serif;font-weight:900;letter-spacing:-1px;font-size:clamp(20px,3vw,34px);white-space:nowrap}.brand i{font-style:normal;color:var(--teal)}.brand b{color:#608b35}.spacer{flex:1}.track{flex:1;background:#dce7dd;height:12px;border-radius:30px;overflow:hidden}.track span{display:block;height:100%;background:var(--teal);border-radius:30px;transition:width .3s}.stage{display:grid;grid-template-columns:1.12fr 1fr;gap:clamp(12px,2vw,28px);flex:1;min-height:0}.visual{background:var(--tint);border-radius:24px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;min-height:0;padding:12px;gap:8px}.visual svg{width:100%;height:100%;max-height:100%}.panel{display:flex;flex-direction:column;justify-content:center;gap:clamp(6px,1.5vh,15px);min-height:0}.eyebrow{letter-spacing:1.3px;font-size:clamp(10px,1.5vw,14px);font-weight:850;color:var(--accent)}h1{font-size:clamp(22px,3.5vw,46px);line-height:1.12}h2{font-size:clamp(18px,2.7vw,34px);line-height:1.2}p{font-size:clamp(13px,1.8vw,20px);line-height:1.3}.primary{background:var(--forest);color:white;box-shadow:0 3px 0 #0d3430;border:0;font-weight:850}.secondary{font-weight:750}.option{font-size:clamp(18px,3vw,34px);font-weight:850;padding:6px}.options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.selected{background:#FFF0C8!important;border-color:#D5A74C!important;box-shadow:0 3px 0 #D5A74C!important}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.keypad button{padding:3px;font-weight:850;font-size:clamp(15px,2.6vw,26px)}.answer{border:2px dashed #adc7bd;background:white;border-radius:12px;text-align:center;font-size:clamp(22px,3vw,36px);font-weight:900;padding:2px}.feedback{min-height:1.2em;font-size:clamp(11px,1.45vw,16px);font-weight:800}.good{color:#267443}.bad{color:#9b4f23}.mascots{display:flex;width:100%;align-items:center;justify-content:center;min-height:0;flex:1}.mascots img{width:50%;height:100%;object-fit:contain;max-height:100%;animation:bob 3s ease-in-out infinite}.mascots img+img{animation-delay:.5s}@keyframes bob{50%{transform:translateY(-5px)}}.mascots-label{font-size:14px;font-weight:850;letter-spacing:1px}.homevisual{background:#e3f4ef}.homevisual:before{content:'';position:absolute;bottom:-55%;width:130%;height:85%;background:#C6E6D8;border-radius:50%;z-index:0}.homevisual>*{z-index:1}.profile{text-align:left;display:flex;align-items:center;gap:10px;font-size:clamp(15px,2vw,22px)}.profile img{height:40px;width:40px;object-fit:contain}.profile small{font-size:11px;margin-left:auto;color:#58766c}.groups{display:flex;align-items:center;justify-content:center;width:100%;gap:9px;flex:1;min-height:0}.group{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;max-height:100%;flex:1;gap:5px;background:#ffffffbd;border-radius:16px;padding:7px}.objects{display:grid;width:100%;max-width:360px;grid-template-columns:repeat(var(--cols),1fr);align-items:center;justify-items:center;gap:2px;min-height:0}.objects img{width:100%;max-height:clamp(22px,11vh,100px);object-fit:contain}.glabel{font-size:12px;color:#567369;text-align:center}.operator{font-size:clamp(20px,4vw,42px);font-weight:900}.equation{font-size:clamp(30px,5vw,64px);font-weight:900;text-align:center;line-height:1.2}.tapgrid{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:5px;max-width:100%}.tapgrid button{padding:5px;width:clamp(32px,6vw,68px);aspect-ratio:1;background:#fff}.tapgrid button img{width:100%;height:100%;object-fit:contain}.tapgrid button.selected{background:#b6e7d6!important;box-shadow:0 3px 0 #168C80!important;border-color:#168C80!important}.visual-caption{font-size:12px;text-align:center;color:#567369}.report{display:grid;grid-template-columns:1fr 1.4fr;gap:18px;flex:1;min-height:0}.report .panel{justify-content:center}.reporttable{display:flex;flex-direction:column;gap:6px;justify-content:center;min-height:0}.rrow{display:grid;grid-template-columns:1.25fr repeat(4,1fr);align-items:center;gap:4px;font-size:clamp(10px,1.4vw,15px)}.rrow span{background:#fff;border-radius:6px;padding:5px;text-align:center}.rrow span:first-child{text-align:left;font-weight:800;background:none}.report .options button{font-size:13px}.mini{font-size:12px}.visual .result{position:absolute;right:8px;bottom:7px;width:15%;height:30%;object-fit:contain;pointer-events:none}.progresslabel{white-space:nowrap;font-size:12px}.portraitnotice{display:none}.summaryboxes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.summaryboxes div{background:#fff;border-radius:12px;padding:10px}.summaryboxes strong{font-size:28px;display:block}.chartlegend{font-size:12px}
@media(max-height:420px){#app{padding:6px 12px;gap:5px}header{min-height:29px;gap:8px}header button{padding:4px 9px;font-size:12px}.visual{border-radius:17px;padding:6px}.panel{gap:5px}.primary{padding:6px}.eyebrow{font-size:10px}.option{padding:4px}.profile{padding:4px 8px}.profile img{height:26px;width:26px}.keypad button{padding:1px;font-size:17px}.answer{font-size:22px}.feedback{min-height:13px}.rrow span{padding:3px}.reporttable{gap:3px}.homevisual .mascots-label{font-size:12px}.visual-caption{font-size:10px}.glabel{font-size:10px}}
@media(orientation:portrait){#app{padding:10px}.stage{grid-template-columns:1fr;grid-template-rows: minmax(120px,1fr) auto;gap:10px}.visual{min-height:0}.panel{gap:8px}.report{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:6px}.portraitnotice{display:block;font-size:10px;color:#58766c}.report .panel{gap:4px}.profile{padding:6px}.objects img{max-height:50px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* compact, landscape-first refinement */
.lessonvisual{padding:8px;align-items:stretch;gap:4px;background:var(--tint)}.sceneTag{font-size:clamp(10px,1.3vw,14px);font-weight:800;align-self:flex-start;background:#ffffffc9;padding:4px 10px;border-radius:30px;color:var(--accent)}.visualBody{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;position:relative}.scene{width:100%;height:100%;position:relative;overflow:hidden;border-radius:17px;display:flex;align-items:center}.landscape{position:absolute;inset:0;background:#dceee5;overflow:hidden;pointer-events:none}.landscape:before,.landscape:after{content:'';position:absolute;border-radius:50%;width:120%;height:65%;bottom:-34%;left:-25%;background:#b5dcc7}.landscape:after{left:40%;bottom:-28%;background:#a8d0bc}.landscape i{position:absolute;width:12%;height:10%;border-radius:60%;background:#fff9;top:10%;left:8%}.landscape i:nth-child(2){left:65%;top:14%;width:18%}.landscape i:nth-child(3){left:82%;top:7%;background:#f9d87d;width:12%;aspect-ratio:1;height:auto}.scenecontent{position:relative;width:100%;height:100%;padding:8px;display:flex;align-items:center}.groups{gap:6px}.group{padding:8px 5px;flex:1}.objects{gap:1px;max-width:unset}.objects img{max-height:clamp(32px,19vh,150px)}.group:has(.objects img:nth-child(11)) .objects img{max-height:clamp(22px,8vh,65px)}.glabel{font-size:clamp(9px,1.3vw,13px)}.lessonpanel{gap:clamp(4px,1vh,10px)}.phasebar{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.phasebar span{font-size:clamp(8px,1.25vw,13px);border-bottom:3px solid #d9e1d9;padding:3px 0;text-align:center;color:#657d75}.phasebar .active{border-color:var(--phase);color:var(--phase);font-weight:900}.coach{display:flex;gap:6px;align-items:center;min-height:26px}.coach img{width:34px;height:34px;object-fit:contain;flex:none}.coach.shown img{animation:bob .7s ease-in-out}.coach .feedback{font-size:clamp(10px,1.3vw,15px);line-height:1.15}.actiontip{background:white;padding:9px;border-radius:12px;font-size:clamp(13px,2vw,20px);text-align:center}.correctChoice{background:#d4edc9!important;border-color:#72a954!important}.binwrap,.ordering,.measure{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}.pool{background:white;border-radius:12px;padding:5px 10px;font-size:12px}.bins{display:grid;grid-template-columns:repeat(var(--bincols),minmax(0,1fr));width:100%;gap:5px;min-height:0}.bin{display:flex;flex-direction:column;min-width:0;align-items:center;gap:4px}.bin>button{width:100%;min-height:32px;padding:3px;background:#fff9;box-shadow:none;border:2px dashed #7ba99d}.bin>button span{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px;min-height:20px}.bin img{width:clamp(13px,3vw,31px);height:clamp(13px,3vw,31px);object-fit:contain}.bin>div,.stepper,.dataButtons,.dataButtons>div{display:flex;gap:5px;align-items:center;justify-content:center}.bin>div button,.stepper button,.dataButtons button{padding:3px 10px;min-width:30px}.ordSlots,.ordChoices{display:flex;gap:5px;width:100%;justify-content:center}.ordSlots>div,.ordChoices>button{flex:1;max-width:100px;text-align:center;background:white;border:2px dashed #9bc4b6;border-radius:10px;font-size:clamp(18px,3vw,30px);padding:8px 3px}.ordChoices>button{border-style:solid}.cashgroups{display:flex;gap:8px;width:100%;justify-content:center}.cashset,.cashselect{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:center}.cashgroups .cashset{flex:1;background:#ffffff9c;border-radius:12px;padding:5px}.note{padding:7px 5px;background:#cbe6db;border:2px solid #72958a;border-radius:9px;text-align:center;min-width:75px;display:flex;flex-direction:column;gap:3px}.note small{font-size:8px;letter-spacing:.4px}.note b{font-size:clamp(12px,1.8vw,19px)}.note2000{background:#e2e3e7}.note5000{background:#f0d3aa}.note10000{background:#e4d7f2}.note500{background:#e2e4e8;border-radius:50%;min-width:60px}.cashselect{display:grid;grid-template-columns:repeat(2,1fr);width:min(100%,360px)}.measure svg{min-height:0;flex:1}.measure input{width:80%;accent-color:var(--teal)}.shapeSides{display:grid;grid-template-columns:1fr 2fr 1fr;grid-template-rows:1fr 2fr 1fr;gap:4px;width:90%;height:80%}.shapeSides .top{grid-column:2;grid-row:1}.shapeSides .left{grid-row:2;grid-column:1}.shapeSides .right{grid-row:2;grid-column:3}.shapeSides .bottom{grid-row:3;grid-column:2}.shapeSides div{grid-row:2;grid-column:2;border:3px solid var(--forest);background:#f9d87d;border-radius:3px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.metrics div{background:white;border-radius:10px;padding:8px;text-align:center;display:flex;flex-direction:column}.metrics b{font-size:clamp(18px,3vw,31px)}.metrics small,.modebars small,.report5 small{font-size:clamp(9px,1.3vw,13px)}.recommend{border-left:4px solid var(--teal);padding:6px 8px;background:#e7f3eb;border-radius:5px}.recommend p{font-size:clamp(12px,1.5vw,16px)}.modebars{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.meter{height:6px;background:#dce7dd;border-radius:20px;overflow:hidden}.meter i{display:block;height:100%;border-radius:20px}.skillrow{display:grid;grid-template-columns:1.2fr 1fr .3fr;align-items:center;gap:4px;padding:4px 7px;border-radius:7px;background:white;font-size:clamp(10px,1.5vw,15px)}.skillrow small{text-align:right}.skillrow span{color:#567369}.reporttable{gap:4px}.report5 .panel{gap:6px}.report5 .options button{padding:4px}.homevisual .mascots img{max-width:48%}
@media(max-height:420px) and (orientation:landscape){.lessonpanel h2{font-size:clamp(15px,2.45vw,25px)}.lessonpanel .eyebrow{font-size:9px}.lessonpanel .option{font-size:clamp(17px,2.6vw,26px);padding:3px}.lessonpanel .keypad{gap:3px}.lessonpanel .keypad button{padding:0;font-size:16px}.lessonpanel .answer{font-size:19px}.coach img{width:25px;height:25px}.coach{min-height:25px}.lessonpanel .primary{padding:5px}.lessonpanel .options{gap:5px}.lessonpanel .mini{font-size:10px}.report5 .skillrow{padding:3px 5px}.report5 .reporttable{gap:3px}.report5 .metrics div{padding:5px}.report5 .modebars{gap:3px 7px}.note{padding:4px}.bin>button span{min-height:18px}.bin>div button{padding:0 8px}.bins{gap:3px}.bin{gap:2px}.lessonpanel{gap:4px}}


.exitOverlay{position:fixed;inset:0;background:#163d39a8;display:grid;place-items:center;z-index:100;padding:12px}.exitCard{background:var(--ivory);border-radius:24px;padding:clamp(12px,3vh,26px);width:min(420px,96%);display:flex;flex-direction:column;align-items:stretch;text-align:center;gap:9px;box-shadow:0 10px 40px #164e4840}.exitCard img{height:clamp(44px,16vh,100px);object-fit:contain}.exitCard p{font-size:14px}.exitCard button{min-height:38px}.cashPerson,.shopItem{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.cashPerson>img,.shopItem>img{width:clamp(52px,12vw,135px);height:clamp(45px,19vh,135px);object-fit:contain}.shopScene{display:flex;align-items:center;gap:12px;width:100%;justify-content:center}.shopItem{background:#ffffffb0;border-radius:16px;padding:8px}.shopItem span{background:#F8D66D;border-radius:7px;padding:4px 8px;font-weight:900}.note{position:relative;border:2px solid #58786a;overflow:hidden;min-width:0;width:clamp(65px,12vw,145px);padding:4px;aspect-ratio:1.9;display:grid;place-items:center}.billArt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate;width:100%;height:100%;border:1px solid #58786a65;border-radius:4px;padding:2px 3px;overflow:hidden}.billArt small{font-size:clamp(6px,.9vw,10px);z-index:1}.billArt b{z-index:1;font-size:clamp(12px,1.8vw,22px)}.billMark{position:absolute;right:-4%;bottom:-36%;font-size:clamp(32px,6vw,68px);opacity:.13;z-index:0}.note500{aspect-ratio:1;border-radius:50%;width:clamp(42px,7vw,78px)}.note500 .billArt{border-radius:50%}.cashselect .note{width:100%;min-height:0}.cashselect .note500{aspect-ratio:1.9;border-radius:12px}.cashselect .note500 .billArt{border-radius:5px}.tapgrid{width:96%;gap:clamp(5px,1vw,12px)}.tapgrid button{width:clamp(42px,8vw,105px);padding:4px}.group:has(.objects img:only-child) .objects img{max-height:clamp(60px,33vh,210px)}.objects img{max-height:clamp(35px,23vh,150px)}
@media(orientation:portrait){.tapgrid button{width:clamp(44px,14vw,92px)}.cashPerson>img,.shopItem>img{width:clamp(65px,23vw,150px);height:clamp(55px,13vh,130px)}.note{width:clamp(64px,25vw,130px)}.note500{width:clamp(42px,15vw,78px)}.cashselect{width:min(94%,360px);gap:8px}.cashselect .note{aspect-ratio:2.4}.cashselect .note500{aspect-ratio:2.4}.billArt small{font-size:clamp(8px,2.2vw,11px)}.billArt b{font-size:clamp(13px,4vw,21px)}.lessonpanel .coach img{width:34px;height:34px}.objects img{max-height:clamp(32px,12vh,95px)}}
@media(max-height:420px) and (orientation:landscape){.tapgrid button{width:clamp(34px,6.8vw,65px)}.cashPerson>img,.shopItem>img{height:clamp(35px,17vh,70px)}.cashselect{max-width:300px}.cashselect .note{aspect-ratio:2.6}.cashselect .note500{aspect-ratio:2.6}.exitCard{gap:5px}.exitCard button{min-height:30px}}

.homeactions{display:flex;gap:7px}.homeactions button{flex:1;font-size:clamp(11px,1.8vw,18px);padding:6px}.worldFrame{width:100%;height:100%;min-height:0;border-radius:16px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.worldFrame.immersive{background-image:var(--world);background-size:cover;background-position:center}.worldWork{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;position:relative;padding:6px}.immersive .worldWork:not(.groupWork){background:#fff7;border-radius:15px;width:95%;height:90%}.worldWork .groups{width:100%;max-height:100%;flex-wrap:wrap;justify-content:center}.worldWork .group{min-width:24%;max-height:100%;background:#fffD}.worldWork .objects img{max-height:clamp(20px,14vh,95px)}.worldWork .group:has(.objects img:nth-child(11)) .objects img{max-height:clamp(15px,7vh,45px)}.worldmap{flex:1;min-height:0;display:grid;grid-template-columns: .6fr 1.4fr;gap:12px;align-items:center}.worldIntro{display:flex;flex-direction:column;gap:8px}.worldIntro p{font-size:clamp(11px,1.5vw,16px)}.profileSwitch{display:flex;gap:5px}.worldTiles{height:100%;min-height:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);gap:8px}.worldTiles button{display:flex;flex-direction:column;justify-content:end;align-items:stretch;background-image:var(--world);background-size:cover;background-position:center;padding:6px;overflow:hidden}.worldTiles strong,.worldTiles small{background:#ffffffe9;padding:3px;border-radius:6px}.worldTiles strong{font-size:clamp(12px,2vw,20px)}.worldTiles small{font-size:clamp(9px,1.2vw,12px)}.dragGroups{display:flex;flex-direction:column;justify-content:center;gap:6px;width:100%;height:100%;min-height:0}.dragSource{display:flex;align-items:center;justify-content:center;gap:6px;background:#fffD;border-radius:12px;padding:4px;font-size:clamp(9px,1.4vw,14px);min-height:36px;flex-wrap:wrap}.dragSource small{font-size:10px}.dragObject{touch-action:none;padding:2px;box-shadow:none;border:2px solid #168C80;display:grid;place-items:center;width:clamp(36px,7vw,62px);height:clamp(36px,7vw,62px)}.dragObject img,.dragGhost img{width:100%;height:100%;object-fit:contain;pointer-events:none}.dragGhost{position:fixed;z-index:999;pointer-events:none;width:48px;height:48px;padding:2px;transform:translate(-50%,-50%);background:#fff;border:2px solid #168C80;box-shadow:none}.basketGrid{display:grid;grid-template-columns:repeat(var(--bincols),1fr);gap:5px;min-height:0}.basket{min-width:0;border-radius:13px;background:#fff8;border:2px dashed #92AF85;display:flex;flex-direction:column;justify-content:end;min-height:55px;padding:3px}.basketFill{min-height:25px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1px}.basketFill img{width:clamp(14px,3vw,32px);height:clamp(14px,3vw,32px);object-fit:contain}.basketBase{background:repeating-linear-gradient(0deg,#DDB37D 0 5px,#F2D3A0 5px 9px);border:2px solid #A77B52;border-radius:5px 5px 15px 15px;display:flex;justify-content:space-around;align-items:center;padding:3px;gap:2px}.basketBase button{padding:0 7px;box-shadow:none;min-height:25px;font-size:16px}.dropHover{outline:3px solid #168C80;background:#E4F2C8}.clockUI{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;gap:4px}.clockUI svg{flex:1;min-height:0;touch-action:none;cursor:grab}.clockUI small{font-size:10px}.clockButtons{display:flex;gap:8px}.clockButtons>div{display:flex;gap:3px;align-items:center}.clockButtons button{padding:2px 10px;font-size:15px}.coach.shown img{animation:celebrate .5s ease-in-out}@keyframes celebrate{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-5px) rotate(-8deg)}}@media(prefers-reduced-motion:reduce){.coach.shown img{animation:none}}@media(orientation:portrait){.worldmap{grid-template-columns:1fr;grid-template-rows:auto 1fr}.worldTiles{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,1fr)}.worldWork .objects img{max-height:clamp(30px,10vh,70px)}}@media(max-height:420px) and (orientation:landscape){.worldFrame{border-radius:10px}.worldWork{padding:3px}.dragGroups{gap:3px}.dragSource{padding:2px;min-height:28px}.dragObject{height:30px;width:30px}.basket{min-height:42px;padding:2px}.basketFill{min-height:16px}.basketFill img{height:clamp(13px,5vh,22px);width:clamp(13px,5vh,22px)}.basketBase{padding:1px}.basketBase button{min-height:20px;font-size:12px}.worldIntro h2{font-size:22px}.clockButtons button{padding:0 8px}.clockUI small{font-size:9px}.homeactions button{padding:4px}}

#app,button,svg{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button{touch-action:manipulation}.worldArt{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden}.worldArt img,.worldArt svg{width:72%;height:100%;min-height:0;max-height:95px;object-fit:contain;pointer-events:none}.worldTiles button{isolation:isolate;justify-content:space-between}.worldTiles strong,.worldTiles small{flex-shrink:0}.worldIntro small{font-weight:700;color:#164E48}

/* v0.6.3: Pasar Buah art layer, independent from countable objects */
.marketScene{background-size:cover!important;background-position:center 55%!important;border-radius:16px;isolation:isolate;box-shadow:inset 0 0 0 1px #164e4820}
.marketScene .worldWork{background:none!important;border-radius:0!important;width:100%!important;height:100%!important;padding:4px 7%;align-items:flex-end;}
.marketScene .scene{overflow:visible;align-items:flex-end;height:100%}
.marketScene .scenecontent{align-items:flex-end;padding:0 0 8%;}
.marketScene .groups{align-items:flex-end;gap:8px;flex-wrap:nowrap;}
.marketScene .group{background:#fff2d9!important;border:2px solid #9b633e;border-radius:12px 12px 8px 8px;padding:5px 7px 6px;box-shadow:0 4px 0 #8b552f;position:relative;gap:3px;}
.marketScene .group:after{content:'';display:block;width:100%;height:clamp(9px,2vh,17px);border-radius:4px;background:repeating-linear-gradient(0deg,#b77a42 0 2px,#e4b77b 2px 7px);border:1px solid #9b633e;flex-shrink:0;}
.marketScene .objects{gap:3px;max-width:100%;grid-template-columns:repeat(var(--cols),minmax(0,1fr));}
.marketScene .objects img{width:100%;max-height:clamp(24px,16vh,100px)!important;object-fit:contain;}
.marketScene .group:has(.objects img:nth-child(6)) .objects img{max-height:clamp(20px,10vh,65px)!important;}
.marketScene .group:has(.objects img:nth-child(11)) .objects img{max-height:clamp(17px,7vh,44px)!important;}
.marketScene .glabel{font-size:clamp(9px,1.4vw,13px);color:#754925;}
.marketScene .operator{background:#fff3d5;border-radius:10px;padding:0 5px;align-self:center;color:#164e48;}
.marketScene .marketCoach{position:absolute;top:29%;left:4%;width:19%;height:30%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 0 #164e4815);z-index:-1;}
.marketScene.marketSelect .worldWork{align-items:flex-end;padding:4px 9% 12%;}
.marketScene .tapgrid{display:grid;grid-template-columns:repeat(var(--marketcols,5),minmax(0,1fr));width:100%;gap:5px;padding:7px;background:#fff3dc;border:2px solid #a16b44;border-radius:12px;box-shadow:0 4px 0 #9b633e;}
.marketScene .tapgrid button{width:100%;max-width:78px;aspect-ratio:1;min-width:0;justify-self:center;padding:4px;box-shadow:0 2px 0 #dfc7a2;border-color:#d9bc93;}
.marketScene .tapgrid button.selected{background:#d0edb7!important;outline:2px solid #168c80;}
.marketScene .ordering{height:auto;padding:10px;background:#fff2dc;border:2px solid #9b633e;border-radius:12px;margin-bottom:9%;}
.marketScene .ordChoices button{background:#fff;border-color:#d5ae76;}
.marketScene .ordSlots>div{background:#fdf7e9;border-color:#168c80;}
.marketScene.marketOther .worldWork{align-items:center;}
.marketScene.marketOther .worldWork>svg,.marketScene.marketOther .equation{background:#fff7e7;border-radius:14px;padding:8px;max-height:85%;}
.worldTiles button.premiumMarket{background-position:center 45%;border:2px solid #168c80;position:relative;padding:6px;}
.premiumMarket .worldArt{align-items:start;justify-items:start;}
.premiumMarket .marketFlag{font-size:clamp(8px,1vw,11px);background:#164e48;color:#fff;border-radius:20px;padding:3px 7px;white-space:nowrap;}
.worldTiles .premiumMarket strong{background:#fff4df;color:#164e48;}
@media(orientation:portrait){.marketScene .scenecontent{padding-bottom:13%;}.marketScene .objects img{max-height:clamp(26px,12vh,105px)!important;}.marketScene .group:has(.objects img:nth-child(6)) .objects img{max-height:clamp(20px,8vh,68px)!important;}.marketScene.marketSelect .worldWork{padding-bottom:15%;}.marketScene .marketCoach{top:29%;height:27%;}}
@media(max-height:420px) and (orientation:landscape){.marketScene .scenecontent{padding-bottom:6%;}.marketScene.marketSelect .worldWork{padding-bottom:5%;}.marketScene .tapgrid{gap:4px;padding:4px;}.marketScene .tapgrid button{max-width:50px;padding:3px;}.marketScene .ordering{padding:5px;margin-bottom:3%;}.marketScene .ordSlots>div,.marketScene .ordChoices>button{padding:3px;font-size:18px;}.marketScene .ordering>button{padding:3px;}.marketScene .marketCoach{top:24%;height:30%;}}

/* v0.6.3 — interactive market mission */
.storyMarket{background-image:var(--world);background-size:cover;background-position:center;position:relative;isolation:isolate;overflow:hidden;border-radius:18px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:7px 5% 9%;width:100%;height:100%;min-height:0}
.storyMarket .storyMascot{position:absolute;left:3%;top:25%;height:28%;width:24%;object-fit:contain;filter:drop-shadow(0 2px 1px #164e4840);animation:floatEi 3s ease-in-out infinite;pointer-events:none;z-index:2}
.storyMarket .storyMascot.right{left:auto;right:3%}.storyMarket .storyTicket{position:absolute;right:6%;top:28%;width:48%;background:#fff5db;border:2px solid #b9854d;border-radius:12px;padding:5px 9px;box-shadow:0 3px 0 #86593470;color:#754925;text-align:center;z-index:1}
.storyTicket strong{display:block;font-size:clamp(11px,1.7vw,18px)}.storyTicket small{font-size:clamp(9px,1.2vw,13px)}
.storyFruitRow{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap;position:relative;z-index:3;max-height:56%;padding:0 4%;min-height:0}.storyFruitRow img,.storyFruitRow button{width:clamp(30px,7.4vw,90px);height:clamp(30px,8vh,84px);object-fit:contain;flex:0 0 auto}.storyFruitRow img{filter:drop-shadow(0 3px 1px #75492535)}.storyFruitRow button{border:0;background:transparent;box-shadow:none;padding:1px;touch-action:none}.storyFruitRow button img{width:100%;height:100%;pointer-events:none}.storyFruitRow button:active{transform:scale(.9)}
.storyMarket .storyFruitRow.receipt img{width:clamp(34px,8vw,98px);height:clamp(35px,13vh,105px)}.storyMarket .storyFruitRow.receipt{margin-bottom:8%;padding:7px;background:#fff5dbdf;border-radius:13px;border:2px dashed #ae7950;align-self:center;max-width:85%}
.storyMarket .storyShelf{position:relative;display:flex;flex-direction:column;gap:4px;align-items:center;z-index:3;min-height:0;margin-top:auto}.storyShelf .poolLabel{background:#fff8e7ef;border-radius:16px;padding:3px 9px;font-size:clamp(10px,1.4vw,14px);text-align:center}.storyBaskets{display:flex;width:100%;gap:10px;justify-content:center;align-items:flex-end;min-height:0}.storyBasket{width: min(47%,240px);border:2px solid #94623c;border-radius:14px 14px 24px 24px;background:#efc887;box-shadow:0 4px 0 #8c5a36;position:relative;min-width:0;transition:transform .15s}.storyBasket.dropHover{outline:3px solid #42c7c4;transform:scale(1.03)}.storyBasket .basketFruit{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;min-height:clamp(28px,8vh,74px);gap:0;padding:2px 6px;background:#fff2cf;border-radius:11px 11px 0 0}.basketFruit img{width:clamp(21px,4.1vw,49px);height:clamp(22px,5.5vh,55px);object-fit:contain;animation:fruitPop .2s ease-out}.storyBasket .woven{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:3px 6px;background:repeating-linear-gradient(0deg,transparent 0 8px,#a66c3e45 8px 10px),repeating-linear-gradient(90deg,#dda96c 0 8px,#c48b52 8px 11px);border-top:3px solid #94623c;border-radius:0 0 20px 20px}.woven button{padding:0;min-width:32px;min-height:30px;background:#fff9e9;border-radius:50%;border:1px solid #9d714c;box-shadow:0 2px 0 #9d714c;font-size:19px}.woven b{font-size:clamp(11px,1.5vw,17px);color:#57351f;text-align:center}.storyMarket .storyMath{background:#fff6dbed;border-radius:18px;padding:12px 18px;align-self:center;text-align:center;box-shadow:0 4px 0 #a76c3a;border:2px solid #b27e50;font-size:clamp(25px,5vw,64px);font-weight:900;margin-bottom:8%}.storyMath small{display:block;font-size:clamp(10px,1.5vw,16px);color:#85562f}.soundToggle{padding:4px 8px;font-size:12px;white-space:nowrap}.celebrateBadge{font-size:clamp(16px,3vw,30px);padding:8px 12px;background:#ffedb4;border:2px solid #e1b34c;border-radius:20px;text-align:center;animation:fruitPop .45s ease-out}.coach.shown img{animation:fruitPop .35s ease-out}.lessonpanel .primary:active{transform:translateY(2px);box-shadow:none}.phasebar .active{transition:color .2s}.storyMarket .storyFruitRow:empty{min-height:24px}
@keyframes floatEi{50%{transform:translateY(-4px) rotate(-2deg)}}@keyframes fruitPop{0%{transform:scale(.8)}65%{transform:scale(1.08)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(orientation:portrait){.storyMarket{padding-bottom:11%}.storyFruitRow img,.storyFruitRow button{width:clamp(30px,13vw,78px);height:clamp(28px,8vh,80px)}.storyMarket .storyFruitRow.receipt img{width:clamp(35px,16vw,92px);height:clamp(40px,12vh,95px)}.basketFruit img{width:clamp(22px,9vw,49px)}.storyMarket .storyTicket{top:22%}.storyMarket .storyMascot{top:21%;height:25%}}
@media(max-height:420px) and (orientation:landscape){.storyMarket{padding-bottom:6%;gap:3px}.storyMarket .storyMascot{top:25%;height:28%;width:22%}.storyMarket .storyTicket{top:23%;padding:3px 5px}.storyFruitRow img,.storyFruitRow button{width:clamp(24px,5.8vw,47px);height:clamp(24px,9vh,45px)}.storyMarket .storyFruitRow.receipt{margin-bottom:4%;padding:4px}.storyMarket .storyFruitRow.receipt img{height:clamp(30px,13vh,65px);width:clamp(30px,7vw,68px)}.storyBasket .basketFruit{min-height:24px}.basketFruit img{width:26px;height:26px}.woven button{min-width:26px;min-height:25px;font-size:16px}.storyShelf .poolLabel{padding:2px 6px}.storyMath{margin-bottom:5%}}

/* v0.6.4: responsive market composition, compact landscape */
@media(orientation:landscape) and (max-height:420px){.lessonpanel .keypad{grid-template-columns:repeat(6,1fr)}}
.storyMarket .storyTicket{position:relative;top:auto;right:auto;align-self:center;width:auto;max-width:70%;z-index:3;padding:4px 9px;flex-shrink:0;}
.storyMarket .storyTicket small{display:none}
.storyMarket .storyFruitRow.receipt{margin:0 0 4%;flex-shrink:0;max-height:none;gap:3px}
.storyMarket:has(.receipt){justify-content:flex-end;gap:5px;padding-bottom:12%}
.storyMarket:has(.receipt) .storyMascot{top:22%;left:3%;width:19%;height:25%}
.storyMarket .storyShelf .poolLabel{max-width:75%;line-height:1.15}
.storyMarket:has(.storyShelf) .storyMascot{top:13%;height:22%;width:19%;z-index:2}
.storyBasket .woven b{font-size:clamp(10px,1.4vw,15px);line-height:1.15}
.storyBasket .basketFruit{background:#f8dfaf; border-radius:12px 12px 0 0;box-shadow:inset 0 4px 0 #d6a86c}
.storyMarket .storyShelf{gap:4px}
.storyMarket .storyFruitRow button img{filter:drop-shadow(0 2px 1px #75492530)}
@media(orientation:portrait){.storyMarket:has(.receipt){padding-bottom:14%}.storyMarket .storyTicket{max-width:68%}.storyMarket .storyFruitRow.receipt img{width:clamp(32px,15vw,78px);height:clamp(32px,12vh,85px)}}
@media(orientation:landscape) and (max-height:320px){
#app{padding:5px 10px 8px;gap:4px}header{min-height:24px;gap:6px}.brand{font-size:20px}header button{padding:2px 7px}.stage{gap:10px;grid-template-rows:minmax(0,1fr)}.lessonvisual{padding:5px;gap:3px}.sceneTag{font-size:9px;padding:2px 6px}.lessonpanel{justify-content:center;gap:3px}.lessonpanel>*{flex-shrink:0}.lessonpanel .phasebar span{font-size:9px;padding:0 0 1px;border-bottom-width:2px}.lessonpanel .eyebrow{font-size:9px;line-height:1.05}.lessonpanel h2{font-size:clamp(13px,2.1vw,19px);line-height:1.1}.lessonpanel .options{gap:4px}.lessonpanel .option{font-size:17px;padding:2px;line-height:1.1}.lessonpanel .keypad{gap:3px;grid-template-columns:repeat(6,1fr)}.lessonpanel .keypad button{font-size:14px;line-height:1.05;padding:1px 0}.lessonpanel .answer{font-size:16px;padding:0;line-height:1.15}.lessonpanel .coach{min-height:16px;gap:4px}.lessonpanel .coach img{width:19px;height:19px}.lessonpanel .feedback{font-size:9px;line-height:1.1;min-height:0}.lessonpanel .primary{font-size:14px;line-height:1.15;padding:5px;min-height:26px}.lessonpanel .actiontip{font-size:11px;padding:4px}.lessonpanel .mini{font-size:9px;line-height:1.1}.storyMarket:has(.receipt){padding-bottom:6%;gap:3px}.storyMarket .storyFruitRow.receipt{margin-bottom:2%;padding:3px}.storyMarket .storyFruitRow.receipt img{height:clamp(22px,12vh,48px);width:clamp(22px,6vw,48px)}.storyMarket .storyTicket{padding:2px 6px}.storyTicket strong{font-size:10px}.storyMarket .storyShelf .poolLabel{font-size:9px}.storyMarket .storyFruitRow button{height:clamp(18px,9vh,32px);width:clamp(18px,5vw,32px)}.storyBasket .basketFruit{min-height:22px}.basketFruit img{width:20px;height:20px}.storyBasket .woven{padding:2px 4px}.woven button{min-width:24px;min-height:23px;font-size:15px}.storyMarket .storyMath{padding:7px 12px}.storyMarket .storyMath small{font-size:10px}
}
/* EiZi Premium UI/UX v1.0 — Tropical Discovery */
:root{--ui-radius:18px;--ui-border:#c8d9ce;--ui-shadow:#c6d9cd;--ui-ink:#164E48;--ui-soft:#fdfbf6;--ui-focus:#F4A340;--ui-font:ui-rounded,"Nunito","Arial Rounded MT Bold",system-ui,sans-serif;--ui-space:8px;--ui-primary:#168C80;--ui-primary-edge:#116c63}
body{font-family:var(--ui-font);font-weight:650;background:var(--ivory)}
button{border:1.5px solid var(--ui-border);border-radius:var(--ui-radius);box-shadow:0 3px 0 var(--ui-shadow);transition:transform .12s,background-color .15s,box-shadow .12s;line-height:1.2}
button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--ui-shadow)}button:disabled{opacity:.55;box-shadow:none}
.primary{background:var(--ui-primary);box-shadow:0 4px 0 var(--ui-primary-edge);color:#fff;border:1.5px solid var(--ui-primary-edge)}.primary:disabled{background:#c4d7cf;color:#41685d;border-color:#c4d7cf;opacity:1}.primary:active:not(:disabled){box-shadow:0 1px 0 var(--ui-primary-edge)}
.brand{letter-spacing:-1.2px;font-family:var(--ui-font)}header button{border-radius:14px}.uiIcon{width:1.15em;height:1.15em;vertical-align:-.19em;display:inline-block;flex:none}.progresslabel{font-variant-numeric:tabular-nums}.track{height:10px;background:#d7e8df}.track span{background:var(--teal)}
.visual{border:1px solid #164e4815}.lessonvisual{border-radius:var(--ui-radius)}.lessonpanel h2{font-weight:850;letter-spacing:-.025em}.eyebrow{letter-spacing:.07em}.phasebar{gap:4px}.phasebar span{border:0;background:#e8e9df;border-radius:7px;padding:4px 1px;font-weight:700}.phasebar .active{background:var(--phase);color:#fff}.phasebar .active[style*="A36A15"]{background:#f4c570;color:#684512}.phasebar .active[style*="#168C80"]{background:#168c80;color:#fff}.option{border-radius:15px}.selected{background:#fff0c8!important;border-color:#c79d40!important}.correctChoice{background:#d4edc9!important;border-color:#72a954!important}.answer{border-radius:15px;border-color:#a8c9b9;font-variant-numeric:tabular-nums}.coach{border-radius:12px;background:#eaf2e8;padding:3px 6px}.coach.shown:has(.good){background:#dcefd0}.coach.shown:has(.bad){background:#fff0d4}.coach.shown img{animation:uiCoach .35s ease-out}.actiontip{background:#fff;border:1px solid #e0e6dc}.sceneTag{letter-spacing:.01em}
.homevisual{background:#d9eee0;isolation:isolate}.homevisual:before{bottom:-46%;background:#a8d7bc;transform:rotate(-5deg)}.homevisual:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse at 85% 17%,#f8d66d 0 7%,transparent 7.4%),radial-gradient(ellipse at 4% 78%,#86b84a 0 12%,transparent 12.5%),radial-gradient(ellipse at 98% 85%,#168c80 0 10%,transparent 10.5%)}.mascots{padding:8% 4% 0}.mascots img{width:48%;filter:drop-shadow(0 5px 0 #164e4814)}.mascots-label{background:#f8f5ecdf;padding:5px 12px;border-radius:20px;z-index:2;letter-spacing:.02em}.homeactions{flex-wrap:wrap}.homeactions button{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}.profile{border-color:#bad3c7;box-shadow:0 3px 0 #a8cabb}.profile small{white-space:nowrap}.profile img{background:#e6f4e9;border-radius:12px}.worldTiles button{border-radius:18px;box-shadow:0 3px 0 #b6cfc0}.worldTiles strong{border-radius:9px 9px 3px 3px}.worldTiles small{border-radius:3px 3px 9px 9px}.worldTiles button:focus-visible{outline-offset:0}
/* reward system */
.rewardVisual{background:#e3f4ef;isolation:isolate;justify-content:center;gap:6px}.rewardVisual:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 44%,#fff9dc 0 24%,transparent 24.5%);z-index:-1}.rewardVisual .medalArt{width:min(50%,200px);height:min(60%,200px);flex:none;animation:uiMedal .6s cubic-bezier(.2,.75,.2,1) both}.rewardVisual .rewardFriends{display:flex;width:100%;height:32%;justify-content:space-around;position:absolute;bottom:8px;left:0;pointer-events:none}.rewardFriends img{width:25%;height:100%;object-fit:contain;animation:uiCoach .5s ease-out}.rewardLabel{font-size:clamp(12px,2vw,19px);text-align:center;z-index:2;background:#fff9e8;padding:4px 12px;border-radius:14px;font-weight:850}.rewardPanel .summaryboxes div{border:1px solid #d5e4d9;border-radius:14px}.rewardPanel h1{font-size:clamp(22px,3.6vw,44px)}.rewardPanel .summaryboxes strong{font-size:clamp(20px,4vw,38px)}.rewardPanel .summaryboxes div{font-size:clamp(11px,1.5vw,17px)}.rewardMeta{font-size:clamp(12px,1.6vw,17px);color:#4b7164}.rewardCollection{display:grid;grid-template-columns:.65fr 1.35fr;gap:16px;flex:1;min-height:0;align-items:center}.rewardTiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;height:100%;min-height:0}.rewardTile{border:1px solid #d0dfd4;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:7px;min-height:0;text-align:center}.rewardTile svg{width:58%;height:55%;min-height:0;max-height:110px}.rewardTile b{font-size:clamp(11px,1.6vw,17px);line-height:1.15}.rewardTile small{font-size:clamp(9px,1.2vw,12px);color:#58766c}.rewardTile.unearned{background:#f3f4ee}.rewardTile.unearned svg{filter:grayscale(1);opacity:.4}.rewardIntro{display:flex;flex-direction:column;gap:8px}.rewardIntro .profileSwitch button{flex:1}.rewardIntro p{font-size:clamp(12px,1.6vw,18px)}.rewardIntro strong{font-size:clamp(20px,3vw,32px)}.rewardPanel .secondary{font-size:clamp(12px,1.6vw,17px)}
@keyframes uiMedal{0%{transform:scale(.65) rotate(-8deg);opacity:0}100%{transform:scale(1);opacity:1}}@keyframes uiCoach{0%{transform:translateY(3px) scale(.92)}65%{transform:translateY(-3px) scale(1.03)}100%{transform:none}}
@media(orientation:portrait){.rewardCollection{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:9px}.rewardTiles{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.rewardTile svg{max-height:84px}.rewardIntro{gap:5px}.rewardPanel .summaryboxes div{padding:7px}.homeactions button{font-size:11px}.mascots{padding:3% 2% 0}}
@media(max-height:420px) and (orientation:landscape){.phasebar span{padding:2px 1px}.coach{padding:1px 4px}.rewardPanel{gap:5px}.rewardPanel .summaryboxes div{padding:5px}.rewardTiles{gap:5px}.rewardTile{padding:4px;gap:2px}.rewardIntro{gap:5px}.rewardPanel h1{font-size:clamp(20px,3vw,30px)}.rewardPanel p{font-size:12px}.rewardPanel button{padding:5px}.rewardVisual .rewardLabel{padding:3px 8px}.homeactions button{font-size:11px}}
@media(max-height:320px) and (orientation:landscape){.lessonpanel .phasebar span{padding:1px 0;font-size:9px}.lessonpanel .coach{padding:0 3px}.lessonpanel .primary{box-shadow:0 2px 0 var(--ui-primary-edge)}.lessonpanel .primary:disabled{box-shadow:none}.rewardPanel .summaryboxes strong{font-size:20px}.rewardPanel .summaryboxes div{padding:4px}.rewardPanel h1{font-size:19px}.rewardPanel .eyebrow{font-size:9px}.rewardPanel p,.rewardMeta{font-size:10px}.rewardPanel button{padding:3px;font-size:12px}.rewardPanel{gap:3px}.rewardTile b{font-size:10px}.rewardTile small{font-size:9px}.rewardIntro h2{font-size:18px}.rewardIntro p{font-size:11px}.rewardIntro button{padding:4px}.homeactions{gap:4px}.homeactions button{padding:3px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


/* World Expansion: exact visual controls are isolated from illustrations. */
.worldTiles .worldExpanded{position:relative;background-size:cover;background-position:center;border:2px solid #168c80;justify-content:end;gap:2px}
.worldTiles .worldExpanded .worldArt{display:flex;align-items:flex-start;justify-content:flex-start;padding:2px;min-height:0;overflow:hidden}
.worldTiles .worldExpanded .marketFlag{font-size:clamp(8px,1.1vw,11px);background:#164e48;color:#fff;border-radius:16px;padding:3px 7px;white-space:nowrap}
.worldTiles .worldExpanded strong,.worldTiles .worldExpanded small{background:#fff9eaee;box-shadow:none;color:#164e48}
.expanded066{background-size:cover!important;background-position:center!important;isolation:isolate}
.expanded066 .worldWork{background:none!important;width:100%!important;height:100%!important;padding:5px 7%;border-radius:0!important}
.expanded066 .work066{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}
.expanded066 .mathMat066{background:#fff8e9f2;border:2px solid #b78f64;border-radius:16px;padding:5px;max-height:97%;width:96%;height:auto;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 0 #75492555;min-height:0}
.expanded066 .mathMat066>svg{width:100%;max-height:100%;min-height:0;object-fit:contain}
.expanded066 .mathMat066>.measure,.expanded066 .mathMat066>.clockWrap{max-height:100%}
.expanded066 .mathMat066:has(.equation){width:auto;min-width:54%;padding:clamp(8px,2vw,22px)}
.expanded066 .work066:has(.dragGroups) .dragGroups{background:none}
.expanded066 .group{background:#fff9e9ed;border:1px solid #cfa36d;box-shadow:0 3px 0 #a8734566}
.expanded066 .basket{background:#fff8e5e0;border-color:#9e865c}
.expanded066 .worldCoach066{position:absolute;left:2%;top:5%;width:15%;height:25%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 1px #164e4830);z-index:-1}
.expanded066 .mathMat066:has(.dragGroups){height:96%}
.expanded066 .mathMat066:has(.cashselect){padding:7px}
@media(orientation:portrait){.expanded066 .mathMat066{width:95%;max-height:94%}.expanded066 .worldCoach066{top:4%;width:18%}}
@media(max-height:320px) and (orientation:landscape){.expanded066 .worldWork{padding:2px 4%}.expanded066 .mathMat066{padding:2px;max-height:98%;border-radius:10px}.worldTiles .worldExpanded .marketFlag{font-size:8px;padding:2px 4px}}

/* v0.6.7.1: clear lesson composition, keep math layer independent */
.world-roti.pizza067 .mathMat066{background:transparent!important;border:0;box-shadow:none;padding:0;width:91%;height:94%;max-height:94%;}
.world-roti.pizza067 .mathMat066>svg{height:100%;width:100%;filter:drop-shadow(0 3px 2px #603d2255)}
.world-roti.pizza067 .worldWork{padding:3px 5% 3px!important}
.worldTiles .worldExpanded .marketFlag{background:#164E48e8;color:#fff;}

/* v0.6.7.1: avoid filtered SVG compositing on mobile, preserve stable touch targets */
.world-roti.pizza067 .mathMat066>svg{filter:none!important;transform:none!important;isolation:auto;overflow:visible;touch-action:manipulation}
.pizzaStable g[role=button]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pizzaStable g[role=button]:focus-visible path{stroke:#168C80;stroke-width:4}
/* v0.6.8 — motion design; never animate the interactive SVG canvas itself */
@keyframes eiziEnter{from{opacity:.25;translate:0 5px}to{opacity:1;translate:0 0}}
@keyframes eiziPhase{from{opacity:.55}to{opacity:1}}
@keyframes eiziFruit{0%{opacity:.5;transform:translateY(-9px) scale(.8)}70%{opacity:1;transform:translateY(1px) scale(1.06)}100%{transform:none}}
@keyframes eiziJoy{0%,100%{transform:none}35%{transform:translateY(-5px) rotate(-7deg)}70%{transform:translateY(-2px) rotate(5deg)}}
@keyframes eiziEncourage{0%,100%{transform:none}50%{transform:rotate(-6deg)}}
@keyframes eiziMedal{0%{opacity:0;scale:.72}65%{opacity:1;scale:1.06}100%{scale:1}}
@keyframes eiziConfetti{0%{opacity:0;transform:translateY(-15px) rotate(0deg)}20%{opacity:1}100%{opacity:0;transform:translateY(90px) rotate(140deg)}}
.phaseEnter068 .lessonpanel{animation:eiziEnter .23s ease-out both}.phaseEnter068 .phasebar .active{animation:eiziPhase .3s ease-out both}
.coach.motionGood068 img{animation:eiziJoy .48s ease-out}.coach.motionTry068 img{animation:eiziEncourage .45s ease-out}
.coach.motionGood068{background:#e1f2d9}.coach.motionTry068{background:#fff0d8}
.motionObject068{animation:eiziFruit .26s ease-out both}.rewardVisual .medalArt{animation:eiziMedal .55s ease-out both}.rewardVisual .rewardFriends img{animation:eiziJoy .7s ease-out 2}
.confetti068{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}.confetti068 i{position:absolute;top:var(--y);left:var(--x);height:8px;width:5px;border-radius:2px;background:var(--c);animation:eiziConfetti 1.2s var(--delay) ease-out both}
.pizzaStable,.pizzaStable *{-webkit-tap-highlight-color:transparent;outline:none}.pizzaStable g[aria-pressed] path{transition:fill .12s linear}
.world-sekolah .mathMat066{background:rgba(255,249,229,.94)}
@media(prefers-reduced-motion:reduce){.phaseEnter068 .lessonpanel,.phaseEnter068 .phasebar .active,.coach.motionGood068 img,.coach.motionTry068 img,.motionObject068,.rewardVisual .medalArt,.rewardVisual .rewardFriends img,.confetti068 i,.mascots img,.storyMascot{animation:none!important;transition:none!important}.confetti068{display:none}.pizzaStable g[aria-pressed] path{transition:none}}

/* v0.6.9: progression and contextual approved poses */
.rank069{font-size:clamp(10px,1.45vw,14px);font-weight:800;line-height:1.2;color:#164e48}
.rankTrack069{height:5px;background:#dce8d8;border-radius:9px;overflow:hidden;margin-top:3px}.rankTrack069 i{display:block;height:100%;background:#168c80;border-radius:9px}
.bonus069{background:#fff0cc!important;border:1px solid #d6ac4e!important;box-shadow:0 3px 0 #d6ac4e!important;color:#164e48!important;font-size:clamp(10px,1.5vw,15px)!important;padding:5px 8px!important;line-height:1.18;min-height:0!important}.bonus069:disabled{opacity:.72;box-shadow:none!important}.bonus069 small{display:block;font-size:.8em;font-weight:700}
.worldIntro .progress069,.rewardIntro .progress069{display:flex;flex-direction:column;gap:3px}.worldIntro p,.rewardIntro p{margin:0}.worldIntro,.rewardIntro{gap:5px}.worldTiles button:active{transform:scale(.98)}.coach .feedback{min-width:0}.coach.pose069 img{object-fit:contain}.coach.pose069{border:1px solid #d3e8d9}.coach.pose069.thinking069{background:#fff0d8;border-color:#edd1a2}.coach.pose069.success069{background:#e1f2d9;border-color:#b8dca7}.coach .feedback .speaker069{font-weight:850}.rewardPanel .bonusNotice069{font-size:clamp(10px,1.5vw,15px);font-weight:800;color:#805716;line-height:1.15}.rewardVisual.grand069{background:#fff0ce}.rewardVisual.grand069:before{background:radial-gradient(circle at 50% 44%,#fffbe9 0 30%,transparent 31%)}
@media(orientation:portrait){.worldIntro,.rewardIntro{gap:4px}.worldIntro p,.rewardIntro p{font-size:11px}.worldIntro h2,.rewardIntro h2{font-size:clamp(17px,5vw,23px)}.worldTiles,.rewardTiles{gap:6px}.worldTiles button{padding:4px}.rewardTile{padding:4px;gap:2px}.rewardTile svg{max-height:70px}.rewardIntro strong{font-size:21px}}
@media(max-height:420px) and (orientation:landscape){.worldIntro,.rewardIntro{gap:4px}.worldIntro h2,.rewardIntro h2{font-size:clamp(16px,2.6vw,22px)}.worldIntro p,.rewardIntro p{font-size:10px}.rewardIntro strong{font-size:19px}.bonus069{padding:3px 5px!important}.rewardPanel .bonusNotice069{font-size:10px}.rewardPanel{gap:4px}}
@media(prefers-reduced-motion:reduce){.worldTiles button,.rankTrack069 i{transition:none!important;animation:none!important}}


.currMap070{flex:1;min-height:0;display:grid;grid-template-columns: 34% 1fr;gap:12px}.currIntro070,.currRight070{display:flex;flex-direction:column;min-height:0;gap:6px;justify-content:center}.currIntro070 p{margin:0}.currTiles070{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;flex:1;min-height:0}.currTiles070 button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:7px 10px;background:#fff;min-height:0;text-align:left}.currTiles070 strong{font-size:clamp(12px,2vw,22px);line-height:1.12}.currTiles070 small,.currTiles070 span{font-size:clamp(9px,1.2vw,13px);color:#58766c}.currTiles070 span{font-weight:700}.currRight070>.options{grid-template-columns:1fr 1fr 1fr}.currEntry070{padding:5px!important;font-size:clamp(11px,1.5vw,16px)!important}.currIntro070 small{font-size:11px}.reporttable>.options{grid-template-columns:1fr 1fr 1fr}.currMap070 h2{font-size:clamp(18px,3vw,28px)}@media(orientation:portrait){.currMap070{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:8px}.currTiles070 strong{font-size:15px}.currIntro070{gap:5px}.currIntro070 p{font-size:12px}.currEntry070{min-height:35px}}@media(max-height:320px) and (orientation:landscape){.currIntro070{gap:3px}.currIntro070 p{font-size:10px}.currIntro070 .primary{font-size:12px;padding:3px}.currTiles070 button{padding:3px 6px;gap:1px}.currTiles070 strong{font-size:12px}.currRight070>.options button{padding:2px;font-size:12px}}
.studio084{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);gap:clamp(7px,1.5vw,18px)}.studioScene084{min-height:0;position:relative;overflow:hidden;border-radius:20px;border:1px solid #c9ded2;background:linear-gradient(0deg,#164e4870,transparent 50%),var(--studio-bg) center/cover;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px}.studioTitle084,.studioFoot084{z-index:1;display:flex;background:#fff9ebf5;border:1px solid #d4c8a6;border-radius:12px;padding:5px 10px;gap:5px;color:#164e48;max-width:100%}.studioTitle084{flex-direction:column;text-align:center;position:absolute;top:8px;left:8px;right:8px;gap:0}.studioTitle084 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(13px,2vw,22px)}.studioTitle084 small,.studioFoot084{font-size:clamp(9px,1.2vw,13px)}.studioFigure084{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;padding:32px 6px 23px}.studioFigure084 svg{height:100%;max-width:100%;filter:drop-shadow(0 4px 2px #164e4833)}.studioFoot084{position:absolute;bottom:8px;left:8px;right:8px;justify-content:space-between;font-weight:700}.studioPanel084{display:flex;flex-direction:column;gap:clamp(5px,1vh,10px);min-height:0;min-width:0}.studioTabs084{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.studioTabs084 button{padding:6px 4px;border-radius:12px;font-size:clamp(11px,1.6vw,17px)}.studioTabs084 .selected{background:#168c80;color:white;border-color:#0d7569}.studioGrid084{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;flex:1;min-height:0}.studioCard084{min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;border-radius:14px;background:#fff;border:1px solid #c9ded2;overflow:hidden}.studioCard084.selected{background:#fff0c8;border:2px solid #c9a54a}.studioCard084 img,.studioCard084 svg{flex:1;min-height:0;max-height:68%;width:100%;object-fit:contain}.studioCard084 span{display:flex;flex-direction:column;gap:1px;max-width:100%;text-align:center}.studioCard084 b{font-size:clamp(10px,1.4vw,16px);line-height:1.1}.studioCard084 small{font-size:clamp(9px,1.15vw,12px);color:#527363}.studioDetail084{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #d4e1d5;background:#fff;border-radius:12px;padding:6px 9px;min-height:0}.studioDetail084 span{display:flex;flex-direction:column;min-width:0;gap:2px}.studioDetail084 b{font-size:clamp(12px,1.6vw,18px);line-height:1.1}.studioDetail084 small,.studioNotice084{font-size:clamp(9px,1.1vw,12px);color:#527363}.studioDetail084 button{padding:7px 10px;font-size:clamp(11px,1.4vw,16px);flex:none}.studioNotice084{min-height:1em;text-align:center}.emptyStudio084{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center;padding:14px;color:#527363;font-weight:650}.gearConfirm084 .gearIcon084{height:55px;width:85px;align-self:center}.avatar081:not(:disabled){background:#efe7fa}.avatar081:not(:disabled) .campTileIcon081{background:#ddd0f2}.studio084 button:focus-visible{outline:2px solid #3478d4;outline-offset:1px}
@media(orientation:portrait){.studio084{grid-template-columns:1fr;grid-template-rows:minmax(0,.85fr) minmax(0,1fr)}.studioGrid084{gap:5px}.studioFigure084{padding-top:36px;padding-bottom:22px}.studioDetail084{padding:6px}.studioCard084 b{font-size:11px}}
@media(max-height:420px) and (orientation:landscape){.studioScene084{border-radius:13px;padding:4px}.studioTitle084{top:4px;left:4px;right:4px;padding:2px;flex-direction:row;justify-content:space-between;align-items:center}.studioFoot084{bottom:4px;left:4px;right:4px;padding:2px 5px}.studioFigure084{padding:24px 4px 17px}.studioPanel084{gap:4px}.studioTabs084 button{padding:3px;font-size:11px}.studioGrid084{gap:4px}.studioCard084{flex-direction:row;padding:3px;gap:3px;border-radius:9px}.studioCard084 img,.studioCard084 svg{width:36%;height:90%;max-height:90%;flex:none}.studioCard084 span{flex:1;text-align:left}.studioCard084 b{font-size:clamp(9px,1.4vw,12px)}.studioCard084 small{font-size:9px}.studioDetail084{padding:3px 6px}.studioDetail084 button{padding:4px 8px}.studioNotice084{font-size:9px}}
.studioTabs084 button.selected{background:#168c80!important;color:#fff!important;border-color:#0d7569!important;box-shadow:0 3px 0 #0b665b!important}.studioCard084.selected{color:#164e48!important}.studioCard084 img,.studioCard084 svg{pointer-events:none}

/* Arena — compact landscape-first, no scroll */
.arenaMenu086,.arenaGame086{display:grid;grid-template-columns:1.1fr 1fr;flex:1;min-height:0;gap:clamp(8px,1.6vw,22px)}.arenaIntro086,.arenaScene086{background:var(--arena-bg) center/cover;border-radius:22px;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:clamp(5px,1.5vw,16px);position:relative;border:2px solid #c2ddce}.arenaIntroCard086,.arenaWin086{background:#fff8e9ef;border:2px solid #dcc18e;border-radius:18px;padding:clamp(8px,2vw,24px);display:grid;gap:8px;max-width:95%;text-align:center;justify-items:center}.arenaIntroCard086 .eyebrow{color:#168c80}.arenaChoices086,.arenaPanel086{display:flex;flex-direction:column;justify-content:center;gap:clamp(6px,1.4vh,14px);min-height:0}.arenaNote086{font-size:clamp(11px,1.7vw,17px)}.arenaCards086{display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;min-height:0;flex:1;max-height:430px}.arenaCard086{display:grid;grid-template-columns:minmax(56px,30%) 1fr;gap:9px;align-items:center;text-align:left;padding:4px 8px;min-height:0;overflow:hidden}.arenaCard086 span:last-child{display:grid;gap:2px}.arenaCard086 b{font-size:clamp(14px,2.3vw,25px)}.arenaCard086 small{font-size:clamp(10px,1.35vw,15px);line-height:1.15}.arenaThumb086{background:var(--arena-bg) center/cover;border-radius:10px;display:flex;align-items:center;justify-content:center;min-height:0;height:100%;max-height:95px}.arenaThumb086 svg{height:100%;width:100%;max-height:85px;object-fit:contain}.arenaTimer086{font-variant-numeric:tabular-nums;background:#e6f2d7;padding:5px 12px;border-radius:999px;white-space:nowrap}.arenaTargets086{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.arenaTargets086 button{font-size:clamp(18px,3vw,34px);font-weight:900;padding:8px 4px}.arenaFeedback086{min-height:1.4em;color:#216e55;font-weight:800}.arenaMemory086{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:7px;width:100%;max-width:450px;max-height:100%;background:#fff7e5e8;padding:9px;border-radius:16px;align-content:center}.arenaMemCard086{aspect-ratio:1;min-height:0;min-width:0;display:grid;place-items:center;padding:3px;background:#168c80;border:2px solid #164e48;color:#fff7de;box-shadow:0 3px 0 #164e48;font-size:clamp(24px,5vw,45px)}.arenaMemCard086.face{background:#fff5d6;color:#164e48;border-color:#d5b66d;box-shadow:0 3px 0 #d5b66d}.arenaMemCard086.matched{opacity:1;background:#d8edc8;border-color:#86b84a;box-shadow:none}.arenaMemCard086 img{width:100%;height:100%;max-height:100%;object-fit:contain;pointer-events:none}.arenaStat086{font-size:clamp(18px,3vw,32px);padding:8px;background:#e3f4ef;border-radius:12px;text-align:center}.arenaChef086{display:flex;flex-direction:column;gap:8px;background:#fff8e9ef;border:2px solid #dcc18e;border-radius:16px;padding:10px;width:95%;height:95%;min-height:0;max-width:460px;justify-content:center}.arenaRecipe086{display:flex;justify-content:space-around;gap:5px;flex-wrap:wrap;font-size:clamp(11px,1.6vw,17px);background:#fff;border-radius:8px;padding:5px}.arenaCups086{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:1;min-height:0}.arenaCups086>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:0}.arenaCup086{width:70%;max-width:120px;flex:1;min-height:28px;max-height:180px;background:#fff;border:3px solid #527f74;border-radius:8px 8px 20px 20px;overflow:hidden;position:relative;display:grid;place-items:center}.arenaCup086 i{position:absolute;bottom:0;left:0;width:100%;transition:height .2s}.arenaCup086 b{position:relative;background:#ffffffe0;padding:3px 8px;border-radius:8px;font-size:clamp(16px,3vw,30px)}.arenaPour086{display:flex;gap:6px}.arenaPour086 button{padding:3px 13px;font-size:clamp(18px,2.5vw,26px)}.arenaWin086 svg{width:clamp(75px,24vw,220px);max-height:45vh}.arenaPanel086 button{min-height:34px}.arenaScene086 button{user-select:none;-webkit-tap-highlight-color:transparent}
@media(orientation:portrait){.arenaMenu086,.arenaGame086{grid-template-columns:1fr;grid-template-rows:minmax(0,1.05fr) minmax(0,1fr);gap:8px}.arenaCards086{max-height:none}.arenaIntroCard086{padding:10px}.arenaIntro086,.arenaScene086{border-radius:17px}.arenaPanel086{justify-content:center}.arenaMemCard086{max-height:12vh}.arenaMemory086{width:min(100%,340px)}.arenaWin086 svg{max-height:22vh}}
@media(orientation:landscape) and (max-height:420px){.arenaIntro086,.arenaScene086{border-radius:14px;padding:4px}.arenaChoices086,.arenaPanel086{gap:4px}.arenaCard086{border-radius:10px;gap:5px;padding:2px 5px}.arenaCard086 small{font-size:10px}.arenaCards086{gap:4px}.arenaPanel086 p{font-size:12px}.arenaPanel086 h2,.arenaChoices086 h2{font-size:20px}.arenaPanel086 button{min-height:26px;padding:3px 7px}.arenaTimer086{font-size:12px;padding:4px 8px}.arenaMemory086{width:min(100%,calc((100dvh - 55px)*1.26));gap:4px;padding:5px}.arenaMemCard086{max-height:calc((100dvh - 75px)/3);border-radius:9px}.arenaChef086{padding:5px;gap:3px}.arenaCups086>div{gap:3px}.arenaPour086 button{padding:1px 10px}.arenaWin086 svg{max-height:34vh}}
@media(prefers-reduced-motion:reduce){.arenaCup086 i{transition:none}}

.arenaTicks086{position:absolute;inset:0 auto 0 0;width:16%;background:repeating-linear-gradient(to top,transparent 0,transparent calc(12.5% - 1px),#527f74 calc(12.5% - 1px),#527f74 12.5%);pointer-events:none}

/* v0.8.6.1: raster field + HTML targets and independent ball; no SVG filter or animated SVG transforms. */
.arenaPitch086{position:relative;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden;isolation:isolate;user-select:none;}
.pitchBg0861{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;}
.pitchGoals0861{position:absolute;left:15.83%;right:15.83%;top:20.36%;height:18.57%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3.5%;pointer-events:none;}
.pitchGoals0861 span{display:grid;place-items:center;background:#fffaf0;border:2px solid #164e48;border-radius:10px;color:#164e48;font-size:clamp(14px,3vw,32px);font-weight:900;line-height:1;}
.pitchGoals0861 span.aimed{background:#ffe18a;}
.pitchBall0861{position:absolute;left:50%;top:84.2857%;width:12%;height:auto;max-width:48px;max-height:18%;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none;transition:left .48s ease-out,top .48s ease-out,width .48s ease-out;}
.pitchBall0861.shot{width:6.6%;}
@media(prefers-reduced-motion:reduce){.pitchBall0861{transition:none;}}

