@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#323446;background:#f7f5ef;font-synthesis:none;--purple:#7655ce;--muted:#85818c;--line:#e9e5df;--coral:#ed8d7b}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #bba5fa}button{transition:background .16s,transform .16s}button:active{transform:translateY(1px)}.topbar{height:88px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fcfbf8;gap:20px}.brand{display:flex;gap:13px;text-decoration:none;color:#343044;align-items:center;font:800 26px 'Manrope',sans-serif;letter-spacing:-1.3px;line-height:1.1}.brand-light{font-weight:400;color:#77618e}.brand small{font:600 8px 'DM Sans',sans-serif;letter-spacing:2px;display:block;margin-top:8px;color:#99929d}.brand-mark{position:relative;width:40px;height:42px;display:block}.brand-mark i{position:absolute;width:22px;height:22px;background:#f3b254;border-radius:50%;left:0;top:1px}.brand-mark i:nth-child(2){width:23px;height:23px;background:#a58cde;border-radius:6px;left:18px;top:15px;transform:rotate(12deg)}.brand-mark i:nth-child(3){width:15px;height:15px;background:#69bcae;left:2px;top:26px}.header-note{font-size:12px;color:#8c8694;display:flex;gap:9px;align-items:center}.live-dot{width:6px;height:6px;background:#6bb49b;display:inline-block;border-radius:50%}.header-actions{display:flex;gap:8px}.button{border:1px solid transparent;border-radius:9px;padding:11px 14px;font-size:11px;font-weight:600;white-space:nowrap}.subtle{background:transparent;color:#6e687a}.subtle:hover{background:#eeebe5}.purple-light{background:#eee7fa;color:#7557b3}.purple-light:hover{background:#e1d6f6}#recipe-count{background:#ddd0f1;padding:1px 5px;border-radius:4px;font-size:9px;margin-left:5px}.workspace{height:calc(100dvh - 88px);min-height:640px;display:grid;grid-template-columns:105px minmax(0,1fr) 298px}.scene-nav{padding:26px 9px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;background:#fcfbf8}.nav-caption{font-size:8px;letter-spacing:1.8px;color:#a19aa8;text-align:center;margin-bottom:20px;font-weight:700}.scene-tab{border:0;background:transparent;color:#968e9f;width:100%;padding:14px 4px 12px;display:flex;flex-direction:column;align-items:center;gap:7px;border-radius:14px;font-size:9px;font-weight:600;margin-bottom:9px;position:relative}.scene-tab svg{width:31px;height:31px}.scene-tab:hover{background:#f3efe7;color:#695975}.scene-tab.active{background:#eee6f8;color:#7956b9}.scene-tab.active:before{position:absolute;left:-9px;top:29px;content:'';width:3px;height:23px;background:#9169cb;border-radius:0 3px 3px 0}.nav-foot{margin-top:auto;font-size:8px;line-height:1.8;letter-spacing:1.3px;text-align:center;color:#b0a8b7}.stage{position:relative;overflow:hidden;min-width:0;background:#f4f1e9}#viewport{position:absolute;inset:0}canvas{width:100%;height:100%;display:block;touch-action:none;outline:0}.stage-heading{position:absolute;top:33px;left:34px;pointer-events:none}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#a093aa}h1{font:800 clamp(24px,2.8vw,39px)/1.2 'Manrope',sans-serif;letter-spacing:-1.7px;margin:10px 0 9px;color:#3f394d}h1 span{color:#aa8bd7}.stage-heading p{font-size:12px;color:#908696;margin:0;line-height:1.6}.scene-status{position:absolute;right:23px;top:30px;display:flex;align-items:center;gap:8px;color:#9d95a3;font-size:9px;background:#ffffff85;border:1px solid #fff9;border-radius:20px;padding:8px 11px}.status-sep{height:9px;width:1px;background:#ddd5df}.view-tools{position:absolute;right:22px;top:81px;display:flex;flex-direction:column;gap:8px}.tool-button{border:1px solid #e9e2e9;background:#fffc;color:#8d7d9d;border-radius:10px;width:33px;height:33px;font-size:21px;display:grid;place-items:center}.tool-button:hover{background:#eae0f4}.mode-bar{position:absolute;top:155px;left:34px;display:flex;background:#ffffffab;border:1px solid #fff;border-radius:9px;padding:4px;gap:3px}.mode-bar button{border:0;background:transparent;font-size:10px;padding:7px 11px;color:#92849e;border-radius:6px}.mode-bar button.active{background:#e9dff6;color:#7955b2}.stage-bottom{position:absolute;bottom:21px;left:23px;right:23px;display:flex;align-items:center;flex-direction:column;gap:17px;pointer-events:none}.hint{font-size:11px;color:#8d8196;display:flex;align-items:center;gap:8px;background:#f9f6f0d9;border-radius:30px;padding:7px 12px}.hint-dot{display:grid;place-items:center;border:1px solid #c5b7d0;width:15px;height:15px;border-radius:50%;font-size:9px}.transport{display:flex;align-items:center;border:1px solid #fff;background:#fffffff0;box-shadow:0 5px 24px #70577810;border-radius:15px;padding:6px;gap:3px;pointer-events:auto}.transport button{border:0;background:transparent;border-radius:9px;color:#9b8ca6;height:35px;min-width:39px;font-size:12px}.transport button.active{background:#eee6fa;color:#7956c1;font-weight:700}.transport button:hover{background:#f2edf6}.transport #pause{background:#7b5bc5;color:white;font-size:15px;letter-spacing:2px}.transport #reset{font-size:25px}.transport-divider{height:20px;width:1px;background:#ece5ef;margin:0 4px}.stage-caption{font-size:8px;letter-spacing:1.4px;color:#b2a5b9}.controls{background:#fcfbf8;border-left:1px solid var(--line);overflow-y:auto;padding:27px 23px 16px;scrollbar-width:thin;scrollbar-color:#d6cbdc transparent}.panel-heading{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:19px}.panel-heading .eyebrow{font-size:8px;color:#ac9ab7}.panel-heading h2{font:700 17px 'Manrope',sans-serif;letter-spacing:-.5px;margin:8px 0 0}.panel-heading h2 span{float:right;color:#b69bcb;font-size:22px}.control-section{margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;font-size:11px;font-weight:700;color:#6f637a}.section-symbol{color:#b9a5ce;font-size:17px}.range-field{margin-bottom:15px}.range-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.range-heading label{font-size:11px;color:#8b7d94}.range-heading output{font-size:10px;color:#8262ac;font-weight:600;font-variant-numeric:tabular-nums;background:#f1eaf7;border-radius:4px;padding:3px 6px;min-width:35px;text-align:center}input[type=range]{display:block;width:100%;height:15px;accent-color:#9875c8;cursor:pointer;margin:0;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:linear-gradient(to right,#b99bd8 var(--fill,50%),#e9e2ed var(--fill,50%))}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border:3px solid #fcfbf8;border-radius:50%;height:15px;width:15px;background:#9972c7;box-shadow:0 0 0 1px #d8c7e8;margin-top:-5px}input[type=range]{-webkit-appearance:none;appearance:none}.select-field{display:flex;justify-content:space-between;align-items:center;margin:0 0 15px}.select-field label{font-size:11px;color:#8b7d94}select{border:1px solid #e7dfee;border-radius:6px;padding:6px 8px;color:#81669c;background:#f8f4fb;font-size:10px;max-width:150px}.section-divider{border:0;border-top:1px solid var(--line);margin:18px 0}.action-button{background:#7e5bc3;color:#fff;border:0;width:100%;border-radius:10px;padding:14px 12px;font-size:12px;font-weight:700;box-shadow:0 5px 12px #9570c52a;display:flex;justify-content:center;gap:12px}.action-button:hover{background:#6c48b2}.action-note{font-size:9px;text-align:center;color:#afa2b7;margin:9px 0 19px}.physics-section{border-top:1px solid var(--line);padding-top:16px;margin-top:17px}.physics-section summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:#74637f;margin-bottom:15px}.text-button{border:0;background:transparent;font-size:9px;color:#a18aaa;padding:0;margin:0 0 17px}.text-button:hover{color:#7754a0}.palette-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;font-size:10px;color:#8a7b95}#palettes{display:flex;gap:7px}.palette{width:20px;height:20px;border:3px solid #fcfbf8;border-radius:50%;outline:1px solid transparent;padding:0}.palette.active{outline-color:#b5a1c9}.panel-footer{margin-top:23px;padding:17px 12px;background:#f4f0f7;border-radius:10px;display:flex;gap:12px;align-items:center;color:#a18aae}.panel-footer span{font-size:23px;color:#b39acc}.panel-footer p{font-size:10px;line-height:1.6;margin:0}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f5f1e9;z-index:5}.loading h2{font:700 20px 'Manrope',sans-serif;color:#796090}.loading p{font-size:12px;color:#a18fae}.loader-ball{width:35px;height:35px;border-radius:50%;background:#ebaa71;animation:hop .8s infinite alternate ease-in}.loading.hidden{display:none}@keyframes hop{from{transform:translateY(-15px)}to{transform:translateY(5px) scale(1.1,.9)}}#toast{position:absolute;bottom:172px;left:50%;transform:translate(-50%,10px);background:#64517b;color:#fff;border-radius:10px;padding:11px 17px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;max-width:85%;text-align:center;z-index:6}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #e7dced;border-radius:20px;padding:26px;background:#fcfaf7;color:#60516e;width:430px;max-width:92vw;box-shadow:0 20px 100px #32233c30}dialog::backdrop{background:#3d2e4750;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{margin:6px 0;font-family:'Manrope',sans-serif}.dialog-description{font-size:12px;line-height:1.7;color:#9c8ba8;margin-bottom:25px}.empty-recipes{text-align:center;padding:30px 10px;color:#ac99b7;font-size:12px}.recipe{display:flex;gap:8px;align-items:center;border-top:1px solid #e9dfed;padding:12px 0}.recipe-copy{flex:1;font-size:12px}.recipe-copy small{display:block;font-size:9px;color:#a190ab;margin-top:6px}.recipe button{border:0;border-radius:7px;background:#eee5f8;color:#82649f;padding:8px;font-size:10px}.recipe .delete{background:transparent;font-size:18px}.zen .topbar,.zen .scene-nav,.zen .controls,.zen .stage-heading,.zen .mode-bar,.zen .scene-status,.zen .hint,.zen .stage-caption{display:none}.zen .workspace{height:100dvh;min-height:0;grid-template-columns:1fr}.zen .view-tools{top:20px}.zen #camera-reset{display:none}.zen .stage-bottom{bottom:20px}@media(min-width:1600px){.workspace{grid-template-columns:116px minmax(0,1fr) 330px}.controls{padding:30px}.scene-heading{left:45px}}@media(max-width:1100px){.header-note{display:none}.workspace{grid-template-columns:86px minmax(0,1fr) 270px}.controls{padding:24px 18px}.stage-heading{left:24px}.mode-bar{left:24px;top:157px}.scene-status{top:auto;bottom:168px;right:20px}.stage-caption{font-size:7px}.topbar{padding:0 20px}}@media(max-width:760px){.topbar{height:74px;padding:0 14px}.brand{font-size:21px;gap:8px}.brand small{font-size:6px;letter-spacing:1.3px}.brand-mark{transform:scale(.8);width:33px}.header-actions{gap:2px}.button{font-size:10px;padding:9px}.header-actions #sound{display:none}.workspace{height:auto;min-height:0;grid-template-columns:1fr;grid-template-rows:auto 580px auto}.scene-nav{padding:8px 12px;border-bottom:1px solid var(--line);border-right:0}.nav-caption,.nav-foot{display:none}#scene-tabs{display:flex;gap:4px}.scene-tab{margin:0;padding:9px 4px;font-size:8px;border-radius:10px;flex:1;gap:4px}.scene-tab svg{width:25px;height:25px}.scene-tab.active:before{display:none}.stage-heading{top:25px;left:22px}.stage-heading h1{font-size:29px}.stage-heading p{font-size:10px}.mode-bar{top:139px;left:22px}.controls{overflow:visible;border-left:0;padding:25px}.stage-bottom{bottom:15px;gap:13px}.view-tools{top:24px;right:15px}.scene-status{bottom:148px;font-size:8px;right:15px}.stage-caption{font-size:7px}.hint{font-size:9px}#scene-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}#scene-controls>hr{display:none}#scene-controls>.action-button,#scene-controls>.action-note{grid-column:1/-1}.physics-section #world-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.zen .workspace{display:block}.zen .stage{height:100dvh}.panel-footer{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.finish-section{border-top:1px solid var(--line);padding-top:17px;margin-top:18px}.finish-section .select-field{margin-bottom:8px}.finish-section label span{color:#b097ce;margin-left:3px}.finish-section p{font-size:9px;color:#a697af;line-height:1.6;margin:0 0 15px}


.tower-modes{display:flex;gap:5px;background:#eee6f7;border-radius:10px;padding:5px;margin-bottom:20px;grid-column:1/-1}.tower-modes button{border:0;background:transparent;color:#957cab;border-radius:7px;padding:10px 6px;font-size:10px;flex:1;white-space:nowrap}.tower-modes button.active{background:#fff;color:#7955b2;box-shadow:0 2px 8px #6e4f9220;font-weight:700}.density-presets{display:flex;gap:5px;margin:0 0 12px;grid-column:1/-1}.density-presets button{font-size:9px;flex:1;border:1px solid #e2d7ea;background:#f4eff8;padding:7px 2px;border-radius:6px;color:#8a6a9e}.drop-summary{padding:12px;background:#fff4dc;border:1px solid #f1e2bf;border-radius:9px;margin-bottom:16px;grid-column:1/-1}.drop-summary strong{font-size:19px;color:#a67e3f;display:block;font-variant-numeric:tabular-nums}.drop-summary span{font-size:9px;color:#ae9270;display:block;margin-top:4px;line-height:1.5}


.transport .stage-action{background:#f3e8cf;color:#a98243;font-weight:700;font-size:11px;padding:0 12px;min-width:68px;white-space:nowrap}.transport .stage-action:hover{background:#eeddba}


.tower-budget{grid-column:1/-1;background:#f1eafa;border:1px solid #e0d1ef;border-radius:11px;padding:13px;margin-bottom:20px}.limit-toggle{display:flex;align-items:center;gap:10px;cursor:pointer;color:#6c4ba0;font-size:12px;font-weight:700}.limit-toggle input{width:18px;height:18px;accent-color:#7e5bc3}.limit-toggle small{display:block;font-size:9px;font-weight:400;color:#9275ac;margin-top:3px}.tower-budget p{font-size:10px;line-height:1.6;color:#8b759d;margin:10px 0}.tower-budget output{display:block;font-size:12px;font-weight:700;color:#7753a3;margin-bottom:10px;font-variant-numeric:tabular-nums}.tower-budget button{width:100%;background:#fff}.tower-budget button:hover{background:#e7daf5}

#reset-sliders{margin-top:14px;width:100%}

.sound-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.sound-buttons{display:flex;gap:5px;margin-bottom:16px}.sound-buttons button{flex:1;padding:9px 6px}.sound-section p{font-size:10px;line-height:1.6;color:#9c89a9}.sound-buttons [aria-pressed=true]{background:#7e5bc3;color:white}
