/* Motion starts only after the local control is ready; no-JS stays still. */
body::before{animation-play-state:paused}
body[data-gallery-motion=running]::before{animation-play-state:running}
.gallery-motion{min-height:44px;padding:9px 12px;border:1px solid #ad9ebe;border-radius:7px;background:linear-gradient(110deg,#392d58,#224a59);color:#efeaff;font:inherit}
.gallery-motion[aria-pressed=true]{border-color:#a8e9f2;background:#272641}
@media(prefers-reduced-motion:reduce){body::before,body[data-gallery-motion=running]::before{animation:none}}
@media(forced-colors:active){.gallery-motion,.gallery-motion[aria-pressed=true]{background:ButtonFace;color:ButtonText;border-color:ButtonText}body::before{display:none}}

/* Repeat the existing decorative code; one full tile makes the loop continuous. */
@supports(mask-image:linear-gradient(white,white)){
body::before{content:"";inset:-16vmax;translate:none;background:currentColor;mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221400%22%20height%3D%22780%22%20viewBox%3D%220%200%201400%20780%22%3E%3Cg%20fill%3D%22white%22%20font-family%3D%22Consolas%2Cmonospace%22%20font-size%3D%2260%22%3E%3Ctext%20x%3D%2226%22%20y%3D%2290%22%3Econst%20canvas%20%3D%20imagination%3B%3C%2Ftext%3E%3Ctext%20x%3D%2226%22%20y%3D%22246%22%3Elet%20sketch%20%3D%20pencil%20%2B%20paper%3B%3C%2Ftext%3E%3Ctext%20x%3D%2226%22%20y%3D%22402%22%3Edraw(character)%3B%3C%2Ftext%3E%3Ctext%20x%3D%2226%22%20y%3D%22558%22%3Esave(unfinishedIdeas)%3B%3C%2Ftext%3E%3Ctext%20x%3D%2226%22%20y%3D%22714%22%3Ereturn%20tomorrow%3B%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-size:calc(70em / 3) 13em;mask-repeat:repeat;mask-position:0 0;animation-duration:300s;animation-timing-function:steps(9000,end)}
@keyframes code-drift{from{mask-position:0 0}to{mask-position:0 -13em}}
}
