/* BATTLE MVP - assets/challenges.css
 *
 * /challenges.php was written against a stylesheet that never shipped: the
 * page markup uses two whole class families - site* (page skeleton) and ui*
 * (cards, buttons) - plus sectionTitle and sideInfo*, and none of the
 * fourteen stylesheets on this platform define any of them. The page had
 * therefore never been styled below the shell, which is why the two-column
 * grid collapsed, the quick-action buttons rendered as run-together text and
 * the panel headings came out smaller than their own body copy.
 *
 * This file supplies only the missing families. The page keeps its own inline
 * <style> for the ch*/lb* families, and because a <style> in <body> comes
 * after a <link> in <head>, those rules still win wherever they overlap -
 * this layer sits underneath and never fights them.
 *
 * Colours come from /assets/logo/brand.css tokens with literal fallbacks, so
 * the page degrades sanely if that file is ever loaded out of order.
 */

/* ── page skeleton ───────────────────────────────────────── */
.sitePage {
    width: 100%;
    padding: 4px 0 36px;
    font-family: 'Inter', system-ui, sans-serif;
}

.siteHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.siteHero__left  { min-width: 0; flex: 1 1 420px; }
.siteHero__right { flex: 0 0 auto; }

.siteBadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid var(--bm-border, #1E2A38);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bm-text-dim, #63788E);
}
.siteBadge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bm-brand, #00FFA6);
    box-shadow: 0 0 8px var(--bm-brand-glow, rgba(0,255,166,.35));
}

.siteTitle {
    margin: 10px 0 6px;
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
    color: var(--bm-text, #EAF1FF);
}
.siteSub {
    max-width: 64ch;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bm-text-muted, #9DB0C6);
}

.siteSupportCard {
    padding: 12px 14px;
    border: 1px solid var(--bm-border, #1E2A38);
    border-radius: 12px;
    background: var(--bm-surface, #0C1218);
    font-size: 12px;
    color: var(--bm-text, #EAF1FF);
}
.siteSupportCard__sub {
    margin-top: 3px;
    font-size: 11px;
    color: var(--bm-text-dim, #63788E);
}

/* ── two-column grid ─────────────────────────────────────── */
.siteGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}
.siteMain { min-width: 0; }
.siteSide { min-width: 0; }

@media (max-width: 1100px) {
    .siteGrid { grid-template-columns: 1fr; }
}

/* ── cards ───────────────────────────────────────────────── */
.uiCard {
    margin-bottom: 14px;
    border: 1px solid var(--bm-border, #1E2A38);
    border-radius: 14px;
    background: var(--bm-surface, #0C1218);
    overflow: hidden;
}
.uiCard:last-child { margin-bottom: 0; }

.uiCard__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 13px 16px;
    border-bottom: 1px solid var(--bm-border, #1E2A38);
}
.uiCard__bd { padding: 14px 16px; }

/* Panel heading. Was rendering at browser default, i.e. smaller than the body
   copy underneath it - the reason "Prizes" and "Player tips" read as captions. */
.sectionTitle {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bm-text, #EAF1FF);
}

/* ── buttons ─────────────────────────────────────────────── */
.uiBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--bm-border-strong, #2B3B4D);
    border-radius: 10px;
    background: var(--bm-surface-2, #121A24);
    color: var(--bm-text, #EAF1FF);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.uiBtn:hover {
    border-color: var(--bm-brand-line, rgba(0,255,166,.35));
    background: var(--bm-surface-3, #18232F);
}
.uiBtn:disabled,
.uiBtn[disabled] {
    opacity: .42;
    cursor: not-allowed;
    border-color: var(--bm-border, #1E2A38);
    background: var(--bm-surface, #0C1218);
}
.uiBtn:disabled:hover { border-color: var(--bm-border, #1E2A38); }

.uiBtn--green {
    border-color: transparent;
    background: var(--bm-brand-grad, linear-gradient(135deg,#1EE0AC 0%,#08D6E8 100%));
    color: #04140D;
    font-weight: 800;
}
.uiBtn--green:hover { filter: brightness(1.06); background: var(--bm-brand-grad, linear-gradient(135deg,#1EE0AC 0%,#08D6E8 100%)); }

.uiBtn--ghost {
    background: transparent;
    color: var(--bm-text-muted, #9DB0C6);
}
.uiBtn--ghost:hover { color: var(--bm-text, #EAF1FF); background: transparent; }

/* ── side info lists ─────────────────────────────────────── */
.sideInfoList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}
/* <b> is the item label. Inline it ran into the sentence after it, which is how
   "Player tips Profile & nickname are tied to Steam" ended up as one line. */
.sideInfoItem {
    font-size: 12px;
    line-height: 1.55;
    color: var(--bm-text-muted, #9DB0C6);
}
.sideInfoItem b {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bm-text, #EAF1FF);
}
