:root {
  --pond-height: clamp(4.5rem, 11vh, 7rem);
  --pond-clearance: calc(var(--pond-height) + env(safe-area-inset-bottom, 0px));
  scroll-padding-block-end: calc(var(--pond-clearance) + .75rem);
}
.pond-layout {
  padding-block-end: var(--pond-clearance);
}
/* Keep the card margins within the page and its controls behind the shore. */
.pond-page { display: flow-root; isolation: isolate; }
.pond-scene {
  position: fixed;
  inset: auto 0 0;
  height: var(--pond-clearance);
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}
.pond-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Size the banks by the scene height; only the open water stretches. */
  border-image: url("/assets/pond-shore.webp") 0 330 fill / 0 min(25vw, calc(var(--pond-height) * 1.94)) stretch;
}
.pond-grass::before,
.pond-grass::after {
  content: "";
  position: absolute;
  bottom: 24%;
  width: clamp(2rem, 6vw, 5.75rem);
  height: 49%;
  background: linear-gradient(105deg, #58764e 10%, #71895a 56%, #52734d 85%);
  clip-path: polygon(0 35%, 9% 45%, 21% 68%, 29% 84%, 24% 56%, 15% 27%,
    8% 10%, 23% 27%, 37% 60%, 42% 75%, 41% 41%, 36% 12%, 31% 0,
    43% 16%, 50% 46%, 53% 69%, 57% 46%, 64% 21%, 74% 6%, 67% 29%,
    63% 55%, 62% 79%, 72% 58%, 86% 43%, 96% 38%, 83% 53%, 72% 72%,
    66% 89%, 82% 78%, 100% 71%, 86% 83%, 71% 96%, 63% 100%,
    31% 98%, 24% 80%, 12% 55%);
  transform-origin: 50% 98%;
}
.pond-grass::before { left: 3.8%; }
.pond-grass::after {
  right: 3.3%;
  bottom: 26%;
  width: clamp(1.7rem, 4vw, 4rem);
  height: 41%;
  background: linear-gradient(85deg, #486f54, #73905c);
  scale: -1 1;
}
.pond-ripple {
  position: absolute;
  left: 55%;
  bottom: 18%;
  width: clamp(2.6rem, 5.4vw, 5rem);
  height: clamp(.45rem, 1vw, .85rem);
}
.pond-ripple::before,
.pond-ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid #f0f5d9;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: .52;
  transform: rotate(-4deg);
}
.pond-ripple::after { inset: 24% 22%; border-color: #edf3da transparent #edf3da #edf3da; }
@media (prefers-reduced-motion: no-preference) {
  .pond-grass::before { animation: pond-breeze 4.7s ease-in-out -1.1s infinite alternate; }
  .pond-grass::after { animation: pond-breeze 5.9s ease-in-out -3.6s infinite alternate-reverse; }
  .pond-ripple::before { animation: pond-ring 8.5s ease-out -2.1s infinite; }
  .pond-ripple::after { animation: pond-ring 8.5s ease-out -1.65s infinite; }
}
@keyframes pond-breeze {
  from { transform: skewX(-6deg); }
  64% { transform: skewX(3deg); }
  to { transform: skewX(5deg); }
}
@keyframes pond-ring {
  0% { opacity: 0; transform: rotate(-4deg) scale(.3, .4); }
  8% { opacity: .8; }
  35%, 100% { opacity: 0; transform: rotate(-4deg) scale(1.28, 1.12); }
}
@media (max-width: 620px) {
  :root { --pond-height: clamp(2.8rem, 7.5vh, 4.25rem); }
  .pond-page .wallet-shell { min-height: calc(100dvh - var(--pond-clearance)); }
}
@media (max-height: 480px) {
  :root { --pond-height: 1.75rem; }
}
@media print, (forced-colors: active) {
  :root { --pond-clearance: 0px; scroll-padding-block-end: 0; }
  .pond-scene { display: none; }
}
