.demo{display:grid;gap:1rem;justify-items:start}.demo-art{--shade:light-dark(rgb(var(--color-ink)/.3),rgb(var(--color-canvas)/.7));box-sizing:content-box;width:256px;height:160px;max-width:none;border:3px solid rgb(var(--color-ink));box-shadow:2px 2px var(--shade),4px 4px var(--shade);object-fit:cover;object-position:calc(100% * var(--demo-pose, 0) / var(--demo-last, 1)) 0;image-rendering:pixelated}.demo-gists{min-height:3.25rem;max-width:40rem}.demo-gist{color:rgb(var(--color-ink));font-size:1.0625rem;line-height:1.625rem}.demo-gist:not(:first-child){display:none}.demo-when{display:block;color:rgb(var(--color-accent));font-size:.75rem;font-weight:600;letter-spacing:.08em;line-height:1.25rem;text-transform:uppercase}.demo-choices{display:grid;gap:.5rem;width:100%;max-width:24rem;min-width:0;margin:0;border:0;padding:0}.demo-legend{margin-bottom:.5rem;padding:0;color:rgb(var(--color-ink-muted));font-size:.75rem;font-weight:600;letter-spacing:.12em;line-height:1rem;text-transform:uppercase}.demo-choice{display:flex;align-items:center;gap:.75rem;min-height:2.75rem;border:2px solid rgb(var(--color-line));border-radius:var(--radius-md);padding:.375rem .75rem;color:rgb(var(--color-ink));line-height:1.25rem}.demo-choice,.demo-choice>input{background:rgb(var(--color-surface));cursor:pointer}.demo-choice>input{flex-shrink:0;box-sizing:border-box;width:1.125rem;height:1.125rem;margin:0;border:2px solid rgb(var(--color-ink-muted));border-radius:50%;appearance:none}.demo-choice>input:checked{border:.3125rem solid rgb(var(--color-accent))}.demo-choice>input:focus-visible{outline:none}.demo-number{width:1rem;flex-shrink:0;color:rgb(var(--color-accent));font-size:.875rem}.demo-choice:has(>input:checked){border-color:rgb(var(--color-accent));font-weight:600}.demo-choice:has(>input:focus-visible){outline:2px solid rgb(var(--color-accent));outline-offset:2px}.demo-choices:has(>.demo-choice:nth-of-type(6)){gap:.25rem}.demo-choice-key{background:rgb(var(--color-accent)/.1);color:rgb(var(--color-accent))}.demo:has(.demo-choice:nth-of-type(2):last-of-type){--demo-last:1}.demo:has(.demo-choice:nth-of-type(3):last-of-type){--demo-last:2}.demo:has(.demo-choice:nth-of-type(4):last-of-type){--demo-last:3}.demo:has(.demo-choice:nth-of-type(5):last-of-type){--demo-last:4}.demo:has(.demo-choice:nth-of-type(6):last-of-type){--demo-last:5}.demo:has(.demo-choice:nth-of-type(7):last-of-type){--demo-last:6}.demo:has(.demo-choice:nth-of-type(8):last-of-type){--demo-last:7}.demo:has(.demo-choice:nth-of-type(2)>input:checked){--demo-pose:1}.demo:has(.demo-choice:nth-of-type(3)>input:checked){--demo-pose:2}.demo:has(.demo-choice:nth-of-type(4)>input:checked){--demo-pose:3}.demo:has(.demo-choice:nth-of-type(5)>input:checked){--demo-pose:4}.demo:has(.demo-choice:nth-of-type(6)>input:checked){--demo-pose:5}.demo:has(.demo-choice:nth-of-type(7)>input:checked){--demo-pose:6}.demo:has(.demo-choice:nth-of-type(8)>input:checked){--demo-pose:7}.demo:has(.demo-choice:not(:first-of-type)>input:checked) .demo-gist:first-child{display:none}.demo:has(.demo-choice:nth-of-type(2)>input:checked) .demo-gist:nth-child(2){display:block}.demo:has(.demo-choice:nth-of-type(3)>input:checked) .demo-gist:nth-child(3){display:block}.demo:has(.demo-choice:nth-of-type(4)>input:checked) .demo-gist:nth-child(4){display:block}.demo:has(.demo-choice:nth-of-type(5)>input:checked) .demo-gist:nth-child(5){display:block}.demo:has(.demo-choice:nth-of-type(6)>input:checked) .demo-gist:nth-child(6){display:block}.demo:has(.demo-choice:nth-of-type(7)>input:checked) .demo-gist:nth-child(7){display:block}.demo:has(.demo-choice:nth-of-type(8)>input:checked) .demo-gist:nth-child(8){display:block}@media (min-width:380px){.demo-art{width:320px;height:200px}}@media (min-width:768px){.demo{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:1.5rem;row-gap:1rem}.demo-art{grid-row:1;grid-column:1;width:384px;height:240px}.demo-gists{grid-row:2;grid-column:1;min-height:0;max-width:390px}.demo-choices{grid-row:1/span 2;grid-column:2;align-self:start}}