@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'Nunito',ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:#294b40;background:#f6f7f1;font-synthesis:none;--green:#285944;--muted:#87948b;--border:#e5e9de;--orange:#e7ac52}*{box-sizing:border-box}body{margin:0}button,a,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button{border:0}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #e5a94c;outline-offset:3px}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.topbar{height:94px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fffef9;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:#315b48;flex-shrink:0}.brand img{width:119px;height:55px;object-fit:contain;mix-blend-mode:multiply}.brand-divider{height:29px;width:1px;background:#dce3d7}.brand>span:last-child{font-size:10px;letter-spacing:2px;line-height:1.6}.brand b{font-size:12px;letter-spacing:1.6px}.level-nav{display:flex;gap:7px;align-items:center}.level-button{width:35px;height:35px;border-radius:50%;background:transparent;color:#8f9c91;font-weight:800;position:relative;border:1px solid transparent}.level-button:hover{background:#eef3e6}.level-button.active{color:white;background:var(--green);box-shadow:0 4px 0 #dbe6d6}.level-button.completed:not(.active){color:#3f6b4b;background:#e8f0dc}.level-button.completed:after{content:'•';color:#e1ad4e;font-size:19px;position:absolute;bottom:-12px;left:0;right:0}.header-tools{display:flex;gap:12px;align-items:center}.total-stars{display:flex;align-items:center;gap:6px;font-size:16px;margin-right:10px;white-space:nowrap}.total-stars .icon{color:#dda94b;fill:#edbd62}.total-stars>span{font-size:12px;color:#98a092}.icon-button{border:1px solid #e2e7dc;border-radius:50%;background:transparent;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;color:#657b6d;font-size:19px}.icon-button .icon{width:17px}.workspace{display:grid;grid-template-columns:338px minmax(0,1fr);max-width:1560px;margin:auto;padding:26px 32px 18px;gap:26px}.coding-panel{background:#fffefa;border:1px solid var(--border);border-radius:22px;box-shadow:0 5px 15px #294b4004;display:flex;flex-direction:column;min-width:0;overflow:hidden}.panel-intro{padding:25px 22px 19px}.eyebrow{font-size:9px;font-weight:900;letter-spacing:1.8px;color:#819477}.panel-intro h1{font-size:25px;letter-spacing:-.8px;line-height:1.2;margin:10px 0 8px;font-weight:900}.panel-intro h1 span{color:#dfad55}.panel-intro p{font-size:12px;color:#8c998e;margin:0}.toolbox{padding:0 20px 20px;border-bottom:1px solid var(--border)}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-label h2{font-size:12px;margin:0;font-weight:900}.section-label span{font-size:10px;color:#9ba296}.palette{display:grid;grid-template-columns:1fr 1fr;gap:8px}.command{display:flex;gap:9px;align-items:center;text-align:left;min-height:43px;border-radius:10px;padding:10px 12px;background:var(--soft);color:var(--ink);border:1px solid var(--line);font-size:12px;font-weight:800;transition:transform .15s}.command:hover:not(:disabled){transform:translateY(-2px)}.command:disabled{opacity:.38}.command .icon{width:19px;height:19px}.command .new-label{font-size:8px;margin-left:auto}.forward{--soft:#e9f0eb;--ink:#4a7962;--line:#dce6dc}.right,.left{--soft:#eeeef5;--ink:#8676aa;--line:#e3dfee}.water{--soft:#e8f2f5;--ink:#5598b4;--line:#dcecf0}.collect{--soft:#f9efd9;--ink:#b18b3f;--line:#eee1bc}.repeat{--soft:#f6e9e0;--ink:#c2885a;--line:#eedbc9}.program-section{padding:16px 20px 10px;flex:1;display:flex;flex-direction:column;min-height:275px;background:#fdfdf8}.program-heading{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-bottom:17px}.tabs{display:flex;gap:14px}.tabs button{background:transparent;padding:0 0 6px;color:#a3aa9e;font-size:12px;font-weight:800;border-bottom:2px solid transparent}.tabs button[aria-selected=true]{color:#315844;border-bottom-color:#507c59}.text-button{font-size:10px;color:#8f9d8e;background:transparent;padding:5px}.program-meta{display:flex;justify-content:space-between;align-items:center;color:#98a18e;font-size:10px;margin-bottom:10px}.program-meta>span:first-child{background:#eaf0dd;color:#75934e;padding:6px 12px;border-radius:6px;font-weight:800}.program-meta i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8eae61;margin-right:6px}.program{min-height:170px;max-height:310px;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:5px 5px 12px;background-image:radial-gradient(#e2e7d8 1px,transparent 1px);background-size:13px 13px;border:1px dashed transparent;border-radius:8px}.program.dragover,.loop-children.dragover{border-color:#e1ae57;background-color:#fcf4df}.program-empty{color:#9da892;font-size:12px;min-height:154px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center;pointer-events:none}.program-empty .empty-arrow{width:39px;height:39px;background:#f0f3e9;border-radius:12px;display:grid;place-items:center;font-size:22px;color:#9caf8f}.program-empty small{font-size:10px;color:#b0b8a8}.block{margin:0 0 7px;background:var(--soft);border:1px solid var(--line);border-radius:9px;color:var(--ink);transition:box-shadow .2s}.block.active{box-shadow:0 0 0 2px #e1ae4c,0 4px 10px #e1ae4c22}.block-row{display:flex;align-items:center;padding:9px 8px;gap:7px;min-height:40px}.block .icon{height:17px;width:17px}.block-name{font-size:11px;font-weight:800;flex:1}.block-num{color:#9ea69c;font-size:9px;min-width:13px}.block-tools{display:flex;gap:1px}.block-tools button{background:transparent;color:var(--ink);padding:1px 4px;font-size:12px}.block-tools button:last-child{font-size:16px}.loop-children{min-height:47px;margin:0 8px 7px 20px;padding:6px 5px 1px;border-left:2px solid #dbb28d;background:#ffffff65;border-radius:5px}.loop-empty{font-size:10px;margin:5px 0 10px;color:#b49778}.loop-select{background:#fff9ec;border:1px solid #ddc6a7;border-radius:4px;color:#ac7f51;width:34px;font-size:11px;padding:2px}.loop-target{background:transparent;color:#ac7f51;font-size:10px;padding:0 8px 7px;display:block;margin-left:20px}.loop-target.selected{font-weight:900;text-decoration:underline}.target-info{padding:7px 0;color:#aa8050;font-size:10px}.target-info button{background:#f5ebd9;border-radius:5px;font-size:10px;color:#9d7948;padding:5px;margin-top:4px}.python{min-height:170px;max-height:310px;overflow:auto;line-height:1.8;white-space:pre;font:11px/1.9 ui-monospace,monospace;color:#557965;background:#eff3e9;border-radius:9px;padding:14px;margin:0}.run-area{padding:15px 20px 16px;border-top:1px solid var(--border);background:#fffefa}.play-controls{display:flex;gap:8px}.run-button{color:#fffef3;background:var(--green);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800;font-size:14px;padding:14px 22px;box-shadow:0 3px 0 #153e30;flex:1}.run-button .icon{width:18px;height:18px;fill:#faf9e7;stroke-width:1.3}.secondary-button{background:#f3f5ec;border:1px solid #e4e9da;color:#849379;border-radius:11px;min-width:42px;font-size:22px;line-height:1}.step-button{font-size:15px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.step-button span{font-size:8px}.run-footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:10px;color:#a0a997}.speed-button{padding:0;background:transparent;font-size:10px;color:#9aa38e;display:flex;gap:5px}.speed-button b{color:#6e8463}.play-panel{min-width:0;display:flex;flex-direction:column}.mission{display:flex;align-items:center;gap:15px;padding:4px 2px 21px}.mission-number{width:43px;height:46px;display:grid;place-items:center;background:#edf0e2;border-radius:12px;color:#869c6c;font-weight:900;font-size:19px;flex-shrink:0}.mission-copy{flex:1}.mission h2{font-size:24px;letter-spacing:-.6px;margin:4px 0 4px;line-height:1.15;font-weight:900}.mission p{font-size:12px;line-height:1.5;color:#8b998b;margin:0}.hint-button{background:#faf8ec;border:1px solid #e9e6d1;color:#9b956b;border-radius:10px;padding:9px 13px;font-size:11px;white-space:nowrap}.hint-button span{color:#c7ac67;margin-right:4px}.farm-world{position:relative;isolation:isolate;background:#e9efdf;border:1px solid #e0e7d3;border-radius:23px;min-height:465px;flex:1;overflow:hidden;display:flex;flex-direction:column}.farm-world:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#f6f7e7 0%,transparent 65%);z-index:-1}.world-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 0}.location{color:#718668;font-size:9px;font-weight:900;letter-spacing:1.5px;display:flex;align-items:center;gap:7px}.live-dot{width:6px;height:6px;border-radius:50%;background:#8ca672}.weather{font-size:22px;color:#ceae69;display:flex;gap:7px;align-items:center}.weather span{color:#99a187;font-size:10px}.objectives{display:flex;justify-content:center;gap:8px;position:absolute;top:69px;left:0;right:0;z-index:2;pointer-events:none}.objective{padding:7px 11px;border-radius:25px;font-size:10px;color:#8b9b7c;border:1px solid #dfe7d1;background:#f8faefd9;display:flex;align-items:center;gap:6px;backdrop-filter:blur(5px)}.objective .icon{width:14px;height:14px}.objective b{color:#607d53}.objective.done{background:#dbeccc;color:#5b8846}.scene{width:100%;display:block;flex:1;min-height:355px;max-height:610px;margin-top:12px}.world-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-33px;padding:0 22px 20px;z-index:1}.direction-tag{font-size:10px;color:#768a6d;background:#f8faedcc;border:1px solid #e0e7d2;border-radius:7px;padding:7px 10px}.direction-tag b{color:#5393a0;margin-right:5px;font-size:15px}.world-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#a5ae91}.world-note .icon{width:15px;height:15px}.feedback{display:flex;align-items:center;gap:14px;background:#fffefa;border:1px solid var(--border);border-radius:15px;margin-top:15px;padding:13px 18px;min-height:87px}.feedback>img{width:41px;height:55px;object-fit:contain;flex-shrink:0}.feedback>div{flex:1}.feedback b{font-size:12px;color:#607e5f}.feedback p{font-size:11px;line-height:1.6;color:#8d9a87;margin:4px 0 0}.feedback-decoration{font-size:24px;color:#dfc588}.feedback.error{border-color:#ead1a6;background:#fffaf0}.feedback.error b{color:#bb8b44}.learning-footer{display:flex;justify-content:space-between;align-items:center;margin:15px 4px 0;font-size:10px;color:#a6af9b}.learning-footer span:first-child{display:flex;align-items:center;gap:6px}.learning-footer .icon{width:14px;height:14px}.success-overlay{position:absolute;inset:0;background:#f2f6e5e8;backdrop-filter:blur(5px);z-index:5;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px}.success-overlay>img{width:115px;height:150px;object-fit:contain}.success-overlay h2{font-size:30px;margin:10px 0 5px;letter-spacing:-1px}.success-overlay p{font-size:13px;color:#8a9b7e;margin:7px 0 20px;max-width:350px;line-height:1.6}.success-stars{font-size:39px;letter-spacing:8px;color:#dfb150;filter:drop-shadow(0 3px 0 #f4e2a9)}.success-stars .empty{color:#dce4cf}.success-actions{display:flex;gap:12px}.success-actions .run-button{flex:initial;white-space:nowrap}.success-actions .secondary-button{padding:11px 16px;font-size:12px}.help-dialog{border:1px solid #e3e8d8;border-radius:24px;max-width:510px;width:calc(100% - 32px);padding:32px;color:#385c47;background:#fffef8;max-height:90vh;overflow:auto}.help-dialog::backdrop{background:#294b4070;backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:16px;right:16px}.help-dialog h2{font-size:26px;letter-spacing:-.7px;max-width:280px}.help-dialog>img{float:right;width:100px;height:140px;object-fit:contain}.help-dialog ol{padding-left:19px;font-size:13px;line-height:1.7;color:#829078}.help-dialog li{margin-bottom:12px}.help-dialog b{color:#436a50}.help-dialog p{font-size:12px;line-height:1.7;color:#87947d;clear:both}.help-note{background:#f1f4e9;padding:12px;border-radius:10px}.help-dialog .run-button{width:100%;margin-top:20px}.windmill{transform-origin:0px -82px;animation:windmill 18s linear infinite}.butterfly{animation:float 4s ease-in-out infinite}.water-fx{animation:water .7s ease-out infinite}.harvest-fx{animation:harvest .8s ease-out both}.robot-image{pointer-events:none}@keyframes windmill{to{transform:rotate(360deg)}}@keyframes float{50%{translate:0 -7px}}@keyframes water{from{opacity:1;translate:0 -7px}to{opacity:0;translate:0 12px}}@keyframes harvest{from{opacity:1;translate:0 10px}to{opacity:0;translate:0 -18px}}
@media(min-width:1500px){.workspace{padding-top:35px;gap:34px;grid-template-columns:355px minmax(0,1fr)}.topbar{padding:0 max(32px,calc((100vw - 1500px)/2))}.farm-world{min-height:550px}.program{max-height:370px}.program-section{min-height:310px}}
@media(max-width:1150px){.topbar{padding:0 22px;gap:15px}.brand{gap:9px}.brand img{width:95px}.brand>span:last-child{font-size:8px;letter-spacing:1px}.brand b{font-size:10px;letter-spacing:1px}.level-nav{gap:2px}.level-button{width:29px;height:29px;font-size:11px}.header-tools{gap:7px}.total-stars{margin-right:2px;font-size:13px}.workspace{padding:22px;gap:18px;grid-template-columns:292px minmax(0,1fr)}.panel-intro{padding:22px 18px 18px}.panel-intro h1{font-size:23px}.panel-intro .eyebrow{font-size:8px;letter-spacing:1.3px}.toolbox,.program-section{padding-left:16px;padding-right:16px}.run-area{padding:15px 16px}.mission h2{font-size:21px}.mission p{font-size:11px}.mission-number{display:none}.world-top{padding:20px 18px 0}.weather span{display:none}.farm-world{min-height:435px}.scene{min-height:330px}.world-bottom{padding:0 17px 18px;margin-top:0}.world-note{display:none}.location{font-size:8px;letter-spacing:1px}}
@media(max-width:850px){.topbar{height:auto;min-height:106px;flex-wrap:wrap;padding:13px 20px 15px;gap:7px}.brand img{height:35px;width:100px}.level-nav{order:3;width:100%;justify-content:center;gap:10px;margin-top:5px}.level-button{height:28px;width:28px}.header-tools{margin-left:auto}.workspace{padding:16px;gap:14px;grid-template-columns:265px minmax(0,1fr)}.panel-intro{padding:20px 15px 16px}.panel-intro h1{font-size:21px}.panel-intro p{font-size:10px}.command{padding:9px 10px;font-size:11px}.palette{gap:6px}.mission{padding-bottom:15px;gap:5px;min-height:86px}.mission h2{font-size:20px}.mission p{font-size:10px}.hint-button{padding:7px 8px;font-size:10px}.hint-button span{display:none}.mission .eyebrow{font-size:8px;letter-spacing:1px}.farm-world{min-height:395px}.world-top{padding:16px 13px 0}.location{font-size:7px;letter-spacing:.7px}.weather{font-size:19px}.objectives{top:56px}.objective{padding:5px 8px;font-size:9px}.scene{min-height:300px;min-width:420px;align-self:center;margin-top:20px}.world-bottom{padding:0 12px 14px;margin-top:-5px}.feedback{padding:10px;gap:9px}.feedback>img{width:33px;height:46px}.feedback b{font-size:11px}.feedback p{font-size:10px}.feedback-decoration{display:none}.success-overlay h2{font-size:24px}.success-actions{flex-direction:column;gap:9px}.success-overlay p{font-size:11px}.learning-footer{font-size:9px}.run-button{padding:12px 14px}.run-footer{font-size:9px}}
@media(max-width:630px){.topbar{padding:12px 15px}.brand-divider{height:24px}.header-tools{gap:7px}.total-stars{font-size:12px}.total-stars .icon{width:17px}.icon-button{width:29px;height:29px;font-size:16px}.level-nav{gap:5px;justify-content:space-between}.workspace{display:flex;flex-direction:column;padding:13px;gap:16px}.play-panel{order:0}.coding-panel{order:1}.mission{min-height:70px;padding:0 3px 14px}.mission-number{display:grid;width:36px;height:39px;font-size:16px;margin-right:7px}.mission h2{font-size:22px}.mission p{font-size:11px}.mission .eyebrow{font-size:8px}.hint-button{margin-left:4px;padding:8px 10px}.farm-world{min-height:350px;border-radius:18px}.scene{min-height:260px;max-height:365px;min-width:0;width:100%;margin-top:5px}.world-top{padding:15px 18px 0}.location{font-size:8px;letter-spacing:1px}.weather span{display:inline;font-size:8px}.objectives{top:51px}.world-bottom{margin-top:-22px;padding:0 15px 15px}.feedback{margin-top:10px;padding:11px 14px;min-height:73px}.feedback b{font-size:12px}.feedback p{font-size:11px}.feedback>img{width:37px;height:48px}.learning-footer{display:none}.panel-intro{padding:18px 18px 16px}.panel-intro h1{font-size:23px}.panel-intro p{font-size:11px}.toolbox{padding:0 18px 18px}.palette{grid-template-columns:repeat(3,1fr)}.command{font-size:10px;padding:10px 8px;gap:6px}.command .icon{width:16px;height:16px}.program-section{min-height:235px;padding:16px 18px}.program{min-height:135px;max-height:310px}.program-empty{min-height:125px}.run-area{padding:14px 18px 17px}.run-button{padding:15px 20px}.run-footer{font-size:10px}.success-actions{flex-direction:row}.success-overlay>img{width:80px;height:104px}.success-stars{font-size:30px}.success-overlay h2{font-size:24px}.success-overlay p{margin:5px 0 13px}.success-actions .run-button{padding:12px 16px;font-size:12px}.success-actions .secondary-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media(min-width:851px) and (max-height:850px){
  .topbar{height:78px}.workspace{height:calc(100dvh - 78px);min-height:600px;padding-top:20px;padding-bottom:16px}.coding-panel,.play-panel{min-height:0}.panel-intro{padding-top:18px;padding-bottom:15px}.panel-intro h1{font-size:23px;margin-top:7px}.toolbox{padding-bottom:15px}.section-label{margin-bottom:9px}.command{min-height:38px;padding:8px 10px}.palette{gap:6px}.program-section{min-height:140px;padding-top:13px}.program{min-height:85px;max-height:none}.program-empty{min-height:85px}.program-heading{margin-bottom:12px}.run-area{padding-top:12px;padding-bottom:13px}.run-button{padding-top:12px;padding-bottom:12px}.run-footer{margin-top:12px}.mission{padding-bottom:16px;min-height:76px}.farm-world{min-height:300px}.scene{position:absolute;inset:48px 0 26px;width:100%;height:calc(100% - 74px);min-height:0;max-height:none;margin:0}.world-top{padding-top:17px}.world-bottom{position:absolute;bottom:0;left:0;right:0;padding-bottom:15px;margin:0}.objectives{top:47px}.feedback{min-height:70px;margin-top:11px;padding:9px 15px}.feedback>img{height:46px;width:35px}.learning-footer{margin-top:10px}.success-overlay>img{width:80px;height:103px}.success-overlay h2{font-size:25px}.success-overlay p{margin:5px 0 13px}.success-stars{font-size:31px}
}
.program-title{font-size:13px;font-weight:900;margin:0;color:#315844}.command{touch-action:manipulation}.panel-intro p,.mission p,.feedback p{color:#6e806c}.section-label span,.run-footer,.learning-footer{color:#7c8c73}.eyebrow{color:#6e8362}.level-button{color:#687f6d}.text-button{font-size:11px;min-height:36px}.block-tools button{min-width:27px;min-height:30px}.loop-select{height:34px;width:40px}.loop-target{min-height:34px}.target-info button{min-height:38px;padding:8px 12px}.block.repeat>.block-row>.block-num{display:none}.block-row{gap:5px}.run-area{position:relative;z-index:3}.speed-button{min-height:30px;align-items:center}.run-footer{margin-top:4px}.hint-button{min-height:44px}.program-meta{flex-shrink:0}.program-section{overflow:hidden}.program{scrollbar-width:thin;scrollbar-color:#bdcbb0 transparent}.command{font-size:12px;min-height:46px}.new-label{display:none}@keyframes walk-to{from{transform:translate(var(--walk-x),var(--walk-y))}to{transform:translate(0,0)}}
@media(min-width:600px){
  body{height:100dvh;overflow:hidden}.topbar{height:80px;padding:0 23px;flex-wrap:nowrap}.workspace{display:grid;height:calc(100dvh - 80px);min-height:0;padding:18px 22px 14px;grid-template-columns:318px minmax(0,1fr);gap:20px}.coding-panel,.play-panel{min-height:0}.panel-intro{padding:18px 18px 14px}.panel-intro .eyebrow{font-size:8px;letter-spacing:1.4px}.panel-intro h1{font-size:23px;margin:7px 0}.panel-intro p{font-size:11px}.toolbox{padding:0 18px 15px}.palette{gap:7px}.section-label{margin-bottom:9px}.program-section{min-height:90px;padding:13px 16px 6px}.program{min-height:45px;max-height:none}.program-empty{min-height:95px}.program-heading{margin-bottom:6px}.run-area{padding:12px 16px 9px}.run-button{min-height:48px;padding:12px 16px}.secondary-button{min-width:44px}.run-footer{font-size:10px}.mission{min-height:80px;padding:0 0 16px}.mission h2{font-size:23px}.mission p{font-size:12px}.mission .eyebrow{font-size:9px}.farm-world{min-height:0}.scene{position:absolute;inset:44px 0 28px;width:100%;height:calc(100% - 72px);min-height:0;min-width:0;max-height:none;margin:0}.world-top{padding:17px 18px 0}.objectives{top:48px}.world-bottom{position:absolute;left:0;right:0;bottom:0;padding:0 16px 16px;margin:0}.feedback{min-height:76px;padding:9px 14px;margin-top:12px}.feedback>img{height:48px;width:36px}.learning-footer{margin-top:10px}.level-button{min-width:34px;height:40px;border-radius:14px}.level-nav{gap:4px}.icon-button{min-width:40px;width:40px;height:40px}.brand img{width:105px}.brand>span:last-child{font-size:8px;letter-spacing:1px}.brand b{font-size:10px;letter-spacing:1px}.header-tools{gap:7px}.total-stars{margin-right:2px}
}
@media(min-width:600px) and (max-width:1000px){
  .topbar{height:112px;flex-wrap:wrap;padding:9px 18px 12px;gap:4px}.brand img{width:105px;height:36px}.level-nav{order:3;width:100%;justify-content:space-between;margin:0;gap:3px}.level-button{height:37px;min-width:37px;font-size:13px}.header-tools{margin-left:auto}.workspace{height:calc(100dvh - 112px);padding:16px;gap:15px;grid-template-columns:306px minmax(0,1fr)}.mission h2{font-size:21px}.mission p{font-size:11px}.mission .eyebrow{font-size:8px}.mission-number{display:none}.mission{min-height:92px;align-items:center}.hint-button{min-width:49px;padding:8px;font-size:10px}.world-top{padding:17px 13px 0}.location{font-size:8px;letter-spacing:.7px}.weather span{display:none}.world-note{display:none}.feedback p{font-size:11px}.feedback b{font-size:12px}.panel-intro p{font-size:10px}.scene{inset:64px 0 35px;height:calc(100% - 99px)}.world-bottom{padding-left:12px;padding-right:12px}.objectives{top:54px}
}
@media(min-width:600px) and (max-height:740px){
  .workspace{padding-top:12px;gap:16px}.panel-intro{padding-top:13px;padding-bottom:9px}.panel-intro .eyebrow{display:none}.panel-intro h1{font-size:22px}.toolbox{padding-bottom:10px}.command{min-height:43px}.program-section{padding-top:8px}.mission{min-height:76px;padding-bottom:12px}.feedback{min-height:65px;margin-top:9px}.learning-footer{display:none}.run-area{padding-top:10px;padding-bottom:6px}.program-empty{min-height:65px}.world-top{padding-top:13px}.scene{inset:40px 0 20px;height:calc(100% - 60px)}.objectives{top:40px}.success-overlay>img{height:84px;width:70px}.success-overlay h2{font-size:23px}.success-overlay p{font-size:12px;margin:5px 0 12px}.success-stars{font-size:28px}.success-actions .run-button{min-height:42px;padding:10px 14px;font-size:12px}
}
@media(min-width:600px) and (max-width:1000px) and (orientation:portrait){
  .workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 330px;gap:13px;padding:13px 16px}.play-panel{order:0}.coding-panel{order:1;display:grid;grid-template-columns:268px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;border-radius:18px}.panel-intro{display:none}.toolbox{grid-column:1;grid-row:1;padding:16px 15px 8px;border-bottom:0;border-right:1px solid var(--border)}.section-label{margin-bottom:12px}.command{min-height:47px;font-size:11px}.palette{gap:7px}.program-section{grid-column:2;grid-row:1 / 3;padding:14px 17px 10px;min-width:0}.program{min-height:60px}.program-heading{margin-bottom:3px}.run-area{grid-column:1;grid-row:2;border-top:0;border-right:1px solid var(--border);padding:9px 14px 8px}.run-button{padding:10px 12px;font-size:13px}.run-footer>span{font-size:8px}.run-footer{margin-top:1px}.secondary-button{min-width:39px}.mission{min-height:66px;padding-bottom:12px;gap:12px}.mission-number{display:grid;width:39px;height:41px}.mission p{font-size:12px}.mission h2{font-size:23px}.mission .eyebrow{font-size:9px}.hint-button{min-width:70px;font-size:12px}.hint-button span{display:inline}.world-top{padding:14px 18px 0}.weather span{display:inline;font-size:10px}.location{font-size:9px;letter-spacing:1px}.scene{inset:37px 0 23px;height:calc(100% - 60px)}.objectives{top:39px}.world-bottom{padding-bottom:12px}.world-note{display:flex}.feedback{min-height:58px;padding:5px 14px;margin-top:8px}.feedback>img{height:40px;width:31px}.feedback p{margin-top:1px;font-size:11px}.learning-footer{display:none}.success-overlay>img{height:80px;width:64px}.success-overlay h2{font-size:23px;margin:5px 0}.success-stars{font-size:26px}.success-overlay p{font-size:11px;margin:3px 0 10px}.success-actions{flex-direction:row}.success-actions .run-button{padding:10px 14px;font-size:12px;min-height:40px}
}

.block-row{flex-wrap:wrap}.block-name{min-width:35px}.block-tools{margin-left:auto}

@media(min-width:600px) and (max-width:1000px) and (orientation:portrait){.palette{grid-template-columns:repeat(2,1fr)}}

.auto-next{margin-top:13px;text-align:center}.auto-next p{font-size:12px;margin:0;color:#66815c}.auto-next b{color:#3b6648;font-size:16px}.auto-next .text-button{color:#7b876d;font-size:10px;min-height:26px;text-decoration:underline}.scene[data-camera="follow"]{will-change:contents}@media(max-height:800px){.success-overlay>img{height:72px;width:58px}.success-overlay h2{font-size:22px;margin:5px 0}.success-stars{font-size:25px}.success-overlay p{margin:4px 0 10px}.auto-next{margin-top:7px}.auto-next p{margin:0}.success-overlay .eyebrow{font-size:8px}}

/* Warm, tactile toy-world materials. Geometry and controls keep their tablet layout. */
:root{color:#234f43;background:#edf5ed;--green:#318c65;--border:#dce9d8}
body{background:radial-gradient(ellipse at 80% 0,#e9f6ef,transparent 60%),#f3f6ed}
.topbar{background:linear-gradient(#fffef8,#f8fbee);border-bottom-color:#d5e4ce;box-shadow:0 3px 14px #4c7b4a08}
.coding-panel{border-color:#d8e5cf;box-shadow:0 5px 0 #d8e4cf,0 12px 22px #446b3d0c;background:linear-gradient(145deg,#fffef9,#f6faef)}
.panel-intro h1{color:#286147}.panel-intro h1 span{color:#eb9c3f}
.forward{--soft:#d9f0d3;--ink:#286347;--line:#acd39d;--edge:#a4ca91}
.left,.right{--soft:#e7def9;--ink:#705299;--line:#cbb8e7;--edge:#bea6df}
.water{--soft:#d2eff9;--ink:#277a9d;--line:#a4d6e7;--edge:#96c9df}
.collect{--soft:#fff0b9;--ink:#926623;--line:#ead38c;--edge:#e0c478}
.repeat{--soft:#ffe2c4;--ink:#a96130;--line:#ebc097;--edge:#dfb087}
.command{background:linear-gradient(165deg,#ffffff65,transparent 65%),var(--soft);box-shadow:inset 0 2px 0 #ffffffb3,0 3px 0 var(--edge),0 5px 6px #34503609;border-radius:12px;transition:transform .12s,box-shadow .12s}
.command:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffffb3,0 1px 0 var(--edge)}
.palette{row-gap:10px}.block{background:linear-gradient(150deg,#ffffff50,transparent 75%),var(--soft);box-shadow:inset 0 1px 0 #ffffffa6,0 2px 0 var(--edge);margin-bottom:9px}.block.active{box-shadow:0 0 0 3px #ffc751,0 4px 0 #d7a247,0 0 20px #ffd65b60}
.program-section{background:#f9fcf3}.program{background-color:#eef5e7;background-image:radial-gradient(#c7d9bc 1px,transparent 1px);box-shadow:inset 0 2px 5px #56764609}.program-meta>span:first-child{background:#dceecd;color:#4e793d}
.run-area{background:linear-gradient(#fffef7,#f4f8e9)}.run-button{background:linear-gradient(#4eac79,#2f8c62);box-shadow:inset 0 2px 0 #91d59c,0 4px 0 #216b4e,0 6px 9px #2c68421c;text-shadow:0 1px 1px #1e644c}
.run-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px 0 #91d59c,0 2px 0 #216b4e}
.secondary-button,.hint-button,.icon-button{background:linear-gradient(#fffef8,#edf5e5);border-color:#d7e5ca;box-shadow:inset 0 1px 0 #fff,0 2px 0 #d5e0c9;color:#557950}
.level-button.active{background:linear-gradient(#57b27b,#32885f);box-shadow:inset 0 2px 0 #9bd3a1,0 4px 0 #216b4e}
.level-button.completed:not(.active){background:linear-gradient(#ecf7ce,#daebac);color:#467835;border-color:#c2da95;box-shadow:0 2px 0 #bed18f}
.mission-number{background:linear-gradient(#fff2b4,#ffd77b);box-shadow:inset 0 2px 0 #fff7d7,0 3px 0 #e6ba63;color:#9a702c}
.farm-world{background:radial-gradient(ellipse at 23% 13%,#fcf7c7 0,transparent 43%),linear-gradient(155deg,#e0f4e1 2%,#c9e9c5 52%,#a8d5bd 100%);border:1px solid #accbb1;box-shadow:inset 0 3px 0 #ffffffa6,0 5px 0 #9abfa7,0 13px 24px #477b5812}
.farm-world:before{background:radial-gradient(ellipse at 50% 100%,#74b99a2b,transparent 60%);z-index:-1}
.location{color:#4a7957}.live-dot{background:#57a76a;box-shadow:0 0 0 3px #c9e8b8}.weather{color:#e7ad3b;text-shadow:0 2px 0 #fff7cb}.weather span{color:#648765}
.objective{background:linear-gradient(#fffff4f2,#edf7dfee);color:#5f8357;border-color:#c2d8ae;box-shadow:inset 0 1px 0 #fff,0 3px 0 #92b28b40}.objective b{color:#376a43}.objective.done{background:linear-gradient(#e9f9b9,#cbe992);border-color:#b1d47b;color:#497b37}
.direction-tag{background:linear-gradient(#fcfff2ee,#e6f2dbee);border-color:#c4d9af;box-shadow:0 2px 0 #95b18a40;color:#55774f}.world-note{color:#608c6b}
.feedback{background:linear-gradient(120deg,#fffef8,#f4faea);border-color:#d5e5c9;box-shadow:0 3px 0 #dce6d0}.feedback b{color:#3d734b}.feedback p{color:#64805b}
.success-overlay{background:radial-gradient(ellipse at 50% 30%,#ffffe9f7,#e4f4d9ed);box-shadow:inset 0 0 90px #c2e9b163}.success-overlay h2{color:#34764b}.success-stars{color:#f4b83c;filter:drop-shadow(0 3px 0 #d69435)}.auto-next b{color:#2c8854}
@media(min-width:600px) and (max-width:1000px) and (orientation:portrait){.palette{row-gap:10px}.success-overlay{padding:12px}.success-overlay>img{height:62px;width:50px}.auto-next{margin-top:6px}.auto-next p{margin:0}}
.block.failed{box-shadow:0 0 0 3px #e88266,0 3px 0 #c9634d;background:#ffe3d9;color:#944934}.block.failed .block-name:after{content:' · Düzelt';font-size:9px}.robot-image{overflow:visible}#robot-sprite{pointer-events:none}
/* Clear controls for young readers and touch screens. */
.block-row{gap:4px;padding:6px;min-height:50px;flex-wrap:nowrap}.block-name{font-size:12px;font-weight:900;min-width:0;line-height:1.2}.block-num{font-size:10px;color:var(--ink)}.block-row>.icon{width:18px;height:18px}.drag-handle{display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:36px;padding:0;border-radius:6px;background:#ffffff55;border:0;color:var(--ink);cursor:grab;touch-action:none;user-select:none}.drag-handle .icon{width:18px;height:22px;stroke-width:4;stroke-linecap:round}.drag-handle:active{cursor:grabbing}.block-tools{display:flex;flex-shrink:0;gap:3px;margin:0 0 0 auto}.block-tools button{display:flex;justify-content:center;align-items:center;width:30px;height:34px;min-height:34px;min-width:30px;border:1px solid var(--line);border-radius:6px;background:#ffffffa6;color:var(--ink);box-shadow:0 1px 0 var(--edge);padding:4px}.block-tools button .icon{width:19px;height:19px;stroke-width:2.5}.block-tools .delete-block{color:#b4433e;background:#ffe3db;border-color:#edb0a1;box-shadow:0 1px 0 #d99384;margin-left:2px}.block-tools button:disabled{opacity:.25}.loop-select{height:34px;width:39px;font-size:13px;font-weight:900;flex-shrink:0}.repeat-times{font-size:11px}.block.repeat>.block-row{flex-wrap:wrap}.block.repeat>.block-row>.icon{display:none}.block.repeat>.block-row>.block-name{flex:0 0 auto}.loop-target{font-size:11px;min-height:32px;padding:4px 9px;margin:0 7px 7px;border:1px dashed #c99862;background:#fff7e9;border-radius:6px;width:calc(100% - 14px);text-align:center}.loop-target.selected{background:#c9833f;color:white;border-style:solid;border-color:#af6e2f;font-weight:900}.loop-children{margin:0 6px 6px 12px;padding:5px 4px 1px;min-height:40px}.editing-loop>.loop-children{border-left:3px solid #d28b42;background:#fff9e9}.loop-empty{font-size:11px;line-height:1.5;margin:4px 3px 8px;color:#8e673d}.loop-children .block-name{font-size:11px}.loop-children .block-row{gap:3px;padding:5px}.loop-children .block-row>.block-num{display:none}.loop-children .block-tools{gap:2px}.loop-children .drag-handle{flex-basis:21px;width:21px}.loop-children .block-tools button{width:28px;min-width:28px}.loop-children .block-tools .delete-block{margin-left:0}
.block{scroll-margin:8px}.block.being-dragged{opacity:.35}.drop-before{border-top:5px solid #36a0c2!important}.drop-after{border-bottom:5px solid #36a0c2!important}.drop-into{outline:3px dashed #36a0c2!important;outline-offset:-3px;background-color:#d9f5f7!important}.drag-ghost{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;background:#fff7dd;color:#74552f;border:2px solid #d6ac64;border-radius:12px;padding:12px 22px;font-weight:900;font-size:16px;box-shadow:0 8px 18px #44351c30}.command.recommended{outline:4px solid #289ec8;outline-offset:2px;animation:recommend 1.1s ease-in-out infinite}@keyframes recommend{50%{box-shadow:0 0 0 7px #55cee538}}
.action-notice{display:flex;align-items:center;gap:12px;padding:10px 15px;margin:0 0 10px;border-radius:14px;flex-shrink:0;background:#d8f4fa;border:2px solid #70c6dc;box-shadow:0 3px 0 #8cc7ce;color:#216e89}.action-notice>span{font-size:25px;min-width:28px;text-align:center}.action-notice strong{font-size:17px;font-weight:900}.action-notice p{font-size:12px;margin:2px 0 0;line-height:1.4}.action-notice[data-kind=collect]{background:#fff0bd;border-color:#e0bf6c;color:#926426;box-shadow:0 3px 0 #ddc07d}.action-notice[data-kind=error]{background:#fff0d6;border-color:#e4a85e;color:#8b542e;box-shadow:0 3px 0 #dcac70}.action-notice[data-kind=error]>span{display:grid;place-items:center;border-radius:50%;background:#d87c3c;color:white;font-weight:900;height:34px}
.hint-dialog{position:fixed;border:3px solid #d1a76d;border-radius:22px;width:calc(100% - 32px);max-width:470px;padding:28px;background:linear-gradient(#fff8df,#f3ebcc);color:#624b2e;box-shadow:0 10px 0 #8d6746,0 25px 70px #29463455;max-height:90dvh;overflow:auto}.hint-dialog::backdrop{background:#244c466b;backdrop-filter:blur(4px)}#hint-close{position:absolute;right:12px;top:12px;min-width:44px;height:44px}.hint-dialog h2{font-family:Georgia,serif;font-size:27px;margin:12px 30px 8px 0}.hint-dialog .eyebrow{color:#987441}#hint-level{font-size:13px;color:#9c774a;font-weight:800;margin:0 0 12px}.hint-content{display:flex;align-items:center;gap:16px;padding:15px 0}.hint-content img{width:75px;height:100px;object-fit:contain}#hint-copy{font-size:18px;line-height:1.6;margin:0}.hint-dialog .run-button{width:100%;margin-top:20px;min-height:48px}
.panel-intro h1,.mission h2{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.5px;font-weight:900}.panel-intro h1{color:#715232;text-shadow:0 1px 0 #fff6d4}.mission h2{display:inline-block;padding:6px 13px;margin:5px 0 7px;border:2px solid #dcb780;border-radius:7px;color:#fff5d9;background:repeating-linear-gradient(3deg,transparent 0 6px,#774a2510 7px 8px),linear-gradient(#b98c58,#95693f);box-shadow:inset 0 1px 0 #f1d1a0,0 3px 0 #785537;text-shadow:0 2px 0 #77502f;font-size:23px}.brand b{font-family:Georgia,serif;color:#886137;font-weight:900}.mission{min-height:99px}.program-title{font-size:15px;color:#695135}.program-meta>span:first-child{font-size:11px}.loop-children .loop-children{margin-left:5px}
@media(min-width:600px) and (max-width:1000px) and (orientation:portrait){.mission{min-height:90px}.mission h2{font-size:21px}.action-notice{padding:7px 12px;margin-bottom:8px;gap:8px}.action-notice strong{font-size:15px}.action-notice p{font-size:11px}.program-section{padding-left:10px;padding-right:10px}.loop-children{margin-left:7px}}
