/* The Living Scroll — additions on top of style.css + study.css */
/* While WebGL loads, show plain paper: the canvas reveals the painting with an ink bloom.
   No JS, no WebGL, a slow load (3 s) or reduced motion keeps the painted fallback. */
.art-loading .scene-fallback{opacity:0;transition:none}
.art-bloom .garden-canvas{transition:none}
.art-ready .scene-fallback{visibility:hidden;transition:visibility 0s .9s}
/* Koi pond: the painting sits lower so the water shows; the native pond takes taps. The CSS painting
   (koi-free WebP, far lighter than the old PNGs) stays as the no-WebGL2 fallback. */
.motion-study .pond-art{background-image:url(assets/scroll-clean.webp?v=3);background-position:50% 99%;mask-image:linear-gradient(180deg,transparent 0%,#0004 12%,#000 30%,#000 88%,transparent 100%),linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#0004 12%,#000 30%,#000 88%,transparent 100%),linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.moon.motion-study .pond-art{background-image:url(assets/moon-clean.webp?v=3)}
.pond-water[data-renderer="koi-pond"]{opacity:1;pointer-events:auto;touch-action:pan-y}
/* koi-wash (koi-pond.js) and pond3d (pond3d/pond3d.js): the pond paints its own edge on the page's paper, so no painting
   behind it and no fade mask. These rules must stay above .pond-stage .pond-water (same specificity: the dialog's touch-action wins) */
.pond-water[data-renderer="koi-wash"],.pond-water[data-renderer="pond3d"]{opacity:1;pointer-events:auto;touch-action:pan-y}
.motion-study .pond.koi-wash .pond-art{background-image:none;-webkit-mask-image:none;mask-image:none}
.motion-study .pond.koi-wash:after{display:none}
/* the words block lies over the water (z-index 1; on phones its bottom padding spans the whole pond): taps pass through it, not through its words */
.motion-study .pond.koi-wash .pond-content{pointer-events:none}.motion-study .pond.koi-wash .pond-content>*{pointer-events:auto}
@media(max-width:720px){.motion-study .pond.koi-wash{height:auto}.motion-study .pond.koi-wash .pond-content{padding:64px 6% min(110vw,480px)}}
.pond-game .pond-stage{position:relative;width:100%;height:calc(100% - 52px);overflow:hidden;border-radius:2px;background:var(--paper)}
.pond-stage .pond-water{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.pond-stage iframe{display:block;width:100%;height:100%;border:0}
.pond-bar{display:flex;align-items:center;gap:6px 20px;flex-wrap:wrap;min-height:44px;padding:4px 15px 0;font-size:12px}
.pond-bar .pond-feed,.pond-bar .pond-dismiss{margin:0;font-size:12px}
.pond-note{flex:1 1 220px;opacity:.75}
.pond-classic{font-size:12px;color:inherit}
@media(max-width:720px){.motion-study .pond-art{background-position:62% 99%;mask-image:linear-gradient(180deg,transparent 0%,#0003 15%,#000 38%,#000 88%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#0003 15%,#000 38%,#000 88%,transparent 100%)}.pond-game .pond-stage{height:calc(100% - 84px)}.pond-note{order:3;flex-basis:100%}}
/* the sky note beside the name: what the light is doing now (stage.js marks the bar .sky-on while there is one); the phone keeps its first part, in place of the name */
.preview-bar.sky-on .dashboard-name{margin-right:0}.sky-note{margin:0 auto 0 -10px;color:var(--muted);font-size:12px;white-space:nowrap}.sky-main:not(:empty)::before{content:"\00b7\00a0\00a0"}
@media(max-width:720px){.preview-bar.sky-on .dashboard-name{display:none}.sky-note{margin-left:0;font-size:10px}.sky-main::before,.sky-more{display:none}}

/* round 5: on phones the page keeps a lane on its right for the painted stream (garden-layer.js); the pond still spans the screen */
@media(max-width:720px){main{margin-right:44px}.motion-study .pond{margin-left:-6vw;margin-right:-44px}footer{margin-right:44px}}
