/* ============================================================
   CROWN LAYER — the "Crowned Wolf" identity (2026-09-29)

   Loads LAST on all three layouts (after premium.css and
   retention.css). tokens.css now carries the palette and type;
   this layer applies the identity to the shell and to the shared
   component vocabulary that ~120 pages use, so a page does not
   have to be rewritten to look like the game.

   The rules, in order of importance:
   1. Gold means value, prestige and the primary action. Red means
      risk (crimes, attacks, losses, destructive actions) and is
      never the default button colour.
   2. The facet — a bevelled "cut-gem" corner taken from the
      logo — is the only decoration. No glows, no gradient washes
      except the gold facet on primary buttons and the page light.
   3. Sentence case everywhere. The game used tracked-out capitals
      for labels, nav and table heads; they are removed here.
   4. Numbers are the content: tabular figures, right-aligned in
      ledgers, never a monospace face.
   5. Geometry belongs to the older sheets (the three-mode sidebar
      contract, header breakpoints). This layer changes surfaces,
      type, colour and state, not positions or widths.

   Facets use `corner-shape: bevel` where supported and fall back
   to a small radius, so nothing is ever clipped: clip-path would
   cut off focus rings, dropdowns and tooltips.
   ============================================================ */

/* ------------------------------------------------------------
   1. FOUNDATIONS
   ------------------------------------------------------------ */
html {
    background: #000;
    color-scheme: dark;
}

body {
    font-family: var(--nb-font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--nb-text);
    background: var(--nb-grad-page) fixed, #000;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(245, 200, 66, 0.32);
    color: var(--nb-white-hot);
}

/* Sentence case across the whole game. !important because dozens of page
   sheets and inline styles set capitals; icons and key caps are exempt. */
:is(.rpg-header, .primary-sidebar, .friends-sidebar, #friends-sidebar, .rpg-content,
    .rpg-footer, .nb-bottom-nav, .admin-layout, .nb-command-dialog, .nb-confirm, .nb-toast-stack, body > dialog)
    :not(i, .fa, .fas, .far, .fab, .fa-solid, kbd, code, .nb-keep-case) {
    text-transform: none !important;
    letter-spacing: normal !important;
}

a {
    color: var(--nb-gold-bright);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--nb-champagne); }

/* Quiet, gold-tinted scrollbars (the old ones were red). */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(224, 171, 34, 0.35) transparent;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(224, 171, 34, 0.28);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(224, 171, 34, 0.5); }

/* The ambient particle canvas reads as noise against true black; the page
   light in --nb-grad-page replaces it. */
#cyberCanvas { display: none !important; }

/* ------------------------------------------------------------
   2. TYPOGRAPHY
   Unbounded appears in exactly two places: the wordmark and the
   page title. Everything else is Instrument Sans.
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout) :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--nb-font-ui);
    color: var(--nb-ivory);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
    text-shadow: none;
}

:is(.rpg-content, .admin-layout) h2 { font-size: 1.3rem; }
:is(.rpg-content, .admin-layout) h3 { font-size: 1.1rem; }
:is(.rpg-content, .admin-layout) h4 { font-size: 1rem; }

:is(.rpg-content, .admin-layout) p { text-wrap: pretty; }

/* Legacy "neon" and gradient text becomes plain ivory. */
:is(.rpg-content, .admin-layout) :is(.neon-text, .glow-text, .gradient-text, .text-gradient) {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--nb-ivory);
    text-shadow: none !important;
    animation: none !important;
}

/* Page masthead: the one place the display face speaks. Overrides the
   Cinzel treatment in premium.css §2 with the same selector list. */
:is(.rpg-content, .admin-layout) :is(
    .game-header, .market-header, .jobs-header, .fighting-header, .casino-lobby-header,
    .faction-header, .education-header, .crypto-header, .map-header, .mf-header,
    .smelting-plant-header, .settings-header, .story-header, .achievements-header,
    .bounties-header, .auction-header, .leaderboard-header, .stats-header, .crafting-header
) :is(h1, h2),
:is(.rpg-content, .admin-layout) > :is(div, section) > h1.neon-text,
:is(.rpg-content, .admin-layout) > h1.neon-text,
.rpg-content .crime-page h1,
.rpg-content h1.nb-title {
    font-family: var(--nb-font-display) !important;
    font-weight: 700 !important;
    font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem) !important;
    letter-spacing: -0.015em !important;
    line-height: 1.12 !important;
    color: var(--nb-ivory) !important;
    text-shadow: none !important;
}

/* The masthead's icon chip becomes a cut-gold octagon. */
:is(.rpg-content, .admin-layout) :is(
    .game-header, .market-header, .jobs-header, .fighting-header, .casino-lobby-header,
    .faction-header, .education-header, .crypto-header, .map-header, .mf-header,
    .smelting-plant-header, .settings-header, .story-header, .achievements-header,
    .bounties-header, .auction-header, .leaderboard-header, .stats-header, .crafting-header
) > i:first-child,
:is(.rpg-content, .admin-layout) > :is(div, section) > h1.neon-text > i:first-child,
:is(.rpg-content, .admin-layout) > h1.neon-text > i:first-child {
    color: #1a1204;
    background: var(--nb-grad-action);
    border: none;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(122, 85, 16, 0.55);
}

@supports (corner-shape: bevel) {
    :is(.rpg-content, .admin-layout) :is(
        .game-header, .market-header, .jobs-header, .fighting-header, .casino-lobby-header,
        .faction-header, .education-header, .crypto-header, .map-header, .mf-header,
        .smelting-plant-header, .settings-header, .story-header, .achievements-header,
        .bounties-header, .auction-header, .leaderboard-header, .stats-header, .crafting-header
    ) > i:first-child,
    :is(.rpg-content, .admin-layout) > :is(div, section) > h1.neon-text > i:first-child,
    :is(.rpg-content, .admin-layout) > h1.neon-text > i:first-child {
        corner-shape: bevel;
    }
}

/* The masthead rule: a full hairline plus a short gold facet at the start. */
:is(.rpg-content, .admin-layout) :is(
    .game-header, .market-header, .jobs-header, .fighting-header, .casino-lobby-header,
    .faction-header, .education-header, .crypto-header, .map-header, .mf-header,
    .smelting-plant-header, .settings-header, .story-header, .achievements-header,
    .bounties-header, .auction-header, .leaderboard-header, .stats-header, .crafting-header
) {
    border-bottom-color: rgba(244, 236, 221, 0.08);
}

:is(.rpg-content, .admin-layout) :is(
    .game-header, .market-header, .jobs-header, .fighting-header, .casino-lobby-header,
    .faction-header, .education-header, .crypto-header, .map-header, .mf-header,
    .smelting-plant-header, .settings-header, .story-header, .achievements-header,
    .bounties-header, .auction-header, .leaderboard-header, .stats-header, .crafting-header
)::after {
    width: 56px;
    height: 2px;
    bottom: -1px;
    background: var(--nb-gold);
}

/* Section headings (repeated header blocks, card headers). */
:is(.rpg-content, .admin-layout) :is(.settings-section-head, .nb-section-head) :is(h1, h2),
:is(.rpg-content, .admin-layout) :is(.card-header, .section-header, .panel-header) :is(h2, h3, h4) {
    font-family: var(--nb-font-ui) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    color: var(--nb-ivory) !important;
}

/* Small secondary text and labels: ash, sentence case, readable size. */
:is(.rpg-content, .admin-layout) :is(.text-muted, .small, small, .form-text, .help-text, .hint) {
    color: var(--nb-text-dim) !important;
}

:is(.rpg-content, .admin-layout) :is(label, .form-label, .stat-label, .info-label, .item-stat-label, .nb-label) {
    color: var(--nb-text-dim);
    font-size: 0.82rem;
    font-weight: 600;
}

:is(.rpg-content, .admin-layout) :is(.stat-value, .info-value, .item-stat-value, .money-value, .balance-amount, .hero-amount, .wallet-amount, .payout-amount, .nb-num) {
    font-family: var(--nb-font-ui);
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

/* ------------------------------------------------------------
   3. HEADER
   ------------------------------------------------------------ */
.rpg-nav {
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(224, 171, 34, 0.22);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 10px 30px rgba(0, 0, 0, 0.55);
    align-items: center;
}

.rpg-menu > li > a {
    font-family: var(--nb-font-ui);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--nb-text);
    border-radius: 6px;
    text-shadow: none;
}

.rpg-menu > li > a:hover,
.rpg-menu > li.has-dropdown:is(:hover, :focus-within) > a {
    color: var(--nb-champagne);
    background: rgba(224, 171, 34, 0.07);
    text-shadow: none;
}

/* You are here: gold text and a small facet under the label (the old
   marker was a glowing red line). */
.rpg-menu > li.active > a,
.rpg-menu > li > a.active,
.rpg-menu > li > a[aria-current="page"],
.rpg-menu > li.nb-active > a {
    color: var(--nb-gold-bright) !important;
    text-shadow: none !important;
}

.rpg-menu > li.active > a::after,
.rpg-menu > li > a.active::after,
.rpg-menu > li.nb-active > a::before {
    background: var(--nb-gold) !important;
    height: 2px !important;
    box-shadow: none !important;
}

/* Dropdown arrows were heavy red triangles; they become thin gold chevrons. */
.rpg-menu > li.has-dropdown > a::after {
    content: '078' !important;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px !important;
    color: var(--nb-gold) !important;
    opacity: 0.8;
}

.rpg-menu .sub-menu {
    background: rgba(14, 12, 8, 0.98);
    border: 1px solid rgba(224, 171, 34, 0.28);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
    padding: 6px;
}

@supports (corner-shape: bevel) {
    .rpg-menu .sub-menu { corner-shape: bevel; }
}

.sub-menu > li > a {
    font-family: var(--nb-font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--nb-text);
    border-radius: 6px;
    padding: 9px 12px;
}

.sub-menu > li > a:hover,
.sub-menu > li > a:focus-visible {
    color: var(--nb-ivory);
    background: rgba(224, 171, 34, 0.1);
    text-shadow: none;
}

/* Crest + wordmark. The crest shows at every width; the older sheets
   decide when the brand element itself is visible on narrow bars. */
.nb-header-brand {
    align-items: center;
    gap: 9px;
    text-decoration: none;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.nb-header-crest {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: none;
}

.nb-header-wordmark {
    font-family: var(--nb-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em !important;
    color: var(--nb-gold-bright);
}

/* On desktop the centred menu fills the bar, so the brand lives in the
   narrow-bar layout only (premium.css §20 shows it at 460–900px). */

.header-timer {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 11px;
    color: var(--nb-gold-bright);
    background: rgba(224, 171, 34, 0.08);
    border: 1px solid rgba(224, 171, 34, 0.22);
    border-radius: 999px;
    font-family: var(--nb-font-ui);
    font-size: 13px;
    font-weight: 600;
    text-shadow: none;
    white-space: nowrap;
}

.header-timer strong {
    color: var(--nb-text-dim);
    font-weight: 500;
}

.header-notification-bell .notification-bell,
.menu-dropdown-btn,
.friends-sidebar-btn,
#sidebar-toggle {
    color: var(--nb-text);
    border-radius: 8px;
}

.header-notification-bell .notification-bell:hover,
.menu-dropdown-btn:hover,
.friends-sidebar-btn:hover,
#sidebar-toggle:hover {
    color: var(--nb-gold-bright);
    background: rgba(224, 171, 34, 0.08);
}

#friend-requests-badge {
    background: var(--nb-red) !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px #000 !important;
    font-family: var(--nb-font-ui);
    font-weight: 700;
}

.notification-popup {
    background: rgba(14, 12, 8, 0.98) !important;
    border: 1px solid rgba(224, 171, 34, 0.28) !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
}

.notification-popup .popup-header {
    font-family: var(--nb-font-ui);
    font-weight: 700;
    color: var(--nb-ivory);
    border-bottom: 1px solid rgba(244, 236, 221, 0.08);
}

/* Guest header buttons. */
.header-buttons .login-btn,
.header-buttons .join-btn {
    font-family: var(--nb-font-ui);
    font-weight: 700;
    font-size: 14px;
    border-radius: 7px;
    padding: 9px 18px;
}

.header-buttons .login-btn {
    color: var(--nb-ivory) !important;
    background: transparent !important;
    border: 1px solid rgba(244, 236, 221, 0.22) !important;
}

.header-buttons .join-btn {
    color: #1a1204 !important;
    background: var(--nb-grad-action) !important;
    border: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------
   4. LEFT SIDEBAR — the player's dossier
   ------------------------------------------------------------ */
.primary-sidebar {
    background: linear-gradient(180deg, rgba(14, 12, 8, 0.97) 0%, rgba(4, 3, 2, 0.98) 100%);
    border-right: 1px solid rgba(224, 171, 34, 0.16);
    box-shadow: none;
    scrollbar-color: rgba(224, 171, 34, 0.3) transparent;
}

/* The avatar frame: a cut-gold ring instead of a glowing red circle. */
.sidebar-avatar-wrapper {
    border-radius: 50% !important;
    padding: 3px !important;
    background: conic-gradient(from 210deg, #7a5510, #ffe08a, #e0ab22, #a8750f, #fff1c4, #e0ab22, #7a5510) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    animation: none !important;
}

.sidebar-avatar-img {
    border: 3px solid #000 !important;
    box-shadow: none !important;
    background: #0e0c08;
}

.primary-sidebar .username {
    font-family: var(--nb-font-display);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--nb-ivory);
    letter-spacing: -0.01em !important;
    text-shadow: none;
}

.sidebar-progress__level {
    color: var(--nb-gold-bright);
    font-weight: 700;
}

.sidebar-progress__bar,
.sidebar-progress__nerve-bar {
    background: rgba(244, 236, 221, 0.08) !important;
    border-radius: 99px;
}

.sidebar-progress__bar > span { background: var(--nb-gold) !important; box-shadow: none !important; }
.sidebar-progress__nerve-bar > span { background: var(--nb-red) !important; box-shadow: none !important; }

/* The ledger. Each row is icon | label | value on one grid, values right-
   aligned in tabular figures so a column of money actually lines up. */
.sidebar-nav .nb-ledger {
    width: 100%;
    margin: 14px 0 12px;
    padding: 6px 0;
    list-style: none;
    border-top: 1px solid rgba(244, 236, 221, 0.07);
    border-bottom: 1px solid rgba(244, 236, 221, 0.07);
}

.sidebar-nav .nb-ledger .nb-ledger__row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    margin: 0;
    padding: 7px 4px;
    background: none;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    color: var(--nb-ivory);
    text-align: right;
    white-space: nowrap;
    transform: none;
}

.sidebar-nav .nb-ledger .nb-ledger__row:hover {
    background: rgba(224, 171, 34, 0.05);
    transform: none;
}

.sidebar-nav .nb-ledger .nb-ledger__row i {
    width: 18px;
    margin: 0;
    font-size: 13px;
    text-align: center;
    color: var(--nb-text-faint);
}

.sidebar-nav .nb-ledger .nb-ledger__row strong {
    margin: 0;
    font-weight: 500;
    color: var(--nb-text-dim);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav .nb-ledger .nb-ledger__row :is(.sidebar-stat-value, span:last-child) {
    font-weight: 600;
    color: var(--nb-ivory);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav .nb-ledger .nb-ledger__row--money :is(.sidebar-stat-value, i) {
    color: var(--nb-gold-bright);
}

.sidebar-nav .nb-ledger .nb-ledger__row--money .sidebar-stat-value {
    font-weight: 700;
    font-size: 15px;
}

.sidebar-nav .nb-ledger .nb-ledger__rule {
    height: 1px;
    margin: 6px 4px;
    padding: 0;
    background: rgba(244, 236, 221, 0.06);
    border: none;
}

.sidebar-status {
    border-radius: 8px !important;
    font-weight: 600;
}

.admin-button .btn {
    width: 100%;
}

.sidebar-logout-btn {
    width: 100%;
    color: var(--nb-text-dim) !important;
    background: transparent !important;
    border: 1px solid rgba(244, 236, 221, 0.12) !important;
    border-radius: 8px !important;
    font-family: var(--nb-font-ui) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.sidebar-logout-btn:hover {
    color: var(--nb-ivory) !important;
    border-color: rgba(208, 52, 63, 0.55) !important;
    background: rgba(208, 52, 63, 0.08) !important;
}

/* ------------------------------------------------------------
   5. RIGHT SIDEBAR — friends, radio, top 20
   ------------------------------------------------------------ */
.friends-sidebar,
#friends-sidebar {
    background: linear-gradient(180deg, rgba(14, 12, 8, 0.97) 0%, rgba(4, 3, 2, 0.98) 100%) !important;
    border-left: 1px solid rgba(224, 171, 34, 0.16) !important;
    box-shadow: none !important;
}

.friends-sidebar :is(.rsb-tab, .sidebar-tab, [role="tab"]) {
    font-family: var(--nb-font-ui) !important;
    font-weight: 600 !important;
    color: var(--nb-text-dim) !important;
    background: transparent !important;
    border-color: rgba(244, 236, 221, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.friends-sidebar :is(.rsb-tab, .sidebar-tab, [role="tab"]):is(.active, [aria-selected="true"]) {
    color: var(--nb-gold-bright) !important;
    background: rgba(224, 171, 34, 0.09) !important;
    border-color: rgba(224, 171, 34, 0.35) !important;
}

.friends-sidebar :is(h2, h3, .rsb-title) {
    font-family: var(--nb-font-ui) !important;
    color: var(--nb-ivory) !important;
    font-weight: 700 !important;
}

.rsb-lb-item {
    border-radius: 8px;
}

/* ------------------------------------------------------------
   6. CONTENT LANE AND COMMAND BAR
   ------------------------------------------------------------ */
.nb-command-bar {
    background: rgba(18, 16, 11, 0.8) !important;
    border: 1px solid rgba(244, 236, 221, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.nb-location-label {
    color: var(--nb-text-faint) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.nb-location > span:last-child {
    color: var(--nb-ivory);
    font-weight: 700;
}

.nb-pin-page,
.nb-command-launch {
    font-family: var(--nb-font-ui) !important;
    font-weight: 600 !important;
    color: var(--nb-text) !important;
    background: rgba(244, 236, 221, 0.04) !important;
    border: 1px solid rgba(244, 236, 221, 0.12) !important;
    border-radius: 8px !important;
}

.nb-pin-page:hover,
.nb-command-launch:hover,
.nb-pin-page[aria-pressed="true"] {
    color: var(--nb-gold-bright) !important;
    border-color: rgba(224, 171, 34, 0.45) !important;
}

kbd {
    font-family: var(--nb-font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--nb-text-dim);
    background: rgba(244, 236, 221, 0.06);
    border: 1px solid rgba(244, 236, 221, 0.14);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
}

.nb-pinned-pages a {
    border-radius: 999px !important;
    font-weight: 600;
}

.nb-command-dialog {
    background: rgba(12, 10, 7, 0.98) !important;
    border: 1px solid rgba(224, 171, 34, 0.3) !important;
    border-radius: 14px !important;
}

/* Announcements: a plate with a coloured edge, not a glowing banner. */
.announcement-banner {
    background: rgba(18, 16, 11, 0.9) !important;
    border-width: 0 0 0 3px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------
   7. PLATES — every card-like surface
   One surface, one border, one bevel. Hierarchy comes from the
   header inside the plate, not from glow or colour washes.
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout) :is(
    .card, .panel, .game-card, .game-container > .card, .stats-card, .stat-card, .item-card, .feature-card,
    .market-card, .job-card, .fight-card, .casino-game-card, .content-box, .edu-card, .benefits-card,
    .tutorial-card, .crime-card, .perk-card, .recipe-card, .nb-plate, .info-card, .quest-card,
    .achievement-card, .bounty-card, .auction-card, .trade-card, .company-card, .faction-card,
    .bill-card, .house-card, .car-card, .plant-card, .crypto-card, .legacy-card, .event-card,
    .settings-card, .settings-section, .profile-card, .welcome-card, .dashboard-card
) {
    background: linear-gradient(180deg, rgba(26, 23, 16, 0.92) 0%, rgba(16, 14, 10, 0.94) 100%) !important;
    border: 1px solid rgba(244, 236, 221, 0.08) !important;
    border-top-color: rgba(224, 171, 34, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 12px 30px -18px rgba(0, 0, 0, 0.9) !important;
    color: var(--nb-text);
}

@supports (corner-shape: bevel) {
    :is(.rpg-content, .admin-layout) :is(
        .card, .panel, .game-card, .stats-card, .stat-card, .item-card, .feature-card,
        .market-card, .job-card, .fight-card, .casino-game-card, .content-box, .edu-card, .benefits-card,
        .tutorial-card, .crime-card, .perk-card, .recipe-card, .nb-plate, .info-card, .quest-card,
        .achievement-card, .bounty-card, .auction-card, .trade-card, .company-card, .faction-card,
        .bill-card, .house-card, .car-card, .plant-card, .crypto-card, .legacy-card, .event-card,
        .settings-card, .settings-section, .profile-card, .welcome-card, .dashboard-card
    ) {
        corner-shape: bevel;
    }
}

/* Hover is information ("this is clickable"), so it stays quiet: the gold
   edge warms and nothing moves. The 2px lift from premium.css §5 is off. */
:is(.rpg-content, .admin-layout) :is(.card, .panel, .market-card, .job-card, .fight-card, .casino-game-card, .stat-card, .game-card, .item-card, .feature-card, .crime-card):hover {
    transform: none !important;
    border-color: rgba(244, 236, 221, 0.12) !important;
    border-top-color: rgba(224, 171, 34, 0.45) !important;
}

/* Plates never nest a second, differently-tinted plate background. */
:is(.rpg-content, .admin-layout) :is(.card, .panel, .game-card) :is(.card, .panel, .game-card) {
    background: rgba(0, 0, 0, 0.28) !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) :is(.card-header, .panel-header, .section-header) {
    background: transparent !important;
    border-bottom: 1px solid rgba(244, 236, 221, 0.07) !important;
    color: var(--nb-ivory);
}

:is(.rpg-content, .admin-layout) :is(.card-footer, .panel-footer) {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(244, 236, 221, 0.06) !important;
}

/* Legacy utility backgrounds used on player pages (bg-dark, bg-black) join
   the vault palette instead of Bootstrap's blue-grey. */
.rpg-content :is(.bg-dark, .bg-black) {
    background-color: rgba(10, 9, 6, 0.8) !important;
}

.rpg-content .border-secondary { border-color: rgba(244, 236, 221, 0.1) !important; }
.rpg-content .text-white { color: var(--nb-ivory) !important; }
.rpg-content .text-success { color: var(--nb-jade-bright) !important; }
.rpg-content .text-danger { color: var(--nb-red-bright) !important; }
.rpg-content .text-warning { color: var(--nb-gold-bright) !important; }
.rpg-content .text-info { color: var(--nb-steel-bright) !important; }

/* ------------------------------------------------------------
   8. BUTTONS
   Primary: a cut gold facet with black text — the one thing on a
   page that says "do this". Secondary: gold outline. Risk: red.
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout, .nb-command-dialog, .nb-confirm, .rpg-footer) :is(
    .btn, .game-btn, .action-btn, .submit, .primary-btn, .secondary-btn, .buy-btn, .sell-btn, .claim-btn
) {
    font-family: var(--nb-font-ui) !important;
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 8px !important;
    text-shadow: none !important;
    box-shadow: none;
    transition-property: background-color, border-color, color, box-shadow, filter, translate;
    transition-duration: var(--nb-dur-fast);
    transition-timing-function: var(--nb-ease-out);
}

@supports (corner-shape: bevel) {
    :is(.rpg-content, .admin-layout, .nb-command-dialog, .nb-confirm) :is(
        .btn, .game-btn, .action-btn, .submit, .primary-btn, .secondary-btn, .buy-btn, .sell-btn, .claim-btn
    ) {
        corner-shape: bevel;
    }
}


/* Variants are written with :where() so every variant rule has the same
   specificity and the LATER rule wins: primary, then outline, risk, gains,
   info, link, and disabled last. A page button like .game-btn.game-btn-danger
   therefore comes out red, not gold. */

/* Primary = gold. .game-btn/.action-btn/.buy-btn/.claim-btn/.submit are the
   pages' own primary actions. */
:is(.rpg-content, .admin-layout, .nb-confirm) :where(
    .btn-primary, .btn-warning, .game-btn, .game-btn-primary, .game-btn-warning, .action-btn,
    .submit, .primary-btn, .buy-btn, .claim-btn, .nb-confirm-ok
),
.pagination .active span, .pagination span.current, .pagination .active .page-link {
    color: #1a1204 !important;
    background: var(--nb-grad-action) !important;
    border: 1px solid rgba(255, 224, 138, 0.55) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(122, 85, 16, 0.5), 0 6px 16px -8px rgba(224, 171, 34, 0.7) !important;
}

:is(.rpg-content, .admin-layout, .nb-confirm) :where(
    .btn-primary, .btn-warning, .game-btn, .game-btn-primary, .game-btn-warning, .action-btn,
    .submit, .primary-btn, .buy-btn, .claim-btn, .nb-confirm-ok
):not(:disabled):hover {
    background: var(--nb-grad-action-hover) !important;
    filter: none;
    translate: 0 -1px;
}

/* Secondary = outline. */
:is(.rpg-content, .admin-layout) :where(.btn-secondary, .btn-outline-secondary, .btn-outline-primary, .btn-outline-warning,
    .btn-light, .btn-dark, .secondary-btn, .sell-btn, .btn-outline-light, .game-btn-secondary) {
    color: var(--nb-champagne) !important;
    background: rgba(224, 171, 34, 0.04) !important;
    border: 1px solid rgba(224, 171, 34, 0.4) !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) :where(.btn-secondary, .btn-outline-secondary, .btn-outline-primary, .btn-outline-warning,
    .btn-light, .btn-dark, .secondary-btn, .sell-btn, .btn-outline-light, .game-btn-secondary):not(:disabled):hover {
    color: var(--nb-gilt) !important;
    background: rgba(224, 171, 34, 0.12) !important;
    border-color: rgba(255, 224, 138, 0.7) !important;
    translate: none;
}

/* Risk = red: attacks, leaving, cancelling, deleting. */
:is(.rpg-content, .admin-layout, .nb-confirm) :where(.btn-danger, .danger-btn, .attack-btn, .game-btn-danger,
    .nb-confirm-ok.is-danger, .action-btn.danger, .quit-btn) {
    color: #fff !important;
    background: var(--nb-grad-risk) !important;
    border: 1px solid rgba(239, 74, 85, 0.6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px -8px rgba(208, 52, 63, 0.8) !important;
}

:is(.rpg-content, .admin-layout, .nb-confirm) :where(.btn-danger, .danger-btn, .attack-btn, .game-btn-danger,
    .nb-confirm-ok.is-danger, .action-btn.danger, .quit-btn):not(:disabled):hover {
    background: linear-gradient(135deg, #ea6069 0%, #c93540 60%, #9e2530 100%) !important;
}

:is(.rpg-content, .admin-layout) :where(.btn-outline-danger) {
    color: var(--nb-red-bright) !important;
    background: transparent !important;
    border: 1px solid rgba(208, 52, 63, 0.55) !important;
    box-shadow: none !important;
}

/* Gains = jade: claiming earned income, befriending, confirming. */
:is(.rpg-content, .admin-layout) :where(.btn-success, .game-btn-success) {
    color: #04130b !important;
    background: linear-gradient(135deg, #7be0ab 0%, #43b581 55%, #2e8a5f 100%) !important;
    border: 1px solid rgba(123, 224, 171, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

:is(.rpg-content, .admin-layout) :where(.btn-info, .btn-outline-info) {
    color: var(--nb-steel-bright) !important;
    background: rgba(163, 184, 202, 0.07) !important;
    border: 1px solid rgba(163, 184, 202, 0.35) !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) :where(.btn-link) {
    color: var(--nb-gold-bright) !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) :where(.btn, .game-btn, .action-btn, .submit, .buy-btn, .sell-btn, .claim-btn, .quit-btn):disabled,
:is(.rpg-content, .admin-layout) :where(.btn, .game-btn, .action-btn).disabled {
    color: var(--nb-disabled-fg) !important;
    background: rgba(244, 236, 221, 0.04) !important;
    border-color: rgba(244, 236, 221, 0.08) !important;
    box-shadow: none !important;
    translate: none !important;
    cursor: not-allowed;
}

:is(.rpg-content, .admin-layout) :is(.btn-sm, .btn-xs) {
    font-size: 13px;
    padding: 6px 12px;
}

/* ------------------------------------------------------------
   9. FORMS
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout, .nb-command-dialog) :is(
    input[type="text"], input[type="number"], input[type="search"], input[type="email"],
    input[type="password"], input[type="date"], input[type="url"], input[type="tel"], select, textarea,
    .form-control, .form-select
) {
    color: var(--nb-ivory) !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(244, 236, 221, 0.14) !important;
    border-radius: 8px !important;
    font-family: var(--nb-font-ui) !important;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

:is(.rpg-content, .admin-layout, .nb-command-dialog) :is(input, select, textarea, .form-control, .form-select):focus {
    border-color: var(--nb-gold) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(224, 171, 34, 0.18) !important;
    outline: none;
}

:is(.rpg-content, .admin-layout) ::placeholder {
    color: var(--nb-text-faint) !important;
    opacity: 1;
}

:is(.rpg-content, .admin-layout) :is(input[type="checkbox"], input[type="radio"], input[type="range"]) {
    accent-color: var(--nb-gold);
}

:is(.rpg-content, .admin-layout) .input-group-text {
    color: var(--nb-text-dim) !important;
    background: rgba(244, 236, 221, 0.05) !important;
    border-color: rgba(244, 236, 221, 0.14) !important;
}

/* ------------------------------------------------------------
   10. TABLES
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout) table {
    color: var(--nb-text);
    border-color: rgba(244, 236, 221, 0.07);
}

:is(.rpg-content, .admin-layout) table :is(thead th, th[scope="col"]) {
    background: rgba(26, 23, 16, 0.96) !important;
    color: var(--nb-text-dim) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(224, 171, 34, 0.25) !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) table :is(td, th) {
    border-color: rgba(244, 236, 221, 0.06) !important;
}

:is(.rpg-content, .admin-layout) table tbody tr:hover {
    background: rgba(224, 171, 34, 0.05) !important;
}

/* Bootstrap's dark table variant sets its own blue-grey. */
:is(.rpg-content, .admin-layout) .table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(244, 236, 221, 0.02);
    --bs-table-hover-bg: rgba(224, 171, 34, 0.05);
    --bs-table-color: var(--nb-text);
    --bs-table-border-color: rgba(244, 236, 221, 0.07);
}

/* ------------------------------------------------------------
   11. BADGES, ALERTS, TABS, PROGRESS
   ------------------------------------------------------------ */
:is(.rpg-content, .admin-layout) :is(.badge, .card-badge, .pill, .tag) {
    font-family: var(--nb-font-ui);
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 9px;
    text-shadow: none;
    box-shadow: none;
}

:is(.rpg-content, .admin-layout) :is(.alert, .flash-message, .nb-flash) {
    background: rgba(18, 16, 11, 0.94) !important;
    color: var(--nb-text) !important;
    border: 1px solid rgba(244, 236, 221, 0.1) !important;
    border-left-width: 3px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) :is(.alert-success, .flash-success) { border-left-color: var(--nb-jade) !important; }
:is(.rpg-content, .admin-layout) :is(.alert-danger, .alert-error, .flash-error) { border-left-color: var(--nb-red) !important; }
:is(.rpg-content, .admin-layout) :is(.alert-warning, .flash-warning) { border-left-color: var(--nb-gold) !important; }
:is(.rpg-content, .admin-layout) :is(.alert-info, .flash-info) { border-left-color: var(--nb-steel) !important; }

:is(.rpg-content, .admin-layout) :is(.nav-tabs, .nav-pills, .tab-strip, .nb-tabs) :is(.nav-link, a, button) {
    font-family: var(--nb-font-ui);
    font-weight: 600;
    color: var(--nb-text-dim);
    border-radius: 8px;
}

:is(.rpg-content, .admin-layout) :is(.nav-tabs, .nav-pills, .tab-strip, .nb-tabs) :is(.nav-link, a, button):is(.active, [aria-selected="true"]) {
    color: var(--nb-gold-bright) !important;
    background: rgba(224, 171, 34, 0.1) !important;
    border-color: rgba(224, 171, 34, 0.35) !important;
}

:is(.rpg-content, .admin-layout) :is(.progress, .progress-bar-bg, .meter) {
    background: rgba(244, 236, 221, 0.07) !important;
    border-radius: 99px !important;
    box-shadow: none !important;
}

:is(.rpg-content, .admin-layout) .progress-bar {
    background: var(--nb-gold) !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------
   12. MODALS AND DIALOGS
   ------------------------------------------------------------ */
:is(.modal-content, .nb-confirm, .game-popup, .popup-content, .nb-modal) {
    background: rgba(14, 12, 8, 0.99) !important;
    color: var(--nb-text) !important;
    border: 1px solid rgba(224, 171, 34, 0.3) !important;
    border-radius: 14px !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8) !important;
}

@supports (corner-shape: bevel) {
    :is(.modal-content, .nb-confirm, .game-popup, .popup-content, .nb-modal) { corner-shape: bevel; }
}

:is(.modal-header, .modal-footer) {
    border-color: rgba(244, 236, 221, 0.08) !important;
}

:is(.modal-title, .nb-confirm h2, .game-popup h2, .game-popup h3) {
    font-family: var(--nb-font-ui) !important;
    font-weight: 700 !important;
    color: var(--nb-ivory) !important;
}

::backdrop { background: rgba(0, 0, 0, 0.72); }

/* ------------------------------------------------------------
   13. FOOTER AND MOBILE NAVIGATION
   ------------------------------------------------------------ */
.rpg-footer {
    background: #000 !important;
    border-top: 1px solid rgba(244, 236, 221, 0.06) !important;
    color: var(--nb-text-faint) !important;
    font-size: 13px;
    box-shadow: none !important;
}

.rpg-footer a { color: var(--nb-text-dim) !important; }
.rpg-footer a:hover { color: var(--nb-gold-bright) !important; }

.nb-bottom-nav {
    background: rgba(0, 0, 0, 0.94) !important;
    border-top: 1px solid rgba(224, 171, 34, 0.22) !important;
    backdrop-filter: blur(14px);
}

.nb-bottom-nav a {
    font-family: var(--nb-font-ui) !important;
    font-weight: 600 !important;
    color: var(--nb-text-dim) !important;
}

.nb-bottom-nav a[aria-current="page"] {
    color: var(--nb-gold-bright) !important;
}

/* ------------------------------------------------------------
   14. TOASTS
   ------------------------------------------------------------ */
:is(.nb-toast, .toast, .game-toast) {
    background: rgba(14, 12, 8, 0.98) !important;
    color: var(--nb-text) !important;
    border: 1px solid rgba(244, 236, 221, 0.1) !important;
    border-left: 3px solid var(--nb-gold) !important;
    border-radius: 10px !important;
    font-family: var(--nb-font-ui) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
}

:is(.nb-toast, .toast, .game-toast):is(.is-success, .success, .toast-success) { border-left-color: var(--nb-jade) !important; }
:is(.nb-toast, .toast, .game-toast):is(.is-error, .error, .toast-error) { border-left-color: var(--nb-red) !important; }

/* ------------------------------------------------------------
   15. MOTION
   Hover states no longer move; the page entrance in polish.css
   stays as the one orchestrated moment. Reduced motion and Calm
   mode remove what is left.
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    :is(.rpg-content, .admin-layout) :is(.btn, .game-btn, .action-btn, .submit, .buy-btn, .claim-btn):hover {
        translate: none !important;
    }
}

html.nb-calm :is(.btn, .game-btn, .action-btn, .submit, .buy-btn, .claim-btn):hover {
    translate: none !important;
}

/* ------------------------------------------------------------
   16. PAGE-SPECIFIC CORRECTIONS
   Only where a page stylesheet contradicts the identity outright.
   ------------------------------------------------------------ */
/* One-word colour accents in a heading are a template tell; the player's
   name is part of the sentence. */
.rpg-content .player-name-highlight {
    color: inherit !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
}
/* Faction page, no-faction state (rewritten off inline styles). */
.rpg-content .nb-faction-join {
    max-width: 760px;
    margin: 0 auto;
}

.rpg-content .nb-faction-join__panel {
    padding: 22px 24px;
    margin-bottom: 18px;
}

.rpg-content .nb-faction-join__panel h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.rpg-content .nb-faction-join__panel h2 i { color: var(--nb-gold); font-size: 0.95rem; }

.rpg-content .nb-faction-join__cost { color: var(--nb-text-dim); margin: 0 0 16px; }
.rpg-content .nb-faction-join__cost strong { color: var(--nb-ivory); }

.rpg-content .nb-faction-join__form {
    display: grid;
    gap: 8px;
    max-width: 440px;
}

.rpg-content .nb-faction-join__form .btn { justify-self: start; margin-top: 6px; }

/* Landing and guest screens. The logo artwork has a black ground; `lighten`
   lets it sit directly on any dark surface without a visible box. */
.rpg-content :is(.landing-logo, .login-logo, .auth-logo, .register-logo, .logo-container) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.rpg-content :is(.landing-logo, .login-logo, .auth-logo, .register-logo, .logo-container) img,
.nb-brand-logo {
    width: min(320px, 70vw) !important;
    height: auto !important;
    mix-blend-mode: lighten;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
    background: none !important;
}

.rpg-content .landing-hero h1 {
    font-family: var(--nb-font-display) !important;
    font-weight: 700 !important;
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.08 !important;
    color: var(--nb-ivory) !important;
    max-width: 16ch;
    margin-inline: auto;
    text-shadow: none !important;
}

.rpg-content .landing-hero .hero-description {
    max-width: 58ch;
    margin-inline: auto;
    color: var(--nb-text-dim);
    font-size: 1.05rem;
}

.rpg-content .badge-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nb-text-dim) !important;
    background: rgba(244, 236, 221, 0.04) !important;
    border: 1px solid rgba(244, 236, 221, 0.12) !important;
    box-shadow: none !important;
    font-weight: 600;
}

.nb-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nb-jade-bright);
    box-shadow: 0 0 0 3px rgba(94, 207, 146, 0.18);
}

.rpg-content :is(.btn-neon, .btn-primary-neon, .cta-primary, .login-button, .register-button, .auth-submit, .btn-login) {
    color: #1a1204 !important;
    background: var(--nb-grad-action) !important;
    border: 1px solid rgba(255, 224, 138, 0.55) !important;
    border-radius: 9px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -12px rgba(224, 171, 34, 0.8) !important;
    text-shadow: none !important;
    font-family: var(--nb-font-ui) !important;
    font-weight: 700 !important;
    animation: none !important;
}

.rpg-content :is(.btn-outline-neon, .cta-secondary) {
    color: var(--nb-champagne) !important;
    background: transparent !important;
    border: 1px solid rgba(224, 171, 34, 0.45) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

.rpg-content :is(.feature-icon, .stat-icon, .step-num) {
    color: var(--nb-gold-bright) !important;
    background: rgba(224, 171, 34, 0.09) !important;
    border: 1px solid rgba(224, 171, 34, 0.25) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.rpg-content .feature-icon i,
.rpg-content .stat-icon i { color: inherit !important; }

.rpg-content :is(.section-badge, .trust-badge) {
    color: var(--nb-text-dim) !important;
    background: none !important;
    border-color: rgba(244, 236, 221, 0.12) !important;
    box-shadow: none !important;
}

.rpg-content .trust-badge i { color: var(--nb-jade) !important; }

.rpg-content :is(.live-stat-value, .stat-number) {
    font-family: var(--nb-font-display) !important;
    font-weight: 700 !important;
    color: var(--nb-gold-bright) !important;
    text-shadow: none !important;
    letter-spacing: -0.02em !important;
}

/* Sign-in and sign-up screens. */
.rpg-content :is(.login-title, .register-title, .auth-title) {
    font-family: var(--nb-font-display) !important;
    font-weight: 700 !important;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem) !important;
    letter-spacing: -0.015em !important;
    color: var(--nb-ivory) !important;
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
}

.rpg-content :is(.login-subtitle, .register-subtitle) {
    color: var(--nb-text-dim) !important;
    text-shadow: none !important;
}

.rpg-content :is(.login-container, .register-container, .auth-card) {
    background: linear-gradient(180deg, rgba(26, 23, 16, 0.94), rgba(14, 12, 8, 0.96)) !important;
    border: 1px solid rgba(244, 236, 221, 0.08) !important;
    border-top-color: rgba(224, 171, 34, 0.3) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9) !important;
}

@supports (corner-shape: bevel) {
    .rpg-content :is(.login-container, .register-container, .auth-card) { corner-shape: bevel; }
}

.rpg-content :is(.login-btn-animated, .register-btn-animated, .register-btn, .auth-btn) {
    color: #1a1204 !important;
    background: var(--nb-grad-action) !important;
    border: 1px solid rgba(255, 224, 138, 0.55) !important;
    border-radius: 9px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -12px rgba(224, 171, 34, 0.8) !important;
    text-shadow: none !important;
    font-family: var(--nb-font-ui) !important;
    font-weight: 700 !important;
    animation: none !important;
}

.rpg-content :is(.login-btn-animated, .register-btn-animated) span { color: inherit !important; }

.rpg-content :is(.login-btn-animated, .register-btn-animated)::before,
.rpg-content :is(.login-btn-animated, .register-btn-animated)::after { display: none !important; }

.rpg-content .login-features i,
.rpg-content .register-features i { color: var(--nb-gold) !important; }

/* Shell controls lose their red glow. */
.sidebar-toggle,
#sidebar-toggle {
    background: rgba(14, 12, 8, 0.96) !important;
    border: 1px solid rgba(224, 171, 34, 0.3) !important;
    box-shadow: none !important;
    color: var(--nb-gold-bright) !important;
}

/* Welcome banner: one gold rule, and faction/rank pills in the palette. */
.rpg-content .player-banner::before {
    background: linear-gradient(90deg, transparent, var(--nb-gold), transparent) !important;
}

.rpg-content :is(.player-faction-badge, .player-rank) {
    color: var(--nb-champagne) !important;
}

.rpg-content .player-faction-badge {
    background: rgba(224, 171, 34, 0.07) !important;
    border-color: rgba(224, 171, 34, 0.25) !important;
}

.rpg-content .player-faction-badge i { color: var(--nb-gold) !important; }

.rpg-content .nb-tradein {
    margin: 2px 0 0;
    font-size: 0.84rem;
    color: var(--nb-jade-bright);
}

/* Leaderboard: where you stand. */
.rpg-content .nb-standing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 14px;
    color: var(--nb-text-dim);
    background: rgba(224, 171, 34, 0.06);
    border: 1px solid rgba(224, 171, 34, 0.22);
    border-radius: 10px;
}

.rpg-content .nb-standing i { color: var(--nb-gold); }
.rpg-content .nb-standing strong { color: var(--nb-ivory); }

/* Crime board: repeat the last job. */
.rpg-content .nb-repeat-crime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 10px 12px 10px 16px;
    background: rgba(224, 171, 34, 0.06);
    border: 1px solid rgba(224, 171, 34, 0.24);
    border-radius: 10px;
}

.rpg-content .nb-repeat-crime__label { color: var(--nb-text-dim); }
.rpg-content .nb-repeat-crime__label i { color: var(--nb-gold); margin-right: 4px; }
.rpg-content .nb-repeat-crime__label strong { color: var(--nb-ivory); }

/* Command bar: daily reward reminder. */
.nb-reward-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: #1a1204 !important;
    background: var(--nb-grad-action);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.nb-reward-chip:hover { background: var(--nb-grad-action-hover); }

/* Sidebar ledger: moves at the cap, and unpaid bills. */
.sidebar-nav .nb-ledger #sidebar-moves.is-full .sidebar-stat-value::after {
    content: 'full';
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1204;
    background: var(--nb-gold);
    border-radius: 999px;
    vertical-align: 1px;
}

.sidebar-nav .nb-ledger .nb-ledger__row--alert a { color: inherit; text-decoration: none; }
.sidebar-nav .nb-ledger .nb-ledger__row--alert :is(i, strong, span) { color: var(--nb-red-bright) !important; }
.sidebar-nav .nb-ledger .nb-ledger__row--alert a:hover strong { text-decoration: underline; }

/* Global chat: a message that mentions you. */
#meiko-chat-messages p.nb-chat-mention {
    background: rgba(224, 171, 34, 0.1);
    border-left: 3px solid var(--nb-gold);
    padding-left: 8px;
    border-radius: 4px;
}

/* Market: what you own, the crash notice and the "All" quantity button. */
.rpg-content .nb-owned {
    margin: 0 0 8px;
    font-size: 0.86rem;
    color: var(--nb-text-dim);
}

.rpg-content .nb-owned i { color: var(--nb-gold); margin-right: 4px; }
.rpg-content .nb-owned strong { color: var(--nb-ivory); }

.rpg-content .nb-crash-notice { margin-bottom: 16px; }
.rpg-content .nb-crash-notice i { color: var(--nb-gold); margin-right: 6px; }

.rpg-content .quantity-btn.nb-fill-owned {
    width: auto;
    padding-inline: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--nb-champagne);
}

/* Jobs: how each job fits your education. */
.rpg-content .nb-job-fit {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    vertical-align: 1px;
}

.rpg-content .nb-job-fit.is-ok { color: var(--nb-jade-bright); background: rgba(94, 207, 146, 0.1); }
.rpg-content .nb-job-fit.is-gap { color: var(--nb-text-dim); background: rgba(244, 236, 221, 0.06); }
.rpg-content .nb-job-fit.is-current { color: #1a1204; background: var(--nb-gold); }

/* Trades: today's cash allowance and offer expiry. */
.rpg-content .nb-allowance {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin: 0 0 14px;
    padding: 10px 14px;
    color: var(--nb-text-dim);
    background: rgba(244, 236, 221, 0.03);
    border: 1px solid rgba(244, 236, 221, 0.09);
    border-radius: 10px;
}

.rpg-content .nb-allowance i { color: var(--nb-gold); }
.rpg-content .nb-allowance strong { color: var(--nb-ivory); }
.rpg-content .nb-trade-expiry { color: var(--nb-text-faint); }

.rpg-content .nb-sell-all { margin-top: 8px; }

/* Profile: presence and attack eligibility. */
.rpg-content .nb-presence {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 6px;
    font-size: 0.86rem;
    color: var(--nb-text-dim);
}

.rpg-content .nb-presence.is-online { color: var(--nb-jade-bright); }

.rpg-content .nb-attack-blocked {
    margin: 8px 0 0;
    font-size: 0.84rem;
    color: var(--nb-text-dim);
}

.rpg-content .nb-attack-blocked i { color: var(--nb-gold); margin-right: 4px; }

/* Settings: sign out other devices. */
.rpg-content .nb-logout-others {
    display: grid;
    gap: 8px;
    max-width: 420px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 236, 221, 0.08);
}

.rpg-content .nb-logout-others h3 { margin: 0; font-size: 1rem; }
.rpg-content .nb-logout-others h3 i { color: var(--nb-gold); margin-right: 6px; }
.rpg-content .nb-logout-others p { margin: 0 0 4px; }
.rpg-content .nb-logout-others .btn { justify-self: start; }

/* Admin panel brand joins the gold identity. */
.admin-layout #admin-navigation > h3 {
    font-family: var(--nb-font-display) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: var(--nb-gold-bright) !important;
    text-shadow: none !important;
}

.rpg-footer .nb-version {
    margin-left: 6px;
    color: var(--nb-text-faint);
    font-size: 12px;
}
