/* Design fish (fish.js): on the cover the orange circle becomes an orange fishbowl, the fish
   jumps out and the camera follows it down into the Design page, where it drops into that
   page's matching bowl. */
.fish-stage { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fish-world { position: absolute; inset: 0; }
.fish-bowl { position: absolute; left: 0; top: 0; overflow: visible; mix-blend-mode: multiply; }
.fish-bowl .water { fill: #ff5a1f; }
.fish-bowl .glass, .fish-bowl .rim, .fish-bowl .shine, .fish-bowl .surface { fill: none; stroke: var(--ink, #1a1a1a); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fish-bowl .glass, .fish-bowl .rim, .fish-bowl .surface { stroke-width: 1.3px; }
.fish-bowl .shine { stroke-width: 1.1px; opacity: .45; }
.fish-ring { position: absolute; left: 0; top: 0; border: 1px solid var(--ink, #1a1a1a); border-radius: 50%; opacity: 0; pointer-events: none; }
.fish-sprite { position: absolute; left: 0; top: 0; display: block; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; user-select: none; -webkit-user-drag: none; }

/* The Design page's bowl: the same orange fishbowl, in the sun's spot. */
.pond { position: absolute; z-index: 1; top: 18vh; right: max(calc(var(--gap) + 6vw), calc(50% - 470px)); width: clamp(180px, 30vw, 380px); aspect-ratio: 1; pointer-events: none; }
.pond .fish-bowl { left: -15%; top: -15%; width: 130%; height: 130%; }
.fish-arrive .runhead, .fish-arrive .chapter, .fish-arrive .pond { transform: translateY(60vh); }
/* Like the sun it may hang past the sheet's edge; don't let that scroll the page sideways. */
html:has(.pond), .page-design { overflow-x: clip; }
@media (max-width: 520px) { .pond { top: 64px; right: -40px; width: 170px; } }

/* Design: the falling fish passes under the page's content. */
.fish-stage--under { z-index: 0; }
.page-design .runhead, .page-design .chapter { position: relative; z-index: 1; }
