@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');
:root{--ink:#20291e;--muted:#687462;--green:#008b72;--lime:#baff52;--violet:#7669ee;--orange:#ff8969;--line:#cbd2c5;--paper:#fffdf7;font-family:'Outfit','Noto Sans JP',sans-serif;color:var(--ink);background:#f1eee6}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 0%,#dceaab45,transparent 50%)}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit;transition:background .18s,box-shadow .18s}button:hover{box-shadow:0 4px 12px #20301815}button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}a{color:var(--green);text-underline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,pre:focus-visible{outline:3px solid var(--violet);outline-offset:4px}[hidden]{display:none!important}.page{max-width:1600px;margin:auto;padding:34px 32px 24px}.hero{padding-bottom:30px}.eyebrow,.kicker{margin:0 0 10px;font:700 11px/1.5 ui-monospace,monospace;letter-spacing:.12em;color:var(--green)}.eyebrow{display:flex;align-items:center;gap:12px}.brand-mark{width:20px;height:20px;border:2px solid var(--violet);border-radius:6px;position:relative}.brand-mark:after{content:'';position:absolute;left:7px;top:7px;width:14px;height:14px;border-radius:4px;background:var(--lime);z-index:-1}h1{font-size:clamp(36px,5vw,74px);font-weight:800;letter-spacing:0;line-height:1.07;margin:22px 0 24px}.title-break{display:none}h1>span{color:var(--violet)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px}.lead{font-size:clamp(16px,1.45vw,21px);font-weight:700;line-height:1.75;margin:0}.lead strong{color:var(--muted);margin-left:.4em}.quiet-button,.primary-button{font-size:12px;font-weight:750;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper);white-space:nowrap}.quiet-button:hover{background:#e7eedd}.primary-button{background:var(--ink);border-color:var(--ink);color:white}.primary-button:hover{background:#3b5030}.lab{container:studio/inline-size;background:var(--paper);border:1px solid var(--line);border-radius:26px;overflow:clip}.section-heading{display:flex;align-items:center;gap:18px;padding:25px 28px;border-bottom:1px solid var(--line)}.section-heading .kicker{margin:0 0 6px}.section-heading h2{font-size:clamp(19px,2vw,28px);line-height:1.4;margin:0;font-weight:800}.section-symbol{display:grid;place-items:center;width:50px;height:50px;flex-shrink:0;border-radius:15px;background:var(--orange);color:white;font-size:25px;font-weight:700}.section-symbol.violet{background:var(--violet);font-size:19px}.dark-symbol{background:var(--ink);font-style:italic}.chip{font:700 10px/1.2 ui-monospace,monospace;background:#e9eee2;padding:8px 11px;border-radius:100px;white-space:nowrap}.section-heading>.chip{margin-left:auto}.lab-grid{display:grid;grid-template-columns:280px minmax(0,1fr)}.controls{border-right:1px solid var(--line);background:#f5f4ed}.control-section{padding:24px;border-bottom:1px solid var(--line)}.control-section:last-child{border-bottom:0}.control-section h3{font-size:16px;margin:0 0 17px}.control-note{font-size:11px;line-height:1.85;color:var(--muted);margin:13px 0 0}.pattern-list{display:grid;gap:8px}.pattern-list>button{display:flex;align-items:center;gap:12px;min-height:66px;padding:11px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:12px}.pattern-list>button:hover{background:#e7efdc}.pattern-list>button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.pattern-list strong{display:block;font-size:13px;font-weight:800}.pattern-list small{display:block;margin-top:4px;font-size:10px;color:var(--muted);line-height:1.6}.pattern-list [aria-pressed=true] small{color:#ced8c4}.pattern-icon{flex:0 0 32px;height:32px;border-radius:8px;display:grid;place-items:center;font-size:23px;background:#e3eadf;color:var(--green)}.pattern-list [aria-pressed=true] .pattern-icon{background:var(--lime);color:var(--ink)}.range-control{display:grid;grid-template-columns:1fr auto;align-items:center;font-size:12px;font-weight:650;gap:10px;margin:20px 0}.range-control output{font:700 12px ui-monospace,monospace;color:var(--green)}.range-control input{grid-column:1/-1;width:100%;min-height:20px;margin:0;accent-color:var(--green);cursor:pointer}.select-control{display:grid;gap:8px;font-size:12px;font-weight:650;margin:18px 0}.select-control select{width:100%;min-height:40px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:12px;color:var(--ink)}.segmented{display:flex;position:relative;isolation:isolate;background:#e6eae1;padding:4px;gap:4px;border:1px solid var(--line);border-radius:13px}.segmented button{flex:1;min-width:0;z-index:1;border:0;background:transparent;border-radius:9px;padding:10px 8px;font-size:12px;font-weight:750}.segmented [aria-pressed=true]{background:var(--violet);color:white}.segmented button:not([aria-pressed=true]):hover{background:#d7e0cd}
@supports(anchor-name:--selection){.segmented{anchor-scope:--selection}.segmented [aria-pressed=true]{anchor-name:--selection;background:transparent}.segmented:before{content:'';position:absolute;position-anchor:--selection;left:anchor(left);top:anchor(top);width:anchor-size(width);height:anchor-size(height);border-radius:9px;background:var(--violet);z-index:0;transition:left .2s,top .2s,width .2s,height .2s}}
.pattern-icon{line-height:1;align-self:center}.pattern-icon svg{display:block;width:22px;height:22px}
.field-label{font-size:12px;font-weight:650;margin:20px 0 10px}.color-control{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:650;margin-top:20px}.color-control input{width:56px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:3px;cursor:pointer}.workspace{min-width:0;background:#eaf0e5;align-self:start}.workspace-toolbar{display:flex;align-items:center;gap:14px;padding:18px 24px;font:600 11px ui-monospace,monospace;background:#dce4d7;color:var(--muted);border-bottom:1px solid var(--line)}.workspace-toolbar .chip{margin-left:auto;background:#f4f7ee}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;border-radius:50%;background:#ff785f}.window-dots i:nth-child(2){background:#edc34d}.window-dots i:nth-child(3){background:#50cd9a}.source-bar{padding:18px 24px 0;display:flex;align-items:end;gap:14px;flex-wrap:wrap}.source-bar>.select-control{flex:1 1 230px;margin:0;min-width:0}.canvas-picker{min-width:160px}.canvas-picker .kicker{margin-bottom:8px;font-size:10px}.upload-button{position:relative;display:grid;place-items:center;min-height:44px;padding:12px 16px;border:1px dashed #85987a;border-radius:12px;background:#e1edd4;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.upload-button:hover{background:#d3e6bd}.upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-button:focus-within{outline:3px solid var(--violet);outline-offset:3px}.upload-help{font-size:10px;line-height:1.85;color:var(--muted);margin:14px 24px 0}.upload-status{font-size:11px;line-height:1.8;color:var(--green);margin:10px 24px 0;overflow-wrap:anywhere}.upload-status:empty{display:none}.upload-status.error{color:#a74229}.motion-warning{margin:16px 24px 0;padding:12px 16px;font-size:12px;background:#ffe8ca;border-radius:12px;line-height:1.8}.stage{position:relative;border:1px solid #b4c2ab;border-radius:20px;padding:24px;margin:22px 24px 0;background:#18271e;color:#d7e4cf;overflow:clip}.stage[data-canvas=light]{background:#fffdf4;color:#3a4930}.stage-heading,.stage-caption{display:flex;justify-content:space-between;align-items:center;gap:20px}.stage-heading{font:700 11px ui-monospace,monospace;letter-spacing:.12em}.stage-heading span:first-child{color:var(--lime)}.stage[data-canvas=light] .stage-heading span:first-child{color:#226843}.stage-heading span:last-child{font-size:10px;color:#9aaf90}.stage[data-canvas=light] .stage-heading span:last-child{color:#64755c}#artHost{width:min(100%,680px);margin:12px auto;min-height:180px}.stroke-art{display:block;width:100%;height:auto;max-height:480px}#stage .draw-line.is-selected{stroke:#ff8969}.stage-caption{font-size:11px;color:#a3b39b;line-height:1.7}.stage[data-canvas=light] .stage-caption{color:#607255}#stageStatus{font:700 10px ui-monospace,monospace;color:var(--lime);white-space:nowrap}.stage[data-canvas=light] #stageStatus{color:#227447}.playback{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 24px 0;flex-wrap:wrap}.play-buttons{display:flex;gap:8px;flex-wrap:wrap}.playback .primary-button{background:var(--lime);color:var(--ink);border-color:#a3c13d}.playback .primary-button:hover{background:#d4ff92}.playback>p{font-size:11px;color:var(--muted);margin:0;white-space:nowrap}.playback strong{color:var(--ink);font:700 16px ui-monospace,monospace;margin-left:8px}.playback>p>span{display:block;margin-top:6px;font-size:10px}.scrub{padding:24px 24px 20px}.scrub label{font-size:12px;font-weight:700}.scrub output{font:700 12px ui-monospace,monospace;color:var(--green);margin-left:12px}.scrub input{display:block;width:100%;min-height:24px;margin:12px 0 8px;accent-color:var(--green);cursor:pointer}.scrub p{font-size:11px;color:var(--muted);line-height:1.8;margin:0}.timeline{padding:20px 24px;background:#f5f6ee;border-top:1px solid var(--line)}.timeline-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.timeline-head h3{font-size:13px;margin:0}.timeline-head span{font:600 10px ui-monospace,monospace;color:var(--muted)}#timelineRows{max-height:300px;overflow:auto;scrollbar-gutter:stable}.timeline-row{display:grid;grid-template-columns:74px minmax(0,1fr) 76px;gap:12px;align-items:center;padding:7px 3px;border-top:1px solid #dfe5d5}.line-select{font-size:11px;font-weight:700;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:8px 5px;min-height:36px}.line-select.selected{background:#ffd3bd;border-color:#ee936e}.time-track{height:18px;border-radius:6px;background:#e0e7d8;position:relative}.time-track>i{position:absolute;top:0;bottom:0;left:var(--start);width:var(--length);min-width:2px;border-radius:6px;background:var(--green)}.timeline-row:has(.selected) .time-track>i{background:#ed8b60}.row-moves{display:flex;gap:4px}.row-moves button{width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:15px}.row-moves button:not(:disabled):hover{background:#dceccb}.workspace-footer{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.8}.code-section,.guide{container:section/inline-size;margin-top:28px;background:var(--paper);border:1px solid var(--line);border-radius:26px;overflow:clip}.code-grid{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)}.code-copy{padding:34px;border-right:1px solid var(--line)}.code-copy h3{font-size:28px;line-height:1.4;margin:0 0 18px}.code-copy>p{font-size:13px;line-height:1.9;color:var(--muted)}.download-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.download-buttons .primary-button{background:var(--violet);border-color:var(--violet)}.download-buttons .primary-button:hover{background:#5d50db}.code-warning{border-left:3px solid var(--violet);padding-left:14px;margin-top:28px!important}.code-panel{min-width:0;background:#20291e;color:#edf1e5}.code-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #405236}.code-head .kicker{color:var(--lime);margin:0}.code-head .segmented{width:180px;border-color:#526048;background:#313f29}.code-head .segmented button{color:#fff}.code-head .segmented button:not([aria-pressed=true]):hover{background:#405137}.code-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 24px;border-bottom:1px solid #405236;font:600 10px ui-monospace,monospace;color:#bbc5b0}.code-toolbar button{border:1px solid #56664d;background:transparent;border-radius:10px;padding:10px 12px;color:#fff;font-size:11px;font-weight:700}.code-toolbar button:hover{background:#3c4c32}pre{max-height:500px;overflow:auto;margin:0;padding:24px;font:12px/1.8 ui-monospace,monospace;tab-size:2}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;padding:30px}.guide-grid code{font:600 11px ui-monospace,monospace;color:var(--green);overflow-wrap:anywhere}.guide-grid h3{font-size:17px;margin:14px 0 10px}.guide-grid p{font-size:12px;line-height:1.9;color:var(--muted);margin:0}.guide-note{padding:18px 24px;margin:0 30px;background:#edf2e6;border-radius:12px;font-size:12px;line-height:1.9}.sources{padding:16px 30px;margin:0;font-size:11px;line-height:1.9}.page-footer{display:flex;justify-content:space-between;gap:20px;padding-top:28px;font:600 10px/1.8 ui-monospace,monospace;color:var(--muted)}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;border:1px solid #53674a;border-radius:12px;background:var(--ink);color:white;padding:13px 20px;font-size:12px;box-shadow:0 5px 30px #0002;max-width:calc(100vw - 32px);width:max-content;text-align:center;z-index:60;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
@container studio (width < 1000px){.lab-grid{grid-template-columns:1fr}.workspace{grid-row:1}.controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-right:0;border-top:1px solid var(--line)}.control-section{border-right:1px solid var(--line)}.control-section:last-child{border-right:0}.pattern-list>button{padding:10px;gap:8px}.pattern-icon{flex-basis:26px;height:26px}.source-bar>.select-control{flex-basis:200px}.stage{padding:22px}.stroke-art{max-height:440px}}
@container studio (width < 700px){.controls{grid-template-columns:1fr}.control-section{border-right:0}.pattern-list{grid-template-columns:repeat(3,minmax(0,1fr))}.pattern-list>button{flex-direction:column;align-items:flex-start;gap:8px}.pattern-list small{font-size:10px}.source-bar{gap:12px}.source-bar>.select-control{flex-basis:100%}.canvas-picker{margin-left:auto}.timeline-row{grid-template-columns:60px minmax(0,1fr) 76px;gap:8px}.workspace-footer{flex-wrap:wrap}.workspace-footer>.quiet-button{margin-left:auto}}
@container studio (width < 450px){.workspace-toolbar{padding:16px;gap:9px}.workspace-toolbar .chip{font-size:10px;padding:7px 8px}.source-bar{padding:18px 16px 0}.upload-button{font-size:11px;padding-inline:10px}.canvas-picker{min-width:140px}.canvas-picker .segmented button{padding:10px 5px;font-size:11px}.upload-help,.upload-status{margin-inline:16px}.motion-warning{margin-inline:16px}.stage{margin:18px 16px 0;padding:18px 14px;border-radius:15px}.stage-heading{font-size:10px;gap:12px}.stage-heading span:last-child{letter-spacing:0}#artHost{margin:16px auto}.stage-caption{font-size:10px;gap:12px}.playback{padding:18px 16px 0;gap:12px}.playback .quiet-button,.playback .primary-button{padding:10px 12px;font-size:11px}.scrub{padding:20px 16px}.timeline{padding:18px 16px}.workspace-footer{padding:16px}.control-section{padding:22px}.section-heading{padding:20px 18px;gap:12px}.section-symbol{width:40px;height:40px;border-radius:12px}.section-heading>.chip{display:none}}
@container section (width < 750px){.code-grid{grid-template-columns:1fr}.code-copy{padding:26px;border-right:0;border-bottom:1px solid var(--line)}.guide-grid{grid-template-columns:1fr;padding:26px;gap:26px}.guide-note{margin-inline:24px}.sources{padding-inline:24px}.code-head,.code-toolbar{padding:18px}.code-head .kicker{font-size:10px}pre{padding:18px;font-size:11px}}
@media(max-width:700px){.page{padding:24px 16px}.hero-bottom{flex-direction:column;align-items:flex-start;gap:16px}.lead{font-size:15px}h1{font-size:clamp(34px,7vw,49px)}.title-break{display:inline}.eyebrow{font-size:10px;letter-spacing:.07em}.lab,.code-section,.guide{border-radius:20px}.page-footer{flex-direction:column;gap:7px}}
.stage-heading span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-heading span:last-child{flex-shrink:0}.stage-caption span:first-child{min-width:0;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
