:root{color-scheme:light}*{box-sizing:border-box}html,body{margin:0;padding:0;background:#f4f4f4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;color:#1a1a1a}#bg{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100lvh;z-index:0;pointer-events:none;display:block}.scroll-spacer{position:relative;z-index:1}.scroll-spacer section{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem}.scroll-spacer h1{font-size:clamp(2rem,6vw,4rem);margin:0;font-weight:500;letter-spacing:-.02em}.scroll-spacer p{font-size:1rem;color:#666;margin-top:.5rem}.repo-link{position:fixed;bottom:16px;left:16px;z-index:100;font-size:13px;font-weight:500;color:#1e3aff;text-decoration:none;letter-spacing:.01em;padding:4px 2px;transition:opacity .12s ease}.repo-link:hover{text-decoration:underline;text-underline-offset:3px}.repo-link:focus-visible{outline:2px solid #1e3aff;outline-offset:2px;border-radius:2px}.lil-gui{--background-color: #1c1c1c;--text-color: #d4d4d4;--title-background-color: #262626;--title-text-color: #ffffff;--widget-color: #2e2e2e;--hover-color: #3a3a3a;--focus-color: #4a4a4a;--number-color: #6db8ff;--string-color: #f0bf85;--font-size: 11px;--input-font-size: 11px;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--padding: 10px;--spacing: 6px;--slider-knob-width: 2px;--widget-border-radius: 5px;--folder-indent: 8px}.lil-gui.root{--width: 280px;top:12px;right:12px;max-height:calc(100vh - 24px);display:flex;flex-direction:column;border-radius:10px;overflow:hidden;box-shadow:0 12px 30px #00000047}.lil-gui.root>.title{flex-shrink:0;font-weight:600;font-size:12px;letter-spacing:.02em;padding:11px 14px}.lil-gui.root>.children{flex:1;min-height:0;max-height:none;overflow-y:auto}.lil-gui.root>.panel-help{flex-shrink:0}.lil-gui .title{font-weight:500}.lil-gui .controller.function{background:linear-gradient(180deg,#2647ff,#1e3aff);border-bottom:1px solid rgba(0,0,0,.18);transition:filter .12s ease}.lil-gui .controller.function:hover{filter:brightness(1.12)}.lil-gui .controller.function button{display:flex;align-items:center;justify-content:center;color:#fff;background:transparent;padding:9px 0;line-height:1}.lil-gui .controller.function button:hover,.lil-gui .controller.function button:focus{background:transparent}.lil-gui .controller.function button .name{color:#fff;font-weight:600;font-size:12px;letter-spacing:.02em;line-height:1;padding:0;text-align:center}.lil-gui .palette-folder .controller.color{position:relative;padding-right:28px}.lil-gui .palette-folder button.palette-remove{position:absolute;top:50%;right:6px;transform:translateY(-50%);width:18px;height:18px;min-width:0;background:transparent;border:0;color:#888;font-size:15px;line-height:1;cursor:pointer;border-radius:4px;padding:0;display:flex;align-items:center;justify-content:center;transition:color .1s ease,background .1s ease}.lil-gui .palette-folder button.palette-remove:hover{color:#ff6b6b;background:#ff6b6b24}.lil-gui .palette-folder .palette-add-row{padding:4px 10px 8px}.lil-gui .palette-folder button.palette-add-btn{width:100%;background:transparent;border:1px dashed rgba(255,255,255,.18);color:#888;font-size:14px;font-weight:600;line-height:1;padding:6px 0;border-radius:5px;cursor:pointer;transition:border-color .12s ease,color .12s ease,background .12s ease}.lil-gui .palette-folder button.palette-add-btn:hover{border-color:#ffffff59;color:#ddd;background:#ffffff0a}.panel-help{padding:10px 12px;border-top:1px solid rgba(255,255,255,.06);background:#262626;text-align:center}.panel-help-link{font-size:11px;color:#888;text-decoration:none;cursor:pointer;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;transition:color .12s ease}.panel-help-link:hover{color:#ddd}.panel-help-divider{color:#555;margin:0 8px;font-size:11px;-webkit-user-select:none;user-select:none}.app-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#1414148c;display:flex;align-items:center;justify-content:center;padding:24px;animation:app-modal-fade .12s ease-out}@keyframes app-modal-fade{0%{opacity:0}to{opacity:1}}.app-modal{background:#fff;border-radius:12px;width:min(720px,100%);max-height:min(80vh,720px);display:flex;flex-direction:column;box-shadow:0 24px 60px #00000040;overflow:hidden}.app-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 12px;flex-shrink:0}.app-modal-header h2{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:-.01em}.app-modal-close{background:transparent;border:0;font-size:1.6rem;line-height:1;color:#666;cursor:pointer;padding:0 6px;border-radius:6px}.app-modal-close:hover{color:#111;background:#f0f0f0}.app-modal-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:0 22px 18px;overflow:hidden}.app-modal-body--scroll{overflow-y:auto}.app-modal-intro{margin:0;font-size:.9rem;color:#555;line-height:1.45}.export-modal-prompt{margin:0;flex:1;min-height:220px;resize:none;border:1px solid #e2e2e2;border-radius:8px;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.5;color:#1a1a1a;background:#fafafa;white-space:pre;overflow:auto}.export-modal-prompt:focus{outline:2px solid #1e3aff;outline-offset:1px}.export-modal-actions{display:flex;align-items:center;gap:12px;margin:0}.export-modal-copy{background:#1a1a1a;color:#fff;border:0;padding:8px 14px;border-radius:8px;font-size:.85rem;font-weight:500;cursor:pointer;transition:background .12s ease}.export-modal-copy:hover{background:#000}.export-modal-copy.is-copied{background:#0a8a3a}.export-modal-size{font-size:.78rem;color:#888;font-variant-numeric:tabular-nums}.help-section{margin:0 0 28px}.help-section:last-child{margin-bottom:0}.help-section h3{margin:0 0 6px;font-size:.95rem;font-weight:600;letter-spacing:-.01em;color:#1a1a1a}.help-section>p{margin:0 0 14px;font-size:.875rem;line-height:1.55;color:#555}.help-section table{width:100%;margin:0;border-collapse:collapse;border:1px solid #e2e2e2;border-radius:6px;overflow:hidden}.help-section th,.help-section td{text-align:left;vertical-align:top;padding:10px 14px;border-bottom:1px solid #ececec;font-size:.85rem;line-height:1.5}.help-section tr:last-child th,.help-section tr:last-child td{border-bottom:0}.help-section th{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;font-weight:600;color:#1a1a1a;width:160px;border-right:1px solid #ececec;background:#fafafa}.help-section td{color:#444}
