@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Patrick+Hand&display=swap";@media(max-width:800px){.app .inspector{top:132px}.app .header-actions{min-width:0;overflow-x:auto;white-space:nowrap}.app .header-actions button,.app .brand{flex-shrink:0}}@media(max-width:480px){.app .header-actions #import,.app .header-actions #examples{display:block}}:root{font-family:DM Sans,system-ui,sans-serif;color:#33372f;background:#f7f5ee;font-synthesis:none;--paper:#f7f5ee;--ink:#33372f;--muted:#85877b;--line:#deded3;--yellow:#f2c657;--green:#365b4d}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #b68d2e;outline-offset:3px}button{border:1px solid var(--line);background:transparent;border-radius:7px;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#ebe9df}button:active:not(:disabled){transform:translateY(1px)}.app{height:100dvh;min-height:560px;display:flex;flex-direction:column;overflow:hidden}.header{height:81px;flex-shrink:0;padding:0 28px;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);background:var(--paper)}.brand{font-size:35px;letter-spacing:-2px;font-weight:700;display:flex;align-items:center;gap:10px}.brand i{display:inline-block;width:23px;height:23px;background:var(--yellow);border:2px solid var(--ink);border-radius:50%;box-shadow:4px 4px #e4e2d8}.brand small{font-size:11px;letter-spacing:1.5px;font-weight:500;text-transform:uppercase;border-left:1px solid var(--line);padding-left:21px;margin-left:5px;color:var(--muted);line-height:1.6}.header-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.header-actions button{padding:9px 13px;font-size:12px}.header-actions .save{background:var(--ink);color:#fff;border-color:var(--ink)}.saved{font-size:11px;color:var(--muted);margin-right:8px}.workspace{display:flex;flex:1;min-height:0}.sidebar{width:210px;flex-shrink:0;border-right:1px solid var(--line);padding:25px 16px 18px;overflow:auto;background:#f4f2e9;display:flex;flex-direction:column}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:var(--muted);font-weight:700;margin:0 0 14px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.tool{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-color:transparent;font-size:10px}.tool svg{width:20px;height:20px}.tool.active,.part-button.active{background:#ece5cc;border-color:#d4bc76}.divider{height:1px;background:var(--line);margin:21px 0}.palette{display:grid;grid-template-columns:1fr 1fr;gap:8px}.part-button{height:77px;border:1px solid #e0dfd4;background:#faf9f3;font-size:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.part-button svg{width:39px;height:31px;overflow:visible}.palette-note{font-family:Patrick Hand,cursive;font-size:17px;line-height:1.3;color:#89897b;transform:rotate(-3deg);text-align:center;margin:16px 0}.sidebar-foot{margin-top:auto;padding-top:18px;font-size:10px;color:var(--muted);line-height:1.7}.canvas-column{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}.canvas-top{padding:22px 26px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.machine-name{width:100%;max-width:320px;background:transparent;border:0;color:var(--ink);font-size:18px;font-weight:600;padding:0;text-overflow:ellipsis}.machine-meta{font-size:11px;color:var(--muted);margin-top:5px}.canvas-actions{display:flex;gap:6px}.icon-button{width:32px;height:32px;display:grid;place-items:center}.icon-button svg{width:17px;height:17px}.stage{flex:1;min-height:0;position:relative;margin:0 14px;border:1px solid #ddded3;border-radius:9px;background:#fbfaf5;overflow:hidden}.stage canvas{display:block;width:100%;height:100%;touch-action:none}.stage-label{position:absolute;top:17px;left:20px;display:flex;gap:7px;align-items:center;font-size:10px;letter-spacing:1.5px;color:#97988b;text-transform:uppercase;pointer-events:none}.stage-label span{width:5px;height:5px;background:#90a28b;border-radius:50%}.viewport-controls{position:absolute;bottom:15px;right:16px;display:flex;align-items:center;gap:2px;background:#fbfaf5ef;border:1px solid var(--line);padding:3px;border-radius:7px}.viewport-controls button{border:0;width:28px;height:26px}.viewport-controls output{font-size:10px;min-width:38px;text-align:center}.hint{position:absolute;bottom:20px;left:20px;right:160px;font-size:11px;line-height:1.5;color:var(--muted);pointer-events:none}.transport{height:88px;display:flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0}.play{background:var(--green);color:#fff;border-color:var(--green);min-width:128px;height:41px;font-size:12px;font-weight:600;display:flex;gap:9px;justify-content:center;align-items:center}.play:hover:not(:disabled){background:#274638}.play svg{height:15px;width:15px}.transport .reset{height:41px;padding:0 13px;font-size:12px}.transport select{border:0;background:transparent;font-size:12px;color:#74786c;padding:8px}.time{font:12px ui-monospace,monospace;color:#8b8f81;min-width:61px}.inspector{width:225px;flex-shrink:0;border-left:1px solid var(--line);padding:25px 20px;overflow:auto;background:#f7f5ee}.inspector h2{font-size:18px;letter-spacing:-.4px;font-weight:600;margin:0 0 5px}.inspector .description{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 23px}.field{display:block;margin-bottom:17px;font-size:11px}.field-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.field output{font:11px ui-monospace,monospace;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--green);height:5px;cursor:pointer}input[type=checkbox]{accent-color:var(--green)}.check{display:flex;align-items:center;gap:7px;font-size:11px;margin-bottom:17px}.swatches{display:flex;gap:7px;margin:10px 0 22px}.swatch{width:23px;height:23px;border-radius:50%;border:2px solid transparent}.swatch.active{outline:1px solid #33372f;outline-offset:2px}.row{display:flex;gap:7px}.row button{flex:1;padding:8px;font-size:11px}.inspector .tip{padding:14px 12px;background:#eeece1;border-radius:6px;color:#7b7e70;font-size:11px;line-height:1.8;margin-top:23px}.empty-sketch{font-family:Patrick Hand,cursive;font-size:23px;text-align:center;color:#818777;margin:32px 0;transform:rotate(-4deg);line-height:1.4}.footer{height:34px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 25px;font-size:10px;color:#8a8d7f;border-top:1px solid var(--line);background:#f2f0e7}.footer b{font-weight:500;color:#555f4e}.footer-right{display:flex;gap:17px}.footer button{border:0;padding:0;font-size:10px;color:#737b69}.toast{position:fixed;bottom:116px;left:50%;transform:translate(-50%);background:#333d31;color:#fff;border-radius:9px;padding:13px 22px;font-size:12px;z-index:20;box-shadow:0 5px 25px #0002;max-width:85vw;pointer-events:none}.toast:empty{display:none}dialog{width:min(590px,90vw);border:1px solid #c7c8ba;border-radius:13px;background:var(--paper);padding:30px;color:var(--ink);box-shadow:0 20px 70px #0002}dialog::backdrop{background:#33372f55;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}dialog h2{font-size:25px;margin:0 0 10px}dialog p{font-size:13px;color:#777e6d;line-height:1.8}dialog .close{float:right;width:30px;height:30px}.example-card{display:block;width:100%;text-align:left;padding:17px;margin-top:12px;background:#fdfcf7}.example-card strong{display:block;font-size:14px}.example-card span{display:block;font-size:12px;color:#7a806e;margin-top:6px}.shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:12px;line-height:1.8}.shortcuts kbd{display:inline-block;min-width:30px;padding:1px 6px;border:1px solid #deded3;background:#fffdf6;border-radius:4px;font-size:10px;margin-right:5px}.mobile-inspector{display:none}.no-js{padding:40px}.run-lock{opacity:.55;pointer-events:none}@media(min-width:1600px){.sidebar{width:230px;padding:28px 23px}.inspector{width:250px;padding:28px 25px}.header{height:90px}.canvas-top{padding-top:28px}}@media(max-width:1100px){.inspector{width:195px;padding:23px 14px}.sidebar{width:175px;padding:23px 11px}.brand small{display:none}.header{padding:0 20px}.saved{display:none}.canvas-top{padding:20px 17px}.header-actions{gap:5px}.header-actions button{padding:8px 10px}}@media(max-width:800px){.app{min-height:480px}.header{height:64px;padding:0 14px}.brand{font-size:29px}.header-actions button{font-size:11px;padding:8px}.header-actions .export-label{display:none}.sidebar{width:120px;padding:17px 8px}.tool-grid{grid-template-columns:repeat(2,1fr)}.palette{gap:5px}.part-button{height:67px;font-size:9px}.part-button svg{width:30px;height:25px}.sidebar .eyebrow{font-size:8px;letter-spacing:1px}.palette-note,.sidebar-foot{display:none}.divider{margin:14px 0}.inspector{display:none;position:absolute;right:0;top:64px;bottom:34px;z-index:5;width:215px;box-shadow:-10px 0 30px #0001}.inspector.open{display:block}.mobile-inspector{display:grid}.canvas-top{padding:15px 12px}.machine-name{font-size:15px;max-width:200px}.machine-meta{font-size:9px}.stage{margin:0 8px}.hint{font-size:9px;bottom:50px;right:15px;left:12px}.stage-label{font-size:8px;left:12px}.transport{gap:7px;height:77px}.play{min-width:94px}.transport .reset{padding:0 10px}.time{display:none}.footer{padding:0 12px;font-size:9px}.footer-right span{display:none}.viewport-controls{right:10px;bottom:10px}}@media(max-width:480px){.header-actions button{padding:6px}.header-actions #import,.header-actions #examples{display:none}.sidebar{width:102px}.part-button{height:61px}.palette{gap:3px}.canvas-top{padding:13px 9px}.canvas-actions{gap:3px}.machine-name{max-width:130px}.machine-meta{max-width:145px}.icon-button{width:27px;height:29px}.transport{gap:3px}.transport select{padding:5px;font-size:10px}.transport .reset{font-size:11px}.play{min-width:90px;font-size:11px}.stage-label{max-width:135px;line-height:1.5}.footer{font-size:8px}.footer-right{gap:5px}}.part-search{width:100%;padding:10px;border:1px solid #deded3;border-radius:7px;background:#fcfbf6;font-size:11px;margin-bottom:8px}.wide-button{display:block;width:100%;padding:9px 6px;font-size:11px;margin:8px 0 13px;background:#faf8f0}.custom-entry{display:flex;gap:3px;margin:6px 0}.custom-entry button{font-size:11px;padding:8px}.custom-entry button:first-child{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis}.camera-row{display:flex;align-items:center;justify-content:center;gap:15px;padding:11px 10px 0;font-size:10px;flex-shrink:0;flex-wrap:wrap}.camera-row label{display:flex;align-items:center;gap:5px;white-space:nowrap}.camera-row select{background:transparent;border:1px solid #d8dbcc;padding:5px;border-radius:5px;font-size:11px;color:#53634b;max-width:140px}.camera-row button{padding:6px;font-size:10px}.camera-row input[type=number]{width:49px;border:1px solid #d8dbcc;background:#fcfbf6;padding:4px;font-size:10px}.transport{height:70px}.stage #minimap{position:absolute;top:15px;right:15px;width:180px;height:112px;background:#fbfaf5e8;border:1px solid #d5d9c8;border-radius:6px;box-shadow:0 3px 15px #58614112;cursor:crosshair;opacity:.92}.precise-field{display:flex;align-items:center;gap:9px}.precise-field input[type=range]{min-width:0;flex:1}.precise-field input[type=number]{width:63px;flex-shrink:0;padding:5px 3px;border:1px solid #deded3;border-radius:4px;background:#fffdf7;color:#4e5e44;font-size:11px}.inspector .field select{display:block;width:100%;margin-top:8px;padding:7px;font-size:11px;background:#fcfbf6;border:1px solid #d8dbcc;border-radius:5px}.inspector h2{overflow-wrap:anywhere}.catalog-dialog{max-height:85dvh;width:min(800px,92vw);overflow-y:auto}.catalog-dialog article{display:grid;grid-template-columns:1fr auto;gap:5px 18px;border-bottom:1px solid #dcdece;padding:14px 0}.catalog-dialog article b{font-size:14px}.catalog-dialog article p{margin:0;grid-column:1;line-height:1.5;font-size:12px}.catalog-dialog article button{grid-column:2;grid-row:1/3;padding:8px 12px;font-size:11px;align-self:center}.builder-dialog{width:min(950px,95vw);max-height:92dvh;overflow:auto}.builder-dialog>p{margin-bottom:18px}.builder-layout{display:grid;grid-template-columns:280px 1fr;gap:28px}.builder-layout canvas{width:100%;height:auto;background:#fbfaf5;border:1px solid #dddccf;border-radius:9px;margin-bottom:18px}.builder-layout .field input,.builder-layout .field select{display:block;width:100%;padding:8px;margin-top:7px;border:1px solid #d4d8c7;background:#fffcf4;border-radius:5px;font-size:12px}.builder-layout .row{align-items:center}.builder-layout .row .field{width:65px;margin-bottom:10px}.builder-layout .row button{font-size:11px;min-height:35px}.piece-header{font-size:11px;margin-bottom:10px;color:#828b76}.piece-row{display:grid;grid-template-columns:42px repeat(5,minmax(30px,1fr)) 24px;gap:4px;margin-bottom:9px}.piece-row input,.piece-row select{min-width:0;width:100%;padding:8px 2px;border:1px solid #d8ddca;background:#fffdf6;border-radius:4px;font-size:11px}.piece-row button{padding:0}.builder-footer{display:flex;gap:25px;align-items:center;justify-content:space-between;border-top:1px solid #dfe1d4;margin-top:20px;padding-top:18px}.builder-footer span{font-size:11px;color:#818878;max-width:400px}.builder-footer button{flex-shrink:0;padding:0 15px}#builder-error{color:#ab4e3c;font-size:12px}.tool-grid{grid-template-columns:repeat(3,1fr)}.tool{font-size:9px}.part-button{position:relative}.part-button svg{max-width:100%}@media(max-width:1100px){.stage #minimap{width:135px;height:84px;right:10px;top:35px}.camera-row{gap:7px}.builder-layout{grid-template-columns:220px 1fr;gap:18px}}@media(max-width:800px){.tool-grid{grid-template-columns:repeat(2,1fr)}.stage #minimap{width:110px;height:68px}.camera-row{padding-top:7px;gap:5px;font-size:9px}.camera-row select{font-size:10px;max-width:117px}.camera-row button{font-size:9px}.transport{height:66px}.builder-layout{grid-template-columns:1fr}.builder-layout canvas{width:180px;float:right;margin:0 0 15px 15px}.builder-layout .field{max-width:250px}.builder-dialog{padding:20px}.builder-dialog h2{font-size:21px}.builder-footer span{max-width:180px}.catalog-dialog article{grid-template-columns:1fr}.catalog-dialog article button{grid-column:1;grid-row:auto;justify-self:start}.part-search{padding:8px 5px;font-size:10px}.wide-button{font-size:10px}.custom-entry button{font-size:9px;padding:6px}.camera-row label:has(#snap){font-size:9px}}@media(max-width:480px){.stage #minimap{width:86px;height:54px;top:40px;right:6px}.camera-row{justify-content:flex-start;padding-left:9px}.camera-row select{max-width:105px}.builder-layout canvas{width:120px}.builder-footer{gap:8px}.builder-footer span{max-width:120px}.piece-row{grid-template-columns:33px repeat(5,minmax(24px,1fr)) 22px;gap:2px}.piece-row input{font-size:10px}.builder-layout .field{max-width:200px}}[hidden]{display:none!important}@media(max-width:480px){.app .transport{height:auto;min-height:82px;flex-wrap:wrap;padding:8px 5px;gap:5px}.app .transport .play{min-width:90px}.app .transport .reset{max-width:70px}.app .transport select{max-width:80px}}:root{--muted:#626958;--line:#d4d6c8}.app{min-height:600px}.header{height:68px}.brand small{font-size:10px;color:#626958}.saved{color:#626958}button,summary{touch-action:manipulation}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #765707;outline-offset:3px}.header-actions button{min-height:44px}.sidebar{width:244px;padding:20px 15px}.sidebar .eyebrow{color:#59634f}.sidebar-foot{font-size:12px;color:#59634f}.part-search{font-size:14px;padding:12px;min-height:44px}.part-categories{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.part-categories button{padding:7px 9px;min-height:36px;font-size:12px}.part-categories button[aria-pressed=true]{background:#365b4d;color:#fff;border-color:#365b4d}#library-status{font-size:12px;color:#59634f;min-height:18px}.palette{gap:8px}.part-button{font-size:12px;height:84px;color:#36412f}.part-button.active{border:2px solid #795c13;background:#f0e6c8}.part-button:hover{border-color:#829277}.wide-button{font-size:12px;min-height:44px}.custom-entry button{min-height:44px;font-size:12px}.palette-note{display:none}.canvas-top{padding:16px 20px 8px}.canvas-actions{align-items:center}.machine-meta{font-size:12px;color:#59634f}.canvas-actions button{min-height:44px;min-width:44px}.playback-status{font-size:12px;line-height:1.5;color:#59634f;margin:0 20px 10px}.stage{margin:0 12px}.stage-label{color:#59634f}.hint{font-size:12px;color:#59634f;bottom:16px;right:190px;background:#fbfaf5d9;border-radius:4px;padding:3px 5px;max-width:480px}.tool-dock{display:flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;padding:8px;margin:8px 12px 0;border:1px solid #d4d6c8;border-radius:12px;background:#fdfbf4;box-shadow:0 3px 10px #303b2c08}.tool-dock .tool{position:relative;flex-direction:row;gap:6px;min-height:44px;height:44px;padding:7px 10px;font-size:12px;border:1px solid transparent}.tool-dock .tool.active{background:#ece5cc;border-color:#b99b4c}.tool-dock .tool svg{width:19px;height:19px}.tool-dock kbd{font:10px ui-monospace,monospace;color:#626958;background:#f2f0e6;border-radius:3px;padding:2px 4px}.connect-tools{position:relative}.connect-tools summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 12px;font-size:12px;border-radius:6px}.connect-tools[open] summary{background:#ece5cc}.connect-tools>div{position:absolute;bottom:52px;right:0;display:flex;gap:6px;padding:8px;background:#fffdf7;border:1px solid #bfc5b4;border-radius:9px;box-shadow:0 6px 22px #3332;z-index:6}.connect-tools .tool.active{border:2px solid #795c13}.camera-row{padding:8px 12px 0;gap:10px;font-size:12px}.camera-row select,.camera-row button{min-height:36px;font-size:12px}.camera-row input[type=checkbox]{width:20px;height:20px}.camera-row input[type=number]{min-height:36px;width:60px;font-size:12px}.transport{height:64px;gap:8px;padding:8px}.transport button,.transport select{min-height:44px;font-size:12px}.transport #back-build{padding:7px 12px;background:#ece5cc}.time{color:#59634f}.viewport-controls{padding:3px}.viewport-controls button{width:40px;height:38px;font-size:18px}.viewport-controls output{font-size:12px}.stage #minimap{top:44px}.inspector{width:265px;padding:20px 16px}.inspector .description,.inspector .tip{font-size:12px;color:#59634f}.field{font-size:12px;margin-bottom:15px}.field output{font-size:12px;color:#59634f}.precise-field input[type=number]{font-size:13px;width:78px;min-height:36px}.precise-field input[type=range]{height:24px}.inspector .field select{font-size:13px;min-height:44px}.advanced-settings{margin:16px 0;border-top:1px solid #d4d6c8;border-bottom:1px solid #d4d6c8}.advanced-settings summary{cursor:pointer;min-height:44px;padding:14px 0;font-size:12px;font-weight:600}.advanced-settings[open] summary{margin-bottom:10px}.swatches{flex-wrap:wrap;gap:5px}.swatch{width:32px;height:32px}.row button{min-height:44px;font-size:12px}.check{font-size:12px;min-height:36px}.check input{width:20px;height:20px}.selection-actions{position:absolute;top:8px;left:50%;transform:translate(-50%);display:flex;gap:4px;padding:5px;border:1px solid #c7cebb;background:#fffdf7f5;border-radius:8px;box-shadow:0 4px 16px #3331;max-width:calc(100% - 20px);overflow:auto;z-index:3}.selection-actions button{padding:5px 9px;min-height:36px;font-size:12px;white-space:nowrap}.lesson{position:absolute;top:48px;left:14px;width:min(300px,calc(100% - 28px));padding:16px;background:#fffdf4f5;border:1px solid #b6beaa;border-radius:10px;box-shadow:0 6px 24px #3331;z-index:4;font-size:13px}.lesson p{line-height:1.6;margin:8px 0;color:#59634f}.lesson button{min-height:44px;padding:8px 12px;margin-right:8px}.lesson #lesson-next{background:#365b4d;color:#fff}.footer{height:44px;font-size:11px}.footer button{font-size:12px;min-height:36px}.footer-right{gap:12px;align-items:center}.footer-right>span{display:none}.footer b{color:#46523d}dialog .close{width:44px;height:44px}dialog p{color:#59634f}.toast{font-size:13px}@media(min-width:1600px){.sidebar{width:260px}.inspector{width:280px}.header{height:72px}}@media(max-width:1200px){.sidebar{width:210px;padding:16px 12px}.inspector{width:230px;padding:16px 12px}.tool-dock .tool{padding:7px}.tool-dock kbd,.brand small{display:none}.camera-row{gap:6px}}@media(max-width:900px){.app{min-height:500px}.header{height:60px;padding:0 12px}.header-actions{gap:4px}.header-actions button{font-size:11px;padding:7px}.saved{display:none}.sidebar{display:none;position:absolute;left:8px;top:120px;bottom:10px;z-index:8;width:min(290px,calc(100vw - 16px));border:1px solid #c7cebb;border-radius:10px;box-shadow:8px 5px 30px #3333}.sidebar.open{display:flex}.inspector{display:none;position:absolute;top:120px;right:8px;bottom:10px;z-index:8;width:min(290px,calc(100vw - 16px));border:1px solid #c7cebb;border-radius:10px;box-shadow:-8px 5px 30px #3333}.inspector.open{display:block}.mobile-inspector{display:flex;align-items:center;justify-content:center}.canvas-top{padding:10px 12px 5px}.canvas-actions{gap:6px}.playback-status{margin:0 12px 7px}.tool-dock{margin:6px 8px 0;justify-content:flex-start;gap:2px;overflow:visible;padding:5px}.tool-dock>.tool{flex:1;flex-direction:column;height:52px;font-size:11px;gap:3px;padding:4px}.tool-dock .connect-tools{flex:1}.connect-tools summary{padding:5px;justify-content:center;font-size:11px;min-height:52px}.camera-row{padding-top:4px;font-size:11px}.camera-row select{max-width:135px}.camera-row select,.camera-row button{font-size:11px;min-height:32px}.transport{height:60px}.stage{margin:0 8px}.stage #minimap{width:125px;height:78px;top:43px}.footer{height:40px;padding:0 12px}.footer-right{gap:8px}.hint{font-size:11px;right:195px}.part-button{height:84px;font-size:13px}.tool-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:540px){.brand{font-size:27px}.header-actions #save,.header-actions #import,.header-actions #export{display:none}.header-actions #new,.header-actions #examples{display:block}.machine-name{font-size:15px;max-width:155px}.machine-meta{display:none}.canvas-actions{gap:3px}.canvas-actions button{min-width:38px;min-height:44px}.canvas-top{padding:7px 8px}.canvas-actions #parts-toggle{font-size:11px;padding:4px}.playback-status{font-size:11px;min-height:32px;margin-bottom:4px}.tool-dock>.tool{font-size:10px;padding:3px;min-width:0}.tool-dock .tool svg{height:18px;width:18px}.connect-tools summary{font-size:10px}.camera-row{justify-content:center;gap:5px;padding:4px 6px 0}.camera-row label{font-size:11px}.camera-row select{max-width:115px}.camera-row #minimap-toggle{max-width:75px;padding:3px}.app .transport{height:auto;min-height:60px;padding:6px;gap:5px;flex-wrap:wrap}.transport #step{display:none}.transport select{max-width:75px}.transport .play{min-width:90px}.transport .reset{max-width:72px;padding:5px}.transport #back-build{padding:5px;font-size:11px}.footer{padding:0 8px}.footer>span{font-size:10px}.footer-right{gap:5px}.footer button{font-size:10px}.footer #trails{display:none}.hint{right:8px;bottom:58px;max-width:calc(100% - 16px)}.stage #minimap{width:86px;height:54px}.viewport-controls{bottom:8px;right:8px}.selection-actions{top:5px}.selection-actions button{font-size:11px;padding:4px 7px}.lesson{top:40px;width:calc(100% - 28px);font-size:12px;padding:12px}.sidebar,.inspector,.app .inspector{top:125px;bottom:8px}.swatch{width:36px;height:36px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}.colour-picker{display:flex;align-items:center;justify-content:space-between;font-size:13px}.colour-picker input{width:50px;height:36px;padding:2px;border:1px solid #bfc5b4;border-radius:5px;background:#fffdf7}.file-menu{display:none;position:relative}.file-menu summary{min-height:44px;padding:10px;cursor:pointer;list-style:none}.file-menu>div{position:absolute;right:0;top:48px;z-index:12;display:grid;gap:5px;padding:8px;width:170px;background:#fffdf7;border:1px solid #bfc5b4;border-radius:8px;box-shadow:0 5px 20px #3332}.file-menu button{min-height:44px;text-align:left;font-size:12px}@media(max-width:540px){.file-menu{display:block}.header-actions{overflow:visible!important}.header-actions .file-menu button{display:block!important}.footer-right #grid{display:none}}.sidebar .palette{display:block}.part-section{display:flex;flex-direction:column;margin-bottom:20px}.part-section h3{position:sticky;top:-20px;z-index:1;margin:0;padding:12px 4px 8px;background:#f4f2e9;color:#526048;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid #d4d6c8}.part-section .part-button{display:flex;flex-direction:row;justify-content:flex-start;gap:12px;width:100%;min-height:46px;height:auto;padding:8px 7px;font-size:13px;text-align:left;border-radius:5px;border:1px solid transparent;background:transparent;line-height:1.4}.part-section .part-button svg{width:36px;height:27px;flex-shrink:0}.part-section .part-button:hover{background:#ebe9df;border-color:#c5ccb9}.part-section .part-button.active{background:#ece5cc;border-color:#b99b4c}.sidebar .sidebar-foot{display:none}#library-status{font-size:11px;margin:0 0 10px}.sidebar>#edit-tools>.eyebrow{font-size:12px;letter-spacing:1px}.custom-parts h3{margin:0;padding:12px 4px 8px;color:#526048;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;border-bottom:1px solid #d4d6c8}#follow-ball{padding:6px 10px}#follow-ball[aria-pressed=true]{background:#365b4d;border-color:#365b4d;color:#fff}#stage>.part-popover{display:block;position:absolute;left:12px;top:12px;right:auto;bottom:auto;z-index:7;width:276px;max-width:calc(100% - 16px);height:auto;max-height:calc(100% - 16px);overflow:auto;padding:16px;background:#fffdf6f7;border:1px solid #bfc8b2;border-radius:12px;box-shadow:0 10px 35px #34402930;overscroll-behavior:contain;scrollbar-width:thin;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}#stage>.part-popover>.eyebrow{padding-right:35px;margin-bottom:8px}.part-popover h2{padding-right:30px}.part-popover .description{margin-bottom:16px}.popover-close{position:sticky;top:0;float:right;z-index:2;width:36px;min-height:36px;margin:-6px -6px 0 0;background:#fffdf6;font-size:22px}.part-popover .empty-sketch{display:none}.part-popover .field{margin-bottom:12px}#selection-actions{transform:none;left:0;top:0;bottom:auto;padding:4px;z-index:5;max-width:calc(100% - 16px);width:max-content}.canvas-actions #properties{display:none}#world-settings{padding:5px 9px}@media(max-width:900px){.part-section h3{top:-16px}.part-section .part-button{min-height:48px;font-size:14px}.app #stage>.part-popover{width:260px;top:12px;bottom:auto}.sidebar{bottom:12px}.part-popover .field{font-size:12px}}@media(max-width:540px){.app #stage>.part-popover{width:240px;font-size:12px}.part-popover .precise-field input[type=number]{width:70px}.part-popover .eyebrow,.camera-row #world-settings{font-size:10px}.selection-actions button{min-height:36px}}.settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.settings-header>strong{font-size:13px}.settings-header .popover-close{position:static;float:none;flex-shrink:0;margin:0;width:44px;min-height:44px}.settings-footer{display:none}.settings-content{min-width:0}.library-drawer-header{display:none}#settings-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#27352e66;z-index:100;touch-action:none}@media(max-width:700px),(pointer:coarse)and (max-width:1100px){.app{height:100dvh;min-height:0}.workspace,.canvas-column{min-height:0}.app #stage>.part-popover{position:fixed;inset:var(--settings-top,0px) 0 auto auto;z-index:101;display:flex;flex-direction:column;width:min(400px,100vw);max-width:100vw;height:var(--settings-height,100dvh);max-height:100dvh;padding:0;border-radius:0;border-width:0 0 0 1px;background:#fffdf6;overflow:hidden;-webkit-backdrop-filter:none;backdrop-filter:none;animation:settings-slide-in .18s ease-out}.settings-header{padding:max(12px,env(safe-area-inset-top)) 16px 12px;margin:0;border-bottom:1px solid #d4d6c8;flex-shrink:0}.settings-header>strong{font-size:16px}.settings-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 20px 24px;-webkit-overflow-scrolling:touch}.settings-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid #d4d6c8;background:#fffdf6}.settings-footer small{font-size:12px;color:#626958}#save-properties{min-width:96px;min-height:48px;font-size:16px;font-weight:600;background:#365b4d;border-color:#365b4d;color:#fff}.part-popover input:not([type=range]):not([type=checkbox]):not([type=color]),.part-popover textarea,.part-popover select{font-size:16px!important;min-height:44px}.part-popover input[type=range]{height:44px}.part-popover input[type=checkbox]{width:24px;height:24px}.part-popover .swatch{width:44px;height:44px}.part-popover button,.part-popover summary{min-height:44px}.part-popover .field{font-size:14px}.part-popover .field output{font-size:13px}.app .canvas-actions #properties{display:flex}.canvas-actions #properties:disabled{opacity:.35}.app .sidebar{display:none;position:fixed;inset:max(64px,env(safe-area-inset-top)) auto max(12px,env(safe-area-inset-bottom)) 8px;z-index:20;width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 76px);border:1px solid #c7cebb;border-radius:10px;box-shadow:8px 5px 30px #3333}.app .sidebar.open{display:flex}.sidebar input,.sidebar select{font-size:16px}.sidebar .part-button,.sidebar .template-option,.sidebar summary{min-height:48px}.mobile-inspector{display:flex;align-items:center;justify-content:center}.library-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-16px;z-index:4;flex-shrink:0;margin:-16px -12px 12px;padding:12px;background:#f4f2e9;border-bottom:1px solid #d4d6c8;font-size:15px}.library-drawer-header button{width:44px;min-height:44px;font-size:24px}.selection-actions button{min-height:44px;min-width:44px}.viewport-controls button{width:44px;height:44px}.viewport-controls output{font-size:12px}.hint{display:none}.camera-row button,.camera-row select{min-height:44px;font-size:12px}.tool-dock{flex-shrink:0}.tool-dock .tool,.connect-tools summary{min-width:44px;min-height:48px}.header,.footer,.transport{padding-bottom:max(6px,env(safe-area-inset-bottom))}.footer{height:40px;min-height:40px}.stage-label{pointer-events:none}.app .machine-name{min-height:44px;font-size:16px}.part-popover .description,.part-popover .tip,.ending-note{font-size:13px}}@media(max-width:540px){.tool-dock{flex-wrap:nowrap;gap:0}.tool-dock>.tool{flex:1 1 0;min-width:40px}.connect-tools{flex:1 1 0}.connect-tools summary{padding:3px;min-width:40px}.camera-row #minimap-toggle{display:none}.camera-row #world-settings{font-size:11px}.camera-row{gap:4px}.playback-status{font-size:11px;margin-bottom:4px}.canvas-top{gap:4px}.canvas-actions #properties{min-width:44px}.app .machine-name{max-width:120px}.footer-right{gap:3px}.footer #start-lesson,.footer #help{min-width:36px}}@media(max-height:600px)and (max-width:1100px){.app{min-height:0}.playback-status,.machine-meta,.footer{display:none}.header{height:48px;min-height:48px}.canvas-top{padding:2px 8px}.transport{min-height:48px!important;padding:3px!important}.tool-dock{margin-top:2px;padding:2px}.tool-dock>.tool,.connect-tools summary{min-height:44px;height:44px}.camera-row{padding-top:0}.stage #minimap{display:none}}@keyframes settings-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}@media(max-width:540px){.app .header-actions>#new,.app .header-actions>#examples,.app .header-actions>#import{display:none}.canvas-top>div:first-child{min-width:0;flex:1}.canvas-actions{flex-shrink:0}.header-actions>.file-menu summary{min-width:60px}.app .machine-name{max-width:100%;width:100%}}@media(prefers-reduced-motion:reduce){.app #stage>.part-popover{animation:none}}.ending-templates-button{margin:10px 0 14px;width:100%;min-height:44px;padding:10px;text-align:left;font-size:12px;background:#ece5cc;border-color:#c8b67d}.template-dialog{width:min(820px,94vw);max-height:90dvh;overflow:auto}.template-search{width:100%;padding:12px;font-size:14px;border:1px solid #c6ceba;border-radius:8px;background:#fffdf7;position:sticky;top:0;z-index:2}.template-group h3{font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#59634f;margin:25px 0 10px}.template-option{display:block;width:100%;text-align:left;padding:13px;margin:6px 0;background:#fffdf7;min-height:60px}.template-option b{display:block;font-size:14px}.template-option span{display:block;font-size:12px;line-height:1.5;color:#59634f;margin-top:4px}.template-fields{padding-top:10px;margin-top:10px;border-top:1px solid #d4d6c8}.template-fields input[type=number]{min-height:36px}.template-note{font-size:11px!important;line-height:1.6;color:#59634f}.ending-effect{height:130px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;overflow:hidden;max-width:100%;color:#365b4d}.ending-effect svg{width:230px;height:130px}.effect-main,.effect-secondary{transform-box:fill-box;transform-origin:center}.ending-effect .effect-main{fill:var(--ending-color,#edb849)}.result-card[data-effect=second] h1,.result-card[data-effect=choice] .result-choices-output{animation:loading-reveal 2.7s both}.effect-second{position:relative}.effect-second:after{content:"One more thing…";position:absolute;top:0;font-size:15px;animation:second-prompt 2.7s steps(1) forwards}@keyframes second-prompt{0%,99%{opacity:1}to{opacity:0}}.inline-ending-browser{margin:0 -5px 15px;padding:8px;border:1px solid #ccd2bf;border-radius:8px;background:#f8f6ec}.inline-ending-header{display:flex;align-items:center;justify-content:space-between;font-size:12px}.close-inline-endings{min-width:32px;min-height:32px;font-size:18px}.inline-ending-browser .template-search{position:static;margin:10px 0;padding:10px 7px;font-size:12px;min-width:0}.inline-ending-browser .template-count{font-size:11px;color:#59634f;margin:3px 0 10px}.inline-ending-browser .template-group{margin:5px 0;border-top:1px solid #d4d6c8}.inline-ending-browser summary{padding:11px 0;min-height:44px;font-size:12px;font-weight:600;cursor:pointer}.inline-ending-browser .template-option{display:flex;align-items:center;gap:8px;padding:8px 3px;margin:3px 0;border:1px solid transparent;background:transparent;min-height:48px}.inline-ending-browser .template-option:hover{border-color:#bfc8b2;background:#eeeadb}.inline-ending-browser .template-icon{width:38px;flex:0 0 38px;margin:0}.template-icon svg{display:block;width:38px;height:33px}.inline-ending-browser .template-copy{min-width:0;margin:0}.inline-ending-browser .template-option b{font-size:13px;line-height:1.4}.inline-ending-browser .template-description{font-size:11px;line-height:1.5;margin-top:3px}.ending-templates-button[aria-expanded=true]{border-color:#365b4d;background:#e2ebdf}.effect-light .effect-main{animation:light-on 1.3s ease-out forwards}.effect-rays{animation:light-on 1.3s ease-out}.effect-flag .effect-main{animation:flag-up 1.4s ease-out both}.effect-balloon .effect-main{animation:balloon-pop 1.3s ease-in forwards}.effect-balloon .effect-secondary{animation:burst-in 1.3s ease-out both}.effect-stamp .effect-main{animation:stamp-down 1s ease-in both}.effect-stamp .effect-secondary{animation:tick-in 1.1s both}.effect-sugar .effect-main{animation:sugar-drop 1.2s ease-in forwards}.effect-flower .effect-main{animation:flower-grow 1.6s ease-out both}.effect-flower .effect-secondary{animation:sugar-drop 1.1s ease-in forwards}.effect-domino .effect-main{transform-origin:bottom right;animation:domino-fall 1.4s ease-in forwards}.effect-party .effect-main{animation:horn 1s ease-in-out both}.effect-party .effect-secondary{animation:one-confetti 2.5s ease-in-out forwards}.effect-gift .effect-main{animation:gift-open 1.5s ease-out forwards}.effect-candle .effect-main{animation:light-on 1.2s ease-out both}.effect-envelope .effect-main{transform-origin:top;animation:envelope-open 1.1s ease-out forwards}.effect-envelope .effect-secondary{animation:note-out 1.4s ease-out forwards}.effect-printer .effect-main{animation:print-out 1.5s steps(10) both}.effect-manual .effect-main{animation:highlight 1.5s ease-out both}.effect-power .effect-main{animation:light-on 1.2s both}.effect-scroll .effect-main{animation:lift-up 1.6s ease-out both}.effect-award .effect-main{animation:award-in 1.5s ease-out both}.effect-finger .effect-main{animation:finger-nudge 1.5s ease-in-out both}.effect-paperclip .effect-main{animation:clip-lower 1.5s ease-out both}.effect-arrow .effect-main{animation:arrow-point 1.6s ease-out both}.effect-usb .effect-main{animation:usb-turn 1.7s ease-in-out forwards}.effect-second .effect-main{animation:second-roll 2.7s ease-in-out forwards}.effect-map .effect-main{animation:map-drop 1.4s ease-out both}.effect-calendar .effect-main{animation:tick-in 1.3s both}.effect-choice .effect-main{animation:coin-spin 1.6s ease-out both}.effect-sound .effect-main{animation:sound-wave 1.6s ease-out both}.effect-response .effect-main{animation:award-in 1.3s ease-out both}.effect-status .effect-main{animation:tick-in 1.4s both}.typed-query{display:block;max-width:100%;overflow:hidden;white-space:nowrap;border:1px solid #c7cebb;border-right:3px solid #365b4d;background:#f7f5ee;padding:12px 15px;text-align:left;font-size:16px;animation:query-type 2.5s steps(30) both}.effect-typing{justify-content:flex-start;height:auto;min-height:64px}.effect-loading{flex-direction:column;gap:10px;height:110px}.loading-label{font-size:30px;font-weight:700;animation:loading-label 3.2s steps(1) forwards}.ending-progress{width:90%;height:12px;background:#e4e6da;border-radius:8px;overflow:hidden}.ending-progress i{display:block;height:100%;background:#365b4d;animation:loading-progress 3.2s ease-out forwards}.loading-finish{font-size:11px;color:#59634f;animation:loading-reveal 3.2s both}.ending-effect strong{font:48px ui-monospace,monospace}.result-image{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:10px;margin:14px 0}.result-code{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border:1px dashed #b7bea9;border-radius:8px;background:#f4f2e8;margin:14px 0;font-family:ui-monospace,monospace}.result-option{margin:4px}.result-event{padding:12px;border:1px solid #d4d6c8;border-radius:8px;margin:12px 0;font-size:13px}.result-setup{font-family:Patrick Hand,cursive;font-size:21px!important}.result-choices-output{font-size:26px;font-weight:600;color:#365b4d}.result-link-note{font-size:11px!important;margin-top:8px}.result-card[data-effect=loading] .result-message{animation:loading-reveal 3.2s both}.result-card[data-effect=second] .result-message{animation:loading-reveal 2.7s both}@keyframes light-on{0%,25%{fill:#e9e1ce;opacity:.3}45%{fill:#edb849;opacity:1}60%{opacity:.5}to{fill:#edb849;opacity:1}}@keyframes flag-up{0%{transform:translateY(55px)}to{transform:translateY(0)}}@keyframes balloon-pop{0%,65%{transform:scale(1);opacity:1}75%{transform:scale(1.2)}to{transform:scale(.1);opacity:0}}@keyframes burst-in{0%,70%{opacity:0}80%,to{opacity:1}}@keyframes stamp-down{0%,40%{transform:translateY(-25px)}70%{transform:translateY(20px)}to{transform:translateY(0)}}@keyframes tick-in{0%,70%{opacity:0}to{opacity:1}}@keyframes sugar-drop{0%,25%{transform:translateY(0);opacity:1}90%,to{transform:translateY(60px);opacity:0}}@keyframes flower-grow{0%{transform:scale(.4) rotate(-25deg)}to{transform:scale(1) rotate(0)}}@keyframes domino-fall{0%,30%{transform:rotate(0)}to{transform:rotate(78deg)}}@keyframes horn{0%,20%,80%,to{transform:scaleX(1)}45%{transform:scaleX(1.3)}}@keyframes one-confetti{0%{transform:translateY(-30px) rotate(0)}to{transform:translateY(100px) rotate(240deg)}}@keyframes gift-open{0%,30%{transform:translate(0)}to{transform:translate(25px,-32px) rotate(18deg)}}@keyframes envelope-open{0%{transform:scaleY(1)}to{transform:scaleY(-.7)}}@keyframes note-out{0%,35%{transform:translateY(30px)}to{transform:translateY(-10px)}}@keyframes print-out{0%{transform:translateY(-32px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes highlight{0%,40%{stroke:#b8bba9}to{stroke:#c49a2b}}@keyframes lift-up{0%{transform:translateY(20px)}to{transform:translateY(-40px)}}@keyframes award-in{0%{transform:scale(.2) rotate(-25deg)}70%{transform:scale(1.15) rotate(5deg)}to{transform:scale(1) rotate(0)}}@keyframes finger-nudge{0%,to{transform:translate(0)}55%{transform:translate(18px)}}@keyframes clip-lower{0%{transform:translateY(-40px)}to{transform:translateY(0)}}@keyframes arrow-point{0%{transform:translate(-60px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes usb-turn{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@keyframes second-roll{0%{transform:translate(0)}60%,to{transform:translate(94px,32px)}}@keyframes map-drop{0%{transform:translateY(-40px);opacity:0}70%{transform:translateY(5px)}to{transform:translateY(0);opacity:1}}@keyframes coin-spin{0%{transform:rotateY(0)}to{transform:rotateY(1080deg)}}@keyframes sound-wave{0%{opacity:.1;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes query-type{0%{width:0}to{width:100%}}@keyframes loading-progress{0%{width:0}35%,90%{width:99%}to{width:100%}}@keyframes loading-label{0%,99%{opacity:1}to{opacity:0}}@keyframes loading-reveal{0%,90%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.ending-effect *,.result-card[data-effect] .result-message{animation:none!important}.effect-balloon .effect-main,.effect-sugar .effect-main{opacity:0}.loading-label{display:none}.ending-progress i{width:100%}.typed-query{width:100%;white-space:normal;border-right:1px solid #c7cebb}}.cinema-brand{display:none;position:absolute;left:24px;top:20px;z-index:12;font-size:30px;font-weight:700;letter-spacing:-2px;text-decoration:none;color:#33372f;border:0;background:transparent;padding:3px 8px}.cinema .cinema-brand{display:block}.result-countdown{display:block;font:700 clamp(64px,15vw,110px) "DM Sans",sans-serif;color:#365b4d;line-height:1.25;font-variant-numeric:tabular-nums;margin:12px 0}.countdown-card h1{font-size:36px}.countdown-card .result-choices{margin-top:20px}.cinema .header,.cinema .sidebar,.cinema .canvas-top,.cinema .playback-status,.cinema .tool-dock,.cinema .camera-row,.cinema .transport,.cinema .footer,.cinema .stage-label,.cinema .hint,.cinema .viewport-controls,.cinema #minimap,.cinema #selection-actions,.cinema #lesson,.cinema #inspector{display:none!important}.cinema .app{min-height:0}.cinema .workspace,.cinema .canvas-column{width:100%;height:100%}.cinema .stage{margin:0;border:0;border-radius:0;height:100%}.result-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:24px;background:#f7f5eee8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);overflow-y:auto}.result-card{position:relative;z-index:1;text-align:center;width:min(560px,100%);max-height:100%;overflow:auto;padding:32px;border:1px solid #d4d6c8;border-radius:18px;background:#fffdf7;box-shadow:0 18px 65px #3440291c}.result-card h1{font-family:Patrick Hand,cursive;font-size:clamp(32px,5vw,52px);font-weight:400;line-height:1.15;margin:12px 0 18px;overflow-wrap:anywhere}.result-card p{font-size:15px;line-height:1.7;color:#59634f}.result-card .result-message{white-space:pre-wrap;overflow-wrap:anywhere}.result-card .result-elapsed{font-size:12px;margin:22px 0}.result-eyebrow{font-size:11px!important;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:#626958}.result-card button,.result-primary,.share-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 16px;font-size:13px;text-decoration:none;border-radius:8px;cursor:pointer}.result-primary{background:#365b4d;color:#fff;border:1px solid #365b4d}.result-primary:hover{background:#274738!important;color:#fff}.result-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px}.result-video{display:block;border:0;border-radius:8px;width:100%;aspect-ratio:16/9;margin-top:15px}.video-fallback{display:block;margin-top:12px;color:#365b4d;font-size:12px}.result-confetti{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.result-confetti i{position:absolute;top:-20px;width:9px;height:15px;animation:confetti-fall 2.6s ease-in forwards;opacity:0}@keyframes confetti-fall{0%{opacity:1;transform:translateY(-20px) rotate(0)}to{opacity:0;transform:translate(var(--drift),100vh) rotate(720deg)}}.share-dialog{width:min(590px,92vw)}.share-dialog label{font-size:13px;display:block;margin:22px 0 8px}.share-link{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #bfc8b2;border-radius:7px;background:#fffef9;font-size:12px}.share-actions{display:flex;flex-wrap:wrap;gap:8px}.share-dialog .share-access{font-size:12px}.share-status{font-size:13px;min-height:22px}.ending-fields{border:1px solid #d7d9cb;border-radius:8px;padding:12px;margin:15px 0;background:#f5f2e5}.ending-fields h3{margin:0 0 12px;font-size:13px}.ending-fields label{display:block;font-size:12px;margin:12px 0}.ending-fields input:not([type=checkbox]),.ending-fields textarea,.ending-fields select{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #c8cebb;border-radius:5px;background:#fffdf7;font:12px DM Sans,sans-serif}.ending-fields textarea{min-height:90px;resize:vertical}.ending-fields .check{display:flex;gap:6px}.ending-fields .ending-note{font-size:11px;line-height:1.6;color:#59634f}.shared-loading{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-content:center;background:#f7f5ee;color:#365b4d;font:20px DM Sans,sans-serif}@media(max-width:540px){.result-overlay{padding:12px}.result-card{padding:24px 16px}.result-choices{gap:6px}.result-card button{font-size:12px;padding:9px 12px}.cinema-brand{left:16px;top:12px;font-size:27px}.result-card p{font-size:13px}.share-actions button{font-size:12px}}@media(prefers-reduced-motion:reduce){.result-confetti i{animation:none;opacity:.7;top:15%;transform:rotate(25deg)}}
