﻿/* ============================================================
   Profile Page — Blindside Chess
   ============================================================ */

.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 60vh;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: rgba(247, 234, 208, 0.56);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ═══ CHARACTER BANNER ═══ */
.char-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(213, 166, 66, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(213, 166, 66, 0.06) 0%, transparent 40%), rgba(10, 9, 8, 0.92);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

    .char-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(213, 166, 66, 0.04), transparent 70%);
        pointer-events: none;
    }

.char-emblem {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid #d5a642;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 50%), linear-gradient(160deg, rgba(213, 166, 66, 0.2), rgba(10, 9, 8, 0.9));
    box-shadow: 0 0 28px rgba(213, 166, 66, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.4);
    font-size: 2.6rem;
    position: relative;
}

.char-emblem__badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #050506;
    border: 2px solid #d5a642;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 900;
    color: #ffe8a0;
}

.char-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.char-info__name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffe8a0;
    letter-spacing: 0.02em;
    line-height: 1;
}

.char-info__title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d5a642;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-info__title-divider {
    width: 20px;
    height: 1px;
    background: rgba(213, 166, 66, 0.35);
}

.char-info__meta {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.25rem;
}

.char-meta {
    font-size: 0.75rem;
    color: rgba(247, 234, 208, 0.35);
}

    .char-meta strong {
        color: rgba(247, 234, 208, 0.56);
        font-weight: 600;
    }

.char-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.char-action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(213, 166, 66, 0.18);
    border-radius: 6px;
    background: transparent;
    color: rgba(247, 234, 208, 0.56);
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 140ms ease;
}

    .char-action-btn:hover {
        border-color: rgba(213, 166, 66, 0.35);
        color: #ffe8a0;
        background: rgba(213, 166, 66, 0.08);
    }

/* ── Faction Badge ── */
.faction-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(213, 166, 66, 0.28);
    background: rgba(213, 166, 66, 0.08);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffe8a0;
}

.faction-badge__icon {
    font-size: 0.8rem;
}

/* ═══ SECTION STRUCTURE ═══ */
.profile-section {
    margin-bottom: 2.5rem;
}

.profile-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.profile-section__title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d5a642;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.profile-section__title-icon {
    font-size: 1rem;
}

.profile-section__divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(213, 166, 66, 0.35), transparent);
    margin-left: 0.75rem;
}

/* ── Privacy Toggle ── */
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(247, 234, 208, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.privacy-toggle__switch {
    width: 32px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(213, 166, 66, 0.28);
    background: rgba(10, 9, 8, 0.8);
    position: relative;
    transition: all 160ms ease;
}

    .privacy-toggle__switch::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(247, 234, 208, 0.35);
        transition: all 160ms ease;
    }

    .privacy-toggle__switch.on {
        border-color: #d5a642;
        background: rgba(213, 166, 66, 0.15);
    }

        .privacy-toggle__switch.on::after {
            left: 16px;
            background: #d5a642;
        }

/* ═══ COMBAT RECORDS ═══ */
.combat-records {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.combat-card {
    border: 1px solid rgba(213, 166, 66, 0.28);
    border-radius: 12px;
    background: rgba(14, 13, 11, 0.85);
    overflow: hidden;
    transition: border-color 200ms ease;
}

    .combat-card:hover {
        border-color: rgba(213, 166, 66, 0.45);
    }

.combat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(213, 166, 66, 0.03);
}

.combat-card__variant {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffe8a0;
}

.combat-card__variant-icon {
    font-size: 0.75rem;
    margin-right: 0.35rem;
}

/* Elo display */
.elo-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem 0.8rem;
}

.elo-display__number {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffe8a0;
    line-height: 1;
    text-shadow: 0 0 20px rgba(213, 166, 66, 0.2);
}

.elo-display__label {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
    margin-top: 0.2rem;
}

.elo-display__rank {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(213, 166, 66, 0.18);
    background: rgba(213, 166, 66, 0.08);
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d5a642;
    margin-top: 0.5rem;
}

/* W/L/D bar */
.wld-bar {
    display: flex;
    height: 6px;
    margin: 0.8rem 1rem;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.wld-bar__w {
    background: #4ecdc4;
}

.wld-bar__d {
    background: #d5a642;
}

.wld-bar__l {
    background: #b83b3b;
}

/* Stats grid */
.combat-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 1rem 1rem;
}

.combat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0;
}

    .combat-stat + .combat-stat {
        border-left: 1px solid rgba(255, 255, 255, 0.03);
    }

.combat-stat__value {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 900;
    color: #f7ead0;
}

.combat-stat__value--green {
    color: #4ecdc4;
}

.combat-stat__value--red {
    color: #b83b3b;
}

.combat-stat__value--gold {
    color: #d5a642;
}

.combat-stat__label {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
}

/* ═══ PIECE LEGACIES ═══ */
.legacies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.75rem;
}

.legacy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    border: 1px solid rgba(213, 166, 66, 0.18);
    border-radius: 10px;
    background: rgba(14, 13, 11, 0.85);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    position: relative;
}

    .legacy-card:hover {
        border-color: rgba(213, 166, 66, 0.28);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

.legacy-card__piece {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    position: relative;
}

.legacy-card__glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 166, 66, 0.2), transparent 65%);
    pointer-events: none;
}

.legacy-card__name {
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffe8a0;
    margin-bottom: 0.45rem;
}

.legacy-card__identity {
    font-size: 0.58rem;
    color: rgba(247, 234, 208, 0.35);
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.legacy-card__variant {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.5rem;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    border: 1px solid rgba(213, 166, 66, 0.18);
    background: rgba(10, 9, 8, 0.8);
    color: rgba(247, 234, 208, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.legacy-stats {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.legacy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legacy-stat__val {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 900;
}

.legacy-stat__val--kills {
    color: #4ecdc4;
}

.legacy-stat__val--deaths {
    color: #b83b3b;
}

.legacy-stat__val--pts {
    color: #d5a642;
}

.legacy-stat__lbl {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
}

/* ═══ AI RECORD ═══ */
.ai-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(213, 166, 66, 0.28);
    border-radius: 12px;
    background: rgba(14, 13, 11, 0.85);
    overflow: hidden;
}

.ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 1.2rem 0.75rem;
}

    .ai-stat + .ai-stat {
        border-left: 1px solid rgba(255, 255, 255, 0.03);
    }

.ai-stat__val {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #f7ead0;
}

.ai-stat__val--green {
    color: #4ecdc4;
}

.ai-stat__val--red {
    color: #b83b3b;
}

.ai-stat__val--gold {
    color: #d5a642;
}

.ai-stat__lbl {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
}

/* ═══ RECENT BATTLES ═══ */
.recent-games {
    border: 1px solid rgba(213, 166, 66, 0.28);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(14, 13, 11, 0.85);
}

.recent-game {
    display: grid;
    grid-template-columns: 32px 1fr auto auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 140ms ease;
    cursor: pointer;
}

    .recent-game:hover {
        background: rgba(213, 166, 66, 0.04);
    }

    .recent-game:last-child {
        border-bottom: none;
    }

.recent-game__detail {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.recent-game__result {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 900;
}

.recent-game__result--W {
    background: rgba(78, 205, 196, 0.12);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.recent-game__result--L {
    background: rgba(184, 59, 59, 0.12);
    color: #b83b3b;
    border: 1px solid rgba(184, 59, 59, 0.3);
}

.recent-game__result--D {
    background: rgba(213, 166, 66, 0.1);
    color: #d5a642;
    border: 1px solid rgba(213, 166, 66, 0.25);
}

.recent-game__opponent {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f7ead0;
    text-decoration: none;
    transition: color 140ms ease;
    width: fit-content;
}

    .recent-game__opponent:hover {
        color: #ffe8a0;
        text-decoration: underline;
        text-decoration-color: rgba(213, 166, 66, 0.4);
        text-underline-offset: 2px;
    }

.recent-game__opponent-sub {
    font-size: 0.65rem;
    color: rgba(247, 234, 208, 0.35);
}

.recent-game__variant {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(213, 166, 66, 0.18);
}

.recent-game__elo {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
}

.recent-game__elo--up {
    color: #4ecdc4;
}

.recent-game__elo--down {
    color: #b83b3b;
}

.recent-game__elo--same {
    color: rgba(247, 234, 208, 0.35);
}

.recent-game__time {
    font-size: 0.65rem;
    color: rgba(247, 234, 208, 0.35);
    text-align: right;
    min-width: 70px;
}

.recent-game__summary {
    font-size: 0.65rem;
    color: rgba(247, 234, 208, 0.35);
}

/* ═══ CAMPAIGN PLACEHOLDER ═══ */
.campaign-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    border: 1px dashed rgba(213, 166, 66, 0.18);
    border-radius: 12px;
    background: rgba(10, 9, 8, 0.5);
    text-align: center;
}

.campaign-placeholder__icon {
    font-size: 2rem;
    color: rgba(213, 166, 66, 0.35);
}

.campaign-placeholder__text {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.35);
}

.campaign-placeholder__sub {
    font-size: 0.8rem;
    color: rgba(247, 234, 208, 0.35);
    max-width: 36ch;
    line-height: 1.5;
}

.recent-game__player-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recent-game__color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-game__color-dot--white {
    background: radial-gradient(circle at 35% 30%, #fff, #d4c8a8);
    border: 1px solid rgba(200, 190, 170, 0.5);
}

.recent-game__color-dot--black {
    background: radial-gradient(circle at 35% 30%, #444, #1a1a1a);
    border: 1px solid rgba(100, 100, 100, 0.4);
}

.recent-game__vs {
    font-size: 0.6rem;
    color: rgba(247, 234, 208, 0.3);
    font-style: italic;
}

.training-grounds {
    border-color: rgba(213, 166, 66, 0.18);
}

.recent-game__difficulty {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 234, 208, 0.45);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(213, 166, 66, 0.12);
    background: rgba(213, 166, 66, 0.04);
    white-space: nowrap;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 980px) {
    .combat-records {
        grid-template-columns: 1fr;
    }

    .char-banner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .char-info__meta {
        justify-content: center;
    }

    .char-actions {
        align-items: center;
    }

    .legacies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .ai-record {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-game {
        grid-template-columns: 28px 1fr auto;
    }

    .recent-game__variant,
    .recent-game__time {
        display: none;
    }

}

@media (max-width: 480px) {

    /* ── Page padding ── */
    .profile-page {
        padding: 1rem 0.75rem 3rem;
    }

    /* ── Character Banner: stack vertically ── */
    .char-banner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 1.2rem 1rem;
        gap: 0.75rem;
    }

    .char-emblem {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .char-emblem__badge {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }

    .char-info__name {
        font-size: 1.3rem;
    }

    .char-info__title {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.58rem;
        gap: 0.35rem;
    }

    .char-info__meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }

    .char-meta {
        font-size: 0.65rem;
    }

    .char-actions {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
    }

    .char-action-btn {
        font-size: 0.5rem;
        padding: 0.35rem 0.6rem;
    }

    /* ── Section headers ── */
    .profile-section {
        margin-bottom: 1.5rem;
    }

    .profile-section__header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .profile-section__title {
        font-size: 0.7rem;
        letter-spacing: 0.08em;
    }

    .profile-section__title-icon {
        font-size: 0.85rem;
    }

    .privacy-toggle {
        font-size: 0.55rem;
    }

    .privacy-toggle__switch {
        width: 28px;
        height: 16px;
    }

        .privacy-toggle__switch::after {
            width: 10px;
            height: 10px;
        }

        .privacy-toggle__switch.on::after {
            left: 14px;
        }

    /* ── Combat Records: single column ── */
    .combat-records {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .combat-card__header {
        padding: 0.65rem 0.75rem;
    }

    .combat-card__variant {
        font-size: 0.6rem;
    }

    .elo-display {
        padding: 0.85rem 0.75rem 0.5rem;
    }

    .elo-display__number {
        font-size: 1.8rem;
    }

    .elo-display__label {
        font-size: 0.52rem;
    }

    .elo-display__rank {
        font-size: 0.48rem;
        padding: 0.15rem 0.45rem;
    }

    .wld-bar {
        margin: 0.5rem 0.75rem;
    }

    .combat-stats {
        padding: 0 0.75rem 0.75rem;
    }

    .combat-stat__value {
        font-size: 0.88rem;
    }

    .combat-stat__label {
        font-size: 0.48rem;
    }

    /* ── Piece Legacies: 2 columns ── */
    .legacies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .legacy-card {
        padding: 0.75rem 0.5rem;
    }

    .legacy-card__piece {
        font-size: 1.5rem;
    }

    .legacy-card__name {
        font-size: 0.58rem;
        margin-bottom: 0.3rem;
    }

    .legacy-card__identity {
        font-size: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .legacy-card__variant {
        font-size: 0.42rem;
        padding: 0.1rem 0.25rem;
    }

    .legacy-stat__val {
        font-size: 0.72rem;
    }

    .legacy-stat__lbl {
        font-size: 0.42rem;
    }

    /* ── AI Record: 2x2 grid ── */
    .ai-record {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-stat {
        padding: 0.85rem 0.5rem;
    }

        .ai-stat + .ai-stat:nth-child(3) {
            border-left: none;
            border-top: 1px solid rgba(255, 255, 255, 0.03);
        }

        .ai-stat:nth-child(3),
        .ai-stat:nth-child(4) {
            border-top: 1px solid rgba(255, 255, 255, 0.03);
        }

    .ai-stat__val {
        font-size: 1.2rem;
    }

    .ai-stat__lbl {
        font-size: 0.5rem;
    }

    /* ── Recent Battles: compact rows ── */
    .recent-game {
        grid-template-columns: 24px 1fr auto;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
    }

    .recent-game__result {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }

    .recent-game__opponent {
        font-size: 0.72rem;
    }

    .recent-game__opponent-sub {
        font-size: 0.55rem;
    }

    .recent-game__variant {
        display: none;
    }

    .recent-game__elo {
        font-size: 0.62rem;
    }

    .recent-game__time {
        display: none;
    }

    /* ── Campaign Placeholder ── */
    .campaign-placeholder {
        padding: 1.5rem 1rem;
    }

    .campaign-placeholder__icon {
        font-size: 1.5rem;
    }

    .campaign-placeholder__text {
        font-size: 0.65rem;
    }

    .campaign-placeholder__sub {
        font-size: 0.7rem;
        max-width: unset;
    }

    /* ── Faction Badge ── */
    .faction-badge {
        font-size: 0.52rem;
        padding: 0.2rem 0.5rem;
    }

    .faction-badge__icon {
        font-size: 0.65rem;
    }

    .training-grounds .recent-game {
        grid-template-columns: 28px 1fr auto auto;
        gap: 0.5rem;
    }

    .training-grounds .recent-game__time {
        display: none;
    }

    .training-grounds .recent-game__variant {
        display: inline-flex;
    }

    .training-grounds .recent-game__difficulty {
        display: inline-flex;
        font-size: 0.5rem;
    }
}