:root { --nightbar-nav-height: 62px; }

.nightbar-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    flex: none;
    height: calc(var(--nightbar-nav-height) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    background: rgba(7, 8, 11, .78);
    backdrop-filter: blur(18px) saturate(120%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.nightbar-nav .nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: min(1320px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
}

.nightbar-nav .brand {
    display: flex;
    flex: none;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    color: #eee8e1;
    text-decoration: none;
}

.nightbar-nav .brand-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #ec4e82;
    box-shadow: 0 0 28px rgba(236, 78, 130, .22);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.nightbar-nav .brand-name { font-size: 12px; letter-spacing: .13em; }
.nightbar-nav .nav-links { display: flex; align-items: center; gap: 25px; }
.nightbar-nav .nav-links > :is(a, button) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d9096;
    font: inherit;
    font-size: 12px;
    letter-spacing: .12em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

.nightbar-nav .nav-links > button { cursor: pointer; }
.nightbar-nav .nav-links > :is(a, button)::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, #d99a6a, transparent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.nightbar-nav .nav-links > :is(:hover, :focus-visible, [aria-current="page"]) { color: #d8d0c7; }
.nightbar-nav .nav-links > :is(:hover, :focus-visible, [aria-current="page"])::after { transform: scaleX(1); }
.nightbar-nav :is(a, button):focus-visible { outline: 1px solid #efb989; outline-offset: 3px; }

@media (max-width: 700px) {
    :root { --nightbar-nav-height: 58px; }
    .nightbar-nav .nav-shell { width: calc(100% - 28px); }
    .nightbar-nav .brand-name { display: none; }
    .nightbar-nav .nav-links { gap: 15px; }
}

@media (max-width: 350px) {
    .nightbar-nav .nav-links { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .nightbar-nav .nav-links > :is(a, button),
    .nightbar-nav .nav-links > :is(a, button)::after { transition: none; }
}
