@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;800;900&family=Outfit:wght@500;600;700;800&display=swap');
:root{--ink:#203d32;--muted:#697568;--green:#008672;--lime:#c7f584;--violet:#7967e9;--coral:#ff795b;--line:#cad2c4;--paper:#fffdf6;font-family:'Outfit','Noto Sans JP',sans-serif;color:var(--ink);background:#f2f0e7}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 88% 0%,#dce6cc77,transparent 45%)}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{transition:background .18s,box-shadow .18s}button:hover{box-shadow:0 3px 12px #203d3214}button:disabled,input:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible,pre:focus-visible{outline:3px solid var(--violet);outline-offset:4px}[hidden]{display:none!important}a{color:var(--green);text-underline-offset:3px}.page{max-width:1580px;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;gap:12px;align-items:center}.brand-mark{position:relative;width:20px;height:20px;border:2px solid var(--violet);border-radius:50%}.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,4.8vw,72px);font-weight:800;letter-spacing:0;line-height:1.08;margin:22px 0 24px}h1>span{color:var(--coral)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px}.lead{font-size:clamp(16px,1.4vw,21px);font-weight:700;line-height:1.8;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:#e7efda}.primary-button{background:var(--ink);border-color:var(--ink);color:#fff}.primary-button:hover{background:#3c5b43}.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;flex:0 0 50px;height:50px;border-radius:15px;background:var(--coral);color:#fff;font-size:22px;font-weight:700}.section-symbol svg{width:32px;height:32px}.section-symbol.violet{background:var(--violet);font-size:18px}.section-symbol.green{background:var(--green);font-style:italic}.chip{font:700 10px/1.2 ui-monospace,monospace;background:#e8eddf;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{background:#f5f4ec;border-right:1px solid var(--line)}.control-section{padding:24px;border-bottom:1px solid var(--line)}.control-section:last-child{border-bottom:0}.control-section h3,.panel-heading h3{font-size:16px;font-weight:800;margin:0 0 16px}.control-note{font-size:11px;line-height:1.85;color:var(--muted);margin:13px 0 0}.material-list{display:grid;gap:8px}.material-list>button{display:flex;align-items:center;gap:12px;min-height:66px;padding:11px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.material-list>button:hover{background:#e5efdb}.material-list>button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.material-list strong{display:block;font-size:13px;font-weight:800}.material-list small{display:block;margin-top:5px;font-size:10px;line-height:1.6;color:var(--muted)}.material-list [aria-pressed=true] small{color:#d0dbc8}.material-icon{flex:0 0 32px;height:32px;display:grid;place-items:center;background:#e2eadd;color:var(--green);border-radius:8px;line-height:1}.material-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.material-list [aria-pressed=true] .material-icon{background:var(--lime);color:var(--ink)}.range-control{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;font-size:12px;font-weight:650;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:22px;margin:0;accent-color:var(--green);cursor:pointer}.select-control{display:grid;gap:8px;font-size:12px;font-weight:650;margin:16px 0}.select-control select{width:100%;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--paper);font-size:12px}.segmented{display:flex;position:relative;isolation:isolate;background:#e6ebe0;border:1px solid var(--line);border-radius:13px;padding:4px;gap:4px}.segmented button{position:relative;z-index:1;flex:1;min-width:0;border:0;border-radius:9px;padding:10px 12px;background:transparent;white-space:nowrap;font-size:12px;font-weight:700}.segmented [aria-pressed=true]{background:var(--violet);color:#fff}.segmented button:not([aria-pressed=true]):hover{background:#d7e2ce}
@supports (anchor-name:--selection) and (anchor-scope:--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}}
.workspace{min-width:0;background:#e8eee2;align-self:start}.workspace-toolbar{display:flex;align-items:center;gap:14px;padding:18px 24px;font:600 11px ui-monospace,monospace;background:#dce4d6;color:var(--muted);border-bottom:1px solid var(--line)}.workspace-toolbar .chip{margin-left:auto;background:#f4f7ed}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;border-radius:50%;background:#ff795b}.window-dots i:nth-child(2){background:#dfbf52}.window-dots i:nth-child(3){background:#42bc93}.source-bar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;padding:20px 24px 0}.source-bar .kicker{font-size:10px;margin:0}.source-bar>p:last-child{font-size:10px;color:var(--muted);margin:0}.source-bar .segmented{min-width:270px}.text-editor{padding:18px 24px 0}.text-editor>label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:700;margin-bottom:10px}.text-editor>label>span{font:600 10px ui-monospace,monospace;color:var(--muted)}.text-editor>input{display:block;width:100%;min-width:0;padding:13px 16px;border:1px solid #a9bda2;border-radius:12px;font-size:20px;font-weight:700;background:var(--paper)}.text-editor>p{font-size:10px;color:var(--muted);margin:8px 0 0;line-height:1.8}.text-options{margin-top:12px;font-size:11px}.text-options summary{cursor:pointer;color:var(--green);font-weight:700;width:fit-content;padding:5px 0}.text-options>div{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:16px}.text-options .range-control{font-size:11px}.view-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 24px 0}.view-toolbar>.segmented{min-width:300px}.guide-button{border:1px solid var(--line);border-radius:10px;padding:11px 13px;min-height:42px;background:var(--paper);font-size:11px;font-weight:700;white-space:nowrap}.guide-button[aria-pressed=true]{background:#d9e8cf;color:#17674e;border-color:#8fad80}.stage{position:relative;margin:18px 24px 0;border:1px solid #aebaab;border-radius:20px;overflow:hidden;background:#142b25}#surface{position:relative;max-width:800px;margin-inline:auto;touch-action:none;cursor:crosshair}#surface[data-passive=true]{touch-action:pan-y;cursor:default}#artHost svg{display:block;width:100%;height:auto}#lightHandle{position:absolute;left:28.75%;top:25%;width:42px;height:42px;transform:translate(-50%,-50%);display:grid;place-items:center;padding:4px;border:1px solid #fff9;border-radius:50%;background:#1c3029cc;color:#f7ffdd;box-shadow:0 0 0 5px #fff1,0 3px 15px #0003;cursor:grab;touch-action:none;z-index:2}#lightHandle:active{cursor:grabbing}#lightHandle svg{display:block;width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.stage-label{position:absolute;top:18px;left:20px;font:700 10px ui-monospace,monospace;letter-spacing:.08em;padding:7px 10px;border-radius:100px;background:#fffdf6de;color:#203d32;pointer-events:none}.interaction-note{margin:12px 24px 0;font-size:11px;color:var(--green);line-height:1.8}.process-note{margin:12px 24px 22px;padding:12px 16px;border:1px solid #cfdbbf;border-radius:12px;font-size:11px;line-height:1.9;color:var(--muted);background:#f4f7ec}.light-panel,.color-panel{padding:22px 24px;border-top:1px solid var(--line)}.light-panel{background:#f8f8f0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.panel-heading .kicker{margin:0 0 5px;font-size:10px}.panel-heading h3{margin:0}.panel-heading>.quiet-button{font-size:11px;padding:10px 12px}.light-ranges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.light-ranges .range-control{margin-bottom:2px}.color-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 0}.color-fields label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:700}.color-fields input{width:48px;height:34px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--paper);cursor:pointer}.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;line-height:1.8;color:var(--muted)}.examples{container:examples/inline-size;margin-top:34px}.small-heading{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap;margin-bottom:18px}.small-heading .kicker{margin:0}.small-heading h2{font-size:24px;line-height:1.5;margin:0}.example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.example-grid article{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--paper)}.example-art{border-bottom:1px solid var(--line)}.example-grid article>div:last-child{padding:22px}.example-grid h3{font-size:17px;margin:0 0 10px}.example-grid p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 14px}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:800;padding:8px 0;text-align:left}.text-button:hover{box-shadow:none;text-decoration:underline;text-underline-offset:4px}.examples-note{font-size:11px;color:var(--muted);line-height:1.9;margin:14px 0 0}.code-section,.guide{container:section/inline-size;margin-top:30px;border:1px solid var(--line);border-radius:26px;overflow:clip;background:var(--paper)}.code-grid{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.25fr)}.code-copy{padding:32px;border-right:1px solid var(--line)}.code-copy h3{font-size:27px;line-height:1.5;margin:0 0 18px}.code-copy>p{font-size:12px;line-height:1.9;color:var(--muted)}.download-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.download-buttons .primary-button{background:var(--violet);border-color:var(--violet)}.download-buttons .primary-button:hover{background:#6050ce}.code-warning{border-left:3px solid var(--violet);padding-left:14px;margin-top:26px!important}.code-panel{min-width:0;background:#1c3028;color:#f0f3e9}.code-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;border-bottom:1px solid #425645}.code-head .kicker{color:var(--lime);margin:0}.code-head .segmented{width:180px;border-color:#60715d;background:#314635}.code-head .segmented button{color:white}.code-head .segmented button:not([aria-pressed=true]):hover{background:#45604a}.code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-bottom:1px solid #425645;font:600 10px ui-monospace,monospace;color:#c2cebb}.code-toolbar button{border:1px solid #60715d;border-radius:10px;background:transparent;padding:10px 12px;color:white;font-size:11px;font-weight:700}.code-toolbar button:hover{background:#3a5140}pre{max-height:540px;overflow:auto;margin:0;padding:24px;font:12px/1.85 ui-monospace,monospace;tab-size:2}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;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{margin:0 30px;padding:18px 22px;border-radius:12px;background:#eaf0e2;font-size:12px;line-height:1.9;color:var(--muted)}.sources{margin:0;padding:20px 30px 24px;font-size:11px;line-height:1.9}.page-footer{display:flex;justify-content:space-between;gap:20px;padding-top:26px;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;z-index:60;padding:13px 20px;border:1px solid #60715d;border-radius:12px;background:var(--ink);color:white;box-shadow:0 6px 24px #0002;max-width:calc(100vw - 32px);width:max-content;text-align:center;font-size:12px;line-height:1.7;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}}
@container studio (width < 700px){.controls{grid-template-columns:1fr}.control-section{border-right:0}.material-list{grid-template-columns:repeat(3,minmax(0,1fr))}.material-list>button{flex-direction:column;align-items:flex-start;gap:9px}.material-list strong{font-size:12px}.material-list small{font-size:10px}.material-icon{flex-basis:32px;width:32px}.text-options>div{grid-template-columns:1fr}.light-ranges{grid-template-columns:1fr;gap:0}.light-ranges .range-control{margin:18px 0 6px}.color-fields label{flex-direction:column;align-items:flex-start}.color-fields input{width:100%}.view-toolbar{align-items:stretch;flex-wrap:wrap}.view-toolbar>.segmented{min-width:0;flex:1 1 100%}.view-toolbar>.guide-button{margin-left:auto}.workspace-footer{flex-wrap:wrap}.workspace-footer>.quiet-button{margin-left:auto}.source-bar .segmented{min-width:0;flex:1}.source-bar>.kicker{display:none}.source-bar>p:last-child{flex-basis:100%}}
@container studio (width < 450px){.section-heading{padding:20px 18px;gap:12px}.section-heading>.chip{display:none}.section-symbol{flex-basis:40px;height:40px;border-radius:12px}.workspace-toolbar{padding:16px;gap:9px;font-size:10px}.workspace-toolbar .chip{padding:7px 9px}.source-bar{padding:18px 16px 0}.text-editor{padding:18px 16px 0}.text-editor>input{font-size:18px;padding:12px}.view-toolbar{padding:16px 16px 0;gap:10px}.view-toolbar .segmented button{padding:10px 8px;font-size:11px}.guide-button{font-size:10px;padding:10px 12px}.stage{margin:16px 16px 0;border-radius:14px}.stage-label{top:10px;left:10px;font-size:10px;padding:5px 8px;letter-spacing:0}#lightHandle{width:36px;height:36px}#lightHandle svg{width:26px;height:26px}.interaction-note{margin-inline:16px;font-size:10px}.process-note{margin-inline:16px;padding:12px}.light-panel,.color-panel{padding:20px 16px}.color-fields{gap:10px}.workspace-footer{padding:16px}.control-section{padding:22px}.material-list>button{padding:10px;gap:8px}.material-list strong{font-size:11px}}
@container examples (width < 700px){.example-grid{grid-template-columns:1fr}.example-grid article{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.example-art{align-self:center;border-bottom:0}.example-grid article>div:last-child{padding:18px}.example-grid h3{font-size:15px}.example-grid p{font-size:11px}.small-heading h2{font-size:21px}}
@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:26px}.code-head,.code-toolbar{padding:18px}.code-head .kicker{font-size:10px}pre{padding:18px;font-size:11px}.sources{padding-inline:26px}}
@media(max-width:700px){.page{padding:24px 16px}.hero-bottom{flex-direction:column;align-items:flex-start;gap:16px}.lead{font-size:15px}.lead strong{margin-left:0}h1{font-size:clamp(34px,7.8vw,52px)}.eyebrow{font-size:10px;letter-spacing:.06em}.lab,.code-section,.guide{border-radius:20px}.page-footer{flex-direction:column;gap:7px}}
.motion-panel{padding:22px 24px;border-top:1px solid var(--line);background:#f2f0fa;container:motion/inline-size}.motion-routes{margin-top:18px}.playback-actions{position:absolute;bottom:16px;right:16px;display:flex;flex-wrap:wrap;gap:8px;z-index:3}.playback-actions .primary-button{background:#7967e9;border-color:#7967e9}.playback-actions .primary-button:hover{background:#6451d5}.playback-actions button{font-size:11px;padding:10px 12px;min-height:40px}.motion-options{margin-top:16px;font-size:11px}.motion-options summary{cursor:pointer;color:var(--green);font-weight:700;padding:6px 0;width:fit-content}.motion-timing,.motion-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.motion-selects{grid-template-columns:minmax(120px,.65fr) minmax(0,1.35fr)}.motion-selects p{font-size:12px;font-weight:700;margin:4px 0 10px}.motion-selects button{font-size:11px;padding-inline:8px}.code-copy{min-width:0}.embed-help{margin-top:20px;font-size:12px;line-height:1.9}.embed-help summary{font-weight:700;cursor:pointer;color:var(--green)}.embed-help p{color:var(--muted)}.embed-help pre{font-size:10px;padding:14px;background:#eaf0e2;border-radius:10px}
@container motion (width < 500px){.motion-timing,.motion-selects{grid-template-columns:1fr;gap:0}.motion-selects>div{margin-top:12px}.motion-routes button{font-size:11px;padding-inline:8px}.motion-panel>.panel-heading>.chip{display:none}}
@container studio (width < 450px){.motion-panel{padding:20px 16px}.playback-actions{right:10px;bottom:10px;gap:6px}.playback-actions button{padding:8px 10px;font-size:10px;min-height:36px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
