/* Badges & Awards page (badges.php). Loaded after topfrag-theme.css and uses its colour tokens. */

.ba-section { margin-top: 20px; }
.ba-section:first-of-type { margin-top: 4px; }

.ba-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 2px 10px;
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text-bright);
}
.ba-section-count {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--panel-2);
    font-size: 13px;
    color: var(--text-dim);
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
}

/* ---- recently unlocked: activity figures ---- */
.ba-activity { margin-top: 4px; }
.ba-activity + .ba-section { margin-top: 22px; }

.ba-stats {
    display: grid;
    grid-template-columns: 1.07fr 1fr 1fr;
    gap: 12px;
}
.ba-stat {
    min-width: 0;
    padding: 14px 20px 12px;
    overflow: hidden;
    background: linear-gradient(110deg, var(--panel-alt), var(--panel) 90%);
    border: 1px solid var(--border-soft);
    border-radius: 13px;
}
.ba-stat--today {
    border-color: rgba(0, 245, 195, 0.55);
    box-shadow: 0 0 18px rgba(0, 245, 195, 0.12), inset 0 0 24px rgba(0, 245, 195, 0.05);
}
.ba-stat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-bright);
}
.ba-stat-label i { width: 18px; font-size: 16px; text-align: center; color: var(--accent); }
.ba-stat-body { display: flex; align-items: center; gap: 18px; min-height: 64px; margin-top: 8px; }
.ba-stat-value {
    font-family: var(--font-head);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--text-bright);
}
.ba-stat--today .ba-stat-value { color: var(--accent); }
.ba-stat-change { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.ba-stat-change small { font-size: 12px; color: var(--text-dim); }
.ba-delta {
    width: max-content;
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 245, 195, 0.1);
    border-radius: 8px;
}
.ba-delta--down { color: #ff7a87; background: var(--danger-bg); }
.ba-delta--flat { color: var(--text-dim); background: var(--panel-2); }

.ba-spark { flex: 0 1 134px; min-width: 60px; height: 56px; margin-left: auto; overflow: visible; }
.ba-spark-area { fill: var(--accent); fill-opacity: 0.1; }
.ba-spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ba-spark-dot { fill: var(--accent); stroke: var(--panel-alt); stroke-width: 2; }
.ba-spark-hit { fill: transparent; }
.ba-spark-hit:hover { fill: rgba(255, 255, 255, 0.05); }

/* the week by day: today in full colour */
.ba-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 56px;
    margin-left: auto;
    border-bottom: 1px solid var(--border-soft);
}
.ba-bar { display: flex; align-items: flex-end; width: 13px; height: 100%; }
.ba-bar i { display: block; width: 100%; background: rgba(0, 245, 195, 0.35); border-radius: 4px 4px 0 0; }
.ba-bar.is-today i { background: var(--accent); }
.ba-bar:hover i { background: rgba(0, 245, 195, 0.6); }
.ba-bar.is-today:hover i { background: var(--accent-hover); }

.ba-stat-server { min-width: 0; }
.ba-stat-server strong {
    display: block;
    overflow: hidden;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--accent);
}
.ba-stat-server p { margin: 3px 0 0; font-size: 13.5px; white-space: nowrap; color: var(--text-dim); }
.ba-rack { display: grid; flex-shrink: 0; gap: 5px; margin: 0 4px 0 auto; transform: skewY(-6deg); }
.ba-rack span {
    position: relative;
    width: 66px;
    height: 16px;
    background: linear-gradient(140deg, rgba(0, 245, 195, 0.26), rgba(0, 200, 255, 0.05));
    border: 1px solid rgba(0, 245, 195, 0.3);
    border-radius: 3px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.ba-rack span::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 11px;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 8px 0 0 var(--accent), 16px 0 0 var(--accent);
}

/* the week per server */
.ba-dist {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px 26px;
    margin-top: 12px;
    padding: 12px 20px;
    background: linear-gradient(110deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: 12px;
}
.ba-dist-intro { display: flex; align-items: center; gap: 14px; grid-row: span 2; }
.ba-dist-intro i { font-size: 19px; color: var(--accent); }
.ba-dist-intro h3 {
    margin: 0;
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-bright);
}
.ba-dist-intro p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-dim); }
.ba-dist-bar { display: flex; gap: 2px; height: 20px; }
.ba-dist-bar span { min-width: 4px; border-radius: 4px; }
.ba-dist-bar--empty { background: var(--panel-2); border-radius: 4px; }
.ba-dist-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.ba-dist-legend li { display: grid; grid-template-columns: 11px auto; column-gap: 7px; row-gap: 1px; white-space: nowrap; }
.ba-dot { align-self: center; width: 11px; height: 11px; border-radius: 3px; }
.ba-dist-legend b { font-size: 12px; font-weight: 700; color: var(--text-bright); }
.ba-dist-legend small { grid-column: 2; font-size: 12px; color: var(--text-dim); }
.ba-dist-none { margin: 0; font-size: 12.5px; color: var(--text-dim); }

/* ---- recently unlocked: filters and list ---- */
.ba-recent { transition: opacity 0.15s ease; }
.ba-recent[aria-busy="true"] { opacity: 0.55; }

/* servers: same colour as in Unlocks by Server (--server, set per button) */
.ba-servers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ba-server {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text);
    cursor: pointer;
    background: var(--panel-alt);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ba-server:hover { background: var(--panel-2); border-color: var(--server, rgba(0, 245, 195, 0.5)); }
.ba-server:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ba-server-dot { width: 9px; height: 9px; background: var(--server); border-radius: 50%; }
.ba-server[aria-pressed="true"] {
    color: var(--text-bright);
    background: color-mix(in srgb, var(--server, #00f5c3) 18%, var(--panel-alt));
    border-color: var(--server, var(--accent));
}
.ba-server[data-server="0"][aria-pressed="true"] { color: var(--accent); }
.ba-server[aria-pressed="true"] .ba-filter-count { color: inherit; }

/* one row of badges; More wraps them all */
.ba-filters-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ba-filters {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ba-filters::-webkit-scrollbar { display: none; }
.ba-filters.is-clipped {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.ba-filters.is-open { flex-wrap: wrap; overflow: visible; }
.ba-filter,
.ba-filters-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text);
    cursor: pointer;
    background: linear-gradient(180deg, var(--panel-2), var(--panel-alt));
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ba-filter img { flex-shrink: 0; object-fit: contain; }
.ba-filter:hover,
.ba-filters-toggle:hover { background: var(--panel-2); border-color: rgba(0, 245, 195, 0.5); }
.ba-filter:focus-visible,
.ba-filters-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ba-filter[aria-pressed="true"] {
    color: var(--accent);
    background: linear-gradient(110deg, rgba(0, 245, 195, 0.14), var(--panel-alt));
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 245, 195, 0.18);
}
.ba-filter--exclusive { color: var(--gold); }
.ba-filter--exclusive[aria-pressed="true"] {
    color: var(--gold);
    background: linear-gradient(110deg, rgba(245, 196, 81, 0.14), var(--panel-alt));
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(245, 196, 81, 0.16);
}
.ba-filter-count { font-weight: 500; color: var(--text-dim); }
.ba-filter[aria-pressed="true"] .ba-filter-count { color: inherit; }
.ba-filters-toggle i { font-size: 10px; }
.ba-filters-toggle[hidden] { display: none; }

.ba-recent-panel {
    margin-top: 12px;
    padding: 12px 14px 14px;
    background: linear-gradient(120deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: 13px;
}
.ba-recent-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 12px;
}
.ba-recent-head .ba-section-title { margin: 0 2px; font-size: 17px; }
.ba-recent-head .ba-section-title i { color: var(--accent); }

.ba-ranges { display: inline-flex; gap: 3px; padding: 3px; background: var(--panel-2); border-radius: 999px; }
.ba-range {
    padding: 8px 18px;
    font-family: var(--font-cond);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-dim);
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
.ba-range:hover { color: var(--text-bright); }
.ba-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ba-range[aria-pressed="true"] { color: #04140f; background: var(--accent); box-shadow: 0 0 12px rgba(0, 245, 195, 0.35); }
.ba-range-count { font-variant-numeric: tabular-nums; }

.ba-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px 12px;
}
.ba-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 86px;
    padding: 9px 11px;
    background: linear-gradient(135deg, var(--panel-2), var(--panel-alt));
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.ba-feed-item:hover { border-color: rgba(0, 245, 195, 0.6); transform: translateY(-1px); }
.ba-feed-item--exclusive:hover { border-color: rgba(245, 196, 81, 0.6); }
.ba-feed-item .ba-avatar { width: 52px; height: 52px; }
.ba-feed-who { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.ba-feed-item .ba-row-name { font-size: 14.5px; font-weight: 700; }
.ba-feed-badge-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent);
}
.ba-feed-item--exclusive .ba-feed-badge-name { color: var(--gold); }

/* the badge name and picture open the badge's window */
.ba-feed-badge { padding: 0; font-family: inherit; text-align: left; cursor: pointer; background: none; border: 0; }
.ba-feed-badge-name { display: block; max-width: 100%; }
.ba-feed-badge-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ba-feed-badge-name:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }
.ba-feed-badge-art { flex-shrink: 0; line-height: 0; border-radius: 6px; }
.ba-feed-badge-art .ba-feed-image { transition: transform 0.15s ease; }
.ba-feed-badge-art:hover .ba-feed-image { transform: scale(1.07); }
.ba-feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ba-feed-item .ba-chip { padding: 2px 9px; font-size: 11.5px; font-weight: 700; line-height: 16px; border-radius: 7px; }
/* the server's colour: the dot in full, the text a lighter step of it so it stays readable */
.ba-feed-item .ba-chip--server {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: color-mix(in srgb, var(--server) 45%, #ffffff);
    background: color-mix(in srgb, var(--server) 16%, transparent);
}
.ba-feed-item .ba-chip--server::before { content: ""; width: 7px; height: 7px; background: var(--server); border-radius: 50%; }
.ba-feed-item a.ba-chip--server:hover { background: color-mix(in srgb, var(--server) 30%, transparent); }
.ba-feed-time { font-size: 12px; white-space: nowrap; color: var(--text-dim); }
.ba-feed-image { flex-shrink: 0; width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }

.ba-feed-actions { display: flex; gap: 10px; margin-top: 14px; }
.ba-feed-more {
    flex: 1 1 auto;
    height: 42px;
    font-family: var(--font-cond);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    background: linear-gradient(100deg, rgba(0, 245, 195, 0.07), rgba(0, 245, 195, 0.15), rgba(0, 245, 195, 0.07));
    border: 1px solid rgba(0, 245, 195, 0.5);
    border-radius: 10px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.ba-feed-more:hover,
.ba-feed-more:focus-visible { background: rgba(0, 245, 195, 0.18); box-shadow: 0 0 14px rgba(0, 245, 195, 0.2); outline: none; }
.ba-feed-more:disabled { color: var(--text-dim); cursor: default; box-shadow: none; }
/* quieter than Show more; takes the whole row once everything is loaded */
.ba-feed-less {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 24px;
    font-family: var(--font-cond);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.ba-feed-less:only-child { flex: 1 1 auto; }
.ba-feed-less:hover,
.ba-feed-less:focus-visible { color: var(--text-bright); border-color: rgba(0, 245, 195, 0.5); outline: none; }
.ba-recent .ba-state { padding: 20px 12px; }

@media (max-width: 1100px) {
    .ba-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ba-stat--server { grid-column: 1 / -1; }
}

/* ---- badge cards ---- */
.ba-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 9px 11px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ba-card:hover,
.ba-card:focus-within { background: var(--panel-2); border-color: var(--border-soft); }

.ba-card-image {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 7px;
}
.ba-card-image--missing {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    color: var(--text-dim);
    font-size: 22px;
}

.ba-card-body { flex: 1 1 auto; min-width: 0; }
.ba-card-name {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-bright);
}
.ba-card-desc {
    display: -webkit-box;
    margin: 2px 0 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    line-height: 1.3;
    color: var(--text-dim);
}
.ba-card-desc .highlight { color: var(--accent2); font-weight: 600; }

.ba-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    color: var(--accent);
    cursor: pointer;
    background: rgba(0, 245, 195, 0.08);
    border: 1px solid rgba(0, 245, 195, 0.25);
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.ba-count:hover,
.ba-count:focus-visible { background: rgba(0, 245, 195, 0.16); border-color: var(--accent); outline: none; }
.ba-count[data-players="0"] { color: var(--text-dim); background: var(--panel-2); border-color: var(--border-soft); }

/* ---- exclusive ---- */
.ba-section--exclusive {
    padding: 12px;
    background: linear-gradient(135deg, rgba(245, 196, 81, 0.07), rgba(167, 139, 250, 0.05) 60%, transparent), var(--panel);
    border: 1px solid rgba(245, 196, 81, 0.28);
    border-radius: 13px;
}
.ba-section--exclusive .ba-section-title { color: var(--gold); }
.ba-section--exclusive .ba-section-count { background: rgba(245, 196, 81, 0.13); color: var(--gold); }
.ba-card--exclusive {
    background: linear-gradient(100deg, rgba(245, 196, 81, 0.08), rgba(13, 16, 32, 0.55));
    border-color: rgba(245, 196, 81, 0.32);
}
.ba-card--exclusive:hover,
.ba-card--exclusive:focus-within {
    background: linear-gradient(100deg, rgba(245, 196, 81, 0.13), rgba(13, 16, 32, 0.55));
    border-color: rgba(245, 196, 81, 0.6);
}
.ba-card--exclusive .ba-card-name { color: var(--gold); }
.ba-card--exclusive .ba-count { color: var(--gold); background: rgba(245, 196, 81, 0.09); border-color: rgba(245, 196, 81, 0.3); }
.ba-card--exclusive .ba-count:hover,
.ba-card--exclusive .ba-count:focus-visible { background: rgba(245, 196, 81, 0.18); border-color: var(--gold); }
.ba-card--exclusive .ba-count[data-players="0"] { color: var(--text-dim); background: var(--panel-2); border-color: var(--border-soft); }

/* ---- recipients modal (the site's .modal / .modal-content) ---- */
.modal-content.ba-modal {
    display: flex;
    flex-direction: column;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    text-align: left;
    border-radius: 16px;
}
.ba-modal-close {
    position: absolute;
    top: 10px;
    right: 11px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 15px;
    color: var(--text-bright);
    cursor: pointer;
    background: var(--panel-alt);
    border: 1px solid var(--border-soft);
    border-radius: 9px;
}
.ba-modal-close:hover,
.ba-modal-close:focus-visible { border-color: var(--accent); outline: none; }

.ba-modal-head {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
    padding: 16px 50px 14px 16px;
    background: var(--panel-alt);
    border-bottom: 1px solid var(--border);
}
.ba-modal-image { flex-shrink: 0; object-fit: contain; border-radius: 9px; }
.ba-modal-info { min-width: 0; }
.modal-content .ba-modal-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 1.2;
    color: var(--text-bright);
}
.ba-modal--exclusive .ba-modal-title { color: var(--gold) !important; }
.ba-modal-desc { margin: 3px 0 6px; font-size: 12.5px; line-height: 1.4; color: var(--text); }
.ba-modal-desc .highlight { color: var(--accent2); font-weight: 600; }
.ba-modal-total { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.ba-modal--exclusive .ba-modal-total { color: var(--gold); }

.ba-modal-list { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 4px 8px; }
.ba-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-bottom: 1px solid var(--border);
}
.ba-row:last-child { border-bottom: none; }
.ba-avatar {
    flex-shrink: 0;
    object-fit: cover;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
}
.ba-row-who { flex: 1 1 auto; min-width: 0; }
.ba-row-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
}
.ba-player-link { color: inherit; text-decoration: none; }
.ba-player-link:hover { color: var(--accent); text-decoration: underline; }
.ba-gone { font-weight: 500; font-style: italic; color: var(--text-dim); }
.ba-flag { width: 16px; height: auto; margin-bottom: -2px; border-radius: 2px; }
.ba-steam { font-size: 0.85em; color: var(--text-dim); }
.ba-row-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.ba-chip {
    padding: 0 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 17px;
    color: var(--accent2);
    text-decoration: none;
    white-space: nowrap;
    background: rgba(0, 200, 255, 0.09);
    border-radius: 5px;
}
a.ba-chip:hover { background: rgba(0, 200, 255, 0.2); }
.ba-chip--all { color: var(--accent); background: rgba(0, 245, 195, 0.1); }
.ba-chip--muted { color: var(--text-dim); background: var(--panel-2); }
.ba-row-date { flex-shrink: 0; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--text-dim); }

.ba-modal-more {
    flex-shrink: 0;
    margin: 4px 14px 12px;
    padding: 7px;
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    background: rgba(0, 245, 195, 0.08);
    border: 1px solid rgba(0, 245, 195, 0.3);
    border-radius: 8px;
}
.ba-modal-more:hover,
.ba-modal-more:focus-visible { background: rgba(0, 245, 195, 0.16); outline: none; }
.ba-modal-more:disabled { color: var(--text-dim); cursor: default; }

.ba-state { padding: 28px 12px; text-align: center; font-size: 13px; color: var(--text-dim); }
.ba-state button {
    display: block;
    margin: 10px auto 0;
    padding: 5px 16px;
    font: inherit;
    font-weight: 600;
    color: var(--text-bright);
    cursor: pointer;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 7px;
}

/* skeleton, only ever shown while a recipients request is really in flight */
.ba-skel-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.ba-skel-avatar, .ba-skel-line {
    display: block;
    background: linear-gradient(90deg, var(--panel-2) 25%, #202844 50%, var(--panel-2) 75%);
    background-size: 200% 100%;
    animation: ba-shimmer 1.3s linear infinite;
}
.ba-skel-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; }
.ba-skel-line { height: 9px; border-radius: 4px; }
@keyframes ba-shimmer { to { background-position: -200% 0; } }

/* ---- phones ---- */
@media (max-width: 720px) {
    .ba-grid { grid-template-columns: minmax(0, 1fr); }
    .ba-section--exclusive { padding: 10px 8px; }
    .ba-stats { gap: 9px; }
    .ba-stat { padding: 12px; }
    .ba-stat-label { gap: 7px; font-size: 12.5px; }
    .ba-stat-body { flex-wrap: wrap; gap: 6px 10px; min-height: 0; }
    .ba-stat-value { font-size: 34px; }
    .ba-stat-change small { font-size: 11px; }
    .ba-delta { padding: 2px 7px; font-size: 11.5px; }
    .ba-spark, .ba-bars { display: none; }
    .ba-stat-server strong { font-size: 23px; }
    .ba-stat-server p { font-size: 12px; }
    .ba-rack { transform: skewY(-6deg) scale(0.85); }
    .ba-dist { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .ba-dist-intro { grid-row: auto; gap: 12px; }
    .ba-dist-legend { justify-content: flex-start; }
    .ba-servers { flex-wrap: nowrap; gap: 6px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
    .ba-servers::-webkit-scrollbar { display: none; }
    .ba-server { flex-shrink: 0; height: 34px; padding: 0 10px; font-size: 12px; }
    .ba-filters-bar { gap: 6px; }
    .ba-filter, .ba-filters-toggle { height: 36px; padding: 0 9px; gap: 7px; font-size: 12px; }
    .ba-filter img { width: 22px; height: 22px; }
    .ba-recent-panel { padding: 10px 8px; }
    .ba-ranges { display: flex; width: 100%; }
    .ba-range { flex: 1 1 0; padding: 9px 6px; font-size: 13px; }
    /* keeps the badge list below within reach: the feed scrolls in its own box here */
    .ba-feed { grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 470px; overflow-y: auto; }
    .ba-feed-item { min-height: 76px; }
    .ba-feed-item .ba-avatar { width: 44px; height: 44px; }
    .ba-feed-image { width: 48px; height: 48px; }
    .ba-modal-head { padding: 14px 46px 12px 12px; gap: 11px; }
    .ba-modal-image { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .ba-card, .ba-count, .ba-skel-avatar, .ba-skel-line, .ba-recent, .ba-range, .ba-filter, .ba-filters-toggle, .ba-feed-item, .ba-feed-more { transition: none; animation: none; }
    .ba-feed-item:hover, .ba-feed-badge-art:hover .ba-feed-image { transform: none; }
}
