@layer reset,base,components,responsive;
@layer reset{*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}svg,img,canvas{display:block}html{scroll-behavior:smooth;scroll-padding-top:24px}}
@layer base{
:root{--page:#f3f1e8;--paper:#fffdf5;--ink:#203e35;--muted:#62766b;--line:#ccd3c5;--green:#007c69;--lime:#c1ff72;--purple:#8780e6;--coral:#f17a61;font:14px/1.75 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);background:var(--page)}body{min-width:320px;background:radial-gradient(ellipse at 90% 0,#e4e0f3a0,transparent 32%),var(--page)}.page{width:min(1540px,calc(100% - 80px));margin:auto}.hero{padding:39px 0 32px}.eyebrow{display:flex;align-items:center;gap:12px;color:var(--green);font-size:10px;font-weight:750;letter-spacing:.11em}.hero h1{font-size:clamp(32px,3.65vw,59px);font-weight:800;line-height:1.2;letter-spacing:0;margin:23px 0}.hero h1 span{color:var(--coral)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}.lead{font-size:16px;line-height:1.9}.lead strong{color:var(--green)}h2{font-size:clamp(21px,2.2vw,30px);line-height:1.5}h3{font-size:16px;line-height:1.6}.kicker{font-size:10px;letter-spacing:.12em;font-weight:750;color:var(--green)}.note{font-size:11px;color:var(--muted);line-height:1.85}.quiet,.primary,.accent{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:11px;font-weight:750;line-height:1.5}.primary{color:#e8ffd4;background:var(--ink);border-color:var(--ink)}.accent{color:#203e35;background:var(--lime);border-color:#b1e96a}.text-button{border:0;background:none;color:var(--green);font-size:11px;font-weight:750;padding:9px 3px}.text-button:hover{text-decoration:underline}button,a{transition:transform .18s,background .18s,box-shadow .18s}button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 14px #244b351a}button:active:not(:disabled){transform:translateY(0)}:focus-visible{outline:3px solid var(--purple);outline-offset:4px}.field{display:grid;gap:6px;font-size:11px;font-weight:650}.field input,.field textarea,.field select{width:100%;min-width:0;min-height:40px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px}.field textarea{resize:vertical}.range{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:11px;font-weight:650;align-items:center}.range input{grid-column:1/-1;width:100%;accent-color:var(--green);height:21px;cursor:pointer}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range+.range{margin-top:16px}.space{margin-top:17px}.check{display:flex;align-items:center;gap:8px;font-size:11px}.check input{width:16px;height:16px;accent-color:var(--green);flex:none}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--particle-option;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#e8ede2}.segmented:before{content:"";position:absolute;z-index:-1;position-anchor:--particle-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);background:var(--ink);border-radius:6px;transition:top .18s,left .18s,width .18s,height .18s}.segmented button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;flex:1;border:0;border-radius:6px;background:none;padding:8px 9px;font-size:10px;font-weight:750;white-space:nowrap;line-height:1.5}.segmented button[aria-pressed=true]{anchor-name:--particle-option;color:#c1ff72}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#25463212}.segmented button[aria-pressed=true]:hover{background:transparent}.segmented svg{width:14px;height:14px;fill:currentColor}@supports not(position-anchor:--particle-option){.segmented:before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}
}
@layer components{
.stage.light .canvas-top{color:#203e358f}.stage.light .pointer-hint{background:#fffdf5d9;color:#203e35;border-color:#203e3530}
.studio{border:1px solid var(--line);border-radius:24px;overflow:clip;background:var(--paper);container:studio / inline-size}.section-heading{display:flex;align-items:center;gap:17px;padding:25px 27px;border-bottom:1px solid var(--line)}.section-symbol{display:grid;place-items:center;flex:none;width:51px;height:51px;background:var(--purple);color:#fffdf5;border-radius:15px}.section-symbol svg{width:34px;height:34px;fill:currentColor}.section-heading h2{margin-top:4px}.jump{margin-left:auto;font-size:11px;font-weight:750;white-space:nowrap;color:var(--green);text-underline-offset:4px}.studio-grid{display:grid;grid-template-columns:280px minmax(0,1fr)}.controls{border-right:1px solid var(--line);background:#f6f5ed;min-width:0}.control-section{padding:23px 20px;border-bottom:1px solid var(--line)}.control-section h3{margin:6px 0 16px}.control-section>.note{margin-top:11px}.control-section>.segmented{margin-top:15px}.control-section h3+.segmented{margin-top:0}.source-fields{display:grid;gap:12px;margin-top:15px}.upload{display:grid;justify-items:center;gap:5px;padding:15px 8px;margin:17px 0 10px;border:1px dashed #9cb3a0;border-radius:10px;cursor:pointer;background:var(--paper);font-size:10px;font-weight:750;text-align:center}.upload svg{width:23px;height:23px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.upload small{font-size:10px;color:var(--muted);font-weight:500}.upload input{position:absolute;width:1px;height:1px;opacity:0}.upload:focus-within{outline:3px solid var(--purple);outline-offset:3px}.upload.drag{background:#e5f1d8;border-color:var(--green)}.source-status{font-size:11px;color:var(--green);line-height:1.8;margin-top:10px}.source-status[data-error=true]{color:#a34235}.color-fields{display:flex;gap:8px;margin-top:16px}.color-fields label{display:grid;flex:1;gap:5px;font-size:10px}.color-fields input{width:100%;height:32px;cursor:pointer;padding:4px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.response-list{display:grid;gap:7px}.response-list button{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--paper);text-align:left;font-size:12px;font-weight:750;line-height:1.6}.response-list small{display:block;font-size:10px;font-weight:500;color:var(--muted)}.response-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;flex:none;background:#e5ecdf;color:var(--green)}.response-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.response-list button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fffce9}.response-list button[aria-pressed=true] small{color:#cfddc7}.response-list button[aria-pressed=true] .response-icon{color:#244636;background:var(--lime)}.workspace{min-width:0;container:workspace / inline-size}.workspace-bar{display:flex;align-items:center;gap:12px;min-height:58px;padding:15px 20px;font-size:11px;border-bottom:1px solid var(--line)}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;background:#b5c6b4;border-radius:50%}.window-dots i:first-child{background:var(--coral)}#sourceName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{margin-left:auto;flex:none;border:1px solid var(--line);border-radius:99px;padding:3px 9px;font-size:10px;font-weight:750;white-space:nowrap}.stage{position:relative;aspect-ratio:8/5;background:#102722;isolation:isolate;overflow:hidden}#particleCanvas{width:100%;height:100%;touch-action:pan-y;outline-offset:-5px;cursor:crosshair}.canvas-top{position:absolute;inset:18px 22px auto;display:flex;justify-content:space-between;color:#e9f8df8f;font:10px/1.5 ui-monospace,monospace;letter-spacing:.07em;pointer-events:none;z-index:2;gap:12px}.pointer-hint{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.03em;padding:6px 12px;border:1px solid #c2e6bd30;border-radius:99px;background:#112820a6;color:#e7f2dc;white-space:nowrap;pointer-events:none;z-index:2}.playbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:15px 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.playbar svg{width:14px;height:14px;fill:currentColor}.playbar #expand{margin-left:auto;width:37px;min-height:37px;padding:8px}.playbar #expand svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.statusbar{display:flex;justify-content:space-between;gap:12px;padding:13px 21px;background:#edf2e5;border-bottom:1px solid var(--line);font-size:11px;color:#52704e}.statusbar #motionStatus{font-size:10px}.export{padding:26px}.export h3{font-size:22px;margin:7px 0 14px}.export-lead{font-size:12px;line-height:1.9;color:var(--muted)}.export-actions{display:flex;flex-wrap:wrap;gap:9px;margin:19px 0 12px}.export>.note{margin-top:10px}.preset-section,.guide{margin-top:56px}.library-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:24px}.library-heading h2{margin-top:8px}.library-heading>p{font-size:12px;color:var(--muted)}.preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.preset-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--paper);padding:0;text-align:left;min-width:0}.preset-card canvas{width:100%;height:auto;aspect-ratio:8/5;background:#102722}.preset-card strong{display:block;font-size:13px;padding:14px 15px 3px}.preset-card small{display:block;font-size:10px;line-height:1.8;padding:0 15px 14px;color:var(--muted)}.preset-card[aria-pressed=true]{box-shadow:0 0 0 1px var(--green);border-color:var(--green)}.guide h2{margin:8px 0 24px}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guide-grid article{padding:26px;border:1px solid var(--line);border-radius:18px;background:#fffdf570}.guide-grid h3{font-size:18px;margin:19px 0 12px}.guide-grid p{font-size:12px;color:var(--muted);line-height:1.9}.guide-icon{display:grid;place-items:center;width:38px;height:38px;color:var(--green)}.guide-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.page-footer{display:flex;justify-content:space-between;gap:20px;margin-top:50px;padding:24px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.page-footer a{color:var(--green);text-decoration:none;font-weight:750}.toast{position:fixed;z-index:5000;left:50%;bottom:24px;max-width:calc(100% - 30px);padding:12px 20px;background:#234938f5;color:#fff5dd;border-radius:10px;box-shadow:0 8px 25px #16332430;font-size:12px;text-align:center;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog::backdrop{background:#10271ee0;backdrop-filter:blur(9px)}dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}dialog h2{font-size:17px}.icon-close{position:relative;flex:none;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.icon-close:before,.icon-close:after{content:"";position:absolute;left:9px;top:16px;width:16px;height:2px;border-radius:1px;background:currentColor;transform:rotate(45deg)}.icon-close:after{transform:rotate(-45deg)}.preview-dialog{width:1320px}.preview-dialog .stage{width:100%;max-height:80dvh;aspect-ratio:8/5}.copy-dialog{width:720px}.copy-dialog textarea{width:100%;height:200px;resize:vertical;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:11px/1.7 monospace}
}
@layer responsive{
@container studio (max-width:1100px){.studio-grid{grid-template-columns:245px minmax(0,1fr)}.control-section{padding:21px 16px}.playbar{padding:12px;gap:7px}.playbar .quiet,.playbar .primary,.playbar .accent{padding:9px 12px}}
@container studio (max-width:790px){.studio-grid{display:flex;flex-direction:column}.workspace{order:-1}.controls{border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section{border-right:1px solid var(--line)}.section-heading{padding:20px}.jump{display:none}.response-list{grid-template-columns:1fr}.export{padding:22px}}
@container workspace (max-width:500px){.workspace-bar{padding:13px 15px;gap:8px}.window-dots{display:none}.badge{font-size:10px;padding:3px 6px}.canvas-top{inset:12px 14px auto;font-size:10px}.pointer-hint{bottom:10px;font-size:10px;padding:4px 8px}.playbar{gap:7px}.playbar .text-button{font-size:10px}.playbar #expand{margin-left:0}.statusbar{flex-direction:column;gap:3px;padding:12px 15px}.export-actions .primary,.export-actions .accent,.export-actions .quiet{flex:1}.export-actions .quiet{flex-basis:100%}.export h3{font-size:20px}}
@media(max-width:800px){.page{width:calc(100% - 36px)}.hero{padding-top:28px}.hero-bottom{flex-direction:column;align-items:start;gap:14px}.hero h1{font-size:clamp(34px,5.8vw,48px)}.lead{font-size:14px}.preset-grid{grid-template-columns:1fr 1fr;gap:13px}.library-heading{flex-direction:column;align-items:start;gap:12px}.guide-grid{grid-template-columns:1fr}.page-footer{flex-direction:column;gap:8px}}
@media(max-width:440px){.page{width:calc(100% - 24px)}.hero h1{font-size:35px}.eyebrow{letter-spacing:.05em}.section-heading{padding:18px 14px;gap:12px}.section-symbol{width:40px;height:40px;border-radius:11px}.section-heading h2{font-size:19px}.controls{grid-template-columns:1fr}.control-section{border-right:0}.preset-card strong{font-size:12px;padding:12px 12px 3px}.preset-card small{padding:0 12px 12px}.playbar #expand{margin-left:auto}.preview-dialog{padding:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
}
@layer components{
.scroll-guide{container:scroll-guide / inline-size;margin-top:50px;padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.scroll-guide h2{margin:8px 0 17px}.scroll-intro{max-width:1000px;font-size:13px;line-height:1.95;color:var(--muted)}
.scroll-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;list-style:none;counter-reset:scroll-step;margin:28px 0;padding:0}
.scroll-steps li{min-width:0;counter-increment:scroll-step;padding:20px;border:1px solid var(--line);border-radius:12px;background:#f6f5ed}
.scroll-steps li::before{content:counter(scroll-step,decimal-leading-zero);display:grid;place-items:center;width:30px;height:30px;margin-bottom:14px;border-radius:8px;background:#e2edda;color:var(--green);font-size:12px;font-weight:750}
.scroll-steps h3{font-size:15px;margin-bottom:10px}.scroll-steps p{font-size:12px;line-height:1.9;color:var(--muted)}
.scroll-download{padding:21px;border:1px solid #bacdb0;border-radius:12px;background:#edf3e5}.scroll-download h3{font-size:17px;margin-bottom:7px}.scroll-download .export-actions{margin-bottom:0}
.scroll-code{min-width:0;margin-top:23px;border-block:1px solid var(--line);padding:18px 0}.scroll-code summary{cursor:pointer;font-size:13px;font-weight:750}.scroll-code .note{margin-top:14px}.scroll-code pre{overflow:auto;max-width:100%;padding:20px;border-radius:10px;background:#142e26;color:#e5f2da;font:11px/1.9 ui-monospace,monospace;tab-size:2}.scroll-code pre code{font:inherit}
.scroll-cautions{margin-top:24px}.scroll-cautions h3{font-size:17px}.scroll-cautions ul{padding-left:20px;margin:13px 0 0;display:grid;gap:10px;font-size:12px;line-height:1.9;color:var(--muted)}.scroll-cautions code{font-size:11px;color:var(--ink)}.scroll-references{margin-top:20px}.scroll-references a{color:var(--green);text-underline-offset:3px}
.scroll-link-wrap{padding:0 26px 25px}.scroll-guide-link{color:var(--green);font-size:12px;font-weight:750;text-underline-offset:4px}
@container scroll-guide (max-width:700px){.scroll-steps{grid-template-columns:1fr;gap:12px}.scroll-steps li{padding:18px}.scroll-steps li::before{float:left;margin:0 12px 8px 0}.scroll-download{padding:17px}.scroll-download .export-actions>*{flex:1}.scroll-guide h2{font-size:23px}}
@media(max-width:440px){.scroll-guide{padding:20px 16px}.scroll-download .export-actions>*{flex-basis:100%}}
}
