.daemon-subnav {
  position: sticky;
  top: var(--site-nav-sticky-height, var(--nav-height));
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 8px 20px;
  border-block: 1px solid rgba(195, 151, 60, .36);
  background: linear-gradient(180deg, rgba(3, 8, 12, .97), rgba(5, 11, 15, .94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  backdrop-filter: blur(12px);
}
.daemon-subnav::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 161, 63, .32) 18%, rgba(205, 161, 63, .32) 82%, transparent);
  pointer-events: none;
}
.daemon-subnav a {
  position: relative;
  z-index: 1;
  flex: 0 1 210px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 8px 22px 8px 15px;
  border: 1px solid transparent;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
  color: #b9bec0;
  background: rgba(3, 8, 12, .94);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.daemon-subnav a::after {
  content: '';
  position: absolute;
  inset: auto 22px 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity 160ms ease, transform 220ms ease;
}
.daemon-subnav__rune {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(178, 142, 61, .45);
  color: #8d8f89;
  background: #071017;
  transform: rotate(45deg);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.daemon-subnav__rune svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-45deg);
}
.daemon-subnav a:hover { color: #ead9ad; border-color: rgba(197, 157, 68, .38); background: linear-gradient(90deg, rgba(52, 39, 15, .58), rgba(5, 14, 19, .96)); }
.daemon-subnav a:hover .daemon-subnav__rune { color: #e3ba55; border-color: #ae8736; }
.daemon-subnav a:focus-visible { outline: 2px solid #f1cf72; outline-offset: 2px; }
.daemon-subnav a.is-active,
.daemon-subnav a[aria-current="location"] {
  color: #fff0bc;
  border-color: #b28a34;
  background: linear-gradient(90deg, rgba(79, 55, 14, .78), rgba(7, 27, 34, .98) 62%, rgba(27, 67, 76, .72));
  box-shadow: inset 0 0 24px rgba(92, 210, 232, .08);
}
.daemon-subnav a.is-active::after,
.daemon-subnav a[aria-current="location"]::after { opacity: .75; transform: scaleX(1); }
.daemon-subnav a.is-active .daemon-subnav__rune,
.daemon-subnav a[aria-current="location"] .daemon-subnav__rune {
  color: #8be6f5;
  border-color: #d8ad43;
  background: #09222a;
  box-shadow: 0 0 0 3px rgba(201, 158, 59, .1), 0 0 18px rgba(88, 210, 232, .22);
}
@media (max-width: 700px) {
  .daemon-subnav { justify-content: flex-start; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .daemon-subnav::-webkit-scrollbar { display: none; }
  .daemon-subnav a { flex: 0 0 172px; min-height: 50px; padding-inline: 13px 18px; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .daemon-subnav a,
  .daemon-subnav a::after,
  .daemon-subnav__rune { transition: none; }
}
