/* Atlas dark palette. Keep status banners and rank colors as meaningful accents. */
:root { color-scheme: dark; --atlas-bg: #0d141d; --atlas-surface: #172330; --atlas-raised: #1d2c3b; --atlas-border: #344657; --atlas-text: #e6eef5; --atlas-muted: #acbccb; --atlas-link: #79d4f2; }
body,body.profile-page,body.store-page,.home-page,body.forum-post-page { background: var(--atlas-bg); color: var(--atlas-text); }
body.forum-post-page::before { background-image: linear-gradient(180deg,#0a1724cb 0%,#122737a8 45%,#0d141d 100%),url('/images/atlas-forum-background.png'); }
body .header,body .navbar-expand-lg { background: var(--atlas-surface) !important; box-shadow: 0 1px 0 var(--atlas-border); }
.home-page .header,.forum-post-page .header,.store-page .header { background: transparent !important; box-shadow: none; }
.home-page .navbar-expand-lg,.forum-post-page .navbar-expand-lg,.store-page .navbar-expand-lg { background: transparent !important; box-shadow: none; }
.navbar-expand-lg .navbar-nav > li > .nav-link,.navbar-expand-lg #stats-toggle,.navbar-expand-lg #stats-toggle:hover,.navbar-expand-lg #stats-toggle:focus,.navbar-expand-lg button.nav-link,.navbar-expand-lg .account-dropdown .user span.user-name { color: var(--atlas-text) !important; }
.navbar-expand-lg .account-dropdown .user span.sub-txt,.navbar-expand-lg .account-links:not(.account-dropdown) .nav-link { color: var(--atlas-muted); }
.account-menu summary span:not(.account-menu-notification-count) { background: var(--atlas-muted); }
.account-menu-items,.navbar-expand-lg .dropdown-menu,.forum-sort-menu,.player-search .autocomplete-suggestions { background: var(--atlas-raised); border-color: var(--atlas-border); }
.account-menu-items a,.account-menu-items button,.navbar-expand-lg .dropdown-item,.forum-sort-menu a,.player-search .autocomplete-suggestion { color: var(--atlas-text); background: transparent; }
.account-menu-items a:hover,.account-menu-items button:hover,.navbar-expand-lg .dropdown-item:hover,.forum-sort-menu a:hover,.player-search .autocomplete-suggestion:hover,.player-search .autocomplete-selected { background: #294155; color: #fff; }
.navbar-expand-lg .form-inline .form-control,.form-control,input:not([type=checkbox]):not([type=radio]),select,textarea,.forum-new-post input,.forum-new-post select,.forum-new-post textarea { background: #101b27; border-color: var(--atlas-border); color: var(--atlas-text); }
input::placeholder,textarea::placeholder { color: #91a5b5; }
a,.profile-cloak-card h2 a,.profile-capes-back,.profile-badge-editor summary { color: var(--atlas-link); }
a:hover { color: #b7ebfa; }
h1,h2,h3,h4,h5,h6,.player-profile h3 { color: var(--atlas-text); }
.footer,.profile-page .footer { background: #0b1119; border-top: 1px solid var(--atlas-border); color: var(--atlas-muted); }
.footer a,.profile-page .footer a { color: var(--atlas-muted); }

/* Profile and capes. */
.player-nameplate { justify-content: flex-start; gap: 17px; min-height: 106px; padding: 20px 24px; border: 1px solid var(--atlas-border); border-left: 4px solid #43bde2; border-radius: 6px; background: radial-gradient(circle at 80% 0%,#264359 0%,transparent 45%),linear-gradient(100deg,#172b3b,#101b28); box-shadow: 0 10px 28px #0004; }
.player-nameplate .nameplate-avatar { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border: 1px solid #46677a; border-radius: 9px; background: #0a1521; }
.player-nameplate img { width: 38px; height: 38px; }
.player-nameplate .nameplate-copy { min-width: 0; text-align: left; }
.player-nameplate .nameplate-eyebrow { display: block; margin-bottom: 4px; color: #77cfe9; font: 700 11px/1.2 Montserrat,Arial,sans-serif; letter-spacing: 2px; text-transform: uppercase; }
.player-nameplate h1 { color: #f3f9fc; font-size: clamp(23px,3vw,31px); line-height: 1.15; letter-spacing: .4px; text-transform: none; }
.profile-skin-card,.profile-general-card,.profile-cloak-card,.profile-friend-card,.profile-social-card,.profile-badge-card,.profile-capes-page,.profile-tabs,.profile-main-tabs,.profile-statistics section,.profile-stat-card,.profile-games,.social-page,.match-summary-teams { background: var(--atlas-surface); box-shadow: 0 1px 0 var(--atlas-border); color: var(--atlas-text); }
.profile-general-card h2,.profile-cloak-card h2,.profile-social-card h2,.profile-badge-card h2,.profile-friend-card h2,.profile-capes-page h1,.profile-capes-grid h2,.profile-statistics h2.profile-main-heading,.profile-statistics .profile-main-panel > h2,.profile-statistics .profile-game-content > h2,.match-summary-teams h2 { color: var(--atlas-text); }
.profile-general-card p,.profile-general-card strong,.profile-data-note,.profile-stat-card dt,.player-profile .stats-updated,.profile-friend-card .profile-friend-action p { color: var(--atlas-muted); }
.profile-stat-card { box-shadow: inset 0 0 0 1px var(--atlas-border); }
.profile-stat-card dl > div { background: var(--atlas-raised); border-color: var(--atlas-border); }
.profile-stat-card dd,.profile-skin-card .profile-skin-footer p { color: var(--atlas-text); }
.profile-main-tabs a,.profile-games a,.profile-social-icon,.profile-badge-editor label { color: var(--atlas-muted); }
.profile-main-tabs a:hover,.profile-games a:hover,.profile-games a[aria-current=page],.profile-social-icon:hover { color: #fff; }
.profile-main-tabs a[aria-current=page],.profile-tabs span { background: #325b71; }
.profile-socials a,.profile-socials .social-username,.profile-badge-editor.is-empty[open],.profile-friend-card .friends-holder .count { background: var(--atlas-raised); border-color: var(--atlas-border); color: var(--atlas-text); }
.profile-badge-editor,.profile-games,.profile-capes-grid article,.social-page-nav,.friend-row { border-color: var(--atlas-border); }
.profile-capes-grid article { background: var(--atlas-raised); }
.profile-card-label.is-offline { background-image: linear-gradient(#556777,#465766); }
.profile-edit-link { background: #365369; border-color: #52748c; }
.profile-edit-link:hover { background: #426780; }
.profile-skin-controls button { color: var(--atlas-link); }
.profile-skin-controls button:disabled { color: #63788b; }
.cape-detail-page h1 { color: var(--atlas-text); border-color: var(--atlas-border); }
.cape-detail-page h1 span,.cape-detail-profiles > p { color: var(--atlas-muted); }
.match-player-panel,.inventory-grid { background: var(--atlas-surface); border-color: var(--atlas-border); }
.match-body span,.match-summary-note,.match-summary-player,.match-pagination a,.match-pagination span { color: var(--atlas-muted); }
.match-history .recent-games-title { border-color: var(--atlas-border); color: var(--atlas-muted); }

/* Forums, lists, leaderboards, accounts, and store surfaces. */
#content .block,#sidebar .box,.forum .forum-tools,.forum .forum-tools .breadcrumb,.forum-list tbody tr,.thread-list tbody tr,.forum-new-post,.news .post-item,.home-news-card,.atlas-staff .block,.faction-leaderboards .table,.leaderboards .table,.leaderboards .table tbody,.leaderboards .page-current,.leaderboards .paging,.title-block,.applications,.get-started .account-settings,.get-started .password,.get-started .auth,.login .registration-holder,.registration .login-holder,.registration .registration-holder,.main-top .main-top-col .main-top-content,.block-sections .holder-section-box,.purchase-block,.breadcrumb.nice-breadcrumb,.store-category-nav,.store-ranks,.store-comparison > header,.store-table-scroll,.store-side-card { background: var(--atlas-surface); border-color: var(--atlas-border); color: var(--atlas-text); }
.forum-list tbody tr:hover,.thread-list tbody tr:hover,.leaderboards .table tbody tr:nth-child(even),.store-comparison tbody tr:nth-child(even) { background: var(--atlas-raised); }
.leaderboards .table tbody tr:nth-child(odd) { background: var(--atlas-surface); }
.forum-list td,.thread-list td,.leaderboards .table td,.leaderboards .table th,.store-comparison td,.store-comparison th { border-color: var(--atlas-border); color: var(--atlas-text); }
.forum-empty-note,.forum-empty,.forum-pagination,.atlas-leaderboards .stats-updated,.friends-empty { color: var(--atlas-muted); }
.home-connect-address { color: var(--atlas-text); }
.main-top .main-top-col .main-top-content,.main-top .main-top-col .main-top-content a,.home-news-category,.home-news-content,.home-news-content h2,.home-news-header h2,.home-news-meta,.forum-new-post h1,.thread-list .thread-byline,.thread-list .news-pin-icon { color: var(--atlas-text); }
.home-news-header,.home-news-category { border-color: var(--atlas-border); }
.home-news-excerpt,.home-news-excerpt p { color: #c9d7e2; }
.home-actions .main-top-col:nth-child(2) .main-top-content.main-top-button a { background: #274258; color: #e9f5fa; }
.home-news-card h2,.store-section-heading h2,.store-comparison h2,.store-side-card h2,.store-rank-card h2 { color: var(--atlas-text); }
.store-rank-card { background: linear-gradient(145deg,#1d2c3b 65%,color-mix(in srgb,var(--rank-color) 11%,#1d2c3b)); border-color: var(--atlas-border); border-top-color: var(--rank-color); }
.store-rank-card > p:not(.store-rank-kicker),.store-rank-highlight,.store-section-heading > p,.store-side-card > p:last-child,.store-purchases-empty strong,.store-purchases-empty div > span,.store-comparison tbody th { color: var(--atlas-muted); }
.store-rank-card button,.store-purchases-icon,.store-status-icon,.store-feature-yes,.store-category-nav small { background: #294155; color: #9adff2; }
.store-category-nav a,.store-category-nav span,.store-feature-value { color: var(--atlas-muted); }
.store-category-nav a[aria-current=page],.store-category-nav a:hover { color: var(--atlas-link); }
.store-comparison thead th { background: #10202e; }
.store-purchases-card .store-eyebrow { border-color: var(--atlas-border); }
@media (max-width: 575px) { .player-nameplate { padding: 17px; } }
