.navcnt {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 23px;
    padding-right: 10px;
    padding-bottom: 23px;
    padding-left: 10px;
    gap: 10px;
    position: absolute;
    width: 100%;
    height: 66px;
    left: 0px;
    top: 0px;
    box-sizing: border-box;
    opacity: 1;
    z-index: 10;
}

.navcnt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.navbrd {
    position: absolute;
    width: 170px;
    max-width: 15vw;
    height: auto;
    aspect-ratio: 205 / 46;
    left: 15px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background: url('/static/branding/VERTEXIA.avif') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.navlnk,
.navtxt {
    font-family: 'Ubuntu', sans-serif;
    font-size: 20px;
    line-height: 23px;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: none;
    flex-grow: 0;
    height: 23px;
}

.navlnk {
    font-weight: 500;
}

.navtxt {
    font-weight: 400;
}

.navlnk,
.sbtn,
.pfpbtn,
.navbrd {
    transform: scale(1);
    opacity: 1;
    animation: navlinkentrybounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.15s ease, text-shadow 0.20s ease;
}

.navbrd {
    animation: navbarbrandentryslide 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.navlnk:hover,
.sbtn:hover,
.pfpbtn:hover,
.navbrd:hover {
    transform: scale(1.04);
    opacity: 1;
}

.navlnk:active,
.sbtn:active,
.pfpbtn:active,
.navbrd:active {
    transform: scale(0.96) rotateX(-15deg);
    transition: transform 0.08s ease;
}

/* terrible looking, im sorry */
.navhome { width: 56px; animation-delay: 0.4s; }
.navplay { width: 40px; animation-delay: 0.3s; }
.navshop { width: 47px; animation-delay: 0.2s; }
.navusers { width: 52px; animation-delay: 0.1s; }
.navclans { width: 51px; animation-delay: 0.2s; }
.navforum { width: 60px; animation-delay: 0.3s; }
.navupg { width: 80px; animation-delay: 0.4s; }

.navdiv {
    width: 1px;
    height: 23px;
    background-color: rgba(255, 255, 255, 0.2);
    flex: none;
    flex-grow: 0;
    opacity: 1;
    border-radius: 999px;
    animation: navdividerfade 0.8s ease backwards;
    animation-delay: 0.4s;
}

.sbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    gap: 10px;
    position: absolute;
    width: 433px;
    height: 66px;
    right: 0px;
    top: 0px;
    box-sizing: border-box;
    z-index: 11;
}

.sbtn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex: none;
    flex-grow: 0;
    height: 30px;
    padding: 0;
    margin: 0;
}

.pfpbtn {
    display: flex;
    align-items: center;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    text-decoration: none;
    flex: none;
    flex-grow: 0;
}

.sico {
    width: 20px;
    height: 20px;
    flex: none;
    flex-grow: 0;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.pfpimg {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.2);
    flex: none;
    flex-grow: 0;
    object-fit: cover;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.sbtnvrt { animation-delay: 0.7s; }
.sbtntix { animation-delay: 0.5s; }
.sbardiv { animation-delay: 0.3s; }
.sbtnmsg { animation-delay: 0.2s; }
.sbtnfrn { animation-delay: 0.1s; }
.sbtnpfp { animation-delay: 0s; }

@keyframes navlinkentrybounce {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(10px);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.15) translateY(-2px);
    }
    85% {
        transform: scale(0.94) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes navbarbrandentryslide {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes navdividerfade {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.udrop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
    position: absolute;
    width: 199px;
    height: auto;
    right: 10px;
    top: 72px;
    background: rgba(61, 61, 61, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    box-sizing: border-box;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.2s;
}

.udrop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropusr {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
    flex: none;
    flex-grow: 0;
    height: 20px;
}

.droplne {
    width: 169px;
    height: 0px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

.dropitm {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    flex: none;
    flex-grow: 0;
    height: 18px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.copyleft {
    font-family: 'Ubuntu';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    flex: none;
    flex-grow: 0;
    height: 18px;
}

.dropitm:hover {
    transform: translateX(4px);
    opacity: 0.85;
}

.dropitm:active {
    transform: scale(0.97);
}

.droplgo {
    color: #FA0000;
}

.mobbot {
    display: none;
    position: fixed;
    width: 100%;
    height: 66px;
    left: 0;
    bottom: 0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px;
    box-sizing: border-box;
    background: transparent;
    z-index: 1000;
}

.mobitm {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.mobitm img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    flex: none;
}

.mobcenter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.mobhead {
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
    flex: none;
}

.mobdiv {
    width: 1px;
    height: 23px;
    background: rgba(255, 255, 255, 0.2);
    flex: none;
    border-radius: 999px;
}

/* Mobile - hide desktop nav links, keep sbar centered */
@media (max-width: 768px), .mobmode {
    .navbrd,
    .navcnt > .navdiv,
    .navhome, .navplay, .navshop, .navusers, .navclans, .navforum, .navupg {
        display: none !important;
    }

    .mobbot {
        display: flex !important;
    }

    .sbar {
        width: auto;
        right: 10px;
        left: 10px;
        justify-content: center;
        gap: 10px;
        padding: 0;
    }

    .sico {
        width: 20px;
        height: 20px;
    }

    .pfpimg {
        width: 40px;
        height: 40px;
    }

    .navtxt {
        font-size: 18px;
        line-height: 20px;
        height: 20px;
    }

    .sbtn {
        gap: 4px;
        height: 28px;
    }
}

/* === Figma-accurate mobile (iPhone 17) - 402x874 === */
@media (max-width: 768px) {
    .navcnt {
        height: calc(66px + env(safe-area-inset-top, 0px)) !important;
        padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 10px !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%) !important;
        /* keep absolute as original - not fixed to avoid top shift */
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .navcnt::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%) !important;
        filter: none !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: -24px !important;
    }
    .sbar {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 66px !important;
        padding: 10px !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        top: env(safe-area-inset-top, 0px) !important;
        box-sizing: border-box !important;
    }
    .sbar .navlnk {
        display: flex !important;
        font-size: 20px !important;
        line-height: 23px !important;
        height: 23px !important;
        width: auto !important;
        color: #FFFFFF !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
    }
    .sbar .navdiv {
        display: block !important;
        width: 1px !important;
        height: 23px !important;
        background: rgba(255,255,255,0.2) !important;
    }
    .sico {
        width: 30px !important;
        height: 30px !important;
        filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.25)) !important;
    }
    .pfpimg {
        width: 46px !important;
        height: 46px !important;
    }
    .navtxt {
        font-family: 'Ubuntu', sans-serif !important;
        font-weight: 400 !important;
        font-size: 20px !important;
        line-height: 23px !important;
        height: 23px !important;
        color: #FFFFFF !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
        display: flex !important;
        align-items: center !important;
    }
    .sbtn {
        gap: 6px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
    }
    .navdiv, .sbardiv, .mobdiv {
        width: 1px !important;
        height: 23px !important;
        background: rgba(255,255,255,0.2) !important;
        border-radius: 999px !important;
        flex-shrink: 0 !important;
        border: none !important;
        transform: none !important;
    }
    .mobbot {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) 10px !important;
        gap: 16px !important;
        justify-content: center !important;
        align-items: center !important;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%) !important;
        box-sizing: border-box !important;
        z-index: 1000 !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: auto !important;
        contain: none !important;
    }
    .mobitm img {
        width: 46px !important;
        height: 46px !important;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)) !important;
    }
    .mobhead {
        width: 46px !important;
        height: 46px !important;
        border-radius: 999px !important;
        background: rgba(0,0,0,0.2) !important;
        filter: none !important;
    }
}

html.mobmode .navbrd,
html.mobmode .navcnt > .navdiv,
html.mobmode .navhome, html.mobmode .navplay, html.mobmode .navshop, html.mobmode .navusers, html.mobmode .navclans, html.mobmode .navforum, html.mobmode .navupg {
    display: none !important;
}
html.mobmode .mobbot {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) 10px !important;
    gap: 16px !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(180deg, rgba(61,61,61,0) 0%, rgba(61,61,61,0.42) 100%) !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
    contain: none !important;
}
html.mobmode .navcnt {
    height: calc(66px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 10px 10px !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(180deg, rgba(61,61,61,0.42) 0%, rgba(61,61,61,0) 100%) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
}
html.mobmode .navcnt::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%) !important;
    filter: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -24px !important;
}
html.mobmode .sbar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 66px !important;
    padding: 10px !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    top: env(safe-area-inset-top, 0px) !important;
}
html.mobmode .sbar .navlnk {
    display: flex !important;
    font-size: 20px !important;
    line-height: 23px !important;
    color: #FFFFFF !important;
}
html.mobmode .sico {
    width: 30px !important;
    height: 30px !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(0,0,0,0.18)) !important;
}
html.mobmode .pfpimg { width: 46px !important; height: 46px !important; }
html.mobmode .navtxt {
    font-size: 20px !important;
    line-height: 23px !important;
    height: 23px !important;
    color: #FFFFFF !important;
}
html.mobmode .sbtn { gap: 6px !important; height: 30px !important; }
html.mobmode .navdiv, html.mobmode .sbardiv, html.mobmode .mobdiv {
    width: 1px !important;
    height: 23px !important;
    background: rgba(255,255,255,0.2) !important;
}
html.mobmode .mobitm img { width: 46px !important; height: 46px !important; }
html.mobmode .mobhead { width: 46px !important; height: 46px !important; }

/* Hide avatar headshot from top bar (sbar/currency top) on mobile - keep bottom mobhead */
@media (max-width: 768px) {
    .sbar .pfpbtn,
    .sbar .pfpimg,
    .sbar .sbtnpfp,
    .sbar .udrop { display: none !important; }
}
html.mobmode .sbar .pfpbtn,
html.mobmode .sbar .pfpimg,
html.mobmode .sbar .sbtnpfp,
html.mobmode .sbar .udrop { display: none !important; }

/* True fixed bottom bar - prevent shift/jitter when scrolling / address bar shows */
@media (max-width: 768px), html.mobmode {
    .mobbot {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        contain: none !important;
        /* ensure viewport anchoring, not ancestor */
    }
    html, body {
        /* ensure no ancestor creates containing block for fixed */
        transform: none !important;
        filter: none !important;
        perspective: none !important;
        contain: none !important;
    }
}
html.mobmode, html.mobmode body {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
}