/* Tap the Sea: a music toy for the littlest players, in the sunlit shallows. */
.sea { background: #4FA9C6; cursor: pointer; }
.rays { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; }
.rays i { position: absolute; top: -10%; width: 14%; height: 120%; background: linear-gradient(180deg, rgba(255,255,240,.55), rgba(255,255,240,0) 80%); transform: skewX(-12deg); animation: ray 14s ease-in-out infinite; opacity: .5; }
.rays i:nth-child(1) { left: 18%; } .rays i:nth-child(2) { left: 46%; animation-delay: -5s; width: 10%; } .rays i:nth-child(3) { left: 72%; animation-delay: -9s; }
@keyframes ray { 50% { opacity: .15; transform: skewX(-8deg) translateX(2%); } }

.friends { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.friend { position: absolute; transform: translate(-50%, -50%); width: var(--w); pointer-events: auto; cursor: pointer; border: 0; padding: 0; background: none; }
.friend img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(10, 50, 80, .25)); }
.friend__body { display: block; animation: bob var(--bob, 5s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { transform: translateY(-4%); } }
.friend:focus-visible { outline: 4px solid rgba(255,255,255,.9); outline-offset: 4px; border-radius: 30%; }

.fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); transform: translate(-50%, -50%) scale(.3); }
.bub { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(255,255,255,.15); transform: translate(-50%, -50%); }
.mnote { position: absolute; font-style: normal; color: #fff; font-size: clamp(22px, 5vmin, 44px); text-shadow: 0 2px 8px rgba(10, 60, 90, .35); transform: translate(-50%, -50%); }

@media (prefers-reduced-motion: reduce) {
  .rays i, .friend__body { animation: none; }
}
