:root {
  --ink: #e2f0f2;
  --muted: rgba(212, 229, 230, 0.66);
  --faint: rgba(207, 231, 232, 0.27);
  --blue: #8ee6ef;
  --deep: #06202a;
  --glass: rgba(9, 39, 49, 0.4);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #06202a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

textarea {
  resize: vertical;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid rgba(142, 230, 239, 0.48);
  outline-offset: 3px;
}

#trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video-scene,
.ocean-video,
.video-blur,
.video-depth,
.memory-wash {
  position: fixed;
  inset: 0;
}

body.tide-opening .ocean-video {
  filter: brightness(1.28) contrast(1.08) saturate(1.12);
}

body.tide-opening .video-blur,
body.tide-opening .memory-wash {
  opacity: 0.72;
}

body.tide-opening #app,
body.tide-opening .message-dock,
body.tide-opening .fishing-log-dock,
body.tide-opening .radio {
  opacity: 0.18;
  transition: opacity 900ms ease;
}

body.tide-opening .vignette {
  background:
    radial-gradient(circle at center, rgba(211, 247, 242, 0.08) 0%, transparent 46%, rgba(0, 7, 14, 0.3) 100%),
    linear-gradient(180deg, rgba(225, 247, 240, 0.09), rgba(0, 12, 21, 0.22));
  transition: background 900ms ease;
}

.video-scene {
  z-index: 0;
  overflow: hidden;
  background: #061e29;
}

.ocean-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.15) contrast(1.08) saturate(1.08);
  transform: scale(1.025);
}

.video-blur {
  z-index: 1;
  backdrop-filter: blur(1.6px);
  background:
    radial-gradient(ellipse at 36% 18%, rgba(197, 247, 238, 0.12), transparent 42%),
    radial-gradient(ellipse at 72% 72%, rgba(67, 205, 211, 0.12), transparent 46%);
  mix-blend-mode: screen;
}

.video-depth {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(2, 10, 18, 0.24) 0%, rgba(5, 47, 58, 0.12) 34%, rgba(1, 9, 16, 0.34) 100%),
    radial-gradient(circle at 50% 48%, rgba(33, 124, 132, 0.08), rgba(0, 5, 12, 0.28) 82%),
    linear-gradient(130deg, rgba(15, 142, 148, 0.16), transparent 48%, rgba(3, 13, 24, 0.2));
}

.memory-wash {
  z-index: 3;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(213, 250, 239, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(21, 122, 137, 0.12), rgba(1, 8, 16, 0.25));
  animation: memoryFloat 18s ease-in-out infinite alternate;
}

#trail {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 3;
  opacity: 0.075;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.65px, transparent 0.95px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 0.45px, transparent 0.85px);
  background-size: 31px 31px, 73px 73px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.vignette {
  z-index: 4;
  background:
    radial-gradient(circle at center, transparent 0%, transparent 48%, rgba(0, 7, 14, 0.46) 100%),
    linear-gradient(180deg, rgba(225, 247, 240, 0.035), rgba(0, 12, 21, 0.36));
}

@keyframes memoryFloat {
  from {
    opacity: 0.3;
    transform: translate3d(-0.8%, -0.6%, 0) scale(1.01);
  }
  to {
    opacity: 0.48;
    transform: translate3d(0.8%, 0.7%, 0) scale(1.025);
  }
}

@keyframes signalFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes glassFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

#app {
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

.landing,
.world {
  min-height: 100vh;
}

.landing {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  transition:
    opacity 1800ms ease,
    filter 1800ms ease,
    transform 1800ms ease;
}

body.entered .landing {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(-18px);
  pointer-events: none;
}

.entrance {
  display: grid;
  gap: 18px;
  padding: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  animation: signalFloat 9s ease-in-out infinite;
}

.site-name {
  font-size: clamp(34px, 7vw, 84px);
  line-height: 0.96;
  font-weight: 300;
  color: rgba(235, 247, 247, 0.94);
  text-shadow:
    0 0 18px rgba(142, 230, 239, 0.22),
    0 0 52px rgba(116, 215, 255, 0.1);
}

.subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

.world {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18vh 0 22vh;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1900ms ease 900ms,
    transform 1900ms ease 900ms;
  pointer-events: none;
}

body.entered .world {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.quiet-mark,
.kicker,
time,
.signal label,
.radio,
.archive-close,
.message-close,
.fishing-log-close,
.message-whisper,
.shore-hint,
.message-status,
.send-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}

.quiet-mark {
  margin-bottom: 16vh;
  opacity: 0.58;
}

.logs {
  width: min(520px, 100%);
  opacity: 0.68;
}

.kicker {
  margin: 0 0 34px;
  text-transform: lowercase;
}

.log-list {
  display: grid;
  gap: 20px;
}

.bottle:nth-child(n + 4) {
  display: none;
}

.bottle {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  align-items: baseline;
  min-height: 44px;
  padding: 2px 0 16px;
  border-bottom: 1px solid rgba(190, 222, 234, 0.1);
  opacity: 0.86;
}

.bottle p,
.unsent p,
.catch {
  margin: 0;
  color: rgba(235, 246, 247, 0.84);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
}

.fishing {
  width: min(420px, 100%);
  min-height: 0;
  display: grid;
  place-items: start;
  align-content: start;
  gap: 14px;
  margin: 18vh 0 0 auto;
  opacity: 0.46;
}

.fishing .kicker {
  justify-self: start;
  width: min(620px, 100%);
  margin-bottom: 0;
}

.float-button {
  position: relative;
  width: 58px;
  height: 96px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 18px rgba(116, 215, 255, 0.16));
}

.line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(213, 239, 239, 0.38));
}

.bobber {
  position: absolute;
  left: calc(50% - 5px);
  top: 42px;
  width: 10px;
  height: 34px;
  border: 1px solid rgba(192, 228, 240, 0.44);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(236, 246, 243, 0.88) 0 20%, rgba(142, 230, 239, 0.34) 21% 48%, rgba(8, 44, 55, 0.28) 49% 100%);
  animation: bob 7.5s ease-in-out infinite;
}

.bobber span {
  position: absolute;
  inset: 7px 3px auto;
  height: 5px;
  border-radius: 999px;
  background: rgba(142, 230, 239, 0.58);
  box-shadow: 0 0 24px rgba(142, 230, 239, 0.44);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(18px) rotate(1.5deg);
  }
}

.catch {
  min-height: 34px;
  max-width: min(360px, 100%);
  text-align: left;
  color: rgba(222, 241, 241, 0.68);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.catch.changing {
  opacity: 0;
  transform: translateY(8px);
}

.message-entry {
  border: 1px solid rgba(207, 231, 232, 0.14);
  border-radius: 999px;
  padding: 11px 18px;
  color: rgba(235, 246, 247, 0.66);
  background:
    radial-gradient(circle at 30% 20%, rgba(142, 230, 239, 0.12), transparent 38%),
    rgba(10, 47, 58, 0.2);
  box-shadow: 0 0 42px rgba(142, 230, 239, 0.055);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  transition:
    border-color 900ms ease,
    color 900ms ease,
    box-shadow 900ms ease,
    transform 900ms ease;
}

.message-entry:hover,
.message-entry:focus-visible {
  border-color: rgba(142, 230, 239, 0.34);
  color: rgba(235, 246, 247, 0.88);
  box-shadow: 0 0 58px rgba(142, 230, 239, 0.13);
  transform: translateY(-2px);
}

.signal {
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  margin: 10vh 0 0 auto;
  padding-bottom: 10vh;
  opacity: 0.42;
}

.signal input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(207, 231, 232, 0.22);
  outline: 0;
  color: rgba(235, 246, 247, 0.84);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  padding: 9px 0;
}

.signal p {
  margin: 0;
  color: rgba(212, 229, 230, 0.28);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
}

.signal input::placeholder {
  color: rgba(212, 229, 230, 0.3);
}

.archive {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 24, 33, 0.66);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1600ms ease;
}

.archive.open {
  opacity: 1;
  pointer-events: auto;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 13;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 24, 33, 0.5);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1300ms ease;
}

.fishing-log-modal {
  position: fixed;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 24, 33, 0.42);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1300ms ease;
}

.fishing-log-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.message-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.message-glass,
.fishing-log-glass {
  position: relative;
  width: min(680px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  border: 1px solid rgba(207, 231, 232, 0.18);
  border-radius: 28px 28px 34px 34px / 42px 42px 30px 30px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 230, 239, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 42%, rgba(5, 17, 29, 0.52)),
    rgba(8, 35, 45, 0.62);
  box-shadow:
    inset 0 0 36px rgba(216, 228, 234, 0.035),
    0 0 90px rgba(89, 202, 202, 0.13);
  animation: glassFloat 11s ease-in-out infinite;
}

.fishing-log-glass {
  width: min(920px, 100%);
}

.message-glass::before,
.fishing-log-glass::before {
  content: "";
  position: absolute;
  inset: 16px 20px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 244, 241, 0.24), transparent);
}

.message-glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 116px;
  width: 12px;
  height: 34px;
  border: 1px solid rgba(213, 239, 239, 0.26);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(228, 244, 241, 0.38), rgba(142, 230, 239, 0.14) 46%, rgba(8, 44, 55, 0.2)),
    rgba(10, 47, 58, 0.24);
  box-shadow: 0 0 24px rgba(142, 230, 239, 0.14);
  opacity: 0;
  transform: translate(-50%, 18px) rotate(-5deg);
  pointer-events: none;
}

.message-glass.bottle-sending::after {
  animation: bottleFloatUp 1050ms ease forwards;
}

.message-close,
.fishing-log-close {
  position: absolute;
  top: 28px;
  right: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.log-whisper,
.catch-form span,
.catch-status,
.catch-meta,
.catch-delete {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}

.log-whisper {
  margin: -18px 0 30px;
  color: rgba(212, 229, 230, 0.48);
}

.identity-step {
  clear: both;
  display: grid;
  gap: 24px;
  padding-top: 18px;
}

.identity-choices {
  display: flex;
  gap: 10px;
}

.identity-choice,
.send-form button,
.catch-form button,
.catch-delete,
.fishing-log-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 231, 232, 0.15);
  border-radius: 999px;
  color: rgba(235, 246, 247, 0.68);
  background: rgba(8, 35, 45, 0.32);
  padding: 10px 14px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  transition:
    border-color 800ms ease,
    color 800ms ease,
    background 800ms ease,
    box-shadow 800ms ease;
}

.identity-choice::before {
  content: "";
  position: absolute;
  inset: -36px;
  border-radius: inherit;
  background:
    repeating-radial-gradient(
      circle at center,
      rgba(142, 230, 239, 0.16) 0 1px,
      transparent 1px 13px
    );
  opacity: 0;
  transform: scale(0.42);
  pointer-events: none;
}

.identity-choice.active,
.identity-choice:hover,
.send-form button:hover,
.catch-form button:hover,
.catch-delete:hover,
.fishing-log-entry:hover {
  border-color: rgba(142, 230, 239, 0.34);
  color: rgba(235, 246, 247, 0.9);
  background: rgba(20, 76, 88, 0.36);
  box-shadow: 0 0 24px rgba(142, 230, 239, 0.09);
}

.identity-choice:hover::before,
.identity-choice:focus-visible::before {
  animation: shoreRipple 1800ms ease-out infinite;
}

.shore-hint {
  margin: -10px 0 0;
  color: rgba(212, 229, 230, 0.36);
}

.send-form {
  display: grid;
  gap: 16px;
}

.catch-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-bottom: 26px;
}

.catch-form label {
  display: grid;
  gap: 9px;
}

.catch-form .notes-field,
.catch-form button {
  grid-column: 1 / -1;
}

.catch-form input,
.catch-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(207, 231, 232, 0.16);
  border-radius: 0;
  outline: 0;
  color: rgba(235, 246, 247, 0.86);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018));
  padding: 12px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
}

.catch-form input[type="file"] {
  color: rgba(212, 229, 230, 0.58);
  border: 1px solid rgba(207, 231, 232, 0.11);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.catch-form input::placeholder,
.catch-form textarea::placeholder {
  color: rgba(212, 229, 230, 0.34);
}

.send-form.is-sending {
  pointer-events: none;
  opacity: 0.62;
}

.send-form textarea {
  width: 100%;
  outline: 0;
  color: rgba(235, 246, 247, 0.86);
  background: transparent;
  padding: 10px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
}

.send-form textarea {
  min-height: 92px;
  border: 1px solid rgba(207, 231, 232, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.026);
}

.send-form textarea::placeholder {
  color: rgba(212, 229, 230, 0.34);
}

.transmission-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.messages-list {
  display: grid;
  gap: 30px;
  min-height: 18px;
  padding: 8px 0 2px;
}

.ocean-note {
  width: min(420px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: noteRise 1800ms ease forwards;
}

.ocean-note.new-note {
  animation: noteSurface 2400ms ease forwards;
}

.ocean-note:nth-child(even) {
  margin-left: auto;
}

.ocean-note time {
  display: block;
  margin-bottom: 10px;
  color: rgba(212, 229, 230, 0.52);
}

.ocean-note p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(207, 231, 232, 0.11);
  color: rgba(235, 246, 247, 0.84);
  font-size: 14px;
  line-height: 1.8;
}

.empty-notes {
  margin: 28px 0;
  color: rgba(212, 229, 230, 0.44);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.catch-list {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}

.catch-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(207, 231, 232, 0.13);
  border-radius: 10px;
  background:
    radial-gradient(circle at 26% 0%, rgba(142, 230, 239, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.028);
  box-shadow: inset 0 0 24px rgba(228, 244, 241, 0.025);
  opacity: 0;
  transform: translateY(16px);
  animation: noteSurface 1800ms ease forwards;
}

.catch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.catch-number {
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: rgba(212, 229, 230, 0.52);
}

.catch-card time,
.catch-location,
.catch-species {
  display: block;
}

.catch-card time {
  margin-bottom: 8px;
}

.catch-location {
  margin-bottom: 8px;
  color: rgba(235, 246, 247, 0.86);
  font-size: 15px;
}

.catch-species {
  color: rgba(235, 246, 247, 0.72);
  font-size: 13px;
}

.catch-photo {
  width: min(360px, 100%);
  max-height: 260px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(207, 231, 232, 0.13);
  box-shadow: 0 0 42px rgba(89, 202, 202, 0.08);
  opacity: 0.88;
}

.catch-notes {
  max-width: 620px;
  margin: 0;
  color: rgba(235, 246, 247, 0.74);
  font-size: 13px;
  line-height: 1.8;
}

.message-dock,
.fishing-log-dock {
  position: fixed;
  right: 20px;
  z-index: 12;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1200ms ease 1700ms,
    transform 1200ms ease 1700ms;
}

.message-dock {
  bottom: 62px;
}

.fishing-log-dock {
  bottom: 104px;
}

body.entered .message-dock,
body.entered .fishing-log-dock {
  opacity: 1;
  transform: translateY(0);
}

@keyframes noteRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shoreRipple {
  0% {
    opacity: 0;
    transform: scale(0.42);
  }
  30% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes bottleFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 22px) rotate(-6deg);
  }
  25% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -92px) rotate(4deg);
  }
}

@keyframes noteSurface {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  45% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.archive-inner {
  width: min(760px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(22px, 5vw, 56px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.archive-close {
  float: right;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hidden-shore {
  clear: both;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(28px, 6vw, 58px) 0 14px;
  animation: shoreSurface 1800ms ease forwards;
}

.hidden-photo {
  width: min(520px, 86vw);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  border: 1px solid rgba(228, 244, 241, 0.18);
  background:
    radial-gradient(circle at 48% 34%, rgba(235, 247, 247, 0.32), transparent 10%),
    radial-gradient(circle at 56% 38%, rgba(22, 74, 84, 0.42), transparent 18%),
    linear-gradient(135deg, rgba(228, 244, 241, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(44, 119, 128, 0.72), rgba(5, 31, 42, 0.92));
  box-shadow:
    0 0 76px rgba(142, 230, 239, 0.18),
    inset 0 0 54px rgba(228, 244, 241, 0.04);
  filter: saturate(0.82);
}

.hidden-shore p {
  margin: 0;
  color: rgba(235, 246, 247, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

@keyframes shoreSurface {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.radio {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 1200ms ease 1600ms,
    transform 1200ms ease 1600ms;
}

body.entered .radio {
  opacity: 1;
  transform: translateY(0);
}

.radio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(207, 231, 232, 0.16);
  background: rgba(8, 35, 45, 0.38);
  backdrop-filter: blur(16px);
  padding: 9px 11px;
  cursor: pointer;
}

.radio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(142, 230, 239, 0.42);
  box-shadow: 0 0 14px rgba(142, 230, 239, 0.48);
}

.radio.muted .radio-dot {
  background: rgba(212, 229, 230, 0.25);
  box-shadow: none;
}

.radio-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 18px;
}

.radio-wave span {
  width: 1px;
  height: 8px;
  background: rgba(142, 230, 239, 0.44);
  animation: wave 3.8s ease-in-out infinite;
}

.radio-wave span:nth-child(2) {
  animation-delay: 900ms;
}

.radio-wave span:nth-child(3) {
  animation-delay: 1800ms;
}

@keyframes wave {
  0%,
  100% {
    height: 5px;
    opacity: 0.35;
  }
  50% {
    height: 17px;
    opacity: 0.8;
  }
}

@media (max-width: 720px) {
  .world {
    width: min(100% - 28px, 540px);
    padding-top: 15vh;
  }

  .quiet-mark {
    margin-bottom: 14vh;
  }

  .bottle {
    grid-template-columns: 54px 1fr;
    gap: 14px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .unsent,
  .unsent.wide,
  .photo {
    grid-column: auto;
  }

  .signal {
    margin-left: 0;
  }

  .identity-choices,
  .transmission-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catch-form {
    grid-template-columns: 1fr;
  }

  .catch-head {
    flex-direction: column;
  }

  .message-dock {
    right: 12px;
    bottom: 56px;
  }

  .fishing-log-dock {
    right: 12px;
    bottom: 100px;
  }

  .radio {
    right: 12px;
    bottom: 12px;
  }
}

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