:root {
  --mival-nav-text: rgba(255,255,255,0.96);
  --mival-nav-hover: rgba(255,255,255,0.08);
  --mival-nav-active: rgba(0,158,94,0.22);
  --mival-shell-border: rgba(255,255,255,0.14);
  --mival-shell-highlight: rgba(255,255,255,0.12);
  --mival-shell-shadow: rgba(0,0,0,0.18);
}

#mival-section-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px;
  margin-bottom: 16px;
  border-radius: 100px;
  z-index: 9999;
  overflow: visible;
  isolation: isolate;
  opacity: 1;
  pointer-events: auto;
  transition: bottom 0.35s ease, opacity 0.25s ease;
}

#mival-section-nav .mival-glass-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255,255,255,0.03);
  box-shadow:
    0 10px 24px var(--mival-shell-shadow),
    inset 0 1px 0 var(--mival-shell-highlight),
    inset 0 -1px 0 rgba(255,255,255,0.02);
}

#mival-section-nav .mival-glass-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mival-section-nav .mival-glass-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--mival-shell-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.02);
  backdrop-filter: url(#mival-displace) blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#mival-section-nav::before {
  content: none;
}

#mival-section-nav .mival-nav-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#mival-section-nav a {
  color: var(--mival-nav-text);
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  padding: 6px 14px;
  margin-left: 6px;
  margin-right: 6px;
  border-radius: 100px;
  background: transparent;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    opacity 0.22s ease;
}

#mival-section-nav a:hover {
  transform: scale(0.98);
  background: var(--mival-nav-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

#mival-section-nav a.active {
  background: var(--mival-nav-active);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 0 1px rgba(0,158,94,0.16);
}

.mival-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

@supports not (backdrop-filter: blur(8px)) {
  #mival-section-nav .mival-glass-bg::before,
  #mival-section-nav .mival-glass-bg::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #mival-section-nav .mival-glass-bg::before {
    background: rgba(20,20,20,0.18);
  }

  #mival-section-nav .mival-glass-bg::after {
    background: rgba(255,255,255,0.04);
  }
}

@media (max-width: 1024px) {
  #mival-section-nav {
    visibility: hidden;
  }
}
