:root{--navy:#122a35;--teal:#007f79;--mint:#dbf2df;--paper:#f5f5ee;--line:#dce3dc;--muted:#52676b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font-family:Arial,Helvetica,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--navy);padding:10px 13px;font-weight:700;transition:background .15s,transform .15s}button:hover{background:#edf4ed}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,canvas:focus-visible{outline:3px solid #edab3d;outline-offset:3px}button:disabled{opacity:.45;cursor:default}header{background:var(--navy);padding:21px 3%;display:flex;justify-content:space-between;align-items:center;color:white}.brand{color:inherit;text-decoration:none;display:flex;gap:12px;align-items:center;font-size:21px;font-weight:800;letter-spacing:-.5px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;color:#b6cfcf}.mark{background:#b8e9bf;color:var(--navy);font-size:28px;border-radius:11px;padding:5px 11px;position:relative}.mark span{font-size:12px;position:absolute;right:1px;top:1px}.header-actions{display:flex;align-items:center;gap:24px}.tag,.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px}.tag{color:#b7d1d0}header button{background:transparent;color:#fff;border-color:#52676b}main{max-width:1700px;margin:auto;padding:34px 3% 20px}.intro{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:29px}.eyebrow{color:var(--teal)}h1{font-size:clamp(28px,3.3vw,46px);letter-spacing:-1.7px;margin:9px 0 12px}h1 em{font-style:normal;color:var(--teal)}p{line-height:1.55} .intro p{color:var(--muted);margin:0}.project-actions{display:flex;gap:9px;white-space:nowrap}.workspace{display:grid;grid-template-columns:245px minmax(420px,1fr) 228px;gap:18px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:13px}.builder,.right-panel{padding:20px}.section-heading{display:flex;gap:9px;align-items:center}.section-heading h2{font-size:16px;margin:0}.step{font-size:10px;font-weight:bold;padding:5px;background:#ecf2eb;border-radius:5px;color:var(--teal)}label{display:block;font-size:11px;font-weight:700;margin:15px 0 7px}input,select,textarea{width:100%;border:1px solid #ccd7d0;border-radius:7px;padding:11px;background:#fff;color:var(--navy)}.starter-row{display:flex;gap:6px;margin-top:12px}.starter-row button{font-size:11px;padding:9px 7px;flex:1}.selected{background:var(--mint)!important;border-color:#6fa98b!important}.sub{margin-top:25px}.hint{font-size:11px;color:var(--muted);line-height:1.5}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.tool{padding:10px 2px 7px;font-size:10px}.tool span{display:block;font-size:20px;margin-bottom:5px}.row{display:flex;align-items:center;gap:5px;margin-top:12px}.row label{margin:0;font-size:10px}.row select{padding:7px;width:50px}.row button{padding:7px;font-size:10px;white-space:nowrap}.player-card{display:flex;align-items:center;gap:10px;margin-top:15px}.player-card strong{font-size:12px}.player-card p{margin:4px 0}.sprite-preview{width:47px;height:47px;flex-shrink:0;border-radius:9px;background:#e7f4ee;color:#007f79;font-size:34px;display:grid;place-items:center}.sprite-preview img{width:40px;height:40px;object-fit:contain}.wide{width:100%;margin-top:9px;font-size:12px}.bob-note{margin-bottom:0}.stage-column{min-width:0}.stage-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:white;border:1px solid var(--line);border-radius:12px 12px 0 0;gap:6px}.stage-bar strong{font-size:10px;letter-spacing:1px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#0b9c7f;margin-right:7px}#levelLabel{font-size:9px;color:var(--muted);margin-left:14px}.stage-actions{display:flex;gap:7px}.stage-actions button{font-size:11px;padding:9px 11px}.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.primary:hover{background:#006b66}.canvas-wrap{position:relative;background:#e9f4ef;line-height:0;overflow:hidden}canvas{width:100%;height:auto;display:block;touch-action:none}#overlay{position:absolute;inset:0;background:#112b35dc;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;text-align:center;line-height:1.5;padding:20px}#overlay[hidden]{display:none}#overlay h2{font-size:32px;margin:0}#overlay p{max-width:350px}.stage-footer{padding:12px 13px;background:white;border:1px solid var(--line);border-radius:0 0 11px 11px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}kbd{font:10px Arial;border:1px solid #d4ded7;padding:2px 4px;border-radius:3px;margin-left:2px}.command-panel{padding:22px;margin-top:17px}.command-heading{display:flex;justify-content:space-between;align-items:center}.command-heading h2{font-size:19px;letter-spacing:-.4px;margin:7px 0 15px}.command-heading button{font-size:10px;padding:8px}form{display:flex;gap:8px}form input{min-width:0}form button{white-space:nowrap}.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.chips button{font-size:10px;padding:7px 9px;border-radius:20px;background:#f1f5ef}#feedback{font-size:12px;margin:13px 0 7px;color:var(--teal)}details{font-size:12px;color:var(--muted);line-height:1.7}summary{cursor:pointer;font-weight:bold}#commandList{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:9px}code{background:#edf3ec;padding:3px 5px;font-size:11px}.right-panel h2{font-size:28px;letter-spacing:-1px;line-height:1.15;margin:13px 0 25px}.mission{display:flex;gap:10px;margin-top:21px}.mission>span{flex-shrink:0;width:23px;height:23px;background:#e5f3e6;border-radius:50%;display:grid;place-items:center;color:var(--teal);font-size:11px;font-weight:700}.mission strong{font-size:12px}.mission p{font-size:12px;color:var(--muted);margin:5px 0}.divider{border-top:1px solid var(--line);margin:23px 0}.share-card{background:#e8f2e4;border-radius:9px;padding:15px;margin-top:23px}.share-card .eyebrow{font-size:8px}.share-card h3{font-size:18px;margin:9px 0}.share-card p,.share-card small{font-size:11px;line-height:1.6}.share-card small{display:block;color:var(--muted);margin-top:12px}.dark{background:var(--navy);color:white;border-color:var(--navy)}.dark:hover{background:#254a56}footer{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#697b78;margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}.accessible-editor{margin-top:16px}.accessible-editor label{display:inline-block;margin-right:10px}.accessible-editor input{width:80px}.touch-controls{display:flex;gap:8px;margin-top:10px}.touch-controls button:last-child{margin-left:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}dialog{max-width:620px;border:0;border-radius:15px;padding:30px;color:var(--navy);box-shadow:0 15px 80px #102a3540}dialog::backdrop{background:#102a3580}.dialog-close{float:right}dialog h2{font-size:27px}dialog li{margin:15px 0;line-height:1.6}dialog p{font-size:13px}body.play-only .builder,body.play-only .right-panel,body.play-only .intro,body.play-only .command-panel,body.play-only .accessible-editor,body.play-only .header-actions,body.play-only footer{display:none}body.play-only .workspace{display:block;max-width:1100px;margin:auto}body.play-only #play{display:none}body.play-only main{padding-top:24px}@media(min-width:1500px){.workspace{grid-template-columns:260px minmax(420px,1fr) 250px}}@media(max-width:1150px){.workspace{grid-template-columns:215px minmax(420px,1fr)}.right-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px 25px}.right-panel>.eyebrow,.right-panel>h2,.divider{display:none}.mission{margin:0}.right-panel label{grid-column:1}.right-panel textarea{grid-column:1}.share-card{grid-column:2/4;grid-row:2/5;margin-top:10px}.stage-footer{flex-wrap:wrap}}@media(max-width:760px){header{padding:16px}.brand{font-size:16px}.tag{display:none}main{padding:24px 14px}.intro{display:block}.project-actions{margin-top:18px}.workspace{display:flex;flex-direction:column}.builder,.stage-column,.right-panel{width:100%}.builder{display:grid;grid-template-columns:1fr 1fr;gap:9px 15px}.builder .section-heading,.builder .hint,.builder .tools,.builder .player-card,.builder .starter-row{grid-column:1/-1}.builder .sub{margin-top:9px}.builder label{margin-top:3px}.builder .tools{grid-template-columns:repeat(9,1fr)}.tool{font-size:8px}.tool span{font-size:17px}.builder .row{grid-column:1/-1}.builder .player-card{display:none}.builder .bob-note{margin:0}.command-panel{padding:16px}.command-heading h2{font-size:17px}.right-panel{display:block}.right-panel .mission{margin:12px 0}.right-panel label{margin-top:20px}#levelLabel{display:none}footer span{display:none}}

.sprite-preview canvas{width:44px;height:45px;object-fit:contain}.tools{grid-template-columns:repeat(3,1fr)}@media(max-width:760px){.builder .tools{grid-template-columns:repeat(7,1fr)}}

.tool-help{padding:9px;background:#f1eef8;border-radius:7px;min-height:48px}.tool{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.builder .tool-help{grid-column:1/-1}.builder .tools{grid-template-columns:repeat(5,1fr)}}

.move-panel{margin-bottom:14px;border:1px solid #cbdcde;border-left:5px solid #497c91;border-radius:12px;background:#eef5f6;padding:15px 18px;min-height:135px}.move-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.move-top button{padding:7px 9px;font-size:10px;background:#ffffffbb}.move-content{display:flex;align-items:center;gap:13px;min-height:65px}.move-icon{display:grid;place-items:center;border-radius:50%;width:40px;height:40px;flex-shrink:0;background:#d9e8ec;color:#315d70;font-size:22px;font-weight:bold}.move-badge{display:inline-block;color:#315d70;font-size:9px;letter-spacing:1.4px;font-weight:800}.move-content h2{font-size:19px;line-height:1.2;letter-spacing:-.3px;margin:5px 0}.move-content p{font-size:12px;color:#47626c;margin:5px 0 0;line-height:1.45}.move-panel.good{background:#eaf6ec;border-color:#b8d6bf;border-left-color:#27834c}.move-panel.good .move-icon{color:#196c39;background:#ccebd4}.move-panel.good .move-badge{color:#196c39}.move-panel.bad{background:#fff0ed;border-color:#e6bbb4;border-left-color:#b13f35}.move-panel.bad .move-icon{color:#9f3129;background:#f8d5ce}.move-panel.bad .move-badge{color:#9f3129}@media(max-width:760px){.move-panel{padding:13px;min-height:130px}.move-content h2{font-size:17px}.move-top .eyebrow{font-size:9px}.move-top button{font-size:9px}.move-content{gap:9px}}

.style-controls{margin-top:12px;padding:10px;background:#f0f5f0;border:1px solid var(--line);border-radius:8px}.style-controls summary{color:var(--teal);font-size:12px}.style-controls label{margin-top:9px}.style-brush{display:grid;grid-template-columns:55px 1fr;gap:8px}.style-brush input[type=color]{height:37px;width:100%;padding:3px}.style-brush select{padding:9px 5px;font-size:11px}#gameMode{width:auto;max-width:135px;padding:7px;font-size:10px}.starter-row+.wide{background:#edf0fb;border-color:#b7c6e6}@media(max-width:760px){.builder .style-controls,.builder #bounceStarter{grid-column:1/-1}.stage-bar{flex-wrap:wrap}#gameMode{max-width:110px}}

.tool[data-tile="X"] span,.tool[data-tile="R"] span,.tool[data-tile="T"] span{width:25px;height:25px;margin:0 auto 5px;display:grid;place-items:center;background:#458ae6;color:white;font-size:17px;border:2px solid white;outline:1px solid #458ae6;border-radius:2px}.tool[data-tile="R"] span{border-color:#e9b949}.tool[data-tile="T"] span{background:#133d72;border-color:#e9b949;border-radius:5px}

#backgroundColor{height:40px;padding:3px}#scenery{width:auto}#fullscreen[hidden]{display:none}#playStage:fullscreen,#playStage.expanded{background:#101e2a;width:100vw;height:100dvh;padding:10px;display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow:auto}#playStage.expanded{position:fixed;inset:0;z-index:9999}body.expanded-play{overflow:hidden}#playStage:fullscreen .move-panel,#playStage.expanded .move-panel{min-height:0;margin:0;padding:7px 12px;flex-shrink:0}#playStage:fullscreen .move-top,#playStage.expanded .move-top{margin-bottom:2px}#playStage:fullscreen .move-content,#playStage.expanded .move-content{min-height:0}#playStage:fullscreen .move-content h2,#playStage.expanded .move-content h2{font-size:15px;margin:2px 0}#playStage:fullscreen .move-content p,#playStage.expanded .move-content p{margin:0;font-size:11px}#playStage:fullscreen .move-icon,#playStage.expanded .move-icon{width:28px;height:28px;font-size:17px}#playStage:fullscreen .stage-bar,#playStage.expanded .stage-bar{padding:5px 10px;flex-shrink:0}#playStage:fullscreen .canvas-wrap,#playStage.expanded .canvas-wrap{flex:1;min-height:100px;background:#101e2a;display:flex;align-items:center;justify-content:center}#playStage:fullscreen #game,#playStage.expanded #game{width:100%;height:100%;object-fit:contain}#playStage:fullscreen .stage-footer,#playStage.expanded .stage-footer{padding:5px 10px;flex-shrink:0}#playStage:fullscreen .touch-controls,#playStage.expanded .touch-controls{margin:0;flex-shrink:0}#playStage:fullscreen #gameMode,#playStage.expanded #gameMode{display:none}

.stage-actions{flex-wrap:wrap;justify-content:flex-end}#screenshot{white-space:nowrap}

.arcade-dialog{width:min(1050px,96vw);max-width:1050px;max-height:92dvh;padding:24px}.arcade-heading,.arcade-room-top,.arcade-play-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.arcade-heading h2{margin:6px 0;font-size:30px}.arcade-message{background:#eaf6ec;padding:12px;border-radius:8px;color:#145d37;line-height:1.5}.arcade-message.error{background:#fff0ed;color:#9f3129}.arcade-lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.arcade-box{padding:18px;border:1px solid var(--line);border-radius:12px;background:#f7faf6}.arcade-box h3{margin:0 0 12px}.arcade-box form{display:block}.arcade-box form button{margin-top:12px}.arcade-box label{margin-top:12px}.arcade-resume{display:flex;gap:10px;margin:12px 0}.arcade-room-top h3{font-size:24px;margin:14px 0 5px}.arcade-room-top p{margin:6px 0}#arcadeClassCode{letter-spacing:2px;font-family:monospace;font-size:18px}.arcade-room-actions{display:flex;gap:10px;margin:16px 0}.arcade-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.arcade-game{border:1px solid var(--line);border-radius:12px;padding:16px;overflow-wrap:anywhere;background:#fff}.arcade-game h3{font-size:19px;margin:10px 0 5px}.arcade-game p{font-size:12px;margin:6px 0}.arcade-game-icon{font-size:30px;background:#e7f2df;border-radius:9px;padding:13px}.arcade-card-actions{display:flex;gap:7px;flex-wrap:wrap}.arcade-card-actions button{font-size:12px;padding:9px}.arcade-card-actions select{font-size:11px;padding:7px}.arcade-report{background:#fff0dc;padding:10px;border-radius:7px;color:#734d13}.arcade-key{padding:12px;border:1px solid #e5c788;background:#fff8e7;border-radius:9px}.arcade-key input{font-family:monospace;font-size:12px}.arcade-key button{margin-top:8px}.arcade-empty{grid-column:1/-1;padding:28px;background:#edf4eb;border-radius:10px;text-align:center}#arcadePlayDialog{width:98vw;max-width:none;height:96dvh;max-height:none;padding:8px;overflow:hidden}#arcadePlayDialog[open]{display:flex;flex-direction:column}.arcade-play-heading{padding:5px 8px}#arcadePlayer{border:0;flex:1;width:100%;min-height:0}.play-only #arcadeOpen,.play-only #arcadeDialog,.play-only #arcadePlayDialog{display:none}#arcadeDialog [hidden]{display:none!important}@media(max-width:760px){.arcade-lobby-grid,.arcade-games{grid-template-columns:1fr}.arcade-dialog{padding:16px}.arcade-room-top{align-items:flex-start;flex-direction:column}.header-actions{gap:6px}.header-actions button{font-size:11px;padding:8px}}

#arcadeBanner{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px;margin-bottom:24px;background:#dcefd9;border:2px solid #71a381;border-radius:12px}#arcadeBanner strong{font-size:21px;color:#145941}#arcadeBanner p{margin:6px 0 0;color:#36594b}#arcadeBanner button{font-size:16px;padding:14px 22px}.play-only #arcadeBanner{display:none}@media(max-width:760px){#arcadeBanner{flex-direction:column;align-items:stretch}#arcadeBanner button{width:100%}}

.arcade-share-code{padding:14px 16px;background:#eaf5e8;border:1px solid #bdd6b9;border-radius:10px;display:grid;gap:6px}.arcade-share-code label{margin-top:4px}.arcade-copy-row{display:flex;align-items:center;gap:8px}.arcade-copy-row input{min-width:0}.arcade-copy-row button{white-space:nowrap;font-size:12px}#shareClassCode{font-family:monospace;letter-spacing:2px;font-weight:bold;font-size:18px;max-width:230px}#shareJoinLink{font-size:12px}.arcade-share-code .hint{margin:6px 0}#classCodeDialog{width:min(950px,96vw);max-width:950px;text-align:center;padding:35px}#largeClassCode{display:block;font-family:monospace;font-size:clamp(30px,7vw,82px);letter-spacing:4px;background:#dcefd9;padding:32px 12px;border-radius:12px;color:#145941}#classCodeDialog h2{font-size:32px}.play-only #classCodeDialog{display:none}@media(max-width:760px){.arcade-copy-row{flex-wrap:wrap}.arcade-copy-row input{flex:1;min-width:150px}.arcade-copy-row button{flex:1}}

.change-teacher-key{display:block;border-top:1px solid #e5c788;margin-top:16px;padding-top:6px}.change-teacher-key input{max-width:100%;font-family:Arial!important}.change-teacher-key h3{margin-bottom:6px}

.view-picker{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.view-picker select{max-width:210px}.stage-bar{flex-wrap:wrap}

/* Usability polish: give the game priority and keep existing controls readable. */
main{padding-top:22px;max-width:1640px}.intro{margin-bottom:20px;gap:18px}.intro h1{font-size:clamp(28px,3vw,38px);margin:5px 0 8px}.intro p{font-size:13px}
#arcadeBanner{padding:12px 18px;margin-bottom:20px;border-width:1px}#arcadeBanner strong{font-size:17px}#arcadeBanner p{font-size:12px;margin:4px 0 0}#arcadeBanner button{font-size:13px;padding:11px 16px}
.workspace{grid-template-columns:280px minmax(0,1fr);gap:18px}.builder{grid-row:1/span 2;padding:18px}.stage-column{grid-column:2;grid-row:1}.right-panel{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;padding:18px}.right-panel>.eyebrow,.right-panel>h2,.right-panel>.divider{display:none}.right-panel .mission{margin:0}.right-panel label,.right-panel textarea,.right-panel .share-card,.right-panel #saveStatus{grid-column:1/-1;grid-row:auto}.right-panel label{margin:10px 0 0}.right-panel .share-card{margin:0}.right-panel #saveStatus{margin:0}.share-card small{margin-top:9px}.mission strong{font-size:13px}.mission p{font-size:12px}
.builder label{font-size:12px}.builder .hint{font-size:12px}.starter-row button{font-size:12px;min-height:42px}.wide{min-height:40px}.tools,.builder .tools{display:block}.tool-group+.tool-group{margin-top:14px}.tool-group h3{font-size:11px;letter-spacing:.3px;color:var(--muted);margin:0 0 7px}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tool{position:relative;min-height:63px;font-size:11px;line-height:1.2;padding:9px 3px;overflow-wrap:normal}.tool span{font-size:21px}.tool.selected{box-shadow:inset 0 0 0 1px #32865f}.tool.selected:after{content:'✓';position:absolute;right:4px;top:2px;font-size:11px;color:#196c39}.tool-help{font-size:12px;min-height:70px;margin-top:12px;background:#edf5f2;border:1px solid #d2e5db}.row{gap:7px;flex-wrap:wrap}.row label,.row button{font-size:12px}.row button{min-height:36px}.row select{width:54px;min-height:36px;font-size:12px}.sprite-preview{width:62px;height:70px}.sprite-preview canvas{width:60px;height:68px}.player-card strong{font-size:13px}
.move-panel{min-height:108px;padding:12px 16px;margin-bottom:10px}.move-top{margin-bottom:6px}.move-content{min-height:54px}.move-content h2{font-size:18px}.move-content p{font-size:12px}.stage-bar{gap:10px;padding:12px;align-items:center}.stage-bar>div:first-child{flex:1 1 140px}.view-picker,.mode-picker{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:11px;color:var(--muted)}.view-picker select,#gameMode{font-size:12px;width:auto;max-width:215px;min-height:36px;padding:7px 9px;color:var(--navy)}.stage-actions{width:100%;justify-content:flex-end;gap:8px}.stage-actions button{font-size:12px;min-height:40px;padding:10px 13px}#play{min-width:140px}.stage-footer{font-size:12px;line-height:1.5;flex-wrap:wrap;gap:6px 15px}.keyboard-hint{white-space:nowrap}kbd{font-size:11px}.touch-controls button{min-width:54px;min-height:40px}.command-panel{padding:18px}.chips button{font-size:12px;padding:9px 11px}.command-heading button{font-size:12px}.command-panel input{font-size:14px;min-height:44px}#feedback{min-height:20px;line-height:1.5}#feedback.feedback-error{color:#a0312c;background:#fff0ed;border-left:3px solid #b13f35;padding:9px 11px;border-radius:4px}#commandList{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}#commandList code{overflow-wrap:anywhere}button:disabled:hover{background:#fff;transform:none}.arcade-room-actions{flex-wrap:wrap}
body.play-only .stage-column{display:block}body.play-only .workspace{display:block}#playStage:fullscreen .stage-actions,#playStage.expanded .stage-actions{width:auto}#playStage:fullscreen .mode-picker,#playStage.expanded .mode-picker{display:none}
@media(max-width:1000px){.workspace{grid-template-columns:250px minmax(0,1fr)}.builder{padding:14px}.stage-bar>div:first-child{flex-basis:100%}.stage-actions{justify-content:flex-start}.stage-actions button{padding:9px 10px}.right-panel{gap:12px}.right-panel .mission{grid-column:1/-1}.keyboard-hint{white-space:normal}}
@media(max-width:760px){.workspace{display:flex;gap:16px}.builder{display:block}.builder .section-heading{margin-top:16px}.builder>.section-heading:first-child{margin-top:0}.builder .player-card{display:flex}.builder label{margin:12px 0 6px}.builder .tools{display:block}.tool-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.tool{font-size:11px;min-height:62px}.right-panel{display:grid;grid-template-columns:1fr}.right-panel .mission,.right-panel label,.right-panel textarea,.right-panel .share-card,.right-panel #saveStatus{grid-column:1}.stage-bar{gap:9px}.view-picker select{max-width:190px}.stage-actions{width:100%}.stage-actions button{flex:1 1 auto}#play{flex:2 1 140px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.header-actions button{min-height:36px}header .brand{font-size:15px}.project-actions button{min-height:42px}#arcadeBanner{gap:8px;padding:12px}.command-heading{gap:10px}.command-heading h2{font-size:18px}.command-panel form{flex-wrap:wrap}.command-panel form input{flex:1 1 180px}.command-panel form button{min-height:44px}.move-panel{min-height:108px}.intro{margin-bottom:16px}}
@media(max-width:400px){.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.brand small{letter-spacing:1px}.header-actions{gap:4px}.view-picker select,#gameMode{max-width:160px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

/* Kid-first studio appearance. Existing tools and gameplay, clearer first action. */
:root{--navy:#182847;--teal:#1765c5;--mint:#e2efff;--paper:#eff5ff;--line:#d4e1f1;--muted:#536582;--build:#2469cb;--play:#16764d;--custom:#7543bd;--sun:#ffda70}
body{background:radial-gradient(ellipse at 8% 0%,#e1f9f6,transparent 46%),radial-gradient(ellipse at 95% 15%,#eee5ff,transparent 42%),var(--paper)}header{background:#182847;padding:16px 3%;border-bottom:3px solid #6cd6cb}.mark{background:#ffda70;color:#182847;box-shadow:0 3px 0 #ae8526}.brand small{color:#c4d7f6}.header-actions button:hover{background:#30476b;color:#fff}main{padding-top:20px}.panel{border-radius:17px;box-shadow:0 4px 0 #c9d9ee55}.eyebrow{color:#285caa}
.studio-welcome{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 180px auto;align-items:center;gap:20px;padding:22px 26px;background:#fff;border:1px solid #cddcf0;border-radius:22px;box-shadow:0 5px 0 #ccdcf16b;overflow:hidden;margin-bottom:16px}.studio-welcome:before{content:'';position:absolute;right:200px;top:-90px;width:280px;height:280px;background:#f1edff;border-radius:50%;pointer-events:none}.welcome-copy,.welcome-bob,.project-actions{position:relative}.studio-welcome h1{font-size:clamp(29px,3vw,42px);line-height:1.08;letter-spacing:-1.2px;margin:8px 0 10px}.studio-welcome h1 em{color:#305fca}.studio-welcome p{font-size:14px;color:#536582}.welcome-actions{display:flex;align-items:center;gap:16px;margin-top:16px}.welcome-actions #firstHint{font-size:12px;max-width:250px;line-height:1.5}.welcome-actions #quickPlay{white-space:nowrap;padding:14px 22px;border-radius:12px;font-size:16px;background:var(--play);border-color:var(--play);box-shadow:0 4px 0 #0a4f33;min-height:50px}.welcome-actions #quickPlay:hover{background:#105f3c;box-shadow:0 4px 0 #073e28}.welcome-bob{align-self:stretch;display:grid;align-items:center;justify-items:center;min-height:176px}.welcome-bob canvas{width:145px;height:161px;object-fit:contain;position:relative;z-index:1;touch-action:auto}.welcome-bob:before{content:'';position:absolute;width:146px;height:146px;background:#fff0b2;border:2px solid #ffe08a;border-radius:50%;top:15px}.bob-orbit{position:absolute;right:0;top:12px;color:#9c67ce;font-size:30px;transform:rotate(10deg)}.bob-sticker{position:absolute;bottom:0;z-index:2;font-size:9px;font-weight:800;letter-spacing:.8px;background:#ffda70;border:1px solid #e7b948;color:#483719;padding:7px 10px;border-radius:8px;transform:rotate(-3deg)}.studio-welcome .project-actions{display:flex;flex-direction:column;align-self:center;gap:9px}.project-actions button{min-height:40px;font-size:12px;border-color:#c5d6eb}.project-actions #save{background:#eaf2ff;border-color:#b9cfee;color:#23579d}
#arcadeBanner{background:#f3efff;border-color:#d4c6ed;border-radius:14px;padding:11px 17px}#arcadeBanner strong{color:#5c3293;font-size:16px}#arcadeBanner p{color:#69557f;font-size:12px}#arcadeBanner button{background:white;color:#62369c;border-color:#cdb7eb;min-height:38px;font-size:12px}#arcadeBanner button:hover{background:#e8defa}
.builder{border-top:5px solid var(--build)}.section-heading h2{font-size:17px}.step{width:28px;height:28px;display:grid;place-items:center;background:#e7f0ff;color:#235eb0;font-size:16px;border-radius:8px}.builder .sub:last-of-type .step{background:#f0e7fc;color:#7543bd}.tool-group{border:1px solid #d7e3f3;border-radius:11px;padding:9px;background:#f7faff}.tool-group+.tool-group{margin-top:9px}.tool-group h3,.tool-group summary{font-size:12px;font-weight:700;color:#2f568f;margin:0;line-height:1.4}.tool-group h3{margin-bottom:8px}.tool-group summary{padding:3px 0;cursor:pointer;min-height:27px}.tool-group[open] summary{margin-bottom:9px}.tool-grid{gap:6px}.tool{background:white;border-radius:9px;border-color:#d8e2f0;font-size:11px;min-height:62px;color:#243e64}.tool:hover{background:#edf4ff;border-color:#9ab8e4}.tool.selected{background:#deecff!important;border-color:#2c6ac1!important;box-shadow:inset 0 0 0 1px #2c6ac1}.tool.selected:after{color:#2055a0}.tool[data-tile="C"] span{color:#b57903}.tool[data-tile="F"] span{color:#228953}.tool[data-tile="^"] span,.tool[data-tile="~"] span,.tool[data-tile="E"] span{color:#ae4747}.tool-help{background:#edf4ff;border-color:#c7daf3;color:#3a5274}.style-controls{background:#f5effe;border-color:#e0d2f2}.style-controls summary{color:#6c3faa}.style-controls .wide{background:#fff;border-color:#d9c5ee;color:#653b98}#costume{border-color:#c9afe9;background:#fcf9ff}.sprite-preview{background:#f0e8ff;border:1px solid #dcccf3}.starter-row button{background:#f5f8fe}.starter-row button.selected,#bounceStarter.selected{background:#e4efff!important;border-color:#4b7bc1!important}.bob-note{font-size:11px!important}
#playStage{scroll-margin-top:12px}.move-panel{border-radius:14px;background:#edf4ff;border-color:#c6d8ef;border-left-color:#5278bf}.move-panel.good{background:#eaf8ef;border-color:#b1dbbf;border-left-color:#2a8a50}.move-panel.bad{background:#fff2ee;border-color:#eac1b4;border-left-color:#be624b}.move-badge{font-size:10px}.stage-bar{border-color:#cad8ec;border-radius:14px 14px 0 0;background:#fff}.stage-actions #play{background:#16764d;border-color:#16764d;box-shadow:0 3px 0 #0a4f33;border-radius:10px;font-size:14px}.stage-actions #play:hover{background:#105f3c}.stage-actions #fullscreen{background:#e9f1ff;color:#245ba9;border-color:#bfd2ee}.canvas-wrap{border-left:1px solid #cad8ec;border-right:1px solid #cad8ec}.stage-footer{border-color:#cad8ec;background:#fafcff}.touch-controls button{border-color:#c2d3eb;background:#fff;box-shadow:0 2px 0 #c5d4e8}.touch-controls button:last-child{background:#e7f6ec;color:#17653b;border-color:#b5d9c2}.command-panel{border-top:4px solid #7c56c6;border-radius:16px}.command-panel .eyebrow{color:#7141af}.command-heading h2{font-size:23px}.command-panel form .primary{background:#7042b5;border-color:#7042b5;border-radius:9px}.command-panel form .primary:hover{background:#5b3298}.chips button{background:#f4effd;border-color:#e1d4f1;color:#623d92}.chips button:hover{background:#e9ddf9}#feedback{color:#4f5e7c}.right-panel{border-top:4px solid #efc45c}.mission>span{background:#fff0ba;color:#78520b;border:1px solid #f1d580}.share-card{background:#e9f7f2;border:1px solid #c5e2d6}.share-card .eyebrow{color:#226849}#overlay{background:#14294aeb}#overlay h2{color:#ffdf7b;font-size:clamp(27px,3vw,42px)}#overlay .primary{background:#ffda70;color:#3c321a;border-color:#ffda70;box-shadow:0 3px 0 #b78c26;font-size:15px;padding:13px 22px}.arcade-game-icon{background:#eae1fa}.arcade-box{background:#f8faff;border-color:#d3dff0}input:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,canvas:focus-visible{outline-color:#a46b08}.play-only .studio-welcome{display:none}
@media(max-width:1150px){.studio-welcome{grid-template-columns:minmax(0,1fr) 140px}.studio-welcome .project-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:8px}.welcome-bob canvas{width:130px;height:144px}.welcome-bob:before{width:125px;height:125px}.studio-welcome{padding:19px 22px;gap:12px}.welcome-actions{margin-top:12px}.welcome-actions #firstHint{font-size:11px}}
@media(max-width:760px){.studio-welcome{grid-template-columns:minmax(0,1fr) 100px;padding:18px 15px;gap:8px}.studio-welcome h1{font-size:30px}.studio-welcome .eyebrow{font-size:9px}.studio-welcome p{font-size:12px}.welcome-bob{min-height:165px}.welcome-bob canvas{width:105px;height:117px}.welcome-bob:before{width:100px;height:100px;top:28px}.bob-sticker{font-size:7px;padding:6px;bottom:12px}.bob-orbit{font-size:21px}.welcome-actions{display:block}.welcome-actions #quickPlay{padding:12px 17px;font-size:14px;min-height:45px}.welcome-actions #firstHint{margin:9px 0 0}.studio-welcome .project-actions{margin:6px 0 0}.workspace .stage-column{order:1}.workspace .builder{order:2}.workspace .right-panel{order:3}.builder .tool-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.tool-group{padding:10px}.command-heading h2{font-size:20px}#arcadeBanner{flex-direction:row;align-items:center;gap:10px}#arcadeBanner button{width:auto;font-size:11px;padding:10px;white-space:nowrap}#arcadeBanner p{font-size:11px}#arcadeBanner strong{font-size:14px}}
@media(max-width:400px){.studio-welcome{grid-template-columns:minmax(0,1fr) 80px}.studio-welcome h1{font-size:26px}.welcome-bob canvas{width:88px;height:98px}.welcome-bob:before{width:78px;height:78px;top:35px}.bob-sticker{font-size:6px}.builder .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

#resumeProject[hidden]{display:none}#resumeProject{background:#fff2c7;border-color:#e8c66b;color:#65480d}.studio-welcome .project-actions{max-width:205px;white-space:normal}

.palette-label{font-size:12px;font-weight:700;color:#563a80;margin:12px 0 7px}.color-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.color-swatch{position:relative;min-height:52px;padding:5px 3px;border:1px solid #cfbddf;border-radius:8px;background:#fff;color:#26394f;display:flex;flex-direction:column;align-items:center;gap:4px}.color-swatch:hover{background:#f0e7fb;border-color:#8659b8}.color-chip{display:block;width:100%;height:25px;border-radius:4px;border:1px solid #172c4638}.color-name{font-size:10px;line-height:1.2}.color-swatch.is-chosen{border:2px solid #653ba1;padding:4px 2px;background:#f2eafb;box-shadow:0 0 0 1px #653ba1}.color-swatch.is-chosen:after{content:'✓';position:absolute;right:5px;top:5px;background:#fff;color:#222f43;font-size:12px;font-weight:bold;line-height:18px;width:18px;height:18px;border-radius:50%;box-shadow:0 1px 3px #122a3540}@media(max-width:760px){.color-palette{grid-template-columns:repeat(6,minmax(0,1fr))}.color-swatch{min-height:56px}.color-chip{height:28px}.color-name{font-size:11px}}@media(max-width:400px){.color-palette{grid-template-columns:repeat(4,minmax(0,1fr))}}

.nature-starters{margin-top:12px;background:#edf7ef;border:1px solid #bcd9bf;border-radius:10px;padding:10px}.nature-starters summary{color:#246741;font-size:12px}.nature-starters button{background:#fff;border-color:#bbd6c6;color:#245e44}.touch-controls{flex-wrap:wrap}.touch-controls button{font-size:12px;min-height:42px}.tool[data-tile="="] span,.tool[data-tile="V"] span{color:#197ca6}.tool[data-tile="Y"] span,.tool[data-tile="J"] span{color:#37884b}.tool[data-tile="U"] span{color:#579ebf}.builder .nature-starters .hint{font-size:11px}

.touch-controls button[aria-pressed=true]{background:#eee3ff;border:2px solid #8053bf;color:#573486}.touch-controls button[data-key=KeyF]{background:#e5f6ef;color:#176d4c}.tool[data-tile=M] span,.tool[data-tile=N] span{color:#7752bb}

.custom-panel{margin-top:12px;padding:10px;border:1px solid #d8caef;border-radius:10px;background:#faf7ff}.custom-panel summary{font-size:12px;color:#634292}.custom-panel button,.custom-panel select{margin-top:8px}.custom-panel input[type=checkbox]{width:auto}.custom-panel a{font-size:12px;color:#634292}

.music-mood{font-weight:700;color:#68478e;font-size:11px}.stage-footer .music-mood{flex-basis:100%}

.landform-panel{padding:10px;border:1px solid #bdd6b8;border-radius:10px;background:#f1f7ec;margin:10px 0}.landform-panel summary{font-size:12px;color:#42643b}.landform-brushes{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:10px}.landform-brushes button{font-size:11px;padding:8px 4px}.landform-brushes button[aria-pressed=true]{background:#dceacb;border:2px solid #5c7c40}.landform-panel input[type=checkbox]{width:auto}.landform-panel button.wide{font-size:11px;margin:7px 0}.landform-panel details summary{font-size:11px}
.geo-dialog{width:min(1200px,96vw);max-width:1200px;max-height:94vh;overflow:auto;padding:24px;background:#f3f8fc;color:#20374d}.geo-dialog::backdrop{background:#162c49b8}.geo-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px}.geo-controls{padding:16px;background:white;border-radius:18px;border:1px solid #cbdce8}.geo-controls label{display:block;margin-top:12px}.geo-controls select{width:100%;margin-bottom:8px}.geo-controls h3{margin:18px 0 8px}.geo-tools,.geo-answers,.geo-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.geo-tools button[aria-pressed=true]{background:#215e8e;color:white}.geo-coach{background:#e0edff;border:2px solid #93b6e5;border-radius:18px;padding:16px}.geo-coach p{font-size:1.1rem;line-height:1.5;margin:10px 0}.geo-dialog canvas{width:100%;height:auto;border:3px solid #6889a1;border-radius:12px;touch-action:none;display:block}.geo-dialog canvas[hidden]{display:none}.geo-legend{font-size:.85rem;margin:8px 0}.geo-dialog #geoProcessNote{background:#fff5d9;padding:12px;border-radius:12px;line-height:1.5}.geo-dialog button{min-height:42px}.geo-dialog #geoExample{opacity:.85;margin-top:12px}.geo-dialog a{color:#145a94}@media(max-width:760px){.geo-layout{grid-template-columns:1fr}.geo-dialog{padding:12px}.geo-controls{display:block}.geo-controls h3{margin-top:10px}}

.geo-dialog [hidden]{display:none!important}
.geo-fixes{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.geo-fixes button{background:#fff3b8;border:2px solid #cfac23;flex:1;min-width:170px;text-align:left}.geo-scaffold{padding:10px;background:#e4f4e5;border-radius:10px;line-height:1.4}.geo-game-panel{background:#e5f3ef;border:2px solid #74a89b;border-radius:16px;padding:16px;margin-top:14px}.geo-game-panel label{display:block;margin:12px 0 6px}.geo-game-panel select{max-width:100%;min-height:40px}.geo-game-panel input[type=range]{width:100%}#geoPreviewGame{margin-top:14px}#geoUseGame:disabled{opacity:.5}
/* Compact student studio: color, words and star labels work together. */
header{padding:12px 3%}.project-dock{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:minmax(170px,1fr) repeat(3,minmax(135px,190px)) auto;align-items:stretch;gap:10px;padding:10px 3%;background:#eef5ff;border-bottom:2px solid #ccdcef;box-shadow:0 4px 12px #1b3d6820}.dock-title{display:flex;flex-direction:column;justify-content:center;gap:5px}.dock-title strong{font-size:12px;letter-spacing:1px}.dock-title small{font-size:12px;color:#425a76;line-height:1.35;max-width:270px}.project-dock button{padding:9px 12px;border-radius:12px;min-height:54px;text-align:left}.project-dock button strong{display:block;font-size:15px}.project-dock button small{display:block;font-size:11px;margin-top:4px;font-weight:400}.project-dock .dock-save{background:#17633f;color:white;border-color:#17633f;box-shadow:0 3px 0 #0f442b}.project-dock .dock-open{background:#205caa;color:white;border-color:#205caa}.project-dock .dock-share{background:#713dab;color:white;border-color:#713dab}.project-dock .dock-help{font-size:12px;text-align:center;background:white}.save-nudge{box-shadow:0 0 0 3px #f1c950,0 3px 0 #0f442b!important}.studio-welcome{grid-template-columns:minmax(0,1fr) 100px auto;padding:12px 20px;gap:14px;margin-bottom:10px;border-radius:16px;box-shadow:none}.studio-welcome:before,.welcome-bob:before,.bob-orbit,.bob-sticker{display:none}.studio-welcome h1{font-size:26px;line-height:1.1;margin:3px 0 5px;letter-spacing:-.6px}.studio-welcome h1 br{display:none}.studio-welcome .eyebrow{font-size:9px}.studio-welcome p{font-size:12px}.welcome-actions{margin-top:8px;gap:12px}.welcome-actions #quickPlay{min-height:40px;font-size:13px;padding:9px 14px;box-shadow:none}.welcome-actions #firstHint{font-size:11px;max-width:330px}.welcome-bob{min-height:104px;align-self:center}.welcome-bob canvas{width:88px;height:98px}.studio-welcome .project-actions{display:block;grid-column:auto}.project-actions #resumeProject{max-width:175px;white-space:normal;font-size:12px;min-height:44px}main{padding-top:12px}#arcadeBanner{padding:8px 14px;margin-bottom:12px;gap:12px}#arcadeBanner strong{font-size:13px}#arcadeBanner p{display:inline;margin:0 0 0 8px;font-size:12px}#arcadeBanner button{padding:7px 12px;font-size:12px;min-height:34px}.workspace{grid-template-columns:300px minmax(0,1fr);gap:14px}.builder{padding:12px;position:sticky;top:96px;max-height:calc(100vh - 112px);overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;grid-row:1}.builder>.section-heading{margin:5px 0 8px}.builder>.sub{margin-top:14px}.builder>label{margin-top:7px}.builder>input{padding:9px}.studio-section,.builder>.custom-panel,.tool-group{border:1px solid #ccdaea;border-radius:11px;margin:8px 0;padding:0!important;overflow:hidden;background:#f8fbff}.studio-section>summary,.builder>.custom-panel>summary,.tool-group>summary{padding:11px 10px;min-height:42px;color:#273c58;font-size:12px;line-height:1.35;list-style-position:inside;background:#edf2fc}.skill-label,.choice-stars{font-size:10px;color:#72540f;white-space:nowrap}.skill-label{display:inline-block;margin-left:4px}.choice-stars{margin-left:7px;font-size:11px}.starters-section>summary{background:#e6efff}.player-section>summary{background:#f1e8fa}.style-controls>summary{background:#ffecca}.landform-panel>summary{background:#e0f2e8}.custom-panel>summary{background:#f1e8fa}.studio-section>:not(summary),.builder>.custom-panel>:not(summary){margin-left:10px;margin-right:10px}.studio-section>.wide,.custom-panel>.wide{width:calc(100% - 20px);margin-bottom:8px}.studio-section>.starter-row{margin-top:8px}.studio-section>.hint{font-size:11px}.tool-group+.tool-group{margin-top:7px}.category-green{--cat:#3c8057;--wash:#e3f3e7}.category-teal{--cat:#237b83;--wash:#dff3f1}.category-purple{--cat:#7f50aa;--wash:#f0e7f9}.category-gold{--cat:#aa7914;--wash:#fff3cc}.category-coral{--cat:#b65c48;--wash:#ffe9e2}.category-blue{--cat:#3c69b3;--wash:#e4edff}.tool-group>summary{border-left:5px solid var(--cat);background:var(--wash)}.tool-grid,.builder .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px}.tool{display:flex;align-items:center;gap:6px;text-align:left;min-height:44px;padding:7px 6px;font-size:11px;line-height:1.2;background:white;border-color:#c9d9e4;border-radius:8px}.tool .tool-icon{font-size:18px;margin:0;flex:0 0 23px;text-align:center}.tool .tool-name{font-size:11px;margin:0;display:block;flex:1}.tool .tool-stars{font-size:9px;margin:0;color:#79590b;align-self:flex-start}.tool.selected{background:var(--wash)!important;border-color:var(--cat)!important;box-shadow:inset 0 0 0 1px var(--cat)}.tool.selected:after{display:none}.inline-tool-help{grid-column:1/-1;font-size:12px;min-height:0;line-height:1.4;margin:0;padding:9px 10px;border-left:4px solid var(--cat);background:var(--wash);border-radius:6px;color:#263e52}.builder .row{padding:7px 0;margin:4px 0}.builder .row button{min-height:38px}.studio-coach{display:flex;align-items:center;gap:12px;border:1px solid #b8cced;background:#edf4ff;border-radius:14px;padding:10px 14px;margin-bottom:10px}.studio-coach canvas{width:54px;height:65px;flex:0 0 54px;touch-action:auto}.coach-copy{min-width:0;flex:1}.coach-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.coach-top>strong{font-size:10px;letter-spacing:.7px;color:#365879}.skill-badge{font-size:11px;color:#704e00;background:#fff0b0;padding:4px 8px;border-radius:20px}.studio-coach p{font-size:13px;line-height:1.4;margin:6px 0}.coach-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.coach-actions>button,.skill-guide>summary{font-size:11px;min-height:32px;padding:6px 9px}.skill-guide{position:relative}.skill-guide[open]{flex-basis:100%;padding:6px;background:white;border-radius:8px}.skill-guide label{font-size:12px}.skill-guide input,.project-help-dialog input{width:auto}.skill-guide p{font-size:12px}.move-panel{min-height:0}.move-panel .move-top{display:none}.move-content{min-height:0}.move-content h2{font-size:15px}.move-content p{margin:3px 0;font-size:12px}.move-icon{font-size:22px}.move-panel{padding:9px 12px}.stage-bar{padding:9px;gap:7px}.stage-actions{width:auto}.stage-actions button{min-height:38px;font-size:11px;padding:8px 9px}.stage-bar>div:first-child{flex-basis:auto}.view-picker select,#gameMode{font-size:11px;max-width:170px}.project-help-dialog{width:min(900px,94vw);max-width:900px;border-radius:20px;padding:24px}.project-help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.project-help-grid section{padding:14px;border-radius:14px;background:#e7f3e9;border-top:5px solid #17633f}.project-help-grid section:nth-child(2){background:#e6efff;border-color:#205caa}.project-help-grid section:nth-child(3){background:#f2e9fb;border-color:#713dab}.project-help-grid h3{font-size:17px;margin:2px 0 10px}.project-help-grid p{font-size:14px;line-height:1.5}.project-help-grid button{min-height:42px;margin:5px 0;width:100%}.play-only .project-dock,.play-only .studio-coach,.play-only #projectHelpDialog{display:none!important}
@media(max-width:1100px){.project-dock{grid-template-columns:minmax(100px,1fr) repeat(3,minmax(120px,1fr)) 55px;gap:7px;padding:8px 2%}.project-dock button strong{font-size:13px}.project-dock button{padding:9px}.workspace{grid-template-columns:270px minmax(0,1fr)}.stage-actions{width:100%}.studio-welcome{grid-template-columns:1fr 80px auto}.studio-welcome h1{font-size:24px}.studio-welcome .project-actions{grid-column:auto}.welcome-bob{min-height:98px}.welcome-bob canvas{width:76px;height:84px}.header-actions{gap:10px}}
@media(max-width:760px){.project-dock{grid-template-columns:repeat(3,1fr) 46px;padding:8px;gap:5px}.dock-title{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.dock-title small{font-size:10px;max-width:none}.project-dock button{min-height:48px;padding:7px}.project-dock button strong{font-size:12px}.project-dock button small{font-size:10px}.studio-welcome{grid-template-columns:1fr 70px;padding:12px;gap:7px}.studio-welcome h1{font-size:22px}.studio-welcome .project-actions{grid-column:1/-1}.welcome-bob{min-height:84px}.welcome-bob canvas{width:70px;height:78px}.welcome-actions{display:flex;flex-wrap:wrap}.welcome-actions #firstHint{margin:0}.builder{position:static;max-height:none;overflow:visible;width:100%;grid-row:auto}.workspace{display:flex;flex-direction:column}.workspace .builder{order:2}.workspace .stage-column{order:1;width:100%}.tool-grid,.builder .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tool{min-height:46px}.project-help-grid{grid-template-columns:1fr}.studio-coach{gap:8px;padding:9px}.studio-coach canvas{width:42px;height:54px;flex-basis:42px}.studio-coach p{font-size:12px}.stage-bar{flex-wrap:wrap}.stage-actions{width:100%}#arcadeBanner p{display:none}.header-actions .tag{display:none}main{padding-left:12px;padding-right:12px}}
/* Put the playable canvas on the first screen. */
body:not(.play-only):not(.studio-playing) #movePanel{display:none}#arcadeBanner{display:none}.studio-welcome{padding:10px 18px}.studio-welcome .eyebrow,.studio-welcome .welcome-copy>p{display:none}.studio-welcome h1{font-size:24px;margin:0 0 5px}.welcome-bob{min-height:66px}.welcome-bob canvas{width:64px;height:70px}.welcome-actions{margin-top:5px}.studio-coach{padding:8px 12px}.studio-coach canvas{width:46px;height:56px;flex-basis:46px}.studio-coach p{margin:4px 0}.category-stars{float:right;font-size:10px;color:#74550a;margin-left:5px}.geo-tools button[data-geo-tool=water]{background:#e0f2fc;border-color:#2885b5}.geo-tools button[data-geo-tool=land]{background:#e4f3df;border-color:#4c8648}.geo-tools button[data-geo-tool=rock]{background:#eee8f5;border-color:#82708f}.geo-tools button[data-geo-tool=sediment]{background:#fff1cb;border-color:#b38c29}.geo-tools button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #254767;color:#183c54}@media(min-width:761px){.builder{max-height:calc(100vh - 290px)}}@media(max-width:760px){.studio-welcome h1{font-size:20px}.welcome-actions #firstHint{display:none}.welcome-bob{min-height:62px}.welcome-bob canvas{width:57px;height:63px}}
.skill-key{font-size:10px;color:#5b5077}.read-tool{display:inline-block;font-size:10px!important;min-height:28px;padding:4px 7px;margin:5px 0 0 7px;background:white}.read-directions{background:#e7efff;color:#20558b;min-height:40px;margin:0 0 14px}.studio-coach [hidden]{display:none!important}
.tool .tool-name{font-size:12px}.tool-group>summary,.studio-section>summary{font-size:13px}
/* ARCADE STUDIO — a game-making toy box, with the same working controls. */
:root{--navy:#25204c;--teal:#157b62;--paper:#ede9ff;--muted:#5b5480}body{background-color:#ece8ff;background-image:radial-gradient(circle at 12px 12px,#c9bdfc 2px,transparent 2px),linear-gradient(125deg,#e7edff,#f5e6ff);background-size:28px 28px,100% 100%;font-family:'Trebuchet MS',Arial,sans-serif;color:#29224c}button,summary{font-family:'Trebuchet MS',Arial,sans-serif}button{border-width:2px;font-weight:900;border-radius:12px}header{background:#352267;border-bottom:4px solid #8860dd;padding:10px 3%}.brand{font-weight:1000;letter-spacing:-.3px}.brand .mark{background:#ffda43;color:#44307b;border:3px solid #fff09e;box-shadow:3px 3px 0 #1c1540;transform:rotate(-5deg)}.brand small{color:#d4c3ff;letter-spacing:1.4px}.header-actions button{border:2px solid #9e7fe0;background:#493080;border-radius:12px;box-shadow:0 3px 0 #211547;color:white}.header-actions .tag{color:#ffdc63;letter-spacing:1px}.project-dock{background:#4b3185;border-bottom:4px solid #2e1c58;box-shadow:0 4px 0 #a98de13b;color:white;padding-top:9px;padding-bottom:10px}.dock-title strong{font-size:16px;font-weight:1000;letter-spacing:.3px}.dock-title small{color:#eee5ff;font-size:11px}.project-dock button{border:2px solid #ffffff70;box-shadow:0 4px 0 #211547;transition:transform .12s,filter .12s}.project-dock button:hover{filter:brightness(1.1);transform:translateY(-1px)}.project-dock button:active{transform:translateY(3px);box-shadow:0 1px 0 #211547}.project-dock button strong{font-size:16px}.project-dock .dock-save{background:#20a76f;border-color:#80f0bb;box-shadow:0 4px 0 #0d6943}.project-dock .dock-open{background:#257ad0;border-color:#89d8ff;box-shadow:0 4px 0 #174b8a}.project-dock .dock-share{background:#d3398e;border-color:#ff9ed2;box-shadow:0 4px 0 #8d1e5b}.project-dock .dock-help{background:#ffda54;border-color:#fff3a8;color:#423063}.studio-welcome{background:#fff1b2;border:3px solid #4d337d;border-bottom-width:6px;border-radius:22px;position:relative;overflow:visible;padding:12px 23px;margin-bottom:15px;box-shadow:5px 5px 0 #b8a3e957;grid-template-columns:minmax(0,1fr) 100px auto}.studio-welcome:before{display:block;position:absolute;content:'✦';color:#e19b19;background:none;font-size:43px;width:auto;height:auto;top:12px;right:170px;transform:rotate(15deg)}.studio-welcome .eyebrow{display:block;color:#8e4d16;font-size:10px;letter-spacing:1.2px;margin-bottom:3px}.studio-welcome h1{font-size:clamp(25px,2.5vw,35px);font-weight:1000;letter-spacing:-1px;line-height:1.05;color:#493077;text-shadow:2px 2px 0 #ffffff}.studio-welcome h1 em{color:#c73683}.studio-welcome h1 br{display:none}.welcome-bob{min-height:89px;transform:rotate(3deg)}.welcome-bob canvas{width:90px;height:100px;filter:drop-shadow(3px 4px 0 #b9985770)}.welcome-actions{margin-top:7px}.welcome-actions #quickPlay{background:#7041bb;border:2px solid #a77ae6;box-shadow:0 4px 0 #3c236d;font-size:14px;border-radius:12px;padding:8px 17px;min-height:38px}.welcome-actions #quickPlay:hover{background:#8b52d9;box-shadow:0 4px 0 #3c236d}.welcome-actions #firstHint{color:#594a73;font-size:11px}.workspace{gap:16px}.panel.builder{background:#fffdf7;border:3px solid #573488;border-top:7px solid #8a50cb;border-radius:18px;box-shadow:5px 5px 0 #baa6e657;padding:12px}.builder>.section-heading:first-child{background:#6b3caa;color:white;margin:-12px -12px 12px;padding:13px 12px;border-radius:9px 9px 0 0}.builder>.section-heading:first-child h2{font-size:17px;letter-spacing:.8px}.builder>.section-heading:first-child .step{background:#ffdf63;color:#512f7b;font-size:15px}.builder .section-heading.sub h2{font-size:16px;font-weight:1000;color:#5a367e}.builder>input{border:2px solid #d6c2ed;border-radius:10px;font-size:14px}.builder>.hint{color:#766087}.studio-section,.tool-group,.builder>.custom-panel{border:2px solid #c2a9dd;border-radius:12px;box-shadow:0 3px 0 #dbc9ed;margin:8px 0;background:#fffaf3}.studio-section>summary,.tool-group>summary,.builder>.custom-panel>summary{font-size:13px;font-weight:1000;min-height:44px;color:white;background:#8252b9;position:relative;padding:12px 9px;line-height:1.3}.tool-group>summary{border-left:0;background:var(--cat)}.category-green{--cat:#29965e;--wash:#e1f7c9}.category-teal{--cat:#168da0;--wash:#dcf8f5}.category-purple{--cat:#8650c4;--wash:#efe1ff}.category-gold{--cat:#b4770d;--wash:#fff1bc}.category-coral{--cat:#cc5b50;--wash:#ffe3d6}.category-blue{--cat:#3978bf;--wash:#e0edff}.category-icon{font-size:20px;display:inline-block;vertical-align:middle;margin-right:7px;filter:drop-shadow(1px 2px 0 #0003)}.category-stars{background:#ffffffea;color:#754319;padding:3px 5px;border-radius:7px;font-size:9px;float:right;letter-spacing:.3px}.starters-section>summary{background:#6551bc}.landform-panel>summary{background:#238578}.player-section>summary{background:#d34c91}.style-controls>summary{background:#bb731a}.custom-panel>summary{background:#8053b6}.skill-label{background:#fff0ab;color:#6a4214;padding:2px 5px;border-radius:6px;font-size:9px}.tool-grid,.builder .tool-grid{padding:8px;background:linear-gradient(#fffdf6,#f7f0ff);gap:7px}.tool{border:2px solid #d8c6e9;border-radius:10px;min-height:49px;background:white;box-shadow:0 3px 0 #d9c7eb;padding:6px;color:#40315b}.tool:hover{background:#fff5c6;border-color:#bd92df;transform:translateY(-1px)}.tool .tool-icon{flex-basis:31px;width:31px;height:34px;display:grid;place-items:center;font-size:25px;line-height:1}.tool-icon svg{display:block;width:32px;height:34px;filter:drop-shadow(1px 2px 0 #60527030)}.tool .tool-name{font-size:12px;font-weight:900;line-height:1.18}.tool .tool-stars{color:#a87305;font-size:9px;letter-spacing:-1px}.tool.selected{background:#fff0a9!important;border-color:#e4a920!important;box-shadow:0 3px 0 #b57900,inset 0 0 0 1px #fff8cf;transform:rotate(-1deg)}.inline-tool-help{border:2px dashed #c394d9;border-left:4px solid var(--cat);background:#fff8d8;color:#514069;border-radius:10px;padding:9px;line-height:1.45}.choice-stars{color:#875d07;background:#fff1a2;padding:2px 5px;border-radius:6px;font-size:10px}.starter-row button,.starters-section>.wide{border-color:#cbb0e8;background:#faf2ff;box-shadow:0 2px 0 #cab1dd;color:#57347c}.studio-coach{border:3px solid #b08add;border-radius:18px;background:#fcf7ff;box-shadow:0 3px 0 #d5bde9;gap:10px;padding:7px 13px}.studio-coach canvas{width:51px;height:62px;flex-basis:51px;filter:drop-shadow(2px 2px 0 #b7a3cd70)}.coach-top>strong{font-size:11px;color:#7e4499;letter-spacing:.6px}.studio-coach p{color:#4b365f;font-size:13px;font-weight:700}.skill-key{font-size:9px;color:#7b6790}.skill-badge{background:#ffe16a;border:1px solid #e7bb35;color:#7b4a00;font-weight:900;box-shadow:0 2px 0 #e3bf50}.coach-actions>button{background:#f1e5ff;color:#673b91;border:1px solid #d0b1e7}.coach-actions>button:hover{background:#ffef9f}.stage-bar{border:3px solid #352756;border-bottom:0;border-radius:18px 18px 0 0;background:#4e337a;color:white;padding:10px;gap:8px}.stage-bar strong{font-size:12px;font-weight:1000}.stage-bar #levelLabel{color:#f3da82;font-weight:bold}.stage-bar .live-dot{background:#8aef73;box-shadow:0 0 0 3px #ffffff22}.stage-bar label{color:#e8daff;font-size:10px}.stage-bar select{border:2px solid #b49ad5;border-radius:9px;background:#f9f2ff;color:#4b346c;font-weight:bold;max-width:160px}.stage-actions button{background:#705598;border-color:#a68abb;color:white;box-shadow:0 3px 0 #2c1b4b;border-radius:10px}.stage-actions #play{background:#ffcf39;color:#49305c;border-color:#fff0a5;font-size:14px;font-weight:1000;box-shadow:0 4px 0 #ba8520}.stage-actions #play:hover{background:#ffe477}.canvas-wrap{border:5px solid #352756;border-top:0;border-bottom:0;background:#242044;box-shadow:0 0 0 2px #8b6cbe;isolation:isolate}#game{background:#d5f1e7}.stage-footer{background:#352756;border:3px solid #352756;border-top:0;border-radius:0 0 17px 17px;color:#eee3ff;font-size:11px}.stage-footer kbd{border-color:#9178b4;color:white}.music-mood{background:#60478d;color:#fff3b5}.touch-controls{padding:9px;background:#f0e6ff;border-radius:12px}.touch-controls button{background:#fff9e7;border:2px solid #c2a7da;border-bottom:4px solid #ab87c6;border-radius:11px;min-height:42px;color:#5a3c76}.command-panel{border:3px solid #a176d3;border-radius:18px;box-shadow:4px 4px 0 #d5bce9;background:#fffaf1}.command-panel .eyebrow{color:#a95a09}.command-heading h2{color:#62398a;font-weight:1000;font-size:22px}.command-panel form button{background:#ce3c8a;border-color:#ee92c6;box-shadow:0 3px 0 #8e255d}.chips button{background:#f2e3ff;border:2px solid #cfb1e5;box-shadow:0 2px 0 #d5bce9;color:#6b438b}.right-panel{border:3px solid #bca0df;background:#fff9e8;border-radius:18px}.project-help-dialog{border:4px solid #74509f;background:#fff9e9}.project-help-dialog h2{color:#674187}.read-tool{border:1px solid #c8aadf;background:#fff!important;color:#6b4386}.skill-guide summary{color:#71518f}.skill-guide[open]{border:2px solid #dfc7f1;background:#fff9e8}.project-dock [hidden],.studio-welcome [hidden]{display:none!important}
@media(min-width:761px){.builder{max-height:calc(100vh - 318px)}}@media(max-width:1100px){.project-dock button strong{font-size:14px}.studio-welcome h1{font-size:28px}.studio-welcome{grid-template-columns:1fr 86px auto}.welcome-bob canvas{width:77px;height:85px}.stage-actions{width:100%}.category-icon{font-size:18px;margin-right:4px}}
@media(max-width:760px){header{padding:10px 12px}.brand{font-size:16px}.project-dock{padding:7px;gap:6px}.dock-title strong{font-size:12px}.project-dock button strong{font-size:12px}.project-dock button small{font-size:9px}.project-dock button{padding:7px 5px;border-radius:10px;min-height:51px}.studio-welcome{grid-template-columns:1fr 76px;padding:13px 14px;border-radius:18px}.studio-welcome .eyebrow{font-size:9px}.studio-welcome h1{font-size:25px;line-height:1.1}.studio-welcome h1 br{display:block}.studio-welcome:before{display:none}.welcome-bob{min-height:80px}.welcome-bob canvas{width:75px;height:83px}.studio-welcome .project-actions{grid-column:1/-1}.studio-coach .skill-key{display:none}.builder{max-height:none}.tool-grid,.builder .tool-grid{gap:6px}.tool .tool-icon{width:26px;flex-basis:26px}.tool .tool-name{font-size:11px}.tool-icon svg{width:27px;height:30px}.stage-bar{padding:8px}.stage-actions #play{font-size:13px}.stage-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){button,.tool{transition:none!important}.tool:hover{transform:none}}
/* Keep the complete build world visible; Play still uses the full-size follow camera. */
.project-dock .dock-save{background:#148456}.project-dock .dock-open{background:#1d6fc3}.project-dock .dock-share{background:#bc287a}.category-green{--cat:#218149}.category-teal{--cat:#08778a}.category-gold{--cat:#a16608}.category-coral{--cat:#b9453b}.category-blue{--cat:#2a69b0}
@media(min-width:1101px){.coach-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px}.coach-top{grid-column:1/-1}.coach-copy>p{grid-column:1;margin:0}.coach-actions{grid-column:2;grid-row:2}.welcome-bob{min-height:78px}.welcome-bob canvas{width:78px;height:86px}.studio-welcome{padding-top:9px;padding-bottom:9px}.studio-welcome h1{font-size:30px}}
@media(min-width:761px){body:not(.studio-playing):not(.play-only) #game{width:auto;height:auto;max-width:100%;max-height:clamp(260px,calc(100vh - 460px),540px);margin:auto}.canvas-wrap{background:repeating-linear-gradient(0deg,#30234f 0 12px,#352756 12px 24px)}.builder{max-height:calc(100vh - 295px)}}
@media(min-width:761px){body:not(.studio-playing):not(.play-only) #game{max-height:clamp(260px,calc(100vh - 500px),540px)}}
/* A welcoming Bob and the original invitation to create. */
.studio-welcome{grid-template-columns:minmax(0,1fr) 190px auto;min-height:190px;padding:16px 25px;gap:24px}.studio-welcome h1{font-size:clamp(30px,3.2vw,43px);line-height:1.08;letter-spacing:-1.2px}.studio-welcome h1 br{display:block}.studio-welcome .eyebrow{font-size:11px;margin-bottom:7px}.welcome-bob{min-height:164px;transform:rotate(2deg);position:relative}.welcome-bob canvas{width:151px;height:168px;position:relative;z-index:1}.welcome-bob:before{display:block;content:'';position:absolute;width:145px;height:145px;background:#f7d578;border:3px solid #fff4c1;border-radius:50%;top:12px;left:50%;transform:translateX(-50%)}.studio-welcome:before{right:230px;top:20px}.welcome-actions{margin-top:12px}.welcome-actions #quickPlay{font-size:15px;min-height:43px}.studio-welcome .project-actions{max-width:180px}.studio-welcome .project-actions:empty{display:none}@media(min-width:761px){body:not(.studio-playing):not(.play-only) #game{max-height:clamp(240px,calc(100vh - 590px),540px)}.builder{max-height:calc(100vh - 390px)}}@media(max-width:1100px){.studio-welcome{grid-template-columns:1fr 160px;gap:15px}.studio-welcome .project-actions{grid-column:1/-1;max-width:none}.welcome-bob canvas{width:142px;height:158px}.welcome-bob{min-height:160px}.studio-welcome h1{font-size:36px}}@media(max-width:760px){.studio-welcome{grid-template-columns:minmax(0,1fr) 120px;min-height:155px;padding:14px;gap:8px}.studio-welcome h1{font-size:27px;letter-spacing:-.7px}.studio-welcome .eyebrow{font-size:9px}.welcome-bob{min-height:134px}.welcome-bob canvas{width:118px;height:131px}.welcome-bob:before{width:110px;height:110px;top:12px}.welcome-actions #quickPlay{font-size:13px;min-height:40px}.studio-welcome .project-actions{grid-column:1/-1}.builder{max-height:none}}
/* A roomy studio at the top; a compact, persistent guide while working. */
:root{--dock-height:84px;--studio-sticky-height:138px}body{overflow-anchor:none}.studio-compass{position:sticky;top:var(--dock-height);z-index:29;display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 12px;background:#f2e9ff;border-bottom:2px solid #bfa4dc;box-shadow:0 3px 6px #48306318}.compass-label{font-size:10px;font-weight:900;letter-spacing:1px;color:#735090;margin-right:8px}.studio-compass button{background:white;border:2px solid #d6bee9;box-shadow:0 2px 0 #d0b4e4;padding:6px 12px;font-size:12px;min-height:34px;border-radius:10px;color:#63427d}.studio-compass button[aria-current]{background:#ffe37a;border-color:#d7a823;box-shadow:0 2px 0 #b88518;color:#4f316d}.studio-compass button:hover{background:#fff1b4}.studio-welcome,.studio-coach,#playStage,#commandSection,#ideasSection,.workspace{scroll-margin-top:var(--studio-sticky-height)}.builder{top:var(--studio-sticky-height)}.studio-working .project-dock{padding-top:5px;padding-bottom:7px;gap:8px}.studio-working .project-dock button{min-height:43px;padding:7px 11px}.studio-working .project-dock button small,.studio-working .dock-title small{display:none}.studio-working .project-dock button strong{font-size:14px}.studio-working .dock-title strong{font-size:13px}.studio-working .studio-welcome{min-height:76px;padding:7px 20px;gap:15px;grid-template-columns:minmax(0,1fr) 72px auto;margin-bottom:10px}.studio-working .studio-welcome h1{font-size:23px;line-height:1.15;letter-spacing:-.5px;margin:0}.studio-working .studio-welcome h1 br{display:none}.studio-working .studio-welcome .eyebrow,.studio-working .welcome-actions{display:none}.studio-working .welcome-bob{min-height:62px}.studio-working .welcome-bob canvas{width:57px;height:63px}.studio-working .welcome-bob:before{width:58px;height:58px;top:3px;border-width:2px}.studio-working .studio-welcome:before{display:none}.studio-working .studio-welcome .project-actions button{min-height:36px;font-size:11px}.studio-working .studio-coach{padding:6px 11px;gap:8px}.studio-working .studio-coach canvas{width:35px;height:43px;flex-basis:35px}.studio-working .skill-key{display:none}.studio-working .studio-coach p{font-size:12px}.studio-working .coach-actions>button,.studio-working .skill-guide>summary{min-height:28px;padding:4px 8px}.studio-working #commandSection:focus-within,.studio-working #ideasSection:focus-within{box-shadow:0 0 0 3px #ffdf69,4px 4px 0 #d5bce9}.play-only #studioCompass{display:none!important}
@media(min-width:761px){.studio-working .workspace{grid-template-columns:270px minmax(0,1fr)}.studio-working .builder{max-height:calc(100vh - var(--studio-sticky-height) - 14px)}body.studio-working:not(.studio-playing):not(.play-only) #game{width:100%;height:auto;max-height:none;max-width:100%}.studio-working .tool-group[open]>summary,.studio-working .builder>.studio-section[open]>summary{position:sticky;top:0;z-index:2}}
@media(max-width:1100px){.studio-compass{gap:5px;padding:6px 10px}.studio-compass button{font-size:11px;padding:6px 9px}.studio-working .studio-welcome{grid-template-columns:1fr 65px}.studio-working .studio-welcome .project-actions{grid-column:1/-1}.studio-working .coach-top{gap:7px}}
@media(max-width:760px){.studio-compass{justify-content:space-between;flex-wrap:nowrap;gap:4px;padding:6px;overflow-x:auto}.compass-label{display:none}.studio-compass button{font-size:11px;padding:5px 7px;white-space:nowrap;min-height:34px}.studio-working .project-dock .dock-title{display:none}.studio-working .project-dock button strong{font-size:11px}.studio-working .project-dock button{min-height:40px;padding:6px 4px}.studio-working .studio-welcome{grid-template-columns:1fr 56px;padding:8px 11px;min-height:65px}.studio-working .studio-welcome h1{font-size:19px}.studio-working .welcome-bob{min-height:52px}.studio-working .welcome-bob canvas{width:47px;height:53px}.studio-working .welcome-bob:before{width:47px;height:47px}.studio-working .builder{position:static;max-height:none}.studio-working .workspace{display:flex}.studio-working .studio-coach p{font-size:12px}.studio-working .studio-coach canvas{width:32px;height:39px;flex-basis:32px}}
/* Bob's readable coaching bubble stays prominent in both scroll modes. */
.studio-coach,.studio-working .studio-coach{padding:15px 18px;gap:16px;border:3px solid #ab78cf;border-left:8px solid #ffd14a;background:linear-gradient(110deg,#fff8d7,#fff7ff);border-radius:20px;box-shadow:0 5px 0 #d3b5e8}.studio-coach canvas,.studio-working .studio-coach canvas{width:91px;height:105px;flex-basis:91px}.coach-copy,.studio-working .coach-copy{display:block}.coach-top>strong,.studio-working .coach-top>strong{font-size:18px;letter-spacing:.4px;color:#66328e}.studio-coach p,.studio-working .studio-coach p{font-size:19px;line-height:1.4;margin:9px 0 11px;color:#433054;font-weight:800}.coach-actions,.studio-working .coach-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.coach-actions>button,.studio-working .coach-actions>button{font-size:13px;min-height:37px;padding:7px 11px}.skill-guide>summary,.studio-working .skill-guide>summary{font-size:12px;min-height:34px;padding:7px 10px}.studio-coach .skill-key{display:none}.coach-top{gap:9px}.creation-trail{border:3px solid #76509e;border-radius:21px;background:#fffaf0;padding:17px 20px;margin:0 0 18px;box-shadow:0 5px 0 #d2bce7;scroll-margin-top:var(--studio-sticky-height)}.trail-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.trail-heading h2{font-size:23px;color:#633484;margin:3px 0}.trail-heading p{font-size:13px;color:#655477;margin:3px 0}.trail-heading .eyebrow{color:#9a6316;font-size:10px}.trail-heading-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.trail-sticker{font-size:10px;font-weight:1000;background:#ffe480;color:#72501a;padding:7px 9px;border-radius:9px;transform:rotate(2deg)}#trailSize{font-size:11px;min-height:34px;background:#f0e3ff;border-color:#c1a0de;color:#6b3b8c}.trail-steps{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:16px 0}.trail-steps:before{content:'';position:absolute;left:7%;right:7%;top:32px;border-top:5px dashed #cfb0e2}.trail-stop{position:relative;border:2px solid #d7c0e9;background:#fff;box-shadow:0 4px 0 #d9c4e8;border-radius:15px;padding:10px 8px 9px;text-align:center;min-height:137px;display:flex;flex-direction:column;align-items:center;color:#5b3a76;gap:4px}.trail-stop:hover{background:#fff1c0;border-color:#c89724}.trail-stop[aria-current]{background:#fff1af;border:3px solid #d7a323;box-shadow:0 4px 0 #bd851a;transform:translateY(-3px)}.trail-number{position:absolute;left:6px;top:6px;width:23px;height:23px;border-radius:50%;background:#70469e;color:white;font-size:12px;display:grid;place-items:center;font-weight:900}.trail-icon{font-size:34px;line-height:1.2;margin-top:5px;filter:drop-shadow(1px 2px 0 #b9a8c7)}.trail-stop strong{font-size:13px;line-height:1.2}.trail-stop small{font-size:11px;line-height:1.35;color:#6b5b77;display:block}.trail-stop-2 .trail-number{background:#277f4c}.trail-stop-3 .trail-number{background:#c14089}.trail-stop-4 .trail-number{background:#246baa}.trail-stop-5 .trail-number{background:#af680c}.trail-stop-6 .trail-number{background:#724bc0}.trail-tried .trail-number:after{content:'✓';position:absolute;right:-6px;bottom:-5px;background:#2f8752;color:white;font-size:9px;width:14px;height:14px;line-height:14px;border-radius:50%;border:1px solid white}.trail-next{display:flex;align-items:center;gap:15px;justify-content:space-between;padding-top:4px}.trail-next strong{font-size:13px;color:#6a4a7c;line-height:1.35}#trailNext{font-size:12px;min-height:37px;white-space:nowrap;background:#7650b1;color:white;border-color:#a37bd2}.play-only #creationTrail{display:none!important}
.studio-working .creation-trail:not(.trail-expanded),.creation-trail.trail-small{padding:10px 14px;margin-bottom:12px}.studio-working .creation-trail:not(.trail-expanded) .trail-heading p,.studio-working .creation-trail:not(.trail-expanded) .trail-heading .eyebrow,.studio-working .creation-trail:not(.trail-expanded) .trail-sticker,.creation-trail.trail-small .trail-heading p,.creation-trail.trail-small .trail-heading .eyebrow,.creation-trail.trail-small .trail-sticker{display:none}.studio-working .creation-trail:not(.trail-expanded) h2,.creation-trail.trail-small h2{font-size:17px}.studio-working .creation-trail:not(.trail-expanded) .trail-steps,.creation-trail.trail-small .trail-steps{margin:8px 0;gap:8px}.studio-working .creation-trail:not(.trail-expanded) .trail-stop,.creation-trail.trail-small .trail-stop{min-height:58px;padding:6px 7px 6px 30px;gap:3px}.studio-working .creation-trail:not(.trail-expanded) .trail-stop small,.creation-trail.trail-small .trail-stop small{display:none}.studio-working .creation-trail:not(.trail-expanded) .trail-icon,.creation-trail.trail-small .trail-icon{font-size:21px;margin:0}.studio-working .creation-trail:not(.trail-expanded) .trail-stop strong,.creation-trail.trail-small .trail-stop strong{font-size:11px}.studio-working .creation-trail:not(.trail-expanded) .trail-number,.creation-trail.trail-small .trail-number{top:17px;left:5px;width:20px;height:20px;font-size:11px}.studio-working .creation-trail:not(.trail-expanded) .trail-steps:before,.creation-trail.trail-small .trail-steps:before{top:28px;border-top-width:3px}.studio-working .creation-trail:not(.trail-expanded) .trail-next strong,.creation-trail.trail-small .trail-next strong{font-size:11px}
@media(max-width:1100px){.trail-steps{gap:7px}.trail-stop{min-height:146px}.trail-stop strong{font-size:12px}.trail-heading h2{font-size:21px}.studio-coach p,.studio-working .studio-coach p{font-size:18px}.studio-coach canvas,.studio-working .studio-coach canvas{width:77px;height:90px;flex-basis:77px}.coach-top>strong,.studio-working .coach-top>strong{font-size:16px}}
@media(max-width:760px){.creation-trail{padding:12px}.trail-heading{align-items:flex-start}.trail-heading h2{font-size:19px}.trail-heading p{font-size:12px}.trail-sticker{display:none}.trail-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.trail-steps:before{display:none}.trail-stop{min-height:122px}.trail-icon{font-size:28px}.trail-stop strong{font-size:12px}.trail-stop small{font-size:10px}.trail-next{align-items:flex-start;flex-direction:column;gap:9px}.studio-coach,.studio-working .studio-coach{padding:12px;gap:10px;align-items:flex-start}.studio-coach canvas,.studio-working .studio-coach canvas{width:56px;height:67px;flex-basis:56px}.studio-coach p,.studio-working .studio-coach p{font-size:17px}.coach-top>strong,.studio-working .coach-top>strong{font-size:15px}.coach-actions>button,.studio-working .coach-actions>button{font-size:12px;min-height:36px}.studio-working .creation-trail:not(.trail-expanded) .trail-steps,.creation-trail.trail-small .trail-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Bob’s Way: the same AMIG cycle across every activity. */
.studio-welcome,.studio-working .studio-welcome{position:relative;display:grid!important;grid-template-columns:1fr 200px 1fr;gap:20px;min-height:240px;padding:22px 26px!important;align-items:center}.welcome-copy{grid-column:1}.welcome-bob,.studio-working .welcome-bob{grid-column:2;grid-row:1;width:180px!important;height:200px!important;justify-self:center}.welcome-bob canvas,.studio-working .welcome-bob canvas{width:180px!important;height:200px!important}.welcome-actions{display:flex!important;flex-direction:column;align-items:flex-start;gap:9px}.welcome-actions #resumeProject{max-width:220px;margin:0}.studio-welcome .project-actions{display:none}.studio-welcome #studioCompass,.studio-working .studio-welcome #studioCompass{position:static;grid-column:3;grid-row:1;align-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;background:transparent;border:0;box-shadow:none;padding:0;z-index:auto}.studio-welcome .compass-label{flex-basis:100%;text-align:right}.studio-welcome #studioCompass button{font-size:12px;padding:9px}.studio-working .welcome-copy h1{font-size:30px!important}.studio-working .welcome-copy .eyebrow{display:block}.studio-working .welcome-copy .welcome-actions{display:flex!important}.studio-working .welcome-copy #firstHint{display:none}
.amig-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.amig-phase{min-width:0;border:2px solid #d4c2e8;border-radius:17px;padding:12px;background:#fff}.amig-phase h3{margin:0;font-size:22px;color:#48306e}.amig-phase h3 b{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#147cb4;color:white}.amig-M h3 b{background:#158351}.amig-I h3 b{background:#b44791}.amig-G h3 b{background:#7550b9}.amig-phase>p{min-height:32px;margin:8px 0;font-size:13px;line-height:1.3}.amig-phase .trail-steps{display:flex;flex-direction:column;gap:9px;margin:0}.amig-phase .trail-stop{width:100%;min-height:95px}.amig-phase .trail-stop:after{display:none}.amig-chant{font-weight:800;text-align:center;color:#6a4288;margin:14px 0 4px}.studio-working .amig-phase .trail-stop{min-height:58px}.studio-working .amig-phase>p{display:none}.creation-trail.trail-expanded .amig-phase>p{display:block}.creation-trail.trail-small .amig-phase>p{display:none}
@media(max-width:900px){.studio-welcome,.studio-working .studio-welcome{grid-template-columns:1fr 160px!important}.welcome-bob,.studio-working .welcome-bob{grid-column:2;width:144px!important;height:160px!important}.welcome-bob canvas,.studio-working .welcome-bob canvas{width:144px!important;height:160px!important}.studio-welcome #studioCompass,.studio-working .studio-welcome #studioCompass{grid-column:1/-1;grid-row:2}.amig-phases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.studio-welcome,.studio-working .studio-welcome{padding:15px!important;gap:10px;grid-template-columns:1fr 100px!important}.welcome-bob,.studio-working .welcome-bob,.welcome-bob canvas,.studio-working .welcome-bob canvas{width:99px!important;height:110px!important}.welcome-copy h1,.studio-working .welcome-copy h1{font-size:27px!important}.amig-phase{padding:8px}.amig-phase h3{font-size:19px}.amig-phase .trail-stop{min-height:90px}}
.amig-phase>.amig-prompt{margin-top:14px;font-weight:700;color:#674580;line-height:1.5;min-height:0}.amig-again{margin-top:7px;width:100%;background:#eee3ff;color:#55327e;border:2px solid #cbb5e3}.studio-working .amig-again,.creation-trail.trail-small .amig-again{display:none}.creation-trail.trail-expanded .amig-again{display:block}
/* Compact welcome banner; AMIG names reinforce their matching letters. */
.studio-welcome,.studio-working .studio-welcome{min-height:0!important;padding:12px 26px 8px!important;gap:12px 20px}.welcome-actions,.studio-working .welcome-copy .welcome-actions{display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}.welcome-actions #firstHint{flex-basis:100%;margin:0}.welcome-actions #resumeProject{max-width:none;font-size:13px;padding:10px 12px}.studio-welcome .welcome-copy h1{margin:6px 0 12px}.studio-welcome .welcome-bob,.studio-working .welcome-bob{align-self:end}.studio-welcome #studioCompass,.studio-working .studio-welcome #studioCompass{padding-bottom:6px}.creation-trail .trail-heading h2,.studio-working .creation-trail .trail-heading h2{font-size:34px;line-height:1.15;margin:5px 0 7px}.amig-A h3{color:#147cb4}.amig-M h3{color:#158351}.amig-I h3{color:#b44791}.amig-G h3{color:#7550b9}
@media(max-width:900px){.studio-welcome,.studio-working .studio-welcome{padding:12px 18px 8px!important}.creation-trail .trail-heading h2,.studio-working .creation-trail .trail-heading h2{font-size:30px}}
@media(max-width:560px){.studio-welcome,.studio-working .studio-welcome{padding:12px!important}.welcome-actions #resumeProject{font-size:12px}.creation-trail .trail-heading h2,.studio-working .creation-trail .trail-heading h2{font-size:28px}}
.game-showcase{display:grid;grid-template-columns:1fr 1.35fr;gap:22px;align-items:center;margin:16px 0;padding:16px 22px;border:3px solid #684291;border-radius:22px;background:linear-gradient(115deg,#ebe1ff,#fff8d9);box-shadow:0 5px 0 #c3aedb}.showcase-copy h2{font-size:29px;margin:7px 0;color:#57338b}.showcase-copy p{max-width:370px;line-height:1.5;font-size:15px}.showcase-copy strong{display:block;color:#6c4588}.showcase-copy button{margin-top:13px;background:#7550b9;color:white;font-weight:800}.showcase-screen{overflow:hidden;border:3px solid #4e3273;border-radius:15px;background:#34224f;box-shadow:0 4px 0 #b598cc}.showcase-bar,.showcase-controls{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 10px;color:white}.showcase-bar button,.showcase-controls button{font-size:11px;padding:5px 8px;min-height:28px}.showcase-controls>span{font-size:9px;font-weight:800;letter-spacing:1px;margin-right:auto}.showcase-controls button[aria-pressed=true]{background:#ffe267;color:#382456}.showcase-screen canvas{width:100%;display:block;aspect-ratio:640/270}.bob-welcome[hidden]{display:none}.bob-welcome{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,#7950aa,#241645);color:white;padding:20px}.welcome-launch-card{text-align:center}.welcome-launch-card canvas{width:144px;height:160px;filter:drop-shadow(0 0 24px #ffda7b)}.welcome-launch-card h2{font-size:38px;line-height:1.15;margin:10px}.welcome-launch-card p{font-weight:700;color:#ffe991}.welcome-launch-card>button{background:#ffe16a;color:#402665;font-size:18px;padding:13px 28px;margin-top:18px;font-weight:900}.launch-amig{display:flex;justify-content:center;gap:10px}.launch-amig b{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#147cb4;font-size:25px;animation:amig-pop .6s both}.launch-amig b:nth-child(2){background:#158351;animation-delay:.2s}.launch-amig b:nth-child(3){background:#b44791;animation-delay:.4s}.launch-amig b:nth-child(4){background:#7550b9;animation-delay:.6s}@keyframes amig-pop{from{opacity:0;transform:translateY(15px) scale(.7)}to{opacity:1;transform:none}}.play-only .game-showcase,.play-only .bob-welcome{display:none}@media(max-width:700px){.game-showcase{grid-template-columns:1fr;padding:14px;gap:13px}.showcase-copy h2{font-size:25px}.showcase-copy p{margin:6px 0}.showcase-controls>span{display:none}.welcome-launch-card h2{font-size:30px}}@media(prefers-reduced-motion:reduce){.launch-amig b{animation:none}}
.game-showcase{grid-template-columns:1fr 1fr;padding:14px 22px}.showcase-screen{width:100%;max-width:480px;justify-self:end}.welcome-launch-card canvas{display:block;margin:12px auto}.welcome-launch-card>.eyebrow{color:#ffe999}.welcome-launch-card .launch-amig b{color:white}@media(max-width:700px){.game-showcase{grid-template-columns:1fr}.showcase-screen{justify-self:center;max-width:480px}}
.showcase-screen canvas{aspect-ratio:16/9}
.stage-bar{flex-wrap:wrap}.stage-actions{flex-wrap:wrap}.board-history{display:flex;gap:6px;align-items:center;padding-right:8px;margin-right:2px;border-right:1px solid #ffffff55}.board-history button{font-weight:800;white-space:nowrap}.board-history #clearBoard{background:#fff1bb;color:#624517;border-color:#d5b452}.board-history #undo,.board-history #redo{background:#eee4ff;color:#54377e}.board-history button:disabled{opacity:.45;cursor:default}.play-only .board-history{display:none}
