:root {
  --abyss: #030c12;
  --ink: #eaf8fc;
  --muted: rgba(206, 236, 246, 0.58);
  --muted-strong: rgba(222, 245, 252, 0.78);
  --aqua: #63e6d4;
  --aqua-bright: #a5f8ec;
  --aqua-soft: rgba(99, 230, 212, 0.14);
  --glass: rgba(8, 27, 36, 0.44);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.07);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dock-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--abyss);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

::selection { background: rgba(99, 230, 212, 0.28); color: #fff; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  cursor: crosshair;
  touch-action: none;
  background: radial-gradient(120% 90% at 50% 0%, #0d4356 0%, #041520 55%, #020a10 100%);
}

/* ---------------------------- атмосфера ---------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.atmosphere__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(72% 46% at 50% -8%, rgba(178, 248, 255, 0.2), transparent 62%),
    radial-gradient(40% 30% at 82% 12%, rgba(120, 220, 255, 0.08), transparent 70%);
  mix-blend-mode: screen;
}

.is-night .atmosphere__light { opacity: 0.4; }
.is-night .atmosphere__vignette { background:
    radial-gradient(88% 78% at 50% 46%, transparent 32%, rgba(0, 6, 11, 0.55) 76%, rgba(0, 4, 8, 0.82) 100%),
    linear-gradient(to bottom, rgba(0, 6, 10, 0.45), transparent 22%, transparent 68%, rgba(0, 5, 9, 0.66)); }

.atmosphere__light { transition: opacity 1.2s ease; }

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(88% 78% at 50% 46%, transparent 38%, rgba(0, 8, 14, 0.42) 78%, rgba(0, 6, 10, 0.72) 100%),
    linear-gradient(to bottom, rgba(0, 10, 16, 0.34), transparent 20%, transparent 70%, rgba(0, 8, 14, 0.55));
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* --------------------------- всплеск при погружении --------------------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(216, 252, 255, 0.85), rgba(160, 235, 250, 0) 70%),
    linear-gradient(to bottom, rgba(190, 245, 255, 0.35), rgba(190, 245, 255, 0) 55%);
  transition: opacity 1.1s ease;
}

.splash.is-on {
  opacity: 1;
  transition: opacity 0.06s ease;
}

/* ----------------------------- топбар ----------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--aqua-bright);
  background: linear-gradient(160deg, rgba(23, 64, 76, 0.72), rgba(6, 22, 30, 0.62));
  border: 1px solid rgba(140, 245, 235, 0.22);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand__mark svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(99, 230, 212, 0.45)); }

.brand__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0fdfe;
}

.brand__meta {
  margin: 3px 0 0;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.depth {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 14px 9px;
  min-width: 104px;
  border-radius: 15px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.depth__label {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.depth__value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #eafdff;
  line-height: 1.1;
}

.depth__value i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 3px;
}

.depth__scale {
  display: block;
  height: 2px;
  width: 100%;
  margin-top: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.depth__fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3fb9c9, var(--aqua));
  box-shadow: 0 0 10px rgba(99, 230, 212, 0.85);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 13px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  color: var(--muted-strong);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 11px; }
.icon-btn--sm svg { width: 16px; height: 16px; }

.icon-btn:hover {
  color: #fff;
  background: rgba(16, 44, 56, 0.68);
  border-color: rgba(150, 245, 235, 0.3);
  transform: translateY(-1px);
}

.icon-btn.is-active {
  color: var(--aqua-bright);
  background: rgba(16, 58, 62, 0.7);
  border-color: rgba(120, 240, 225, 0.42);
}

/* ------------------------------ док ------------------------------ */

.dock {
  position: fixed;
  left: 50%;
  bottom: var(--dock-bottom);
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  max-width: calc(100vw - 24px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 37, 48, 0.66), rgba(5, 17, 24, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(26px) saturate(155%);
  box-shadow:
    0 28px 64px -26px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dock__primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #03231f;
  background: linear-gradient(170deg, #a9fbec 0%, #63e6d4 45%, #35bfae 100%);
  box-shadow:
    0 14px 30px -14px rgba(80, 226, 208, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 70, 62, 0.25);
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, filter 0.28s;
}

.dock__primary svg { width: 19px; height: 19px; }

.dock__primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px -14px rgba(80, 226, 208, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: brightness(1.04);
}

.dock__primary:active { transform: translateY(0) scale(0.985); }

.dock__divider {
  width: 1px;
  height: 26px;
  margin: 0 5px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(219, 241, 249, 0.74);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.dock__btn svg { width: 18px; height: 18px; flex: none; opacity: 0.92; }

.dock__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
}

.dock__btn:active { transform: scale(0.97); }

.dock__btn.is-active {
  color: var(--aqua-bright);
  background: var(--aqua-soft);
  box-shadow: inset 0 0 0 1px rgba(120, 240, 225, 0.24);
}

.dock__btn.is-active svg { filter: drop-shadow(0 0 7px rgba(99, 230, 212, 0.6)); }

.dock__range {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 14px 0 10px;
  min-width: 132px;
}

.dock__range-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.dock__range-label output {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--aqua-bright);
  font-variant-numeric: tabular-nums;
}

#countSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

#countSlider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

#countSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--aqua-bright);
  box-shadow: 0 0 0 3px rgba(99, 230, 212, 0.16), 0 0 14px rgba(99, 230, 212, 0.8);
  transition: box-shadow 0.2s;
}

#countSlider:hover::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(99, 230, 212, 0.22), 0 0 18px rgba(99, 230, 212, 1);
}

#countSlider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

#countSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--aqua-bright);
  box-shadow: 0 0 0 3px rgba(99, 230, 212, 0.16), 0 0 14px rgba(99, 230, 212, 0.8);
}

/* ----------------------------- подсказка ----------------------------- */

.hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-bottom) + 72px);
  z-index: 12;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(210, 240, 248, 0.6);
  background: rgba(5, 18, 26, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  white-space: nowrap;
  pointer-events: none;
}

.hint__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(99, 230, 212, 0.6);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 230, 212, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(99, 230, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 230, 212, 0); }
}

/* ----------------------------- статусбар ----------------------------- */

.statusbar {
  position: fixed;
  left: 26px;
  bottom: 30px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 228, 240, 0.44);
  pointer-events: none;
}

.statusbar b {
  font-weight: 700;
  color: rgba(238, 253, 255, 0.88);
  font-variant-numeric: tabular-nums;
}

.statusbar__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

/* ------------------------------- панель ------------------------------- */

.panel {
  position: fixed;
  top: 104px;
  right: 26px;
  z-index: 30;
  width: 366px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 32, 42, 0.86), rgba(4, 14, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(calc(100% + 44px));
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 230, 220, 0.3) transparent;
}

.panel.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: rgba(120, 230, 220, 0.24); border-radius: 4px; }

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel__kicker {
  margin: 0 0 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--aqua);
}

.panel__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f2fdff;
}

.species-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.species {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--stroke-soft);
}

.species:first-child { border-top: 0; }

.species__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05), 0 0 12px var(--c2);
}

.species__text { min-width: 0; }

.species__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.species__row strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #eefbff;
}

.species__row span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(190, 226, 238, 0.36);
  white-space: nowrap;
}

.species__text p {
  margin: 4px 0 0;
  font-size: 11.8px;
  line-height: 1.5;
  color: rgba(198, 231, 242, 0.62);
}

.panel__foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-soft);
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(196, 230, 241, 0.55);
}

.panel__foot p { margin: 0; }
.panel__foot b { color: rgba(236, 253, 255, 0.9); font-weight: 600; }
.panel__note { margin-top: 10px !important; opacity: 0.72; }

/* ------------------------------- тост ------------------------------- */

.toast {
  position: fixed;
  top: calc(88px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -10px);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #eafcff;
  background: rgba(9, 32, 42, 0.82);
  border: 1px solid rgba(120, 240, 225, 0.28);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------ загрузка ------------------------------ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 38%, #0e3a4b 0%, #061a24 45%, #020a10 100%);
  transition: opacity 0.9s ease, visibility 0.9s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
  width: min(380px, 78vw);
  padding: 20px;
}

.loader__fish {
  width: 138px;
  color: var(--aqua);
  filter: drop-shadow(0 0 26px rgba(99, 230, 212, 0.4));
  animation: swim 3.4s ease-in-out infinite;
}

@keyframes swim {
  0%, 100% { transform: translate(-6px, 0) rotate(-1.5deg); }
  50% { transform: translate(6px, -5px) rotate(1.5deg); }
}

.loader__title {
  margin: 20px 0 0;
  font-size: 21px;
  font-weight: 300;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #eefdff;
}

.loader__text {
  margin: 10px 0 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader__track {
  height: 2px;
  margin-top: 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.loader__track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #4fd8c6, #a8fbff);
  box-shadow: 0 0 14px rgba(99, 230, 212, 0.9);
  transition: width 0.45s ease;
}

.loader__hint {
  margin: 14px 0 0;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 232, 242, 0.32);
}

/* ------------------------------ fallback ------------------------------ */

.fallback {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(70% 60% at 50% 40%, #0b2f3e, #020a10 75%);
}

.fallback[hidden] { display: none; }

.fallback__card {
  max-width: 420px;
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(9, 30, 40, 0.7);
  border: 1px solid var(--stroke);
  text-align: center;
}

.fallback__card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.fallback__card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ------------------------------ доступность ------------------------------ */

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(120, 240, 225, 0.75);
  outline-offset: 3px;
}

/* ------------------------------ адаптив ------------------------------ */

@media (max-width: 1240px) {
  .statusbar { display: none; }
}

@media (max-width: 900px) {
  .hint { display: none; }

  .panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 76vh;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .panel.is-open { transform: translateY(0); }

  .toast { top: calc(74px + env(safe-area-inset-top, 0px)); font-size: 11.5px; }
}

@media (max-width: 780px) {
  .topbar {
    padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand__mark svg { width: 22px; height: 22px; }
  .brand__name { font-size: 12.5px; letter-spacing: 0.24em; }
  .brand__meta { display: none; }

  .depth { display: none; }
  .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
  .icon-btn--sm { width: 34px; height: 34px; }

  .dock {
    width: calc(100% - 20px);
    justify-content: space-between;
    gap: 1px;
    padding: 6px;
    border-radius: 19px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .dock__primary {
    height: 46px;
    padding: 0 15px;
    gap: 7px;
    font-size: 13px;
    border-radius: 14px;
  }

  .dock__primary svg { width: 17px; height: 17px; }

  .dock__btn {
    height: 44px;
    padding: 0 10px;
    gap: 0;
    border-radius: 11px;
  }

  .dock__btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dock__divider { margin: 0 1px; }
  .dock__divider--last { display: none; }
  .dock__range { display: none; }
}

@media (max-width: 420px) {
  .dock__primary span { display: none; }
  .dock__primary { padding: 0 14px; }
  .icon-btn { width: 38px; height: 38px; }
  .topbar__right { gap: 6px; }
}

@media (max-width: 380px) {
  .dock { width: calc(100% - 14px); padding: 5px; }
  .dock__primary { padding: 0 11px; }
  .dock__btn { padding: 0 7px; }
  .dock__divider { margin: 0; }
  .brand__name { font-size: 11.5px; letter-spacing: 0.2em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .brand__meta, .depth, .hint { display: none; }
  .dock { bottom: 8px; }
  .panel { top: 0; right: 0; max-height: 100vh; border-radius: 0; width: min(420px, 60vw); }
}

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