:root {
  --ocean-deep: #041a23;
  --ocean-surface: rgba(7, 31, 39, 0.94);
  --ocean-border: #315359;
  --ocean-accent: #86dfce;
  --ink: #edf8f6;
  --text: #edf8f6;
  --muted: #a6bec0;
  --dim: #819fa5;
  --card: rgba(7, 31, 39, 0.94);
  --line: #315359;
  --accent: #86dfce;
  --page: #041a23;
  --surface: rgba(7, 31, 39, 0.94);
  --border: #315359;
  --mint: #86dfce;
  color-scheme: dark;
  background-color: #041a23;
}
body.ocean-ui {
  isolation: isolate;
  min-height: 100vh;
  background: #041a23 url("/assets/ocean/reef.webp") center/cover fixed;
  color: #edf8f6;
}
body.ocean-ui::before {
  display: none;
}
.ocean-ui.ocean-ready {
  background: #041a23;
}
.ocean-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #041a23;
  contain: strict;
}
.ocean-water {
  position: absolute;
  inset: -2%;
  background: url("/assets/ocean/reef.webp") center/cover no-repeat;
  animation: ocean-current 32s ease-in-out infinite alternate;
  transform-origin: 50% 25%;
}
.ocean-light {
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 150deg at 32% 0%,
    transparent 0deg,
    rgba(163, 244, 233, 0.055) 6deg,
    transparent 13deg,
    rgba(164, 234, 238, 0.045) 21deg,
    transparent 29deg,
    rgba(164, 234, 238, 0.06) 40deg,
    transparent 48deg
  );
  transform-origin: 32% 0%;
  animation: ocean-light 19s ease-in-out infinite alternate;
}
.ocean-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 38%,
      transparent 35%,
      rgba(1, 13, 20, 0.28) 100%
    ),
    linear-gradient(transparent 75%, rgba(1, 13, 20, 0.28));
}
.ocean-fish {
  position: absolute;
  left: -160px;
  top: var(--depth);
  width: var(--size);
  opacity: var(--alpha);
  animation: ocean-swim var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}
.ocean-fish.reverse {
  animation-direction: reverse;
}
.ocean-fish img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(var(--flip));
  animation: ocean-tail 3.8s ease-in-out infinite alternate;
}
.ocean-particle {
  position: absolute;
  left: var(--x);
  top: 110%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #b3ece2;
  opacity: 0;
  animation: ocean-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}
.ocean-particle.bubble {
  background: transparent;
  border: 1px solid #a8e9df77;
}
@keyframes ocean-current {
  from {
    transform: scale(1) translateX(-0.3%);
  }
  to {
    transform: scale(1.025) translateX(0.3%);
  }
}
@keyframes ocean-light {
  from {
    opacity: 0.4;
    transform: rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: rotate(3deg);
  }
}
@keyframes ocean-swim {
  from {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(calc(25vw + 80px)) translateY(-12px);
  }
  50% {
    transform: translateX(calc(50vw + 160px)) translateY(6px);
  }
  75% {
    transform: translateX(calc(75vw + 240px)) translateY(-8px);
  }
  to {
    transform: translateX(calc(100vw + 320px)) translateY(0);
  }
}
@keyframes ocean-tail {
  from {
    transform: scaleX(var(--flip)) rotate(-1.4deg);
  }
  to {
    transform: scaleX(var(--flip)) rotate(1.4deg);
  }
}
@keyframes ocean-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  12% {
    opacity: var(--alpha);
  }
  80% {
    opacity: var(--alpha);
  }
  100% {
    opacity: 0;
    transform: translate(28px, -125vh);
  }
}
.ocean-toggle {
  position: fixed;
  left: 26px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 10px;
  border: 1px solid #6b969c;
  border-radius: 50%;
  background: rgba(5, 28, 36, 0.9);
  color: #d5efeb;
  cursor: pointer;
  box-shadow: 0 4px 18px #00141c55;
}
.ocean-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ocean-toggle:hover {
  background: #153d43;
  color: #86dfce;
}
.ocean-toggle:focus-visible {
  outline: 3px solid #86dfce;
  outline-offset: 4px;
}
.ocean-toggle[hidden] {
  display: none;
}
html[data-ocean-motion="paused"] .ocean-scene *,
html[data-ocean-motion="paused"] .ocean-scene *::before,
html[data-ocean-motion="paused"] .ocean-scene *::after {
  animation-play-state: paused !important;
}
.ocean-lite .ocean-water {
  animation: none;
}
.ocean-lite .ocean-light {
  display: none;
}
.ocean-lite .ocean-fish:nth-of-type(n + 3) {
  display: none;
}
.ocean-lite .ocean-particle:nth-of-type(n + 12) {
  display: none;
}
.ocean-ui .home-nav {
  position: relative;
  z-index: 40;
}
.ocean-ui .site-header {
  position: relative;
  z-index: 40;
}
.ocean-ui .home-nav .langrow {
  gap: 22px;
  align-items: center;
}
.ocean-ui #account-link {
  color: #c4dddd;
  text-decoration: none;
  font-size: 15px;
}
.ocean-ui #account-link:hover {
  color: #86dfce;
}
.ocean-ui.guest-view .wrap {
  max-width: 1416px;
  width: calc(100% - 120px);
  padding: 28px 0 80px;
}
.ocean-ui.guest-view .home-nav {
  margin-bottom: 126px;
  min-height: 52px;
}
.ocean-ui.guest-view .head {
  max-width: 772px;
  margin: 0 auto 26px;
}
.ocean-ui.guest-view .head > header {
  text-align: center;
}
.ocean-ui.guest-view .head h1 {
  font-size: clamp(36px, 4.45vw, 68px);
  font-weight: 650;
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin: 0 0 16px;
  text-shadow: 0 3px 24px #04202a66;
}
.ocean-ui.guest-view .head header p {
  max-width: 680px;
  margin: 0 auto 38px;
  font-size: 20px;
  line-height: 1.45;
  color: #c1d8da;
}
.ocean-ui.guest-view .bycode {
  padding: 32px 38px;
  background: var(--ocean-surface);
  border: 1px solid #6b969c;
  border-radius: 20px;
  box-shadow: 0 20px 70px #00151b30;
}
.ocean-ui.guest-view .bycode > p {
  font-size: 17px;
  line-height: 1.6;
  color: #d1e5e5;
  margin-bottom: 18px;
}
.ocean-ui.guest-view .bycode input {
  min-height: 60px;
  background: #08242d;
  border-color: #4d7d82;
  color: #edf8f6;
}
.ocean-ui.guest-view .bycode form .btn {
  min-height: 60px;
  padding: 12px 32px;
  background: #86dfce;
  border-color: #86dfce;
  color: #062c2c;
  font-size: 17px;
}
.ocean-ui.guest-view .bycode form .btn:hover {
  background: #a2eddd;
  border-color: #a2eddd;
}
.ocean-ui .guest-create {
  border-color: #416b70;
  padding-top: 24px;
  margin-top: 28px;
  text-align: center;
}
.ocean-ui .guest-create p {
  color: #b4cdd0;
  font-size: 18px;
  margin-bottom: 14px;
}
.ocean-ui .guest-create-link {
  min-height: 52px;
  padding: 12px 24px;
  background: #06242b;
  border-color: #86c4be;
  color: #edf8f6;
}
.ocean-ui .guest-create-link:hover {
  background: #123c42;
  border-color: #86dfce;
}
.ocean-ui .guest-create small {
  font-size: 14px;
  color: #a6bec0;
  margin-top: 10px;
}
.ocean-ui.guest-view .how {
  max-width: 772px;
  margin: 0 auto 36px;
  background: var(--ocean-surface);
  border-color: #52777b;
  border-radius: 16px;
}
.ocean-ui.guest-view .how summary {
  min-height: 58px;
  padding: 14px 32px;
  color: #d0e2e2;
  font-size: 16px;
}
.ocean-ui .about,
.ocean-ui footer {
  text-shadow: 0 1px 10px #00151b;
}
.ocean-ui.guest-view .about,
.ocean-ui.guest-view footer {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.ocean-ui .bycode,
.ocean-ui .how,
.ocean-ui .tank,
.ocean-ui .auth-stage {
  box-shadow: 0 18px 54px #00141b25;
}
.ocean-ui .auth-stage {
  background: var(--ocean-surface);
  border-color: #41676d;
}
.ocean-ui .auth-content {
  background: var(--ocean-surface);
}
.ocean-ui .view-tabs button[aria-selected="true"] {
  background: #123c42;
  border-color: #86dfce;
}
.ocean-ui input:not([type="checkbox"]) {
  background-color: #08242d;
  color: #edf8f6;
  border-color: #416b70;
}
.ocean-ui .secondary {
  border-color: #6b969c;
  color: #edf8f6;
  background: #08242d;
}
.ocean-ui .secondary:hover {
  border-color: #86dfce;
  background: #123c42;
}
.ocean-ui .google-button {
  color: #062c2c;
}
.ocean-ui .primary,
.ocean-ui button.primary {
  background: #86dfce !important;
  border-color: #86dfce !important;
  color: #062c2c !important;
}
.ocean-ui .terms-note,
.ocean-ui .microcopy {
  color: #a6bec0;
}
.ocean-ui details,
.ocean-ui .account-section,
.ocean-ui .guest-option {
  border-color: #315359;
}
body.ocean-panel {
  background: #071f27;
  color: #edf8f6;
}
.menu .card {
  background: rgba(7, 31, 39, 0.97);
  border-color: #315359;
}
.ocean-panel .top {
  background: rgba(5, 26, 34, 0.96);
}
@media (max-width: 1100px) {
  .ocean-ui.guest-view .wrap {
    width: calc(100% - 64px);
  }
  .ocean-ui.guest-view .home-nav {
    margin-bottom: 86px;
  }
  .ocean-ui.guest-view .head h1 {
    font-size: 52px;
  }
}
@media (max-width: 760px) {
  .ocean-ui.guest-view .wrap {
    width: calc(100% - 32px);
    padding-top: 20px;
  }
  .ocean-ui.guest-view .home-nav {
    gap: 12px;
    margin-bottom: 52px;
  }
  .ocean-ui .home-nav .langrow {
    width: auto;
    gap: 12px;
  }
  .ocean-ui .aquariumix-brand {
    font-size: 23px;
  }
  .ocean-ui .aquariumix-brand img {
    width: 44px;
    height: 28px;
  }
  .ocean-ui.guest-view .head h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }
  .ocean-ui.guest-view .head header p {
    font-size: 17px;
    margin-bottom: 26px;
  }
  .ocean-ui.guest-view .bycode {
    padding: 24px;
  }
  .ocean-ui.guest-view .bycode > p {
    font-size: 14px;
  }
  .ocean-ui.guest-view .bycode input,
  .ocean-ui.guest-view .bycode form .btn {
    min-height: 54px;
  }
  .ocean-ui .guest-create p {
    font-size: 17px;
  }
  .ocean-ui .guest-create small {
    font-size: 12px;
  }
  .ocean-ui .guest-create-link {
    font-size: 14px;
  }
  .ocean-ui.guest-view .how summary {
    font-size: 14px;
    padding: 12px 20px;
  }
  .ocean-ui #account-link {
    font-size: 13px;
  }
  .ocean-toggle {
    left: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }
  .ocean-water {
    animation: none;
  }
  .ocean-fish:nth-of-type(n + 3) {
    display: none;
  }
  .ocean-particle:nth-of-type(n + 12) {
    display: none;
  }
}
@media (max-width: 480px) {
  .ocean-ui .home-nav .langrow {
    width: 100%;
    justify-content: space-between;
  }
  .ocean-ui.guest-view .home-nav {
    margin-bottom: 32px;
  }
  .ocean-ui.guest-view .head h1 {
    font-size: 36px;
  }
  .ocean-ui.guest-view .bycode {
    padding: 20px;
  }
  .ocean-ui.guest-view .bycode form .btn {
    font-size: 16px;
  }
  .ocean-ui .guest-create {
    padding-top: 20px;
    margin-top: 22px;
  }
  .ocean-ui .header-actions {
    gap: 12px;
  }
  .ocean-ui .brand {
    font-size: 22px;
  }
  .ocean-ui .brand > img {
    width: 42px;
    height: 28px;
  }
  .ocean-ui .site-header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0;
  }
  .ocean-ui .language-switch {
    gap: 0;
  }
  .ocean-ui .auth-stage {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ocean-scene * {
    animation: none !important;
  }
  .ocean-toggle {
    display: none !important;
  }
}
@media print {
  .ocean-scene,
  .ocean-toggle {
    display: none !important;
  }
  body.ocean-ui {
    background: #fff;
    color: #111;
  }
}

/* Account reference: a single glass panel, with the ocean visible behind it. */
.account-page .auth-shell {
  width: calc(100% - 48px);
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 72px;
}
.account-page .site-header {
  min-height: 88px;
  padding: 14px 0;
}
.account-page .brand {
  font-size: 26px;
  gap: 12px;
}
.account-page .brand > img {
  width: 48px;
  height: 32px;
}
.account-page .auth-stage {
  display: block;
  width: 100%;
  max-width: 520px;
  min-height: 0;
  margin: 24px auto 0;
  border: 1px solid #80b1b766;
  border-radius: 24px;
  background: rgba(5, 42, 55, 0.52);
  box-shadow:
    0 20px 60px #00182230,
    inset 0 0 0 1px #a6d9dc0a;
  overflow: visible;
}
.account-page .auth-content {
  padding: 30px;
  background: transparent;
}
.account-page .view-tabs {
  margin-bottom: 30px;
  border-color: #6da0a94d;
}
.account-page .view-tabs button {
  min-height: 46px;
  padding: 9px;
  gap: 10px;
  font-size: 15px;
}
.account-page .view-tabs svg {
  width: 22px;
  height: 22px;
}
.account-page .view-tabs button[aria-selected="true"] {
  background: #6ad5cb12;
  border-color: #9ae3da9c;
}
.account-page h1 {
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.account-page .lead {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.account-page .google-button {
  min-height: 54px;
  font-size: 15px;
  gap: 10px;
  border-radius: 11px;
}
.account-page .google-button > svg {
  width: 24px;
  height: 24px;
}
.account-page .microcopy {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 16px;
}
.account-page .panel-footer {
  margin-top: 0;
  padding-top: 28px;
}
.account-page .guest-option {
  padding-top: 24px;
  border-color: #8bb7be40;
}
.account-page .secondary {
  min-height: 52px;
  font-size: 14px;
  padding: 12px 18px;
  background: #062b3426;
  border-color: #8eb5bd80;
  border-radius: 11px;
}
.account-page .secondary > svg {
  width: 20px;
  height: 20px;
}
.account-page .terms-note {
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 28px;
}
.account-page.pairing .auth-content {
  padding: 26px;
}
.account-page.pairing .guest-option {
  padding-top: 0;
  border: 0;
}
@media (max-width: 560px) {
  .account-page .auth-shell {
    width: calc(100% - 24px);
  }
  .account-page .site-header {
    min-height: 68px;
    padding: 12px 6px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .account-page .brand {
    font-size: 21px;
    gap: 8px;
    letter-spacing: -0.5px;
  }
  .account-page .brand > img {
    width: 34px;
    height: 25px;
  }
  .account-page .header-actions {
    gap: 0;
  }
  .account-page .language-trigger {
    min-height: 38px;
    font-size: 12px;
    padding: 8px 10px;
    gap: 6px;
  }
  .account-page .auth-stage {
    margin-top: 10px;
    border-radius: 22px;
  }
  .account-page .auth-content {
    padding: 24px 20px;
  }
  .account-page h1 {
    font-size: 28px;
  }
  .account-page .lead {
    font-size: 15px;
  }
  .account-page .view-tabs button {
    min-height: 42px;
    font-size: 13px;
  }
  .account-page .view-tabs {
    margin-bottom: 28px;
  }
  .account-page .google-button {
    min-height: 48px;
    font-size: 13px;
  }
  .account-page .secondary {
    min-height: 46px;
    font-size: 13px;
  }
  .account-page .microcopy {
    font-size: 11px;
  }
  .account-page .terms-note {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .account-page .brand {
    font-size: 18px;
  }
  .account-page .brand > img {
    width: 30px;
  }
  .account-page .language-trigger {
    font-size: 11px;
  }
  .account-page .auth-content {
    padding: 20px 17px 22px;
  }
  .account-page h1 {
    font-size: 24px;
  }
  .account-page .lead {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .account-page .view-tabs {
    margin-bottom: 24px;
  }
  .account-page .view-tabs button {
    min-height: 36px;
    font-size: 11px;
  }
  .account-page .view-tabs svg {
    width: 18px;
    height: 18px;
  }
  .account-page .google-button {
    min-height: 43px;
    font-size: 11px;
    gap: 8px;
  }
  .account-page .google-button > svg {
    width: 20px;
    height: 20px;
  }
  .account-page .secondary {
    min-height: 41px;
    font-size: 11px;
  }
  .account-page .microcopy {
    font-size: 9px;
    margin-top: 12px;
  }
  .account-page .terms-note {
    font-size: 9px;
    margin-top: 24px;
  }
  .account-page .panel-footer {
    padding-top: 24px;
  }
  .account-page .guest-option {
    padding-top: 18px;
  }
  .account-page .auth-stage {
    margin-top: 1px;
  }
}
@media (max-width: 560px) {
  .account-page .langpick.language-picker .language-trigger {
    min-height: 38px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .account-page .langpick.language-picker .language-trigger {
    min-height: 34px;
    font-size: 11px;
    padding: 7px 9px;
  }
  .account-page h1 {
    margin-bottom: 10px;
  }
  .account-page .lead {
    margin-bottom: 20px;
  }
}
