:root {
  --ink: #cbd2ce;
  --ink-rgb: 203, 210, 206;
  --muted: #667277;
  --night: #091014;
  --night-rgb: 9, 16, 20;
  --night-soft: #101b20;
  --sea: #14262c;
  --sea-deep: #09171b;
  --aqua: #7f9b91;
  --aqua-rgb: 127, 155, 145;
  --splash-rgb: 104, 135, 127;
  --splash-deep-rgb: 59, 88, 82;
  --coral: #c4a477;
  --coral-rgb: 196, 164, 119;
  --line: rgba(var(--ink-rgb), 0.16);
  --sea-height: 19vh;
  --layout-gutter: clamp(20px, 3.6vw, 72px);
  --voyage-duration: 220s;
  --voyage-delay: 10s;
  --gull-duration: 64s;
  --gull-delay: 5s;
  color-scheme: dark;
  font-family: "Golos Text", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 12%, rgba(82, 114, 105, 0.14), transparent 27%),
    radial-gradient(circle at 14% 88%, rgba(61, 90, 87, 0.12), transparent 34%),
    linear-gradient(145deg, #0c171b, var(--night) 62%);
  color: var(--ink);
}

body.is-page-paused *,
body.is-page-paused *::before,
body.is-page-paused *::after {
  animation-play-state: paused !important;
}

body.is-preview-idle .breathing-orb,
body.is-preview-idle .breathing-orb::before,
body.is-preview-idle .breathing-orb::after,
body.is-preview-idle .breathing-core,
body.is-preview-idle .sea::before,
body.is-preview-idle .sea::after,
body.is-preview-idle .wave,
body.is-preview-idle .wave-track,
body.is-preview-idle .sea-glow,
body.is-preview-idle .fishing-boat-voyage,
body.is-preview-idle .fishing-boat-swell {
  animation-play-state: paused !important;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 var(--layout-gutter);
  pointer-events: none;
}

.brand,
.meditation-menu,
.header-action,
.header-sound,
.audio-mixer {
  pointer-events: auto;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  gap: 3px;
  width: 27px;
}

.brand-mark span {
  display: block;
  height: 1px;
  border-radius: 50%;
  background: var(--aqua);
  transform-origin: left;
}

.brand-mark span:nth-child(1) { width: 17px; }
.brand-mark span:nth-child(2) { width: 27px; }
.brand-mark span:nth-child(3) { width: 11px; }

.meditation-menu {
  position: fixed;
  top: 36px;
  right: var(--layout-gutter);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0;
  background: transparent;
  opacity: 1;
  transform: translateY(-50%);
  transition: opacity 360ms ease, transform 360ms ease, visibility 360ms;
}

.header-periods {
  margin: 0;
  pointer-events: auto;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sound-control {
  position: relative;
  display: grid;
  place-items: center;
}

.sound-control::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  height: 12px;
}

.audio-mixer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(368px, calc(100vw - 40px));
  padding: 10px 12px 11px;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(var(--night-rgb), 0.72), rgba(var(--night-rgb), 0.38));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.sound-control:hover .audio-mixer,
.sound-control:focus-within .audio-mixer {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.audio-mixer.is-muted .volume-control {
  opacity: 0.42;
}

.volume-control {
  --volume-color: var(--aqua);
  display: grid;
  flex: 1 1 0;
  gap: 5px;
  min-width: 0;
  width: 76px;
  cursor: pointer;
}

.volume-control-ambience { --volume-color: var(--coral); }
.volume-control-ocean { --volume-color: #7095a0; }
.volume-control-music { --volume-color: #a894a6; }

.volume-control > span {
  display: flex;
  justify-content: space-between;
  color: rgba(var(--ink-rgb), 0.4);
  font-family: "Unbounded", sans-serif;
  font-size: 7px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.volume-control output {
  color: var(--volume-color);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.volume-control input[type="range"] {
  width: 100%;
  height: 10px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--volume-color) 0 var(--volume-progress, 100%),
    rgba(var(--ink-rgb), 0.14) var(--volume-progress, 100%) 100%
  );
  box-shadow: 0 0 7px color-mix(in srgb, var(--volume-color) 28%, transparent);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border: 1px solid rgba(var(--night-rgb), 0.9);
  border-radius: 50%;
  appearance: none;
  background: var(--volume-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--volume-color) 55%, transparent);
}

.volume-control input[type="range"]::-moz-range-track {
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--ink-rgb), 0.14);
}

.volume-control input[type="range"]::-moz-range-progress {
  height: 2px;
  border-radius: 999px;
  background: var(--volume-color);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(var(--night-rgb), 0.9);
  border-radius: 50%;
  background: var(--volume-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--volume-color) 55%, transparent);
}

.volume-control input[type="range"]:focus-visible {
  outline: 1px solid var(--volume-color);
  outline-offset: 4px;
}

.header-sound {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.4);
  cursor: pointer;
  transition: color 180ms ease, opacity 450ms ease, transform 180ms ease, visibility 450ms ease;
}

.site-header:not(.is-meditating) .meditation-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(-50% - 7px));
  pointer-events: none;
}

.site-header.is-meditating .meditation-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%);
}

.header-sound svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: currentColor;
}

.header-sound .sound-wave,
.header-sound .sound-slash {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.header-sound .sound-slash { opacity: 0; }

.header-sound:hover,
.header-sound[aria-pressed="true"] {
  color: var(--aqua);
  transform: scale(1.08);
}

.header-sound[aria-pressed="false"] .sound-wave { opacity: 0; }
.header-sound[aria-pressed="false"] .sound-slash { opacity: 1; }

.header-action {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.42);
  font-family: "Golos Text", sans-serif;
  font-size: 22px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, opacity 300ms ease, transform 180ms ease;
}

.header-action:hover {
  color: var(--aqua);
  transform: rotate(7deg);
}

.share-trigger {
  position: absolute;
  bottom: max(28px, calc(var(--sea-height) * 0.32));
  left: 50%;
  z-index: 18;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.68);
  cursor: pointer;
  transform: translateX(-50%);
  transition: bottom 2.4s cubic-bezier(0.2, 0.7, 0, 1), color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.share-trigger svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-trigger:hover {
  color: var(--aqua);
  transform: translate(-50%, -3px);
}

.share-trigger[aria-expanded="true"] {
  color: var(--aqua);
}

.header-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.header-action.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.header-action[hidden] {
  display: none;
}

body.is-share-open {
  overflow: hidden;
}

.share-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
}

.share-dialog[hidden] {
  display: none;
}

.privacy-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
}

.privacy-dialog[hidden] {
  display: none;
}

.privacy-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 8, 10, 0.76);
  backdrop-filter: blur(16px);
}

.privacy-shell {
  position: relative;
  width: min(470px, calc(100vw - 40px));
  padding: clamp(28px, 4.6vw, 48px);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  background:
    radial-gradient(circle at 12% 4%, rgba(var(--aqua-rgb), 0.09), transparent 34%),
    rgba(7, 14, 17, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
  animation: shareReveal 400ms cubic-bezier(0.16, 0.72, 0.2, 1) both;
}

.privacy-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--aqua);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.privacy-shell h2 {
  max-width: 370px;
  margin: 0 0 24px;
  font-family: "Forum", serif;
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.privacy-shell p {
  margin: 0 0 13px;
  color: rgba(var(--ink-rgb), 0.52);
  font-size: 11px;
  line-height: 1.58;
}

.privacy-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 23px 0 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.09);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.09);
}

.privacy-status span {
  color: rgba(var(--ink-rgb), 0.34);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-status strong {
  color: var(--aqua);
  font-size: 9px;
  font-weight: 500;
}

.privacy-shell > a {
  color: rgba(var(--ink-rgb), 0.44);
  font-size: 9px;
  text-decoration-color: rgba(var(--ink-rgb), 0.18);
  text-underline-offset: 4px;
}

.privacy-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 24px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: transparent;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.privacy-close:hover {
  border-color: rgba(var(--aqua-rgb), 0.58);
  color: var(--aqua);
}

.share-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 8, 10, 0.82);
  backdrop-filter: blur(18px);
  cursor: default;
}

.share-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 38vh) 260px;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: min(900px, calc(100vw - 64px));
  max-height: calc(100svh - 64px);
  animation: shareReveal 460ms cubic-bezier(0.16, 0.72, 0.2, 1) both;
}

.share-preview {
  position: relative;
  width: min(38vh, 360px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  background:
    radial-gradient(circle at 50% 43%, rgba(var(--aqua-rgb), 0.13), transparent 34%),
    var(--night);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.share-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.share-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 260ms ease;
}

.share-preview img.is-ready {
  opacity: 1;
}

.share-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(var(--ink-rgb), 0.44);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.share-loading[hidden] {
  display: none;
}

.share-controls {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-bottom: 4px;
}

.share-kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--aqua);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.share-controls h2 {
  max-width: 250px;
  margin: 0;
  font-family: "Forum", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.share-controls p {
  max-width: 240px;
  margin: 18px 0 0;
  color: rgba(var(--ink-rgb), 0.42);
  font-size: 11px;
  line-height: 1.55;
}

.share-actions {
  display: grid;
  gap: 9px;
}

.share-primary,
.share-download {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(var(--ink-rgb), 0.14);
  background: transparent;
  color: var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.share-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: #111918;
}

.share-primary:hover {
  background: #d1b385;
}

.share-download:hover {
  border-color: rgba(var(--aqua-rgb), 0.58);
  color: var(--aqua);
}

.share-primary[hidden] {
  display: none;
}

.share-primary:disabled,
.share-download[aria-disabled="true"] {
  opacity: 0.34;
  pointer-events: none;
}

.share-close {
  position: absolute;
  top: 0;
  right: -50px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.54);
  font-size: 24px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.share-close:hover {
  color: var(--aqua);
  transform: rotate(7deg);
}

.calculator-view {
  position: relative;
  z-index: 15;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 92px var(--layout-gutter) max(44px, calc(var(--sea-height) * 0.23));
  overflow: hidden;
  transition: opacity 500ms ease, transform 700ms cubic-bezier(0.7, 0, 0.2, 1);
}

.calculator-view::before {
  content: none;
  position: absolute;
  top: 7%;
  right: -2%;
  color: transparent;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(100px, 19vw, 320px);
  font-weight: 600;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(var(--ink-rgb), 0.025);
  transform: rotate(-8deg);
  pointer-events: none;
}

.calculator-view.is-leaving {
  opacity: 0;
  transform: translateY(-5vh) scale(0.985);
  pointer-events: none;
}

.credit-form {
  position: relative;
  z-index: 2;
}

.credit-form {
  width: 100%;
  max-width: 500px;
  padding: clamp(25px, 2.4vw, 34px);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--aqua-rgb), 0.055), transparent 34%),
    linear-gradient(155deg, rgba(8, 15, 18, 0.88), rgba(5, 11, 14, 0.72));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34), inset 0 1px rgba(var(--ink-rgb), 0.025);
  backdrop-filter: blur(18px) saturate(0.82);
}

.form-heading {
  margin-bottom: 23px;
}

.form-heading > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(var(--aqua-rgb), 0.56);
  font-family: "Unbounded", sans-serif;
  font-size: 7px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.form-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Forum", serif;
  font-size: clamp(35px, 3.1vw, 47px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.form-heading h1 em {
  color: var(--coral);
  font-style: normal;
}

.form-heading p {
  margin: 9px 0 0;
  color: rgba(var(--ink-rgb), 0.42);
  font-size: 11px;
  line-height: 1.45;
}

.form-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(var(--ink-rgb), 0.29);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-topline p { margin: 0; color: rgba(var(--ink-rgb), 0.68); }
.form-topline span { color: rgba(var(--ink-rgb), 0.25); }

.field {
  display: block;
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
  transition: border-color 220ms ease;
}

.field:focus-within { border-color: rgba(var(--aqua-rgb), 0.68); }

.field-wide + .field-row,
.field-row + .field-wide {
  margin-top: 15px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.input-shell {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 400;
}

.input-shell input:focus {
  color: var(--ink);
}

.input-shell input[type="date"] {
  color-scheme: dark;
  font-size: clamp(16px, 1.25vw, 20px);
}

.input-unit {
  flex: 0 0 auto;
  color: rgba(var(--ink-rgb), 0.52);
  font-size: 12px;
}

.field small {
  display: block;
  margin-top: 4px;
  color: rgba(var(--ink-rgb), 0.24);
  font-size: 9px;
  line-height: 1.4;
}

.date-shell { position: relative; }
.date-shell input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.5;
}

.form-error {
  min-height: 12px;
  margin: 7px 0 0;
  color: var(--coral);
  font-size: 11px;
}

.submit-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 0 10px 0 19px;
  border: 0;
  background: var(--coral);
  color: #101512;
  font-family: "Unbounded", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.submit-button:hover {
  background: #d0b488;
  transform: translateY(-2px);
}

.submit-button:disabled {
  background: rgba(var(--ink-rgb), 0.09);
  color: rgba(var(--ink-rgb), 0.28);
  cursor: not-allowed;
  transform: none;
}

.submit-button:disabled .submit-icon {
  background: rgba(var(--ink-rgb), 0.05);
}

.submit-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 21, 18, 0.14);
  font-size: 19px;
  transition: transform 250ms ease;
}

.submit-button:hover .submit-icon { transform: translateY(4px); }

.privacy-note {
  margin: 10px 0 0;
  color: rgba(var(--ink-rgb), 0.22);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.analytics-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 3px 0 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--ink-rgb), 0.08);
}

.analytics-consent {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  color: rgba(var(--ink-rgb), 0.64);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
}

.analytics-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.analytics-check {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--ink-rgb), 0.34);
  border-radius: 3px;
  background: rgba(var(--night-rgb), 0.42);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.analytics-check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid #101512;
  border-bottom: 1.5px solid #101512;
  opacity: 0;
  transform: rotate(45deg) scale(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.analytics-consent input:checked + .analytics-check {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 18px rgba(var(--coral-rgb), 0.14);
}

.analytics-consent input:checked + .analytics-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.analytics-consent input:focus-visible + .analytics-check {
  outline: 1px solid var(--coral);
  outline-offset: 3px;
}

.analytics-consent:hover .analytics-check {
  border-color: rgba(var(--coral-rgb), 0.7);
  transform: scale(1.04);
}

.analytics-copy {
  display: grid;
  gap: 2px;
}

.analytics-copy strong {
  color: rgba(var(--ink-rgb), 0.72);
  font-size: 10px;
  font-weight: 500;
}

.analytics-copy small {
  color: rgba(var(--coral-rgb), 0.58);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.analytics-details {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.16);
  background: transparent;
  color: rgba(var(--ink-rgb), 0.34);
  font-size: 9px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.analytics-details:hover {
  border-color: rgba(var(--aqua-rgb), 0.46);
  color: var(--aqua);
}

.tide-view {
  position: fixed;
  inset: 0;
  z-index: 5;
  visibility: hidden;
  min-height: 100svh;
  overflow: hidden;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(var(--aqua-rgb), 0.105), transparent 27%),
    radial-gradient(circle at 18% 84%, rgba(68, 104, 99, 0.1), transparent 30%),
    linear-gradient(180deg, #091014 0%, #0b171b 72%, #0d2024 100%);
  transition: opacity 650ms ease, visibility 650ms;
}

.tide-view.is-active {
  visibility: visible;
  opacity: 1;
}

.atmosphere-shift {
  position: absolute;
  inset: 0 0 var(--sea-height);
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 86%, rgba(120, 145, 151, 0.2), transparent 34%),
    radial-gradient(ellipse at 24% 12%, rgba(65, 88, 112, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(33, 47, 61, 0.14), rgba(17, 35, 42, 0.04) 52%, rgba(89, 111, 111, 0.14));
  opacity: 0.1;
  transform: translate3d(-1.5%, 0, 0) scale(1.035);
  transform-origin: 50% 82%;
  pointer-events: none;
}

.tide-view.is-boat-active .atmosphere-shift {
  animation: nightVoyageSky var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.tide-view.is-boat-active .sky-stars {
  animation: nightVoyageStars var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.tide-view.is-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--night-rgb), 0.04) 0 13%, rgba(var(--night-rgb), 0.28) 39%, rgba(var(--night-rgb), 0.05) 72%),
    linear-gradient(180deg, rgba(var(--night-rgb), 0.04), rgba(var(--night-rgb), 0.14));
  pointer-events: none;
}

.tide-view.is-preview .tide-content,
.tide-view.is-preview .sea-counter,
.tide-view.is-preview .share-trigger {
  visibility: hidden;
  opacity: 0;
}

.sky-stars {
  position: absolute;
  inset: 0 0 var(--sea-height);
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  transition: bottom 2.4s cubic-bezier(0.2, 0.7, 0, 1);
}

.sky-star {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  overflow: visible;
  border-radius: 50%;
  opacity: 1;
}

.sky-star::before,
.sky-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.sky-star::before {
  z-index: 0;
  width: var(--star-bloom-size);
  height: var(--star-bloom-size);
  background: radial-gradient(
    circle,
    rgba(218, 236, 229, 0.38) 0%,
    rgba(var(--aqua-rgb), 0.17) 30%,
    rgba(var(--aqua-rgb), 0.055) 54%,
    transparent 76%
  );
  box-shadow: 0 0 10px rgba(var(--aqua-rgb), 0.08);
  filter: blur(5.5px) saturate(0.72);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.24);
  animation: skyStarBloom var(--star-bloom-duration) ease-out forwards;
}

.sky-star::after {
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(218, 232, 227, 0.96);
  box-shadow:
    0 0 4px rgba(190, 222, 212, 0.54),
    0 0 10px rgba(var(--aqua-rgb), 0.22);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: skyStarLife var(--star-life) cubic-bezier(0.16, 0.72, 0.2, 1) forwards;
}

.rain-field {
  position: absolute;
  inset: 0;
  z-index: 26;
  pointer-events: none;
}

.breathing-orb {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 7;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(var(--aqua-rgb), 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--aqua-rgb), 0.045), transparent 63%);
  box-shadow: inset 0 0 90px rgba(var(--aqua-rgb), 0.025), 0 0 70px rgba(var(--aqua-rgb), 0.025);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  animation: orbShellDrift 10.8s cubic-bezier(0.45, 0.05, 0.4, 0.96) infinite;
  pointer-events: none;
}

.breathing-orb::before,
.breathing-orb::after,
.breathing-orb .breathing-core {
  content: "";
  position: absolute;
  border: 1px solid rgba(var(--aqua-rgb), 0.145);
  border-radius: 50%;
  transform-origin: 50% 50%;
}

.breathing-orb::before {
  inset: 14%;
  animation: orbContourOuter 8.7s ease-in-out infinite;
}

.breathing-orb::after {
  inset: 29%;
  animation: orbContourMiddle 13.4s ease-in-out infinite reverse;
}

.breathing-orb .breathing-core {
  inset: 43%;
  background: rgba(var(--coral-rgb), 0.08);
  animation: orbContourCore 7.6s ease-in-out infinite;
}

.orb-impact-pulse {
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pulse-color) 0%, color-mix(in srgb, var(--pulse-color) 58%, transparent) 38%, transparent 72%);
  filter: blur(14px) saturate(0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.18);
  animation: orbImpactPulse 4200ms linear forwards;
  pointer-events: none;
}

.money-drop {
  position: absolute;
  top: 0;
  left: var(--drop-x);
  width: max-content;
  color: rgb(var(--ink-rgb));
  font-family: "Unbounded", sans-serif;
  font-size: clamp(10px, 0.76vw, 13px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.money-drop > span {
  position: relative;
  z-index: 2;
  opacity: var(--drop-alpha, 1);
}

.money-drop::before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 42%;
  left: 50%;
  width: var(--trail-width, 13px);
  height: var(--trail, 110px);
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(
    to top,
    rgba(var(--ink-rgb), 0.34) 0%,
    rgba(var(--aqua-rgb), 0.2) 18%,
    rgba(var(--aqua-rgb), 0.07) 56%,
    transparent 100%
  );
  filter: blur(8px);
  opacity: 0.72;
  transform: translateX(-50%) rotate(var(--trail-lean, 0deg));
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
}

.money-drop::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 48%;
  left: 50%;
  width: 1px;
  height: calc(var(--trail, 110px) * 0.82);
  border-radius: 999px;
  background: linear-gradient(
    to top,
    rgba(var(--ink-rgb), 0.72),
    rgba(var(--aqua-rgb), 0.22) 34%,
    transparent 100%
  );
  box-shadow: 0 0 7px rgba(var(--aqua-rgb), 0.42);
  opacity: 0.58;
  transform: translateX(-50%) rotate(var(--trail-lean, 0deg));
  transform-origin: 50% 100%;
}

.money-drop[data-tier="large"] {
  color: rgb(var(--ink-rgb));
  font-weight: 500;
}

.money-drop[data-tier="large"]::before { opacity: 0.9; }
.money-drop[data-tier="large"]::after { opacity: 0.74; }

.money-drop[data-tier="small"] {
  color: rgb(var(--aqua-rgb));
}

.money-drop[data-tier="small"]::before { opacity: 0.48; }
.money-drop[data-tier="small"]::after { opacity: 0.34; }

.money-drop.is-css-falling {
  animation: moneyDropFallback var(--drop-duration) cubic-bezier(0.4, 0, 0.75, 0.72) var(--drop-delay, 0ms) forwards;
}

.impact {
  position: absolute;
  z-index: 30;
  width: 0;
  height: 0;
  pointer-events: none;
  isolation: isolate;
}

.impact-wash,
.impact-mist,
.impact-crown,
.impact-skid,
.impact-ripple,
.impact-jet,
.impact-particle {
  position: absolute;
  display: block;
  pointer-events: none;
}

.impact-wash {
  top: -1px;
  left: 0;
  width: var(--wash-width);
  height: var(--wash-height);
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(var(--splash-rgb), 0.32), rgba(var(--splash-deep-rgb), 0.16) 38%, transparent 73%);
  filter: blur(1.2px);
  animation: impactWash 1350ms cubic-bezier(0.12, 0.62, 0.16, 1) forwards;
}

.impact-mist {
  bottom: -7px;
  left: 0;
  width: var(--mist-width);
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--splash-deep-rgb), 0.22), transparent 68%);
  filter: blur(7px);
  animation: impactMist 1900ms ease-out forwards;
}

.impact-crown {
  bottom: -2px;
  left: 0;
  width: var(--crown-width);
  height: var(--crown-height);
  background:
    radial-gradient(
      ellipse at 50% 118%,
      transparent 42%,
      rgba(var(--splash-deep-rgb), 0.14) 47%,
      rgba(var(--splash-rgb), 0.5) 53%,
      rgba(var(--splash-deep-rgb), 0.18) 61%,
      transparent 72%
    );
  clip-path: var(--crown-clip);
  filter: blur(0.35px) drop-shadow(0 0 6px rgba(var(--splash-deep-rgb), 0.14));
  transform-origin: 50% 100%;
  animation: impactCrown 1150ms cubic-bezier(0.14, 0.7, 0.2, 1) forwards;
}

.impact-skid {
  top: 0;
  left: 0;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--splash-deep-rgb), 0.14) 18%,
    rgba(var(--splash-rgb), 0.54) 49%,
    rgba(var(--splash-deep-rgb), 0.12) 76%,
    transparent
  );
  filter: blur(0.45px);
  transform-origin: 50% 50%;
  animation: impactSkid var(--skid-duration) cubic-bezier(0.08, 0.58, 0.12, 1) var(--skid-delay) forwards;
}

.impact-ripple {
  border-radius: 50%;
  background: radial-gradient(
    ellipse at var(--ripple-focus) 50%,
    transparent 52%,
    rgba(var(--splash-deep-rgb), 0.08) 54%,
    rgba(var(--splash-rgb), var(--ripple-opacity)) 57%,
    rgba(var(--splash-deep-rgb), 0.09) 59%,
    transparent 63%
  );
  filter: blur(var(--ripple-blur));
  transform-origin: 50% 50%;
  animation: impactRipple var(--ripple-duration) cubic-bezier(0.08, 0.55, 0.1, 1) var(--ripple-delay) forwards;
}

.impact-jet {
  bottom: 0;
  left: 0;
  width: var(--jet-width);
  height: var(--jet-height);
  border-radius: 65% 65% 48% 48%;
  background: linear-gradient(to top, rgba(var(--splash-rgb), 0.54), rgba(var(--splash-deep-rgb), 0.18) 52%, transparent);
  box-shadow: 0 0 6px rgba(var(--splash-deep-rgb), 0.12);
  filter: blur(0.2px);
  transform-origin: 50% 100%;
  animation: impactJet var(--jet-duration) cubic-bezier(0.16, 0.68, 0.22, 1) var(--jet-delay) forwards;
}

.impact-particle {
  top: 0;
  left: 0;
  width: var(--particle-size);
  height: calc(var(--particle-size) * 1.3);
  border-radius: 50% 50% 58% 58%;
  background: rgba(var(--splash-rgb), 0.56);
  box-shadow: 0 0 4px rgba(var(--splash-deep-rgb), 0.12);
  animation: impactParticle var(--particle-duration) cubic-bezier(0.18, 0.68, 0.28, 1) var(--particle-delay) forwards;
}

.tide-content {
  position: absolute;
  bottom: max(28px, calc(var(--sea-height) * 0.32));
  left: var(--layout-gutter);
  z-index: 12;
  width: min(560px, 50vw);
  opacity: 1;
  transition: bottom 2.4s cubic-bezier(0.2, 0.7, 0, 1);
}

.rate-display {
  display: block;
}

.rate-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 9px;
  width: max-content;
}

.rate-value-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-top: 9px;
}

.rate-label {
  display: block;
  margin-bottom: 0;
  color: rgba(var(--ink-rgb), 0.42);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rate-time {
  display: block;
  margin-bottom: 0;
  color: var(--aqua);
  font-family: "Unbounded", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.rate-value-row strong {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 3.5vw, 58px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.rate-value-row > span {
  flex: 0 0 auto;
  padding-bottom: 0.72em;
  color: var(--aqua);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(10px, 0.9vw, 13px);
  line-height: 1;
  text-transform: uppercase;
}

.rain-period-control {
  margin: 0;
  color: rgba(var(--ink-rgb), 0.28);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.animation-duration-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rain-period-options {
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.rain-period-options button {
  position: relative;
  min-width: 0;
  height: auto;
  padding: 5px 1px 6px;
  border: 0;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.36);
  font-family: "Unbounded", sans-serif;
  font-size: 10px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 170ms ease, text-shadow 170ms ease;
}

.rain-period-options button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--aqua);
  box-shadow: 0 0 10px rgba(var(--aqua-rgb), 0.42);
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 170ms ease, transform 170ms ease;
}

.rain-period-options button:hover {
  color: rgba(var(--aqua-rgb), 0.78);
}

.rain-period-options button[aria-pressed="true"] {
  color: var(--aqua);
  text-shadow: 0 0 16px rgba(var(--aqua-rgb), 0.28);
}

.rain-period-options button[aria-pressed="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.sea {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  isolation: isolate;
  height: var(--sea-height);
  min-height: 62px;
  background:
    radial-gradient(ellipse at 18% 96%, rgba(67, 101, 95, 0.1), transparent 31%),
    radial-gradient(ellipse at 68% 88%, rgba(var(--coral-rgb), 0.02), transparent 34%),
    radial-gradient(ellipse at 92% 72%, rgba(43, 71, 68, 0.07), transparent 28%),
    linear-gradient(180deg, #010405 0%, #020608 18%, #03090c 43%, #051114 72%, #07171a 100%);
  box-shadow:
    0 -24px 104px rgba(48, 91, 86, 0.14),
    inset 0 28px 54px rgba(0, 0, 0, 0.18),
    inset 0 -52px 96px rgba(42, 78, 72, 0.045);
  transition: height 2.4s cubic-bezier(0.2, 0.7, 0, 1);
}

.sea::before,
.sea::after {
  content: "";
  position: absolute;
  right: -8%;
  left: -8%;
  pointer-events: none;
}

.sea::before {
  top: -34px;
  z-index: 1;
  height: 112px;
  opacity: 0.34;
  background:
    radial-gradient(ellipse at 8% 42%, rgba(var(--aqua-rgb), 0.17), transparent 19%),
    radial-gradient(ellipse at 31% 36%, rgba(var(--ink-rgb), 0.1), transparent 17%),
    radial-gradient(ellipse at 57% 48%, rgba(var(--aqua-rgb), 0.13), transparent 22%),
    radial-gradient(ellipse at 85% 38%, rgba(var(--ink-rgb), 0.08), transparent 18%);
  filter: blur(12px);
  animation: seaSurfaceDrift 18s ease-in-out infinite alternate;
}

.sea::after {
  top: 8%;
  z-index: 0;
  bottom: 0;
  opacity: 0.18;
  background:
    radial-gradient(ellipse at 22% 88%, rgba(var(--aqua-rgb), 0.1), transparent 27%),
    radial-gradient(ellipse at 73% 82%, rgba(var(--ink-rgb), 0.05), transparent 31%),
    linear-gradient(108deg, transparent 20%, rgba(var(--aqua-rgb), 0.018) 48%, transparent 68%);
  filter: blur(14px);
  animation: seaLightDrift 23s ease-in-out infinite alternate;
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.88) 78%,
    rgba(0, 0, 0, 0.42) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.88) 78%,
    rgba(0, 0, 0, 0.42) 90%,
    transparent 100%
  );
}

.wave-track {
  width: 200%;
  height: 100%;
}

.wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave use {
  stroke: none;
}

.wave-sheen {
  opacity: 0.52;
}

.wave-back {
  top: -53px;
  height: 92px;
  opacity: 0.72;
  animation: waveSwellBack 11s ease-in-out infinite alternate;
}

.wave-back .wave-track {
  animation: waveTrackBack 36s linear infinite;
}

.wave-mid {
  top: -43px;
  height: 86px;
  opacity: 0.86;
  animation: waveSwellMid 8.5s ease-in-out infinite alternate-reverse;
}

.wave-mid .wave-track {
  animation: waveTrackMid 27s linear infinite reverse;
}

.flying-gull {
  position: absolute;
  bottom: calc(var(--sea-height) + 74px);
  left: 0;
  z-index: 9;
  width: clamp(34px, 2.7vw, 48px);
  height: auto;
  opacity: 0;
  transform: translate3d(-70px, 0, 0);
  pointer-events: none;
}

.flying-gull svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gull-body,
.gull-head,
.gull-tail,
.gull-wing,
.gull-beak {
  fill: #020708;
  stroke: none;
  stroke-linejoin: round;
}

.gull-wing-back {
  transform-box: fill-box;
  transform-origin: 88% 82%;
}

.gull-wing-front {
  transform-box: fill-box;
  transform-origin: 12% 82%;
}

.tide-view.is-boat-active .flying-gull {
  animation: fishingGullVoyage var(--gull-duration) linear var(--gull-delay) infinite;
}

.tide-view.is-boat-active .gull-wing-back {
  animation: gullWingBack 620ms cubic-bezier(0.42, 0, 0.3, 1) infinite alternate;
}

.tide-view.is-boat-active .gull-wing-front {
  animation: gullWingFront 540ms cubic-bezier(0.38, 0, 0.28, 1) -140ms infinite alternate;
}

.fishing-boat-voyage {
  appearance: none;
  position: absolute;
  top: -46px;
  left: 0;
  z-index: 3;
  width: 104px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0;
  transform: translate3d(-124px, 0, 0);
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity;
}

.tide-view.is-boat-active .fishing-boat-voyage {
  animation: fishingBoatVoyage var(--voyage-duration) linear var(--voyage-delay) infinite;
}

.tide-view.is-boat-active .fishing-boat-voyage.is-contemplating {
  animation-play-state: paused;
}

.fishing-boat-voyage:focus-visible {
  outline: none;
}

.fishing-boat-voyage:focus-visible .fishing-boat,
.fishing-boat-voyage:hover .fishing-boat {
  filter:
    drop-shadow(0 -1px 0 rgba(var(--aqua-rgb), 0.28))
    drop-shadow(0 5px 11px rgba(0, 0, 0, 0.62));
}

.fishing-boat-swell {
  width: 100%;
  height: 100%;
  transform-origin: 48% 78%;
  animation: fishingBoatSwell 5.6s ease-in-out infinite;
  will-change: transform;
}

.fishing-boat {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 -1px 0 rgba(var(--aqua-rgb), 0.18))
    drop-shadow(0 5px 9px rgba(0, 0, 0, 0.55));
}

.fishing-boat-hull,
.fishing-boat-person,
.fishing-boat-hat {
  fill: #010405;
  stroke: rgba(var(--aqua-rgb), 0.14);
  stroke-width: 0.7;
}

.fishing-boat-rim,
.fishing-boat-person-line,
.fishing-boat-rod,
.fishing-boat-line,
.fishing-boat-wake {
  fill: none;
  stroke: #010405;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fishing-boat-rim { stroke-width: 3; }
.fishing-boat-person-line { stroke-width: 3.5; }
.fishing-boat-rod { stroke-width: 1.65; }
.fishing-boat-line {
  stroke: rgba(var(--aqua-rgb), 0.34);
  stroke-width: 0.62;
}
.fishing-boat-wake {
  stroke: rgba(2, 7, 9, 0.68);
  stroke-width: 1.4;
}

.fishing-boat-ripple {
  fill: none;
  stroke: rgba(var(--aqua-rgb), 0.28);
  stroke-width: 0.72;
  stroke-linecap: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 100% 50%;
  vector-effect: non-scaling-stroke;
}

.tide-view.is-boat-active .fishing-boat-ripple {
  animation: fishingBoatRipple 4.8s cubic-bezier(0.2, 0.62, 0.26, 1) infinite;
}

.tide-view.is-boat-active .ripple-two {
  animation-delay: -1.65s;
  animation-duration: 5.4s;
}

.tide-view.is-boat-active .ripple-three {
  animation-delay: -3.2s;
  animation-duration: 6.1s;
}

.tide-view.is-boat-active .fishing-boat-voyage.is-contemplating .fishing-boat-ripple {
  animation-play-state: paused;
}

.boat-thought {
  --boat-thought-left: 50vw;
  --boat-thought-top: 60vh;
  --boat-thought-tail: 50%;
  --boat-thought-width: 220px;
  position: fixed;
  top: var(--boat-thought-top);
  left: var(--boat-thought-left);
  z-index: 12;
  width: var(--boat-thought-width);
  padding: 13px 17px 14px;
  border: 1px solid rgba(225, 236, 231, 0.34);
  border-radius: 14px;
  background: rgba(192, 207, 201, 0.93);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #071012;
  font-family: "Forum", serif;
  font-size: 16px;
  line-height: 1.08;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 10px)) scale(0.76);
  transform-origin: var(--boat-thought-tail) 100%;
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.18, 0.9, 0.2, 1.18);
  will-change: opacity, transform;
}

.boat-thought::after {
  content: "";
  position: absolute;
  top: calc(100% - 7px);
  left: var(--boat-thought-tail);
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(225, 236, 231, 0.34);
  border-bottom: 1px solid rgba(225, 236, 231, 0.34);
  border-radius: 0 0 3px 0;
  background: rgba(192, 207, 201, 0.93);
  transform: translateX(-50%) rotate(45deg);
}

.boat-thought.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.wave-front {
  top: -34px;
  height: 80px;
  opacity: 0.98;
  animation: waveSwellFront 7s ease-in-out infinite alternate;
}

.wave-front .wave-track {
  animation: waveTrackFront 21s linear infinite;
}

.tide-view.is-boat-active .wave-back {
  animation:
    waveSwellBack 11s ease-in-out infinite alternate,
    nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.tide-view.is-boat-active .wave-mid {
  animation:
    waveSwellMid 8.5s ease-in-out infinite alternate-reverse,
    nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.tide-view.is-boat-active .wave-front {
  animation:
    waveSwellFront 7s ease-in-out infinite alternate,
    nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.sea-glow {
  --sea-glow-blur: 12px;
  position: absolute;
  top: -52px;
  right: -4%;
  left: -4%;
  z-index: 2;
  height: 94px;
  background:
    radial-gradient(ellipse at 18% 68%, rgba(var(--aqua-rgb), 0.19), transparent 25%),
    radial-gradient(ellipse at 54% 72%, rgba(var(--ink-rgb), 0.105), transparent 31%),
    radial-gradient(ellipse at 86% 64%, rgba(var(--aqua-rgb), 0.16), transparent 24%);
  filter: blur(var(--sea-glow-blur));
  opacity: 0.64;
  animation: seaGlowDrift 14s ease-in-out infinite alternate;
}

.tide-view.is-boat-active .sea-glow {
  animation:
    seaGlowDrift 14s ease-in-out infinite alternate,
    nightVoyageSeaGlow var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both;
}

.tide-view.is-boat-paused .atmosphere-shift,
.tide-view.is-boat-paused .sky-stars,
.tide-view.is-boat-paused .wave,
.tide-view.is-boat-paused .sea-glow {
  animation-play-state: paused;
}

.sea-depth-lines {
  display: none;
}

.sea-counter {
  position: absolute;
  right: var(--layout-gutter);
  bottom: max(28px, calc(var(--sea-height) * 0.32));
  z-index: 10;
  color: rgba(var(--ink-rgb), 0.56);
  text-align: right;
  opacity: 1;
  transition: bottom 2.4s cubic-bezier(0.2, 0.7, 0, 1);
}

.sea-counter > span {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sea-counter strong {
  display: block;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(26px, 3.5vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.42);
}

@keyframes orbShellDrift {
  0%, 100% {
    opacity: 0.46;
    border-radius: 47% 53% 51% 49% / 52% 48% 54% 46%;
    transform: translate(-50.6%, -49.6%) rotate(-0.75deg) scale(0.94, 1.01);
  }
  34% {
    opacity: 0.68;
    border-radius: 54% 46% 48% 52% / 47% 54% 46% 53%;
    transform: translate(-49.3%, -50.5%) rotate(0.7deg) scale(1.035, 0.945);
  }
  68% {
    opacity: 0.74;
    border-radius: 46% 54% 52% 48% / 54% 46% 49% 51%;
    transform: translate(-50.4%, -50.2%) rotate(-0.42deg) scale(0.965, 1.04);
  }
}

@keyframes orbContourOuter {
  0%, 100% {
    border-radius: 46% 54% 51% 49% / 53% 47% 55% 45%;
    transform: translate(1.2%, -0.8%) rotate(0.9deg) scale(0.95, 1.045);
  }
  38% {
    border-radius: 55% 45% 47% 53% / 46% 55% 45% 54%;
    transform: translate(-1%, 1.1%) rotate(-0.8deg) scale(1.055, 0.94);
  }
  73% {
    border-radius: 45% 55% 53% 47% / 55% 45% 48% 52%;
    transform: translate(0.4%, 0.8%) rotate(0.45deg) scale(0.94, 1.025);
  }
}

@keyframes orbContourMiddle {
  0%, 100% {
    border-radius: 54% 46% 45% 55% / 47% 55% 45% 53%;
    transform: translate(-0.8%, 1%) rotate(-1deg) scale(1.045, 0.95);
  }
  31% {
    border-radius: 45% 55% 54% 46% / 55% 45% 53% 47%;
    transform: translate(1.1%, -0.6%) rotate(0.85deg) scale(0.945, 1.05);
  }
  66% {
    border-radius: 55% 45% 49% 51% / 45% 53% 47% 55%;
    transform: translate(0.3%, 0.9%) rotate(-0.55deg) scale(1.025, 0.935);
  }
}

@keyframes orbContourCore {
  0%, 100% {
    border-radius: 52% 45% 55% 48% / 45% 55% 47% 53%;
    transform: translate(1.2%, 0.6%) rotate(1.1deg) scale(0.935, 1.055);
  }
  43% {
    border-radius: 45% 55% 47% 53% / 55% 46% 54% 45%;
    transform: translate(-1%, -1.2%) rotate(-0.95deg) scale(1.06, 0.94);
  }
  76% {
    border-radius: 55% 47% 53% 45% / 47% 53% 45% 55%;
    transform: translate(0.5%, -0.4%) rotate(0.5deg) scale(0.97, 1.035);
  }
}

@keyframes shareReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes orbImpactPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
  }
  14% {
    opacity: 0.88;
  }
  70% {
    opacity: 0.66;
  }
  88% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--pulse-scale));
  }
}

@keyframes orbImpactPulseReduced {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
  18% { opacity: 0.76; }
  74% { opacity: 0.58; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes skyStarLife {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  4% {
    opacity: var(--star-flare);
    transform: translate(-50%, -50%) scale(1.55);
  }
  9%, 72% {
    opacity: var(--star-alpha);
    transform: translate(-50%, -50%) scale(1);
  }
  88% {
    opacity: var(--star-fade-alpha);
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
}

@keyframes skyStarBloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.24);
  }
  16% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.68);
  }
  46% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(1);
  }
  78% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1.26);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.48);
  }
}

@keyframes skyStarBloomReduced {
  0% { opacity: 0; }
  22% { opacity: 0.24; }
  100% { opacity: 0; }
}

@keyframes waveTrackBack {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes waveTrackMid {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes waveTrackFront {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes waveSwellBack {
  0% { transform: translateY(2px) scaleY(0.91); }
  48% { transform: translateY(-3px) scaleY(1.05); }
  100% { transform: translateY(1px) scaleY(0.96); }
}

@keyframes waveSwellMid {
  0% { transform: translateY(-1px) scaleY(0.94); }
  52% { transform: translateY(3px) scaleY(1.07); }
  100% { transform: translateY(-2px) scaleY(0.98); }
}

@keyframes waveSwellFront {
  0% { transform: translateY(1px) scaleY(0.95); }
  46% { transform: translateY(-2px) scaleY(1.08); }
  100% { transform: translateY(2px) scaleY(0.92); }
}

@keyframes nightVoyageSky {
  0%, 86.36%, 100% {
    opacity: 0.08;
    filter: hue-rotate(-8deg) saturate(0.72) brightness(0.84);
    transform: translate3d(-1.5%, 0, 0) scale(1.035);
  }
  18% {
    opacity: 0.18;
    filter: hue-rotate(0deg) saturate(0.84) brightness(0.94);
    transform: translate3d(-0.3%, -0.25%, 0) scale(1.04);
  }
  36.36%, 50% {
    opacity: 0.3;
    filter: hue-rotate(22deg) saturate(0.78) brightness(1.04);
    transform: translate3d(1.4%, -0.5%, 0) scale(1.045);
  }
  68% {
    opacity: 0.2;
    filter: hue-rotate(-12deg) saturate(0.9) brightness(0.96);
    transform: translate3d(0.2%, -0.2%, 0) scale(1.04);
  }
}

@keyframes nightVoyageSkyReduced {
  0%, 86.36%, 100% {
    opacity: 0.08;
    filter: hue-rotate(-8deg) saturate(0.72) brightness(0.84);
  }
  18% {
    opacity: 0.18;
    filter: hue-rotate(0deg) saturate(0.84) brightness(0.94);
  }
  36.36%, 50% {
    opacity: 0.3;
    filter: hue-rotate(22deg) saturate(0.78) brightness(1.04);
  }
  68% {
    opacity: 0.2;
    filter: hue-rotate(-12deg) saturate(0.9) brightness(0.96);
  }
}

@keyframes nightVoyageStars {
  0%, 86.36%, 100% { filter: hue-rotate(-8deg) saturate(0.72) brightness(0.76); }
  18% { filter: hue-rotate(0deg) saturate(0.86) brightness(0.9); }
  36.36%, 50% { filter: hue-rotate(18deg) saturate(0.8) brightness(1.06); }
  68% { filter: hue-rotate(-12deg) saturate(0.92) brightness(0.94); }
}

@keyframes nightVoyageWaveTone {
  0%, 86.36%, 100% { filter: hue-rotate(-7deg) saturate(0.78) brightness(0.88); }
  18% { filter: hue-rotate(0deg) saturate(0.9) brightness(0.96); }
  36.36%, 50% { filter: hue-rotate(17deg) saturate(0.82) brightness(1.045); }
  68% { filter: hue-rotate(-11deg) saturate(0.94) brightness(0.97); }
}

@keyframes nightVoyageSeaGlow {
  0%, 86.36%, 100% {
    filter: blur(var(--sea-glow-blur)) hue-rotate(-8deg) saturate(0.74) brightness(0.82);
  }
  18% {
    filter: blur(var(--sea-glow-blur)) hue-rotate(0deg) saturate(0.9) brightness(0.96);
  }
  36.36%, 50% {
    filter: blur(var(--sea-glow-blur)) hue-rotate(20deg) saturate(0.84) brightness(1.08);
  }
  68% {
    filter: blur(var(--sea-glow-blur)) hue-rotate(-12deg) saturate(0.96) brightness(0.98);
  }
}

@keyframes fishingBoatVoyage {
  0% {
    opacity: 1;
    transform: translate3d(-124px, 0, 0) scaleX(1);
  }
  7.27% {
    opacity: 1;
    transform: translate3d(calc(12vw - 94px), 0, 0) scaleX(1);
  }
  13.33% {
    opacity: 1;
    transform: translate3d(calc(34vw - 40px), 0, 0) scaleX(1);
  }
  21.82% {
    opacity: 1;
    transform: translate3d(calc(52vw + 5px), 0, 0) scaleX(1);
  }
  27.88% {
    opacity: 1;
    transform: translate3d(calc(78vw + 69px), 0, 0) scaleX(1);
  }
  36.36% {
    opacity: 1;
    transform: translate3d(calc(100vw + 124px), 0, 0) scaleX(1);
  }
  36.46% {
    opacity: 0;
    transform: translate3d(calc(100vw + 124px), 0, 0) scaleX(1);
  }
  36.56%, 49.9% {
    opacity: 0;
    transform: translate3d(calc(100vw + 124px), 0, 0) scaleX(-1);
  }
  50% {
    opacity: 1;
    transform: translate3d(calc(100vw + 124px), 0, 0) scaleX(-1);
  }
  57.27% {
    opacity: 1;
    transform: translate3d(calc(88vw + 94px), 0, 0) scaleX(-1);
  }
  63.33% {
    opacity: 1;
    transform: translate3d(calc(62vw + 30px), 0, 0) scaleX(-1);
  }
  71.82% {
    opacity: 1;
    transform: translate3d(calc(47vw - 7px), 0, 0) scaleX(-1);
  }
  77.88% {
    opacity: 1;
    transform: translate3d(calc(20vw - 74px), 0, 0) scaleX(-1);
  }
  86.36% {
    opacity: 1;
    transform: translate3d(-124px, 0, 0) scaleX(-1);
  }
  86.46% {
    opacity: 0;
    transform: translate3d(-124px, 0, 0) scaleX(-1);
  }
  86.56%, 100% {
    opacity: 0;
    transform: translate3d(-124px, 0, 0) scaleX(1);
  }
}

@keyframes fishingGullVoyage {
  0% {
    opacity: 0.58;
    transform: translate3d(-70px, 1px, 0) rotate(-1deg);
  }
  9% {
    opacity: 0.62;
    transform: translate3d(calc(12vw - 55px), -7px, 0) rotate(0.8deg);
  }
  18% {
    opacity: 0.64;
    transform: translate3d(calc(34vw - 30px), 2px, 0) rotate(-0.4deg);
  }
  29% {
    opacity: 0.6;
    transform: translate3d(calc(52vw + 2px), -9px, 0) rotate(0.6deg);
  }
  40% {
    opacity: 0.62;
    transform: translate3d(calc(78vw + 45px), 1px, 0) rotate(-0.7deg);
  }
  55% {
    opacity: 0.56;
    transform: translate3d(calc(100vw + 70px), -6px, 0) rotate(0.5deg);
  }
  55.2%, 100% {
    opacity: 0;
    transform: translate3d(calc(100vw + 70px), -6px, 0) rotate(0.5deg);
  }
}

@keyframes gullWingBack {
  0% { transform: rotate(12deg) scaleY(0.72); }
  52% { transform: rotate(-11deg) scaleY(1.04); }
  100% { transform: rotate(5deg) scaleY(0.84); }
}

@keyframes gullWingFront {
  0% { transform: rotate(-9deg) scaleY(1.02); }
  48% { transform: rotate(13deg) scaleY(0.7); }
  100% { transform: rotate(-4deg) scaleY(0.9); }
}

@keyframes fishingBoatRipple {
  0% {
    opacity: 0;
    transform: translate3d(5px, -1px, 0) scale(0.56, 0.72);
  }
  16% { opacity: 0.34; }
  48% { opacity: 0.18; }
  100% {
    opacity: 0;
    transform: translate3d(-10px, 2px, 0) scale(1.2, 1.03);
  }
}

@keyframes fishingBoatSwell {
  0%, 100% { transform: translateY(3px) rotate(-1.6deg); }
  30% { transform: translateY(-2px) rotate(0.7deg); }
  61% { transform: translateY(1px) rotate(1.35deg); }
  82% { transform: translateY(-3px) rotate(-0.45deg); }
}

@keyframes fishingBoatSwellReduced {
  0%, 100% { transform: translateY(1px) rotate(-0.5deg); }
  50% { transform: translateY(-1px) rotate(0.4deg); }
}

@keyframes seaSurfaceDrift {
  from { transform: translateX(-2%) scaleX(0.98); opacity: 0.19; }
  to { transform: translateX(2%) scaleX(1.03); opacity: 0.28; }
}

@keyframes seaLightDrift {
  from { transform: translateX(-2.5%) scaleX(0.96); opacity: 0.09; }
  to { transform: translateX(2.5%) scaleX(1.04); opacity: 0.17; }
}

@keyframes seaGlowDrift {
  from { transform: translateX(-1.8%) scaleX(0.98); opacity: 0.42; }
  to { transform: translateX(1.8%) scaleX(1.02); opacity: 0.6; }
}

@keyframes impactWash {
  0% { opacity: 0; transform: scaleX(0.08); }
  16% { opacity: var(--impact-alpha); transform: scaleX(0.34); }
  100% { opacity: 0; transform: scaleX(1.18); }
}

@keyframes moneyDropFallback {
  0% { opacity: 0; transform: translate(-50%, -70px); }
  13% { opacity: 1; }
  88% { opacity: 0.92; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drop-drift)), var(--drop-distance));
  }
}

@keyframes impactMist {
  0% { opacity: 0; transform: translateY(20%) scale(0.18); }
  22% { opacity: var(--impact-alpha-soft); }
  100% { opacity: 0; transform: translate(var(--mist-drift), -48%) scale(1.14, 0.72); }
}

@keyframes impactCrown {
  0% { opacity: 0; transform: translateY(4px) scale(0.22, 0.06) rotate(0); }
  24% { opacity: var(--impact-alpha); transform: scale(0.92, 1) rotate(var(--crown-lean)); }
  64% { opacity: var(--impact-alpha-mid); }
  100% { opacity: 0; transform: translateY(5px) scale(1.22, 0.18) rotate(var(--crown-return)); }
}

@keyframes impactSkid {
  0% { opacity: 0; transform: translateY(-50%) scaleX(0.08) rotate(var(--skid-rotate)); }
  19% { opacity: var(--skid-alpha); }
  60% { opacity: var(--skid-alpha-mid); }
  100% {
    opacity: 0;
    transform: translate(var(--skid-x), var(--skid-y)) scaleX(1) rotate(var(--skid-rotate));
  }
}

@keyframes impactRipple {
  0% { opacity: 0; transform: scale(0.08, 0.04) rotate(var(--ripple-rotate)); }
  14% { opacity: 1; }
  58% { opacity: 0.58; }
  100% {
    opacity: 0;
    transform: translateX(var(--ripple-drift)) scale(1, var(--ripple-squash)) rotate(var(--ripple-rotate));
  }
}

@keyframes impactJet {
  0% { opacity: 0; transform: translateY(3px) scale(0.25, 0.04) rotate(0); }
  20% { opacity: var(--impact-alpha); }
  62% {
    opacity: var(--impact-alpha-mid);
    transform: translate(var(--jet-x), var(--jet-y)) scale(0.92, 1) rotate(var(--jet-rotate));
  }
  100% {
    opacity: 0;
    transform: translate(var(--jet-x), var(--jet-return)) scale(0.12, 0.32) rotate(var(--jet-rotate));
  }
}

@keyframes impactParticle {
  0% { opacity: 0; transform: scale(0.16); }
  15% { opacity: var(--impact-alpha); }
  58% { opacity: 0.72; transform: translate(var(--particle-x), var(--particle-y)) scale(1); }
  100% {
    opacity: 0;
    transform: translate(var(--particle-x), var(--particle-return)) scale(0.1);
  }
}

@media (max-width: 950px) {
  .calculator-view {
    place-items: center;
    padding: 84px var(--layout-gutter) 32px;
  }

  .tide-content {
    left: var(--layout-gutter);
    width: min(650px, 73vw);
  }

}

@media (max-width: 640px) {
  :root {
    --layout-gutter: 20px;
  }

  .site-header {
    height: 64px;
    padding: 0 var(--layout-gutter);
  }

  .meditation-menu {
    top: 32px;
    right: var(--layout-gutter);
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: 8px;
  }

  .brand-mark {
    width: 22px;
  }

  .brand-mark span:nth-child(1) { width: 14px; }
  .brand-mark span:nth-child(2) { width: 22px; }
  .brand-mark span:nth-child(3) { width: 9px; }

  .rain-period-options {
    gap: 8px;
  }

  .rain-period-options button {
    font-size: 9px;
  }

  .header-actions {
    gap: 7px;
  }

  .audio-mixer {
    width: min(286px, calc(100vw - 40px));
    gap: 8px;
    padding: 9px 10px 10px;
  }

  .volume-control {
    width: auto;
  }

  .volume-control > span {
    font-size: 6px;
  }

  .header-sound {
    width: 32px;
    height: 32px;
  }

  .header-action {
    width: 32px;
    height: 32px;
  }

  .fishing-boat-voyage {
    top: -37px;
    width: 80px;
    height: 42px;
  }

  .boat-thought {
    padding: 11px 14px 12px;
    font-size: 14px;
  }

  .share-trigger {
    bottom: calc(max(48px, calc(var(--sea-height) * 0.3)) + 92px);
    width: 56px;
    height: 56px;
  }

  .share-trigger svg {
    width: 28px;
    height: 28px;
  }

  .share-dialog {
    padding: 14px;
  }

  .share-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    width: 100%;
    max-width: none;
    max-height: calc(100svh - 28px);
  }

  .share-preview {
    width: min(69vw, 38vh, 310px);
  }

  .share-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    width: min(100%, 420px);
    padding: 0;
  }

  .share-kicker {
    margin-bottom: 7px;
    font-size: 7px;
  }

  .share-controls h2 {
    font-size: 29px;
  }

  .share-controls p {
    display: none;
  }

  .share-actions {
    grid-template-columns: 1fr;
    min-width: 126px;
  }

  .share-primary,
  .share-download {
    min-height: 38px;
    padding: 0 12px;
    font-size: 7px;
  }

  .share-close {
    top: -3px;
    right: 0;
  }

  .calculator-view {
    display: grid;
    place-items: center;
    height: 100svh;
    min-height: 0;
    padding: 70px 14px 14px;
    overflow: hidden;
  }

  .credit-form {
    width: 100%;
    max-width: 450px;
    padding: 20px 18px 18px;
    background:
      radial-gradient(circle at 50% 0%, rgba(var(--aqua-rgb), 0.05), transparent 32%),
      linear-gradient(155deg, rgba(8, 15, 18, 0.92), rgba(5, 11, 14, 0.79));
    backdrop-filter: blur(14px) saturate(0.84);
  }

  .form-heading {
    margin-bottom: 16px;
  }

  .form-heading > span {
    margin-bottom: 6px;
    font-size: 6px;
  }

  .form-heading h1 {
    font-size: clamp(29px, 8.8vw, 38px);
  }

  .form-heading p {
    margin-top: 6px;
    font-size: 9px;
  }

  .form-topline {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .field {
    padding-bottom: 7px;
  }

  .field-wide + .field-row,
  .field-row + .field-wide {
    margin-top: 11px;
  }

  .field-row { gap: 16px; }

  .field-label {
    margin-bottom: 4px;
    font-size: 7px;
  }

  .input-shell input,
  .input-shell input[type="date"] {
    font-size: 17px;
  }

  .input-unit {
    font-size: 10px;
  }

  .field small,
  .privacy-note {
    display: none;
  }

  .analytics-choice {
    gap: 10px;
    margin: 2px 0 10px;
    padding-top: 10px;
  }

  .analytics-consent {
    gap: 9px;
    font-size: 10px;
  }

  .analytics-check {
    width: 21px;
    height: 21px;
  }

  .analytics-copy strong {
    font-size: 9px;
  }

  .analytics-copy small,
  .analytics-details {
    font-size: 8px;
  }

  .privacy-dialog {
    padding: 14px;
  }

  .privacy-shell {
    width: min(100%, 430px);
    max-height: calc(100svh - 28px);
    padding: 26px 22px 22px;
    overflow-y: auto;
  }

  .privacy-shell h2 {
    font-size: 35px;
  }

  .form-error {
    min-height: 10px;
    margin-top: 4px;
    font-size: 9px;
  }

  .submit-button {
    min-height: 46px;
    padding-left: 15px;
    font-size: 10px;
  }

  .submit-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .tide-content {
    bottom: max(48px, calc(var(--sea-height) * 0.3));
    left: var(--layout-gutter);
    width: calc(58% - 20px);
  }

  .rate-value-row {
    gap: 8px;
  }

  .rate-value-row strong { font-size: clamp(34px, 10vw, 54px); }

  .rate-value-row > span {
    padding-bottom: 0.5em;
    font-size: 9px;
  }

  .rate-time { font-size: 8px; }

  .breathing-orb {
    width: min(64vw, 330px);
  }

  .sea-counter {
    right: var(--layout-gutter);
    bottom: max(48px, calc(var(--sea-height) * 0.3));
  }

  .sea-counter strong { font-size: clamp(24px, 8vw, 39px); }
}

@media (max-width: 640px),
  (max-height: 480px),
  (hover: none) and (pointer: coarse) {
  .tide-content {
    left: var(--layout-gutter);
    width: 40%;
  }

  .rate-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
  }

  .rate-label,
  .rate-time {
    margin-bottom: 0;
    font-size: clamp(7px, 1vw, 9px);
    line-height: 1;
  }

  .rate-value-row {
    gap: 6px;
    margin-top: 8px;
  }

  .rate-value-row strong,
  .sea-counter strong {
    font-size: clamp(21px, 5.5vw, 58px);
    white-space: nowrap;
  }

  .rate-value-row > span {
    padding-bottom: 0.42em;
    font-size: clamp(7px, 1vw, 10px);
  }

  .sea-counter {
    right: var(--layout-gutter);
    width: 54%;
  }

  .sea-counter > span {
    font-size: clamp(7px, 1vw, 9px);
    line-height: 1;
    white-space: nowrap;
  }

  .money-drop::before {
    filter: blur(5px);
    mix-blend-mode: normal;
  }

  .money-drop::after {
    box-shadow: 0 0 4px rgba(var(--aqua-rgb), 0.3);
  }

  .impact-particle:nth-of-type(n + 7) {
    display: none;
  }

}

@media (max-width: 640px) and (max-height: 600px) {
  .calculator-view {
    padding: 62px 12px 8px;
  }

  .form-heading p {
    display: none;
  }

  .credit-form {
    padding: 14px 15px 13px;
  }

  .form-heading {
    margin-bottom: 10px;
  }

  .form-heading h1 {
    font-size: clamp(27px, 8vw, 33px);
  }

  .form-topline {
    margin-bottom: 8px;
  }

  .field-wide + .field-row,
  .field-row + .field-wide {
    margin-top: 7px;
  }

  .analytics-choice {
    margin-bottom: 8px;
    padding-top: 8px;
  }

  .submit-button {
    min-height: 44px;
  }
}

@media (max-width: 640px), (max-height: 520px) {
  .wave-track {
    width: 280%;
  }

  .wave-back {
    top: -31px;
    height: 58px;
  }

  .wave-mid {
    top: -27px;
    height: 52px;
  }

  .wave-front {
    top: -25px;
    height: 48px;
  }

  .sea::before {
    top: -25px;
    height: 84px;
    filter: blur(14px);
  }

  .sea-glow {
    --sea-glow-blur: 14px;
    top: -39px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .money-drop::before { opacity: 0.46; }
  .money-drop::after { opacity: 0.32; }
  .money-drop[data-tier="large"]::before { opacity: 0.62; }
  .money-drop[data-tier="large"]::after { opacity: 0.46; }
  .tide-view.is-boat-active .fishing-boat-voyage {
    animation: fishingBoatVoyage var(--voyage-duration) linear var(--voyage-delay) infinite !important;
  }
  .tide-view.is-boat-active .fishing-boat-voyage.is-contemplating {
    animation-play-state: paused !important;
  }
  .tide-view.is-boat-active .flying-gull {
    animation: fishingGullVoyage var(--gull-duration) linear var(--gull-delay) infinite !important;
  }
  .tide-view.is-boat-active .gull-wing-back {
    animation: gullWingBack 1400ms ease-in-out infinite alternate !important;
  }
  .tide-view.is-boat-active .gull-wing-front {
    animation: gullWingFront 1250ms ease-in-out -260ms infinite alternate !important;
  }
  .tide-view.is-boat-active .fishing-boat-ripple {
    animation: fishingBoatRipple 7s ease-out infinite !important;
  }
  .tide-view.is-boat-active .ripple-two {
    animation-delay: -2.4s !important;
    animation-duration: 7.8s !important;
  }
  .tide-view.is-boat-active .ripple-three {
    animation-delay: -4.6s !important;
    animation-duration: 8.7s !important;
  }
  .tide-view.is-boat-active .fishing-boat-voyage.is-contemplating .fishing-boat-ripple {
    animation-play-state: paused !important;
  }
  .fishing-boat-swell {
    animation: fishingBoatSwellReduced 9s ease-in-out infinite !important;
  }
  .boat-thought {
    transition-duration: 260ms, 420ms !important;
  }
  .sky-star {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .sky-star::after {
    opacity: var(--star-alpha);
    transform: translate(-50%, -50%);
    animation: none !important;
  }
  .sky-star::before {
    transform: translate(-50%, -50%) scale(1);
    animation: skyStarBloomReduced 1500ms ease-out forwards !important;
  }

  .breathing-orb {
    animation: orbShellDrift 24s ease-in-out infinite !important;
  }
  .breathing-orb::before {
    animation: orbContourOuter 21s ease-in-out infinite !important;
  }
  .breathing-orb::after {
    animation: orbContourMiddle 29s ease-in-out infinite reverse !important;
  }
  .breathing-orb .breathing-core {
    animation: orbContourCore 18s ease-in-out infinite !important;
  }

  .tide-view.is-boat-active .atmosphere-shift {
    animation: nightVoyageSkyReduced var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-active .sky-stars {
    animation: nightVoyageStars var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-active .wave-back {
    animation:
      waveSwellBack 20s ease-in-out infinite alternate,
      nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-active .wave-mid {
    animation:
      waveSwellMid 17s ease-in-out infinite alternate-reverse,
      nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-active .wave-front {
    animation:
      waveSwellFront 14s ease-in-out infinite alternate,
      nightVoyageWaveTone var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-active .sea-glow {
    animation: nightVoyageSeaGlow var(--voyage-duration) ease-in-out var(--voyage-delay) infinite both !important;
  }
  .tide-view.is-boat-paused .atmosphere-shift,
  .tide-view.is-boat-paused .sky-stars,
  .tide-view.is-boat-paused .wave,
  .tide-view.is-boat-paused .sea-glow {
    animation-play-state: paused !important;
  }
  .wave-back .wave-track { animation: waveTrackBack 58s linear infinite !important; }
  .wave-mid .wave-track { animation: waveTrackMid 49s linear infinite reverse !important; }
  .wave-front .wave-track { animation: waveTrackFront 41s linear infinite !important; }

  .impact-wash { animation-duration: 1000ms !important; }
  .impact-mist { animation-duration: 1400ms !important; }
  .impact-crown { animation-duration: 900ms !important; }
  .impact-skid { animation-duration: 1500ms !important; }
  .impact-ripple { animation-duration: 1800ms !important; }
  .impact-jet { animation-duration: 850ms !important; }
  .impact-particle { animation-duration: 900ms !important; }
  .orb-impact-pulse {
    animation-name: orbImpactPulseReduced !important;
    animation-duration: 3400ms !important;
    animation-timing-function: linear !important;
  }
}
