:root{color-scheme:light;--ink:#304c43;--muted:#7b8b7e;--green:#34856a;--cream:#f8f5eb;--line:#e6e9dc;--gold:#e8ba64}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-tap-highlight-color:transparent}button{font:inherit;touch-action:manipulation;cursor:pointer;color:inherit;user-select:none;-webkit-user-select:none}button:focus-visible{outline:4px solid #e7ab46;outline-offset:5px}button:disabled{cursor:default}svg{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.symbol-bank{position:absolute;width:0;height:0;overflow:hidden}.game-shell{width:min(1100px,calc(100% - 64px));margin:0 auto;padding:27px 0 16px}.masthead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:51px;height:51px;background:#f0d598;color:#98724c;border-radius:18px;display:grid;place-items:center;transform:rotate(-7deg)}.brand-mark svg{width:30px;height:30px}.eyebrow{display:block;font-size:10px;letter-spacing:2px;font-weight:800;color:#7b8b73}h1{font-size:29px;letter-spacing:-1.3px;line-height:1.1;margin:4px 0 0;font-weight:800}.title-dot{color:#d49d50}h2{margin:0;font-size:20px;letter-spacing:-.5px}.header-actions{display:flex;align-items:center;gap:18px}.challenge-pill{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#7c8a76}.little-dot{height:6px;width:6px;background:#94b18c;border-radius:50%}.icon-button{background:transparent;border:1.5px solid #e0e4d6;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;color:#6e826b}.icon-button svg{width:25px;height:25px;stroke-width:3}.icon-button:hover{background:#edf0e5}.adventure{border:1.5px solid #dce5d4;border-radius:24px;overflow:hidden;background:#edf6ea;position:relative}.scene-heading{position:absolute;top:22px;left:26px;right:26px;display:flex;justify-content:space-between;align-items:center;z-index:2}.scene-heading .eyebrow{font-size:9px;letter-spacing:1.7px;color:#829578;margin-bottom:7px}.scene-heading h2{font-size:22px;color:#3b5c46}.goal-counter{display:flex;align-items:center;gap:9px;padding:12px 15px;background:#ffffffbd;border:1px solid #fff;border-radius:18px;font-size:14px;font-weight:750;color:#71826a;backdrop-filter:blur(8px)}.mini-marble{width:20px;height:20px;display:block;border-radius:50%;position:relative;opacity:.34;filter:grayscale(.4);box-shadow:inset -2px -3px 3px #00000012}.mini-marble:after{content:"";width:7px;height:4px;background:#fff9;position:absolute;top:4px;left:4px;border-radius:50%;transform:rotate(-25deg)}.mini-marble.teal{background:#45bda5}.mini-marble.coral{background:#ed9a71}.mini-marble.collected{opacity:1;filter:none;animation:pop .3s ease-out}.goal-divider{height:21px;width:1px;background:#dbe4d7;margin:0 3px}.goal-counter svg{width:22px;height:22px;stroke-width:3;color:#679476}.world{position:relative;aspect-ratio:1000/370;width:100%;overflow:hidden}.landscape{width:100%;height:100%;display:block;stroke:none}.fireball{position:absolute;left:15.5%;top:80.8%;width:12.4%;transform:translate(-50%,-100%);z-index:3;pointer-events:none;will-change:left,top}.fireball img{width:100%;display:block;filter:drop-shadow(0 3px 2px #4f542b10);transform-origin:bottom center}.fireball.moving img{animation:trot .23s ease-in-out infinite alternate}.fireball.bounce img{animation:happy .5s ease-in-out 2}.path-hint{position:absolute;width:52px;height:52px;border-radius:50%;background:#fffae4;border:3px solid #dfb761;color:#b48d40;z-index:4;transform:translate(-50%,-50%);box-shadow:0 0 0 7px #f9e09e66}.path-hint svg{width:100%;height:100%;padding:7px}.collectible{transition:opacity .25s}.collectible.taken{opacity:0}.success-label{position:absolute;top:34%;left:50%;transform:translateX(-50%);background:#fffdf1;box-shadow:0 6px 24px #45604612;border:1px solid #e4d9ad;border-radius:40px;padding:11px 21px;color:#4b7f62;font-size:19px;font-weight:750;white-space:nowrap}.success-label span{display:inline-grid;place-items:center;background:#75a681;color:#fff;border-radius:50%;width:24px;height:24px;margin-right:6px}.program-panel{margin-top:17px;border-radius:22px;border:1.5px solid #e4e6da;background:#fffef8;padding:18px 23px 13px;box-shadow:0 6px 0 #eae9dc66}.plan-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;height:27px}.plan-header h2{font-size:17px;display:flex;align-items:center;gap:9px}.step-number{display:inline-grid;place-items:center;width:23px;height:23px;background:#eaf0e5;border-radius:50%;font-size:11px;font-weight:800;color:#7b9074;letter-spacing:0}.undo-button{background:transparent;border:0;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:650;min-height:44px;padding:0 8px;color:#778572}.undo-button svg{width:22px;height:22px;stroke-width:3}.undo-button:disabled{opacity:.28}.plan-row{display:flex;gap:14px;align-items:stretch}.program{min-width:0;flex:1;display:flex;align-items:center;gap:10px;padding:11px;background:#f1f3e9;border-radius:16px;min-height:81px;overflow-x:auto}.program-slot{height:58px;width:64px;flex:0 0 64px;border:2px dashed #d5decc;border-radius:12px;display:grid;place-items:center;position:relative;color:#c1ceba;background:transparent}.program-slot.empty:after{content:"";width:7px;height:7px;border-radius:50%;background:#d2dcc8}.program-slot.filled{border:0;background:#5e9c84;color:white;box-shadow:0 4px 0 #40745f;cursor:pointer}.program-slot.filled.hop{background:#aa9ac7;box-shadow:0 4px 0 #8874ad}.program-slot svg{width:36px;height:36px}.program-slot .block-number{position:absolute;left:6px;top:4px;font-size:9px;opacity:.75;font-weight:800}.program-slot.selected{outline:3px solid #d7a744;outline-offset:3px}.program-slot.active{background:#f4cd78!important;color:#775729;box-shadow:0 4px 0 #c29d52!important;transform:translateY(-3px)}.program-slot.problem{outline:3px solid #dcad60;outline-offset:3px}.program-slot.completed{opacity:.65}.play-button{flex:0 0 129px;border:0;border-radius:17px;background:#398e70;color:white;box-shadow:0 5px 0 #246c52;display:flex;align-items:center;justify-content:center;gap:4px;font-weight:750;font-size:21px;align-self:stretch;min-height:77px}.play-button svg{width:33px;height:33px}.play-button:disabled{background:#c0cfb8;box-shadow:0 5px 0 #a4b39c;color:#f8fbf4}.play-button:not(:disabled):active{transform:translateY(3px);box-shadow:0 2px 0 #246c52}.play-button.running{background:#728d73;box-shadow:0 5px 0 #526c54}.tools-row{display:flex;align-items:center;gap:24px;margin-top:19px}.command-library{display:flex;gap:12px;flex-shrink:0}.command-button{position:relative;width:95px;height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #c2dfd1;background:#e2f1e8;color:#427d66;border-radius:14px;box-shadow:0 4px 0 #c3dbca;font-size:12px;font-weight:750}.command-button svg{height:36px;width:36px}.command-button.hop-command{background:#efebf6;border-color:#e0d7ee;color:#8771aa;box-shadow:0 4px 0 #ddd3e9}.command-button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #c3dbca}.command-button:disabled{opacity:.4}.command-button.highlight{outline:3px solid #e1b457;outline-offset:4px}.coach{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.coach-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f5edd8;color:#c3a16a;flex-shrink:0}.coach-icon svg{width:19px;height:19px}.coach p{font-size:14px;line-height:1.45;margin:0;max-width:360px;color:#75836c;font-weight:500}.help-button{border:1.5px solid #eadfba;border-radius:14px;min-width:66px;min-height:69px;background:#fcf7e9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:750;color:#ac8c4e}.help-button svg{width:28px;height:28px;stroke-width:3}.help-button:disabled{opacity:.35}.panel-foot{border-top:1px solid #eff0e7;margin-top:16px;padding-top:10px;display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.15px;color:#96a08c;gap:12px}.watch-label{display:flex;align-items:center;gap:7px}.watch-label .step-number{width:19px;height:19px;font-size:10px}.page-foot{padding:17px 4px 0;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.4px;color:#9aa18c}.page-foot>span:last-child{display:flex;align-items:center;gap:6px}.page-foot svg{height:12px;width:12px;color:#b6aa85}[hidden]{display:none!important}@keyframes trot{from{transform:rotate(-2deg) translateY(0)}to{transform:rotate(2deg) translateY(-3px)}}@keyframes happy{50%{transform:translateY(-12px) rotate(-3deg)}}@keyframes pop{50%{transform:scale(1.25)}}
@media(min-width:1100px) and (max-height:800px){.game-shell{width:min(1020px,calc(100% - 64px));padding-top:18px}.masthead{margin-bottom:15px}.world{aspect-ratio:1000/350}.program-panel{padding-top:14px;margin-top:13px}.tools-row{margin-top:14px}.page-foot{padding-top:12px}}
@media(max-width:800px){.game-shell{width:calc(100% - 36px);padding-top:24px}.brand h1{font-size:26px}.challenge-pill{font-size:11px}.header-actions{gap:10px}.scene-heading{top:18px;left:20px;right:20px}.scene-heading h2{font-size:19px}.goal-counter{padding:9px 10px;gap:6px}.world{aspect-ratio:1000/430}.landscape{position:absolute;bottom:0;height:auto}.fireball{top:83.5%}.program-panel{padding:18px}.tools-row{gap:16px}.coach p{font-size:13px}.coach-icon{display:none}.program-slot{width:57px;flex-basis:57px}.play-button{flex-basis:105px;font-size:19px}.command-button{width:82px}.success-label{font-size:16px;top:31%}}
@media(max-width:560px){.game-shell{width:calc(100% - 24px);padding-top:17px}.masthead{margin-bottom:16px}.brand-mark{width:42px;height:42px;border-radius:14px}.brand-mark svg{width:26px;height:26px}.brand{gap:9px}.brand h1{font-size:23px}.brand .eyebrow{font-size:7px;letter-spacing:1.3px}.challenge-pill{display:none}.icon-button{width:44px;height:44px}.adventure{border-radius:19px}.scene-heading{top:14px;left:15px;right:15px}.scene-heading .eyebrow{font-size:7px;letter-spacing:1.2px;margin-bottom:6px}.scene-heading h2{font-size:16px;letter-spacing:-.3px}.goal-counter{gap:5px;font-size:11px;padding:8px;border-radius:12px}.goal-counter svg{width:17px}.mini-marble{width:15px;height:15px}.goal-divider{margin:0 1px}.world{aspect-ratio:1000/560}.program-panel{border-radius:19px;padding:15px 13px 11px;margin-top:12px}.plan-header h2{font-size:15px}.program{gap:7px;padding:9px;min-height:72px}.program-slot{width:43px;height:49px;flex-basis:43px;border-radius:9px}.program-slot svg{width:29px;height:29px}.program-slot .block-number{font-size:8px;left:4px;top:3px}.plan-row{gap:9px}.play-button{min-height:68px;flex-basis:70px;font-size:15px;flex-direction:column;gap:0;border-radius:13px}.play-button svg{width:28px;height:28px}.tools-row{gap:10px;flex-wrap:wrap;margin-top:16px}.command-button{width:81px;height:69px}.command-library{gap:10px}.help-button{margin-left:auto;min-width:61px;min-height:65px;order:2}.coach{order:3;flex-basis:100%;min-height:39px;padding:7px 4px 0}.coach-icon{display:grid;width:27px;height:27px}.coach-icon svg{width:15px;height:15px}.coach p{font-size:12px}.panel-foot{margin-top:11px;font-size:9px}.watch-label{display:none}.page-foot{font-size:8px;padding-top:13px}.success-label{font-size:13px;top:33%;padding:8px 12px}.success-label span{width:20px;height:20px}.path-hint{width:36px;height:36px}.path-hint svg{padding:3px}}
.landscape{position:absolute;bottom:0;height:auto}
@media(min-width:801px) and (max-height:800px){.game-shell{padding-top:15px}.masthead{margin-bottom:13px}.world{aspect-ratio:1000/310}.program-panel{padding:13px 20px 10px;margin-top:12px}.plan-header{margin-bottom:9px}.program{min-height:72px;padding:8px 10px}.program-slot{height:54px}.play-button{min-height:70px}.tools-row{margin-top:13px}.command-button{height:65px}.help-button{min-height:62px}.panel-foot{margin-top:11px;padding-top:8px}.page-foot{padding-top:11px}.scene-heading{top:17px}.success-label{top:33%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}.collectible{transition:none}}
/* Level progression uses the same calm controls and tile-based play area. */
.collection-badge{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:#657d68;background:#edf1e4;border:1px solid #dce4d4;border-radius:24px;padding:10px 14px}.collection-badge strong{font-size:18px;color:#3b715c}.collection-badge .mini-marble{width:22px;height:22px;animation:none}.level-trail{display:flex;gap:12px;align-items:center;margin:-3px 0 16px;padding:0 2px}.level-button{width:48px;height:48px;flex:0 0 48px;position:relative;border:1.5px solid #dce4d4;border-radius:16px;background:#fffdf5;color:#657d68;font-size:18px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:2px}.level-button[aria-current]{background:#3f8a6e;color:#fff;border-color:#3f8a6e;box-shadow:0 3px 0 #296b53}.level-button.done:not([aria-current]){background:#e0eee1;color:#47765b}.level-button small{position:absolute;right:4px;top:1px;font-size:10px}.level-button:disabled{background:#f0f0e6;color:#8e9987}.level-button svg{width:13px;height:15px;stroke-width:3}.level-success{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;margin-top:12px;background:#e9f2e2;border:1px solid #d5e3c9;border-radius:17px}.level-success p{margin:0;font-size:14px;color:#527253;line-height:1.4}.next-button{border:0;background:#398e70;color:#fff;min-height:48px;padding:10px 17px;display:flex;align-items:center;gap:8px;font-weight:750;border-radius:13px;white-space:nowrap;box-shadow:0 3px 0 #246c52}.next-button svg{width:25px;height:25px}.actor-facing.faces-left{transform:scaleX(-1)}.world.tall-trail{aspect-ratio:1000/390}.save-notice{font-size:13px;line-height:1.5;background:#fff3d3;border:1px solid #e2c788;border-radius:12px;padding:12px}.grown-up-options{margin:12px 4px 0;font-size:11px;color:#7d8974}.grown-up-options summary{cursor:pointer;min-height:44px;display:flex;align-items:center;list-style:none;width:max-content}.grown-up-options summary:before{content:'›';margin-right:6px;font-size:17px}.grown-up-options[open] summary:before{content:'⌄'}.grown-up-options p{max-width:560px;line-height:1.5}.text-button{min-height:44px;border:1px solid #dce4d4;border-radius:10px;padding:8px 12px;background:#fffdf5}.three-commands .command-button{width:78px}.three-commands{gap:8px}dialog{color:var(--ink);background:#fffdf5;border:1px solid #dce4d4;border-radius:22px;padding:26px;max-width:min(450px,calc(100% - 32px));box-shadow:0 15px 70px #304c4340}dialog::backdrop{background:#304c4355}dialog p{font-size:15px;line-height:1.5}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.dialog-actions button{min-height:48px;padding:10px 16px;border:1px solid #dce4d4;border-radius:12px;background:#edf1e4}.dialog-actions #cancel-clear{background:#398e70;color:white;border-color:#398e70}
@media(max-width:800px){.level-trail{gap:10px}.world.tall-trail{aspect-ratio:1000/460}.three-commands .command-button{width:66px}.tools-row:has(.three-commands){flex-wrap:wrap}.tools-row:has(.three-commands) .coach{order:3;flex-basis:100%}.tools-row:has(.three-commands) .help-button{margin-left:auto}}
@media(max-width:560px){.collection-word{display:none}.collection-badge{padding:8px 10px;gap:6px}.collection-badge strong{font-size:16px}.header-actions{gap:7px}.level-trail{justify-content:space-between;gap:5px;margin-bottom:12px}.level-button{width:44px;height:48px;flex-basis:44px;font-size:17px;border-radius:13px}.world.tall-trail{aspect-ratio:1000/560}.level-success{padding:12px;gap:10px}.level-success p{font-size:12px}.next-button{font-size:12px;padding:9px 12px}.three-commands .command-button{width:65px}.program-slot{width:48px;flex-basis:48px}.brand .eyebrow{letter-spacing:.8px}.brand h1{font-size:21px}.scene-heading .eyebrow{max-width:180px}.grown-up-options{font-size:10px}}

/* One fixed row, like the reference coding area. Play moves below when space is tight. */
.program{display:grid;grid-template-columns:repeat(var(--plan-columns,6),minmax(0,1fr));overflow:visible;align-content:center;gap:8px;padding:10px}
#program .program-slot{width:100%;min-width:0;height:58px}
#program .program-slot svg{width:72%;max-width:36px;height:36px}
.three-commands .command-button span{font-size:11px;white-space:nowrap}
@media(max-width:800px){.plan-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.play-button{justify-self:end;width:120px;min-height:56px;flex-direction:row;gap:5px}.program{gap:7px}}
@media(max-width:560px){.program{padding:8px;gap:5px}#program .program-slot{height:49px;border-radius:9px}.play-button{min-height:52px;width:110px}.program-slot .block-number{font-size:8px;left:3px;top:3px}}

/* The workshop adds a construction board without changing the trail's plan row. */
.area-nav{display:flex;gap:10px;margin:0 0 18px}.area-button{display:flex;align-items:center;gap:9px;min-height:52px;padding:9px 18px;background:#fffdf5;border:1.5px solid #dde4d4;border-radius:16px;font-size:15px;font-weight:750}.area-button svg{width:23px;height:23px;stroke-width:3}.area-button small{font-size:8px;letter-spacing:.7px;color:#8c957e}.area-button[aria-pressed=true]{background:#e3eddc;border-color:#94b390;color:#38634c}.workshop-area{background:#fffdf5;border:1.5px solid #dce5d4;border-radius:24px;padding:22px}.workshop-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.workshop-heading .eyebrow{font-size:9px;margin-bottom:7px}.workshop-heading h2{font-size:25px}.workshop-tag{font-size:11px;color:#8e947d}.workshop-check{color:#34856a}.workshop-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);gap:28px;align-items:center;max-width:850px;margin:auto}.workshop-board{position:relative;aspect-ratio:400/520;min-width:0;width:100%;background:#eef2e5;border-radius:20px;border:1px solid #dbe3cd;overflow:hidden}.track-grid{position:absolute;left:0;top:11.53846%;width:100%;height:76.92308%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}.track-cell{padding:0;background:#fffaf0;border:1px dashed #cbd5bd;border-radius:9px;min-width:0;min-height:0;position:relative;color:#a6b692;font-size:24px}.track-cell:hover:not(:disabled){background:#f8efd6}.track-cell:focus-visible{outline-offset:-5px;z-index:3}.track-cell.has-track{background:#faf0d8;border-style:solid;border-color:#dfd2b2}.track-cell svg{width:100%;height:100%;display:block;overflow:visible}.rail-shadow{stroke:#a77b4d;stroke-width:20;fill:none}.rail-top{stroke:#e8c593;stroke-width:14;fill:none}.rail-center{stroke:#fff1cb;stroke-width:3;fill:none}.track-rock{display:grid;place-items:center;background:#dde4cf;border:3px solid #eef2e5;border-radius:22px;color:#a5b58e}.track-rock span{display:grid;place-items:center;width:64%;height:59%;border-radius:39% 50% 31% 41%;background:#b9c7a6;box-shadow:inset 4px 6px #c6d2b6,0 4px #a8b998;color:#d4dec7;font-size:20px;transform:rotate(-8deg)}.track-cell.track-problem{box-shadow:inset 0 0 0 5px #e5ab50;background:#fff0c7}.track-rock.track-problem{box-shadow:inset 0 0 0 5px #e5ab50}.track-cell.track-active{background:#f4d99a;box-shadow:inset 0 0 0 3px #d5af62}.hopper{position:absolute;top:1.5%;left:1%;width:23%;height:8%;background:#87b6a5;border-radius:10px 10px 20px 20px;color:#244b3e;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;font-size:10px;font-weight:750;line-height:1.3}.hopper-balls{font-size:14px;letter-spacing:3px;color:#fce9b9}.marble-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.destination-cup{position:absolute;bottom:1%;right:1%;width:23%;height:9%;border:3px solid #6d9d89;border-top:0;border-radius:0 0 15px 15px;background:#d0e5d4;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;z-index:2}.destination-cup strong{font-size:11px;color:#375e4c}#cup-spaces{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;width:76%}#cup-spaces span{aspect-ratio:1;border-radius:50%;background:#aabfa9;max-width:9px}#cup-spaces span.filled{background:#39a991;box-shadow:inset 1px 1px #d5f5df}#cup-spaces span.filled:nth-child(even){background:#e79667}.workshop-win{position:absolute;bottom:2.5%;left:8%;color:#397452;font-weight:800;font-size:20px}.workshop-instructions{display:flex;align-items:center;gap:8px}.workshop-instructions h3{margin:0;font-size:17px}.piece-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:14px}.piece-button{padding:5px 4px 9px;border:2px solid #e4dcc7;background:#faf3e2;border-radius:13px;display:flex;flex-direction:column;align-items:center;font-weight:700;font-size:11px;box-shadow:0 3px #ded1b3;min-height:84px}.piece-button svg{width:48px;height:48px;margin-bottom:5px}.piece-button[aria-pressed=true]{border-color:#428b6e;box-shadow:0 0 0 3px #b8d4bc;background:#e8f0dc}.piece-button.eraser{background:#eef1e8;border-color:#d9e0d1;box-shadow:0 3px #d4ddcd}.piece-button.eraser[aria-pressed=true]{border-color:#428b6e;box-shadow:0 0 0 3px #b8d4bc}.erase-icon{height:53px;display:grid;place-items:center;font-size:32px;font-weight:400;color:#73876e}.placement-cue{font-size:13px;color:#73836b;margin:18px 0 0;display:flex;align-items:center;gap:8px}.workshop-edit{display:flex;justify-content:space-between;margin:7px 0 12px;gap:12px}.workshop-tools>.play-button{min-height:60px;width:100%;font-size:20px;flex-direction:row}.workshop-tools>.play-button svg{width:30px;height:30px}.workshop-message{font-size:14px;line-height:1.5;min-height:64px;margin:20px 0 8px;color:#526c51}.workshop-source{font-size:10px;line-height:1.5;color:#849078;margin:0}.workshop-gate{text-align:center;padding:35px 10px}.workshop-gate>svg{width:45px;height:45px;color:#84a17c}.workshop-gate h3{font-size:22px}.workshop-gate p{line-height:1.5;color:#718267}.workshop-gate .next-button{margin:22px auto 0}.workshop-gate .practice-note{font-size:12px}
@media(max-width:800px){.workshop-area{padding:18px}.workshop-layout{grid-template-columns:minmax(0,1.25fr) minmax(190px,1fr);gap:18px}.workshop-tag{display:none}.piece-palette{gap:9px}.piece-button{font-size:10px;min-height:76px}.piece-button svg{width:40px;height:40px}.erase-icon{height:45px}.workshop-message{font-size:12px}.workshop-heading h2{font-size:22px}.workshop-instructions h3{font-size:15px}}
@media(max-width:600px){.area-nav{gap:8px}.area-button{font-size:12px;padding:9px 12px;flex:1;justify-content:center}.area-button small{display:none}.workshop-layout{grid-template-columns:minmax(0,1fr);gap:16px}.workshop-board{max-width:370px;justify-self:center}.piece-palette{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:10px}.piece-button{font-size:9px;min-height:67px;padding:4px 1px 7px}.piece-button svg{width:36px;height:36px}.erase-icon{height:41px;font-size:27px}.workshop-area{padding:16px 13px}.workshop-instructions h3{font-size:15px}.placement-cue{margin-top:12px}.workshop-message{min-height:0;margin-top:18px}.workshop-win{font-size:17px}.workshop-tools>.play-button{min-height:54px}.workshop-heading{margin-bottom:13px}}

/* Six workshop boards: open space first, then checkpoints and branching routes. */
.workshop-heading{margin-bottom:14px}.workshop-levels{margin:0 0 14px;gap:10px}.workshop-goal{display:flex;align-items:center;gap:16px;margin-bottom:18px;min-height:32px}.workshop-goal p{margin:0;font-size:14px;line-height:1.45;max-width:700px;color:#607657}.workshop-goal strong{white-space:nowrap;margin-left:auto;background:#fbefc9;border:1px solid #e8cf89;color:#96712f;border-radius:15px;padding:8px 12px;font-size:15px}.workshop-board{background:#eef2e5}.workshop-layout{align-items:start;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);max-width:920px;gap:24px}.track-cell{border-radius:7px}.track-star{position:absolute;top:3px;left:4px;font-size:18px;line-height:1;color:#b28b37;text-shadow:0 1px #fff9;background:#ffefbb;border:1px solid #e5ca7f;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;pointer-events:none}.track-star.visited{background:#e6c366;color:#fff;box-shadow:0 0 0 2px #fbebbb}.track-switch{position:relative;background:#eee7f5;border:2px solid #c5b7d7;border-radius:9px;min-width:0;min-height:0}.track-switch svg{width:100%;height:100%;display:block}.track-switch .rail-top{stroke:#d5bfdc}.track-switch .rail-shadow{stroke:#9f85b2}.switch-cue{position:absolute;bottom:4px;left:0;right:0;text-align:center;font-size:14px;color:#816392;font-weight:800}.track-switch.track-active{background:#e2d2ec}.track-switch.track-problem{box-shadow:inset 0 0 0 5px #e5ab50}.switch-explainer{display:flex;align-items:center;gap:7px;font-size:11px;color:#816392;line-height:1.4;margin:12px 0 0}.switch-explainer span{background:#eee7f5;border-radius:7px;padding:5px;white-space:nowrap}.hopper{top:1%;min-height:27px;font-size:9px}.hopper-balls{font-size:12px;letter-spacing:1px}.destination-cup{right:auto;bottom:1%;min-height:27px;gap:2px;border-width:2px}.destination-cup strong{font-size:11px;line-height:1}.cup-spaces{display:grid;gap:2px;width:76%;max-width:68px}.cup-spaces span{aspect-ratio:1;border-radius:50%;background:#aabfa9;max-width:8px}.cup-spaces span.filled{background:#39a991;box-shadow:inset 1px 1px #d5f5df}.cup-spaces span.filled:nth-child(even){background:#e79667}.destination-cup.cup-full{background:#c3e5c1;border-color:#55936a}.destination-cup.cup-over{background:#f5dfb4;border-color:#c49c50}.workshop-tools{padding-top:4px}.piece-palette{gap:9px;margin-top:12px}.piece-button{min-height:73px;font-size:10px;padding:3px 2px 7px}.piece-button svg{width:43px;height:43px;margin-bottom:3px}.erase-icon{height:46px;font-size:28px}.workshop-message{min-height:56px;font-size:13px}.placement-cue{margin-top:14px}.workshop-edit{margin-top:4px}.workshop-success{margin-top:18px}#workshop-success{align-items:center}#workshop-win{font-size:15px;font-weight:750}.workshop-levels .level-button{width:44px;height:44px;flex-basis:44px}
@media(max-width:850px){.workshop-layout{grid-template-columns:minmax(0,1.35fr) minmax(210px,1fr);gap:18px}.piece-button{font-size:9px}.workshop-goal p{font-size:12px}.workshop-heading h2{font-size:22px}.workshop-tag{display:none}}
@media(max-width:760px){.workshop-layout{grid-template-columns:minmax(0,1fr);gap:18px}.workshop-board{max-width:460px;justify-self:center}.workshop-tools{width:100%}.piece-palette{grid-template-columns:repeat(5,minmax(0,1fr))}.piece-palette.wide-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.piece-button{font-size:10px;min-height:70px}.workshop-message{min-height:0}.workshop-levels{justify-content:space-between}.workshop-goal{gap:10px}.workshop-goal strong{font-size:12px;padding:7px 9px}.workshop-area{padding:16px 13px}.workshop-success{flex-wrap:wrap}.workshop-success .next-button{margin-left:auto}}

@media(min-width:761px) and (max-height:850px){.workshop-board{width:min(100%,max(var(--board-min),calc((100dvh - 330px) * var(--board-ratio))));justify-self:center}.workshop-layout{grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);max-width:780px;gap:20px}.workshop-heading{margin-bottom:10px}.workshop-goal{margin-bottom:12px}.piece-button{min-height:63px}.piece-button svg{width:34px;height:34px}.erase-icon{height:37px}.workshop-tools>.play-button{min-height:50px}.workshop-message{min-height:0;margin-top:13px}.placement-cue{margin-top:10px}.workshop-edit{margin-bottom:8px}}

.hopper-balls{white-space:nowrap;line-height:1;font-size:10px;letter-spacing:0}.hopper{line-height:1.1;gap:1px}#hopper-count{white-space:nowrap;font-size:9px}

.area-help {margin: -2px 0 12px; text-align: center; color: #52695d; font-size: .85rem;}

/* Three open destinations, one shared map. */
.area-nav{flex-wrap:wrap}.area-help{margin-bottom:16px}.map-area{border:1.5px solid #dce5d4;border-radius:24px;overflow:hidden;background:#f4f8ec}.map-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px 26px 10px}.map-heading h2{margin-top:7px;font-size:25px}.map-open{color:#66835b;font-size:12px;font-weight:700}.world-map{position:relative;aspect-ratio:1000/480}.map-art{position:absolute;inset:0;width:100%;height:100%;stroke:none}.map-destination{position:absolute;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;background:#fffdf2;border:2px solid #c8d6b5;border-radius:16px;padding:12px 16px;min-height:64px;box-shadow:0 4px 0 #b7cb9e;white-space:nowrap}.map-destination strong{font-size:16px}.map-destination span{font-size:12px;color:#6b7c61}.map-destination[aria-current=location]{border-color:#558468;background:#eff6e5}.map-destination[aria-pressed=true]{outline:3px solid #d5aa5a;outline-offset:3px}.map-fireball{position:absolute;transform:translate(-50%,-100%);width:12%;pointer-events:none;will-change:left,top}.map-fireball img{display:block;width:100%}.map-fireball.moving img{animation:trot .23s infinite alternate}.map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 26px;min-height:80px}.map-footer p{margin:0;font-size:14px;line-height:1.5}.map-footer .next-button{flex-shrink:0}.map-footer svg{width:22px;height:22px}
.climb-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 12px;gap:12px}.climb-heading h2{margin-top:5px;font-size:25px}.speed-options{display:flex;gap:6px}.speed-options button{min-width:48px;min-height:48px;border:1.5px solid #d3ddc7;border-radius:13px;background:#fffdf5;font-weight:750}.speed-options button[aria-pressed=true]{background:#4d8d73;color:white;border-color:#4d8d73}.speed-options button:disabled{opacity:.6}.climb-scene{position:relative;aspect-ratio:800/440;max-width:820px;margin:0 auto;border:1.5px solid #dce5d4;border-radius:24px;overflow:hidden}.climb-art{display:block;width:100%;height:100%}.climb-actor{position:absolute;width:14%;transform:translate(-50%,-100%);pointer-events:none;will-change:left,top}.climb-actor img{width:100%;display:block}.climb-actor.moving img{animation:trot .23s infinite alternate}.climb-counter{position:absolute;top:14px;left:14px;display:flex;gap:8px;align-items:center;background:#fffdf0d9;padding:9px 13px;border-radius:16px;font-size:13px}.climb-message{flex:1;font-size:14px;line-height:1.45;margin:0}.climb-ladders{filter:drop-shadow(1px 2px 0 #ecd4a5)}
#climb-program .program-slot{width:100%;min-width:0;height:58px}#climb-program .program-slot svg{width:72%;max-width:36px;height:36px}.level-success{flex-wrap:wrap}.level-success .next-button svg{width:22px;height:22px}
@media(max-width:800px){.area-button{font-size:13px;padding:8px 12px;gap:6px}.area-nav{gap:7px}.map-heading{padding:18px 20px 10px}.map-destination{padding:10px 12px;min-height:60px}.map-destination strong{font-size:13px}.map-destination span{font-size:11px}.climb-scene{max-width:680px}.climb-message{font-size:13px}}
@media(max-width:560px){.area-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.area-button{justify-content:center;min-width:0;font-size:12px;padding:8px 5px}.map-open{display:none}.map-heading h2,.climb-heading h2{font-size:21px}.world-map{aspect-ratio:1000/610}.map-art{height:79%}.map-destination[data-destination=trails]{top:57%!important}.map-destination[data-destination=workshop]{top:40%!important}.map-destination[data-destination=climb]{top:23%!important}.map-destination{padding:7px 4px;width:31%;min-height:60px;white-space:normal}.map-destination strong{font-size:12px;line-height:1.2}.map-destination span{font-size:10px}.map-fireball{width:16%}.map-heading{padding:17px 16px 4px}.map-footer{padding:8px 16px;min-height:76px}.map-footer p{font-size:12px}.climb-counter{top:8px;left:8px;padding:5px 8px;font-size:11px}.climb-counter .mini-marble{width:15px;height:15px}#climb-program .program-slot{height:49px;border-radius:9px}#climb-program .block-number{font-size:8px;left:3px}.climb-message{flex-basis:100%;order:3}#climb-area .tools-row{flex-wrap:wrap}#climb-area .help-button{margin-left:auto}#climb-area .command-library{gap:8px}#climb-area .command-button{width:68px}}
@media(prefers-reduced-motion:reduce){.map-fireball.moving img,.climb-actor.moving img{animation:none}}

.climb-art{stroke:none}.climb-scene{width:min(100%,820px,calc((100dvh - 500px) * 1.8182));min-width:min(100%,400px)}

/* Climbing plans read left to right across exactly two rows of eight. */
#climb-program{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(2,58px);gap:10px 8px;align-content:start;overflow:visible}
#climb-program .program-slot.empty .block-number{color:#81977c;opacity:1}
#climb-area .plan-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#climb-play{min-height:48px;flex-direction:row;gap:8px}
#climb-play svg{width:28px;height:28px}
#climb-area .tools-row{flex-wrap:wrap;gap:12px;margin-top:16px}
#climb-commands{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-width:0}
#climb-commands .command-button{width:100%;min-width:0;font-size:11px;height:66px}
#climb-commands .command-button span{white-space:nowrap}
#climb-area .climb-message{order:3;flex-basis:100%;font-size:13px;min-height:38px}
#climb-area .watch-label{display:none}
.climb-scene{aspect-ratio:800/620;width:min(100%,620px);min-width:0;max-width:none}
.climb-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#climb-area .program-panel{margin-top:0}
#climb-levels{justify-content:center;margin-bottom:16px}
#climb-area .panel-foot{line-height:1.5;min-height:28px}
@media(min-width:960px){.climb-workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:18px}#climb-area .program-panel{padding:15px 13px 10px}#climb-program{gap:9px 5px;padding:9px 7px;grid-template-rows:repeat(2,52px)}#climb-program .program-slot{height:52px}#climb-commands{gap:6px}#climb-commands .command-button{font-size:10px;height:65px}#climb-commands .command-button svg{width:29px;height:29px}#climb-area .help-button{min-height:44px;padding:6px 10px;flex-direction:row;gap:6px}#climb-area .help-button svg{width:22px;height:22px}.climb-heading{margin-top:10px}#climb-area .plan-header{margin-bottom:10px}#climb-area .tools-row{gap:12px}#climb-area .climb-message{flex:1;order:0;min-width:190px}}
@media(min-width:561px) and (max-width:959px){.climb-scene{width:min(100%,520px)}#climb-program{grid-template-rows:repeat(2,50px)}#climb-program .program-slot{height:50px}#climb-area .program-panel{padding-top:12px}#climb-area .tools-row{margin-top:12px}}
@media(max-width:560px){#climb-program{grid-template-rows:repeat(2,49px);gap:9px 5px}#climb-program .program-slot{height:49px}#climb-commands{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#climb-commands .command-button{height:64px;font-size:11px}#climb-area .help-button{align-self:flex-end;min-height:56px}.climb-heading .eyebrow{font-size:9px;letter-spacing:1px}.climb-heading h2{font-size:21px}#climb-levels{gap:8px;justify-content:space-between}.climb-counter{top:9px;left:9px}}

#climb-commands{flex:1 0 100%}.climb-heading-tools{display:flex;gap:12px;align-items:center}.climb-heading-tools .climb-counter{position:static;white-space:nowrap;background:#edf2e4;padding:8px 10px}.climb-heading{flex-wrap:wrap}
@media(max-width:560px){.climb-heading-tools{gap:8px}.climb-heading{gap:8px}.climb-heading-tools .climb-counter{font-size:11px;padding:5px 7px}.speed-options button{min-width:44px;min-height:44px}}
