.gooey-nav {
  --gn-pad: 6px;
  --gn-gap: 4px;
  --gn-font: 14px;
  --gn-x: 16px;
  --gn-y: 9px;
  position: relative;
  display: inline-flex;
  max-width: 100%;
  font-size: var(--gn-font);
  line-height: 1.2;
}

.gooey-nav--sm {
  --gn-pad: 5px;
  --gn-gap: 2px;
  --gn-font: 13px;
  --gn-x: 13px;
  --gn-y: 7px;
}

.gooey-nav--lg {
  --gn-pad: 7px;
  --gn-gap: 6px;
  --gn-font: 16px;
  --gn-x: 20px;
  --gn-y: 11px;
}

.gooey-nav--framed {
  padding: var(--gn-pad);
  border-radius: 999px;
  background: var(--gn-frame);
  box-shadow: var(--gn-frame-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

.gooey-nav__stage {
  position: relative;
  max-width: 100%;
}

.gooey-nav__canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.gooey-nav__fallback {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  border-radius: 999px;
  background: var(--gn-pill);
  pointer-events: none;
}

.gooey-nav__list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gn-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gooey-nav__list--active {
  position: absolute;
  inset: 0;
  color: var(--gn-active-ink);
  visibility: hidden;
  clip-path: inset(100%);
  pointer-events: none;
}

.gooey-nav__item {
  display: flex;
}

.gooey-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--gn-y) var(--gn-x);
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--gn-muted);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gooey-nav__list--active .gooey-nav__link {
  color: inherit;
}

.gooey-nav__item[data-active] .gooey-nav__link {
  color: var(--gn-ink);
}

.gooey-nav__link:focus-visible {
  outline: 2px solid var(--gn-ink);
  outline-offset: 2px;
}

.gooey-nav__icon {
  display: inline-flex;
  flex: none;
}

.gooey-nav__icon svg {
  width: 1.15em;
  height: 1.15em;
}

.gooey-nav__rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--gn-frame-edge),
    inset 0 1px 0 var(--gn-frame-highlight);
  pointer-events: none;
}

@media (hover: hover) {
  .gooey-nav__link:hover {
    color: var(--gn-ink);
  }
}

/* BLYXU adapter: only the navigation links receive the React Bits treatment. */
html body .navbar #nav-links.blyxu-gooey-nav {isolation:isolate;overflow:visible !important;gap:4px !important;padding:6px !important;border:1px solid #ffffff18 !important;border-radius:999px !important;background:var(--gn-frame) !important;box-shadow:var(--gn-frame-shadow) !important;backdrop-filter:blur(20px) saturate(1.6) !important;}
html body .navbar #nav-links.blyxu-gooey-nav > li {position:relative;z-index:1;}
html body .navbar #nav-links.blyxu-gooey-nav > li + li::before {display:none !important;}
html body .navbar #nav-links.blyxu-gooey-nav > li > a {font-size:14px !important;padding:9px 16px !important;border-radius:999px !important;line-height:1.2 !important;min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:transparent !important;color:var(--gn-muted) !important;}
html body .navbar #nav-links.blyxu-gooey-nav > li > a:is(.active,:hover) {background:transparent !important;color:var(--gn-ink) !important;}
html body .navbar #nav-links.blyxu-gooey-nav > li > a:focus-visible {outline:2px solid #cbb0ef !important;outline-offset:3px;}
html body .navbar #nav-links.blyxu-gooey-nav > .blyxu-gooey-effects {position:absolute !important;inset:0;z-index:2;pointer-events:none;list-style:none;margin:0;padding:0;}
.blyxu-gooey-labels {position:absolute;inset:0;pointer-events:none;color:#18161d;}
.blyxu-gooey-label {position:absolute;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;letter-spacing:.1px;line-height:1.2;white-space:nowrap;}
@media(max-width:980px) {
 html body .navbar #nav-links.blyxu-gooey-nav {border-radius:24px !important;gap:4px !important;max-height:calc(100svh - 110px) !important;overflow-y:auto !important;overflow-x:hidden !important;padding:12px !important;}
 html body .navbar #nav-links.blyxu-gooey-nav > li > a {display:flex;width:100%;font-size:16px !important;padding:12px 16px !important;min-height:44px;}
 .blyxu-gooey-label {font-size:16px;}
}
@media(prefers-reduced-motion:reduce) {html body .navbar #nav-links.blyxu-gooey-nav > li > a {transition:none !important;}}

/* The global media reset must not scale the WebGL drawing surface. */
html body .navbar #nav-links.blyxu-gooey-nav .gooey-nav__canvas {max-width:none !important;max-height:none !important;}
html body .navbar #nav-links.blyxu-gooey-nav > .blyxu-gooey-effects {inset:0;}

@media(max-width:980px) {html body .navbar #nav-links.blyxu-gooey-nav {background:rgba(28,26,34,.98) !important;}}
