/* Inner pages use the homepage palette: flat black, warm text, gold. */

body.uf-spear:not(.is-home) {
    background: #0c0e11 !important;
    background-image: none !important;
    color: #f4f1ea !important;
    font-family: Manrope, "Golos Text", sans-serif;
    --color-ink: #0c0e11;
    --color-ink-raised: #121418;
    --color-line: rgba(255, 255, 255, 0.08);
    --color-bone: #f4f1ea;
    --color-bone-muted: #a7a59d;
    --color-bronze: #e0b15a;
    --color-bronze-bright: #c9963a;
    --color-accent: #e0b15a;
    --color-accent-bright: #c9963a;
    --uf-primary: #e0b15a;
    --uf-primary-hover: #c9963a;
    --uf-text: #f4f1ea;
    --uf-text-secondary: #ddd9d0;
    --uf-text-muted: #a7a59d;
}

body.uf-spear:not(.is-home) #main-content,
body.uf-spear:not(.is-home) button,
body.uf-spear:not(.is-home) input,
body.uf-spear:not(.is-home) select,
body.uf-spear:not(.is-home) textarea {
    font-family: Manrope, "Golos Text", sans-serif;
}

body.uf-spear:not(.is-home) .text-\[\#d4a24c\],
body.uf-spear:not(.is-home) .text-\[\#d7a441\],
body.uf-spear:not(.is-home) .text-\[\#c97b45\] {
    color: #e0b15a !important;
}

body.uf-spear:not(.is-home) .bg-\[\#0b1118\],
body.uf-spear:not(.is-home) .bg-\[\#080b0e\],
body.uf-spear:not(.is-home) .bg-\[\#070a0e\],
body.uf-spear:not(.is-home) .bg-\[\#0b0b0c\] {
    background-color: #121418 !important;
}

body.uf-spear:not(.is-home) .uf-rules-page,
body.uf-spear:not(.is-home) .uf-stats-page,
body.uf-spear:not(.is-home) .uf-team-page,
body.uf-spear:not(.is-home) .uf-profile-page,
body.uf-spear:not(.is-home) .uf-profile-edit-page,
body.uf-spear:not(.is-home) .uf-wiki-page,
body.uf-spear:not(.is-home) .uf-htp-page,
body.uf-spear:not(.is-home) .uf-login-page,
body.uf-spear:not(.is-home) .uf-register-page,
body.uf-spear:not(.is-home) .uf-media {
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

body.uf-spear:not(.is-home) .uf-rules-sidebar__inner,
body.uf-spear:not(.is-home) .uf-htp-modal__overlay {
    background: #121418 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.uf-spear:not(.is-home) .uf-rules-sidebar__inner,
body.uf-spear:not(.is-home) .uf-rules-block,
body.uf-spear:not(.is-home) .uf-login-card,
body.uf-spear:not(.is-home) .uf-stats-card,
body.uf-spear:not(.is-home) .uf-stats-empty,
body.uf-spear:not(.is-home) .uf-stats-filters,
body.uf-spear:not(.is-home) .uf-team-card {
    border-radius: 12px !important;
}

body.uf-spear:not(.is-home) .uf-stats-page {
    --uf-stats-accent: #e0b15a;
    --uf-stats-accent-soft: rgba(224, 177, 90, 0.1);
    --uf-stats-bg: #0c0e11;
    --uf-stats-panel: #121418;
    --uf-stats-panel-2: #16191e;
    --uf-stats-border: rgba(255, 255, 255, 0.08);
    --uf-stats-border-strong: rgba(255, 255, 255, 0.14);
    --uf-stats-text: #f4f1ea;
    --uf-stats-muted: #a7a59d;
    --uf-stats-dim: #8d8a82;
    background: transparent;
}

body.uf-spear:not(.is-home) .uf-stats-server-dot {
    background: #e0b15a !important;
    box-shadow: none !important;
}

body.uf-spear:not(.is-home) .uf-stats-card-accent,
body.uf-spear:not(.is-home) .uf-stats-podium-1 {
    border-color: rgba(224, 177, 90, 0.35) !important;
    background: #121418 !important;
}

body.uf-spear:not(.is-home) .uf-stats-filter-submit,
body.uf-spear:not(.is-home) .uf-stats-page-button.is-active,
body.uf-spear:not(.is-home) a.uf-login-submit,
body.uf-spear:not(.is-home) .uf-register-discord-button {
    border-radius: 8px !important;
    background: #e0b15a !important;
    color: #14110c !important;
}

body.uf-spear:not(.is-home) .uf-stats-search-wrap input,
body.uf-spear:not(.is-home) .uf-stats-filter select,
body.uf-spear:not(.is-home) .uf-login-card .uf-login-input,
body.uf-spear:not(.is-home) .uf-register-input {
    border-radius: 8px !important;
}

body.uf-spear:not(.is-home) .uf-stats-search-wrap input:focus,
body.uf-spear:not(.is-home) .uf-stats-filter select:focus {
    border-color: rgba(224, 177, 90, 0.7) !important;
}

body.uf-spear:not(.is-home) .uf-rules-header__title,
body.uf-spear:not(.is-home) .uf-stats-title,
body.uf-spear:not(.is-home) .uf-team-page__title,
body.uf-spear:not(.is-home) .uf-media h1 {
    color: #f4f1ea;
    font-weight: 750;
    letter-spacing: -0.03em;
}

body.uf-spear:not(.is-home) .uf-team-page__kicker,
body.uf-spear:not(.is-home) .uf-stats-kicker,
body.uf-spear:not(.is-home) .uf-rules-header__eyebrow {
    color: #e0b15a !important;
}

.uf-media {
    padding: 36px 0 72px;
}

.uf-media__kicker {
    margin: 0 0 10px;
    color: #e0b15a;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.uf-media h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}

.uf-media__lead {
    max-width: 520px;
    margin: 12px 0 0;
    color: #a7a59d;
}

.uf-media__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.uf-media__grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #121418;
}

@media (max-width: 980px) {
    .uf-media__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    body.uf-spear:not(.is-home) .uf-rules-page,
    body.uf-spear:not(.is-home) .uf-stats-page,
    body.uf-spear:not(.is-home) .uf-team-page,
    body.uf-spear:not(.is-home) .uf-profile-page,
    body.uf-spear:not(.is-home) .uf-profile-edit-page,
    body.uf-spear:not(.is-home) .uf-wiki-page,
    body.uf-spear:not(.is-home) .uf-htp-page,
    body.uf-spear:not(.is-home) .uf-login-page,
    body.uf-spear:not(.is-home) .uf-register-page,
    body.uf-spear:not(.is-home) .uf-media {
        width: calc(100% - 28px);
    }

    .uf-media { padding-top: 24px; }
    .uf-media__grid { grid-template-columns: 1fr; }
    body.uf-spear:not(.is-home) .uf-rules-header__title,
    body.uf-spear:not(.is-home) .uf-stats-title { font-size: 32px !important; }
    body.uf-spear:not(.is-home) .uf-stats-page table,
    body.uf-spear:not(.is-home) .uf-profile-page table {
        display: block;
        overflow-x: auto;
    }
}
