.forum-topbar {
    grid-template-columns: minmax(240px, 360px) minmax(340px, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.forum-topbar > * {
    min-width: 0;
}

.forum-topbar-brandcopy strong,
.forum-topbar-brandcopy span,
.forum-topbar-nav a span {
    overflow-wrap: anywhere;
}

.forum-topbar-nav {
    min-width: 0;
}

.forum-topbar-nav a {
    min-width: 0;
    justify-content: flex-start;
    padding: 10px 15px;
    white-space: normal;
    text-align: left;
    line-height: 1.2;
}

.forum-topbar-nav a span {
    min-width: 0;
}

.forum-topbar-actions {
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    row-gap: 0;
}

.forum-topbar-actions > * {
    min-width: 0;
}

.forum-language-switch {
    max-width: 100%;
    flex-wrap: nowrap;
}

.forum-language-switch a {
    min-width: 38px;
    padding: 10px 10px;
}

.forum-userbox,
.forum-guest-actions {
    max-width: 100%;
}

.forum-userbox-trigger,
.forum-auth-button {
    max-width: 100%;
}

.forum-userbox-trigger span {
    min-width: 0;
    max-width: 16ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-guest-actions {
    flex-wrap: nowrap;
}

@media (max-width: 1420px) {
    .forum-topbar {
        grid-template-columns: minmax(220px, 300px) minmax(300px, 1fr) auto;
        gap: 12px;
        padding: 12px 14px;
    }

    .forum-topbar-brand {
        gap: 12px;
    }

    .forum-topbar-brandmark {
        width: 74px;
        height: 52px;
    }

    .forum-topbar-brandmark img {
        width: 30px;
        height: 30px;
    }

    .forum-topbar-brandcopy strong {
        font-size: 1.08rem;
    }

    .forum-topbar-brandcopy span {
        font-size: 0.84rem;
    }

    .forum-topbar-nav {
        grid-template-columns: repeat(2, minmax(145px, 1fr));
        gap: 8px;
    }

    .forum-topbar-nav a {
        min-height: 46px;
        padding: 9px 13px;
        font-size: 0.94rem;
    }

    .forum-topbar-actions {
        gap: 8px;
    }

    .forum-icon-button,
    .forum-userbox-trigger,
    .forum-auth-button {
        min-height: 44px;
        padding: 0 14px;
    }

    .forum-icon-button {
        width: 44px;
        padding: 0;
    }

    .forum-language-switch {
        padding: 5px;
    }

    .forum-language-switch a {
        min-width: 36px;
        padding: 9px 9px;
    }

    .forum-userbox-trigger span {
        max-width: 10ch;
    }
}

@media (max-width: 1240px) {
    .forum-topbar {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .forum-topbar-brand,
    .forum-topbar-nav,
    .forum-topbar-actions {
        grid-column: auto;
    }

    .forum-topbar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

@media (max-width: 860px) {
    .forum-topbar-brand {
        gap: 12px;
    }

    .forum-topbar-brandmark {
        width: 72px;
        height: 52px;
    }

    .forum-topbar-brandmark img {
        width: 30px;
        height: 30px;
    }

    .forum-topbar-brandcopy strong {
        font-size: 1.08rem;
    }

    .forum-topbar-brandcopy span {
        font-size: 0.84rem;
    }

    .forum-topbar-nav {
        grid-template-columns: 1fr;
    }

    .forum-topbar-nav a {
        min-height: 48px;
    }

    .forum-guest-actions {
        flex-wrap: wrap;
    }

    .forum-language-switch {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .forum-topbar-actions {
        gap: 8px;
    }

    .forum-language-switch,
    .forum-userbox,
    .forum-guest-actions {
        width: 100%;
    }

    .forum-language-switch {
        justify-content: space-between;
    }

    .forum-userbox-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .forum-guest-actions .forum-auth-button {
        flex: 1 1 160px;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .forum-topbar {
        padding: 12px;
    }

    .forum-topbar-brand {
        align-items: flex-start;
    }

    .forum-topbar-brandmark {
        width: 64px;
        height: 48px;
    }

    .forum-icon-button {
        width: 44px;
        min-height: 44px;
    }

    .forum-language-switch a {
        min-width: 0;
        flex: 1 1 0;
    }
}

/* Fantasy control bar: final forum header pass. */
.forum-topbar {
    position: relative;
    isolation: isolate;
    overflow: visible;
    grid-template-columns: minmax(260px, 350px) minmax(450px, 1fr) minmax(420px, max-content);
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(48, 62, 106, 0.96), rgba(30, 38, 72, 0.98) 48%, rgba(33, 42, 79, 0.96)),
        linear-gradient(90deg, rgba(237, 151, 46, 0.12), rgba(124, 147, 240, 0.06));
    border: 1px solid rgba(179, 197, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.28),
        0 22px 54px rgba(6, 10, 24, 0.55);
}

.forum-topbar::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 21px;
    background: linear-gradient(90deg, rgb(255 186 88 / 4%), transparent 24%, transparent 76%, rgba(145, 171, 255, 0.12)), repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px);
    pointer-events: none;
}

.forum-topbar::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 160, 58, 0.55), rgba(151, 172, 255, 0.34), transparent);
    pointer-events: none;
}

.forum-topbar-brand {
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.forum-topbar-brandmark {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(22, 31, 63, 0.98), rgba(14, 20, 42, 0.98)),
        linear-gradient(180deg, rgba(230, 148, 40, 0.2), rgba(124, 146, 255, 0.06));
    border: 1px solid rgba(184, 205, 255, 0.14);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 22px rgba(6, 10, 24, 0.32);
}

.forum-topbar-brandmark::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    border: 1px solid rgb(0 0 0);
    pointer-events: none;
}

.forum-topbar-brandmark img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 2px rgba(49, 6, 5, 2.28));
    border-radius: 11px;
}

.forum-topbar-brandcopy {
    min-width: 0;
    gap: 5px;
}

.forum-topbar-brandcopy strong {
    color: #fff7e8;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-topbar-brandcopy span {
    color: #cbd7ff;
    max-width: 31ch;
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: normal;
}

.forum-topbar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(134px, 1fr));
    align-content: center;
    gap: 9px;
    min-width: 0;
}

.forum-topbar-nav-row {
    display: contents;
}

.forum-topbar-nav a {
    position: relative;
    justify-content: flex-start;
    min-height: 82px;
    padding: 0 45px;
    border-radius: 53px;
    color: #f2f5ff;
    background: linear-gradient(180deg, rgba(32, 43, 82, 0.88), rgba(23, 31, 62, 0.9));
    border: 1px solid rgba(164, 184, 248, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-topbar-nav a i {
    flex: 0 0 auto;
    color: #d8e2ff;
    font-size: 1rem;
}

.forum-topbar-nav a span {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-left: -2px;
    justify-content: flex-start;
}

.forum-topbar-nav a:hover,
.forum-topbar-nav a:focus-visible {
    transform: translateY(-1px);
    background:
        linear-gradient(180deg, rgba(53, 68, 117, 0.98), rgba(30, 40, 78, 0.98));
    border-color: rgba(190, 207, 255, 0.22);
}

.forum-topbar-nav a.is-active {
    color: #ffffff;
    background:
        linear-gradient(180deg, #f3a33b, #c86720 58%, #9c4319);
    border-color: rgba(255, 215, 128, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 24px rgba(190, 91, 21, 0.22);
}

.forum-topbar-nav a.is-active i {
    color: #ffffff;
}

.forum-topbar-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.forum-icon-button,
.forum-userbox-trigger,
.forum-auth-button {
    min-height: 44px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(25, 34, 70, 0.96), rgba(15, 22, 48, 0.98));
    border: 1px solid rgba(166, 184, 245, 0.1);
    color: #eef3ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 10px 20px rgba(7, 10, 25, 0.24);
}

.forum-icon-button {
    width: 44px;
    padding: 0;
    flex: 0 0 44px;
}

.forum-icon-button:hover,
.forum-icon-button:focus-visible,
.forum-userbox-trigger:hover,
.forum-userbox-trigger:focus-visible,
.forum-auth-button:hover,
.forum-auth-button:focus-visible {
    background:
        linear-gradient(180deg, rgba(45, 58, 106, 0.98), rgba(24, 34, 70, 0.98));
    border-color: rgba(191, 209, 255, 0.22);
}

.forum-icon-badge {
    top: -18px;
    right: 3px;
    min-width: 32px;
    height: 30px;
    padding: 0 4px;
    border-radius: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ff6d7d, #d82f48);
    border: 2px solid rgb(74 26 26 / 96%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.forum-language-switch {
    gap: 4px;
    padding: 5px;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(14, 21, 48, 0.98), rgba(10, 16, 37, 0.98));
    border: 1px solid rgba(164, 184, 245, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-language-switch a {
    min-width: 38px;
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #e4ebff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.forum-language-switch a.is-active,
.forum-language-switch a:hover,
.forum-language-switch a:focus-visible {
    background: linear-gradient(180deg, #9f68ff, #7653ed);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.forum-userbox-trigger {
    gap: 10px;
    padding: 0 13px 0 8px;
    flex: 0 1 176px;
}

.forum-userbox-trigger img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(235, 199, 121, 0.34);
}

.forum-userbox-trigger span {
    max-width: 10ch;
    color: #fff7e8;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
}

@media (max-width: 1580px) {
    .forum-topbar {
        grid-template-columns: minmax(230px, 310px) minmax(390px, 1fr) minmax(360px, max-content);
        gap: 13px;
        padding: 14px;
    }

    .forum-topbar-brandcopy strong {
        font-size: 1.06rem;
    }

    .forum-topbar-brandcopy span {
        max-width: 27ch;
        font-size: 0.82rem;
    }

    .forum-topbar-nav {
        grid-template-columns: repeat(3, minmax(118px, 1fr));
        gap: 8px;
    }

    .forum-topbar-nav a {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.87rem;
    }

    .forum-topbar-actions {
        gap: 8px;
    }

    .forum-icon-button {
        width: 42px;
        flex-basis: 42px;
        min-height: 42px;
    }

    .forum-language-switch a {
        min-width: 34px;
        padding: 0 8px;
    }

    .forum-userbox-trigger {
        flex-basis: 154px;
    }
}

@media (max-width: 1280px) {
    .forum-topbar {
        grid-template-columns: minmax(220px, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }

    .forum-topbar-brand {
        grid-area: brand;
    }

    .forum-topbar-nav {
        grid-area: nav;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .forum-topbar-actions {
        grid-area: actions;
    }
}

@media (max-width: 980px) {
    .forum-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "actions";
    }

    .forum-topbar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .forum-userbox-trigger {
        flex-basis: 190px;
    }
}

@media (max-width: 620px) {
    .forum-topbar {
        border-radius: 18px;
        padding: 12px;
    }

    .forum-topbar-brandmark {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .forum-topbar-brandcopy span {
        max-width: 100%;
    }

    .forum-topbar-nav {
        grid-template-columns: 1fr;
    }

    .forum-topbar-nav a {
        min-height: 42px;
    }

    .forum-language-switch,
    .forum-userbox,
    .forum-userbox-trigger,
    .forum-guest-actions {
        width: 100%;
    }

    .forum-language-switch {
        justify-content: space-between;
    }

    .forum-language-switch a {
        flex: 1 1 0;
    }
}

/* Overflow guard: keeps every topbar control inside its own cell at any zoom. */
.forum-topbar,
.forum-topbar *,
.forum-topbar *::before,
.forum-topbar *::after {
    box-sizing: border-box;
}

.forum-topbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr) minmax(340px, 470px);
    overflow: visible;
}

.forum-topbar > *,
.forum-topbar-brand,
.forum-topbar-nav,
.forum-topbar-actions,
.forum-topbar-nav-row,
.forum-userbox,
.forum-guest-actions {
    min-width: 0;
    max-width: 100%;
}

.forum-topbar-brand {
    overflow: hidden;
}

.forum-topbar-brandcopy {
    min-width: 0;
    max-width: 100%;
}

.forum-topbar-brandcopy strong,
.forum-userbox-trigger span,
.forum-auth-button {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-topbar-brandcopy span {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.forum-topbar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forum-topbar-nav a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 9px;
    overflow: hidden;
}

.forum-topbar-nav a i {
    width: 18px;
    min-width: 18px;
    text-align: center;
}

.forum-topbar-nav a span {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    row-gap: 8px;
    overflow: visible;
}

.forum-icon-button {
    flex: 0 0 42px;
    width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
}

.forum-language-switch {
    flex: 0 1 138px;
    min-width: 126px;
    max-width: 148px;
}

.forum-language-switch a {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 6px;
    padding-right: 6px;
}

.forum-userbox {
    flex: 1 1 146px;
    max-width: 178px;
}

.forum-userbox-trigger {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

.forum-userbox-trigger img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.forum-userbox-trigger span {
    min-width: 0;
    max-width: 100%;
}

.forum-userbox-trigger i {
    flex: 0 0 auto;
}

.forum-guest-actions {
    display: flex;
    flex: 1 1 260px;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-auth-button {
    flex: 1 1 120px;
    min-width: 0;
    justify-content: center;
}

@media (max-width: 1480px) {
    .forum-topbar {
        grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) minmax(320px, 430px);
        gap: 12px;
        padding: 14px;
    }

    .forum-topbar-brandmark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .forum-topbar-brandcopy strong {
        font-size: 1rem;
    }

    .forum-topbar-brandcopy span {
        font-size: 0.8rem;
    }

    .forum-topbar-nav a {
        min-height: 39px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.82rem;
    }
}

@media (max-width: 1280px) {
    .forum-topbar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "brand"
            "nav"
            "actions";
    }

    .forum-topbar-actions {
        justify-content: flex-start;
    }

    .forum-language-switch {
        flex-basis: 150px;
    }

    .forum-userbox {
        flex: 0 1 190px;
        max-width: 220px;
    }
}

@media (max-width: 720px) {
    .forum-topbar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-topbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(42px, 1fr));
        align-items: stretch;
    }

    .forum-language-switch,
    .forum-userbox,
    .forum-guest-actions {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }

    .forum-icon-button {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 460px) {
    .forum-topbar-nav {
        grid-template-columns: 1fr;
    }

    .forum-topbar-brand {
        align-items: flex-start;
    }

    .forum-topbar-brandmark {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .forum-topbar-actions {
        grid-template-columns: repeat(2, minmax(42px, 1fr));
    }
}

/* Account dropdown layer: opens above the forum banner and page content. */
.forum-shell,
.forum-main {
    overflow: visible;
}

.forum-topbar {
    z-index: 500;
    overflow: visible !important;
}

.forum-topbar-actions,
.forum-userbox {
    position: relative;
    overflow: visible !important;
}

.forum-userbox {
    z-index: 520;
}

.forum-userbox-panel {
    top: calc(100% + 10px);
    right: 0;
    z-index: 2000;
    width: min(390px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    max-height: min(620px, calc(100vh - 130px));
    overflow: auto;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(28, 36, 70, 0.98), rgba(15, 22, 47, 0.98)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 12px);
    border: 1px solid rgba(178, 197, 255, 0.32);
    box-shadow:
        0 26px 70px rgba(4, 8, 22, 0.72),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.forum-userbox-panel[hidden] {
    display: none !important;
}

.forum-hero,
.forum-toolbar,
.forum-layout {
    position: relative;
    z-index: 1;
}

@media (max-width: 720px) {
    .forum-userbox-panel {
        left: 0;
        right: auto;
        width: 100%;
        max-width: 100%;
        max-height: min(620px, calc(100vh - 160px));
    }
}

/* Dark gold forum topbar, shared by all forum pages. */
body.forum-page .forum-topbar {
    grid-template-columns: minmax(320px, 280px) minmax(610px, 1fr) minmax(320px, 430px);
    gap: 14px;
    padding: 12px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 174, 80, 0.14);
    background: linear-gradient(180deg, rgba(15, 14, 13, 0.97), rgba(8, 8, 8, 0.97)), linear-gradient(90deg, rgba(255, 161, 52, 0.08), transparent 40%, rgba(110, 70, 42, 0.05));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 225, 184, 0.06);
}

body.forum-page .forum-topbar::before {
    background:
        linear-gradient(90deg, rgba(255, 181, 86, 0.06), transparent 30%, transparent 70%, rgba(255, 118, 30, 0.04)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 26%);
}

body.forum-page .forum-topbar-brandmark {
    border-color: rgba(255, 174, 80, 0.18);
    background: linear-gradient(180deg, rgba(22, 18, 13, 0.98), rgba(8, 8, 8, 0.98));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 229, 183, 0.08);
}

body.forum-page .forum-topbar-brandcopy strong {
    color: #fff6e8;
}

body.forum-page .forum-topbar-brandcopy span {
    color: rgba(245, 234, 217, 0.6);
}

body.forum-page .forum-topbar-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(152px, 1fr));
    gap: 9px;
    margin-left: 2px;
}


body.forum-page .forum-topbar-nav-row {
    display: contents;
}

body.forum-page .forum-topbar-nav a {
    justify-content: center;
    min-height: 48px;
    padding: 0 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 174, 80, 0.1);
    background: linear-gradient(180deg, rgba(24, 23, 21, 0.92), rgba(10, 10, 10, 0.94));
    color: rgba(255, 244, 230, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    min-width: revert;
}

body.forum-page .forum-topbar-nav a i {
    color: rgba(255, 195, 96, 0.92);
}

body.forum-page .forum-topbar-nav a span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

body.forum-page .forum-topbar-nav a:hover,
body.forum-page .forum-topbar-nav a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 183, 83, 0.24);
    background: linear-gradient(180deg, rgba(38, 29, 18, 0.98), rgba(15, 13, 11, 0.98));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26), 0 0 22px rgba(255, 146, 37, 0.1);
}

body.forum-page .forum-topbar-nav a.is-active {
    border-color: rgba(255, 203, 127, 0.35);
    background: linear-gradient(180deg, #f0a23a, #b95b17);
    color: #fffaf0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 30px rgba(188, 98, 24, 0.3);
}

body.forum-page .forum-topbar-nav a.is-active i {
    color: #fff8ef;
}

body.forum-page .forum-icon-button,
body.forum-page .forum-language-switch,
body.forum-page .forum-userbox-trigger,
body.forum-page .forum-auth-button {
    border-color: rgba(255, 174, 80, 0.1);
    background: linear-gradient(180deg, rgba(20, 19, 18, 0.96), rgba(9, 9, 9, 0.96));
    color: rgba(255, 244, 230, 0.86);
}

body.forum-page .forum-language-switch a.is-active {
    background: linear-gradient(180deg, #f0a23a, #b95b17);
    color: #fffaf0;
}

@media (max-width: 1320px) {
    body.forum-page .forum-topbar {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "brand"
            "nav"
            "actions";
    }

    body.forum-page .forum-topbar-nav {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    body.forum-page .forum-topbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body.forum-page .forum-topbar-nav {
        grid-template-columns: minmax(0, 1fr);
    }
}
