.variant-nav {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--nav-border, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background: var(--nav-surface, rgba(8, 11, 15, 0.58));
  box-shadow: var(
    --nav-shadow,
    0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1)
  );
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.variant-dot {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.variant-dot::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--nav-dot-border, rgba(255, 255, 255, 0.55));
  border-radius: 50%;
  background: var(--nav-dot, rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  content: "";
  transition:
    width 160ms ease,
    height 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.variant-dot:hover::before {
  border-color: var(--nav-dot-hover-border, rgba(255, 255, 255, 0.9));
  background: var(--nav-dot-hover, rgba(255, 255, 255, 0.62));
  transform: scale(1.28);
}

.variant-dot:focus-visible {
  outline: 2px solid var(--nav-focus, rgba(255, 255, 255, 0.92));
  outline-offset: -2px;
}

.variant-dot.is-active::before {
  width: 9px;
  height: 9px;
  border-color: var(--nav-dot-active, #ffffff);
  background: var(--nav-dot-active, #ffffff);
  box-shadow:
    0 0 0 3px var(--nav-active-ring, rgba(255, 255, 255, 0.12)),
    0 0 15px var(--nav-active-glow, rgba(61, 194, 255, 0.42));
}

@media (prefers-reduced-motion: reduce) {
  .variant-dot::before {
    transition: none;
  }
}

@media (max-width: 640px) {
  .variant-nav {
    top: max(9px, env(safe-area-inset-top));
    padding: 3px;
  }

  .variant-dot {
    width: 34px;
    height: 34px;
  }
}
