/* BattleRanker shared header — teal / pink / purple identity */

:root{
    --sh-bg:var(--theme-bg-deep);
    --sh-bg-2:var(--theme-surface);
    --sh-line:var(--theme-border);
    --sh-text:var(--theme-text);
    --sh-muted:var(--theme-text-muted);
    --sh-teal:var(--theme-page-accent,var(--theme-teal));
    --sh-pink:var(--theme-pink);
    --sh-purple:var(--theme-purple);
}

.site-header{
    position:relative;
    z-index:100;
    width:100%;
    border-bottom:1px solid var(--sh-line);
    background:
        radial-gradient(circle at 18% 0,var(--theme-role-surface-rgba-91-32-200-13-3ba1c6),transparent 260px),
        var(--sh-bg);
    color:var(--sh-text);
    box-shadow:0 8px 24px var(--theme-role-shadow-rgba-0-0-0-16-dc0c50);
}

.site-header .header-inner{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:26px;
}

.site-header .brand{
    flex:0 0 auto;
    min-width:205px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    color:var(--theme-role-text-fff);
    text-decoration:none;
    line-height:1;
    transform:translateY(3px);
}

.site-header .brand-main{
    display:block;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
    font-size:25px;
    line-height:.9;
    font-weight:950;
    font-style:italic;
    letter-spacing:-1.2px;
    white-space:nowrap;
}

.site-header .brand-accent{
    color:var(--sh-teal);
}

.site-header .brand-tagline{
    display:block;
    margin-top:2px;
    color:var(--sh-muted);
    font-size:8px;
    line-height:1;
    font-weight:700;
    letter-spacing:.08px;
}

.site-header .main-nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:4px;
}

.site-header .main-nav a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:40px;
    padding:0 13px;
    border-radius:7px;
    color:var(--theme-role-text-d4d8e5);
    text-decoration:none;
    font-size:10px;
    font-weight:950;
    letter-spacing:.15px;
    white-space:nowrap;
    transition:color .16s ease,background .16s ease;
}

.site-header .main-nav a:hover{
    color:var(--theme-role-text-fff);
    background:var(--theme-role-surface-151a35);
}

.site-header .main-nav a.active{
    color:var(--sh-teal);
    background:var(--theme-role-surface-rgba-255-255-255-055-ca2d2f);
}

.site-header .main-nav a.active::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:2px;
    height:3px;
    border-radius:3px;
    background:var(--sh-teal);
}

.site-header .header-actions{
    display:flex;
    align-items:center;
    gap:5px;
}

.site-header .login-link{
    display:flex;
    align-items:center;
    min-height:38px;
    padding:0 9px;
    color:var(--theme-role-text-c7cada);
    text-decoration:none;
    font-size:9px;
    font-weight:900;
    white-space:nowrap;
}

.site-header .login-link:hover{
    color:var(--theme-role-text-fff);
}

.site-header .join-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    margin-left:4px;
    padding:0 14px;
    border:1px solid var(--theme-role-border-ff67aa);
    border-radius:7px;
    background:var(--sh-pink);
    color:var(--theme-role-text-fff);
    text-decoration:none;
    font-size:9px;
    font-weight:950;
    white-space:nowrap;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}

.site-header .join-btn:hover{
    filter:brightness(1.06);
}

.site-menu-toggle{
    display:none;
    width:42px;
    height:42px;
    margin-left:auto;
    padding:0;
    border:0;
    border-radius:7px;
    background:var(--theme-surface);
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
}

.site-menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    border-radius:2px;
    background:var(--theme-role-surface-fff);
}

.site-mobile-menu{
    display:none;
    background:
        radial-gradient(circle at 90% 0,var(--theme-role-surface-rgba-91-32-200-18-56164c),transparent 240px),
        var(--theme-role-surface-090e22);
    border-top:1px solid var(--theme-role-border-2e3554);
    border-bottom:3px solid var(--sh-teal);
    box-shadow:0 15px 28px var(--theme-role-shadow-rgba-0-0-0-28-ca0b96);
}

.site-mobile-menu nav{
    width:min(100% - 28px,1200px);
    margin:0 auto;
    display:grid;
    padding:8px 0 13px;
}

.site-mobile-menu a{
    position:relative;
    display:block;
    padding:12px 5px;
    border-bottom:1px solid var(--theme-role-border-rgba-255-255-255-09-9e3854);
    color:var(--theme-role-text-f3f4f8);
    text-decoration:none;
    font-size:11px;
    font-weight:900;
}

.site-mobile-menu a.active{
    padding-left:13px;
    color:var(--sh-teal);
}

.site-mobile-menu a.active::before{
    content:"";
    position:absolute;
    left:1px;
    top:50%;
    width:5px;
    height:20px;
    border-radius:4px;
    background:var(--sh-teal);
    transform:translateY(-50%);
}

.site-mobile-menu a:last-child{
    border-bottom:0;
}

.site-mobile-menu .site-mobile-build{
    margin-top:9px;
    padding:13px 12px;
    border:0;
    border-radius:7px;
    background:var(--sh-pink);
    color:var(--theme-role-text-fff);
    text-align:center;
    box-shadow:3px 3px 0 var(--theme-shadow-deep);
}

@media(max-width:1050px){
    .site-header .header-inner{gap:15px}
    .site-header .brand{min-width:180px}
    .site-header .brand-main{font-size:22px}
    .site-header .main-nav a{
        padding-left:9px;
        padding-right:9px;
        font-size:9px;
    }
    .site-header .header-actions .login-link{display:none}
    .site-header .join-btn{
        padding-left:10px;
        padding-right:10px;
    }
}

@media(max-width:760px){
    .site-header .header-inner{
        min-height:56px;
        padding-top:5px;
        padding-bottom:5px;
    }

    .site-header .brand{
        min-width:0;
        transform:translateY(2px);
    }

    .site-header .brand-main{
        font-size:23px;
    }

    .site-header .brand-tagline{
        margin-top:2px;
        font-size:7px;
    }

    .site-header .main-nav,
    .site-header .header-actions{
        display:none;
    }

    .site-menu-toggle{
        display:flex;
    }

    .site-mobile-menu.is-open{
        display:block;
    }
}

@media(max-width:380px){
    .site-header .brand-main{
        font-size:21px;
    }

    .site-menu-toggle{
        width:39px;
        height:39px;
    }
}


/* Shared header V1.2 — page theme scope owns the visible accent */
.theme-ranking-electric .site-header{
    --sh-teal:var(--theme-header-accent,var(--theme-page-accent,var(--theme-teal)));
    --sh-cta:var(--theme-header-cta,var(--theme-pink));
}

.theme-ranking-electric .site-header .brand-accent,
.theme-ranking-electric .site-header .main-nav a.active,
.theme-ranking-electric .site-mobile-menu a.active{
    color:var(--sh-teal)!important;
}

.theme-ranking-electric .site-header .main-nav a.active::after,
.theme-ranking-electric .site-mobile-menu a.active::before,
.theme-ranking-electric .site-mobile-menu{
    border-color:var(--sh-teal)!important;
}

.theme-ranking-electric .site-header .main-nav a.active::after,
.theme-ranking-electric .site-mobile-menu a.active::before{
    background:var(--sh-teal)!important;
}

.theme-ranking-electric .site-header .join-btn,
.theme-ranking-electric .site-mobile-menu .site-mobile-build{
    border-color:var(--sh-cta)!important;
    background:var(--sh-cta)!important;
    color:var(--theme-role-text-101225)!important;
}


/* Shared header V1.4 — item page theme scope */
.theme-item-electric .site-header{
    --sh-teal:var(--theme-header-accent,var(--theme-page-accent,var(--theme-teal)));
    --sh-cta:var(--theme-header-cta,var(--theme-page-accent,var(--theme-pink)));
}

.theme-item-electric .site-header .brand-accent,
.theme-item-electric .site-header .main-nav a.active,
.theme-item-electric .site-mobile-menu a.active{
    color:var(--sh-teal)!important;
}

.theme-item-electric .site-header .main-nav a.active::after,
.theme-item-electric .site-mobile-menu a.active::before{
    background:var(--sh-teal)!important;
}

.theme-item-electric .site-header .join-btn,
.theme-item-electric .site-mobile-menu .site-mobile-build{
    border-color:var(--sh-cta)!important;
    background:var(--sh-cta)!important;
    color:var(--theme-ink)!important;
}


/* Shared header V1.5 — auth + create-battle scopes */
.theme-account-electric .site-header,
.theme-create-battle-electric .site-header{
    --sh-teal:var(--theme-header-accent,var(--theme-page-accent,var(--theme-teal)));
    --sh-cta:var(--theme-header-cta,var(--theme-page-accent,var(--theme-pink)));
}

.theme-account-electric .site-header .brand-accent,
.theme-account-electric .site-header .main-nav a.active,
.theme-account-electric .site-mobile-menu a.active,
.theme-create-battle-electric .site-header .brand-accent,
.theme-create-battle-electric .site-header .main-nav a.active,
.theme-create-battle-electric .site-mobile-menu a.active{
    color:var(--sh-teal)!important;
}

.theme-account-electric .site-header .main-nav a.active::after,
.theme-account-electric .site-mobile-menu a.active::before,
.theme-create-battle-electric .site-header .main-nav a.active::after,
.theme-create-battle-electric .site-mobile-menu a.active::before{
    background:var(--sh-teal)!important;
}

.theme-account-electric .site-header .join-btn,
.theme-account-electric .site-mobile-menu .site-mobile-build,
.theme-create-battle-electric .site-header .join-btn,
.theme-create-battle-electric .site-mobile-menu .site-mobile-build{
    border-color:var(--sh-cta)!important;
    background:var(--sh-cta)!important;
    color:var(--theme-ink)!important;
}


/* ================================================================
   BattleRanker shared header — Theme Sync V1
   Ensure all current page scopes obey their page accent.
   ================================================================ */
.theme-home-electric .site-header,
.theme-ranking-electric .site-header,
.theme-battle-arena .site-header,
.theme-item-electric .site-header,
.theme-account-electric .site-header,
.theme-create-battle-electric .site-header{
    --sh-teal:var(--theme-header-accent,var(--theme-page-accent,var(--theme-teal)));
    --sh-cta:var(--theme-header-cta,var(--theme-page-accent,var(--theme-pink)));
}

.theme-home-electric .site-header .brand-accent,
.theme-home-electric .site-header .main-nav a.active,
.theme-home-electric .site-mobile-menu a.active{
    color:var(--theme-page-accent)!important;
}

.theme-home-electric .site-header .main-nav a.active::after,
.theme-home-electric .site-mobile-menu a.active::before{
    background:var(--theme-page-accent)!important;
}

.theme-home-electric .site-header .join-btn,
.theme-home-electric .site-mobile-menu .site-mobile-build{
    border-color:var(--theme-page-accent)!important;
    background:var(--theme-page-accent)!important;
    color:var(--theme-ink)!important;
}



/* Shared header V1.6 — builder + account page scopes */
.theme-builder-electric .site-header,
.theme-account-electric .site-header{
    --sh-teal:var(--theme-header-accent,var(--theme-page-accent,var(--theme-teal)));
    --sh-cta:var(--theme-header-cta,var(--theme-page-accent,var(--theme-pink)));
}

.theme-builder-electric .site-header .brand-accent,
.theme-builder-electric .site-header .main-nav a.active,
.theme-builder-electric .site-mobile-menu a.active,
.theme-account-electric .site-header .brand-accent,
.theme-account-electric .site-header .main-nav a.active,
.theme-account-electric .site-mobile-menu a.active{
    color:var(--sh-teal)!important;
}

.theme-builder-electric .site-header .main-nav a.active::after,
.theme-builder-electric .site-mobile-menu a.active::before,
.theme-account-electric .site-header .main-nav a.active::after,
.theme-account-electric .site-mobile-menu a.active::before{
    background:var(--sh-teal)!important;
}

.theme-builder-electric .site-header .join-btn,
.theme-builder-electric .site-mobile-menu .site-mobile-build,
.theme-account-electric .site-header .join-btn,
.theme-account-electric .site-mobile-menu .site-mobile-build{
    border-color:var(--sh-cta)!important;
    background:var(--sh-cta)!important;
    color:var(--theme-ink)!important;
}


/* ================================================================
   Shared Header V2 — self-contained shell
   Do not rely on a page stylesheet to define .site-shell.
   This keeps header alignment identical on every route.
   ================================================================ */
.site-header .header-inner{
    width:min(1400px,calc(100% - 44px));
    margin-left:auto;
    margin-right:auto;
}

@media(max-width:720px){
    .site-header .header-inner{
        width:min(100% - 24px,1400px);
    }
}


/* ================================================================
   BattleRanker Shared Header V3 — CANONICAL HEADER LOCK
   One header identity on every public page. Page theme accent colours
   must not recolour or resize the global header.
   ================================================================ */
.site-header{
    --sh-bg:var(--theme-role-surface-090d20)!important;
    --sh-bg-2:var(--theme-role-surface-11162b)!important;
    --sh-line:var(--theme-role-border-29314f)!important;
    --sh-text:var(--theme-role-text-ffffff)!important;
    --sh-muted:var(--theme-role-text-858ca7)!important;
    --sh-teal:var(--theme-role-effect-e7ff00)!important;
    --sh-pink:var(--theme-role-text-ff3f91)!important;
    --sh-purple:var(--theme-role-effect-6b3cff)!important;
    background:var(--theme-role-surface-090d20)!important;
    border-bottom:1px solid var(--theme-role-border-29314f)!important;
    color:var(--theme-role-text-fff)!important;
    box-shadow:0 8px 24px var(--theme-role-shadow-rgba-0-0-0-16-dc0c50)!important;
}

.site-header .header-inner{
    width:min(1400px,calc(100% - 44px))!important;
    min-height:68px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:26px!important;
}

.site-header .brand{
    flex:0 0 auto!important;
    min-width:230px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    color:var(--theme-role-text-fff)!important;
    text-decoration:none!important;
    line-height:1!important;
    transform:translateY(3px)!important;
}

.site-header .brand-main{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif!important;
    font-size:25px!important;
    line-height:.9!important;
    font-weight:950!important;
    font-style:italic!important;
    letter-spacing:-1.2px!important;
    white-space:nowrap!important;
}

.site-header .brand-word{display:inline-block!important}
.site-header .brand-accent{color:var(--theme-role-text-e7ff00)!important}

.site-header .brand-logo-bolt{
    display:inline-flex!important;
    width:20px!important;
    height:28px!important;
    flex:0 0 20px!important;
    align-items:center!important;
    justify-content:center!important;
    transform:translateY(-1px) skewX(-5deg)!important;
    filter:drop-shadow(0 0 6px var(--theme-role-shadow-rgba-255-139-44-28-673d19))!important;
}
.site-header .brand-logo-bolt svg{
    display:block!important;
    width:100%!important;
    height:100%!important;
    overflow:visible!important;
}
.site-header .brand-logo-bolt path{fill:var(--theme-role-text-ff8b2c)!important}

.site-header .brand-tagline{
    display:block!important;
    margin-top:2px!important;
    margin-left:27px!important;
    color:var(--theme-role-text-858ca7)!important;
    font-size:8px!important;
    line-height:1!important;
    font-weight:700!important;
    letter-spacing:.08px!important;
}

.site-header .main-nav{
    margin-left:auto!important;
    display:flex!important;
    align-items:center!important;
    gap:4px!important;
}
.site-header .main-nav a{
    min-height:40px!important;
    padding:0 13px!important;
    border-radius:7px!important;
    color:var(--theme-role-text-d4d8e5)!important;
    background:transparent!important;
    font-size:10px!important;
    font-weight:950!important;
}
.site-header .main-nav a:hover{color:var(--theme-role-text-fff)!important;background:var(--theme-role-surface-151a35)!important}
.site-header .main-nav a.active{color:var(--theme-role-text-e7ff00)!important;background:var(--theme-role-surface-rgba-255-255-255-055-ca2d2f)!important}
.site-header .main-nav a.active::after{background:var(--theme-role-surface-e7ff00)!important}

.site-header .login-link{
    min-height:38px!important;
    padding:0 9px!important;
    color:var(--theme-role-text-c7cada)!important;
    font-size:9px!important;
    font-weight:900!important;
}
.site-header .login-link:hover{color:var(--theme-role-text-fff)!important}

.site-header .join-btn{
    min-height:40px!important;
    margin-left:4px!important;
    padding:0 14px!important;
    border:1px solid var(--theme-role-border-ff3f91)!important;
    border-radius:7px!important;
    background:var(--theme-role-surface-ff3f91)!important;
    color:var(--theme-role-text-fff)!important;
    font-size:9px!important;
    font-weight:950!important;
    box-shadow:3px 3px 0 var(--theme-role-shadow-060815)!important;
}

.site-mobile-menu{
    background:var(--theme-role-surface-090e22)!important;
    border-top:1px solid var(--theme-role-border-2e3554)!important;
    border-bottom:3px solid var(--theme-role-border-e7ff00)!important;
}
.site-mobile-menu a.active{color:var(--theme-role-text-e7ff00)!important}
.site-mobile-menu a.active::before{background:var(--theme-role-surface-e7ff00)!important}
.site-mobile-menu .site-mobile-build{
    border-color:var(--theme-role-border-ff3f91)!important;
    background:var(--theme-role-surface-ff3f91)!important;
    color:var(--theme-role-text-fff)!important;
}

@media(max-width:1050px){
    .site-header .header-inner{gap:15px!important}
    .site-header .brand{min-width:205px!important}
    .site-header .brand-main{font-size:22px!important;gap:6px!important}
    .site-header .brand-logo-bolt{width:18px!important;height:25px!important;flex-basis:18px!important}
    .site-header .brand-tagline{margin-left:24px!important}
    .site-header .main-nav a{padding-left:9px!important;padding-right:9px!important;font-size:9px!important}
}

@media(max-width:760px){
    .site-header .header-inner{
        width:min(100% - 24px,1400px)!important;
        min-height:56px!important;
        padding-top:5px!important;
        padding-bottom:5px!important;
    }
    .site-header .brand{min-width:0!important;transform:translateY(2px)!important}
    .site-header .brand-main{font-size:23px!important;gap:6px!important}
    .site-header .brand-logo-bolt{width:18px!important;height:26px!important;flex-basis:18px!important}
    .site-header .brand-tagline{margin-top:2px!important;margin-left:24px!important;font-size:7px!important}
    .site-header .main-nav,.site-header .header-actions{display:none!important}
    .site-menu-toggle{display:flex!important}
}

@media(max-width:380px){
    .site-header .brand-main{font-size:21px!important}
    .site-header .brand-logo-bolt{width:17px!important;height:24px!important;flex-basis:17px!important}
}

/* ================================================================
   BattleRanker Shared Header V4 — LOGO GEOMETRY LOCK
   Unique brh-* classes keep page CSS from changing the logo spacing.
   The tagline is positioned explicitly, so every page renders it at
   exactly the same distance beneath the logo.
   ================================================================ */
.site-header a.brand{
    position:relative!important;
    width:230px!important;
    min-width:230px!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    line-height:normal!important;
    transform:none!important;
    overflow:visible!important;
}

.site-header .brh-logo-line{
    position:absolute!important;
    left:0!important;
    top:1px!important;
    height:28px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    white-space:nowrap!important;
    line-height:1!important;
}

.site-header .brh-logo-bolt{
    width:20px!important;
    height:28px!important;
    flex:0 0 20px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    line-height:1!important;
    transform:skewX(-5deg)!important;
    filter:drop-shadow(0 0 6px var(--theme-role-shadow-rgba-255-139-44-28-673d19))!important;
}

.site-header .brh-logo-bolt svg{
    display:block!important;
    width:20px!important;
    height:28px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}

.site-header .brh-logo-bolt path{
    fill:var(--theme-role-text-ff8b2c)!important;
}

.site-header .brh-logo-word{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif!important;
    font-size:25px!important;
    line-height:25px!important;
    font-weight:950!important;
    font-style:italic!important;
    letter-spacing:-1.2px!important;
    color:var(--theme-role-text-fff)!important;
    white-space:nowrap!important;
}

.site-header .brh-logo-accent{
    color:var(--theme-role-text-e7ff00)!important;
}

.site-header .brh-logo-tagline{
    position:absolute!important;
    left:27px!important;
    top:31px!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-family:Arial,sans-serif!important;
    font-size:8px!important;
    line-height:8px!important;
    font-weight:700!important;
    font-style:normal!important;
    letter-spacing:.08px!important;
    color:var(--theme-role-text-858ca7)!important;
    white-space:nowrap!important;
}

@media(max-width:1050px){
    .site-header a.brand{
        width:205px!important;
        min-width:205px!important;
        height:39px!important;
        min-height:39px!important;
    }
    .site-header .brh-logo-line{
        top:1px!important;
        height:25px!important;
        gap:6px!important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:18px!important;
        height:25px!important;
    }
    .site-header .brh-logo-bolt{flex-basis:18px!important}
    .site-header .brh-logo-word{
        font-size:22px!important;
        line-height:22px!important;
    }
    .site-header .brh-logo-tagline{
        left:24px!important;
        top:28px!important;
        font-size:7px!important;
        line-height:7px!important;
    }
}

@media(max-width:760px){
    .site-header a.brand{
        width:210px!important;
        min-width:0!important;
        height:40px!important;
        min-height:40px!important;
    }
    .site-header .brh-logo-line{
        top:1px!important;
        height:26px!important;
        gap:6px!important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:18px!important;
        height:26px!important;
    }
    .site-header .brh-logo-bolt{flex-basis:18px!important}
    .site-header .brh-logo-word{
        font-size:23px!important;
        line-height:23px!important;
    }
    .site-header .brh-logo-tagline{
        left:24px!important;
        top:29px!important;
        font-size:7px!important;
        line-height:7px!important;
    }
}

@media(max-width:380px){
    .site-header a.brand{
        width:195px!important;
    }
    .site-header .brh-logo-line{
        height:24px!important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:17px!important;
        height:24px!important;
    }
    .site-header .brh-logo-bolt{flex-basis:17px!important}
    .site-header .brh-logo-word{
        font-size:21px!important;
        line-height:21px!important;
    }
    .site-header .brh-logo-tagline{
        left:23px!important;
        top:27px!important;
    }
}


/* ================================================================
   BattleRanker Shared Header V5 — IMPACT HEADER
   Larger, darker, more authoritative. Shared routes and mobile
   behaviour remain intact; this is a visual hierarchy upgrade.
   ================================================================ */

.site-header{
    --brh-charcoal:var(--theme-role-effect-080a0f) !important;
    --brh-charcoal-2:var(--theme-role-effect-101319) !important;
    --brh-rule:var(--theme-role-border-d9dadd) !important;
    --brh-white:var(--theme-role-text-f8f8f6) !important;
    --brh-yellow:var(--theme-role-effect-e7ff00) !important;

    background:
        linear-gradient(180deg,var(--theme-role-surface-0b0d12) 0%,var(--theme-role-surface-07090d) 100%) !important;
    border-bottom:3px solid var(--brh-rule) !important;
    box-shadow:0 8px 26px var(--theme-role-shadow-rgba-0-0-0-30-6d79cf) !important;
}

.site-header .header-inner{
    width:min(1500px,calc(100% - 46px)) !important;
    min-height:84px !important;
    gap:34px !important;
}

/* Bigger logo with a mostly white identity. */
.site-header a.brand{
    width:300px !important;
    min-width:300px !important;
    height:54px !important;
    min-height:54px !important;
}

.site-header .brh-logo-line{
    top:2px !important;
    height:37px !important;
    gap:8px !important;
}

.site-header .brh-logo-bolt,
.site-header .brh-logo-bolt svg{
    width:24px !important;
    height:34px !important;
}
.site-header .brh-logo-bolt{
    flex-basis:24px !important;
}

.site-header .brh-logo-word{
    color:var(--brh-white) !important;
    font-size:34px !important;
    line-height:34px !important;
    letter-spacing:-1.6px !important;
}

.site-header .brh-logo-accent{
    color:var(--brh-white) !important;
}

.site-header .brh-logo-tagline{
    left:32px !important;
    top:42px !important;
    color:var(--theme-role-text-90949c) !important;
    font-size:8px !important;
    line-height:8px !important;
    letter-spacing:.02em !important;
}

/* Main navigation now has stature instead of reading like utility links. */
.site-header .main-nav{
    gap:8px !important;
}

.site-header .main-nav a{
    position:relative !important;
    min-height:54px !important;
    padding:0 17px !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--brh-white) !important;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif !important;
    font-size:16px !important;
    line-height:1 !important;
    font-style:normal !important;
    font-weight:1000 !important;
    letter-spacing:-.015em !important;
    text-transform:uppercase !important;
}

.site-header .main-nav a:hover{
    color:var(--brh-yellow) !important;
    background:transparent !important;
}

.site-header .main-nav a.active{
    color:var(--brh-white) !important;
    background:transparent !important;
}

.site-header .main-nav a.active::after{
    left:17px !important;
    right:17px !important;
    bottom:3px !important;
    height:4px !important;
    border-radius:0 !important;
    background:var(--brh-yellow) !important;
    box-shadow:0 0 10px var(--theme-role-shadow-rgba-231-255-0-18-55f4af) !important;
}

/* Account area: readable, white, deliberately secondary to the nav. */
.site-header .header-actions{
    gap:12px !important;
}

.site-header .login-link{
    min-height:48px !important;
    padding:0 3px !important;
    color:var(--brh-white) !important;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif !important;
    font-size:13px !important;
    font-weight:1000 !important;
    letter-spacing:-.01em !important;
}

.site-header .login-link:hover{
    color:var(--brh-yellow) !important;
}

.site-header .header-auth-pair{
    display:flex;
    align-items:center;
    gap:5px;
    color:var(--theme-role-text-7f838b);
}

/* Keep the existing conversion CTA, but make it fit the stronger shell. */
.site-header .join-btn{
    min-height:48px !important;
    margin-left:7px !important;
    padding:0 18px !important;
    border:1px solid var(--brh-yellow) !important;
    border-radius:5px !important;
    background:var(--brh-yellow) !important;
    color:var(--theme-role-text-090b0f) !important;
    font-family:"Arial Narrow","Segoe UI",Arial,sans-serif !important;
    font-size:12px !important;
    font-weight:1000 !important;
    box-shadow:4px 4px 0 var(--theme-role-shadow-000) !important;
}
.site-header .join-btn:hover{
    filter:brightness(1.05) !important;
}

/* Tablet: preserve the stature but avoid crowding. */
@media(max-width:1180px){
    .site-header .header-inner{
        gap:20px !important;
    }
    .site-header a.brand{
        width:250px !important;
        min-width:250px !important;
    }
    .site-header .brh-logo-word{
        font-size:29px !important;
        line-height:29px !important;
    }
    .site-header .brh-logo-line{
        height:32px !important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:21px !important;
        height:30px !important;
    }
    .site-header .brh-logo-bolt{flex-basis:21px !important}
    .site-header .brh-logo-tagline{
        left:29px !important;
        top:37px !important;
    }
    .site-header .main-nav a{
        padding-left:11px !important;
        padding-right:11px !important;
        font-size:14px !important;
    }
    .site-header .header-actions{
        gap:8px !important;
    }
    .site-header .join-btn{
        padding-left:12px !important;
        padding-right:12px !important;
        font-size:10px !important;
    }
}

/* At this point use the established burger menu rather than crush the header. */
@media(max-width:930px){
    .site-header .header-inner{
        min-height:76px !important;
    }
    .site-header .main-nav,
    .site-header .header-actions{
        display:none !important;
    }
    .site-menu-toggle{
        display:flex !important;
        width:48px !important;
        height:48px !important;
        border:1px solid var(--theme-role-border-343840) !important;
        border-radius:4px !important;
        background:var(--theme-role-surface-12151b) !important;
    }
    .site-menu-toggle span{
        width:24px !important;
        height:3px !important;
        background:var(--theme-role-surface-fff) !important;
    }
}

/* Mobile gets the same visual identity, not the tiny previous logo. */
@media(max-width:760px){
    .site-header{
        border-bottom-width:2px !important;
    }
    .site-header .header-inner{
        width:calc(100% - 24px) !important;
        min-height:68px !important;
        padding:6px 0 !important;
    }
    .site-header a.brand{
        width:245px !important;
        min-width:0 !important;
        height:48px !important;
        min-height:48px !important;
    }
    .site-header .brh-logo-line{
        top:2px !important;
        height:31px !important;
        gap:7px !important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:20px !important;
        height:29px !important;
    }
    .site-header .brh-logo-bolt{flex-basis:20px !important}
    .site-header .brh-logo-word{
        font-size:27px !important;
        line-height:27px !important;
    }
    .site-header .brh-logo-tagline{
        left:27px !important;
        top:35px !important;
        font-size:7px !important;
        line-height:7px !important;
    }

    .site-mobile-menu{
        background:var(--theme-role-surface-090b10) !important;
        border-top:1px solid var(--theme-role-border-282c33) !important;
        border-bottom:3px solid var(--brh-yellow) !important;
    }
    .site-mobile-menu a{
        padding:15px 5px !important;
        color:var(--theme-role-text-f3f3f2) !important;
        font-family:"Arial Narrow","Segoe UI",Arial,sans-serif !important;
        font-size:14px !important;
        font-weight:1000 !important;
    }
    .site-mobile-menu a.active{
        color:var(--brh-yellow) !important;
    }
    .site-mobile-menu a.active::before{
        background:var(--brh-yellow) !important;
    }
    .site-mobile-menu .site-mobile-build{
        background:var(--brh-yellow) !important;
        color:var(--theme-role-text-090b0f) !important;
        border-radius:4px !important;
    }
}

@media(max-width:390px){
    .site-header a.brand{
        width:220px !important;
    }
    .site-header .brh-logo-word{
        font-size:24px !important;
        line-height:24px !important;
    }
    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:18px !important;
        height:27px !important;
    }
    .site-header .brh-logo-bolt{flex-basis:18px !important}
    .site-header .brh-logo-tagline{
        left:25px !important;
        top:33px !important;
    }
}


/* ================================================================
   BattleRanker Shared Header V6 — BLUE IMPACT HEADER
   Keeps the larger V5 stature, but reconnects the header to the
   playful deep-blue BattleRanker page palette.
   ================================================================ */

.site-header{
    --brh-blue-deep:var(--theme-role-effect-0b1020) !important;
    --brh-blue-mid:var(--theme-role-effect-0f1630) !important;
    --brh-blue-line:var(--theme-role-border-313a5c) !important;
    --brh-white:var(--theme-role-text-f8f8f6) !important;
    --brh-yellow:var(--theme-role-effect-e7ff00) !important;

    background:
        radial-gradient(circle at 20% -40%,var(--theme-role-surface-rgba-72-92-180-20-6bbef4),transparent 340px),
        radial-gradient(circle at 88% 0,var(--theme-role-surface-rgba-91-32-200-10-de2862),transparent 300px),
        linear-gradient(180deg,var(--theme-role-surface-0d1328) 0%,var(--theme-role-surface-0a0f21) 100%) !important;
    border-bottom:2px solid var(--theme-role-border-39415f) !important;
    box-shadow:0 8px 24px var(--theme-role-shadow-rgba-0-0-0-22-41d185) !important;
}

/* Keep the strong white logo/nav identity from V5. */
.site-header .brh-logo-word,
.site-header .brh-logo-accent,
.site-header .main-nav a,
.site-header .login-link{
    color:var(--brh-white) !important;
}

/* A little less stark than the charcoal version. */
.site-header .brh-logo-tagline{
    color:var(--theme-role-text-8e96ad) !important;
}

.site-header .main-nav a:hover{
    color:var(--brh-yellow) !important;
    background:var(--theme-role-surface-rgba-255-255-255-035-b36273) !important;
}

.site-header .main-nav a.active{
    color:var(--brh-white) !important;
    background:var(--theme-role-surface-rgba-255-255-255-035-b36273) !important;
}

.site-header .main-nav a.active::after{
    background:var(--brh-yellow) !important;
    box-shadow:0 0 12px var(--theme-role-shadow-rgba-231-255-0-20-f657aa) !important;
}

/* Keep the CTA yellow so the header still has a strong action point. */
.site-header .join-btn{
    border-color:var(--brh-yellow) !important;
    background:var(--brh-yellow) !important;
    color:var(--theme-role-text-0b1020) !important;
    box-shadow:4px 4px 0 var(--theme-role-shadow-050816) !important;
}

/* Mobile menu should feel like the same header, not a separate black sheet. */
.site-mobile-menu{
    background:
        radial-gradient(circle at 90% 0,var(--theme-role-surface-rgba-91-32-200-12-152fa5),transparent 240px),
        var(--theme-role-surface-0b1022) !important;
    border-top:1px solid var(--theme-role-border-303856) !important;
    border-bottom:3px solid var(--brh-yellow) !important;
}

.site-menu-toggle{
    border-color:var(--theme-role-border-3a4262) !important;
    background:var(--theme-role-surface-11172d) !important;
}

.site-mobile-menu a{
    color:var(--theme-role-text-f1f2f6) !important;
}

.site-mobile-menu a.active{
    color:var(--brh-yellow) !important;
}

.site-mobile-menu a.active::before{
    background:var(--brh-yellow) !important;
}

.site-mobile-menu .site-mobile-build{
    background:var(--brh-yellow) !important;
    color:var(--theme-role-text-0b1020) !important;
}


/* ================================================================
   BattleRanker Shared Header V7 — CENTRED CORE NAV
   BATTLE / RANKINGS / RESULTS form their own centred group.
   CREATE is removed from the shared navigation in site-header.php.
   ================================================================ */
@media(min-width:931px){
    .site-header .header-inner{
        position:relative !important;
    }

    .site-header .main-nav{
        position:absolute !important;
        left:50% !important;
        top:50% !important;
        margin:0 !important;
        transform:translate(-50%,-50%) !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:14px !important;
    }

    .site-header .main-nav a{
        min-height:56px !important;
        padding-left:18px !important;
        padding-right:18px !important;
        font-size:18px !important;
        letter-spacing:-.01em !important;
    }

    .site-header .main-nav a.active::after{
        left:18px !important;
        right:18px !important;
    }

    .site-header .header-actions{
        margin-left:auto !important;
    }
}

@media(max-width:1180px) and (min-width:931px){
    .site-header .main-nav{
        gap:8px !important;
    }

    .site-header .main-nav a{
        padding-left:12px !important;
        padding-right:12px !important;
        font-size:16px !important;
    }

    .site-header .main-nav a.active::after{
        left:12px !important;
        right:12px !important;
    }
}


/* ================================================================
   BattleRanker Shared Header V8 — CORE NAV ICONS
   Small yellow inline SVG marks for the three prime destinations.
   ================================================================ */
@media(min-width:931px){
    .site-header .main-nav a{
        gap:7px !important;
    }

    .site-header .main-nav a > span:last-child{
        display:inline-block !important;
        line-height:1 !important;
    }

    .site-header .brh-nav-icon{
        flex:0 0 auto !important;
        width:18px !important;
        height:20px !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        color:var(--brh-yellow,var(--theme-role-text-e7ff00)) !important;
        line-height:1 !important;
        transform:translateY(-1px) !important;
        filter:drop-shadow(0 0 4px var(--theme-role-shadow-rgba-231-255-0-14-5672f3));
    }

    .site-header .brh-nav-icon svg{
        display:block !important;
        width:100% !important;
        height:100% !important;
        overflow:visible !important;
    }

    .site-header .brh-nav-icon path,
    .site-header .brh-nav-icon rect{
        fill:currentColor;
    }

    .site-header .brh-nav-icon-rankings,
    .site-header .brh-nav-icon-results{
        width:19px !important;
    }

    .site-header .main-nav a:hover .brh-nav-icon,
    .site-header .main-nav a.active .brh-nav-icon{
        filter:drop-shadow(0 0 7px var(--theme-role-shadow-rgba-231-255-0-28-c841cc));
    }
}

@media(max-width:1180px) and (min-width:931px){
    .site-header .main-nav a{
        gap:6px !important;
    }

    .site-header .brh-nav-icon{
        width:16px !important;
        height:18px !important;
    }

    .site-header .brh-nav-icon-rankings,
    .site-header .brh-nav-icon-results{
        width:17px !important;
    }
}

@media(max-width:930px){
    .site-header .brh-nav-icon{
        display:none !important;
    }
}

/* ================================================================
   BattleRanker Shared Header V8.1 — LOGO BOLT ACCENT SYNC
   Match the logo lightning to the same yellow used by nav icons.
   Geometry/spacing unchanged.
   ================================================================ */
.site-header .brh-logo-bolt{
    filter:drop-shadow(0 0 6px var(--theme-role-shadow-rgba-231-255-0-22-cb9295)) !important;
}

.site-header .brh-logo-bolt path{
    fill:var(--brh-yellow,var(--theme-role-text-e7ff00)) !important;
}



/* ================================================================
   BattleRanker Shared Header V8.2 — clearer logo tagline
   ================================================================ */
.site-header .brh-logo-tagline{
    font-size:10px !important;
    line-height:10px !important;
    font-weight:800 !important;
    letter-spacing:.02em !important;
    color:var(--theme-role-text-a9b0c3) !important;
}

@media(max-width:760px){
    .site-header .brh-logo-tagline{
        font-size:8.5px !important;
        line-height:9px !important;
    }
}

@media(max-width:390px){
    .site-header .brh-logo-tagline{
        font-size:8px !important;
        line-height:8.5px !important;
    }
}


/* ================================================================
   BattleRanker Shared Header V8.3 — MIDNIGHT TEAL SYNC
   Remove the original blue/purple glow from this palette only and
   use the same Teko display face as the rest of Midnight Teal.
   Original Blue and Light remain unchanged.
   ================================================================ */
html[data-site-theme="midnight-teal"] .site-header{
    background:
        radial-gradient(circle at 18% -45%,rgba(23,105,94,.14),transparent 360px),
        radial-gradient(circle at 88% 0,rgba(34,139,117,.06),transparent 320px),
        linear-gradient(180deg,#081719 0%,#061214 100%) !important;
    border-bottom-color:#294143 !important;
    box-shadow:0 8px 24px rgba(0,0,0,.28) !important;
}

html[data-site-theme="midnight-teal"] .site-header .brh-logo-word{
    font-family:var(--theme-font-display,Teko,"Arial Narrow",sans-serif) !important;
}

html[data-site-theme="midnight-teal"] .site-mobile-menu{
    background:
        radial-gradient(circle at 90% 0,rgba(34,139,117,.08),transparent 240px),
        #071416 !important;
    border-top-color:#294143 !important;
}

html[data-site-theme="midnight-teal"] .site-menu-toggle{
    border-color:#355254 !important;
    background:#0a1b1d !important;
}


/* ================================================================
   BattleRanker Shared Header V8.4 — LARGER CLEAN WORDMARK
   Tagline and beta label are removed in site-header.php. Centre the
   remaining logo lockup vertically and give it stronger header scale.
   ================================================================ */
.site-header a.brand{
    width:340px !important;
    min-width:340px !important;
    height:56px !important;
    min-height:56px !important;
}

.site-header .brh-logo-line{
    top:50% !important;
    height:44px !important;
    gap:10px !important;
    transform:translateY(-50%) !important;
}

.site-header .brh-logo-bolt,
.site-header .brh-logo-bolt svg{
    width:30px !important;
    height:42px !important;
}

.site-header .brh-logo-bolt{
    flex-basis:30px !important;
}

.site-header .brh-logo-word{
    font-size:42px !important;
    line-height:42px !important;
    letter-spacing:-1.8px !important;
}

@media(max-width:1180px) and (min-width:931px){
    .site-header a.brand{
        width:285px !important;
        min-width:285px !important;
    }

    .site-header .brh-logo-line{
        height:38px !important;
        gap:8px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:26px !important;
        height:37px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:26px !important;
    }

    .site-header .brh-logo-word{
        font-size:36px !important;
        line-height:36px !important;
    }
}

@media(max-width:930px){
    .site-header a.brand{
        width:285px !important;
        min-width:0 !important;
        height:52px !important;
        min-height:52px !important;
    }

    .site-header .brh-logo-line{
        height:37px !important;
        gap:8px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:25px !important;
        height:36px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:25px !important;
    }

    .site-header .brh-logo-word{
        font-size:35px !important;
        line-height:35px !important;
    }
}

@media(max-width:390px){
    .site-header a.brand{
        width:245px !important;
    }

    .site-header .brh-logo-line{
        height:33px !important;
        gap:7px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:22px !important;
        height:32px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:22px !important;
    }

    .site-header .brh-logo-word{
        font-size:31px !important;
        line-height:31px !important;
    }
}

/* ================================================================
   BattleRanker Shared Header V8.5 — COMPACT HEADER
   Tightens the V8.4 header without changing its visual identity.
   ================================================================ */

/* Desktop: reduce overall header height and spacing. */
.site-header .header-inner{
    min-height:72px !important;
    gap:26px !important;
}

/* Slightly smaller wordmark footprint. */
.site-header a.brand{
    width:310px !important;
    min-width:310px !important;
    height:48px !important;
    min-height:48px !important;
}

.site-header .brh-logo-line{
    height:38px !important;
    gap:8px !important;
}

/* Reduce the main logo lightning bolt. */
.site-header .brh-logo-bolt,
.site-header .brh-logo-bolt svg{
    width:24px !important;
    height:34px !important;
}

.site-header .brh-logo-bolt{
    flex-basis:24px !important;
}

.site-header .brh-logo-word{
    font-size:38px !important;
    line-height:38px !important;
}

/* Pull the main navigation in slightly. */
@media(min-width:931px){
    .site-header .main-nav{
        gap:10px !important;
    }

    .site-header .main-nav a{
        min-height:48px !important;
        padding-left:15px !important;
        padding-right:15px !important;
        font-size:17px !important;
    }

    .site-header .main-nav a.active::after{
        left:15px !important;
        right:15px !important;
        bottom:2px !important;
        height:3px !important;
    }

    .site-header .header-actions{
        gap:9px !important;
    }
}

/* Smaller, cleaner Build a Ranking CTA. */
.site-header .join-btn{
    min-height:40px !important;
    margin-left:5px !important;
    padding:0 14px !important;
    border-radius:4px !important;
    font-size:11px !important;
    box-shadow:3px 3px 0 var(--theme-role-shadow-050816) !important;
}

/* Tablet: keep everything comfortably inside the available width. */
@media(max-width:1180px) and (min-width:931px){
    .site-header .header-inner{
        min-height:68px !important;
        gap:16px !important;
    }

    .site-header a.brand{
        width:255px !important;
        min-width:255px !important;
        height:44px !important;
        min-height:44px !important;
    }

    .site-header .brh-logo-line{
        height:34px !important;
        gap:7px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:21px !important;
        height:30px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:21px !important;
    }

    .site-header .brh-logo-word{
        font-size:33px !important;
        line-height:33px !important;
    }

    .site-header .main-nav a{
        min-height:46px !important;
        padding-left:10px !important;
        padding-right:10px !important;
        font-size:15px !important;
    }

    .site-header .join-btn{
        min-height:38px !important;
        padding-left:11px !important;
        padding-right:11px !important;
        font-size:10px !important;
    }
}

/* Burger breakpoint: make the shell less tall too. */
@media(max-width:930px){
    .site-header .header-inner{
        min-height:62px !important;
    }

    .site-header a.brand{
        width:255px !important;
        height:44px !important;
        min-height:44px !important;
    }

    .site-header .brh-logo-line{
        height:33px !important;
        gap:7px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:21px !important;
        height:30px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:21px !important;
    }

    .site-header .brh-logo-word{
        font-size:32px !important;
        line-height:32px !important;
    }

    .site-menu-toggle{
        width:42px !important;
        height:42px !important;
    }

    .site-menu-toggle span{
        width:22px !important;
        height:2px !important;
    }
}

/* Mobile: retain presence without wasting vertical space. */
@media(max-width:760px){
    .site-header .header-inner{
        min-height:58px !important;
        padding:4px 0 !important;
    }

    .site-header a.brand{
        width:235px !important;
        height:42px !important;
        min-height:42px !important;
    }

    .site-header .brh-logo-line{
        height:31px !important;
        gap:7px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:20px !important;
        height:28px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:20px !important;
    }

    .site-header .brh-logo-word{
        font-size:30px !important;
        line-height:30px !important;
    }
}

@media(max-width:390px){
    .site-header a.brand{
        width:215px !important;
    }

    .site-header .brh-logo-line{
        height:29px !important;
        gap:6px !important;
    }

    .site-header .brh-logo-bolt,
    .site-header .brh-logo-bolt svg{
        width:18px !important;
        height:26px !important;
    }

    .site-header .brh-logo-bolt{
        flex-basis:18px !important;
    }

    .site-header .brh-logo-word{
        font-size:28px !important;
        line-height:28px !important;
    }
}

/* ================================================================
   BattleRanker Shared Header V8.6 — SHALLOW WORDMARK HEADER
   Reference direction: compact bar, no decorative icons, white/yellow
   wordmark. Main navigation type size deliberately remains unchanged.
   ================================================================ */

/* Make the global header genuinely shallow. */
.site-header .header-inner{
    min-height:60px !important;
    gap:22px !important;
}

/* Clean wordmark: no lightning mark, less reserved width. */
.site-header a.brand{
    width:240px !important;
    min-width:240px !important;
    height:42px !important;
    min-height:42px !important;
}

.site-header .brh-logo-line{
    top:50% !important;
    height:36px !important;
    gap:0 !important;
    transform:translateY(-50%) !important;
}

.site-header .brh-logo-bolt,
.site-header .brand-logo-bolt{
    display:none !important;
}

.site-header .brh-logo-word{
    font-size:36px !important;
    line-height:36px !important;
    letter-spacing:-1.45px !important;
    color:var(--brh-white,var(--theme-role-text-f8f8f6)) !important;
}

/* RANKER gets the electric yellow treatment from the reference. */
.site-header .brh-logo-accent{
    color:var(--brh-yellow,var(--theme-role-text-e7ff00)) !important;
}

/* There should be no grid / bolt / chart / cup icons in the main nav. */
.site-header .brh-nav-icon{
    display:none !important;
}

/* Keep the existing menu type scale: compact the box, not the text. */
@media(min-width:1181px){
    .site-header .main-nav a{
        min-height:46px !important;
        padding-left:15px !important;
        padding-right:15px !important;
        font-size:17px !important;
        gap:0 !important;
    }

    .site-header .main-nav a.active::after{
        left:15px !important;
        right:15px !important;
        bottom:0 !important;
        height:3px !important;
    }
}

/* Tighter account/CTA area to suit the shallower shell. */
.site-header .header-actions{
    gap:8px !important;
}

.site-header .login-link{
    min-height:38px !important;
}

.site-header .join-btn{
    min-height:36px !important;
    margin-left:4px !important;
    padding:0 13px !important;
    border-radius:4px !important;
    font-size:10.5px !important;
    box-shadow:2px 2px 0 var(--theme-role-shadow-050816) !important;
}

/* Mid-size desktop/tablet: preserve the existing 15px nav text. */
@media(max-width:1180px) and (min-width:931px){
    .site-header .header-inner{
        min-height:58px !important;
        gap:15px !important;
    }

    .site-header a.brand{
        width:215px !important;
        min-width:215px !important;
        height:40px !important;
        min-height:40px !important;
    }

    .site-header .brh-logo-line{
        height:33px !important;
    }

    .site-header .brh-logo-word{
        font-size:33px !important;
        line-height:33px !important;
    }

    .site-header .main-nav a{
        min-height:44px !important;
        padding-left:10px !important;
        padding-right:10px !important;
        font-size:15px !important;
        gap:0 !important;
    }

    .site-header .main-nav a.active::after{
        left:10px !important;
        right:10px !important;
        bottom:0 !important;
        height:3px !important;
    }

    .site-header .join-btn{
        min-height:34px !important;
        padding-left:10px !important;
        padding-right:10px !important;
        font-size:10px !important;
    }
}

/* Burger layout: shallow but still easy to tap. */
@media(max-width:930px){
    .site-header .header-inner{
        min-height:54px !important;
    }

    .site-header a.brand{
        width:220px !important;
        min-width:0 !important;
        height:38px !important;
        min-height:38px !important;
    }

    .site-header .brh-logo-line{
        height:31px !important;
    }

    .site-header .brh-logo-word{
        font-size:31px !important;
        line-height:31px !important;
    }

    .site-menu-toggle{
        width:38px !important;
        height:38px !important;
    }
}

@media(max-width:760px){
    .site-header .header-inner{
        min-height:52px !important;
        padding:3px 0 !important;
    }

    .site-header a.brand{
        width:205px !important;
        height:36px !important;
        min-height:36px !important;
    }

    .site-header .brh-logo-word{
        font-size:29px !important;
        line-height:29px !important;
    }
}

@media(max-width:390px){
    .site-header a.brand{
        width:190px !important;
    }

    .site-header .brh-logo-word{
        font-size:27px !important;
        line-height:27px !important;
    }
}



/* ================================================================
   BattleRanker Shared Header V8.7 — LEADERBOARDS NAV TYPE
   Slightly larger core nav labels with a cleaner, less heavy weight.
   Header depth and spacing from V8.6 remain unchanged.
   ================================================================ */
@media(min-width:1181px){
    .site-header .main-nav a{
        font-size:18.5px !important;
        font-weight:800 !important;
        letter-spacing:0 !important;
    }
}

@media(max-width:1180px) and (min-width:931px){
    .site-header .main-nav a{
        font-size:16px !important;
        font-weight:800 !important;
        letter-spacing:0 !important;
    }
}
