:root{font-family:'DM Sans',sans-serif;color:#332c51;background:#faf9f6;font-synthesis:none;--purple:#5942b5;--muted:#777184}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #ec9a30;outline-offset:4px}button:disabled{cursor:default;opacity:.55}button{transition:transform .16s,box-shadow .16s}button:not(:disabled):active{transform:translateY(2px)}.header{height:92px;max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid #e9e6e1}.brand{display:flex;align-items:center;gap:10px;font-family:Fredoka,'Trebuchet MS',sans-serif;font-size:30px;font-weight:600;color:var(--purple);text-decoration:none;letter-spacing:-1px}.brand-light{font-weight:400}.brand-dot{color:#ec9a30}.brand-icon{width:42px;height:42px;background:#efeafb;border-radius:14px;text-align:center;line-height:42px;font-size:35px}.header-right{display:flex;align-items:center;gap:12px}.age{font-size:11px;font-weight:700;letter-spacing:1.6px;margin-right:17px;color:var(--muted)}.icon-btn{width:42px;height:42px;position:relative;border-radius:50%;background:white;border:1px solid #e7e3ec;font-size:23px;color:var(--purple)}.sound-slash{position:absolute;left:11px;top:4px;font-size:29px}.help{font-size:20px;font-weight:700}main{max-width:1200px;margin:auto;padding:27px 40px 0}.levelbar{display:flex;align-items:center;justify-content:space-between;height:45px}.all-builds{background:transparent;color:#615b70;font-weight:600;font-size:14px;padding:12px 0}.all-builds span{font-size:22px;vertical-align:-2px;margin-right:8px}.steps{display:flex;align-items:center;gap:12px}.step{border-radius:50%;width:32px;height:32px;background:#ebe8f0;color:#898395;font-weight:600;font-size:13px}.step.current{background:var(--purple);color:white;box-shadow:0 0 0 5px #ece7fa}.step.done{background:#d4eee5;color:#217860}.level-count{font-size:11px;letter-spacing:1.3px;font-weight:700;color:#878090}.heading{display:flex;align-items:center;justify-content:space-between;margin:29px 0 25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#8a7caa}h1,h2{font-family:Fredoka,'Trebuchet MS',sans-serif;font-weight:500;letter-spacing:-.5px}h1{font-size:38px;margin:6px 0 7px;line-height:1.15}p{line-height:1.55}.heading p{margin:0;color:var(--muted);font-size:15px}.mode-label{align-self:end;margin-bottom:4px;font-size:12px;color:#787282;display:flex;align-items:center;gap:7px}.mode-label span{width:7px;height:7px;background:#58a78d;border-radius:50%}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:24px;align-items:stretch}.board-wrap{border:1px solid #dce6ed;border-radius:23px;overflow:hidden;background:#edf5fb;box-shadow:0 4px 0 #e5e9ef}.board-top{display:flex;justify-content:space-between;align-items:center;padding:15px 21px 0;height:49px}.board-label{font-size:10px;color:#8397aa;letter-spacing:1.6px;font-weight:700}.board-label span{font-size:19px;vertical-align:-2px;margin-right:5px}.hint-btn{background:#fff;color:#65597d;padding:9px 12px;font-size:12px;border-radius:10px;border:1px solid #dfe7f0}.board{position:relative;width:100%;aspect-ratio:600 / 490;background-image:radial-gradient(#cbd9e6 .8px,transparent .8px);background-size:22px 22px}.board canvas{width:100%;height:100%;display:block}.slot{position:absolute;width:16%;height:17%;border:2px dashed #a8b7ce;border-radius:16px;background:#fff8;transform:translate(-50%,-50%);color:#9daec3;font-size:27px;touch-action:none;display:flex;align-items:center;justify-content:center}.slot:not(:disabled):active{transform:translate(-50%,-50%) scale(.95)}.slot.placed{background:transparent;border-color:transparent}.slot.selected-space{border-color:#8671d0;box-shadow:0 0 0 6px #9380cf12;background:#fff9}.slot.hinted{border-color:#e6ae3f;background:#fff3c4}.slot small{font-size:12px;position:absolute;bottom:-24px;white-space:nowrap;color:#697f93;font-weight:600}.slot.placed small{color:#738692}.board.running .slot{visibility:hidden}.board-note{position:absolute;bottom:13px;width:100%;left:0;text-align:center;font-size:12px;color:#8c9bac;pointer-events:none}.board-bottom{min-height:50px;background:#ffffff80;display:flex;justify-content:space-between;align-items:center;padding:12px 21px;border-top:1px solid #dfe8f0;font-size:12px;color:#6c8093;gap:10px}.tiny-stars{color:#d3b04d;white-space:nowrap;font-size:20px}.toolbox{background:white;border:1px solid #e8e3ed;border-radius:23px;padding:24px 20px 15px;display:flex;flex-direction:column;box-shadow:0 4px 0 #efecf0}.toolbox-head{display:flex;align-items:center;justify-content:space-between}.toolbox h2{font-size:25px;margin:5px 0}.tool-count{background:#f2eff9;color:#8879ab;font-size:12px;font-weight:700;border-radius:10px;padding:7px 9px;white-space:nowrap}.tool-instruction{font-size:12px;color:#918b99;margin:3px 0 19px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tool{position:relative;border:2px solid transparent;border-radius:16px;padding:8px 6px 10px;min-height:112px;color:#50456a;touch-action:none}.tool canvas{width:100%;height:58px;display:block}.tool strong{font-size:13px;display:block}.tool .verb{font-size:10px;display:block;margin-top:2px;opacity:.7}.tool[data-type=ramp]{background:#fff1d6}.tool[data-type=bounce]{background:#fbe6ec}.tool[data-type=domino]{background:#e9e4fa}.tool[data-type=fan]{background:#dff3ef}.tool.chosen{border-color:var(--purple);box-shadow:0 0 0 3px #5942b515}.tip{display:flex;gap:10px;margin-top:23px;padding:14px 10px;border-radius:12px;background:#faf9fd}.tip>span{font-size:22px;color:#cfa852}.tip p{font-size:11px;color:#93899f;margin:0;line-height:1.7}.tip strong{font-weight:600;color:#70607e}.actions{display:flex;gap:10px;margin-top:auto;padding-top:22px}.reset{flex:0 0 48px;height:50px;border-radius:14px;color:#92839f;background:#f3f0f7;font-size:28px}.go{height:50px;border-radius:14px;background:#7bccac;color:#214e42;flex:1;font-family:Fredoka,'Trebuchet MS',sans-serif;font-size:23px;font-weight:500;box-shadow:0 4px 0 #56a88c}.go span{font-family:sans-serif;font-size:15px;margin-right:8px}.no-rush{font-size:10px;color:#9b929f;text-align:center;margin:15px 0 0}footer{display:flex;justify-content:space-between;padding:25px 3px;color:#a39aab;font-size:11px}footer strong{font-weight:500;color:#8879a0}dialog{border:0;border-radius:25px;padding:35px;max-width:420px;width:calc(100% - 32px);color:#403453;box-shadow:0 20px 100px #35275240;text-align:center}dialog::backdrop{background:#29214175;backdrop-filter:blur(5px)}dialog h2{font-size:30px;margin:10px 0}dialog p{font-size:16px;color:#867593}dialog ol{text-align:left;line-height:2.1;padding-left:24px;font-size:16px}.close{position:absolute;right:13px;top:10px;width:42px;height:42px;background:transparent;font-size:29px;color:#9f92ae}.dialog-icon{font-size:60px;color:var(--purple)}.primary{background:var(--purple);color:white;padding:15px 23px;border-radius:14px;font-size:17px;width:100%;font-weight:600;margin-top:12px}.replay{background:transparent;color:#877391;font-size:16px;padding:17px}.win-stars{font-size:40px;color:#efb640;margin:8px 0 20px}.drag-ghost{position:fixed;width:80px;height:70px;border-radius:15px;pointer-events:none;background:#fff9;box-shadow:0 5px 15px #57496b30;z-index:10;font-family:Fredoka,sans-serif;text-align:center;padding-top:22px;color:var(--purple);transform:translate(-50%,-50%)}#levelGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.level-choice{background:#f4f0fb;border-radius:15px;padding:17px 8px;color:var(--purple);font-size:14px;min-height:100px}.level-choice b{display:block;font-family:Fredoka,sans-serif;font-size:24px;margin-bottom:6px}
@media(min-width:1250px){main{padding-top:35px}.heading{margin-top:36px}.board{aspect-ratio:600 / 460}}
@media(max-width:800px){.header{height:72px;padding:0 22px}.age{display:none}main{padding:20px 22px 0}.workbench{grid-template-columns:minmax(0,1fr) 230px;gap:15px}.toolbox{padding:20px 14px 12px}.heading h1{font-size:32px}.mode-label{display:none}.tip{padding:9px;margin-top:15px}.tool{min-height:93px}.tool canvas{height:44px}.board{aspect-ratio:450/550}.board canvas{object-fit:fill}.slot{height:14%}}
@media(max-width:620px){.header{height:65px;padding:0 18px}.brand{font-size:25px}.brand-icon{height:34px;width:34px;line-height:34px;font-size:28px;border-radius:11px}.icon-btn{width:38px;height:38px}.header-right{gap:8px}main{padding:10px 14px 0}.levelbar{height:38px}.all-builds{font-size:12px}.all-builds span{font-size:19px;margin-right:5px}.steps{gap:9px}.step{width:26px;height:26px;font-size:11px}.level-count{display:none}.heading{margin:17px 4px 15px}.heading .eyebrow{font-size:8px;letter-spacing:1.5px}.heading h1{font-size:30px;margin:4px 0 5px}.heading p{font-size:13px}.workbench{display:flex;flex-direction:column;gap:14px}.board-wrap{border-radius:19px}.board{aspect-ratio:600/520}.board-top{height:42px;padding:10px 13px 0}.board-label{font-size:8px;letter-spacing:1.2px}.hint-btn{padding:7px 9px;font-size:11px}.board-bottom{min-height:39px;font-size:11px;padding:9px 12px}.tiny-stars{font-size:16px}.board-note{font-size:10px;bottom:9px}.slot{border-radius:12px;height:17%;width:17%;font-size:24px}.slot small{font-size:10px;bottom:-20px}.toolbox{border-radius:19px;padding:13px 13px 12px}.toolbox-head .eyebrow,.tool-instruction,.tip,.no-rush{display:none}.toolbox h2{font-size:20px;margin:0}.toolbox-head{margin-bottom:10px}.tool-count{font-size:11px;padding:5px 8px}.tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tool{min-height:82px;border-radius:12px;padding:3px 3px 7px}.tool canvas{height:44px}.tool strong{font-size:11px}.tool .verb{font-size:9px}.actions{padding-top:12px;gap:9px}.reset{height:46px}.go{height:46px;font-size:22px}footer{font-size:10px;padding:18px 3px 22px}.board-wrap{box-shadow:0 3px 0 #e5e9ef}}
@media(prefers-reduced-motion:reduce){button{transition:none}dialog::backdrop{backdrop-filter:none}}
/* Keep the words children use to play readable on smaller screens. */
.heading p{font-size:16px}.tool strong{font-size:14px}.tool .verb,.tool-instruction,.tip p,.no-rush,.board-note,.board-label,.hint-btn,.board-bottom{font-size:12px}.tool-instruction{line-height:1.5}.hint-btn{min-height:40px}.all-builds{min-height:44px}.step{min-height:32px}.toolbox-head .eyebrow{font-size:10px}.board-label{letter-spacing:1px;font-size:10px}
@media(max-width:620px){.heading p{font-size:14px}.tool strong{font-size:12px}.tool .verb{font-size:10px}.board-note{font-size:11px}.board-bottom{font-size:12px}.board-label{font-size:9px}.hint-btn{font-size:12px;min-height:38px}.tool canvas{height:43px}.slot small{font-size:12px}.no-rush{font-size:12px}.steps{gap:7px}.step{width:28px}.toolbox-head{margin-bottom:11px}}
.rotation-controls{margin-top:14px;padding:12px;border:1px solid #ddd3f0;border-radius:14px;background:#f7f3ff}.rotation-controls[hidden]{display:none}.turn-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:13px;color:#675082}.turn-heading strong{font-weight:600}.turn-heading output{font-size:15px;font-variant-numeric:tabular-nums}.turn-buttons{display:flex;gap:8px}.turn-buttons button{height:44px;min-width:44px;border-radius:10px;background:#e9e0f8;color:#5942b5;font-size:29px}.turn-buttons #removePiece{flex:1;background:#fff;font-size:22px}.turn-buttons #removePiece span{font-size:12px;vertical-align:2px}.slot.placed.editing{border-color:#9f89ce;background:transparent;box-shadow:0 0 0 4px #a38bd11a}.board.running .slot{visibility:hidden}.tip{margin-top:14px}.rotation-controls:not([hidden])~.tip{display:none}
@media(max-width:620px){.rotation-controls{margin-top:10px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.turn-heading{display:block;margin:0;font-size:12px}.turn-heading output{display:block;font-size:13px;margin-top:3px}.turn-buttons{gap:6px}.turn-buttons #removePiece span{display:none}.slot small{font-size:11px}.board{aspect-ratio:600/540}}
.tool[data-type=belt]{background:#ffead8}.tool[data-type=cushion]{background:#e0efff}.tool[data-type=deflector]{background:#e1edf0}.step-arrow{width:44px;height:44px;min-height:44px;flex-shrink:0;font-size:30px;line-height:1;background:#eee8f8;color:#66518e}.step-position{min-width:56px;text-align:center;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.steps{gap:8px}.level-choice small{display:block;font-size:12px;line-height:1.5;margin-top:8px;color:#89779b}.level-choice{min-height:128px}#levelsDialog{max-width:640px;max-height:85dvh;overflow:auto}#levelGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench{align-items:start}.toolbox{padding-top:18px}.toolbox .tools{gap:8px}.toolbox .tool{min-height:96px}.toolbox .tool canvas{height:47px}.toolbox .tool strong{font-size:12px}.toolbox .tool .verb{font-size:10px}.toolbox .actions{padding-top:16px}
@media(min-width:801px){.workbench{grid-template-columns:minmax(0,1fr) 330px}.toolbox .tools{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbox{padding-left:15px;padding-right:15px}}
@media(min-width:621px) and (max-width:800px){.toolbox .tools{max-height:305px;overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:620px){#levelGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.levelbar{height:46px}.steps .step-arrow{width:44px;height:44px}.toolbox .tool{min-height:82px}.toolbox .tool canvas{height:41px}.toolbox .tool .verb{font-size:10px}.toolbox{width:100%}.step-position{font-size:14px;min-width:52px}}

.sign-out{color:#5942b5;font-size:14px;padding:12px 3px;text-decoration:none;white-space:nowrap}
@media(max-width:380px){.header{padding:0 10px}.brand{font-size:22px}.header-right{gap:5px}.sign-out{font-size:12px}}
