:root{--paper:#fff8e9;--ink:#304a3b;--green:#37634a;--orange:#f2a84a;--custom:#ff6680;--blue:#4c97ff;--loop:#ffab19;--line:#dbe2cd;--font:"Avenir Next","Trebuchet MS",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:19px/1.5 var(--font)}html{scroll-behavior:smooth;scroll-padding-top:20px}a{color:inherit}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:4px solid #cb6f2c;outline-offset:5px}[hidden]{display:none!important}img{max-width:100%;height:auto}.section-width{width:min(1160px,calc(100% - 64px));margin-inline:auto}.site-header{display:flex;justify-content:space-between;align-items:center;padding-block:20px;border-bottom:2px solid #e9e5d5;gap:20px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:24px;font-weight:800;letter-spacing:-.6px}.adult-link{font-size:15px;color:#6b765e;text-decoration:none}.adult-link:hover{text-decoration:underline}.welcome{display:flex;align-items:center;justify-content:space-between;min-height:200px;gap:30px;padding-block:15px}.welcome-kicker{font-size:20px;color:#78815e;margin:0 0 6px}.welcome h1{font-size:43px;line-height:1.1;letter-spacing:-1.7px;margin:0;font-weight:800}.welcome h1>span{color:#ce742f}.welcome-cooke{position:relative;width:310px;height:180px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.welcome-cooke:before{content:"";position:absolute;width:200px;height:155px;border-radius:50%;background:#f1e8cf;right:40px;top:5px}.welcome-cooke>img:first-child{position:relative;z-index:1;width:235px;height:235px;object-fit:contain}.welcome-cooke .welcome-pizza{position:absolute;width:45px;right:0;bottom:25px;transform:rotate(10deg)}.lesson-tabs{display:flex;gap:12px;margin-bottom:15px}.lesson-tabs button{border:2px solid #d5ddc4;color:#71805d;background:#f1f3e4;border-radius:13px;padding:11px 24px;font-size:20px;font-weight:750;display:flex;align-items:center;gap:12px}.lesson-tabs button[aria-selected=true]{background:var(--green);border-color:var(--green);color:#fff}.lesson-tabs button>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffffff40;font-size:18px}.workshop{display:grid;grid-template-columns:1.02fr 1fr;background:#fffdf7;border:2px solid #d5ddc4;border-radius:22px;box-shadow:0 6px 0 #dce3ce55;overflow:hidden}.world-panel{padding:22px;background:#f0f4e5;display:flex;flex-direction:column;min-width:0}.world-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.world-top h2,.code-panel h2{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin:0}.step-count{font-size:16px;color:#788766}.board-container{padding-top:18px;display:flex;align-items:center;flex:1}.game-board{width:100%;aspect-ratio:7/6;position:relative;border:7px solid #dce5cb;background:#dce5cb;border-radius:15px;overflow:hidden}.board-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,1fr);gap:3px}.cell{border-radius:7px;background:#d0dcbd}.cell.path{background:#fffaf0;box-shadow:0 3px 0 #c2cfae}.cell.start{background:#e6efca}.cell.goal{background:#f8d98c}.cooke-position{position:absolute;width:20%;aspect-ratio:1;transform:translate(-50%,-50%);transition:left .42s linear,top .42s linear;z-index:3;pointer-events:none}.cooke-position img{width:100%;height:100%;object-fit:contain}.board-start{position:absolute;left:21.4286%;top:87%;transform:translateX(-50%);font-size:13px;color:#7b8b65;font-weight:700}#board-pizza{position:absolute;width:8.5%;transform:translate(-50%,-50%);z-index:1}.speech{position:absolute;bottom:84%;left:50%;font-size:16px;font-weight:700;padding:7px 12px;border:2px solid #cdd9b9;border-radius:14px 14px 14px 2px;background:#fff;white-space:nowrap;z-index:4}.footprint{position:absolute;width:7px;height:7px;border-radius:50%;background:#91a277;transform:translate(-50%,-50%);z-index:1}.world-state{font-size:16px;color:#657653;text-align:center;min-height:48px;line-height:1.4;margin:16px 0 0}.code-panel{padding:22px;min-width:0}#mission-text{font-size:18px;color:#687559;margin:10px 0 18px;line-height:1.5}.command-palette{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.palette-button{border:0;border-bottom:3px solid #00000016;color:#fff;border-radius:7px;padding:11px 13px;font-size:16px;font-weight:700;min-height:46px;line-height:1.4;position:relative;text-shadow:0 1px 1px #00000018}.palette-button:hover{filter:brightness(1.06)}.palette-button b,.program-command b,.repeat-block>b,.mini-scratch b{display:inline-block;border-radius:20px;background:white;color:#52606b;min-width:28px;padding:0 8px;margin-inline:3px;font-weight:500;text-shadow:none}.custom{background:var(--custom)}.motion{background:var(--blue)}.repeat{background:var(--loop)}.program-space{background:#f5f5ed;border:2px dashed #d7dec9;border-radius:12px;padding:14px;min-height:220px}.program-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px;font-size:16px;color:#778265;font-weight:700}.text-button{background:none;border:0;color:#798569;font-size:14px;text-decoration:underline;text-underline-offset:3px;padding:5px;min-height:32px}.start-block{display:inline-flex;align-items:center;gap:8px;background:#ffbf00;color:#5c4a24;font-size:16px;font-weight:700;border-radius:18px 18px 5px 5px;padding:10px 12px;position:relative;margin-bottom:3px}.start-block:before{content:"";width:33px;height:9px;border-radius:15px 15px 0 0;background:inherit;position:absolute;top:-7px;left:20px}.flag-mark{color:#26783b;font-size:24px;line-height:1}.prepared-block{padding:9px 12px;color:white;font-size:16px;font-weight:700;border-radius:5px;display:table;margin-bottom:3px;position:relative}.program-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}.program-command{border-radius:5px;display:flex;gap:7px;align-items:center;padding:9px 8px 9px 13px;color:white;font-size:16px;line-height:1.4;position:relative}.program-command:before,.prepared-block:before{content:"";position:absolute;width:28px;height:4px;background:inherit;left:20px;top:-3px;border-radius:0 0 4px 4px}.program-command.active{box-shadow:0 0 0 4px #ffe16b;z-index:2}.command-body{flex:1;font-weight:650;min-width:0}.command-tools{display:flex;gap:3px;flex-shrink:0}.command-tools button{width:27px;height:30px;border:0;color:white;background:#ffffff20;border-radius:4px;line-height:1;font-size:18px;padding:0}.command-tools button:hover{background:#ffffff45}.repeat-command{background:var(--loop);padding-block:10px 15px}.iteration-label{font-size:14px;color:#fff7df;margin-left:8px;white-space:nowrap}.empty-program{font-size:17px;text-align:center;color:#8a967b;padding:13px 0;margin:14px 0}.run-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.button{border:2px solid transparent;border-radius:10px;padding:11px 17px;min-height:48px;font-size:17px;font-weight:750;line-height:1.3;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:8px}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#254c36}.button.secondary,.reset-button{border-color:#ccd7b9;background:#fffdf6;color:#60744e}.reset-button{margin-left:auto;font-size:16px}.feedback{font-size:17px;line-height:1.5;min-height:51px;color:#657a50;margin:17px 0 7px}.feedback.success{color:#2f7047;font-weight:750}.feedback.warning{color:#a86b30}.tip-button{font-size:16px;border:0;border-radius:8px;background:#f5eccb;padding:8px 15px;color:#8a7439;min-height:42px}.tip-text{font-size:17px;line-height:1.5;background:#fbf0d1;border-radius:8px;padding:12px 15px;margin:12px 0 0}.next-links{display:flex;justify-content:space-between;gap:20px;font-size:16px;margin:23px 0 0;color:#71825b}.next-links a{text-decoration:none;border-bottom:1px solid #b8c7a0;padding-bottom:3px}.next-links a:hover{color:var(--ink)}.discovery-section{margin-top:35px;margin-bottom:40px;display:grid;gap:16px}.discovery-section>details{border:2px solid #dbe1cd;border-radius:15px;background:#f6f5e8;overflow:hidden}.discovery-section summary{font-size:21px;font-weight:750;cursor:pointer;list-style:none;padding:19px 23px;display:flex;justify-content:space-between;gap:20px}.discovery-section summary::-webkit-details-marker{display:none}.discovery-section summary>span{font-size:24px;color:#a29a70}.loop-discovery-content{padding:0 24px 24px;max-width:720px;margin:auto}.loop-discovery-content>p{font-size:18px}.loop-discovery-content label{display:flex;justify-content:space-between;font-size:18px;font-weight:700;margin:20px 0 12px}.loop-discovery-content output{color:#b8752f}.loop-discovery-content input{width:100%;accent-color:#ba762b;cursor:pointer}.loop-comparison{display:grid;grid-template-columns:1fr 30px 1fr;gap:24px;align-items:center;margin-block:25px}.expanded-blocks{display:grid;gap:7px}.mini-scratch{color:white;border-radius:5px;padding:12px;font-size:17px;line-height:1.5}.equals-sign{font-size:36px;color:#9aab86}.repeat-block{align-self:start;background:var(--loop);color:#fff;font-size:17px;padding:12px;border-radius:8px}.repeat-block>.mini-scratch{margin:12px 0 10px 8px}.costume-play{display:flex;flex-direction:column;align-items:center;padding:0 20px 28px}.mascot-picture{position:relative;width:min(360px,100%);aspect-ratio:1;isolation:isolate}.mascot-picture>img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain}.costume-ground{position:absolute;top:78.5%;left:15%;width:70%;height:4%;background:#87744d1a;border-radius:50%;transform:translateY(-35%);z-index:0}.direction-controls,.fun-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.direction-controls button{font-size:17px;border:2px solid #cdd7bc;background:#fffdf6;color:#6a7a56;border-radius:9px;min-height:45px;padding:9px 15px;font-weight:700}.direction-controls button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.fun-controls{margin-top:18px}.fun-controls .button{font-size:16px;font-weight:600;background:#fffaf0}.site-footer{display:flex;justify-content:space-between;gap:20px;border-top:2px solid #e5e8d8;padding-block:22px 30px;font-size:15px;color:#819070}.site-footer>a{text-decoration:none}.skip-link{position:fixed;left:15px;top:-100px;padding:15px;background:var(--green);color:#fff;z-index:50}.skip-link:focus{top:10px}.adult-page{max-width:850px;margin:40px auto;padding:0 24px 50px;font-size:18px;line-height:1.7}.adult-page h1{font-size:36px;line-height:1.2}.adult-page h2{font-size:25px;margin-top:35px}.adult-page h3{font-size:21px}.adult-page section{border-top:2px solid #dfe4d1;margin-top:32px;padding-top:10px}.adult-page li{margin:9px 0}.adult-page .download-list{display:grid;gap:12px}.adult-page .download-list a{display:block;padding:12px 16px;border:1px solid #d2ddc3;border-radius:8px;background:#f4f6e8;text-decoration:none}.adult-page code{background:#eeeada;padding:2px 5px;border-radius:4px}.adult-page pre{background:#eeeada;border-radius:10px;padding:18px;white-space:pre-wrap;font-size:17px;line-height:1.7}
@media(max-width:1000px){.section-width{width:calc(100% - 44px)}.welcome h1{font-size:38px}.welcome-cooke{width:240px}.code-panel,.world-panel{padding:18px}.palette-button{font-size:14px;padding-inline:10px}.program-command{font-size:15px}.command-tools button{width:24px}.button{font-size:16px;padding:11px 13px}.reset-button{font-size:14px}.run-controls{gap:6px}.workshop{grid-template-columns:1fr 1.05fr}.world-top h2,.code-panel h2{font-size:23px}}
@media(max-width:760px){.section-width{width:calc(100% - 32px)}.site-header{padding-block:15px}.brand{font-size:21px;gap:7px}.brand img{width:27px}.adult-link{font-size:13px}.welcome{min-height:165px;padding-block:15px;gap:10px}.welcome-kicker{font-size:17px}.welcome h1{font-size:33px;letter-spacing:-1px}.welcome-cooke{width:170px;height:145px}.welcome-cooke:before{width:125px;height:125px;right:20px}.welcome-cooke>img:first-child{width:175px;height:175px}.welcome-cooke .welcome-pizza{width:32px;right:-6px;bottom:10px}.lesson-tabs{gap:8px}.lesson-tabs button{font-size:18px;padding:10px 14px;flex:1;justify-content:center;gap:9px}.lesson-tabs button>span{width:28px;height:28px;font-size:17px}.workshop{grid-template-columns:1fr}.world-panel{padding:18px}.board-container{max-width:420px;width:100%;margin:auto;padding-top:13px}.world-state{font-size:16px;min-height:23px;margin-top:13px}.code-panel{padding:21px}.command-palette{gap:10px}.palette-button{font-size:17px;padding:11px 14px}.program-command{font-size:17px}.command-tools button{width:30px;height:32px}.start-block,.prepared-block{font-size:17px}.run-controls .button{font-size:17px}.code-panel h2{font-size:26px}.feedback{font-size:18px}.next-links{font-size:15px}.loop-comparison{gap:14px}.mini-scratch,.repeat-block{font-size:16px}.site-footer{font-size:13px}}
@media(max-width:430px){.welcome{min-height:150px}.welcome h1{font-size:29px}.welcome-kicker{font-size:15px}.welcome-cooke{width:125px;height:135px}.welcome-cooke>img:first-child{width:155px;height:155px;max-width:none}.welcome-cooke:before{width:110px;height:110px;right:0}.welcome-cooke .welcome-pizza{width:25px;right:-4px;bottom:12px}.brand{font-size:18px}.adult-link{font-size:12px}.lesson-tabs button{font-size:16px;padding:10px 9px;gap:7px}.lesson-tabs button>span{width:25px;height:25px;font-size:15px}.world-panel,.code-panel{padding:16px}.world-top h2{font-size:23px}.step-count{font-size:15px}.palette-button{font-size:15px;padding:11px 12px}.program-space{padding:12px}.start-block,.prepared-block{font-size:15px}.program-command{font-size:15px;padding-left:10px}.command-tools{gap:2px}.command-tools button{width:25px;font-size:17px}.iteration-label{font-size:12px;margin-left:4px}.run-controls .button{font-size:15px;padding:11px 12px}.run-controls .reset-button{font-size:14px;padding-inline:10px}.next-links{font-size:14px;flex-direction:column;align-items:start;gap:16px}.discovery-section summary{font-size:19px;padding:17px}.loop-discovery-content{padding-inline:16px}.loop-comparison{gap:10px;grid-template-columns:1fr 20px 1fr}.mini-scratch,.repeat-block{font-size:13px;padding:9px}.mini-scratch b,.repeat-block>b{min-width:22px;padding-inline:5px}.repeat-block>.mini-scratch{margin-left:3px}.direction-controls{gap:6px}.direction-controls button{font-size:15px;padding:8px 11px}.fun-controls .button{font-size:15px}.site-footer{flex-direction:column;gap:10px}.adult-page{font-size:17px}.adult-page h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.site-header,.welcome-cooke,.lesson-tabs,.run-controls,.command-palette,.command-tools,.tip-button,.discovery-section,.next-links,.site-footer{display:none}.section-width{width:100%}.workshop{display:block}.world-panel{display:none}.adult-page{max-width:none;margin:0}}
@media(max-width:430px){.welcome-cooke>img:first-child{max-width:100%;width:145px;height:145px}.welcome-cooke .welcome-pizza{right:0}.site-header{gap:12px}.brand{font-size:17px}.adult-link{font-size:12px;white-space:nowrap}}

/* Connected block stacks; invisible drop markers never create a gap. */
.block-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0;min-width:0}
.start-block{display:flex;width:fit-content;margin-bottom:0}
.prepared-block{margin-bottom:0}
.expanded-blocks{gap:0}
.draggable-block{cursor:grab;touch-action:none;user-select:none}
.draggable-block:active{cursor:grabbing}
.block-drag-ghost{position:fixed!important;pointer-events:none!important;z-index:1000;opacity:.85;box-shadow:0 8px 18px #304a3b35;transform:rotate(-2deg);margin:0;list-style:none}
.dragging-block{user-select:none}
.command-tools{flex-wrap:wrap;justify-content:flex-end;max-width:92px}
.repeat-command{display:block;padding:10px 8px 10px 12px}
.repeat-header{display:flex;align-items:center;gap:7px}
.loop-body{background:#fffdf7;border-radius:6px;margin:9px 0 0 7px;padding:7px;min-height:62px}
.loop-body .program-command{font-size:16px}
.insertion-slot{position:relative;margin:0;padding:0;height:0;min-height:0;flex:0 0 0;line-height:0}
.drop-zone{display:block;pointer-events:none}
.insertion-slot.list-empty{height:auto;min-height:48px;flex:0 0 auto}
.list-empty>.drop-zone{min-height:48px;padding:12px 8px;border:2px dashed #cdd8bb;border-radius:5px;background:#f6f7ef;color:#728362;font-size:15px;line-height:1.4;pointer-events:auto}
.insertion-slot.drop-over:after{content:"";position:absolute;left:0;right:0;top:-2px;height:4px;background:#37634a;border-radius:2px;z-index:10;pointer-events:none}
.list-empty.drop-over>.drop-zone{border-color:#37634a;background:#e1efcf}
@media(max-width:430px){.loop-body{margin-left:3px;padding:5px}.loop-body .program-command{font-size:15px;padding-left:8px}.command-tools{max-width:78px}.repeat-command{padding-left:9px}.list-empty>.drop-zone{font-size:14px}}
@media print{.insertion-slot{display:none}}

/* Scratch's start/stop symbols, with child-sized hit targets. */
.run-controls .execution-button{width:48px;min-width:48px;height:48px;padding:7px;border:2px solid #ccd7b9;background:#fffdf6;flex-shrink:0}
.execution-button img{display:block;width:30px;height:30px}
.execution-button.start-control:hover,.execution-button.start-control.is-running{background:#e2f1d8;border-color:#7caf69}
.execution-button.stop-control:hover:not(:disabled){background:#ffe7e4;border-color:#df9a92}
.execution-button:disabled{opacity:.45;cursor:default}
.start-block img{display:inline-block;width:22px;height:22px;flex-shrink:0}

/* Actual Scratch-3 SVG rendering; HTML is only the accessible interaction layer. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.scratch-workspace{max-width:100%;overflow:auto;padding:3px 3px 12px;background-color:#fafafa;background-image:radial-gradient(#ddd 1px,transparent 1px);background-size:20px 20px;border-radius:8px}
#script-canvas{position:relative;min-width:100%}
#script-canvas>svg{display:block;max-width:none;overflow:visible;pointer-events:none}
.scratch-workspace .block-list{position:absolute;left:0;top:0;display:block;padding:0;margin:0;min-height:0;gap:0}
.scratch-workspace .program-command{position:absolute;padding:0;margin:0;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;display:block;min-width:0}
.scratch-workspace .program-command:before{display:none}
.scratch-workspace .loop-body{position:absolute;padding:0;margin:0;min-height:0;background:none;border-radius:0}
.scratch-workspace .insertion-slot{position:absolute;left:0;right:0;min-height:0;line-height:0;flex:none}
.scratch-workspace .drop-zone{position:absolute;inset:0;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;pointer-events:auto}
.scratch-workspace .command-tools{position:absolute;display:flex;gap:3px;max-width:80px;opacity:0;z-index:5}
.scratch-workspace .command-tools button{background:#e2e6df;color:#52664d;border:1px solid #b2bca8;border-radius:4px;width:24px;height:25px;font-size:17px}
.scratch-workspace .program-command:hover>.command-tools,.scratch-workspace .program-command:focus-within>.command-tools,.scratch-workspace .program-command.is-selected>.command-tools{opacity:1}
.scratch-workspace .repeat-header{position:absolute;top:-7px;pointer-events:none}
.scratch-workspace .iteration-label{color:#52664d;font-size:12px;white-space:nowrap;margin:0}
.command-palette{align-items:flex-start}
.command-palette .palette-button{padding:0!important;border:0;background:none;min-height:0;border-radius:0;text-shadow:none;max-width:100%}
.palette-button>svg{display:block;max-width:100%;pointer-events:none;overflow:visible}
.block-drag-ghost{width:auto!important;padding:0;background:none;box-shadow:none;opacity:.8}
.block-drag-ghost>svg{display:block;overflow:visible;pointer-events:none}
svg .cooke-white-hairline{fill:none;stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke;pointer-events:none}
svg .cooke-shape{stroke-width:1px;vector-effect:non-scaling-stroke}
svg .cooke-shape.sb3-custom{stroke:#a92d49}
svg .cooke-shape.sb3-control{stroke:#a96400}
svg .cooke-shape.sb3-events{stroke:#a87500}
svg .cooke-shape.sb3-motion{stroke:#285ca4}
.scratch-block-shape.active>.cooke-shape{stroke:#ffdc4a;stroke-width:3px;filter:drop-shadow(0 0 2px #edba18)}
.loop-comparison svg{display:block;max-width:100%;height:auto;overflow:visible}

/* Lesson 1: three short assignments, with larger text and no teacher notes. */
.lesson-one-tasks{display:flex;gap:12px;list-style:none;padding:0;margin:0 0 18px}
.lesson-one-tasks li{flex:1;display:flex;align-items:center;gap:10px;background:#fffaf0;border:1px solid #d9dfca;border-radius:12px;padding:14px;font-size:18px;line-height:1.35}
.lesson-one-tasks li>span{flex:0 0 30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e4edcf;color:#37634a;font-weight:800}
.next-links{flex-wrap:wrap}
.teacher-lesson-nav{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}
.teacher-lesson-nav a{padding:6px 12px;border:1px solid #ccd7b9;border-radius:8px;text-decoration:none;background:#fffaf0}
.teacher-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.6}
.teacher-table th,.teacher-table td{text-align:left;vertical-align:top;border-bottom:1px solid #dbe1cd;padding:10px}
.teacher-table th:first-child,.teacher-table td:first-child{white-space:nowrap}
.teacher-solution{padding:18px;background:#fffdf7;border:1px solid #dbe1cd;border-radius:12px;overflow:auto}
.teacher-solution svg{display:block;max-width:100%;height:auto}
.teacher-note{border-left:4px solid #bb8b43;background:#fbf0d1;padding:12px 16px}
@media(max-width:760px){.lesson-one-tasks{gap:8px}.lesson-one-tasks li{font-size:16px;padding:10px;gap:7px}.lesson-one-tasks li>span{flex-basis:25px;height:25px}}
@media(max-width:500px){.lesson-one-tasks{flex-direction:column}.lesson-one-tasks li{font-size:18px;padding:10px 14px}.teacher-table{font-size:15px}.teacher-table th,.teacher-table td{padding:7px 4px}}
@media print{.lesson-one-tasks,.teacher-lesson-nav{display:none}}
@media(max-width:430px){.lesson-tabs button{min-width:0;flex:1 1 0;flex-direction:column;gap:5px;padding:9px 5px}}
@media(max-width:500px){.teacher-table{table-layout:fixed}.teacher-table th,.teacher-table td{overflow-wrap:anywhere}.teacher-table th:first-child,.teacher-table td:first-child{white-space:normal;width:38%}.adult-page pre,.adult-page code{overflow-wrap:anywhere}.site-header>a:not(.brand){font-size:14px}}

/* Cookie V5: full costume canvas occupies exactly one grid field. */
body[data-cooke-version="5"] .cooke-position,body[data-lesson] .cooke-position{width:calc((100% - (var(--cols,7) - 1) * 3px) / var(--cols,7))}
body[data-cooke-version="5"] .board-pizza,body[data-cooke-version="5"] #board-pizza,body[data-lesson] .board-pizza{width:calc((100% - (var(--cols,7) - 1) * 3px) / var(--cols,7) * .65)}

/* Separate, child-facing lessons and course overview. */
.course-overview{max-width:980px;margin-bottom:55px}.course-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 0}.course-welcome h1{font-size:48px;line-height:1.1;margin:10px 0;letter-spacing:-1.5px}.course-welcome p{font-size:22px}.course-welcome img{width:min(340px,40%);height:auto}.lesson-list{padding:0;list-style:none;display:grid;gap:16px}.lesson-list a{display:flex;align-items:center;gap:20px;padding:24px;background:#fffdf7;border:2px solid #d5ddc4;border-radius:18px;text-decoration:none;box-shadow:0 4px 0 #dce3ce55}.lesson-list a:hover{border-color:#7c9c67;transform:translateY(-1px)}.lesson-list h2{font-size:25px;margin:0 0 6px;line-height:1.25}.lesson-list p{margin:0;font-size:19px;color:#637650}.lesson-number{display:grid;place-items:center;background:#e4edcf;color:#37634a;border-radius:50%;width:55px;height:55px;flex-shrink:0;font-size:27px;font-weight:bold}.lesson-arrow{margin-left:auto;font-size:30px}.coming-next{margin-top:35px;border-top:2px solid #dbe2cd;padding-top:20px}.lesson-heading{padding-block:25px}.lesson-heading>a{font-size:17px}.lesson-heading>p{font-size:17px;color:#657653;margin-bottom:7px}.lesson-heading h1{font-size:35px;line-height:1.15;margin:8px 0 15px}.lesson-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:28px 0}.definition-section{padding:20px;border:2px solid #e6b8c3;border-radius:16px;background:#fff6f8;margin-bottom:20px}.definition-section h2{margin:0;font-size:25px}.definition-section p{font-size:18px}.definition-workspace{overflow:auto;padding:8px}.definition-workspace svg{display:block;max-width:none}.definition-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:12px}.definition-controls .palette-button{background:none;padding:0;border:0}.definition-workspace.active{box-shadow:inset 0 0 0 3px #edbe37}.variant-switch{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.variant-switch button[aria-pressed=true]{background:#37634a;color:white;border-color:#37634a}.variant-switch>span{font-size:17px;color:#637650}.pizza-count{font-size:18px;margin:10px 0 0;color:#37634a;font-weight:bold}.sensor-readout{font-size:19px;border:2px solid #d8bf84;background:#fff0c7;padding:12px;border-radius:10px}.cooke-position{width:calc(100% / var(--cols,7))}.board-pizza,#board-pizza{position:absolute;width:calc(100% / var(--cols,7) * .65);transform:translate(-50%,-50%);z-index:1}.terrain{position:absolute;width:calc(100% / var(--cols,7) * .85);transform:translate(-50%,-50%);z-index:1}#board-walls{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}#board-walls line{stroke:#77705c;stroke-width:3.5;stroke-linecap:round}.game-board{border-width:4px}.board-grid{gap:2px}.speech{max-width:230px;white-space:normal;min-width:120px;line-height:1.3;bottom:84%}.scratch-workspace .command-tools{max-width:110px}.lesson-one-tasks strong{font-weight:700}
@media(max-width:760px){.lesson-heading h1{font-size:29px}.course-welcome h1{font-size:36px}.lesson-list h2{font-size:22px}.lesson-list a{gap:14px;padding:20px}.lesson-number{width:45px;height:45px;font-size:23px}.lesson-list p{font-size:18px}}
@media(max-width:500px){.course-welcome{align-items:center;gap:8px;padding-block:22px}.course-welcome h1{font-size:30px}.course-welcome p{font-size:18px}.course-welcome img{width:38%}.lesson-list a{gap:10px;padding:16px}.lesson-list h2{font-size:21px}.lesson-list p{font-size:17px}.lesson-arrow{font-size:24px}.lesson-number{width:35px;height:35px;font-size:21px}.lesson-navigation{align-items:stretch;flex-direction:column}.lesson-navigation .button{align-self:stretch}.definition-section{padding:14px}.definition-controls .button{font-size:16px}.speech{font-size:14px;min-width:90px;max-width:150px}}
/* Keep the world beside the start of long programs rather than vertically centering it. */
.board-container{flex:0;align-items:flex-start}

/* The fixed costume canvas keeps Cookie grounded while the pose changes. */
.course-welcome .overview-cooke{-webkit-appearance:none;appearance:none;position:relative;display:block;flex:0 0 auto;width:min(340px,40%);margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--green);-webkit-tap-highlight-color:transparent}.course-welcome .overview-cooke:hover,.course-welcome .overview-cooke:active,.course-welcome .overview-cooke:focus{background:none;box-shadow:none}.course-welcome .overview-cooke img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:none}.overview-cooke:before,.overview-cooke:after{content:none}.overview-cooke:focus-visible{outline:3px solid var(--green);outline-offset:3px}@media(max-width:500px){.course-welcome .overview-cooke{width:38%}}
