/* Pip's Clean Sea: Pip, the drifting things and Eco's clean-up swim (frame in ../game.css). */
/* no buttons under the board, so the board can take a little more of the window */
.game { width: min(100%, 550px, calc((100svh - 240px) * 600 / 760 + 30px)); }
@media (max-width: 520px) { .game { width: 100%; } }
.board { background: #1f6fb5; cursor: grab; }
.board:active { cursor: grabbing; }

.sea__thing { transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); will-change: left, top, transform; }
.sea__thing.is-gone { transition: opacity .3s ease, transform .3s ease; opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.sea__pip { transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); will-change: left, top, transform; z-index: 2; }
.sea__pip.is-hurt { animation: sea-blink .2s steps(2) infinite; }
@keyframes sea-blink { 50% { opacity: .25; } }
.sea__eco { transform: translate(-50%, -50%); z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .sea__thing.is-gone { transition: none; }
  .sea__pip.is-hurt { animation: none; opacity: .55; }
}
