

.mw { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
#mapPan > .map-spots { z-index: 2; }

#mapPan.wlite > .map-spots { z-index: auto; }
#mapPan.wlite .spot { z-index: 0; }
#mapPan.wlite .cmark { z-index: 2; }
.mw.hidden { display: none; }
.mw .mw-off { display: none; } 
.mw-p { position: absolute; overflow: hidden; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

.mw-a { position: absolute; left: -240px; top: -240px; right: -240px; bottom: -240px;
  background: url(../img/water/ripple_a.webp) 0 0 / 120px 120px repeat; opacity: .55;
  animation: mwA 20s linear infinite; will-change: transform; }

.mw-b { position: absolute; left: -320px; top: -320px; right: -320px; bottom: -320px;
  background: url(../img/water/ripple_b.webp) 0 0 / 160px 160px repeat; opacity: .9;
  animation: mwB 30s linear infinite; will-change: transform; }
.mw-quiet .mw-p, .mw-quiet .mw-f, .mw-quiet .mw-fall { display: none; } 
.mw-lite .mw-a { left: 0; top: 0; right: -120px; bottom: -240px; } 
@keyframes mwA { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-120px, -240px, 0); } }
@keyframes mwB { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(160px, -160px, 0); } }

.mw-s { position: absolute; inset: 0; filter: url(#mwF); }
.mw-a2 { opacity: .22; }

.mw-gl { position: absolute; }


.mw-f { position: absolute; width: 0; height: 0; }
.mw-jet { position: absolute; left: calc(var(--s) * -1.6px); bottom: 0; width: calc(var(--s) * 3.2px); height: var(--h);
  border-radius: 3px 3px 1px 1px; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255,255,255,.95), rgba(235,248,255,.85) 70%, rgba(255,255,255,0));
  animation: mwJet 1.7s ease-in-out infinite alternate; }
.mw-jet.j2 { width: calc(var(--s) * 1.4px); left: calc(var(--s) * -0.7px); opacity: .9; animation-duration: 1.1s; animation-delay: -.5s; }
@keyframes mwJet { from { transform: scaleY(.9); opacity: .78; } to { transform: scaleY(1.05); opacity: .96; } }
.mw-mist { position: absolute; left: calc(var(--rx) * -.45); top: calc(var(--ry) * -1.2); width: calc(var(--rx) * .9); height: calc(var(--ry) * 1.6);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: mwMist 2.4s ease-in-out infinite alternate; }
@keyframes mwMist { from { opacity: .45; transform: scale(.92); } to { opacity: .8; transform: scale(1.06); } }

.mw-ring { position: absolute; left: calc(var(--rx) * -1); top: calc(var(--ry) * -1); width: calc(var(--rx) * 2); height: calc(var(--ry) * 2);
  box-sizing: border-box; border-radius: 50%; border: calc(var(--s) * 1.6px + .6px) solid rgba(255,255,255,.75);
  animation: mwRing 2.7s ease-out infinite; transform: scale(.2); opacity: 0; }
@keyframes mwRing { 0% { transform: scale(.18); opacity: .85; } 100% { transform: scale(.95); opacity: 0; } }

.mw-dx { position: absolute; left: 0; top: calc(var(--h) * -1); width: 0; height: 0; animation: mwDx 1.3s linear infinite; }
.mw-dy { position: absolute; left: calc(var(--s) * -1px - .3px); top: calc(var(--s) * -1px - .3px); width: calc(var(--s) * 2px + .6px); height: calc(var(--s) * 2px + .6px);
  border-radius: 50%; background: rgba(255,255,255,.8); animation: mwDy 1.3s linear infinite; }
@keyframes mwDx { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
@keyframes mwDy {
  0% { transform: translateY(0); opacity: 0; animation-timing-function: cubic-bezier(.2,.6,.4,1); }
  8% { opacity: .95; }
  30% { transform: translateY(calc(var(--h) * -.16)); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  92% { opacity: .9; }
  100% { transform: translateY(var(--h)); opacity: 0; } }
.mw-f:not(.arc) .mw-dx { animation-duration: 1s; }
.mw-f:not(.arc) .mw-dy { animation-duration: 1s; }


.mw-fall { position: absolute; overflow: hidden; border-radius: 6px 6px 40% 40% / 6px 6px 18% 18%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.mw-fs { position: absolute; left: 0; right: 0; top: -60px; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.55) 11px, rgba(255,255,255,0) 15px 30px),
              repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 3px, rgba(255,255,255,.35) 4px, rgba(255,255,255,0) 6px 9px);
  background-blend-mode: multiply; opacity: .55; animation: mwFall 1.2s linear infinite; }
.mw-fs.s2 { opacity: .35; animation-duration: .8s; background-position: 4px 0; }
@keyframes mwFall { from { transform: translateY(0); } to { transform: translateY(30px); } }
.mw-foam { position: absolute; left: 10%; right: 10%; bottom: -6px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.8), rgba(255,255,255,0)); animation: mwMist 1.6s ease-in-out infinite alternate; }


.mw-paused *, .mw-paused { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .mw * { animation: none !important; } }


.pf-note { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 9000;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-radius: 999px;
  background: rgba(24, 30, 26, .88); color: #f3f6ef; font-size: 14px; line-height: 1.3; box-shadow: 0 4px 18px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; max-width: calc(100vw - 32px); word-break: keep-all; }
.pf-note.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pf-undo { border: 0; border-radius: 999px; padding: 6px 12px; background: #b8e07a; color: #1d2a12; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }

.hud-pf { display: flex; gap: 6px; margin: 2px 0 6px; }
.hud-pf button { flex: 1; min-height: 38px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.7); font-size: 14px; cursor: pointer; }
.hud-pf button[aria-pressed="true"] { background: #b8e07a; border-color: #8fb653; font-weight: 700; color: #1d2a12; }
.hud-pfnote { margin: 0 0 6px; font-size: 12px; opacity: .7; word-break: keep-all; }
