@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;450;500;550;600;650;700;750;800&display=swap');
:root{color-scheme:dark;--bg:#111216;--panel:#17181d;--line:#2a2b31;--muted:#8b8d97;--text:#f2f0ec;--accent:#ff9b78;--accent-dark:#35261f;--font:Manrope,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:var(--font);font-size:13px;color:var(--text);min-width:340px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled,select:disabled,input:disabled{opacity:.45;cursor:not-allowed}button,select{transition:background .15s,color .15s,border-color .15s}button:hover{filter:brightness(1.12)}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button[hidden],[hidden]{display:none!important}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text);font-weight:800;letter-spacing:-1px;font-size:25px}.brand-sub{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--muted);margin-left:2px;align-self:center}.brandmark{display:block;position:relative;width:29px;height:31px;background:var(--accent);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}.brandmark:before,.brandmark:after{content:'';position:absolute;background:var(--bg);height:2px;width:32px;top:11px;left:-1px;transform:rotate(30deg)}.brandmark:after{transform:rotate(-30deg)}.brandmark i:first-child{position:absolute;width:2px;height:23px;background:var(--bg);top:14px;left:14px}.top-note{font-size:11px;color:#a4a5ae;display:flex;align-items:center;gap:9px}.status-dot{width:5px;height:5px;display:inline-block;border-radius:50%;background:#b8c79b;box-shadow:0 0 8px #b8c79b45}.icon-text{display:flex;align-items:center;gap:9px;background:none;color:#a4a5ae;font-size:11px;padding:8px 0}.icon-text>span{border:1px solid #55565e;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:10px}.workspace{display:grid;grid-template-columns:260px minmax(360px,1fr) 300px;min-height:calc(100vh - 116px);max-width:1920px;margin:auto}.library{border-right:1px solid var(--line);padding:34px 22px 22px;display:flex;flex-direction:column}.library-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.eyebrow{font-size:9px;color:var(--muted);font-weight:650;letter-spacing:1.4px}.small-tag{font-size:8px;border:1px solid #36373e;border-radius:4px;padding:4px 5px;color:#a9abb3;letter-spacing:.7px}.library h1{font-size:25px;line-height:1.4;letter-spacing:-.8px;font-weight:650;margin:0}.library h1>span{color:var(--accent)}.muted{color:var(--muted)}.library-intro{font-size:11px;line-height:1.8;margin:10px 0 29px}.scene-list{display:flex;flex-direction:column;gap:10px}.scene-card{text-align:left;display:flex;align-items:center;gap:12px;background:#1b1c21;border:1px solid #2a2b31;border-radius:10px;padding:10px;width:100%;min-height:85px;position:relative}.scene-card.selected{background:#26201e;border-color:#a36d53}.scene-card.selected:before{content:'';width:3px;height:26px;position:absolute;left:-23px;top:calc(50% - 13px);background:var(--accent);border-radius:0 3px 3px 0}.scene-thumb{width:56px;height:60px;border-radius:6px;background:#101116;flex-shrink:0;display:grid;place-items:center;overflow:hidden}.scene-thumb svg{width:56px;height:60px}.scene-copy{min-width:0;flex:1}.scene-copy strong{display:block;font-size:11px;font-weight:650;line-height:1.5;margin-bottom:5px}.scene-copy small{font-size:9px;color:var(--muted);display:block;line-height:1.5}.scene-arrow{font-size:13px;color:var(--accent);position:absolute;right:10px;top:9px}.scene-card .scene-tag{display:inline-block;font-size:7px;letter-spacing:.7px;color:var(--accent);margin-top:5px}.library-footer{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:36px;color:#c2c2c9;font-size:10px;line-height:1.7}.library-footer span:not(.mini-orbit){display:block;color:#70727d;font-size:9px}.mini-orbit{font-size:28px;color:#686a75}.studio{padding:27px 40px 15px;display:flex;flex-direction:column;align-items:center;position:relative;background:radial-gradient(ellipse at 50% 42%,#23202744,transparent 65%);min-width:0}.studio-heading{width:100%;max-width:500px;display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.studio h2{font-size:18px;font-weight:600;letter-spacing:-.5px;line-height:1.4;margin:7px 0 0}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:none;border-radius:7px;width:34px;height:34px;color:#a2a3ad;flex-shrink:0}.icon-button:hover{background:#ffffff0a;color:#fff}.studio-heading>.icon-button{border:1px solid #34353c;width:35px;height:35px}.stage-surround{position:relative;display:flex;justify-content:center;width:100%;min-height:0;flex:1;align-items:center}.stage-frame{height:min(640px,calc(100vh - 285px));aspect-ratio:9/16;min-height:360px;max-width:100%;position:relative;box-shadow:0 20px 60px #0006;border:1px solid #39343a;border-radius:12px;overflow:hidden;background:#090b10}canvas#stage{display:block;width:100%;height:100%;touch-action:manipulation;cursor:crosshair}.stage-side-label{writing-mode:vertical-rl;position:absolute;left:calc(50% + min(180px,calc((100vh - 285px)*.28125)) + 15px);top:50%;transform:translateY(-50%);font-size:7px;letter-spacing:2.7px;color:#61616e;white-space:nowrap}.playback{width:100%;max-width:420px;display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:12px}.playback-left{display:flex;align-items:center;gap:9px}.play-button{width:40px;height:40px;display:grid;place-items:center;background:#f0eeea;color:#17181b;border-radius:50%}.play-button svg{width:18px;height:18px;stroke-width:2.5}.playback-time{font-variant-numeric:tabular-nums;font-size:10px;color:#a3a4ad;min-width:39px;margin-left:5px}.format-label{display:flex;align-items:center;gap:7px;color:#bab9c0;font-size:9px}.format-label>span:first-child{width:7px;height:11px;border:1px solid #777882;border-radius:2px}.format-resolution{color:#676974;font-size:8px;margin-left:5px}.interaction-hint{font-size:9px;color:#737580;margin:14px 0 0;text-align:center}.interaction-hint>span{color:#b8aa9e;padding-right:4px}.inspector{padding:34px 24px 20px;border-left:1px solid var(--line);background:#15161a;display:flex;flex-direction:column}.inspector-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;gap:5px}.inspector-heading>.eyebrow{font-size:8px;letter-spacing:1.1px}.text-button{background:none;color:#7f818c;text-decoration:underline;text-underline-offset:3px;font-size:9px;padding:0}.settings-section{padding-bottom:21px;margin-bottom:20px;border-bottom:1px solid var(--line)}.settings-section h3{font-size:11px;font-weight:600;margin:0 0 14px}.palette-list{display:flex;gap:9px}.palette-swatch{padding:4px;background:none;border:1px solid transparent;border-radius:50%;width:38px;height:38px;position:relative}.palette-swatch.selected{border-color:#d8c9bf}.palette-swatch>span{display:block;border-radius:50%;width:28px;height:28px;overflow:hidden;transform:rotate(-40deg)}.palette-swatch>span:after{content:'';display:block;height:50%;width:100%;background:var(--c2)}.field-note{font-size:9px;color:#7e808c;line-height:1.7;margin:8px 0 0}.range-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#bfc0c8;margin:15px 0 9px}.range-label output{color:#eee8e0;font-size:10px;font-variant-numeric:tabular-nums}.range-label:first-of-type{margin-top:0}input[type=range]{appearance:none;width:100%;display:block;height:3px;background:linear-gradient(to right,var(--accent) 0%,var(--accent) var(--fill,40%),#34353c var(--fill,40%),#34353c 100%);border-radius:3px;margin:14px 0 20px;cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border-radius:50%;background:#ffe6d8;border:2px solid var(--accent)}input[type=range]::-moz-range-thumb{width:8px;height:8px;border-radius:50%;background:#ffe6d8;border:2px solid var(--accent)}.toggle-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#bfc0c8;margin-top:16px}.toggle-row label{cursor:pointer}.toggle-row input{appearance:none;display:block;width:27px;height:15px;background:#383941;border-radius:20px;position:relative;margin:0;cursor:pointer}.toggle-row input:after{content:'';position:absolute;width:9px;height:9px;top:3px;left:3px;border-radius:50%;background:#b5b5bd;transition:left .15s}.toggle-row input:checked{background:#78604e}.toggle-row input:checked:after{left:15px;background:#ffba98}.segmented{display:flex;padding:3px;border-radius:7px;background:#101115;border:1px solid #2b2c33;gap:2px}.segmented button{flex:1;padding:7px 3px;font-size:9px;background:none;border-radius:4px;color:#8d8f9b}.segmented button.selected{background:#333239;color:#f1ece7}.emoji-picker{display:flex;justify-content:space-between;gap:4px;margin-top:12px}.emoji-picker button{padding:5px;background:#212228;border-radius:5px;font-size:20px;border:1px solid transparent}.emoji-picker button.selected{border-color:var(--accent)}.upload-label{border:1px dashed #55515a;color:#c8bbb4;display:block;text-align:center;border-radius:6px;padding:11px;margin-top:11px;font-size:10px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-label input{display:none}.compact{margin-bottom:20px;padding-bottom:0;border:0}.field-info{display:grid;place-items:center;width:12px;height:12px;border:1px solid #5c5c67;border-radius:50%;font-size:8px;color:#838491}.seed-input{display:flex;align-items:center;gap:8px;background:#101115;border:1px solid #303138;border-radius:6px;padding:5px 9px;color:#666873}.seed-input input{width:100%;min-width:0;background:none;color:#bbbcc6;border:0;padding:3px 0;font-size:10px;font-variant-numeric:tabular-nums}.seed-input button{font-size:14px;background:none;color:#8c8c97;padding:0 2px}.export-panel{background:#24201e;border:1px solid #4b3830;padding:15px 13px 11px;border-radius:9px;margin-top:auto}.export-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.export-heading h3{font-size:11px;font-weight:600;margin:0}.export-heading>span{font-size:16px;color:var(--accent)}.export-selects{display:flex;gap:8px;margin-bottom:12px}.export-selects label{font-size:8px;color:#a69a93;width:50%}.export-selects select{display:block;width:100%;margin-top:6px;border:1px solid #53453c;background:#282321;color:#e0d1c7;font-size:9px;padding:7px 5px;border-radius:5px}.record-button{display:flex;justify-content:center;align-items:center;gap:9px;background:var(--accent);color:#28201d;padding:12px;border-radius:6px;font-size:11px;font-weight:750;width:100%;min-height:40px}.record-icon{display:inline-block;width:9px;height:9px;border-radius:50%;background:#5b3427}.record-button.recording .record-icon{border-radius:2px}.export-note{font-size:8px;color:#a6978c;text-align:center;line-height:1.5;margin:10px 0 0}.save-button{display:flex;align-items:center;justify-content:center;gap:7px;background:none;color:#898b95;font-size:9px;margin:13px 0 0;padding:4px}.save-button svg{width:13px;height:13px}.bottom-bar{height:38px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 25px;border-top:1px solid var(--line);font-size:8px;color:#757782;letter-spacing:.3px}.bottom-bar>span:nth-child(2){letter-spacing:1.7px;color:#686a74;font-size:7px}.bottom-bar i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#8b9978;margin-right:7px}.bottom-bar>span:last-child{letter-spacing:1px;font-size:7px}.record-badge{position:absolute;top:15px;left:15px;border:1px solid #ffffff20;border-radius:5px;background:#090b10c9;padding:7px 9px;display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1px}.record-badge>span{width:6px;height:6px;border-radius:50%;background:#ff644f;animation:blink 1s infinite}.record-badge strong{font-size:9px;font-variant-numeric:tabular-nums;font-weight:400;margin-left:5px}.record-progress{height:3px;border-radius:3px;background:#655044;margin-top:10px;overflow:hidden}.record-progress>div{height:100%;width:0;background:var(--accent);transition:width .2s}.exit-clean{display:none;position:absolute;top:20px;right:20px;background:#202126c9;color:white;border:1px solid #ffffff25;border-radius:6px;padding:9px 13px;font-size:11px;opacity:.2}.exit-clean:hover,.exit-clean:focus-visible{opacity:1}.clean-view{overflow:hidden}.clean-view .topbar,.clean-view .library,.clean-view .inspector,.clean-view .studio-heading,.clean-view .playback,.clean-view .interaction-hint,.clean-view .bottom-bar,.clean-view .stage-side-label{display:none}.clean-view .workspace,.clean-view .studio{display:block;border:0;padding:0;max-width:none;min-height:100vh;background:#08090c}.clean-view .stage-surround{height:100vh}.clean-view .stage-frame{height:100vh;max-width:100vw;min-height:0;border:0;border-radius:0;box-shadow:none}.clean-view .exit-clean{display:block}.clean-view .record-badge{display:none}.toast{position:fixed;bottom:55px;left:50%;transform:translateX(-50%);max-width:min(90vw,450px);padding:12px 20px;border:1px solid #6e5547;border-radius:8px;background:#2d2622;color:#f2d3bd;box-shadow:0 8px 30px #0007;z-index:20;font-size:11px;line-height:1.6;text-align:center}.toast a{color:#ffd4af;text-underline-offset:3px}dialog{border:1px solid #494047;border-radius:16px;max-width:460px;width:calc(100vw - 32px);padding:26px;background:#1c1c22;color:var(--text);box-shadow:0 20px 100px #000a}dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head .icon-button{font-size:23px}dialog h2{font-weight:600;font-size:30px;letter-spacing:-1px;margin:10px 0 20px;line-height:1.3}dialog p{font-size:12px;color:#a8a8b1;line-height:1.9}dialog .record-button{margin-top:20px}.keyboard-hints{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;margin:20px 0;color:#aaaab4}kbd{font:inherit;background:#33333d;padding:4px 6px;border-radius:4px;color:#ddd8d3;margin-right:4px}@keyframes blink{50%{opacity:.3}}
@media(min-width:1500px){.workspace{grid-template-columns:285px minmax(360px,1fr) 325px}.library{padding:38px 27px 24px}.inspector{padding:38px 28px 24px}.stage-frame{height:min(760px,calc(100vh - 285px))}.scene-card{min-height:96px}.scene-thumb{width:64px;height:67px}.scene-thumb svg{width:64px;height:67px}.scene-copy strong{font-size:12px}.scene-copy small{font-size:10px}.library-intro{font-size:12px}.stage-side-label{left:calc(50% + min(214px,calc((100vh - 285px)*.28125)) + 15px)}}
@media(max-width:1100px){.workspace{grid-template-columns:215px minmax(300px,1fr) 265px}.library{padding:28px 15px 18px}.library h1{font-size:23px}.scene-card{padding:8px;gap:9px;min-height:81px}.scene-thumb{width:45px;height:53px}.scene-thumb svg{width:45px;height:53px}.scene-copy strong{font-size:10px}.scene-copy small{font-size:8px}.scene-card.selected:before{left:-16px}.small-tag{display:none}.studio{padding:24px 25px 16px}.inspector{padding:29px 17px 20px}.inspector-heading>.eyebrow{font-size:7px}.studio h2{font-size:16px}.format-resolution{display:none}.topbar{padding:0 23px}.top-note{font-size:10px}.stage-side-label{display:none}.palette-list{gap:7px}.palette-swatch{width:36px;height:36px}.palette-swatch>span{width:26px;height:26px}}
@media(max-width:850px){.topbar{height:65px;padding:0 20px}.top-note{display:none}.workspace{grid-template-columns:minmax(320px,1fr) 275px;min-height:calc(100vh - 103px)}.library{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px 16px;display:block}.library-heading{margin-bottom:10px}.small-tag{display:inline}.library h1,.library-intro,.library-footer{display:none}.scene-list{flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:3px}.scene-card{min-width:167px;max-width:190px;min-height:72px;flex-shrink:0;padding:7px;gap:9px}.scene-card.selected:before{display:none}.scene-copy strong{font-size:10px}.scene-tag{display:none!important}.scene-arrow{right:7px;top:6px;font-size:10px}.scene-thumb{height:52px;width:44px}.scene-thumb svg{height:52px;width:44px}.studio{padding:21px 25px 16px}.stage-frame{height:min(640px,calc(100vh - 295px));min-height:365px}.inspector{padding-top:25px}.inspector-heading{margin-bottom:23px}.settings-section{padding-bottom:17px;margin-bottom:17px}.bottom-bar{padding:0 20px}.bottom-bar>span:nth-child(2){display:none}.clean-view .library{display:none}}
@media(max-width:600px){.brand{font-size:24px}.brand-sub{font-size:8px}.icon-text{font-size:10px}.topbar{padding:0 17px}.workspace{display:flex;flex-direction:column}.library{padding:15px 17px 12px}.library-heading{margin-bottom:11px}.scene-list{margin-right:-17px;padding-right:17px}.scene-card{min-width:165px}.studio{padding:20px 30px 22px;border-bottom:1px solid var(--line)}.studio-heading{max-width:340px;margin-bottom:17px}.stage-frame{height:auto;width:min(100%,320px);min-height:0;max-height:none}.playback{max-width:340px}.interaction-hint{margin-top:12px}.inspector{border-left:0;padding:24px 25px;display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.inspector-heading{grid-column:1/-1;margin-bottom:24px}.settings-section{min-width:0;margin-bottom:20px;padding-bottom:20px}.physics-section{grid-row:3/5;grid-column:2}.hero-section{grid-row:3/4;grid-column:1}.settings-section.compact{grid-row:4/5;grid-column:1}.mood-section{grid-column:1/-1}.palette-list{gap:13px}.palette-swatch{width:38px;height:38px}.palette-swatch>span{width:28px;height:28px}.export-panel{grid-column:1/-1;margin-top:0}.save-button{grid-column:1/-1;margin-top:16px}.range-label{font-size:9px}.segmented button{font-size:8px;padding:7px 1px}.emoji-picker{flex-wrap:wrap;justify-content:start}.emoji-picker button{font-size:16px;padding:4px}.toggle-row{font-size:9px;gap:6px}.export-selects{gap:12px}.export-selects label{font-size:9px}.export-selects select{font-size:11px;padding:8px}.export-heading h3{font-size:12px}.export-note{font-size:9px}.bottom-bar{height:auto;min-height:48px;flex-direction:column;justify-content:center;gap:5px;font-size:8px}.bottom-bar>span:last-child{font-size:6px}.clean-view .studio{border:0}.clean-view .stage-frame{height:100vh;width:auto}.clean-view .stage-surround{width:100vw}.format-resolution{display:block}.toast{bottom:20px}.record-button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.record-badge>span{animation:none}}

/* Keep canvas pixels square when a narrow panel constrains the preview. */
.stage-frame{height:auto;width:min(100%,360px,calc((100vh - 285px)*.5625));min-height:0;flex-shrink:0}.stage-frame.square{width:min(100%,500px);height:auto;aspect-ratio:1/1;min-height:0}@media(min-width:1500px){.stage-frame{width:min(100%,428px,calc((100vh - 285px)*.5625))}}@media(max-width:850px){.stage-frame{width:min(100%,360px,calc((100vh - 295px)*.5625))}}@media(max-width:600px){.stage-frame{width:min(100%,320px);height:auto}.stage-frame.square{width:min(100%,360px)}}.clean-view .stage-frame{width:auto;height:100vh;max-width:100vw}.clean-view .stage-frame.square{width:min(100vw,100vh);height:min(100vw,100vh)}

/* Inspector may scroll; preview keeps its own compact height. */
.studio{align-self:start;width:100%}.stage-surround{flex:none}.studio-heading{flex-shrink:0}.studio{padding-top:27px}@media(max-width:850px){.studio{padding-top:21px}}@media(max-width:600px){.studio{padding-top:20px}}

/* The preview and game choices are the focus. */
.topbar,.bottom-bar,.library-heading,.library h1,.library-intro,.library-footer,.stage-side-label,.interaction-hint,.studio-heading .eyebrow,.inspector-heading .eyebrow,.field-note:not(#exportNote),.scene-arrow{display:none!important}
.site-title{padding:16px 24px;border-bottom:1px solid var(--line);font-size:18px;font-weight:700;letter-spacing:.02em}.site-title span{font-weight:400;color:#a8a8b1}.clean-view .site-title{display:none}@media(max-width:600px){.site-title{padding:12px 17px;font-size:16px}}
.workspace{min-height:100vh}.library{padding-top:24px}.scene-card{min-height:72px}.scene-copy strong{margin:0}.studio{padding-top:24px}.studio-heading{margin-bottom:12px}.studio h2{margin:0}.stage-frame{width:min(100%,420px,calc((100vh - 145px)*.5625))}.inspector{padding-top:24px}.inspector-heading{justify-content:flex-end;margin-bottom:16px}.export-heading>span{display:none}
@media(max-width:850px){.workspace{min-height:100vh}.library{padding-top:12px}.studio{padding-top:16px}.stage-frame{width:min(100%,360px,calc((100vh - 185px)*.5625))}}
@media(max-width:600px){.stage-frame{width:min(100%,320px)}.library{padding-top:12px}.inspector{padding-top:18px}}
