/* Inherit the website's existing type sizes and theme colors. */
.topbar{gap:14px}
.topbar>.brand{font:inherit;flex-shrink:1;min-width:0}
.topbar>.brand .brand-caption{white-space:nowrap;font:inherit;letter-spacing:0;color:var(--gold,#ded28c)}
.playcsnow-brand-name{font-weight:600}
#header-main-navigation{margin-left:clamp(8px,2vw,40px);gap:10px;flex-shrink:0}
#header-discord-status{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;order:0;width:auto;margin-left:auto;margin-right:0;flex-shrink:0;font:inherit}
#header-player-navigation{margin-left:0}
#header-discord-status .community-discord-box{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;font:inherit;white-space:nowrap;min-height:36px;box-sizing:border-box}
#header-discord-status .community-discord-box>svg{display:block;align-self:center;flex:0 0 17px;width:17px;height:17px;margin:0;transform:none;vertical-align:middle}
#header-discord-status .community-footer-join{display:flex;align-items:center;align-self:center}
#header-discord-status .community-footer-join>svg{display:block;align-self:center;margin:0}
#header-discord-status .discord-compact-icon{display:none!important}
.page-footer>.footer-copyright{margin:0 auto 0 0;order:0;text-align:left}
.page-footer>.footer-right-links{margin-left:0;order:1}
.account-server-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 16px}
.account-server-tabs>button{flex:1 1 180px;font:inherit;line-height:1.5;text-align:left;white-space:normal}
.account-server-tabs>button[aria-pressed=true]{border-color:var(--gold,#ded28c);color:var(--gold,#ded28c);background:#46523a}
@media(max-width:1200px){.playcsnow-brand-detail{display:none}.topbar{gap:10px}}
@media(max-width:950px){
 #header-discord-status .community-discord-box>span{display:none}
 #header-discord-status .community-discord-box{gap:0;padding:0;border:0;background:transparent}
 #header-discord-status .community-discord-box>svg{display:none}
 #header-discord-status .community-footer-join{width:32px;min-height:40px;padding:0;margin:0;border:0}
 #header-discord-status .community-footer-join>svg:not(.discord-compact-icon){display:none}
 #header-discord-status .discord-compact-icon{display:block!important;width:17px;height:17px}
}
@media(max-width:700px){
 .topbar{gap:4px!important}
 #header-discord-status{width:auto!important;order:0!important;margin:0!important;flex:0 0 30px!important}
 #header-player-navigation{gap:3px!important}
 #header-community-button,#header-leaderboard-button{font-size:11px!important;padding-inline:4px!important;gap:4px!important}
 #header-player-navigation .profile-button strong{max-width:44px!important}
 .page-footer{align-items:center!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:space-between!important}
 .page-footer>.footer-right-links{width:auto!important;max-width:100%;align-items:flex-end!important;justify-content:flex-end!important}
 .page-footer>.footer-copyright{flex:0 0 auto!important;width:auto!important}
 .page-footer .footer-policy-links{justify-content:flex-end}
}

/* Counts belong to Community; retain the desktop Discord shortcut. */
#header-discord-status .community-discord-box>span{display:none!important}
#header-discord-status .community-discord-box{gap:6px}
.community-discord-option .community-discord-counts{display:block;margin-top:5px;color:var(--gold,#ded28c);font-size:12px;line-height:1.5;white-space:normal}
@media(max-width:700px){#header-discord-status{display:none!important}}

/* Keep the existing count publisher hidden; only Community exposes Discord. */
#header-discord-status{display:none!important}
#header-player-navigation{margin-left:auto}
#header-community-menu .community-discord-option{grid-template-columns:17px minmax(0,1fr) auto;column-gap:8px}
#header-community-menu .community-discord-option .community-option>small:not(.community-discord-counts){grid-column:1 / -1;grid-row:2}
#header-community-menu .community-discord-option .community-option>.community-discord-counts{grid-column:3;grid-row:1;justify-self:end;align-self:center;margin:0;white-space:nowrap;font:10px/1.5 "Segoe UI",Arial,sans-serif;color:var(--gold,#ded28c)}
