/* Launch splash. Painted from index.html before the app script runs. Colours match design/brand.
   The water rises once (900 ms, ease out), then bobs gently (2.4 s cycle) only while the app is still loading.
   The cover is deep water coloured and sits between the water and the basin; shrinking it from the bottom up reveals the water.
   Its final state has no height, so the last frame is the brand mark exactly. */
html, body { background: #073B4C; }
.splash {
  position: fixed; inset: 0; z-index: 1000; background: #073B4C;
  display: flex; align-items: center; justify-content: center;
  padding-block: env(safe-area-inset-top) env(safe-area-inset-bottom);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  opacity: 1; transition: opacity 250ms ease;
}
.splash--out { opacity: 0; pointer-events: none; }
.splash__logo { display: block; width: min(260px, 72vw); height: auto; }
.splash__cover {
  transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(1);
  animation: splash-fill 900ms cubic-bezier(0.2, 0.7, 0.25, 1) forwards, splash-bob 2400ms ease-in-out 900ms infinite;
}
@keyframes splash-fill { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes splash-bob { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(0.08); } }
@media (prefers-reduced-motion: reduce) {
  .splash { transition: none; }
  .splash__cover { display: none; animation: none; }
}
