/* ===========================================================
   Player profile page (`/profile/{steamId}`) — local additions
   on top of glass-card, stat-card, market-tab, inv-showcase-card,
   inv-stat-chip, server-table-glassy, etc. New CSS here covers
   patterns the existing component classes do not:
       - Radial dial gauge (KPI dials on the Stats tab)
       - Hero card treatment + large avatar + headline figures
       - Module shell: accordion menu, sheet header, group colours
       - Apžvalga card grid + last-14-days activity bars
       - Clickable per-server scorecard + active state
       - Loadout empty-slot placeholder
       - Playtime bar row (Activity tab)
       - Timeline rail (Activity tab session list)
       - Empty state container
       - Tab body fade-in
       - Globally-banned banner pulse
   All classes use the `.profile-` prefix.
   No font-size declarations — sizing belongs in markup via fs-*.
   =========================================================== */

/* ---- Radial dial (conic-gradient) ---- */
.profile-dial {
    --profile-dial-pct: 0;
    --profile-dial-color: #0dcaf0;
    --profile-dial-track: rgba(255, 255, 255, 0.06);

    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(
        var(--profile-dial-color) calc(var(--profile-dial-pct) * 1%),
        var(--profile-dial-track) 0
    );
    box-shadow: 0 0 18px rgba(13, 202, 240, 0.05);
}

    /* Center cutout — turns the disc into a donut so the value sits in a clean well. */
    .profile-dial::before {
        content: "";
        position: absolute;
        inset: 0.5rem;
        background: rgba(15, 22, 33, 0.92);
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

.profile-dial-value {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.profile-dial-label {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Larger / smaller dial sizes. The ::before inset stays proportional to the
   dial diameter so the donut ring keeps its visual weight. */
.profile-dial-lg {
    width: 11rem;
    height: 11rem;
}

    .profile-dial-lg::before {
        inset: 0.85rem;
    }

/* ---- Hero card treatment ---- */
.profile-hero {
    background:
        radial-gradient(circle at 100% 0%, rgba(13, 202, 240, 0.14), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(255, 203, 49, 0.06), transparent 55%),
        rgba(15, 22, 33, 0.7);
    overflow: hidden;
    position: relative;
}

.profile-hero-avatar {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    border: 1px solid rgba(13, 202, 240, 0.25);
    box-shadow: 0 0 12px rgba(13, 202, 240, 0.12), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 575.98px) {
    .profile-hero-avatar {
        width: 6.5rem;
        height: 6.5rem;
    }
}

/* Compact variant — reused on the admin roster (/administracija) where the
   profile-hero-avatar treatment must fit inside multi-card row grids. Wins
   the mobile media-query override above via a two-class selector. */
.profile-hero-avatar.profile-hero-avatar-sm {
    width: 5.5rem;
    height: 5.5rem;
}

/* ---- Globally banned banner — pulse glow ---- */
.profile-banned-banner {
    border-color: rgba(255, 19, 19, 0.45) !important;
    box-shadow: 0 0 24px rgba(255, 19, 19, 0.18);
    animation: profile-banned-pulse 2.4s ease-in-out infinite;
}

@keyframes profile-banned-pulse {
    0%, 100% { box-shadow: 0 0 24px rgba(255, 19, 19, 0.18); }
    50%      { box-shadow: 0 0 36px rgba(255, 19, 19, 0.36); }
}

/* ---- Playtime bar row (Aktyvumas per-server bars, Ginklai kill share) ---- */
.profile-playtime-row {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr) minmax(5rem, auto);
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .profile-playtime-row:hover {
        background: rgba(13, 202, 240, 0.08);
        border-color: rgba(13, 202, 240, 0.25);
    }

.profile-playtime-track {
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.profile-playtime-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(13, 202, 240, 0.5), rgba(13, 202, 240, 1));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 575.98px) {
    .profile-playtime-row {
        grid-template-columns: 1fr auto;
    }

        .profile-playtime-row .profile-playtime-track {
            grid-column: 1 / -1;
        }
}

/* ---- Empty state container ---- */
.profile-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.profile-empty-icon {
    opacity: 0.45;
    margin-bottom: 0.85rem;
}

/* ---- Tab body fade-in ---- */
.profile-tab-body {
    animation: profile-tab-fade-in 0.22s ease-out;
}

@keyframes profile-tab-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Roulette net P/L color helpers (text only) ---- */
.profile-roulette-pl-positive { color: #19ee19 !important; }
.profile-roulette-pl-negative { color: #ff5a5a !important; }
.profile-roulette-pl-neutral  { color: #fff !important; }

/* ===========================================================
   Hero banner — the player profile's only hero treatment.
   The base `.profile-hero` and `.profile-hero-avatar` rules above
   provide the shell; the rules below add the tier-tinted gradient,
   the chip strip dividers, and the icon-button styling for the
   Steam-profile + Share-profile buttons.

   Tier color is driven by `.profile-hero-tier-*` modifier classes
   (set from `HeroTierModifierCssClass` in PlayerProfile.razor.cs)
   which expose `--profile-tier-color` as an `r,g,b` triplet so any
   rule below can wrap it in `rgba(...)` at the opacity it wants.
   =========================================================== */

/* ---- Tier color modifier (drives layered gradient + avatar fill) ----
   `--profile-tier-color` is an `r,g,b` triplet so we can compose
   `rgba(var(--profile-tier-color), 0.18)` etc. throughout. */
.profile-hero-tier-default {
    --profile-tier-color: 13, 202, 240;
}

.profile-hero-tier-vip {
    --profile-tier-color: 25, 238, 25;
}

.profile-hero-tier-donate {
    --profile-tier-color: 255, 193, 7;
}

.profile-hero-tier-admin {
    --profile-tier-color: 255, 19, 19;
}

.profile-hero-tier-hadmin {
    --profile-tier-color: 255, 87, 51;
}

.profile-hero-tier-manager {
    --profile-tier-color: 33, 150, 243;
}

.profile-hero-tier-developer {
    --profile-tier-color: 142, 68, 173;
}

.profile-hero-tier-owner {
    --profile-tier-color: 184, 134, 11;
}

/* ---- Avatar tier rings (override border-color from .profile-hero-avatar) ---- */
.profile-hero-avatar-vip {
    border-color: rgba(25, 238, 25, 0.45);
    box-shadow: 0 0 16px rgba(25, 238, 25, 0.2), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-donate {
    border-color: rgba(255, 193, 7, 0.45);
    box-shadow: 0 0 16px rgba(255, 193, 7, 0.18), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-admin {
    border-color: rgba(255, 19, 19, 0.45);
    box-shadow: 0 0 16px rgba(255, 19, 19, 0.18), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-hadmin {
    border-color: rgba(255, 87, 51, 0.55);
    box-shadow: 0 0 18px rgba(255, 87, 51, 0.22), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-manager {
    border-color: rgba(33, 150, 243, 0.5);
    box-shadow: 0 0 16px rgba(33, 150, 243, 0.2), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-developer {
    border-color: rgba(142, 68, 173, 0.5);
    box-shadow: 0 0 18px rgba(142, 68, 173, 0.22), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

.profile-hero-avatar-owner {
    border-color: rgba(184, 134, 11, 0.6);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.28), inset 0 0 0 1px rgba(15, 22, 33, 0.85);
}

/* ---- VIP badge (single highest tier, replaces N-per-server chips) ----
   `position: relative; overflow: hidden` so the ::before shine sweep
   stays clipped to the pill silhouette. Sized to read as a status
   indicator, not a CTA. */
.profile-vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 22, 33, 0.6);
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    /* Diagonal shine stripe: sweeps across in 5s, sits off-screen the
       remaining 4s of the 9s loop so the badge feels alive without being
       distracting. Pseudo is pointer-events:none so it can't intercept
       hover or clicks. */
    .profile-vip-badge::before {
        content: "";
        position: absolute;
        top: -25%;
        bottom: -25%;
        left: -40%;
        width: 30%;
        background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 35%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.05) 65%,
            transparent 100%);
        transform: translateX(-150%);
        pointer-events: none;
        z-index: 0;
        animation: profile-vip-shine 9s ease-in-out infinite;
    }

@keyframes profile-vip-shine {
    0%   { transform: translateX(-150%); }
    55%  { transform: translateX(500%); }
    100% { transform: translateX(500%); }
}

.profile-vip-badge-vip {
    border-color: rgba(25, 238, 25, 0.55);
    background: linear-gradient(135deg, rgba(25, 238, 25, 0.24) 0%, rgba(25, 238, 25, 0.08) 100%);
    box-shadow: 0 0 18px rgba(25, 238, 25, 0.2);
}

.profile-vip-badge-donate {
    border-color: rgba(255, 193, 7, 0.6);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.28) 0%, rgba(255, 152, 0, 0.12) 100%);
    box-shadow: 0 0 22px rgba(255, 193, 7, 0.2);
}

.profile-vip-badge-admin {
    border-color: rgba(255, 19, 19, 0.55);
    background: linear-gradient(135deg, rgba(255, 19, 19, 0.25) 0%, rgba(255, 19, 19, 0.08) 100%);
    box-shadow: 0 0 20px rgba(255, 19, 19, 0.18);
}

.profile-vip-badge-hadmin {
    border-color: rgba(255, 87, 51, 0.65);
    background: linear-gradient(135deg, rgba(255, 87, 51, 0.3) 0%, rgba(255, 87, 51, 0.1) 100%);
    box-shadow: 0 0 22px rgba(255, 87, 51, 0.22);
}

.profile-vip-badge-manager {
    border-color: rgba(33, 150, 243, 0.6);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.28) 0%, rgba(33, 150, 243, 0.1) 100%);
    box-shadow: 0 0 22px rgba(33, 150, 243, 0.22);
}

.profile-vip-badge-developer {
    border-color: rgba(142, 68, 173, 0.7);
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.32) 0%, rgba(142, 68, 173, 0.1) 100%);
    box-shadow: 0 0 22px rgba(142, 68, 173, 0.22);
}

.profile-vip-badge-owner {
    border-color: rgba(184, 134, 11, 0.8);
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.4) 0%, rgba(120, 80, 0, 0.15) 100%);
    box-shadow: 0 0 26px rgba(184, 134, 11, 0.32);
}

/* Discord handle variant — reuses the pill shape/glow of `.profile-vip-badge`
   but with Discord blurple. Uppercasing is disabled because Discord handles
   are case-sensitive lowercase/mixed. */
.profile-vip-badge-discord {
    border-color: rgba(88, 101, 242, 0.6);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.28) 0%, rgba(88, 101, 242, 0.1) 100%);
    box-shadow: 0 0 22px rgba(88, 101, 242, 0.22);
    text-transform: none;
    letter-spacing: 0.02em;
}

/* Small variant — shrinks the pill so it sits inline with the hero
   action-row icon buttons (`.profile-hero-steam-btn`, 2.25rem square).
   Pair with Bootstrap `small` on the same element for text sizing. */
.profile-vip-badge--sm {
    padding: 0.3rem 0.65rem;
}

/* ---- Hero banner — cinematic horizontal banner ----
   Layered gradient: tier-tint at top-left, info-cyan at bottom-right,
   over a deep glass base. The tier tint pulls the banner toward the
   player's status (gold for donate, red for admin, purple for dev)
   while the cyan keeps the brand grounded. */
.profile-hero-banner {
    background:
        radial-gradient(circle at 20% 20%, rgba(var(--profile-tier-color, 13, 202, 240), 0.18), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(13, 202, 240, 0.12), transparent 60%),
        rgba(15, 22, 33, 0.7);
}

/* Headline figures under the name (K/D, HS %, best rank, playtime, inventory value), split by hairlines.
   The row is pulled left by one gutter + border inside a clipping box, so whichever figure starts a
   wrapped line loses its hairline instead of opening the line with an orphan bar. */
.profile-hero-figures {
    overflow: hidden;
}

.profile-hero-figures-row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    margin-left: calc(-1.25rem - 1px);
}

.profile-hero-figure {
    padding: 0 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* Below sm the figures sit in a two-column grid with no hairlines. */
@media (max-width: 575.98px) {
    .profile-hero-figures-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
        margin-left: 0;
    }

    .profile-hero-figure {
        padding: 0;
        border-left: 0;
    }
}

/* "Žaidžia dabar" status dot. */
.profile-online-dot {
    transform: scale(0.6);
    animation: profile-online-pulse 2s ease-in-out infinite;
}

@keyframes profile-online-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* SteamID inline-copy button — strips the default btn-link underline
   and adds a subtle hover/focus highlight. */
.profile-copy-btn {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border: none;
    background: transparent;
}

    .profile-copy-btn:hover,
    .profile-copy-btn:focus {
        color: #0dcaf0;
        text-decoration: none;
    }

/* ---- Hero icon button (Steam-profile + Share-profile) ----
   Square 2.25rem icon button beside the persona name. Glass aesthetic
   (cyan border, dark glass bg, lift-on-hover) so it reads as an
   interactive surface. Icon size set in markup via Bootstrap `fs-*`. */
.profile-hero-steam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 202, 240, 0.25);
    background: rgba(15, 22, 33, 0.55);
    color: #0dcaf0;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .profile-hero-steam-btn:hover {
        border-color: rgba(13, 202, 240, 0.55);
        color: #0dcaf0;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 12px rgba(13, 202, 240, 0.18);
    }

    .profile-hero-steam-btn:focus-visible {
        outline: none;
        border-color: rgba(13, 202, 240, 0.65);
        box-shadow: 0 0 0 0.15rem rgba(13, 202, 240, 0.3);
    }

/* ============================================================
   Hitbox silhouette heat-map
   ============================================================ */
.profile-hitbox-silhouette {
    width: 11rem;
    aspect-ratio: 200 / 450;
    flex-shrink: 0;
}

.profile-hitbox-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-hitbox-region {
    cursor: help;
    transition: filter 0.15s ease;
}

    .profile-hitbox-region:hover {
        filter: brightness(1.5) drop-shadow(0 0 3px rgba(13, 202, 240, 0.7));
    }

/* One-column legend beside the figure (HitboxSilhouette lays them side by side), each item two lines: name, then
   count · share. Beside rather than beneath keeps the card about as tall as the rings and counters next to it. */
.profile-hitbox-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.profile-hitbox-legend-item {
    display: grid;
    grid-template-columns: 0.65rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.4rem;
}

.profile-hitbox-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.profile-hitbox-legend-label {
    color: rgba(255, 255, 255, 0.8);
}

.profile-hitbox-legend-count {
    grid-column: 2;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.profile-hitbox-legend-pct {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}




/* ============================================================
   Stats tab layout
   ------------------------------------------------------------
   profile-stats-hero*    - flex row pairing fixed-width side
                            column (hitbox) with flexible main
                            column (stats table).
   profile-stats-table    - vertically compact stats table.
   profile-stats-section  - section heading row inside the table.
   ============================================================ */

/* Hero row - side at content width, main fills the rest. Container queries, not media queries: the side
   nav and the module menu leave the hero a width the viewport does not predict. Neither column stretches:
   a stretched counter card was mostly empty beside the taller hitbox card. */
.profile-stats-hero {
    container: profile-stats-hero / inline-size;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

/* Vertical stack of top-level stat cards (header + hero + weekly/trend row +
   weapons). Without this gap the cards visually clump against each other. */
.profile-stats-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-stats-hero-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-stats-hero-main {
    container: profile-stats-main / inline-size;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* From 49.5rem a 31rem column (four rings a row) fits beside the ~17.6rem hitbox card. */
@container profile-stats-hero (max-width: 49.49rem) {
    .profile-stats-hero-side,
    .profile-stats-hero-main { flex: 1 1 100%; }
}

/* Tight stats table - half the vertical rhythm of default Bootstrap rows. */
.profile-stats-table .server-table > tbody > tr > td {
    padding: 0.3rem 0.6rem;
    vertical-align: middle;
}

/* Section header bar above each stats sub-table. */
.profile-stats-section-head {
    background: rgba(13, 202, 240, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid rgba(13, 202, 240, 0.2);
}

/* Sub-column header inside the Combat table separating
   "generic counters" (left) from "calculated values" (right). */
.profile-stats-subhead > th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tighter silhouette to match compressed layout. */
.profile-hitbox-silhouette {
    width: 7rem;
}

/* ── Apžvalga item thumbnails ─────────── */
.profile-weapon-thumb {
    width: 3.5rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* ── Roulette bets history modal (time-series chart) ──────────────────── */
/* The modal is a self-contained viewport box: the chart absorbs whatever
   vertical space is left after the chips/meta/axis rows, rather than
   dictating the modal's height via a fixed-aspect viewBox. */
.bm-container .blazored-modal.profile-bets-modal {
    width: 85vw !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* .bm-container spans the viewport under the fixed sidebar / mobile top bar: centre the modal in the space beside them. */
@media (min-width: 768px) {
    body.vnav-active .bm-container:has(.profile-bets-modal) {
        --profile-bets-rail: var(--vnav-w);
        padding-left: calc(var(--profile-bets-rail) + 1.5rem);
    }

    body.vnav-active.vnav-active-collapsed .bm-container:has(.profile-bets-modal) {
        --profile-bets-rail: var(--vnav-w-collapsed);
    }

    body.vnav-active .bm-container .blazored-modal.profile-bets-modal {
        width: min(85vw, calc(100vw - var(--profile-bets-rail) - 3rem)) !important;
        max-width: min(85vw, calc(100vw - var(--profile-bets-rail) - 3rem)) !important;
    }
}

@media (max-width: 767.98px) {
    body.vnav-active .bm-container:has(.profile-bets-modal) {
        padding-top: calc(64px + 0.75rem);
        padding-bottom: 0.75rem;
    }
}

.profile-bets-modal .modal-body-scrollable {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Safety net: if a truly tiny viewport can't fit everything, allow
       scroll instead of clipping. On normal viewports nothing overflows. */
    overflow-y: auto;
    padding: 1rem;
}

.profile-bets-summary .profile-bets-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    height: 100%;
}

.profile-bets-summary {
    flex: 0 0 auto;
}

.profile-bets-chart-wrap {
    background: rgba(0, 0, 0, 0.35);
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Grafana-style chart layout: chart-area is a fixed positioning context
   that hosts four absolutely-positioned children (Y gutter, plot, X gutter,
   optional empty overlay). The SVG viewBox is pure 0..100 in both axes;
   percent-coord coords for both data points and gridlines means the SVG
   stretches with the plot div and never clips edge markers — those live in
   the HTML dots layer above the SVG and stay perfectly circular regardless
   of the plot's aspect ratio. */
.profile-bets-chart-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 220px;
}

.profile-bets-y-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 22px;
    width: 42px;
    pointer-events: none;
}

.profile-bets-y-label {
    position: absolute;
    right: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1;
    /* 0.7rem matches the existing chip-and-axis label scale in this feature
       (see .profile-bets-chip .small). Bootstrap's .small (0.875rem) is too
       wide for the 42px gutter. */
    font-size: 0.7rem;
}

.profile-bets-y-label.profile-bets-y-anchor-start  { transform: translateY(0); }
.profile-bets-y-label.profile-bets-y-anchor-middle { transform: translateY(-50%); }
.profile-bets-y-label.profile-bets-y-anchor-end    { transform: translateY(-100%); }

.profile-bets-plot {
    position: absolute;
    left: 42px;
    right: 8px;
    top: 0;
    bottom: 22px;
    cursor: crosshair;
    /* touch-action: none keeps the page from scrolling while the user drags
       horizontally on mobile to zoom. */
    touch-action: none;
}

.profile-bets-plot > svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.profile-bets-dots-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.profile-bets-dot-marker {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    transition: filter 100ms ease, transform 100ms ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.profile-bets-dot-marker.is-won  { background: #19ee19; }
.profile-bets-dot-marker.is-lost { background: #ff5a5a; }

.profile-bets-dot-marker:hover {
    filter: brightness(1.4) drop-shadow(0 0 4px currentColor);
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 2;
}

.profile-bets-x-labels {
    position: absolute;
    left: 42px;
    right: 8px;
    bottom: 0;
    height: 22px;
    pointer-events: none;
}

.profile-bets-x-label {
    position: absolute;
    top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1;
    font-size: 0.7rem;
}

.profile-bets-x-label.profile-bets-x-anchor-start  { transform: translateX(0); }
.profile-bets-x-label.profile-bets-x-anchor-middle { transform: translateX(-50%); }
.profile-bets-x-label.profile-bets-x-anchor-end    { transform: translateX(-100%); }

/* Reset-zoom button floats over the top-right of the chart area. z-index
   keeps it above both the SVG and the empty-state overlay so the user can
   always escape a zoom window with no data. */
.profile-bets-zoom-reset {
    position: absolute;
    top: 4px;
    right: 6px;
    z-index: 3;
}

.profile-bets-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    text-align: center;
}

.profile-bets-legend {
    flex: 0 0 auto;
}

.profile-bets-footer-hint {
    flex: 0 0 auto;
}

/* Translucent selection rectangle drawn by /js/roulette-chart-zoom.js while
   the user drags. pointer-events: none so the rect never swallows the
   pointerup that ends the drag. */
.profile-bets-zoom-rect {
    fill: rgba(13, 202, 240, 0.18);
    stroke: rgba(13, 202, 240, 0.65);
    stroke-width: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .bm-container .blazored-modal.profile-bets-modal {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: min(92vh, calc(100svh - 64px - 1.5rem)) !important;
    }

    .profile-bets-modal .modal-body-scrollable {
        padding: 0.75rem;
    }

    .profile-bets-chip {
        padding: 0.35rem 0.5rem;
    }

    .profile-bets-chip strong {
        font-size: 0.95rem;
    }

    .profile-bets-chip .small {
        font-size: 0.7rem;
    }

    .profile-bets-y-labels { width: 36px; }
    .profile-bets-plot     { left: 36px; }
    .profile-bets-x-labels { left: 36px; }

    .profile-bets-y-label,
    .profile-bets-x-label {
        font-size: 0.65rem;
    }

    /* Drops the 25% and 75% labels so the three remaining ticks (0%, 50%,
       100%) don't visually collide on narrow viewports. */
    .profile-bets-x-labels .profile-bets-x-label:nth-child(even) {
        display: none;
    }

    .profile-bets-footer-hint {
        display: none;
    }
}

@media (max-width: 576px) {
    .profile-bets-legend {
        display: none;
    }
}

.profile-bets-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.profile-bets-dot-win  { background: #19ee19; }
.profile-bets-dot-loss { background: #ff5a5a; }

.profile-bets-line {
    display: inline-block;
    width: 1.2rem;
    height: 2px;
    background: #0dcaf0;
    vertical-align: middle;
    margin-right: 0.35rem;
}

/* ============================================================================
   Stats-tab shared bits (used by RenderStatsTab in PlayerProfile.razor).
   ========================================================================= */

/* Section header bar: a neutral strip; its icon tile is fixed info cyan in every module, never the group colour. */
.profile-section-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-pill-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.18);
    box-shadow: 0 0 0 1px rgba(13, 202, 240, 0.35) inset;
    color: #0dcaf0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tabular-nums for clean alignment of numeric columns. */
.profile-tab-num {
    font-variant-numeric: tabular-nums;
}

/* Subtle left-stripe row hover. */
.profile-row-hover {
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.profile-row-hover:hover {
    background: rgba(13, 202, 240, 0.05);
    box-shadow: inset 3px 0 0 #0dcaf0;
}

/* ── Spotlight hero rings (4 stat cards above the counter table) ──────── */
.profile-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.profile-spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.5rem 0.75rem;
}

.profile-spotlight-ring {
    --fill: 0%;
    --tone: #0dcaf0;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        conic-gradient(var(--tone) 0 var(--fill), rgba(255, 255, 255, 0.08) var(--fill) 100%);
    box-shadow: 0 0 18px rgba(13, 202, 240, 0.18);
    position: relative;
}

.profile-spotlight-ring::before {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(15, 22, 33, 0.95), rgba(15, 22, 33, 0.85));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.profile-spotlight-ring-value {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.profile-spotlight-label {
    letter-spacing: 0.06em;
    font-weight: 600;
}

.profile-spotlight-sub {
    font-variant-numeric: tabular-nums;
}

/* Four ring cards (6rem ring, 1rem padding, border) and their gaps need 30.75rem. */
@container profile-stats-main (max-width: 30.99rem) {
    .profile-spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================================
   Module shell — accordion menu beside the active module's sheet.
   A group's colour is one `r, g, b` triplet in `--profile-group-rgb`, set by
   `.profile-group-*` on a menu group or the sheet and read by every rule
   below; registry: ProfileModules.cs. It appears on the group icon, the active
   row, the sheet title's icon, the mobile "Skiltis:" toggle icon, the sheet
   action button and in-body text links only — module bodies stay neutral. Purple
   (Kolekcija) is the one value outside the palette, an approved exception
   (design-system.md §2).
   ========================================================================= */

.profile-group-game       { --profile-group-rgb: 13, 202, 240; }
.profile-group-progress   { --profile-group-rgb: 255, 203, 49; }
.profile-group-collection { --profile-group-rgb: 168, 85, 247; }

.profile-group-text {
    color: rgb(var(--profile-group-rgb, 13, 202, 240));
}

/* The "Plačiau" links are btn-link; without this, .btn:hover swaps in Bootstrap's blue link-hover colour. */
.btn.profile-group-text {
    --bs-btn-color: rgb(var(--profile-group-rgb, 13, 202, 240));
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: var(--profile-group-rgb, 13, 202, 240);
}

/* Passive shelf, like .admv-section: the menu rows and the modules do the interactive lifting. */
.profile-shell:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.profile-menu {
    padding: 0.85rem;
    background: rgba(0, 0, 0, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
    .profile-menu {
        flex: 0 0 15.5rem;
        padding: 1rem 0.85rem;
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Stays reachable beside a long module. */
    .profile-menu-body {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
}

/* Below lg the whole menu sticks to the top, capped at the viewport height: an opened menu
   scrolls its list, never its toggle. */
@media (max-width: 991.98px) {
    .profile-menu {
        position: sticky;
        top: 0;
        z-index: 5;
        display: flex;
        flex-direction: column;
        max-height: 100svh;
        background: rgba(15, 22, 33, 0.85);
        backdrop-filter: blur(14px);
    }

    .profile-menu-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .profile-menu-list {
        min-height: 0;
        overflow-y: auto;
    }
}

/* Below md the fixed 64px .vnav-mobile-topbar (vertical-navmenu.css) covers the top of the viewport. */
@media (max-width: 767.98px) {
    .profile-menu {
        top: 64px;
        max-height: calc(100svh - 64px);
    }
}

.profile-menu-group {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
}

.profile-menu-group-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    letter-spacing: 1.5px;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .profile-menu-group-head:hover {
        background: rgba(var(--profile-group-rgb), 0.06);
    }

.profile-menu-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
    background: rgba(var(--profile-group-rgb), 0.16);
    border: 1px solid rgba(var(--profile-group-rgb), 0.45);
    color: rgb(var(--profile-group-rgb));
}

.profile-menu-caret {
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-group:not(.is-open) .profile-menu-caret {
    transform: rotate(-90deg);
}

.profile-menu-caret.is-flipped {
    transform: rotate(180deg);
}

/* 0fr → 1fr animates to the rows' natural height. Same trick as the sidebar's .vnav-subnav, whose
   classes cannot be borrowed: body.vnav-active-collapsed rules reach every .vnav-* on the page. */
.profile-menu-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu-group.is-open .profile-menu-sub {
    grid-template-rows: 1fr;
}

.profile-menu-sub-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 0.4rem;
}

.profile-menu-group.is-open .profile-menu-sub-inner {
    padding-bottom: 0.4rem;
}

/* Module rows are .inv-side-row with its cyan hover / active states swapped for the group colour. */
.profile-menu-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

    .profile-menu-link:hover {
        background: rgba(var(--profile-group-rgb), 0.08);
        border-color: transparent;
        color: #fff;
    }

    .profile-menu-link.active {
        background: rgba(var(--profile-group-rgb), 0.16);
        border-color: transparent;
        color: #fff;
    }

    /* The marker is a pseudo-element, not an inset box-shadow: app.css strips box-shadow from a focused
       button, so the row just clicked showed no marker until focus moved elsewhere. */
    .profile-menu-link.active::before {
        content: "";
        position: absolute;
        inset: 0;
        border-left: 2px solid rgb(var(--profile-group-rgb));
        border-radius: inherit;
        pointer-events: none;
    }

    .profile-menu-link.is-soon {
        opacity: 0.45;
        cursor: default;
    }

        .profile-menu-link.is-soon:hover {
            background: transparent;
            color: rgba(255, 255, 255, 0.7);
        }

.profile-menu-link-icon {
    width: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

    .profile-menu-link.active .profile-menu-link-icon {
        color: rgb(var(--profile-group-rgb));
    }

.profile-menu-soon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* min-width: 0 lets wide tables scroll inside .table-responsive instead of widening the row.
   No overflow clip here: the inventory sort dropdown has to escape the sheet. */
.profile-sheet {
    min-width: 0;
}

/* Statistika / Ginklai's server chips and Inventorius' type chips: market.css rings the active chip with an
   inset box-shadow, which app.css strips while the chip just clicked keeps focus. */
.profile-sheet .market-tab.active {
    box-shadow: none;
}

    .profile-sheet .market-tab.active::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 1px solid rgba(13, 202, 240, 0.35);
        border-radius: inherit;
        pointer-events: none;
    }

/* Below sm a module starts at the container edge: Statistika's hitbox card, rings and counters
   need the whole of a 375px screen, and side chrome would squeeze them. */
@media (max-width: 575.98px) {
    .profile-shell {
        border-left-width: 0;
        border-right-width: 0;
    }
}

.profile-sheet-head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Group-coloured outline button, set through Bootstrap's own --bs-btn-* hooks. */
.profile-sheet-action {
    --bs-btn-color: rgb(var(--profile-group-rgb));
    --bs-btn-bg: rgba(var(--profile-group-rgb), 0.1);
    --bs-btn-border-color: rgba(var(--profile-group-rgb), 0.45);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(var(--profile-group-rgb), 0.2);
    --bs-btn-hover-border-color: rgb(var(--profile-group-rgb));
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(var(--profile-group-rgb), 0.28);
    --bs-btn-active-border-color: rgb(var(--profile-group-rgb));
    --bs-btn-focus-shadow-rgb: var(--profile-group-rgb);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Apžvalga: nine equal cards in three captioned rows. Columns follow the sheet's width, not the viewport's (the
   side nav and the module menu decide it: ~50rem at 1440, ~40rem at 1280), and heights are fixed rather than
   content-driven, so every card matches within a row and across rows. */
.profile-overview {
    container: profile-overview / inline-size;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-overview-caption {
    letter-spacing: 0.08em;
}

.profile-overview-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

/* Two columns would orphan a row's third card, so it spans both. */
@container profile-overview (min-width: 36rem) {
    .profile-overview-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-overview-cards > :nth-child(3) { grid-column: 1 / -1; }
}

@container profile-overview (min-width: 48rem) {
    .profile-overview-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-overview-cards > :nth-child(3) { grid-column: auto; }
}

.profile-overview-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .profile-overview-card > .profile-section-pill {
        flex: none;
        height: 3rem;
    }

.profile-overview-body {
    height: 11rem;
    overflow: hidden;
}

/* A list card's rows split the body evenly, so a shorter list leaves rows empty instead of shrinking the card. */
.profile-overview-rows {
    display: grid;
    grid-template-rows: repeat(var(--profile-rows, 3), minmax(0, 1fr));
    height: 100%;
}

.profile-overview-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    padding: 0 1rem;
}

    .profile-overview-row + .profile-overview-row {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

/* Top 3 daiktai: the image with the value under it, so the gun and the finish keep the whole text column. */
.profile-overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    min-width: 3.5rem;
}

    .profile-overview-item > .profile-weapon-thumb {
        height: 1.75rem;
    }

.profile-overview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Columns hug their widest line and the slack goes between them: equal halves of a 15.3rem card would cut
   "123,456 / 98,765" beside "30 d.: 23h 59min". Too little room shrinks both alike, and the lines truncate. */
.profile-overview-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: space-between;
    gap: 0.5rem;
}

/* Aktyvumas' top pair, one height: the calendar keeps its heatmap's width and Kada žaidžia takes the rest. Once
   the hour chart's 620px plot no longer fits beside it, the pair wraps and each card spans the sheet. */
.profile-activity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-activity-calendar {
    flex: 1 1 28rem;
    min-width: 0;
}

/* The 999 grow keeps the calendar at its basis while the two share a row. */
.profile-activity-hours {
    flex: 999 1 45rem;
    min-width: 0;
}

/* Last-14-days bars; each bar's height is set inline from its share of the busiest day. */
.profile-activity-strip {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 0.25rem;
    height: 4.5rem;
}

.profile-activity-bar {
    border-radius: 0.2rem 0.2rem 0 0;
    background: rgba(13, 202, 240, 0.6);
}

    .profile-activity-bar.is-empty {
        background: rgba(255, 255, 255, 0.1);
    }

/* Aktyvumas' 12-week calendar: a weekday label column, then one column per week, Monday on top. */
.profile-heatmap {
    display: grid;
    grid-template-rows: repeat(7, auto);
    grid-template-columns: auto repeat(12, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 3px;
    max-width: 26rem;
}

.profile-heatmap-label {
    padding-right: 0.35rem;
    line-height: 1;
    align-self: center;
}

.profile-heatmap-cell {
    aspect-ratio: 1;
    border-radius: 0.2rem;
    background: rgba(255, 255, 255, 0.06);
}

    .profile-heatmap-cell.lvl-1 { background: rgba(13, 202, 240, 0.25); }
    .profile-heatmap-cell.lvl-2 { background: rgba(13, 202, 240, 0.45); }
    .profile-heatmap-cell.lvl-3 { background: rgba(13, 202, 240, 0.7); }
    .profile-heatmap-cell.lvl-4 { background: rgb(13, 202, 240); }

.profile-heatmap-key {
    display: inline-block;
    width: 0.75rem;
}

/* The "Nuo … Mažiau … Daugiau" row under the calendar ends where the heatmap does, not at the card's edge. */
.profile-heatmap-foot {
    max-width: 26rem;
}

/* Aktyvumas' sessions: one row per day that opens to its sessions. */
.profile-day + .profile-day {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-day-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    background: transparent;
    border: 0;
    text-align: start;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .profile-day-row:hover {
        background: rgba(255, 255, 255, 0.04);
    }

/* Takes the row's slack so the caret stays at the end; drops under the date on a narrow sheet. */
.profile-day-servers {
    flex: 1 1 8rem;
    min-width: 0;
}

.profile-day-sessions {
    padding: 0 0.85rem 0.6rem 1.6rem;
}

.profile-day-session {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.3rem 0;
}

    .profile-day-session + .profile-day-session {
        border-top: 1px dashed rgba(255, 255, 255, 0.06);
    }

/* ── Ginklai ─────────────────────────────────────────────────────────── */

/* Catalog art or, without a URL, the gun icon. */
.profile-weapon-art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.5rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.35);
}

    .profile-weapon-art > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    }

    .profile-weapon-art.is-empty,
    .profile-weapon-art > img::before {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0.3rem;
    }

    /* A catalog URL that 404s (FAMAS, G3SG1, MAG-7 and SCAR-20 today). Chromium and Firefox render an <img>'s
       pseudo-elements only once it has failed, so this covers the empty box with the same gun icon; the
       alt is empty, so no browser prints text instead. Safari leaves the box blank. */
    .profile-weapon-art > img::before {
        content: "\e19b";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: rgba(255, 255, 255, 0.35);
        background-color: rgb(15, 22, 33);
    }

.profile-weapon-art-lg {
    width: 7rem;
    height: 3.5rem;
}

/* Three across on a wide sheet; one row that scrolls sideways on a narrow one instead of three tall cards. */
.profile-weapon-signatures {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(13rem, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0;
}

.profile-weapon-signature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-weapon-signature-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category header row inside the weapons table. */
.profile-weapon-group > th {
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    letter-spacing: 0.04em;
}

.profile-weapon-share {
    min-width: 4rem;
    height: 0.4rem;
}

/* ── Misijos ─────────────────────────────────────────────────────────── */
.profile-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 0.5rem;
}

/* ── Item tiles (Ekipuotė, Inventorius' top strip, Battle Pass rewards) ── */

.profile-item-tile {
    display: flex;
    flex-direction: column;
}

.profile-item-tile-img {
    padding: 0.5rem;
}

.profile-item-tile-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem;
}

.profile-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr));
    gap: 0.75rem;
}

/* One row that scrolls sideways on a narrow sheet rather than stacking into a tall block. */
.profile-item-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(9rem, 1fr);
    gap: 0.75rem;
    overflow-x: auto;
    /* Room for the cards' hover lift, which the scroll box would otherwise clip. */
    padding: 0.25rem 0;
}

/* An empty loadout slot. */
.profile-item-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Ekipuotė: CT beside T once the sheet has room for both, CT above T below that. */
.profile-loadout {
    container: profile-loadout / inline-size;
}

.profile-loadout-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@container profile-loadout (min-width: 36rem) {
    .profile-loadout-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Inventorius ─────────────────────────────────────────────────────── */
.profile-inv-search {
    max-width: 22rem;
}

/* The site inventory's 15rem cards, except that a sheet too narrow for two of them (phones, and the
   tablet-width sheet beside the menu) still gets two columns of at least 9.5rem rather than one wide card. */
.profile-inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(9.5rem, min(15rem, (100% - 1rem) / 2))), 1fr));
    gap: 1rem;
}

    /* SkinCardInfo truncates to one line; a two-column phone card wraps the name to two instead ("★ Bloodhound Gloves"). */
    .profile-inv-grid .inv-showcase-name .weapon-card-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        overflow-wrap: anywhere;
    }
