/* SeaTrack v97.75 — first-launch splash + acknowledgement card */
.st-splash {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #0a3a4e 0%, #06141f 70%);
  color: #e8f4f8;
  transition: opacity .45s ease;
}
.st-splash.st-out { opacity: 0; pointer-events: none; }
.st-splash[hidden] { display: none !important; }
.st-splash-welcome {
  margin: 0 12px 12px;
  max-width: min(92vw, 300px);
  text-align: center;
  font: 700 calc(16px * var(--ts, 1))/1.25 system-ui, -apple-system, sans-serif;
  letter-spacing: .01em;
  color: #5eead4;
  opacity: 0;
  animation: st-welcome-in .55s ease-out .08s forwards;
}
@keyframes st-welcome-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.st-splash-mark {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.st-splash-boat {
  width: 88px; height: 88px; border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  animation: st-boat-bob 1.1s ease-in-out infinite;
  transform-origin: 50% 70%;
  position: relative; z-index: 2;
}
.st-splash-wave {
  position: absolute; left: 50%; bottom: 6px; width: 110px; height: 18px;
  transform: translateX(-50%);
  overflow: hidden; opacity: .85; z-index: 1;
}
.st-splash-wave svg { width: 220px; height: 18px; animation: st-wave-slide 1.6s linear infinite; }
.st-splash-name {
  margin-top: 18px; font: 800  calc(22px * var(--ts, 1))/1.2 system-ui, -apple-system, sans-serif;
  letter-spacing: .02em;
}
.st-splash-sub {
  margin-top: 6px; font: 600  calc(12px * var(--ts, 1))/1.3 system-ui, sans-serif;
  color: #9ec9d8; opacity: .9;
}
@keyframes st-boat-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes st-wave-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-110px); }
}
@media (prefers-reduced-motion: reduce) {
  .st-splash-boat, .st-splash-wave svg { animation: none !important; }
  .st-splash-welcome {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
/* 320 / narrow XL: keep welcome on one line without spilling */
@media (max-width: 340px) {
  .st-splash-welcome {
    font-size: calc(14px * var(--ts, 1));
    margin-bottom: 10px;
    max-width: 96vw;
  }
  .st-splash-name { font-size: calc(20px * var(--ts, 1)); }
}

/* Acknowledgement — slim bottom banner above tab bar (v97.74c Lenny).
   May overlap map attribution / "Approximate · not for navigation" until OK;
   those lines remain in the DOM and are fully visible again after dismiss. */
.st-ack-scrim {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10040;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 58px);
  pointer-events: none;
  background: transparent; /* no full-screen dim */
}
.st-ack-scrim[hidden] { display: none !important; }
.st-ack-card {
  pointer-events: auto;
  width: min(390px, 100%);
  background: rgba(10, 24, 36, .96);
  color: #e8eef4;
  border: 1px solid rgba(45, 212, 191, .4);
  border-radius: 12px;
  padding: 9px 11px 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  touch-action: none;
}
.st-ack-card h2 { display: none; } /* no title — keep it slim */
.st-ack-card p {
  margin: 0 0 8px;
  font: 650 calc(12px * var(--ts, 1))/1.35 system-ui, -apple-system, sans-serif;
  color: #d7e3ec;
}
.st-ack-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.st-ack-actions button {
  appearance: none; border: 0; border-radius: 9px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 800 calc(12.5px * var(--ts, 1))/1.2 system-ui, sans-serif;
}
.st-ack-ok {
  background: #14b8a6; color: #042f2e;
  padding: 8px 14px;
  flex: none;
}
.st-ack-ok:active { filter: brightness(.95); }
.st-ack-terms {
  background: transparent; color: #7dd3c7;
  padding: 6px 4px;
  font-weight: 700 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  border: 0 !important;
}
