.aurora-nav {
    --strip-h: 0px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    font: 500 16px/normal Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.aurora-nav:has(> .aurora-strip) {
    --strip-h: 36px;
}

.aurora-nav.is-scrolled {
    transform: translateY(calc(var(--strip-h) * -1));
}

.aurora-nav::before {
    position: absolute;
    inset: var(--strip-h) 0 -20px;
    background: linear-gradient(180deg, rgba(8, 8, 10, .74), rgba(8, 8, 10, .42) 64%, rgba(8, 8, 10, 0));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent);
    mask-image: linear-gradient(180deg, #000 52%, transparent);
    content: "";
    pointer-events: none;
}

.aurora-nav__inner {
    position: relative;
    display: grid;
    align-items: center;
    width: 100%;
    height: 68px;
    margin: 0;
    padding: 0 clamp(16px, 2.2vw, 36px);
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.aurora-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    gap: 9px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -.035em;
    will-change: transform;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.aurora-brand:active {
    transform: translateY(2px);
    transition-duration: .08s;
}

.aurora-brand__mark {
    display: block;
    flex: none;
    width: 25px;
    height: 25px;
}

.aurora-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.aurora-brand {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.aurora-brand img {
    -webkit-user-drag: none;
    pointer-events: none;
}

.aurora-brand__word {
    display: block;
    width: auto;
    height: 25px;
}

.aurora-nav__bar {
    display: flex;
    align-items: center;
    min-width: 0;
}

.aurora-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 2px;
    white-space: nowrap;
}

.aurora-nav__links > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    color: #a1a1aa;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.aurora-nav__links > a:hover,
.aurora-nav__links > a.is-on {
    color: #fff;
}

.aurora-nav__links > a:focus-visible {
    border-radius: 3px;
    outline: 1px solid rgba(83, 162, 235, .62);
    outline-offset: 4px;
}

.aurora-nav__drop {
    position: relative;
    display: flex;
}

.aurora-nav .aurora-nav__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px 0 18px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #a1a1aa;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.aurora-nav__trigger svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s var(--aurora-spring);
}

.aurora-nav__trigger:hover,
.aurora-nav__drop.is-open .aurora-nav__trigger {
    color: #fff;
}

.aurora-nav__drop.is-open .aurora-nav__trigger svg {
    transform: rotate(180deg);
}

.aurora-nav__trigger:focus-visible {
    border-radius: 3px;
    outline: 1px solid rgba(83, 162, 235, .62);
    outline-offset: 4px;
}

.aurora-nav__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 600px;
    border-radius: 18px;
    background: #0a0a0b;
    box-shadow: 0 0 0 1px #232327, 0 40px 80px -24px rgba(0, 0, 0, .9);
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px) scale(.96);
    transform-origin: 50% 0;
    transition: opacity .18s ease, transform .32s var(--aurora-spring), visibility 0s linear .32s;
}

.aurora-nav__panel::before {
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
    content: "";
}

.aurora-nav__drop.is-open .aurora-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 0s;
}

.res-app {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 18px;
    border-right: 1px solid #1c1c20;
}

.res-app > b {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.aurora-nav__panel .res-app p {
    margin: 6px 0 18px;
    color: #8b8b96;
    font-size: 13.5px;
    line-height: 1.5;
}

.aurora-nav__panel .res-app__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #141417;
    box-shadow: inset 0 0 0 1px #2a2a30;
    color: #f4f4f5;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease;
}

.aurora-nav__panel .res-app__btn + .res-app__btn {
    margin-top: 8px;
}

.aurora-nav__panel .res-app__btn:hover {
    background: #1c1c20;
}

.aurora-nav__panel .res-app__btn--win {
    background: linear-gradient(#fff, #e9e9ec);
    box-shadow: none;
    color: #09090b;
}

.aurora-nav__panel .res-app__btn--win:hover {
    background: #fff;
}

.res-app__btn:focus-visible,
.res-links__all:focus-visible {
    outline: 1px solid rgba(83, 162, 235, .62);
    outline-offset: 3px;
}

.res-app__btn .ic {
    width: 16px;
    height: 16px;
}

.res-app small {
    margin-top: 10px;
    color: #5f5f69;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.res-links {
    display: flex;
    flex-direction: column;
    padding: 22px 12px 12px;
}

.res-links__label {
    padding: 0 10px 10px;
    color: #6e6e78;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aurora-nav__panel .res-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 34px 12px 10px;
    border-radius: 11px;
    color: #f4f4f5;
    transition: background-color .15s ease;
}

.aurora-nav__panel .res-links__all {
    margin-top: auto;
    padding: 12px 10px 4px;
    border-top: 1px solid #1c1c20;
    color: #a1a1aa;
    font-size: 12.5px;
    transition: color .15s ease;
}

.aurora-nav__panel .res-links__all:hover {
    color: #fff;
}

.aurora-nav__panel .res-item::after {
    position: absolute;
    top: 50%;
    right: 14px;
    left: auto;
    bottom: auto;
    display: block;
    width: 7px;
    height: 7px;
    border: solid #a1a1aa;
    border-width: 1.6px 1.6px 0 0;
    background: none;
    content: "";
    opacity: 0;
    transform: translate(0, -50%) rotate(45deg);
    transition: opacity .15s ease;
}

.aurora-nav__panel .res-item:hover,
.aurora-nav__panel .res-item:focus-visible {
    outline: 0;
    background: #1c1c1f;
}

.aurora-nav__panel .res-item:hover::after,
.aurora-nav__panel .res-item:focus-visible::after {
    opacity: 1;
}

.res-item i {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #26262b;
    border-radius: 10px;
    background: #121215;
    color: #e4e4e7;
    transition: border-color .15s ease;
}

.res-item:hover i,
.res-item:focus-visible i {
    border-color: #3a3a42;
}

.res-item i .ic {
    width: 18px;
    height: 18px;
}

.res-item b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.res-item small {
    display: block;
    margin-top: 2px;
    color: #83838d;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
}

.aurora-page section[id] {
    scroll-margin-top: 76px;
}

.aurora-nav__actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch;
    gap: 12px;
}

.aurora-nav__burger {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #2a2a30;
    border-radius: 10px;
    background: #111114;
    color: #d4d4d8;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.aurora-nav__burger span {
    position: relative;
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
}

.aurora-nav__burger span::before,
.aurora-nav__burger span::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 1.5px;
    background: currentColor;
    content: "";
    transition: transform .2s var(--aurora-spring);
}

.aurora-nav__burger span::before { top: -5px; }
.aurora-nav__burger span::after { top: 5px; }

.aurora-nav.is-open .aurora-nav__burger {
    border-color: rgba(83, 162, 235, .62);
    color: #fff;
}

.aurora-nav.is-open .aurora-nav__burger span {
    background: transparent;
}

.aurora-nav.is-open .aurora-nav__burger span::before {
    transform: translateY(5px) rotate(45deg);
}

.aurora-nav.is-open .aurora-nav__burger span::after {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1240px) {
    .aurora-brand__mark { width: 23px; height: 23px; }
    .aurora-brand__word { height: 23px; }
    .aurora-nav__links > a,
    .aurora-nav .aurora-nav__trigger { padding: 0 12px; font-size: 15px; }
    .aurora-nav .aurora-nav__trigger { padding-right: 10px; }
}

@media (max-width: 1040px) {
    .aurora-nav__inner {
        height: 64px;
        padding: 0 16px;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .aurora-nav__actions {
        justify-content: flex-end;
        gap: 8px;
    }

    .aurora-nav__bar {
        display: contents;
    }

    .aurora-nav .avatar {
        width: 36px;
        height: 36px;
    }

    .aurora-nav__burger {
        display: flex;
    }

    .aurora-nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        max-height: calc(100svh - 64px - var(--strip-h));
        padding: 8px 20px 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 0 0 18px 18px;
        background: #050507;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -10px rgba(0, 0, 0, .8);
        gap: 0;
        white-space: normal;
    }

    .aurora-nav.is-open .aurora-nav__links {
        display: flex;
        animation: nav-sheet-in .24s cubic-bezier(.2, .8, .2, 1);
    }

    .aurora-nav.is-scrolled .aurora-nav__links {
        max-height: calc(100svh - 64px);
    }

    html.nav-locked {
        overflow: hidden;
    }

    .aurora-nav__links > * {
        flex: none;
    }

    .aurora-nav__links > a,
    .aurora-nav .aurora-nav__trigger {
        justify-content: space-between;
        width: 100%;
        height: 60px;
        padding: 0 4px;
        border-radius: 0;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07);
        color: #d4d4d8;
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -.02em;
    }

    .aurora-nav__links > a.is-on {
        color: #fff;
    }

    .aurora-nav__links > .aurora-nav__drop:last-child:not(.is-open) .aurora-nav__trigger {
        box-shadow: none;
    }

    .aurora-nav__links > a.is-on::after {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #4d8dff;
        box-shadow: 0 0 10px #4d8dff;
        content: "";
    }

    .aurora-nav .aurora-nav__trigger svg {
        width: 20px;
        height: 20px;
        color: #71717a;
    }

    .aurora-nav__drop {
        display: block;
    }

    .aurora-nav__panel {
        position: static;
        display: none;
        grid-template-columns: minmax(0, 1fr);
        width: auto;
        padding: 6px 0 14px;
        border-radius: 0;
        background: none;
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .07);
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .res-app {
        padding: 8px 4px 16px;
        border-right: 0;
    }

    .res-app > b {
        font-size: 17px;
    }

    .res-links {
        padding: 6px 0 0;
    }

    .res-links__label {
        padding: 0 4px 6px;
    }

    .aurora-nav__panel .res-links__all {
        margin-top: 6px;
        padding: 12px 4px 0;
    }

    .aurora-nav__panel::before {
        display: none;
    }

    .aurora-nav__drop.is-open .aurora-nav__panel {
        display: grid;
        transform: none;
    }

    .aurora-nav__panel .res-item {
        min-height: 52px;
        padding: 8px 4px;
        border-radius: 10px;
    }

    .aurora-nav__panel .res-item::after {
        display: none;
    }
}

@keyframes nav-sheet-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 520px) {
    .aurora-brand { gap: 8px; }
    .aurora-brand__mark { width: 20px; height: 20px; }
    .aurora-brand__word { height: 20px; }
}

.aurora-nav .avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #2a2a30;
    border-radius: 10px;
    background: #111114;
    color: #d4d4d8;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.aurora-nav .avatar:hover,
.aurora-nav .avatar[aria-expanded="true"] {
    border-color: #4d8dff;
    background: #15151a;
}

.aurora-nav .avatar:focus-visible {
    outline: 2px solid var(--accent-ring, rgba(0, 170, 255, .55));
    outline-offset: 2px;
}

.aurora-nav .avatar svg {
    width: 18px;
    height: 18px;
}

.aurora-nav .avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.aurora-nav .avatar.is-guest {
    display: inline-flex;
    gap: 8px;
    width: auto;
    padding: 0 15px;
    border-color: transparent;
    background: #f4f4f5;
    color: #09090b;
    font: 700 14px var(--font, inherit);
    white-space: nowrap;
}

.aurora-nav .avatar.is-guest:hover {
    border-color: transparent;
    background: #fff;
}

@media (max-width: 720px) {
    .aurora-nav .avatar.is-guest {
        padding: 0 11px;
    }

    .aurora-nav .avatar.is-guest span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-nav.is-open .aurora-nav__links {
        animation: none;
    }

    .aurora-nav,
    .aurora-nav__panel,
    .aurora-nav__links .aurora-nav__panel a,
    .aurora-nav__links .aurora-nav__panel a::after {
        transition: none;
    }
}
