:root {
  --deepest: #020b10;
  --deep: #041923;
  --ocean: #075171;
  --blue: #0b74a5;
  --bright: #7cd7f1;
  --ice: #d9f6ff;
  --foam: #f7fcfd;
  --sand: #efe9dc;
  --muted: rgba(220, 239, 245, 0.72);
  --line: rgba(193, 235, 249, 0.2);
  --display: "Arial Black", "Avenir Next", Helvetica, sans-serif;
  --body: "Avenir Next", Avenir, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(60, 157, 194, 0.22), transparent 34%),
    linear-gradient(180deg, #07151d, #010609);
  color: var(--foam);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
}

.app {
  position: relative;
  width: min(100vw, 430px);
  height: 100svh;
  max-height: 932px;
  overflow: hidden;
  isolation: isolate;
  background: var(--deepest);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.58);
}

.filter-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Launch */

.ocean-scene,
.ocean-scene__image,
.surface-light,
.caustic-field,
.water-grain,
.depth-shade,
.home-atmosphere,
.home-atmosphere__kelp,
.home-atmosphere__light {
  position: absolute;
  inset: 0;
}

.ocean-scene {
  background: #082836;
  transform: scale(1.02);
}

.ocean-scene__image {
  inset: -5%;
  background-image: url("./assets/launch-kelp.png");
  background-position: 50% 48%;
  background-size: cover;
}

.ocean-scene__image--base {
  animation: oceanDrift 18s ease-in-out infinite alternate;
}

.ocean-scene__image--ripple {
  opacity: 0.34;
  filter: url("#water-distortion") saturate(1.12) brightness(1.08);
  mix-blend-mode: screen;
  animation: rippleDrift 12s ease-in-out infinite alternate;
}

.surface-light {
  inset: -20% -35% 35%;
  background:
    conic-gradient(from 198deg at 50% 0%, transparent 0deg, rgba(255, 241, 200, 0.16) 17deg, transparent 39deg, rgba(166, 226, 244, 0.17) 64deg, transparent 88deg),
    radial-gradient(ellipse at 50% 3%, rgba(255, 245, 211, 0.56), rgba(132, 205, 228, 0.1) 32%, transparent 64%);
  filter: blur(13px);
  transform-origin: top center;
  mix-blend-mode: screen;
  animation: lightCurrent 9s ease-in-out infinite alternate;
}

.caustic-field {
  inset: -16%;
  opacity: 0.3;
  background-image:
    repeating-radial-gradient(ellipse at 18% 4%, transparent 0 15px, rgba(230, 251, 255, 0.14) 18px 19px, transparent 23px 48px),
    repeating-radial-gradient(ellipse at 76% 14%, transparent 0 25px, rgba(213, 246, 255, 0.1) 28px 30px, transparent 34px 66px);
  background-size: 180px 130px, 240px 170px;
  mix-blend-mode: screen;
  filter: blur(2.5px) url("#water-distortion");
}

.caustic-field--one {
  animation: causticSwim 15s linear infinite;
}

.caustic-field--two {
  opacity: 0.2;
  transform: rotate(18deg) scale(1.16);
  animation: causticReturn 21s linear infinite;
}

.water-grain {
  opacity: 0.23;
  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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.depth-shade {
  background:
    radial-gradient(ellipse at 50% 35%, transparent 0 24%, rgba(1, 11, 16, 0.06) 47%, rgba(1, 7, 11, 0.54) 100%),
    linear-gradient(180deg, rgba(3, 25, 34, 0.02), rgba(1, 7, 11, 0.52));
}

.launch-center {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(38px, env(safe-area-inset-bottom));
  transform: translateY(3%);
}

.launch-logo {
  position: relative;
  width: clamp(198px, 54vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: logoFloat 6.8s ease-in-out infinite;
}

.launch-logo__halo {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 234, 248, 0.18), rgba(103, 194, 223, 0.04) 42%, transparent 67%);
  filter: blur(8px);
  animation: haloBreathe 5.2s ease-in-out infinite;
}

.launch-logo__lens {
  position: absolute;
  inset: 5%;
  border-radius: 48% 52% 50% 49% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.9), rgba(238, 250, 252, 0.72) 30%, rgba(176, 224, 239, 0.62) 68%, rgba(56, 126, 154, 0.34)),
    rgba(233, 248, 252, 0.8);
  border: 1px solid rgba(230, 251, 255, 0.72);
  box-shadow:
    inset 12px 14px 28px rgba(255, 255, 255, 0.52),
    inset -15px -18px 32px rgba(4, 69, 98, 0.28),
    0 25px 55px rgba(0, 15, 24, 0.38);
  backdrop-filter: blur(8px) saturate(1.3);
  animation: lensMelt 8s ease-in-out infinite alternate;
}

.launch-logo__lens::after {
  content: "";
  position: absolute;
  inset: 8% 18% 58% 16%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.02));
  filter: blur(4px);
  transform: rotate(-8deg);
}

.launch-logo img {
  position: relative;
  z-index: 2;
  width: 79%;
  height: 79%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.12);
}

.descend-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 52px;
  padding: 12px 2px;
  background: transparent;
  cursor: pointer;
  text-shadow: 0 2px 12px rgba(0, 16, 24, 0.75);
}

.descend-control__line {
  width: 30px;
  height: 1px;
  background: rgba(229, 249, 255, 0.52);
  transform-origin: right;
  animation: lineBreathe 2.8s ease-in-out infinite;
}

.descend-control__label {
  color: var(--foam);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.descend-control__depth {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(230, 249, 255, 0.36);
  border-radius: 50%;
  font-size: 12px;
  animation: depthHint 2.8s ease-in-out infinite;
}

.descend-control:active {
  transform: translateY(2px) scale(0.98);
}

.descent-stream {
  position: absolute;
  z-index: 6;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.descent-stream i {
  position: absolute;
  bottom: -40px;
  width: 2px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(214, 247, 255, 0.72), transparent);
}

.descent-stream i:nth-child(1) { left: 12%; height: 90px; animation-delay: 0ms; }
.descent-stream i:nth-child(2) { left: 28%; height: 48px; animation-delay: 110ms; }
.descent-stream i:nth-child(3) { left: 44%; height: 112px; animation-delay: 40ms; }
.descent-stream i:nth-child(4) { left: 61%; height: 62px; animation-delay: 160ms; }
.descent-stream i:nth-child(5) { left: 78%; height: 96px; animation-delay: 80ms; }
.descent-stream i:nth-child(6) { left: 91%; height: 54px; animation-delay: 210ms; }

.launch.is-descending .launch-center {
  animation: launchSink 920ms cubic-bezier(0.55, 0.02, 0.75, 0.35) forwards;
}

.launch.is-descending .ocean-scene {
  animation: sceneDescend 1s cubic-bezier(0.55, 0.02, 0.75, 0.35) forwards;
}

.launch.is-descending .surface-light {
  animation: lightDepart 960ms ease-in forwards;
}

.launch.is-descending .descent-stream {
  opacity: 1;
}

.launch.is-descending .descent-stream i {
  animation: streamPast 760ms linear forwards;
}

/* Home */

.home {
  background: #031018;
  transform: scale(1.03) translateY(26px);
  transition:
    opacity 620ms ease,
    transform 980ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.home.is-active {
  transform: scale(1) translateY(0);
}

.home.is-arriving .home-scroll > * {
  animation: contentSurface 760ms both;
}

.home.is-arriving .home-scroll > *:nth-child(2) { animation-delay: 80ms; }
.home.is-arriving .home-scroll > *:nth-child(3) { animation-delay: 150ms; }
.home.is-arriving .home-scroll > *:nth-child(4) { animation-delay: 210ms; }

.home-atmosphere {
  overflow: hidden;
  background: linear-gradient(180deg, #0b4056, #041621 52%, #020b11);
}

.home-atmosphere__kelp {
  inset: -4%;
  opacity: 0.46;
  background:
    linear-gradient(180deg, rgba(2, 12, 18, 0.08), rgba(2, 8, 12, 0.78)),
    url("./assets/launch-kelp.png") center/cover;
  filter: saturate(0.86) contrast(1.08);
  animation: homeCurrent 24s ease-in-out infinite alternate;
}

.home-atmosphere__light {
  height: 40%;
  background: radial-gradient(ellipse at 45% 0%, rgba(185, 229, 239, 0.24), transparent 64%);
  mix-blend-mode: screen;
  animation: homeLight 11s ease-in-out infinite alternate;
}

.home-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 15, 22, 0.05), rgba(1, 10, 15, 0.52) 38%, rgba(1, 7, 11, 0.94) 100%);
}

.home-header {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  right: 0;
  height: 98px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 19px 13px;
  background: linear-gradient(180deg, rgba(1, 12, 18, 0.88), rgba(1, 12, 18, 0));
}

.brand-mini {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(218, 246, 253, 0.38);
  border-radius: 19px;
  background:
    radial-gradient(circle at 34% 20%, #fff, rgba(225, 244, 249, 0.84) 48%, rgba(101, 178, 207, 0.48)),
    rgba(232, 248, 252, 0.84);
  box-shadow:
    inset 0 1px 1px #fff,
    0 12px 24px rgba(0, 8, 13, 0.28);
}

.brand-mini img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.conditions {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(215, 244, 252, 0.18);
  border-radius: 18px;
  background: rgba(3, 28, 40, 0.54);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conditions__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ee7d2;
  box-shadow: 0 0 9px rgba(158, 231, 210, 0.8);
}

.conditions strong {
  margin-left: 3px;
  color: #fff;
  font-size: 14px;
}

.home-scroll {
  position: relative;
  z-index: 3;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 111px 17px 154px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.home-scroll::-webkit-scrollbar {
  display: none;
}

.today-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 2px 14px;
}

.today-heading p,
.section-heading p,
.story-card__copy p,
.trip-card__body > p,
.community-strip p {
  margin: 0;
  color: #a9deec;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.today-heading h1 {
  max-width: 270px;
  margin: 4px 0 0;
  color: #f4f1e8;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 35px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.crew-stack {
  display: flex;
  padding-bottom: 3px;
}

.crew {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 2px solid rgba(4, 25, 35, 0.94);
  border-radius: 50%;
  color: #effaff;
  font-size: 7px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(0, 6, 10, 0.32);
}

.crew--one { margin-left: 0; background: linear-gradient(145deg, #6fc3e0, #15455d); }
.crew--two { background: linear-gradient(145deg, #d4b985, #614629); }
.crew--three { background: rgba(4, 41, 57, 0.94); }

.story-card {
  position: relative;
  height: 288px;
  overflow: hidden;
  border: 1px solid rgba(190, 232, 244, 0.24);
  border-radius: 28px 28px 32px 18px;
  background: #071820;
  box-shadow: 0 25px 48px rgba(0, 5, 8, 0.42);
}

.story-card__image,
.story-card__wash {
  position: absolute;
  inset: 0;
}

.story-card__image {
  background: url("./assets/launch-kelp.png") 54% 48%/cover;
  transform: scale(1.04);
  transition: transform 800ms ease;
}

.story-card:hover .story-card__image,
.story-card:focus .story-card__image {
  transform: scale(1.085);
}

.story-card__wash {
  background:
    linear-gradient(180deg, rgba(1, 10, 14, 0.16), transparent 40%, rgba(1, 8, 12, 0.92)),
    linear-gradient(90deg, rgba(1, 10, 15, 0.24), transparent 66%);
}

.story-card__topline {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(239, 250, 252, 0.8);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(219, 247, 252, 0.22);
  border-radius: 14px;
  background: rgba(1, 19, 27, 0.52);
  backdrop-filter: blur(12px);
}

.live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fe0cb;
  box-shadow: 0 0 9px rgba(143, 224, 203, 0.86);
  animation: livePulse 2.3s ease-out infinite;
}

.story-card__copy {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 16px;
}

.story-card__copy h2 {
  max-width: 340px;
  margin: 7px 0 10px;
  color: #f3eee4;
  font-size: 23px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.story-card__copy > span {
  color: rgba(222, 243, 248, 0.78);
  font-size: 9px;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 2px 12px;
}

.section-heading h2 {
  max-width: 278px;
  margin: 4px 0 0;
  color: #f3eee4;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading button {
  flex: 0 0 auto;
  padding: 7px 0 6px;
  border-bottom: 1px solid rgba(216, 243, 250, 0.48);
  background: transparent;
  color: #e5f6fa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.trip-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  border: 1px solid rgba(184, 229, 242, 0.18);
  border-radius: 18px 29px 20px 29px;
  background: rgba(4, 22, 31, 0.78);
  box-shadow: 0 20px 38px rgba(0, 6, 10, 0.34);
  backdrop-filter: blur(16px);
}

.trip-card__image {
  position: relative;
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(1, 12, 18, 0.06), rgba(1, 10, 14, 0.56)),
    url("./assets/farnsworth-hero.png") center/cover;
}

.trip-card__number {
  position: absolute;
  top: 10px;
  left: 11px;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.08em;
}

.trip-card__tag {
  position: absolute;
  right: -19px;
  bottom: 33px;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--sand);
  color: #062537;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-90deg);
}

.trip-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 15px 14px 18px;
}

.trip-card__body h3 {
  margin: 12px 0 0;
  color: #f3eee4;
  font-family: var(--display);
  font-size: 21px;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.trip-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(209, 239, 247, 0.14);
  color: rgba(215, 239, 245, 0.66);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.trip-card__footer strong {
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(103, 202, 228, 0.13);
  color: #bcebf6;
}

.community-strip {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(185, 230, 242, 0.15);
  border-radius: 22px 15px 22px 15px;
  background: rgba(5, 29, 40, 0.64);
  backdrop-filter: blur(14px);
}

.community-strip__mark {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #66c7e3, #075072);
  color: #effbfe;
  font-family: var(--display);
  font-size: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}

.community-strip strong {
  display: block;
  margin-top: 3px;
  color: #f0f5f4;
  font-size: 12px;
}

.community-strip > span {
  color: #aee6f2;
  font-size: 18px;
}

/* Water nexus navigation */

.menu-dismiss {
  position: absolute;
  z-index: 9;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 10, 16, 0.32);
  backdrop-filter: blur(1.5px);
  transition: opacity 320ms ease;
}

.menu-is-open .menu-dismiss {
  opacity: 1;
  pointer-events: auto;
}

.nexus-menu {
  position: absolute;
  z-index: 11;
  left: 12px;
  right: 12px;
  bottom: 130px;
  height: 112px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(185, 235, 248, 0.42);
  border-radius: 31px;
  background:
    linear-gradient(180deg, rgba(103, 194, 220, 0.18), rgba(5, 42, 57, 0.15) 38%, rgba(1, 20, 30, 0.92)),
    rgba(4, 38, 53, 0.92);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.17),
    inset 0 -16px 32px rgba(0, 8, 13, 0.42),
    0 25px 45px rgba(0, 4, 7, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(56px) scaleX(0.08) scaleY(0.36);
  transform-origin: center bottom;
  transition:
    opacity 180ms ease 100ms,
    transform 640ms cubic-bezier(0.16, 1.18, 0.28, 1);
}

.nexus-menu::before {
  content: "";
  position: absolute;
  left: calc(50% - 13px);
  bottom: -34px;
  width: 26px;
  height: 36px;
  border: 1px solid rgba(168, 226, 243, 0.4);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, rgba(12, 74, 96, 0.95), rgba(114, 201, 224, 0.38), rgba(3, 41, 57, 0.96));
  box-shadow: 0 10px 20px rgba(0, 4, 7, 0.4);
}

.nexus-menu__reflection {
  position: absolute;
  top: -58px;
  bottom: -58px;
  width: 36px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(221, 250, 255, 0.36), transparent);
  filter: blur(1px);
  transform: translateX(-90px) rotate(12deg);
}

.menu-is-open .nexus-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleX(1) scaleY(1);
}

.menu-is-open .nexus-menu__reflection {
  animation: trayReflection 1.1s ease 420ms both;
}

.nexus-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(186, 231, 243, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 12%, rgba(179, 231, 244, 0.12), transparent 42%),
    rgba(2, 23, 33, 0.58);
  color: rgba(221, 243, 248, 0.72);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 480ms cubic-bezier(0.18, 1.2, 0.28, 1),
    background 180ms ease;
}

.nexus-item:nth-of-type(1) { transform: translateX(118px) translateY(12px) scale(0.42); }
.nexus-item:nth-of-type(2) { transform: translateX(38px) translateY(12px) scale(0.42); }
.nexus-item:nth-of-type(3) { transform: translateX(-38px) translateY(12px) scale(0.42); }
.nexus-item:nth-of-type(4) { transform: translateX(-118px) translateY(12px) scale(0.42); }

.menu-is-open .nexus-item {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  transition-delay: calc(230ms + var(--index) * 45ms);
}

.nexus-item__icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(179, 231, 245, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 24%, rgba(229, 251, 255, 0.27), transparent 24%),
    rgba(8, 77, 101, 0.44);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 0 rgba(111, 211, 237, 0);
  color: #c9eff8;
  font-family: var(--display);
  font-size: 16px;
  transition: 180ms ease;
}

.nexus-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nexus-item:active,
.nexus-item.is-selected {
  background: rgba(20, 105, 132, 0.7);
  transform: translateY(2px) scale(0.96);
}

.nexus-item:active .nexus-item__icon,
.nexus-item.is-selected .nexus-item__icon {
  border-color: rgba(217, 249, 255, 0.78);
  background: rgba(77, 184, 211, 0.64);
  box-shadow: 0 0 20px rgba(111, 211, 237, 0.36);
  color: #fff;
}

.menu-dock {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.menu-dock__wake {
  position: absolute;
  width: 194px;
  height: 75px;
  border: 1px solid rgba(146, 224, 244, 0.19);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(76, 177, 206, 0.09), transparent 70%);
  box-shadow: inset 0 0 22px rgba(154, 229, 247, 0.05);
  animation: wakeBreathe 4.2s ease-in-out infinite;
  transition: 500ms ease;
}

.menu-dock__halo {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 194, 225, 0.23), rgba(21, 108, 137, 0.06) 53%, transparent 70%);
  filter: blur(2px);
  animation: buttonBreathe 3.8s ease-in-out infinite;
}

.menu-trigger {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(209, 247, 255, 0.72);
  border-radius: 31px;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.84), rgba(207, 239, 247, 0.72) 28%, rgba(91, 178, 205, 0.65) 60%, rgba(8, 65, 88, 0.9)),
    #75cce4;
  box-shadow:
    inset 8px 10px 22px rgba(255, 255, 255, 0.5),
    inset -12px -15px 24px rgba(3, 53, 75, 0.48),
    0 18px 38px rgba(0, 6, 10, 0.52),
    0 0 32px rgba(76, 194, 225, 0.23);
  cursor: pointer;
  transform: translateZ(0);
  transition:
    width 420ms cubic-bezier(0.2, 1.2, 0.26, 1),
    height 420ms cubic-bezier(0.2, 1.2, 0.26, 1),
    border-radius 420ms ease,
    transform 170ms cubic-bezier(0.25, 1.5, 0.35, 1),
    box-shadow 220ms ease;
}

.menu-trigger::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(240, 253, 255, 0.28);
  border-radius: 25px;
  box-shadow: inset 0 0 18px rgba(2, 40, 57, 0.2);
}

.menu-trigger::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(234, 253, 255, 0.7);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
}

.menu-trigger__pressure {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(230, 251, 255, 0.28), rgba(0, 99, 132, 0.13) 52%, transparent 72%);
  animation: pressureTide 3.4s ease-in-out infinite;
}

.menu-trigger__highlight {
  position: absolute;
  top: -15px;
  left: -8px;
  width: 104px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
  filter: blur(2px);
  transform: rotate(-9deg);
}

.menu-trigger__shimmer {
  position: absolute;
  top: -22px;
  width: 18px;
  height: 132px;
  background: linear-gradient(90deg, transparent, rgba(238, 253, 255, 0.52), transparent);
  filter: blur(1px);
  transform: translateX(-78px) rotate(14deg);
  animation: buttonShimmer 4.8s ease-in-out infinite;
}

.menu-trigger img {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.16) saturate(1.22);
  transition: transform 260ms cubic-bezier(0.2, 1.4, 0.28, 1);
}

.menu-trigger__bubble {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(236, 253, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.54);
}

.menu-trigger__bubble--one {
  top: 13px;
  right: 11px;
  width: 7px;
  height: 7px;
  animation: bubbleFloat 3.1s ease-in-out infinite;
}

.menu-trigger__bubble--two {
  top: 23px;
  right: 7px;
  width: 4px;
  height: 4px;
  animation: bubbleFloat 3.1s ease-in-out 620ms infinite;
}

.menu-is-pressed .menu-trigger {
  border-radius: 37px 29px 35px 31px;
  box-shadow:
    inset 12px 16px 26px rgba(3, 57, 78, 0.38),
    inset -5px -6px 16px rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(0, 5, 8, 0.52);
  transform: translateY(5px) scale(0.91, 0.87);
}

.menu-is-pressed .menu-trigger img {
  transform: scale(0.92);
}

.menu-is-pressed .menu-trigger::after {
  opacity: 0.72;
  transform: scale(1.9);
  transition: 380ms ease-out;
}

.menu-is-open .menu-trigger {
  width: 94px;
  height: 94px;
  border-radius: 47px;
  box-shadow:
    inset 8px 10px 22px rgba(255, 255, 255, 0.48),
    inset -12px -15px 25px rgba(2, 51, 72, 0.48),
    0 16px 38px rgba(0, 5, 8, 0.6),
    0 0 44px rgba(94, 212, 239, 0.4);
}

.menu-is-open .menu-trigger img {
  transform: scale(1.05);
}

.menu-is-open .menu-dock__wake {
  width: 240px;
  height: 92px;
  opacity: 0.6;
}

/* Motion */

@keyframes oceanDrift {
  from { transform: scale(1.04) translate3d(-0.8%, 0.4%, 0); }
  to { transform: scale(1.09) translate3d(1%, -1.2%, 0); }
}

@keyframes rippleDrift {
  from { transform: scale(1.03) translate3d(-1.5%, -0.6%, 0); }
  to { transform: scale(1.09) translate3d(1.4%, 0.8%, 0); }
}

@keyframes lightCurrent {
  from { opacity: 0.72; transform: rotate(-4deg) scaleX(0.95); }
  to { opacity: 1; transform: rotate(5deg) scaleX(1.08); }
}

@keyframes causticSwim {
  from { background-position: 0 0, 0 0; transform: rotate(-3deg) scale(1.03); }
  to { background-position: 180px 130px, -240px 170px; transform: rotate(4deg) scale(1.1); }
}

@keyframes causticReturn {
  from { background-position: 120px -80px, -40px 50px; }
  to { background-position: -180px 130px, 240px -170px; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-8px) rotate(0.7deg); }
}

@keyframes haloBreathe {
  0%, 100% { opacity: 0.6; transform: scale(0.93); }
  50% { opacity: 1; transform: scale(1.07); }
}

@keyframes lensMelt {
  0% { border-radius: 48% 52% 50% 49% / 52% 47% 53% 48%; transform: scale(0.99, 1.01); }
  50% { border-radius: 52% 48% 47% 53% / 48% 54% 46% 52%; transform: scale(1.015, 0.99); }
  100% { border-radius: 49% 51% 53% 47% / 54% 48% 52% 46%; transform: scale(0.995, 1.012); }
}

@keyframes lineBreathe {
  0%, 100% { opacity: 0.42; transform: scaleX(0.72); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes depthHint {
  0%, 100% { transform: translateY(-1px); background: rgba(203, 240, 250, 0.02); }
  50% { transform: translateY(3px); background: rgba(203, 240, 250, 0.12); }
}

@keyframes launchSink {
  0% { opacity: 1; transform: translateY(3%) scale(1); filter: blur(0); }
  36% { opacity: 1; transform: translateY(8%) scale(0.97, 1.04); filter: blur(0); }
  100% { opacity: 0; transform: translateY(62%) scale(0.78, 1.25); filter: blur(8px); }
}

@keyframes sceneDescend {
  0% { transform: scale(1.02) translateY(0); filter: brightness(1); }
  100% { transform: scale(1.46) translateY(-10%); filter: brightness(0.42) saturate(1.2); }
}

@keyframes lightDepart {
  from { opacity: 0.9; transform: translateY(0) scale(1); }
  to { opacity: 0.06; transform: translateY(-42%) scale(0.7); }
}

@keyframes streamPast {
  from { transform: translateY(0) scaleY(0.5); opacity: 0; }
  25% { opacity: 0.8; }
  to { transform: translateY(-115svh) scaleY(1.7); opacity: 0; }
}

@keyframes contentSurface {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes homeCurrent {
  from { transform: scale(1.05) translateX(-1%); }
  to { transform: scale(1.1) translateX(1.5%); }
}

@keyframes homeLight {
  from { opacity: 0.54; transform: translateX(-3%) scaleX(0.9); }
  to { opacity: 0.9; transform: translateX(4%) scaleX(1.08); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 224, 203, 0.66); }
  75%, 100% { box-shadow: 0 0 0 8px rgba(143, 224, 203, 0); }
}

@keyframes wakeBreathe {
  0%, 100% { opacity: 0.55; transform: scale(0.9, 0.86); }
  50% { opacity: 1; transform: scale(1.04, 1); }
}

@keyframes buttonBreathe {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pressureTide {
  0%, 100% { opacity: 0.4; transform: scale(0.86); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes buttonShimmer {
  0%, 18% { opacity: 0; transform: translateX(-78px) rotate(14deg); }
  38% { opacity: 0.8; }
  62%, 100% { opacity: 0; transform: translateX(82px) rotate(14deg); }
}

@keyframes bubbleFloat {
  0%, 100% { opacity: 0.48; transform: translateY(2px) scale(0.78); }
  50% { opacity: 1; transform: translateY(-5px) scale(1.08); }
}

@keyframes trayReflection {
  from { opacity: 0; transform: translateX(-90px) rotate(12deg); }
  35% { opacity: 0.75; }
  to { opacity: 0; transform: translateX(390px) rotate(12deg); }
}

/* Portal direction */

.launch {
  background: #020b12;
}

.portal-water {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.03);
  transition: transform 1s cubic-bezier(0.54, 0.02, 0.72, 0.34), filter 1s ease;
}

.portal-glow {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 50% 47%, rgba(151, 231, 250, 0.27), rgba(21, 121, 157, 0.12) 20%, transparent 46%),
    conic-gradient(from 42deg at 50% 47%, transparent, rgba(177, 235, 248, 0.12), transparent 18%, rgba(23, 123, 156, 0.14), transparent 41%, rgba(216, 249, 255, 0.09), transparent 68%);
  mix-blend-mode: screen;
  filter: blur(12px);
  animation: portalGlowTurn 19s linear infinite;
}

.portal-caustics {
  position: absolute;
  inset: -18%;
  opacity: 0.35;
  background:
    repeating-radial-gradient(ellipse at 50% 47%, transparent 0 31px, rgba(205, 246, 255, 0.1) 34px 36px, transparent 40px 65px),
    repeating-conic-gradient(from 10deg at 50% 47%, transparent 0 8deg, rgba(171, 231, 245, 0.06) 12deg, transparent 17deg 28deg);
  mix-blend-mode: screen;
  filter: blur(3px) url("#water-distortion");
  animation: portalCaustics 17s ease-in-out infinite alternate;
}

.launch-mantra {
  position: absolute;
  z-index: 4;
  top: max(31px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  margin: 0;
  color: rgba(224, 247, 252, 0.6);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 5, 9, 0.8);
}

.portal-trigger {
  position: absolute;
  z-index: 7;
  top: 49%;
  left: 50%;
  width: 290px;
  height: 330px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -48%);
  transform-origin: 50% 42%;
  transition: transform 180ms cubic-bezier(0.2, 1.5, 0.3, 1);
}

.portal-trigger__orbit {
  position: absolute;
  top: 42%;
  left: 50%;
  border: 1px solid rgba(197, 241, 251, 0.3);
  border-radius: 46% 54% 49% 51% / 55% 46% 54% 45%;
  box-shadow:
    inset 0 0 16px rgba(181, 236, 248, 0.06),
    0 0 24px rgba(59, 181, 216, 0.08);
  pointer-events: none;
}

.portal-trigger__orbit--outer {
  width: 242px;
  height: 242px;
  margin: -121px 0 0 -121px;
  animation: waterOrbit 9s ease-in-out infinite;
}

.portal-trigger__orbit--inner {
  width: 208px;
  height: 208px;
  margin: -104px 0 0 -104px;
  border-color: rgba(220, 249, 255, 0.21);
  animation: waterOrbitReverse 7s ease-in-out infinite;
}

.portal-trigger__wake {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 260px;
  height: 188px;
  margin: -94px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(134, 221, 241, 0.15), rgba(25, 130, 164, 0.04) 50%, transparent 70%);
  filter: blur(5px);
  animation: portalWake 4.8s ease-in-out infinite;
}

.portal-trigger__lens {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border: 1px solid rgba(229, 251, 255, 0.7);
  border-radius: 48% 52% 53% 47% / 52% 46% 54% 48%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.9), rgba(230, 248, 252, 0.77) 28%, rgba(107, 195, 220, 0.66) 62%, rgba(8, 71, 97, 0.78)),
    rgba(203, 239, 248, 0.75);
  box-shadow:
    inset 13px 15px 27px rgba(255, 255, 255, 0.48),
    inset -16px -18px 28px rgba(3, 54, 76, 0.46),
    0 24px 52px rgba(0, 5, 9, 0.52),
    0 0 50px rgba(91, 205, 234, 0.18);
  backdrop-filter: blur(13px) saturate(1.45);
  animation: portalLens 6.2s ease-in-out infinite alternate;
}

.portal-trigger__lens::after {
  content: "";
  position: absolute;
  inset: 8px 25px 102px 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
  filter: blur(3px);
  transform: rotate(-7deg);
}

.portal-trigger img {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 50%;
  width: 152px;
  height: 152px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.12) saturate(1.2);
  transform: translate(-50%, -50%);
  transition: opacity 250ms ease, transform 250ms ease;
}

.portal-trigger__instruction {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: rgba(238, 251, 254, 0.94);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 5, 9, 0.82);
}

.portal-trigger__arrow {
  position: absolute;
  left: calc(50% - 12px);
  bottom: -12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 248, 254, 0.32);
  border-radius: 50%;
  background: rgba(7, 53, 70, 0.3);
  font-size: 11px;
  animation: portalArrow 2.6s ease-in-out infinite;
}

.portal-trigger:active {
  transform: translate(-50%, -47%) scale(0.94, 0.91);
}

.portal-trigger:active .portal-trigger__lens {
  box-shadow:
    inset 17px 20px 32px rgba(3, 56, 78, 0.42),
    inset -7px -9px 20px rgba(255, 255, 255, 0.34),
    0 11px 26px rgba(0, 4, 8, 0.52);
}

.portal-trigger:active img {
  transform: translate(-50%, -50%) scale(0.93);
}

.launch.is-descending .portal-water {
  transform: scale(1.48) rotate(3deg);
  filter: saturate(1.5) brightness(0.6) contrast(1.15);
}

.launch.is-descending .portal-glow {
  animation: portalCollapse 920ms cubic-bezier(0.45, 0, 0.8, 0.2) forwards;
}

.launch.is-descending .portal-trigger {
  animation: portalOpen 920ms cubic-bezier(0.5, 0.02, 0.72, 0.3) forwards;
}

.launch.is-descending .portal-trigger img,
.launch.is-descending .portal-trigger__instruction,
.launch.is-descending .portal-trigger__arrow,
.launch.is-descending .launch-mantra {
  opacity: 0;
}

/* User-first welcome */

.welcome-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 2px 16px;
}

.welcome-heading__copy > p:first-child,
.welcome-dive__copy > p,
.welcome-dive__topline,
.glance-card p,
.welcome-community p {
  margin: 0;
  color: #a9deec;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.welcome-heading h1 {
  max-width: 320px;
  margin: 5px 0 0;
  color: rgba(238, 245, 244, 0.72);
  font-size: clamp(29px, 8.4vw, 38px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.welcome-heading h1 span {
  color: #f4eee3;
  font-family: var(--display);
  font-size: 1.23em;
}

.welcome-heading__note {
  margin: 10px 0 0;
  color: rgba(217, 239, 245, 0.7);
  font-size: 11px;
}

.welcome-heading__note strong {
  color: #dff8fd;
}

.welcome-dive {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid rgba(195, 238, 249, 0.25);
  border-radius: 30px 30px 34px 19px;
  background: #051820;
  box-shadow: 0 26px 48px rgba(0, 5, 8, 0.48);
}

.welcome-dive__image,
.welcome-dive__wash {
  position: absolute;
  inset: 0;
}

.welcome-dive__image {
  background: url("./assets/farnsworth-hero.png") 50% 48%/cover;
  transform: scale(1.03);
  transition: transform 800ms ease;
}

.welcome-dive:hover .welcome-dive__image,
.welcome-dive:focus .welcome-dive__image {
  transform: scale(1.075);
}

.welcome-dive__wash {
  background:
    linear-gradient(180deg, rgba(1, 12, 17, 0.18), transparent 38%, rgba(1, 8, 12, 0.92)),
    linear-gradient(90deg, rgba(1, 11, 16, 0.3), transparent 74%);
}

.welcome-dive__topline {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(235, 249, 252, 0.8);
}

.welcome-dive__countdown {
  padding: 7px 10px;
  border: 1px solid rgba(219, 246, 252, 0.26);
  border-radius: 15px;
  background: rgba(1, 22, 31, 0.58);
  color: #d9f7fc;
  backdrop-filter: blur(13px);
}

.welcome-dive__copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.welcome-dive__copy h2 {
  margin: 8px 0 16px;
  color: #f5eee1;
  font-family: var(--display);
  font-size: 29px;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.welcome-dive__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(219, 243, 248, 0.2);
  color: rgba(224, 241, 245, 0.76);
  font-size: 9px;
}

.welcome-dive__action strong {
  color: #e5f9fc;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.glance-card {
  position: relative;
  min-width: 0;
  min-height: 146px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(191, 233, 244, 0.16);
  background: rgba(4, 30, 41, 0.62);
  backdrop-filter: blur(15px);
}

.glance-card--water {
  border-radius: 26px 15px 25px 19px;
}

.glance-card--profile {
  border-radius: 15px 27px 19px 25px;
}

.glance-card::after {
  content: "";
  position: absolute;
  inset: -35% 35% 52% -18%;
  border-radius: 50%;
  background: rgba(160, 226, 242, 0.08);
  filter: blur(4px);
}

.glance-card__icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid rgba(200, 240, 249, 0.24);
  border-radius: 48% 52% 45% 55% / 55% 46% 54% 45%;
  background: rgba(21, 101, 127, 0.36);
  color: #c8eef7;
  font-family: var(--display);
  font-size: 16px;
}

.glance-card strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #f1eee6;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.glance-card > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(205, 230, 236, 0.62);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-community {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(185, 230, 242, 0.14);
  border-radius: 20px 14px 23px 17px;
  background: rgba(4, 27, 38, 0.62);
  backdrop-filter: blur(14px);
}

.welcome-community__avatars {
  display: flex;
  padding-left: 7px;
}

.welcome-community strong {
  display: block;
  margin-top: 4px;
  color: #eef5f3;
  font-size: 11px;
}

.welcome-community > span {
  color: #afe7f3;
  font-size: 18px;
}

/* Water membrane menu */

.nexus-menu {
  isolation: isolate;
  height: 126px;
  padding: 12px 10px 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.glance-card--water {
  border-color: rgba(149, 227, 242, 0.66);
  background:
    radial-gradient(circle at 78% 8%, rgba(101, 220, 239, 0.42), transparent 38%),
    linear-gradient(145deg, #0a7698, #07506c 72%, #04384e);
  box-shadow:
    0 18px 34px rgba(0, 4, 8, 0.4),
    inset 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -20px 32px rgba(0, 25, 38, 0.2);
}

.glance-card--water::before {
  content: "";
  position: absolute;
  inset: -25%;
  opacity: 0.3;
  background: repeating-radial-gradient(ellipse at 30% 20%, transparent 0 19px, rgba(219, 250, 255, 0.22) 21px 23px, transparent 26px 46px);
  filter: blur(2px);
  animation: cardCaustics 11s linear infinite;
}

.glance-card--water p,
.glance-card--water strong,
.glance-card--water > span {
  color: #f1fbfc;
}

.glance-card--water > span {
  color: rgba(224, 246, 250, 0.7);
}

.glance-card--profile {
  border-color: rgba(238, 250, 248, 0.88);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.78), transparent 43%),
    linear-gradient(145deg, #dff1ef, #b9d9db 72%, #a4c9d0);
  box-shadow:
    0 18px 34px rgba(0, 4, 8, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.92),
    inset -18px -18px 34px rgba(23, 105, 128, 0.08);
}

.nexus-menu::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px 0 0;
  border: 1px solid rgba(199, 241, 251, 0.4);
  border-radius: 44% 56% 48% 52% / 27% 31% 69% 73%;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(226, 251, 255, 0.24), transparent 37%),
    linear-gradient(180deg, rgba(67, 158, 187, 0.47), rgba(6, 61, 81, 0.72) 48%, rgba(2, 29, 41, 0.92));
  box-shadow:
    inset 0 2px rgba(255, 255, 255, 0.16),
    inset 0 -20px 34px rgba(0, 10, 17, 0.34),
    0 24px 46px rgba(0, 4, 8, 0.52);
  backdrop-filter: blur(24px) saturate(1.5);
  animation: membraneRest 7s ease-in-out infinite alternate;
}

.nexus-menu::before {
  bottom: -29px;
  height: 35px;
  border: 0;
  border-radius: 40% 60% 50% 50% / 20% 20% 80% 80%;
  background: linear-gradient(90deg, rgba(9, 66, 87, 0.92), rgba(133, 220, 239, 0.5), rgba(4, 48, 66, 0.94));
  filter: drop-shadow(0 8px 9px rgba(0, 5, 8, 0.38));
}

.nexus-item {
  z-index: 2;
  gap: 7px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(229, 247, 251, 0.76);
}

.nexus-item__icon {
  width: 55px;
  height: 55px;
  border-color: rgba(222, 249, 255, 0.42);
  border-radius: 47% 53% 50% 50% / 56% 45% 55% 44%;
  background:
    radial-gradient(circle at 34% 21%, rgba(255, 255, 255, 0.46), transparent 24%),
    radial-gradient(circle at 56% 62%, rgba(65, 171, 201, 0.58), rgba(5, 66, 90, 0.78));
  box-shadow:
    inset 5px 7px 12px rgba(224, 249, 254, 0.12),
    inset -7px -8px 13px rgba(0, 29, 43, 0.3),
    0 9px 16px rgba(0, 7, 11, 0.3);
  animation: menuDrop 5s ease-in-out infinite alternate;
}

.nexus-item:nth-of-type(2) .nexus-item__icon { animation-delay: -1.1s; }
.nexus-item:nth-of-type(3) .nexus-item__icon { animation-delay: -2.2s; }
.nexus-item:nth-of-type(4) .nexus-item__icon { animation-delay: -3.3s; }

.nexus-item > span:last-child {
  color: rgba(231, 247, 251, 0.8);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 8px rgba(0, 6, 10, 0.7);
}

.nexus-item:active,
.nexus-item.is-selected {
  background: transparent;
}

.nexus-item:active .nexus-item__icon,
.nexus-item.is-selected .nexus-item__icon {
  border-radius: 52% 48% 57% 43% / 43% 57% 46% 54%;
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.7), transparent 25%),
    radial-gradient(circle, rgba(91, 203, 228, 0.8), rgba(5, 86, 113, 0.88));
  transform: translateY(3px) scale(0.92, 0.88);
}

.menu-trigger {
  width: 94px;
  height: 94px;
  border-radius: 46% 54% 49% 51% / 53% 46% 54% 47%;
  animation: buttonWaterShape 6s ease-in-out infinite alternate;
}

.menu-trigger::before {
  border-radius: inherit;
}

.menu-is-pressed .menu-trigger {
  animation-play-state: paused;
}

@keyframes portalGlowTurn {
  from { transform: rotate(0deg) scale(0.95); opacity: 0.7; }
  50% { opacity: 1; }
  to { transform: rotate(360deg) scale(1.06); opacity: 0.7; }
}

@keyframes portalCaustics {
  from { transform: rotate(-7deg) scale(0.96); background-position: 0 0, 0 0; }
  to { transform: rotate(9deg) scale(1.13); background-position: 72px 55px, -38px 64px; }
}

@keyframes waterOrbit {
  0%, 100% { border-radius: 46% 54% 49% 51% / 55% 46% 54% 45%; transform: rotate(0deg) scale(0.96); opacity: 0.45; }
  50% { border-radius: 54% 46% 55% 45% / 47% 54% 46% 53%; transform: rotate(8deg) scale(1.04); opacity: 0.86; }
}

@keyframes waterOrbitReverse {
  0%, 100% { border-radius: 52% 48% 47% 53% / 45% 55% 48% 52%; transform: rotate(6deg) scale(1.02); }
  50% { border-radius: 47% 53% 54% 46% / 56% 44% 55% 45%; transform: rotate(-8deg) scale(0.96); }
}

@keyframes portalWake {
  0%, 100% { opacity: 0.54; transform: scale(0.88, 0.82); }
  50% { opacity: 1; transform: scale(1.06, 1); }
}

@keyframes portalLens {
  0% { border-radius: 48% 52% 53% 47% / 52% 46% 54% 48%; transform: scale(0.985, 1.015) rotate(-0.5deg); }
  50% { border-radius: 53% 47% 48% 52% / 46% 55% 45% 54%; transform: scale(1.02, 0.98) rotate(0.8deg); }
  100% { border-radius: 46% 54% 51% 49% / 55% 48% 52% 45%; transform: scale(0.99, 1.012) rotate(-0.3deg); }
}

@keyframes portalArrow {
  0%, 100% { transform: translateY(-2px); opacity: 0.55; }
  50% { transform: translateY(4px); opacity: 1; }
}

@keyframes portalCollapse {
  0% { transform: rotate(0) scale(1); opacity: 1; }
  55% { transform: rotate(70deg) scale(0.62); opacity: 1; }
  100% { transform: rotate(145deg) scale(0.05); opacity: 0; }
}

@keyframes portalOpen {
  0% { transform: translate(-50%, -48%) scale(1); opacity: 1; }
  28% { transform: translate(-50%, -48%) scale(0.86, 1.07); opacity: 1; }
  100% { transform: translate(-50%, -48%) scale(5.8); opacity: 0; }
}

@keyframes membraneRest {
  0% { border-radius: 44% 56% 48% 52% / 27% 31% 69% 73%; transform: scale(0.995, 1.01); }
  50% { border-radius: 53% 47% 55% 45% / 31% 26% 74% 69%; transform: scale(1.006, 0.99); }
  100% { border-radius: 48% 52% 43% 57% / 25% 34% 66% 75%; transform: scale(0.998, 1.006); }
}

@keyframes menuDrop {
  from { border-radius: 47% 53% 50% 50% / 56% 45% 55% 44%; transform: translateY(0) rotate(-1deg); }
  to { border-radius: 53% 47% 55% 45% / 45% 56% 44% 55%; transform: translateY(-2px) rotate(1deg); }
}

@keyframes buttonWaterShape {
  0% { border-radius: 46% 54% 49% 51% / 53% 46% 54% 47%; }
  50% { border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%; }
  100% { border-radius: 48% 52% 45% 55% / 56% 44% 52% 48%; }
}

/* Approved surface + regulator direction */

.surface-scene,
.surface-scene__image,
.surface-scene__refraction,
.surface-scene__light,
.surface-scene__current,
.surface-scene__bubbles {
  position: absolute;
  inset: 0;
}

.surface-scene {
  overflow: hidden;
  background: #01101a;
}

.surface-scene__image {
  inset: -4%;
  background:
    linear-gradient(180deg, rgba(2, 14, 22, 0.01), rgba(1, 11, 18, 0.12) 50%, rgba(1, 7, 12, 0.58)),
    url("./assets/ocean-surface-reference.jpg") center top/cover;
  filter: saturate(0.9) contrast(1.05);
  animation: surfaceDrift 14s ease-in-out infinite alternate;
  transition: transform 1s cubic-bezier(0.48, 0.02, 0.72, 0.3), filter 1s ease;
}

.surface-scene__refraction {
  inset: -7%;
  opacity: 0.48;
  background:
    linear-gradient(180deg, rgba(223, 250, 255, 0.08), transparent 64%),
    url("./assets/ocean-surface-reference.jpg") center top/cover;
  filter: url("#surface-refraction") brightness(1.15) saturate(0.82);
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, #000 0 56%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 56%, transparent 88%);
  animation: surfaceRefraction 8s ease-in-out infinite alternate;
  transition: transform 1s cubic-bezier(0.48, 0.02, 0.72, 0.3), opacity 800ms ease;
}

.surface-scene__light {
  inset: -14% -25% 35%;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 52% 0%, rgba(255, 252, 231, 0.42), rgba(152, 220, 238, 0.1) 33%, transparent 63%),
    conic-gradient(from 172deg at 50% 0%, transparent, rgba(222, 250, 255, 0.13), transparent 18%, rgba(183, 231, 242, 0.11), transparent 39%);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: surfaceLight 8s ease-in-out infinite alternate;
}

.surface-scene__current {
  inset: -10%;
  opacity: 0.22;
  background:
    repeating-radial-gradient(ellipse at 50% 0%, transparent 0 36px, rgba(220, 250, 255, 0.12) 39px 41px, transparent 45px 76px);
  mix-blend-mode: screen;
  filter: blur(3px) url("#water-distortion");
  animation: surfaceCurrent 12s ease-in-out infinite alternate;
}

.surface-scene::after {
  content: "";
  position: absolute;
  inset: -18% -36% 34%;
  opacity: 0.54;
  background:
    conic-gradient(from 174deg at 50% 0%, transparent 0 7deg, rgba(223, 249, 255, 0.18) 11deg, transparent 19deg 32deg, rgba(198, 239, 250, 0.15) 38deg, transparent 49deg 64deg, rgba(242, 253, 255, 0.12) 69deg, transparent 79deg);
  filter: blur(10px);
  mix-blend-mode: screen;
  transform-origin: 50% 0;
  animation: surfaceRays 6.5s ease-in-out infinite alternate;
}

.surface-scene__bubbles {
  z-index: 3;
  overflow: hidden;
}

.surface-scene__bubbles i {
  position: absolute;
  bottom: -18px;
  width: var(--ambient-size, 5px);
  height: var(--ambient-size, 5px);
  border: 1px solid rgba(230, 250, 255, 0.68);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.72), transparent 28%);
  box-shadow: 0 0 7px rgba(163, 226, 241, 0.14);
  animation: ambientBubble var(--ambient-time, 9s) ease-in infinite;
}

.surface-scene__bubbles i:nth-child(1) { left: 9%; --ambient-size: 4px; --ambient-time: 9.4s; animation-delay: -7s; }
.surface-scene__bubbles i:nth-child(2) { left: 19%; --ambient-size: 8px; --ambient-time: 12s; animation-delay: -2s; }
.surface-scene__bubbles i:nth-child(3) { left: 37%; --ambient-size: 3px; --ambient-time: 8.5s; animation-delay: -5s; }
.surface-scene__bubbles i:nth-child(4) { left: 64%; --ambient-size: 6px; --ambient-time: 10.5s; animation-delay: -8s; }
.surface-scene__bubbles i:nth-child(5) { left: 77%; --ambient-size: 3px; --ambient-time: 8.8s; animation-delay: -3.4s; }
.surface-scene__bubbles i:nth-child(6) { left: 87%; --ambient-size: 9px; --ambient-time: 13s; animation-delay: -9s; }
.surface-scene__bubbles i:nth-child(7) { left: 51%; --ambient-size: 5px; --ambient-time: 11s; animation-delay: -1s; }

.launch-mantra {
  top: max(37px, env(safe-area-inset-top));
  color: rgba(240, 251, 253, 0.76);
}

.portal-trigger {
  top: 56%;
  width: 250px;
  height: 282px;
  transform: translate(-50%, -50%);
  transform-origin: center 43%;
}

.portal-trigger__housing {
  position: absolute;
  top: 43%;
  left: 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border: 2px solid rgba(213, 229, 234, 0.86);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 3deg, #07151d 0 5deg, #142a34 5deg 9deg, #06131b 9deg 14deg),
    #071821;
  box-shadow:
    inset 0 0 0 8px #06151d,
    inset 0 0 0 10px rgba(221, 240, 245, 0.32),
    0 24px 55px rgba(0, 5, 9, 0.58),
    0 0 35px rgba(104, 205, 229, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-trigger__housing::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fcfc, #c6dce3 60%, #6d9baa);
  box-shadow:
    inset 4px 5px 10px rgba(255, 255, 255, 0.9),
    inset -7px -9px 14px rgba(27, 77, 96, 0.3);
}

.portal-trigger__lens {
  top: 43%;
  width: 148px;
  height: 148px;
  margin: -74px 0 0 -74px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(211, 235, 241, 0.74));
  box-shadow:
    inset 8px 10px 18px rgba(255, 255, 255, 0.52),
    inset -10px -12px 18px rgba(10, 74, 97, 0.18);
  animation: purgeIdle 4.8s ease-in-out infinite;
}

.portal-trigger img {
  top: 43%;
  width: 129px;
  height: 129px;
  filter: contrast(1.08) saturate(1.16);
}

.portal-trigger__instruction {
  bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.portal-trigger:active {
  transform: translate(-50%, -49%) scale(0.97);
}

.portal-trigger:active .portal-trigger__housing {
  transform: scale(0.95, 0.91);
  box-shadow:
    inset 0 0 0 8px #06151d,
    inset 0 0 0 10px rgba(221, 240, 245, 0.25),
    0 10px 24px rgba(0, 5, 9, 0.55);
}

.launch.is-descending .surface-scene__image {
  transform: translateY(-22%) scale(1.34);
  filter: saturate(1.05) contrast(1.12) brightness(0.42);
}

.launch.is-descending .surface-scene__refraction {
  transform: translateY(-26%) scale(1.42);
  opacity: 0.18;
}

.launch.is-descending .surface-scene__light {
  animation: lightDepart 920ms ease-in forwards;
}

.launch.is-descending .portal-trigger {
  animation: regulatorDescend 920ms cubic-bezier(0.5, 0.02, 0.72, 0.3) forwards;
}

.bubble-field {
  position: absolute;
  z-index: 20;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.bubble-field i {
  position: absolute;
  left: var(--bubble-start);
  bottom: 25%;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border: 1px solid rgba(233, 252, 255, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.85), transparent 19%),
    rgba(184, 233, 245, 0.07);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.42),
    0 0 8px rgba(131, 220, 241, 0.2);
  animation: bubbleRelease var(--bubble-duration) cubic-bezier(0.19, 0.72, 0.3, 1) var(--bubble-delay) forwards;
}

.bubble-field--menu {
  inset: -520px -120px -12px;
}

.bubble-field--menu i {
  bottom: 10px;
}

.bubble-field--launch i {
  bottom: 40%;
}

/* Cropped brand symbol: dolphin plus wave, no wordmark */

.brand-symbol {
  position: relative;
  width: 74px;
  height: 44px;
  display: block;
}

.brand-symbol__crop {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 5px;
  width: 66px;
  height: 31px;
  overflow: hidden;
  border-radius: 13px 16px 12px 15px;
  background: #f7f9f8;
}

.brand-symbol__crop img {
  position: absolute;
  top: -1px;
  left: -5px;
  width: 76px;
  height: 76px;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-symbol__wave {
  position: absolute;
  z-index: 1;
  left: 7px;
  bottom: 1px;
  width: 58px;
  height: 31px;
  border-bottom: 4px solid #0b35ef;
  border-left: 4px solid #0b35ef;
  border-radius: 0 0 50% 55%;
  transform: rotate(-7deg);
}

.brand-symbol__wave::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -9px;
  width: 48px;
  height: 26px;
  border-bottom: 3px solid #06131b;
  border-radius: 50%;
  transform: rotate(8deg);
}

.brand-mini {
  width: 76px;
  height: 48px;
  padding: 1px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mini .brand-symbol {
  filter: drop-shadow(0 5px 9px rgba(0, 5, 8, 0.34));
}

.conditions {
  height: 34px;
  padding: 0 11px;
  border-color: rgba(215, 244, 252, 0.16);
  background: rgba(2, 24, 34, 0.64);
  color: rgba(229, 245, 249, 0.82);
  font-size: 7px;
}

/* Large photography with a white information layer */

.welcome-dive {
  height: 340px;
  border-color: rgba(228, 245, 248, 0.38);
  border-radius: 31px;
  overflow: hidden;
  background: #e9f2f4;
  box-shadow: 0 27px 50px rgba(0, 4, 8, 0.54);
}

.welcome-dive__image {
  bottom: 102px;
  background-position: center 45%;
}

.welcome-dive__wash {
  bottom: 100px;
  background: linear-gradient(180deg, rgba(1, 10, 14, 0.11), transparent 52%, rgba(1, 8, 12, 0.64));
}

.welcome-dive__copy {
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 136px;
  padding: 17px 16px 13px;
  border-radius: 24px;
  background: #f7f8f5;
  box-shadow:
    0 -12px 30px rgba(0, 12, 18, 0.22),
    inset 0 1px #fff;
}

.welcome-dive__copy > p {
  color: #167396;
}

.welcome-dive__copy h2 {
  margin: 6px 0 12px;
  color: #071a24;
  font-size: 25px;
  line-height: 0.96;
}

.welcome-dive__action {
  padding-top: 9px;
  border-top-color: rgba(6, 39, 52, 0.12);
  color: #5d737c;
}

.welcome-dive__action strong {
  color: #07597a;
}

.welcome-glance {
  gap: 11px;
  margin-top: 14px;
}

.glance-card {
  min-height: 164px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: #f4f6f4;
  box-shadow:
    0 18px 34px rgba(0, 4, 8, 0.35),
    inset 0 1px #fff;
  backdrop-filter: none;
}

.glance-card::after {
  display: none;
}

.glance-card p {
  position: relative;
  z-index: 3;
  color: #2780a1;
}

.glance-card strong {
  position: relative;
  z-index: 3;
  color: #071b25;
  font-size: 17px;
}

.glance-card > span {
  position: relative;
  z-index: 3;
  color: #6a7f87;
}

.water-meter,
.level-orbit {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-bottom: 17px;
  overflow: hidden;
  border: 1px solid rgba(8, 81, 108, 0.2);
  border-radius: 50%;
  background: #e5eff1;
  box-shadow: inset 0 2px 8px rgba(0, 35, 51, 0.12);
}

.water-meter__fill {
  position: absolute;
  left: -18px;
  bottom: -3px;
  width: 84px;
  height: 31px;
  border-radius: 44% 52% 0 0;
  background: linear-gradient(180deg, #5bd0eb, #087da6);
  animation: waterMeter 4.6s ease-in-out infinite alternate;
}

.water-meter__fill::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 84px;
  height: 16px;
  border-radius: 50%;
  background: rgba(174, 236, 248, 0.72);
  animation: meterWave 3.2s linear infinite;
}

.water-meter i {
  position: absolute;
  z-index: 3;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(245, 254, 255, 0.86);
  border-radius: 50%;
  animation: meterBubble 2.6s ease-in infinite;
}

.water-meter i:nth-child(2) { left: 14px; animation-delay: -0.4s; }
.water-meter i:nth-child(3) { left: 27px; width: 6px; height: 6px; animation-delay: -1.3s; }
.water-meter i:nth-child(4) { left: 36px; width: 3px; height: 3px; animation-delay: -2s; }

.level-orbit {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  border-color: rgba(7, 78, 104, 0.18);
}

.level-orbit::before,
.level-orbit::after,
.level-orbit span {
  content: "";
  position: absolute;
  border: 1px solid rgba(17, 126, 162, 0.35);
  border-radius: 50%;
}

.level-orbit::before { inset: 5px; animation: levelPulse 3.4s ease-out infinite; }
.level-orbit::after { inset: 12px; border-color: rgba(17, 126, 162, 0.6); }
.level-orbit span { inset: 18px; background: #168ab1; border: 0; box-shadow: 0 0 13px rgba(22, 138, 177, 0.46); }

.level-orbit i {
  position: absolute;
  top: 4px;
  left: 22px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0b7fa8;
  transform-origin: 2px 20px;
  animation: levelTravel 4.2s linear infinite;
}

.welcome-community {
  border-color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, #dce9e9, #b8d1d6);
  box-shadow: 0 17px 32px rgba(0, 4, 8, 0.3);
  backdrop-filter: none;
}

.welcome-community p {
  color: #2780a1;
}

.welcome-community strong {
  color: #102631;
}

.welcome-community > span {
  color: #0a759b;
}

/* Second-stage regulator navigation */

.nexus-menu {
  left: 11px;
  right: 11px;
  bottom: 132px;
  height: 124px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 16px 14px 21px;
  filter: drop-shadow(0 25px 25px rgba(0, 5, 9, 0.46));
}

.nexus-menu::after {
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 29px 29px 40px 40px;
  clip-path: polygon(4% 0, 96% 0, 100% 28%, 96% 75%, 78% 91%, 61% 100%, 39% 100%, 22% 91%, 4% 75%, 0 28%);
  background:
    linear-gradient(180deg, #ffffff, #dce7e9 55%, #a9bec5),
    #eef4f4;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.94),
    inset 0 -15px 22px rgba(20, 63, 78, 0.17),
    0 20px 40px rgba(0, 4, 8, 0.52);
  backdrop-filter: none;
  animation: none;
}

.nexus-menu::before {
  bottom: -33px;
  width: 44px;
  height: 39px;
  margin-left: -22px;
  border: 2px solid rgba(220, 235, 238, 0.74);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, #172a32, #526d77 50%, #15282f);
  filter: none;
}

.regulator-bumper {
  position: absolute;
  z-index: 2;
  top: 25px;
  width: 15px;
  height: 64px;
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, #07161e 0 5px, #1a3039 5px 8px);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.regulator-bumper--left { left: 3px; }
.regulator-bumper--right { right: 3px; }

.nexus-menu__reflection {
  z-index: 4;
  height: 170px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.nexus-item {
  z-index: 3;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(162, 192, 202, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #102b38, #061923),
    #0a222d;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    inset 0 -8px 12px rgba(0, 5, 9, 0.24),
    0 5px 8px rgba(7, 31, 40, 0.18);
}

.nexus-item__icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 213, 232, 0.34);
  border-radius: 14px;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #1a5268, #082936);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 4px 8px rgba(0, 6, 10, 0.3);
  color: #d7f5fb;
  animation: regulatorControl 4.6s ease-in-out infinite alternate;
}

.nexus-item:nth-of-type(2) .nexus-item__icon { animation-delay: -1s; }
.nexus-item:nth-of-type(3) .nexus-item__icon { animation-delay: -2s; }
.nexus-item:nth-of-type(4) .nexus-item__icon { animation-delay: -3s; }

.nexus-item > span:last-child {
  color: rgba(231, 245, 248, 0.84);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.nexus-item:active,
.nexus-item.is-selected {
  background: #0a4054;
}

.nexus-item:active .nexus-item__icon,
.nexus-item.is-selected .nexus-item__icon {
  border-radius: 14px;
  background: linear-gradient(145deg, #40b7d7, #0a6f96);
  transform: translateY(2px) scale(0.94);
}

.menu-dock {
  bottom: max(17px, env(safe-area-inset-bottom));
  width: 126px;
  height: 112px;
}

.exhaust-port {
  position: absolute;
  z-index: -1;
  bottom: 19px;
  width: 70px;
  height: 30px;
  border: 2px solid #b9cbd0;
  background: linear-gradient(180deg, #203640, #07171f);
  box-shadow: 0 10px 18px rgba(0, 5, 8, 0.4);
}

.exhaust-port--left {
  right: 62px;
  border-radius: 22px 5px 10px 25px;
  transform: rotate(-7deg);
}

.exhaust-port--right {
  left: 62px;
  border-radius: 5px 22px 25px 10px;
  transform: rotate(7deg);
}

.menu-trigger {
  width: 102px;
  height: 102px;
  overflow: visible;
  border: 2px solid #e7eff0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 1deg, #06141b 0 5deg, #19313a 5deg 9deg, #07161d 9deg 14deg),
    #071820;
  box-shadow:
    inset 0 0 0 8px #081820,
    inset 0 0 0 10px rgba(229, 242, 245, 0.26),
    0 20px 35px rgba(0, 4, 7, 0.58);
  animation: none;
}

.menu-trigger::before {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #d5e3e6 62%, #8eabb5);
  box-shadow:
    inset 5px 7px 12px rgba(255, 255, 255, 0.88),
    inset -7px -9px 13px rgba(14, 62, 78, 0.25);
}

.menu-trigger__ribs {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: repeating-conic-gradient(transparent 0 6deg, rgba(179, 211, 220, 0.13) 6deg 8deg, transparent 8deg 14deg);
}

.menu-trigger__pressure {
  z-index: 1;
  inset: 17px;
  border: 1px solid rgba(22, 86, 108, 0.14);
  background: radial-gradient(circle at 40% 28%, rgba(255, 255, 255, 0.8), rgba(218, 234, 238, 0.62) 54%, rgba(90, 139, 156, 0.34));
  animation: purgeIdle 4.6s ease-in-out infinite;
}

.menu-trigger__highlight {
  z-index: 4;
  top: 17px;
  left: 30px;
  width: 36px;
  height: 12px;
  opacity: 0.52;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  filter: blur(3px);
}

.brand-symbol--purge {
  z-index: 3;
  width: 58px;
  height: 39px;
  transform: translateY(1px) scale(0.82);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.2, 1.4, 0.3, 1);
}

.brand-symbol--purge .brand-symbol__crop {
  left: -3px;
}

.brand-symbol--purge .brand-symbol__wave {
  left: -1px;
  bottom: -2px;
}

.menu-is-pressed .menu-trigger {
  border-radius: 50%;
  transform: translateY(6px) scale(0.92, 0.87);
  box-shadow:
    inset 0 0 0 8px #06141b,
    inset 0 0 0 10px rgba(229, 242, 245, 0.18),
    0 8px 16px rgba(0, 4, 7, 0.55);
}

.menu-is-pressed .brand-symbol--purge {
  transform: translateY(3px) scale(0.75, 0.7);
}

.menu-is-open .menu-trigger {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 8px #081820,
    inset 0 0 0 10px rgba(229, 242, 245, 0.26),
    0 18px 35px rgba(0, 4, 7, 0.6),
    0 0 28px rgba(87, 191, 219, 0.2);
}

/* Trips: photography first, information second */

.trips,
.calendar,
.community,
.crew-chat,
.profile,
.trip-detail {
  background: #03121a;
  transform: translateX(24px);
  transition:
    opacity 440ms ease,
    transform 620ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.trips.is-active,
.calendar.is-active,
.community.is-active,
.crew-chat.is-active,
.profile.is-active,
.trip-detail.is-active {
  transform: translateX(0);
}

.trips-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(47, 157, 192, 0.2), transparent 24%),
    linear-gradient(180deg, #0a3445 0, #03151e 35%, #010b10 100%);
}

.trips-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.journey-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 17px 8px;
  background: linear-gradient(180deg, rgba(2, 15, 22, 0.94), rgba(2, 15, 22, 0));
}

.journey-header > p {
  margin: 0;
  color: rgba(231, 247, 250, 0.68);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-align: center;
}

.journey-back {
  position: relative;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 247, 251, 0.28);
  border-radius: 15px;
  background: rgba(3, 26, 36, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 6, 10, 0.22);
  backdrop-filter: blur(13px);
  color: #f5fcfd;
  font-size: 17px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.journey-back:active {
  transform: translateX(-2px) scale(0.94);
  background: rgba(14, 101, 130, 0.68);
}

.journey-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #dcecf0);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.95),
    0 9px 20px rgba(0, 7, 11, 0.3),
    0 0 18px rgba(93, 201, 226, 0.12);
}

.journey-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.15);
}

.trips-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 101px 15px max(48px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trips-scroll::-webkit-scrollbar,
.trip-detail__scroll::-webkit-scrollbar {
  display: none;
}

.trips-intro {
  padding: 5px 7px 26px;
}

.trips-intro p,
.trip-section-heading p {
  margin: 0 0 9px;
  color: #6fc8df;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.trips-intro h1 {
  margin: 0 0 13px;
  color: #f7fbfa;
  font-family: var(--display);
  font-size: clamp(35px, 10.5vw, 45px);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.trips-intro > span {
  color: rgba(222, 240, 244, 0.6);
  font-size: 11px;
  font-weight: 650;
}

.trip-card {
  position: relative;
  width: 100%;
  height: 278px;
  display: block;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 250, 251, 0.34);
  border-radius: 30px;
  background: #0a2d3a;
  box-shadow: 0 24px 42px rgba(0, 5, 8, 0.44);
  text-align: left;
  cursor: pointer;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.trips.is-active .trip-card {
  animation: tripReveal 620ms cubic-bezier(0.16, 0.82, 0.24, 1) forwards;
}

.trips.is-active .trip-card:nth-of-type(2) { animation-delay: 70ms; }
.trips.is-active .trip-card:nth-of-type(3) { animation-delay: 130ms; }
.trips.is-active .trip-card:nth-of-type(4) { animation-delay: 190ms; }

.trip-card--featured {
  height: 406px;
}

.trip-card img,
.trip-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trip-card img {
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.16, 0.82, 0.24, 1), filter 220ms ease;
}

.trip-card__shade {
  background:
    linear-gradient(180deg, rgba(0, 8, 12, 0.06), transparent 37%, rgba(0, 8, 12, 0.78) 81%, rgba(0, 7, 11, 0.96)),
    linear-gradient(90deg, rgba(0, 9, 14, 0.28), transparent 62%);
}

.trip-card__date {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  min-width: 62px;
  height: 61px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: rgba(248, 251, 250, 0.92);
  box-shadow: 0 10px 24px rgba(0, 8, 12, 0.24);
  color: #0a3444;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.14em;
  backdrop-filter: blur(10px);
}

.trip-card__date strong {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.trip-card__tag {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(237, 250, 252, 0.32);
  border-radius: 20px;
  background: rgba(2, 22, 31, 0.45);
  color: rgba(243, 252, 253, 0.9);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.11em;
  backdrop-filter: blur(9px);
}

.trip-card__copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 17px;
  display: block;
}

.trip-card__copy > small {
  display: block;
  margin-bottom: 5px;
  color: #91e1f3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.trip-card__copy > strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 27px;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 18px rgba(0, 6, 10, 0.48);
}

.trip-card--featured .trip-card__copy > strong {
  font-size: 34px;
}

.trip-card__copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(231, 248, 251, 0.23);
}

.trip-card__copy b,
.trip-card__copy i {
  color: rgba(240, 250, 251, 0.9);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.trip-card__copy i {
  color: #a6e8f7;
}

.trip-card:active {
  transform: scale(0.982);
  box-shadow: 0 13px 25px rgba(0, 5, 8, 0.38);
}

.trip-card:active img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.trip-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7px 8px;
}

.trip-section-heading p {
  margin: 0;
}

.trip-section-heading span {
  color: rgba(225, 241, 245, 0.48);
  font-size: 9px;
  font-weight: 800;
}

/* Calendar: a living ninety-day expedition chart */

.calendar {
  background: #021019;
}

.calendar-atmosphere,
.chart-glow,
.chart-contour,
.chart-grain {
  position: absolute;
  inset: 0;
}

.calendar-atmosphere {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 15, 22, 0.18), rgba(2, 10, 15, 0.72) 58%, rgba(1, 7, 11, 0.94)),
    url("./assets/launch-kelp.png") center/cover,
    #031018;
  filter: saturate(0.82) contrast(1.08);
}

.calendar-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 45% 0, rgba(166, 222, 237, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(1, 16, 23, 0.04), rgba(1, 10, 15, 0.52) 52%, rgba(1, 7, 10, 0.82));
}

.chart-glow {
  z-index: 2;
  inset: -20% -60% 56%;
  opacity: 0.3;
  background: conic-gradient(from 182deg at 50% 0, transparent 0 14deg, rgba(188, 232, 241, 0.13) 21deg, transparent 31deg 55deg, rgba(132, 204, 220, 0.1) 63deg, transparent 76deg);
  filter: blur(14px);
  transform-origin: top center;
  animation: chartLight 9s ease-in-out infinite alternate;
}

.chart-contour {
  z-index: 2;
  inset: auto;
  opacity: 0.34;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(118, 206, 226, 0.1);
  border-radius: 43% 57% 53% 47% / 48% 39% 61% 52%;
  box-shadow:
    0 0 0 24px rgba(98, 195, 218, 0.035),
    0 0 0 49px rgba(98, 195, 218, 0.04),
    0 0 0 81px rgba(98, 195, 218, 0.028),
    0 0 0 120px rgba(98, 195, 218, 0.024);
}

.chart-contour--one {
  top: 12%;
  right: -250px;
  animation: contourDrift 20s ease-in-out infinite alternate;
}

.chart-contour--two {
  top: 43%;
  left: -290px;
  width: 510px;
  height: 390px;
  transform: rotate(32deg);
  animation: contourDriftReverse 25s ease-in-out infinite alternate;
}

.chart-contour--three {
  right: -310px;
  bottom: -120px;
  width: 570px;
  height: 510px;
  transform: rotate(-18deg);
  animation: contourDrift 29s ease-in-out infinite alternate-reverse;
}

.chart-grain {
  z-index: 3;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.calendar-header {
  background: linear-gradient(180deg, rgba(2, 18, 26, 0.98), rgba(2, 18, 26, 0));
}

.calendar-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 102px 14px max(52px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.calendar-scroll::-webkit-scrollbar {
  display: none;
}

.calendar-intro {
  position: relative;
  min-height: 278px;
  padding: 12px 8px 30px;
}

.calendar-intro__range {
  position: absolute;
  top: 12px;
  right: 6px;
  width: 82px;
  height: 82px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(198, 235, 244, 0.2);
  border-radius: 50%;
  background: rgba(4, 39, 52, 0.48);
  box-shadow: inset 0 0 26px rgba(68, 168, 194, 0.1), 0 14px 26px rgba(0, 6, 10, 0.22);
  backdrop-filter: blur(10px);
}

.calendar-intro__range span {
  color: rgba(226, 246, 250, 0.78);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
}

.calendar-intro__range i {
  position: relative;
  width: 47px;
  height: 1px;
  overflow: visible;
  background: rgba(113, 206, 229, 0.42);
}

.calendar-intro__range i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83dff2;
  box-shadow: 0 0 13px rgba(103, 217, 240, 0.65);
  animation: rangeTravel 3.8s ease-in-out infinite alternate;
}

.calendar-intro > p {
  margin: 7px 0 12px;
  color: #72d0e5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.calendar-intro h1 {
  max-width: 315px;
  margin: 0;
  color: #f5fbfa;
  font-family: var(--display);
  font-size: clamp(38px, 11vw, 48px);
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.calendar-intro__status {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 227, 238, 0.14);
}

.calendar-intro__status span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(221, 240, 244, 0.58);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.calendar-intro__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fc9df;
  box-shadow: 0 0 0 5px rgba(95, 201, 223, 0.08), 0 0 13px rgba(95, 201, 223, 0.46);
  animation: livePulse 2.6s ease-in-out infinite;
}

.expedition-route {
  position: relative;
  min-height: 1410px;
  padding: 11px 0 90px;
}

.route-line {
  position: absolute;
  z-index: 0;
  top: 14px;
  bottom: 84px;
  left: 31px;
  width: 2px;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0.42;
  background: linear-gradient(180deg, rgba(151, 220, 233, 0.42), rgba(86, 151, 166, 0.18) 75%, rgba(130, 218, 235, 0.04));
  box-shadow: none;
}

.route-line::after {
  display: none;
}

.route-boat {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 8px;
  width: 46px;
  height: 46px;
  transform: translate3d(var(--boat-sway, 0), var(--boat-y, 0), 0);
  transition: transform 170ms cubic-bezier(0.2, 0.76, 0.3, 1);
  filter: drop-shadow(0 10px 14px rgba(0, 8, 12, 0.46));
  pointer-events: none;
}

.route-boat::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(113, 214, 235, 0.24);
  border-radius: 50%;
  background: rgba(5, 57, 74, 0.72);
  box-shadow: inset 0 0 16px rgba(120, 221, 241, 0.12), 0 0 0 5px rgba(50, 143, 166, 0.05);
  backdrop-filter: blur(7px);
}

.route-boat svg {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
}

.route-boat__wake {
  position: absolute;
  z-index: 0;
  top: -26px;
  left: 16px;
  width: 15px;
  height: 37px;
  border-left: 1px solid rgba(121, 220, 239, 0.36);
  border-right: 1px solid rgba(121, 220, 239, 0.24);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: boatWake 1.9s ease-in-out infinite;
}

.route-month {
  position: relative;
  z-index: 2;
  margin-bottom: 36px;
}

.route-month__heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 3px 16px 65px;
}

.route-month__heading > span {
  color: rgba(151, 216, 230, 0.35);
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.05em;
}

.route-month__heading p,
.route-month__heading small {
  margin: 0;
  display: block;
}

.route-month__heading p {
  color: #eef9fa;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.025em;
}

.route-month__heading small {
  margin-top: 3px;
  color: #64bdd2;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.calendar-event {
  position: relative;
  width: calc(100% - 65px);
  min-height: 132px;
  display: block;
  margin: 0 0 13px 65px;
  padding: 17px 78px 16px 69px;
  overflow: visible;
  border: 1px solid rgba(239, 251, 252, 0.84);
  border-radius: 25px;
  background:
    radial-gradient(circle at 66% 0, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, #ddecf0, #bdd6dc);
  box-shadow: 0 20px 36px rgba(0, 5, 8, 0.34), inset 0 1px #fff;
  color: #092b38;
  text-align: left;
  cursor: pointer;
  transform: translateY(13px);
  opacity: 0;
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.calendar.is-active .calendar-event {
  animation: calendarEventRise 580ms cubic-bezier(0.16, 0.82, 0.24, 1) forwards;
}

.calendar.is-active .calendar-event:nth-of-type(2) { animation-delay: 70ms; }

.calendar-event--warm {
  background:
    radial-gradient(circle at 72% 0, rgba(255, 248, 214, 0.74), transparent 40%),
    linear-gradient(145deg, #e6eee7, #c8d9c8 62%, #abbfae);
}

.calendar-event--coral {
  background:
    radial-gradient(circle at 70% 0, rgba(255, 255, 255, 0.68), transparent 42%),
    linear-gradient(145deg, #e7e4e5, #d3c6d1 68%, #b5a4b4);
}

.calendar-event--kelp {
  background:
    radial-gradient(circle at 68% 0, rgba(243, 250, 231, 0.68), transparent 42%),
    linear-gradient(145deg, #e3e9dd, #c1d0b9 68%, #9db09a);
}

.route-buoy {
  position: absolute;
  top: 43px;
  left: -51px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(158, 227, 240, 0.38);
  border-radius: 50%;
  background: #073447;
  box-shadow: 0 0 0 6px rgba(85, 181, 203, 0.08), 0 8px 18px rgba(0, 7, 11, 0.38);
}

.route-buoy i {
  width: 9px;
  height: 9px;
  border: 2px solid #d7f8fc;
  border-radius: 50%;
  background: #3cb6d2;
  box-shadow: 0 0 11px rgba(75, 196, 220, 0.5);
}

.calendar-event.is-near .route-buoy {
  border-color: rgba(208, 248, 255, 0.8);
  box-shadow: 0 0 0 6px rgba(85, 181, 203, 0.13), 0 0 0 13px rgba(85, 181, 203, 0.05), 0 8px 18px rgba(0, 7, 11, 0.38);
  animation: buoySignal 1.9s ease-in-out infinite;
}

.calendar-event__date {
  position: absolute;
  top: 17px;
  left: 14px;
  width: 48px;
  height: 52px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(8, 74, 98, 0.13);
  border-radius: 16px;
  background: rgba(248, 251, 249, 0.78);
  box-shadow: inset 0 1px #fff;
  text-align: center;
}

.calendar-event__date strong,
.calendar-event__date small {
  display: block;
}

.calendar-event__date strong {
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.calendar-event__date small {
  margin-top: 4px;
  color: #27758e;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.calendar-event__copy {
  position: relative;
  z-index: 3;
  display: block;
  min-height: 92px;
}

.calendar-event__copy > small,
.calendar-event__copy > strong,
.calendar-event__copy > span {
  display: block;
}

.calendar-event__copy > small {
  margin-bottom: 8px;
  color: #2b7a93;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.calendar-event__copy > strong {
  max-width: 160px;
  color: #092a37;
  font-family: var(--display);
  font-size: 16px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.calendar-event__copy > span {
  margin-top: 11px;
  color: #607b84;
  font-size: 8px;
  font-weight: 700;
}

.calendar-event > img {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: 72px;
  height: calc(100% - 16px);
  border-radius: 19px;
  object-fit: cover;
  box-shadow: -10px 0 22px rgba(5, 40, 52, 0.12);
}

.calendar-event__arrow {
  position: absolute;
  z-index: 3;
  right: 17px;
  bottom: 16px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 251, 252, 0.46);
  border-radius: 50%;
  background: rgba(2, 30, 40, 0.67);
  color: #e5f8fa;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.calendar-event:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 10px 22px rgba(0, 5, 8, 0.34), inset 0 1px #fff;
  filter: brightness(1.04);
}

.route-depth {
  position: relative;
  z-index: 2;
  height: 53px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -13px 5px 20px 64px;
}

.route-depth span {
  color: rgba(128, 196, 211, 0.35);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.route-depth i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(109, 186, 203, 0.18), transparent);
}

.route-finish {
  position: relative;
  z-index: 2;
  min-height: 140px;
  margin: 18px 5px 0 65px;
  padding: 26px 20px;
  border: 1px dashed rgba(129, 210, 227, 0.2);
  border-radius: 25px;
  background: rgba(5, 45, 59, 0.26);
}

.route-finish > span {
  position: absolute;
  top: 23px;
  right: 19px;
  color: rgba(114, 213, 232, 0.45);
  font-size: 24px;
  animation: finishSonar 3s ease-out infinite;
}

.route-finish p,
.route-finish small {
  display: block;
  margin: 0;
}

.route-finish p {
  color: rgba(227, 246, 249, 0.76);
  font-family: var(--display);
  font-size: 15px;
}

.route-finish small {
  max-width: 190px;
  margin-top: 9px;
  color: rgba(195, 225, 232, 0.42);
  font-size: 8px;
  font-weight: 650;
  line-height: 1.4;
}

/* Community: official briefings, crews and dive buddies */

.community,
.crew-chat {
  background: #031018;
}

.community-atmosphere,
.community-atmosphere__kelp,
.community-atmosphere__light,
.chat-atmosphere,
.chat-atmosphere__kelp,
.chat-atmosphere__light {
  position: absolute;
  inset: 0;
}

.community-atmosphere,
.chat-atmosphere {
  overflow: hidden;
  background: #031018;
}

.community-atmosphere__kelp,
.chat-atmosphere__kelp {
  inset: -4%;
  background:
    linear-gradient(180deg, rgba(2, 15, 22, 0.1), rgba(2, 9, 14, 0.78) 58%, rgba(1, 7, 10, 0.96)),
    url("./assets/launch-kelp.png") center/cover;
  filter: saturate(0.82) contrast(1.08);
  animation: homeCurrent 26s ease-in-out infinite alternate;
}

.community-atmosphere__light,
.chat-atmosphere__light {
  inset: -18% -34% 58%;
  opacity: 0.38;
  background: conic-gradient(from 180deg at 50% 0, transparent 0 12deg, rgba(184, 232, 242, 0.16) 20deg, transparent 31deg 56deg, rgba(111, 202, 223, 0.13) 64deg, transparent 75deg);
  filter: blur(12px);
  mix-blend-mode: screen;
  transform-origin: top center;
  animation: chartLight 10s ease-in-out infinite alternate;
}

.community-header {
  background: linear-gradient(180deg, rgba(2, 17, 24, 0.98), rgba(2, 17, 24, 0));
}

.community-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 102px 14px max(60px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.community-scroll::-webkit-scrollbar,
.chat-scroll::-webkit-scrollbar {
  display: none;
}

.community-intro {
  position: relative;
  min-height: 215px;
  padding: 10px 8px 30px;
}

.community-intro > p {
  margin: 4px 0 12px;
  color: #6fcce1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.community-intro h1 {
  max-width: 350px;
  margin: 0;
  color: #f6fbfa;
  font-family: var(--display);
  font-size: clamp(36px, 10.5vw, 46px);
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.community-intro__pulse {
  position: absolute;
  right: 7px;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(215, 241, 247, 0.14);
  border-radius: 18px;
  background: rgba(3, 36, 48, 0.52);
  backdrop-filter: blur(10px);
}

.community-intro__pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54c8df;
  box-shadow: 0 0 0 5px rgba(84, 200, 223, 0.08), 0 0 12px rgba(84, 200, 223, 0.42);
  animation: livePulse 2.4s ease-in-out infinite;
}

.community-intro__pulse span {
  color: rgba(225, 243, 247, 0.68);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.community-tabs {
  position: sticky;
  z-index: 8;
  top: -18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 24px;
  padding: 7px;
  border: 1px solid rgba(232, 249, 251, 0.86);
  border-radius: 25px;
  background: rgba(242, 247, 246, 0.94);
  box-shadow: 0 16px 32px rgba(0, 5, 8, 0.36), inset 0 1px #fff;
  backdrop-filter: blur(15px);
}

.community-tab {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  background: transparent;
  color: #66808a;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, background 220ms ease, color 220ms ease;
}

.community-tab i {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(10, 82, 107, 0.08);
  font-size: 6px;
  font-style: normal;
}

.community-tab.is-active {
  background:
    radial-gradient(circle at 28% 0, rgba(91, 204, 229, 0.34), transparent 44%),
    linear-gradient(145deg, #087ca5, #07516f);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 8px 15px rgba(5, 80, 107, 0.22);
  color: #fff;
}

.community-tab.is-active i {
  background: rgba(255, 255, 255, 0.16);
}

.community-tab:active {
  transform: scale(0.96);
}

.community-panel {
  min-height: 620px;
  animation: communityPanelIn 460ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

.community-panel[hidden] {
  display: none;
}

.community-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 7px 15px;
}

.community-section-title p,
.community-section-title strong {
  display: block;
  margin: 0;
}

.community-section-title p {
  margin-bottom: 5px;
  color: #6fcde2;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.community-section-title strong {
  color: rgba(236, 248, 250, 0.78);
  font-size: 11px;
}

.community-section-title > span {
  color: rgba(191, 229, 237, 0.42);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.briefing-slate {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.briefing-slate--featured {
  height: 405px;
  margin-bottom: 14px;
  border: 2px solid rgba(235, 247, 248, 0.86);
  border-radius: 34px;
  background: #dce8e8;
  box-shadow: 0 25px 46px rgba(0, 5, 8, 0.5), inset 0 1px #fff;
}

.briefing-slate--featured > img,
.briefing-slate__wash {
  position: absolute;
  inset: 0 0 142px;
  width: 100%;
  height: calc(100% - 142px);
}

.briefing-slate--featured > img {
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.briefing-slate__wash {
  background: linear-gradient(180deg, rgba(1, 9, 14, 0.04), transparent 48%, rgba(1, 9, 14, 0.7));
}

.slate-hole {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 17px;
  width: 24px;
  height: 24px;
  border: 5px solid rgba(244, 249, 248, 0.94);
  border-radius: 50%;
  background: #082936;
  box-shadow: inset 0 2px 5px rgba(0, 3, 5, 0.48), 0 4px 8px rgba(0, 6, 9, 0.2);
}

.slate-cord {
  position: absolute;
  z-index: 4;
  top: -11px;
  left: 24px;
  width: 70px;
  height: 44px;
  border: 3px solid rgba(93, 205, 226, 0.75);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-9deg);
}

.briefing-slate__signal {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(239, 250, 252, 0.28);
  border-radius: 18px;
  background: rgba(2, 23, 32, 0.56);
  color: #e9f9fb;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
  backdrop-filter: blur(9px);
}

.briefing-slate__copy {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 164px;
  display: block;
  padding: 19px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 27px;
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.78), transparent 40%),
    linear-gradient(145deg, #eef4f2, #c8dcde);
  box-shadow: 0 -14px 28px rgba(0, 10, 15, 0.22), inset 0 1px #fff;
}

.briefing-slate__copy small,
.briefing-slate__copy strong,
.briefing-slate__copy span,
.briefing-slate__copy i {
  display: block;
}

.briefing-slate__copy small {
  margin-bottom: 6px;
  color: #297e9b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.briefing-slate__copy strong {
  color: #082835;
  font-family: var(--display);
  font-size: 25px;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.briefing-slate__copy span {
  margin-top: 9px;
  color: #617a83;
  font-size: 9px;
  font-weight: 650;
}

.briefing-slate__copy i {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #087397;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.briefing-slate:active img {
  transform: scale(1.035);
}

.briefing-strip {
  position: relative;
  width: 100%;
  min-height: 126px;
  display: block;
  margin-bottom: 12px;
  padding: 19px 48px 17px 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27px;
  background: linear-gradient(145deg, #dcebec, #b8d3d8);
  box-shadow: 0 18px 34px rgba(0, 5, 8, 0.34), inset 0 1px #fff;
  color: #082b38;
  text-align: left;
  cursor: pointer;
}

.briefing-strip--warm {
  background: linear-gradient(145deg, #e7eee5, #bccfba);
}

.briefing-strip > img {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 88px;
  height: calc(100% - 16px);
  border-radius: 21px;
  object-fit: cover;
}

.briefing-strip__copy small,
.briefing-strip__copy strong,
.briefing-strip__copy span {
  display: block;
}

.briefing-strip__copy small {
  margin-bottom: 8px;
  color: #2b7f99;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.briefing-strip__copy strong {
  color: #0b2a36;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.briefing-strip__copy span {
  margin-top: 10px;
  color: #667d84;
  font-size: 8px;
  font-weight: 700;
}

.briefing-strip > i {
  position: absolute;
  top: 50%;
  right: 17px;
  color: #0a7395;
  font-size: 14px;
  font-style: normal;
  transform: translateY(-50%);
}

.briefing-strip--coral {
  padding-left: 83px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.72), transparent 40%),
    linear-gradient(145deg, #ebe7ea, #cbbdcc);
}

.briefing-strip__orb {
  position: absolute;
  top: 26px;
  left: 18px;
  width: 47px;
  height: 47px;
  border: 1px solid rgba(89, 58, 93, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 38%, rgba(255, 255, 255, 0.88), transparent 16%),
    radial-gradient(circle, #a47e9e, #634361);
  box-shadow: 0 0 0 7px rgba(106, 71, 103, 0.06), inset 0 1px rgba(255, 255, 255, 0.7);
  animation: levelPulse 4.2s ease-out infinite;
}

.briefing-wild {
  min-height: 150px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 9px 18px 9px 9px;
  border: 1px solid rgba(221, 244, 248, 0.18);
  border-radius: 28px;
  background: rgba(3, 35, 46, 0.68);
  box-shadow: 0 18px 33px rgba(0, 5, 8, 0.3), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(11px);
}

.briefing-wild__image {
  height: 132px;
  overflow: hidden;
  border-radius: 22px;
}

.briefing-wild__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.briefing-wild small,
.briefing-wild strong,
.briefing-wild span {
  display: block;
}

.briefing-wild small {
  margin-bottom: 8px;
  color: #70cfe3;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.briefing-wild strong {
  color: #f1f9f9;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.04;
}

.briefing-wild span {
  margin-top: 9px;
  color: rgba(208, 231, 236, 0.5);
  font-size: 8px;
  line-height: 1.35;
}

/* Crew and buddy lists */

.crew-channel {
  position: relative;
  width: 100%;
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}

.crew-channel--featured {
  height: 290px;
  border: 1px solid rgba(230, 247, 250, 0.34);
  border-radius: 31px;
  background: #052532;
  box-shadow: 0 24px 42px rgba(0, 5, 8, 0.46);
}

.crew-channel--featured > img,
.crew-channel__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crew-channel--featured > img {
  object-fit: cover;
}

.crew-channel__shade {
  background: linear-gradient(180deg, rgba(0, 7, 11, 0.04), transparent 36%, rgba(0, 8, 12, 0.92));
}

.crew-channel__countdown {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(236, 250, 252, 0.28);
  border-radius: 17px;
  background: rgba(2, 23, 32, 0.55);
  color: #eaf9fb;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
  backdrop-filter: blur(9px);
}

.crew-channel__copy {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.crew-channel__copy small,
.crew-channel__copy strong,
.crew-channel__copy span {
  display: block;
}

.crew-channel__copy small {
  margin-bottom: 6px;
  color: #83dff0;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.crew-channel__copy strong {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.crew-channel__copy span {
  margin-top: 8px;
  color: rgba(220, 240, 244, 0.66);
  font-size: 8px;
  font-weight: 700;
}

.crew-channel__avatars {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 18px;
  display: flex;
}

.crew-channel__avatars i {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid #05141b;
  border-radius: 50%;
  background: linear-gradient(145deg, #74c7df, #17647d);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.crew-channel--compact {
  min-height: 104px;
  padding: 17px 47px 15px 102px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: linear-gradient(145deg, #e4eeee, #bfd6da);
  box-shadow: 0 16px 30px rgba(0, 5, 8, 0.32), inset 0 1px #fff;
}

.crew-channel--compact .crew-channel__copy {
  position: static;
}

.crew-channel--compact .crew-channel__copy small { color: #2f8099; }
.crew-channel--compact .crew-channel__copy strong { color: #092a37; font-size: 16px; }
.crew-channel--compact .crew-channel__copy span { color: #687f87; }

.crew-channel__thumb {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 79px;
  overflow: hidden;
  border-radius: 20px;
}

.crew-channel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-channel__go {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #087798;
  font-size: 14px;
  font-style: normal;
  transform: translateY(-50%);
}

.crew-channel:active,
.buddy-row:active {
  transform: scale(0.985);
  filter: brightness(1.04);
}

.buddy-row {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px 1fr 14px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 17px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 25px;
  background: linear-gradient(145deg, #e8efee, #c9dadc);
  box-shadow: 0 14px 28px rgba(0, 5, 8, 0.3), inset 0 1px #fff;
  color: #092a36;
  text-align: left;
  cursor: pointer;
}

.buddy-row:disabled {
  opacity: 0.86;
  cursor: default;
}

.buddy-avatar,
.message-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 3px solid #082531;
  border-radius: 50%;
  background: linear-gradient(145deg, #5ebbd5, #14607b);
  box-shadow: 0 8px 15px rgba(0, 14, 21, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.buddy-avatar i,
.message-avatar i {
  position: absolute;
  right: -4px;
  bottom: -3px;
  min-width: 24px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #e9f2f1;
  border-radius: 9px;
  background: #075777;
  color: #fff;
  font-size: 5px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.buddy-avatar--kelp,
.message-avatar--jordan { background: linear-gradient(145deg, #74a88b, #285c48); }
.buddy-avatar--sand { background: linear-gradient(145deg, #d5b87e, #88653c); }

.buddy-row > span:nth-child(2) strong,
.buddy-row > span:nth-child(2) small {
  display: block;
}

.buddy-row > span:nth-child(2) strong {
  color: #0a2a36;
  font-family: var(--display);
  font-size: 14px;
}

.buddy-row > span:nth-child(2) small {
  margin-top: 6px;
  color: #647b83;
  font-size: 8px;
  font-weight: 650;
}

.buddy-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91a3a7;
}

.buddy-status.is-online {
  background: #36a982;
  box-shadow: 0 0 0 4px rgba(54, 169, 130, 0.1), 0 0 10px rgba(54, 169, 130, 0.35);
}

/* Crew chat */

.crew-chat {
  background: #031018;
}

.chat-atmosphere__kelp {
  opacity: 0.34;
  filter: saturate(0.68) contrast(1.12) brightness(0.7);
}

.chat-header {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  height: 91px;
  display: grid;
  grid-template-columns: 44px 1fr 39px;
  align-items: center;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 14px 8px;
  border-bottom: 1px solid rgba(198, 231, 238, 0.11);
  background: linear-gradient(180deg, rgba(2, 18, 26, 0.98), rgba(2, 18, 26, 0.88));
  backdrop-filter: blur(16px);
}

.chat-header__back {
  width: 40px;
  height: 40px;
}

.chat-header__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header__porthole {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid #dbe9eb;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #102f3a, 0 8px 15px rgba(0, 5, 8, 0.28);
}

.chat-header__porthole img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header__identity strong,
.chat-header__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header__identity strong {
  color: #f2fafb;
  font-family: var(--display);
  font-size: 14px;
}

.chat-header__identity small {
  margin-top: 4px;
  color: rgba(187, 222, 229, 0.54);
  font-size: 7px;
  font-weight: 700;
}

.chat-header__info {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 239, 244, 0.19);
  border-radius: 50%;
  background: rgba(4, 43, 56, 0.54);
  color: #bfe7ef;
  font-family: Georgia, serif;
  font-size: 13px;
}

.chat-pin {
  position: absolute;
  z-index: 11;
  top: 91px;
  left: 10px;
  right: 10px;
  height: 65px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 0 0 22px 22px;
  background:
    radial-gradient(circle at 85% 0, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(145deg, #dcebed, #b7d3d9);
  box-shadow: 0 13px 28px rgba(0, 5, 8, 0.34), inset 0 1px #fff;
}

.chat-pin__signal {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 82, 106, 0.16);
  border-radius: 50%;
  background: #eaf3f3;
}

.chat-pin__signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #087da4;
  box-shadow: 0 0 0 5px rgba(8, 125, 164, 0.09), 0 0 10px rgba(8, 125, 164, 0.28);
  animation: livePulse 2.4s ease-in-out infinite;
}

.chat-pin small,
.chat-pin strong {
  display: block;
}

.chat-pin small {
  margin-bottom: 4px;
  color: #2b7c96;
  font-size: 5px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.chat-pin strong {
  color: #0a2b37;
  font-size: 9px;
}

.chat-pin button {
  padding: 8px 10px;
  border-radius: 14px;
  background: #075f7f;
  color: #eefbfc;
  font-size: 6px;
  font-weight: 900;
}

.chat-scroll {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 174px 13px 132px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chat-date {
  display: flex;
  justify-content: center;
  margin: 4px 0 24px;
}

.chat-date span {
  padding: 7px 10px;
  border: 1px solid rgba(189, 228, 236, 0.13);
  border-radius: 14px;
  background: rgba(3, 38, 50, 0.54);
  color: rgba(201, 230, 236, 0.5);
  font-size: 6px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-bottom: 17px;
}

.message-row--mine {
  justify-content: flex-end;
}

.message-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-width: 2px;
  font-size: 8px;
}

.message-avatar i {
  right: -5px;
  bottom: -4px;
  min-width: 21px;
  height: 15px;
  border-color: #031018;
  font-size: 4px;
}

.message-stack {
  max-width: 78%;
}

.message-stack > small {
  display: block;
  margin: 0 0 5px 7px;
  color: rgba(194, 226, 232, 0.42);
  font-size: 6px;
  font-weight: 700;
}

.message-row--mine .message-stack > small {
  margin-right: 7px;
  text-align: right;
}

.chat-bubble {
  padding: 13px 15px;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.42;
}

.chat-bubble--received {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px 20px 20px 6px;
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.76), transparent 44%),
    linear-gradient(145deg, #e7efee, #c8dadd);
  box-shadow: 0 12px 24px rgba(0, 5, 8, 0.24), inset 0 1px #fff;
  color: #0a2a36;
}

.chat-bubble--mine {
  border: 1px solid rgba(120, 211, 230, 0.25);
  border-radius: 20px 20px 6px 20px;
  background:
    radial-gradient(circle at 26% 0, rgba(74, 182, 208, 0.25), transparent 42%),
    linear-gradient(145deg, #08789f, #064b67);
  box-shadow: 0 12px 24px rgba(0, 6, 10, 0.31), inset 0 1px rgba(255, 255, 255, 0.13);
  color: #f0fafb;
}

.message-read {
  display: block;
  margin: 5px 7px 0 0;
  color: rgba(154, 213, 225, 0.45);
  font-size: 5px;
  font-weight: 700;
  text-align: right;
}

.dive-slate-message {
  position: relative;
  width: calc(100% - 49px);
  min-height: 165px;
  margin: 6px 0 21px 49px;
  padding: 21px 18px 17px;
  border: 2px solid rgba(232, 245, 247, 0.84);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(145deg, #dce8e7, #abc7cc);
  box-shadow: 0 18px 32px rgba(0, 5, 8, 0.36), inset 0 1px #fff;
  color: #0a2c38;
}

.dive-slate-message__hole {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 19px;
  height: 19px;
  border: 4px solid #f0f5f3;
  border-radius: 50%;
  background: #073347;
  box-shadow: inset 0 2px 4px rgba(0, 3, 5, 0.42);
}

.dive-slate-message__cord {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 51px;
  height: 34px;
  border: 2px solid #45b8d0;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(7deg);
}

.dive-slate-message > small {
  color: #287b96;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.dive-slate-message > strong {
  display: block;
  margin: 7px 0 14px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.dive-slate-message > div {
  display: grid;
  gap: 7px;
}

.dive-slate-message > div span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526f79;
  font-size: 8px;
  font-weight: 750;
}

.dive-slate-message > div i {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(8, 78, 101, 0.28);
  border-radius: 50%;
}

.dive-slate-message > div i.is-checked {
  background: #087c9f;
  box-shadow: inset 0 0 0 3px #d9e9e9;
}

.dive-log-card {
  overflow: hidden;
  border: 1px solid rgba(223, 245, 249, 0.21);
  border-radius: 22px 22px 22px 7px;
  background: rgba(4, 42, 54, 0.76);
  box-shadow: 0 15px 27px rgba(0, 5, 8, 0.3);
  backdrop-filter: blur(10px);
}

.dive-log-card img {
  width: 100%;
  height: 156px;
  display: block;
  object-fit: cover;
}

.dive-log-card > span {
  display: block;
  padding: 13px 14px 14px;
}

.dive-log-card small,
.dive-log-card strong,
.dive-log-card i {
  display: block;
}

.dive-log-card small {
  color: #76d1e5;
  font-size: 5px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.dive-log-card strong {
  margin-top: 6px;
  color: #f0f9fa;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.05;
}

.dive-log-card i {
  margin-top: 8px;
  color: rgba(195, 225, 231, 0.46);
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
}

.message-reactions {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.message-reactions span {
  padding: 5px 8px;
  border: 1px solid rgba(190, 232, 240, 0.14);
  border-radius: 12px;
  background: rgba(4, 43, 55, 0.62);
  color: rgba(208, 237, 242, 0.67);
  font-size: 6px;
  font-weight: 800;
}

.chat-live-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 10px;
  color: rgba(183, 218, 225, 0.38);
  font-size: 6px;
  font-weight: 700;
}

.chat-live-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #58bfd5;
  animation: livePulse 2.3s ease-in-out infinite;
}

/* Ocean reaction tray */

.ocean-reactions {
  position: absolute;
  z-index: 18;
  left: 9px;
  right: 9px;
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.76), transparent 45%),
    linear-gradient(145deg, rgba(226, 238, 237, 0.98), rgba(178, 208, 213, 0.98));
  box-shadow: 0 22px 45px rgba(0, 5, 8, 0.54), inset 0 1px #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transform-origin: 78% 100%;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.crew-chat.reactions-open .ocean-reactions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ocean-reactions__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 11px;
}

.ocean-reactions__heading span {
  color: #196d89;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ocean-reactions__heading small {
  color: #72888f;
  font-size: 6px;
  font-weight: 700;
}

.ocean-reactions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.ocean-reactions__grid button {
  min-height: 80px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(8, 77, 100, 0.11);
  border-radius: 19px;
  background: rgba(244, 248, 246, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
  color: #315f6e;
  cursor: pointer;
}

.ocean-reactions__grid button:active {
  transform: scale(0.92);
  background: #f5faf9;
}

.ocean-reactions__grid button small {
  font-size: 5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ocean-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(9, 88, 114, 0.13);
  border-radius: 50%;
  background: linear-gradient(145deg, #edf5f4, #b8d7dc);
  box-shadow: inset 0 2px 7px rgba(7, 72, 94, 0.08);
}

.ocean-icon--bubbles i {
  position: absolute;
  border: 1px solid #08799e;
  border-radius: 50%;
}

.ocean-icon--bubbles i:nth-child(1) { width: 11px; height: 11px; left: 9px; bottom: 7px; }
.ocean-icon--bubbles i:nth-child(2) { width: 7px; height: 7px; left: 23px; bottom: 17px; }
.ocean-icon--bubbles i:nth-child(3) { width: 4px; height: 4px; left: 17px; top: 7px; }

.ocean-icon--kelp i {
  position: absolute;
  bottom: -3px;
  width: 5px;
  height: 34px;
  border-radius: 60% 20% 0 0;
  background: linear-gradient(180deg, #70a98a, #2c6850);
  transform-origin: bottom;
}

.ocean-icon--kelp i:nth-child(1) { left: 10px; transform: rotate(-17deg); }
.ocean-icon--kelp i:nth-child(2) { left: 19px; height: 38px; transform: rotate(5deg); }
.ocean-icon--kelp i:nth-child(3) { left: 27px; height: 29px; transform: rotate(18deg); }

.ocean-icon--biolume {
  background: radial-gradient(circle, #07324a, #02131e);
}

.ocean-icon--biolume i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8ef4f5;
  box-shadow: 0 0 8px #55dce3;
  animation: biolumeTwinkle 1.8s ease-in-out infinite alternate;
}

.ocean-icon--biolume i:nth-child(1) { left: 9px; top: 10px; }
.ocean-icon--biolume i:nth-child(2) { right: 9px; top: 17px; animation-delay: -0.7s; }
.ocean-icon--biolume i:nth-child(3) { left: 18px; bottom: 8px; animation-delay: -1.2s; }

.ocean-icon--sea-lion i {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 24px;
  height: 12px;
  border-radius: 65% 42% 55% 45%;
  background: #315e6b;
  transform: rotate(-8deg);
}

.ocean-icon--sea-lion i::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #315e6b;
}

.ocean-icon--sea-lion i::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -7px;
  width: 14px;
  height: 8px;
  border-radius: 0 0 70% 20%;
  background: #315e6b;
  transform: rotate(23deg);
}

.chat-composer {
  position: absolute;
  z-index: 19;
  left: 8px;
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
  height: 68px;
  display: grid;
  grid-template-columns: 38px 1fr 37px 42px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  background: rgba(240, 246, 244, 0.96);
  box-shadow: 0 18px 42px rgba(0, 5, 8, 0.48), inset 0 1px #fff;
  backdrop-filter: blur(16px);
}

.chat-composer button {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.chat-composer__plus,
.chat-composer__reaction {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(7, 75, 98, 0.13);
  border-radius: 50%;
  background: #dce9e9;
  color: #176b87;
  font-size: 18px;
}

.chat-composer input {
  min-width: 0;
  height: 42px;
  padding: 0 5px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b2b37;
  font: 700 10px var(--body);
}

.chat-composer input::placeholder {
  color: #7c9197;
}

.chat-composer__reaction {
  position: relative;
  overflow: hidden;
}

.chat-composer__reaction i {
  position: absolute;
  border: 1px solid #137695;
  border-radius: 50%;
}

.chat-composer__reaction i:nth-child(1) { width: 10px; height: 10px; left: 9px; bottom: 7px; }
.chat-composer__reaction i:nth-child(2) { width: 6px; height: 6px; left: 21px; top: 9px; }
.chat-composer__reaction i:nth-child(3) { width: 4px; height: 4px; left: 13px; top: 7px; }

.crew-chat.reactions-open .chat-composer__reaction {
  background: #08799e;
  transform: scale(0.94);
}

.crew-chat.reactions-open .chat-composer__reaction i {
  border-color: #e8f9fb;
}

.chat-composer__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 18%, rgba(86, 204, 229, 0.45), transparent 36%),
    linear-gradient(145deg, #087da5, #064b68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 8px 15px rgba(6, 79, 105, 0.24);
  color: #fff;
  font-size: 16px;
}

.chat-composer__send:active {
  transform: translateY(2px) scale(0.94);
}

/* Full-screen reaction moments */

.chat-reaction-stage {
  position: absolute;
  z-index: 17;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.chat-reaction-stage.is-playing {
  opacity: 1;
}

.reaction-bubble {
  position: absolute;
  left: var(--reaction-x);
  bottom: 85px;
  width: var(--reaction-size);
  height: var(--reaction-size);
  border: 1px solid rgba(231, 251, 254, 0.86);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.75), transparent 25%);
  box-shadow: 0 0 10px rgba(112, 215, 235, 0.18);
  animation: chatBubbleBurst var(--reaction-time) ease-out var(--reaction-delay) both;
}

.reaction-kelp {
  position: absolute;
  left: var(--reaction-x);
  bottom: -10px;
  width: var(--reaction-width);
  height: var(--reaction-height);
  border-radius: 80% 15% 0 0;
  background: linear-gradient(180deg, rgba(100, 166, 126, 0.9), rgba(25, 88, 63, 0.72));
  box-shadow: inset 2px 0 rgba(188, 223, 193, 0.15);
  transform-origin: bottom;
  animation: chatKelpRise 2.5s cubic-bezier(0.16, 0.82, 0.24, 1) var(--reaction-delay) both;
}

.reaction-light {
  position: absolute;
  left: var(--reaction-x);
  top: var(--reaction-y);
  width: var(--reaction-size);
  height: var(--reaction-size);
  border-radius: 50%;
  background: #9ef7f3;
  box-shadow: 0 0 8px #67e5e8, 0 0 18px rgba(77, 215, 224, 0.58);
  animation: chatBiolume 2.2s ease-in-out var(--reaction-delay) both;
}

.reaction-sea-lion {
  position: absolute;
  top: 43%;
  left: -130px;
  width: 105px;
  height: 44px;
  border-radius: 66% 38% 55% 45%;
  background: linear-gradient(180deg, rgba(93, 142, 151, 0.9), rgba(27, 65, 75, 0.94));
  box-shadow: inset 0 5px 9px rgba(201, 232, 235, 0.12), 0 18px 28px rgba(0, 5, 8, 0.3);
  animation: seaLionSwim 2.8s cubic-bezier(0.35, 0.1, 0.22, 1) both;
}

.reaction-sea-lion::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -16px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #4c7c85;
  box-shadow: inset 3px 4px 8px rgba(210, 235, 237, 0.12);
}

.reaction-sea-lion::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -24px;
  width: 48px;
  height: 29px;
  border-radius: 0 0 80% 25%;
  background: #315f69;
  transform: rotate(24deg);
  transform-origin: top left;
  animation: seaLionFlipper 700ms ease-in-out infinite alternate;
}

.reaction-sea-lion i {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #07171d;
  box-shadow: 9px 8px 0 -1px rgba(215, 232, 232, 0.7);
}

/* Trip detail */

.trip-detail {
  background: #edf3f3;
}

.trip-detail__hero {
  position: absolute;
  inset: 0 0 auto;
  height: 52%;
  overflow: hidden;
  background: #082d3a;
}

.trip-detail__hero > img,
.trip-detail__hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trip-detail__hero > img {
  object-fit: cover;
  animation: detailImageArrive 10s ease-in-out infinite alternate;
}

.trip-detail__hero-shade {
  background:
    linear-gradient(180deg, rgba(0, 7, 11, 0.26), transparent 36%, rgba(0, 9, 14, 0.66)),
    linear-gradient(90deg, rgba(0, 8, 13, 0.3), transparent 72%);
}

.journey-back--detail {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 17px;
}

.trip-detail__eyebrow {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  right: 17px;
  padding: 9px 12px;
  border: 1px solid rgba(239, 251, 253, 0.32);
  border-radius: 18px;
  background: rgba(2, 20, 28, 0.46);
  color: rgba(244, 252, 253, 0.9);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.13em;
  backdrop-filter: blur(10px);
}

.trip-detail__title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 50px;
}

.trip-detail__title p {
  margin: 0 0 8px;
  color: #9fe8f7;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.trip-detail__title h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(35px, 10vw, 44px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 6px 28px rgba(0, 5, 8, 0.5);
}

.trip-detail__scroll {
  position: absolute;
  z-index: 3;
  inset: 43% 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 10px 116px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.trip-sheet {
  min-height: 540px;
  padding: 18px 17px 44px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 31px 31px 0 0;
  background: #f7f8f5;
  box-shadow: 0 -18px 42px rgba(0, 11, 17, 0.28), inset 0 1px #fff;
  color: #092330;
}

.trip-sheet__essentials {
  display: grid;
  grid-template-columns: 0.9fr 0.8fr 1.25fr;
  gap: 7px;
}

.trip-sheet__essentials > span {
  min-width: 0;
  padding: 13px 10px;
  border-radius: 17px;
  background: #e7edef;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.trip-sheet__essentials small,
.trip-sheet__essentials strong {
  display: block;
}

.trip-sheet__essentials small {
  margin-bottom: 5px;
  color: #438098;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.trip-sheet__essentials strong {
  overflow: hidden;
  color: #092633;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.trip-sheet__summary {
  margin: 26px 4px 28px;
  color: #112d38;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.trip-sheet__section {
  margin: 0 3px;
  padding: 21px 0;
  border-top: 1px solid rgba(8, 54, 70, 0.12);
}

.trip-sheet__section > p {
  margin: 0 0 13px;
  color: #27809f;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.experience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.experience-chips span {
  padding: 10px 12px;
  border: 1px solid rgba(10, 91, 119, 0.13);
  border-radius: 16px;
  background: #edf2f2;
  color: #173a47;
  font-size: 9px;
  font-weight: 800;
}

.trip-sheet__included strong,
.trip-sheet__included span {
  display: block;
}

.trip-sheet__included strong {
  margin-bottom: 9px;
  color: #0b2a37;
  font-size: 12px;
  line-height: 1.35;
}

.trip-sheet__included span {
  color: #6b7d83;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.trip-reserve {
  position: absolute;
  z-index: 8;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  height: 84px;
  display: grid;
  grid-template-columns: 0.72fr 1.45fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  background: rgba(246, 249, 247, 0.94);
  box-shadow: 0 18px 38px rgba(0, 11, 17, 0.3), inset 0 1px #fff;
  backdrop-filter: blur(16px);
}

.trip-reserve > div {
  padding-left: 8px;
}

.trip-reserve small,
.trip-reserve strong {
  display: block;
}

.trip-reserve small {
  margin-bottom: 3px;
  color: #438098;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.trip-reserve strong {
  color: #082634;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.04em;
}

.trip-reserve a {
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 10%, rgba(98, 213, 237, 0.38), transparent 34%),
    linear-gradient(145deg, #087ba5, #055573);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(4, 79, 105, 0.26);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.trip-reserve a span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.trip-reserve a:active {
  transform: scale(0.975);
  filter: brightness(1.08);
}

/* Community access cards */

.community-intro {
  min-height: 174px;
  padding-bottom: 18px;
}

.community-intro h1 {
  max-width: 315px;
  font-size: clamp(34px, 9.6vw, 43px);
}

.community-intro__pulse {
  right: 5px;
  bottom: 23px;
}

.community-tabs {
  position: relative;
  top: auto;
  z-index: 8;
  gap: 8px;
  margin: 0 0 27px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.community-tab {
  position: relative;
  height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  padding: 14px 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 27px;
  color: #fff;
  text-align: left;
  isolation: isolate;
  box-shadow:
    0 20px 30px rgba(0, 5, 8, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.46),
    inset 0 -16px 30px rgba(0, 17, 25, 0.16);
  transition: transform 280ms cubic-bezier(0.16, 0.82, 0.24, 1), filter 220ms ease;
}

.community-tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% -25% 38%;
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55), transparent 66%);
  filter: blur(6px);
  transform: rotate(-13deg);
  animation: communityCardCurrent 7s ease-in-out infinite alternate;
}

.community-tab::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.community-tab--briefings {
  background: linear-gradient(150deg, #66d6ec 0%, #1289ad 54%, #07536f 100%);
}

.community-tab--groups {
  background: linear-gradient(150deg, #84bea4 0%, #31775f 55%, #174b3d 100%);
}

.community-tab--buddies {
  background: linear-gradient(150deg, #e9c281 0%, #c17853 55%, #7e4b40 100%);
}

.community-tab strong,
.community-tab small {
  position: relative;
  z-index: 2;
  display: block;
}

.community-tab strong {
  font-family: var(--display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.community-tab small {
  opacity: 0.72;
  font-size: 6px;
  font-weight: 800;
}

.community-tab > b {
  position: absolute;
  z-index: 3;
  top: 11px;
  right: 11px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  background: rgba(1, 24, 34, 0.2);
  color: #fff;
  font-size: 6px;
  backdrop-filter: blur(5px);
}

.community-tab.is-active {
  color: #fff;
  transform: translateY(-5px);
  box-shadow:
    0 26px 38px rgba(0, 5, 8, 0.48),
    0 0 0 2px rgba(245, 252, 252, 0.94),
    inset 0 1px rgba(255, 255, 255, 0.58),
    inset 0 -18px 34px rgba(0, 17, 25, 0.18);
}

.community-tab--briefings.is-active { background: linear-gradient(150deg, #66d6ec 0%, #1289ad 54%, #07536f 100%); }
.community-tab--groups.is-active { background: linear-gradient(150deg, #84bea4 0%, #31775f 55%, #174b3d 100%); }
.community-tab--buddies.is-active { background: linear-gradient(150deg, #e9c281 0%, #c17853 55%, #7e4b40 100%); }

.community-tab:active {
  transform: translateY(-1px) scale(0.95);
}

.community-tab__icon {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 15px;
  width: 48px;
  height: 48px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 17px;
  background: rgba(244, 252, 252, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 9px 18px rgba(0, 19, 27, 0.14);
  backdrop-filter: blur(7px);
}

.community-tab .community-tab__icon i {
  position: absolute;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: #fff;
}

.community-tab--briefings .community-tab__icon i {
  left: 12px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
}

.community-tab--briefings .community-tab__icon i:nth-child(1) { top: 13px; }
.community-tab--briefings .community-tab__icon i:nth-child(2) { top: 22px; width: 17px; }
.community-tab--briefings .community-tab__icon i:nth-child(3) { top: 31px; width: 21px; }

.community-tab--groups .community-tab__icon i,
.community-tab--buddies .community-tab__icon i {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 10px 0 -4px #fff;
}

.community-tab--groups .community-tab__icon i:nth-child(1) { left: 6px; top: 15px; transform: scale(0.8); }
.community-tab--groups .community-tab__icon i:nth-child(2) { left: 17px; top: 9px; }
.community-tab--groups .community-tab__icon i:nth-child(3) { right: 5px; top: 16px; transform: scale(0.74); }
.community-tab--buddies .community-tab__icon i:nth-child(1) { left: 7px; top: 13px; }
.community-tab--buddies .community-tab__icon i:nth-child(2) { right: 6px; top: 13px; }

.group-create {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: linear-gradient(145deg, #eff6f4, #bed7d6);
  box-shadow: 0 10px 19px rgba(0, 5, 8, 0.28), inset 0 1px #fff;
  color: #0a6d79;
  font-size: 6px;
  font-weight: 900;
  cursor: pointer;
}

.group-create span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #087996;
  color: #fff;
  font-size: 13px;
}

.group-list {
  display: block;
}

.group-creator {
  position: absolute;
  z-index: 40;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.group-creator.is-open {
  visibility: visible;
  opacity: 1;
}

.group-creator__dismiss {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(0, 8, 12, 0.72);
  backdrop-filter: blur(8px);
}

.group-creator__sheet {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: max(9px, env(safe-area-inset-bottom));
  padding: 25px 19px 18px;
  border: 1px solid #fff;
  border-radius: 31px;
  background:
    radial-gradient(circle at 82% 0, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(145deg, #e9f2ef, #bed6d5);
  box-shadow: 0 25px 55px rgba(0, 4, 7, 0.62), inset 0 1px #fff;
  color: #092b36;
  transform: translateY(115%);
  transition: transform 460ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.group-creator.is-open .group-creator__sheet {
  transform: translateY(0);
}

.group-creator__handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: rgba(12, 72, 87, 0.18);
  transform: translateX(-50%);
}

.group-creator__sheet > small,
.group-creator__sheet label {
  color: #2a8197;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.group-creator__sheet h2 {
  margin: 7px 0 23px;
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.055em;
}

.group-creator__sheet label {
  display: block;
  margin: 0 0 7px 4px;
}

.group-creator__sheet input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(8, 81, 104, 0.14);
  border-radius: 19px;
  outline: 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 2px 7px rgba(7, 56, 69, 0.07);
  color: #092b36;
  font: 800 13px var(--body);
}

.group-creator__sheet > button {
  width: 100%;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 17px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b88aa, #07536f);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 12px 22px rgba(5, 78, 101, 0.26);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.group-creator__sheet > button span {
  font-size: 17px;
}

.crew-channel--created {
  animation: communityPanelIn 500ms cubic-bezier(0.16, 0.82, 0.24, 1) both;
}

/* Direct messages */

.direct-only {
  display: none;
}

.crew-chat.is-direct .group-only {
  display: none !important;
}

.crew-chat.is-direct .direct-only {
  display: block;
}

.crew-chat.is-direct .chat-scroll {
  padding-top: 112px;
}

.chat-header__porthole {
  position: relative;
}

.chat-header__porthole > i {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: linear-gradient(145deg, #67c2db, #17627b);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.crew-chat.is-direct .chat-header__porthole img {
  display: none;
}

.crew-chat.is-direct .chat-header__porthole > i {
  display: grid;
}

.direct-thread {
  min-height: 320px;
  padding-top: 22px;
}

/* Natural sea lion silhouette */

.reaction-sea-lion {
  top: 39%;
  left: -190px;
  width: 172px;
  height: 92px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.reaction-sea-lion::before,
.reaction-sea-lion::after,
.reaction-sea-lion > i {
  display: none;
}

.reaction-sea-lion svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 15px 14px rgba(0, 5, 8, 0.38));
}

.reaction-sea-lion .sea-lion-body {
  fill: url(#seaLionBody);
}

.reaction-sea-lion .sea-lion-belly {
  fill: none;
  stroke: rgba(201, 231, 231, 0.26);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.reaction-sea-lion .sea-lion-flipper {
  fill: #2f626e;
  transform-box: fill-box;
  transform-origin: 12% 14%;
  animation: seaLionFlipper 660ms ease-in-out infinite alternate;
}

.reaction-sea-lion .sea-lion-eye {
  fill: #04151b;
}

.reaction-sea-lion .sea-lion-highlight {
  fill: rgba(226, 242, 241, 0.68);
}

.reaction-sea-lion .sea-lion-wake circle {
  fill: none;
  stroke: rgba(219, 247, 250, 0.72);
  stroke-width: 1.4;
  animation: seaLionWake 1s ease-out infinite;
}

.reaction-sea-lion .sea-lion-wake circle:nth-child(2) { animation-delay: -0.36s; }
.reaction-sea-lion .sea-lion-wake circle:nth-child(3) { animation-delay: -0.68s; }

.ocean-icon--sea-lion i {
  display: none;
}

.ocean-icon--sea-lion svg {
  width: 36px;
  height: 31px;
  margin: 4px 2px;
  overflow: visible;
}

.ocean-icon--sea-lion svg path:first-child {
  fill: #3e7480;
}

.ocean-icon--sea-lion svg path:last-child {
  fill: #2f626d;
}

/* My Dive */

.profile {
  background: #031018;
}

.profile-atmosphere,
.profile-atmosphere__kelp,
.profile-atmosphere__light {
  position: absolute;
  inset: 0;
}

.profile-atmosphere {
  overflow: hidden;
  background: #031018;
}

.profile-atmosphere__kelp {
  inset: -4%;
  opacity: 0.52;
  background:
    linear-gradient(180deg, rgba(2, 15, 22, 0.22), rgba(1, 8, 12, 0.9) 57%, #01080c),
    url("./assets/launch-kelp.png") center/cover;
  filter: saturate(0.75) contrast(1.1) brightness(0.72);
  animation: homeCurrent 26s ease-in-out infinite alternate;
}

.profile-atmosphere__light {
  inset: -20% -38% 62%;
  opacity: 0.38;
  background: conic-gradient(from 194deg at 50% -3%, transparent 0 16%, rgba(76, 190, 219, 0.32) 19% 23%, transparent 27% 39%, rgba(134, 218, 233, 0.2) 43% 47%, transparent 51%);
  filter: blur(13px);
  animation: chartLight 11s ease-in-out infinite alternate;
}

.profile-header {
  background: linear-gradient(180deg, rgba(2, 17, 24, 0.98), rgba(2, 17, 24, 0));
}

.profile-scroll {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 101px 14px max(60px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.profile-scroll::-webkit-scrollbar {
  display: none;
}

.diver-identity {
  position: relative;
}

.diver-identity__heading {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 7px 8px 0;
}

.diver-identity__heading small {
  display: block;
  margin-bottom: 9px;
  color: #70cfe3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.diver-identity__heading h1 {
  margin: 0;
  color: #f6fbfb;
  font-family: var(--display);
  font-size: 43px;
  line-height: 0.87;
  letter-spacing: -0.065em;
}

.diver-identity__heading > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(218, 242, 247, 0.18);
  border-radius: 15px;
  background: rgba(4, 39, 51, 0.62);
  color: rgba(218, 241, 245, 0.72);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.diver-identity__heading > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #53d7a3;
  box-shadow: 0 0 10px rgba(83, 215, 163, 0.65);
}

.avatar-stage {
  position: relative;
  height: 493px;
  margin-top: -34px;
  overflow: hidden;
  border: 1px solid rgba(218, 243, 247, 0.26);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 12%, rgba(89, 200, 224, 0.42), transparent 31%),
    linear-gradient(180deg, rgba(7, 83, 107, 0.7), rgba(2, 29, 39, 0.94) 62%, #020c11);
  box-shadow: 0 28px 52px rgba(0, 5, 8, 0.54), inset 0 1px rgba(255, 255, 255, 0.14);
}

.avatar-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.avatar-stage__surface {
  position: absolute;
  inset: -26% -18% 67%;
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(207, 246, 250, 0.74), rgba(52, 175, 206, 0.14) 46%, transparent 70%);
  filter: blur(8px);
  animation: avatarSurface 7s ease-in-out infinite alternate;
}

.avatar-stage__halo {
  position: absolute;
  left: 50%;
  bottom: 45px;
  width: 276px;
  height: 276px;
  border: 1px solid rgba(113, 210, 229, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(57, 165, 190, 0.04), 0 0 0 60px rgba(57, 165, 190, 0.025);
  transform: translateX(-50%);
  animation: avatarHalo 5s ease-in-out infinite;
}

.avatar-stage > img {
  position: absolute;
  z-index: 2;
  left: -8%;
  bottom: -34px;
  width: 116%;
  height: 455px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 22px rgba(0, 4, 7, 0.46));
  transition: opacity 180ms ease, transform 560ms cubic-bezier(0.16, 0.82, 0.24, 1);
  animation: avatarFloat 6s ease-in-out infinite alternate;
}

.avatar-stage > img.is-changing {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.avatar-stage__floor {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 10%;
  bottom: 16px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(57, 179, 205, 0.23), transparent 68%);
  filter: blur(5px);
}

.avatar-stage__tag {
  position: absolute;
  z-index: 4;
  padding: 8px 10px;
  border: 1px solid rgba(235, 251, 252, 0.3);
  border-radius: 15px;
  background: rgba(2, 28, 38, 0.55);
  color: #e8f8fa;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.11em;
  backdrop-filter: blur(9px);
}

.avatar-stage__tag--level { top: 93px; right: 14px; }
.avatar-stage__tag--specialty { left: 14px; bottom: 22px; }

.avatar-stage__bubbles i {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(224, 249, 251, 0.62);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 28%);
  animation: avatarBubble 4.8s ease-in infinite;
}

.avatar-stage__bubbles i:nth-child(1) { left: 18%; bottom: 26%; width: 8px; height: 8px; }
.avatar-stage__bubbles i:nth-child(2) { right: 19%; bottom: 36%; width: 12px; height: 12px; animation-delay: -1.6s; }
.avatar-stage__bubbles i:nth-child(3) { left: 28%; bottom: 13%; width: 5px; height: 5px; animation-delay: -2.8s; }
.avatar-stage__bubbles i:nth-child(4) { right: 28%; bottom: 19%; width: 6px; height: 6px; animation-delay: -3.7s; }

.avatar-gender {
  position: relative;
  z-index: 5;
  width: 174px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -25px auto 0;
  padding: 5px;
  border: 1px solid #fff;
  border-radius: 25px;
  background: rgba(236, 244, 242, 0.96);
  box-shadow: 0 15px 28px rgba(0, 5, 8, 0.42), inset 0 1px #fff;
}

.avatar-gender button {
  border-radius: 19px;
  background: transparent;
  color: #71858b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.avatar-gender button.is-active {
  background: linear-gradient(145deg, #0b87aa, #07526e);
  box-shadow: 0 8px 15px rgba(7, 81, 105, 0.24), inset 0 1px rgba(255, 255, 255, 0.23);
  color: #fff;
}

.profile-section {
  margin-top: 42px;
}

.profile-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 7px 15px;
}

.profile-section__heading small,
.profile-section__heading h2 {
  display: block;
  margin: 0;
}

.profile-section__heading small {
  margin-bottom: 5px;
  color: #70cfe3;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.profile-section__heading h2 {
  color: #f1f9f9;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.045em;
}

.profile-section__heading > span {
  color: rgba(191, 229, 237, 0.44);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.loadout-card {
  position: relative;
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 27px;
  box-shadow: 0 18px 29px rgba(0, 5, 8, 0.35), inset 0 1px rgba(255, 255, 255, 0.5);
  color: #fff;
  text-align: left;
  transition: transform 260ms cubic-bezier(0.16, 0.82, 0.24, 1);
}

.loadout-card--kelp { background: linear-gradient(145deg, #7ebc99, #1e6952); }
.loadout-card--photo { background: linear-gradient(145deg, #5ec8e2, #076f96); }
.loadout-card--tech { background: linear-gradient(145deg, #d3a35c, #8a533b); }

.loadout-card.is-active {
  transform: translateY(-5px);
  box-shadow: 0 22px 34px rgba(0, 5, 8, 0.44), 0 0 0 2px #f4fbfb, inset 0 1px rgba(255, 255, 255, 0.54);
}

.loadout-card strong {
  font-family: var(--display);
  font-size: 12px;
}

.loadout-card small {
  margin-top: 3px;
  opacity: 0.68;
  font-size: 6px;
  font-weight: 750;
}

.loadout-card__art {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 55px;
  height: 55px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background: rgba(244, 251, 250, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
  transform: translateX(-50%);
}

.loadout-card__art i {
  position: absolute;
  top: 13px;
  left: 20px;
  width: 15px;
  height: 29px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
}

.loadout-card--photo .loadout-card__art i::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  width: 16px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.loadout-card--tech .loadout-card__art i {
  box-shadow: 10px 0 0 -2px transparent, 10px 0 0 0 rgba(255, 255, 255, 0.88);
}

.loadout-readout {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 25px;
  background: linear-gradient(145deg, #e5efed, #bfd7d7);
  box-shadow: 0 17px 30px rgba(0, 5, 8, 0.32), inset 0 1px #fff;
}

.loadout-readout > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid rgba(11, 78, 96, 0.1);
}

.loadout-readout > span:last-child { border-right: 0; }
.loadout-readout small { color: #348298; font-size: 5px; font-weight: 900; letter-spacing: 0.12em; }
.loadout-readout strong { margin-top: 6px; color: #0b2a36; font-size: 8px; line-height: 1.25; }

.gear-parts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.gear-parts button {
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(230, 240, 238, 0.96), rgba(175, 207, 208, 0.94));
  box-shadow: 0 13px 23px rgba(0, 5, 8, 0.29), inset 0 1px #fff;
  color: #356a79;
  font-size: 6px;
  font-weight: 900;
}

.gear-parts button.is-selected {
  background: linear-gradient(145deg, #5ec7df, #087796);
  color: #fff;
  transform: translateY(-3px);
}

.gear-part {
  position: relative;
  width: 29px;
  height: 29px;
  display: block;
}

.gear-part::before,
.gear-part::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.gear-part--suit::before { inset: 2px 8px; border-radius: 8px 8px 5px 5px; }
.gear-part--mask::before { inset: 8px 2px 7px; border-radius: 8px; }
.gear-part--mask::after { left: 13px; bottom: 3px; height: 7px; border-width: 0 0 0 2px; }
.gear-part--tank::before { inset: 2px 8px; border-radius: 8px; }
.gear-part--tank::after { top: 0; left: 12px; width: 5px; height: 3px; border-radius: 2px; }
.gear-part--fins::before { left: 4px; top: 1px; width: 7px; height: 25px; border-radius: 3px 3px 9px 9px; transform: rotate(10deg); }
.gear-part--fins::after { right: 4px; top: 1px; width: 7px; height: 25px; border-radius: 3px 3px 9px 9px; transform: rotate(-10deg); }
.gear-part--light::before { left: 8px; top: 7px; width: 13px; height: 17px; border-radius: 4px; }
.gear-part--light::after { left: 11px; top: 2px; width: 7px; height: 6px; border-radius: 50%; }

.primary-credential {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 82px 1fr 27px;
  align-items: center;
  gap: 12px;
  padding: 15px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 0, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(145deg, #e8f0ee, #bed7d7);
  box-shadow: 0 20px 37px rgba(0, 5, 8, 0.38), inset 0 1px #fff;
  color: #092a36;
}

.credential-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 2px solid #0b7391;
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px #d8e8e7, inset 0 0 0 9px rgba(10, 115, 145, 0.18);
}

.credential-orbit::before,
.credential-orbit::after,
.credential-orbit i {
  content: "";
  position: absolute;
  border: 1px solid rgba(10, 115, 145, 0.2);
  border-radius: 50%;
}

.credential-orbit::before { inset: -7px; }
.credential-orbit::after { inset: 12px; }
.credential-orbit i { width: 8px; height: 8px; top: -4px; left: 50%; background: #0d89aa; border: 0; animation: levelTravel 7s linear infinite; transform-origin: 0 42px; }
.credential-orbit b { color: #0b6884; font-family: var(--display); font-size: 15px; }

.primary-credential small,
.primary-credential strong,
.primary-credential div > span { display: block; }
.primary-credential small { color: #378298; font-size: 5px; font-weight: 900; letter-spacing: 0.12em; }
.primary-credential strong { margin-top: 7px; font-family: var(--display); font-size: 15px; line-height: 1.02; }
.primary-credential div > span { margin-top: 8px; color: #6d8288; font-size: 7px; font-weight: 700; }
.credential-check { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #0b83a4; color: #fff; font-size: 11px; font-style: normal; }

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.credential {
  position: relative;
  min-height: 174px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow: 0 17px 31px rgba(0, 5, 8, 0.36), inset 0 1px rgba(255, 255, 255, 0.45);
  color: #fff;
}

.credential--nitrox { background: linear-gradient(145deg, #50c4de, #087292); }
.credential--rescue { background: linear-gradient(145deg, #ddaa68, #9a5d42); }
.credential--photo { background: linear-gradient(145deg, #7bb394, #28634e); }
.credential--next { background: linear-gradient(145deg, #dfe8e7, #a9c3c6); color: #173844; }

.credential > span {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.33);
  font-family: var(--display);
  font-size: 12px;
}

.credential small,
.credential strong,
.credential > i { display: block; }
.credential small { opacity: 0.65; font-size: 5px; font-weight: 900; letter-spacing: 0.13em; }
.credential strong { margin-top: 6px; font-family: var(--display); font-size: 13px; line-height: 1.03; }
.credential > i { position: absolute; right: 13px; bottom: 13px; padding: 6px 8px; border: 1px solid currentColor; border-radius: 10px; opacity: 0.62; font-size: 5px; font-style: normal; font-weight: 900; }

.affiliation-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 62px 1fr 35px;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(216, 242, 247, 0.2);
  border-radius: 29px;
  background: rgba(3, 39, 51, 0.76);
  box-shadow: 0 18px 33px rgba(0, 5, 8, 0.34), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.affiliation-card .brand-symbol { width: 58px; height: 58px; }
.affiliation-card small,
.affiliation-card strong,
.affiliation-card div > span { display: block; }
.affiliation-card small { color: #70cfe3; font-size: 5px; font-weight: 900; letter-spacing: 0.13em; }
.affiliation-card strong { margin-top: 5px; color: #f3fafb; font-family: var(--display); font-size: 17px; }
.affiliation-card div > span { margin-top: 5px; color: rgba(201, 230, 235, 0.48); font-size: 7px; font-weight: 650; }
.affiliation-card > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(208, 239, 245, 0.22); border-radius: 50%; color: #75d0e2; font-size: 7px; font-style: normal; font-weight: 900; }

@keyframes communityCardCurrent {
  from { transform: translate3d(-9%, -4%, 0) rotate(-13deg) scale(0.92); opacity: 0.52; }
  to { transform: translate3d(10%, 9%, 0) rotate(-3deg) scale(1.12); opacity: 0.82; }
}

@keyframes seaLionWake {
  0% { opacity: 0; transform: translateX(3px) scale(0.45); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateX(-18px) translateY(-8px) scale(1.2); }
}

@keyframes avatarSurface {
  from { transform: translate3d(-5%, -2%, 0) rotate(-5deg); }
  to { transform: translate3d(6%, 6%, 0) rotate(5deg); }
}

@keyframes avatarHalo {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.93); }
  50% { opacity: 0.92; transform: translateX(-50%) scale(1.04); }
}

@keyframes avatarFloat {
  from { transform: translateY(4px) rotate(-0.35deg); }
  to { transform: translateY(-5px) rotate(0.35deg); }
}

@keyframes avatarBubble {
  0% { opacity: 0; transform: translateY(0) scale(0.45); }
  24% { opacity: 0.74; }
  100% { opacity: 0; transform: translateY(-190px) translateX(12px) scale(1.12); }
}

@keyframes surfaceDrift {
  from { transform: translate3d(-0.8%, -0.3%, 0) scale(1.03); }
  to { transform: translate3d(1%, -1.8%, 0) scale(1.08); }
}

@keyframes surfaceRefraction {
  from { transform: translate3d(-1.5%, -0.8%, 0) scale(1.04); opacity: 0.34; }
  to { transform: translate3d(1.6%, 1%, 0) scale(1.12); opacity: 0.6; }
}

@keyframes surfaceRays {
  from { transform: rotate(-6deg) scaleX(0.86); opacity: 0.34; }
  to { transform: rotate(7deg) scaleX(1.16); opacity: 0.68; }
}

@keyframes ambientBubble {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.5); }
  14% { opacity: 0.64; }
  74% { opacity: 0.5; }
  100% { opacity: 0; transform: translate3d(24px, -86svh, 0) scale(1.15); }
}

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

@keyframes detailImageArrive {
  from { transform: scale(1.01) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@keyframes cardCaustics {
  from { transform: translate3d(-8%, -4%, 0) rotate(-3deg); }
  to { transform: translate3d(9%, 7%, 0) rotate(4deg); }
}

@keyframes chartLight {
  from { opacity: 0.28; transform: rotate(-5deg) scaleX(0.88); }
  to { opacity: 0.58; transform: rotate(6deg) scaleX(1.12); }
}

@keyframes contourDrift {
  from { border-radius: 43% 57% 53% 47% / 48% 39% 61% 52%; transform: translate3d(-5px, -8px, 0) rotate(-4deg); }
  to { border-radius: 54% 46% 42% 58% / 39% 55% 45% 61%; transform: translate3d(12px, 15px, 0) rotate(6deg); }
}

@keyframes contourDriftReverse {
  from { border-radius: 49% 51% 44% 56% / 56% 42% 58% 44%; transform: translate3d(7px, -12px, 0) rotate(28deg); }
  to { border-radius: 57% 43% 55% 45% / 42% 59% 41% 58%; transform: translate3d(-10px, 13px, 0) rotate(37deg); }
}

@keyframes rangeTravel {
  from { transform: translateX(0); }
  to { transform: translateX(40px); }
}

@keyframes routeCurrent {
  to { transform: translateY(50%); }
}

@keyframes boatWake {
  0%, 100% { opacity: 0.18; transform: scaleX(0.58) translateY(4px); }
  50% { opacity: 0.7; transform: scaleX(1.12) translateY(-3px); }
}

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

@keyframes buoySignal {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.08); }
}

@keyframes finishSonar {
  0% { opacity: 0.25; transform: scale(0.7); }
  72%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes communityPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes biolumeTwinkle {
  from { opacity: 0.3; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes chatBubbleBurst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.4); }
  18% { opacity: 0.92; }
  78% { opacity: 0.66; }
  100% { opacity: 0; transform: translate3d(var(--reaction-drift), -86svh, 0) scale(1.18); }
}

@keyframes chatKelpRise {
  0% { opacity: 0; transform: translateY(70%) rotate(-2deg) scaleY(0.5); }
  28% { opacity: 0.9; transform: translateY(0) rotate(8deg) scaleY(1); }
  58% { opacity: 0.82; transform: translateY(0) rotate(-9deg) scaleY(1.02); }
  100% { opacity: 0; transform: translateY(18%) rotate(13deg) scaleY(0.94); }
}

@keyframes chatBiolume {
  0% { opacity: 0; transform: scale(0.2) translate(0, 8px); }
  28% { opacity: 1; transform: scale(1.25) translate(4px, -5px); }
  72% { opacity: 0.8; transform: scale(0.82) translate(-5px, -12px); }
  100% { opacity: 0; transform: scale(0.3) translate(7px, -21px); }
}

@keyframes seaLionSwim {
  0% { opacity: 0; transform: translate3d(0, 40px, 0) rotate(8deg) scale(0.78); }
  15% { opacity: 0.9; }
  48% { transform: translate3d(54vw, -18px, 0) rotate(-7deg) scale(1); }
  84% { opacity: 0.86; }
  100% { opacity: 0; transform: translate3d(calc(100vw + 170px), 20px, 0) rotate(6deg) scale(0.88); }
}

@keyframes seaLionFlipper {
  from { transform: rotate(12deg); }
  to { transform: rotate(34deg); }
}

@keyframes surfaceLight {
  from { opacity: 0.58; transform: rotate(-3deg) scaleX(0.9); }
  to { opacity: 0.9; transform: rotate(5deg) scaleX(1.08); }
}

@keyframes surfaceCurrent {
  from { background-position: 0 0; transform: rotate(-3deg) scale(0.97); }
  to { background-position: 60px 85px; transform: rotate(4deg) scale(1.08); }
}

@keyframes purgeIdle {
  0%, 100% { transform: scale(0.985); filter: brightness(0.98); }
  50% { transform: scale(1.012); filter: brightness(1.05); }
}

@keyframes regulatorDescend {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  25% { transform: translate(-50%, -48%) scale(0.93, 0.88); opacity: 1; }
  100% { transform: translate(-50%, 72%) scale(0.64); opacity: 0; }
}

@keyframes bubbleRelease {
  0% { opacity: 0; transform: translate3d(-50%, 0, 0) scale(0.38); }
  16% { opacity: 0.92; }
  72% { opacity: 0.78; }
  100% { opacity: 0; transform: translate3d(calc(-50% + var(--bubble-drift)), -620px, 0) scale(1.22); }
}

@keyframes waterMeter {
  from { transform: translateY(3px) rotate(-2deg); }
  to { transform: translateY(-6px) rotate(2deg); }
}

@keyframes meterWave {
  from { transform: translateX(-18px) rotate(0); }
  to { transform: translateX(14px) rotate(4deg); }
}

@keyframes meterBubble {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  25% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-33px) translateX(5px) scale(1.1); }
}

@keyframes levelPulse {
  0% { opacity: 0.7; transform: scale(0.68); }
  80%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes levelTravel {
  to { transform: rotate(360deg); }
}

@keyframes regulatorControl {
  from { box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 4px 8px rgba(0, 6, 10, 0.3); }
  to { box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 4px 8px rgba(0, 6, 10, 0.3), 0 0 12px rgba(78, 193, 222, 0.14); }
}

@media (min-width: 500px) {
  .app {
    height: min(100svh - 28px, 900px);
    border: 1px solid rgba(190, 231, 243, 0.16);
    border-radius: 38px;
  }
}

@media (max-height: 730px) {
  .launch-logo {
    width: 180px;
  }

  .descend-control {
    margin-top: 34px;
  }

  .home-header {
    height: 88px;
  }

  .home-scroll {
    padding-top: 98px;
  }
}

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