/* Small local glass effects; no canvas, WebGL or full-page filters. */
html.has-depth-scroll { scrollbar-width: none; }
html.has-depth-scroll::-webkit-scrollbar { display: none; }
.depth-scroll { position: fixed; z-index: 30; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: clamp(190px, 43vh, 340px); cursor: grab; touch-action: none; user-select: none; border-radius: 24px; }
.depth-scroll.is-dragging { cursor: grabbing; }
.depth-tube { position: absolute; inset: 0 9px; overflow: hidden; border-radius: 20px; border: 1px solid #a7edee70; background: linear-gradient(90deg, #7bdddf26, #001e3273 24%, #00192b80 68%, #8bf3f42b); box-shadow: inset 2px 0 3px #bef5f64d, inset -2px 0 4px #001b34b3, 0 2px 9px #001a3240; backdrop-filter: blur(2px); }
.depth-tube::after { content: ''; position: absolute; z-index: 4; inset: 2px 3px; border-radius: inherit; pointer-events: none; background: linear-gradient(100deg, #f1ffff70, transparent 15%, transparent 68%, #8affff20 90%, #e9ffff60); opacity: .65; }
.depth-water { position: absolute; top: calc(var(--level, 3%) - 5px); bottom: 0; left: 0; right: 0; background: linear-gradient(90deg,#24c9d77d,#008ea4a6 35%,#02a6b58c 75%,#72eff3b3); box-shadow: inset 0 -10px 16px -8px #a8ffffd6; overflow: hidden; }
.depth-surface { position: absolute; top: var(--level, 3%); left: -40%; width: 180%; height: 13px; transform: translateY(-5px); z-index: 3; pointer-events: none; }
.depth-surface svg { width: 100%; height: 100%; animation: gauge-wave 4s ease-in-out infinite alternate; }
.depth-surface path { fill: none; stroke: #d0ffff; stroke-width: 1.3; }
.depth-water i { position: absolute; bottom: -8px; left: var(--x); width: var(--size, 3px); height: var(--size, 3px); border-radius: 50%; border: 1px solid #b5ffff91; box-shadow: inset 1px 1px 1px #d5ffff66; animation: gauge-bubble var(--duration, 10s) linear infinite; animation-delay: var(--delay, 0s); opacity: 0; }
.depth-scroll:hover .depth-tube, .depth-scroll:focus-visible .depth-tube { border-color: #d9ffffc9; box-shadow: inset 2px 0 4px #d5ffff70, inset -2px 0 4px #001b34b3, 0 0 7px #68dee636; }
.depth-scroll:focus-visible { outline: none; }
.return-top { position: fixed; bottom: 24px; right: 23px; width: 48px; height: 48px; z-index: 31; border-radius: 50%; padding: 12px; color: #e2fbf9; border: 1px solid #cff9fa66; background: radial-gradient(ellipse at 29% 18%,#e9ffff66 0%,#a7e5ec1a 24%,transparent 48%),linear-gradient(140deg,#9cdae21a,#08344c66 65%,#8adee63d); box-shadow: inset 1px 2px 3px #d6ffff80,inset -2px -3px 4px #00283e66,0 3px 12px #00243433; backdrop-filter: blur(3px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s, background .2s; }
.return-top.is-visible { opacity: .76; visibility: visible; pointer-events: auto; animation: bubble-bob 4s ease-in-out infinite; }
.return-top:hover, .return-top:focus-visible { opacity: 1; background-color: #45b3bf4d; }
.return-top svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes gauge-wave { from { transform: translateX(-7px); } to { transform: translateX(7px); } }
@keyframes gauge-bubble { 0% { transform: translate(0,0); opacity: 0; } 12% { opacity: .65; } 90% { opacity: .25; } 100% { transform: translate(3px,-350px); opacity: 0; } }
@keyframes bubble-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
html[data-motion='paused'] .depth-scroll *, html[data-motion='paused'] .return-top { animation-play-state: paused; }
@media (max-width:720px) { .depth-scroll { right: 0; width: 24px; height: 190px; } .depth-tube { inset-inline: 7px 5px; } .depth-water i:nth-child(n+4) { display: none; } .return-top { right: 17px; bottom: 6.5rem; width: 43px; height: 43px; } }
@media (prefers-reduced-motion:reduce) { .depth-scroll *, .return-top { animation: none !important; transition: none; } }
@media (forced-colors:active) { .depth-tube { border: 1px solid CanvasText; } .depth-surface { height: 8px; background: Highlight; } .return-top { background: Canvas; border-color: CanvasText; color: CanvasText; } }

/* One continuous liquid fill: the moving mask supplies its only top edge. */
.depth-water { mask-image: url('../assets/water-surface-mask.svg'), linear-gradient(#000,#000); mask-size: 180% 13px, 100% max(0px, calc(100% - 12px)); mask-position: center top, center bottom; mask-repeat: no-repeat; mask-composite: add; animation: water-mask-wave 4s ease-in-out infinite alternate; }
@keyframes water-mask-wave { from { mask-position: calc(50% - 7px) top, center bottom; } to { mask-position: calc(50% + 7px) top, center bottom; } }
