/* ==========================================================================
   Scoreboard — Styles
   Design System: Rajdhani, dark theme, semi-transparent cards
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: #7bbce0; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a0d4f0; }

/* --- Background --- */
.sb-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("/img/bgt_02_2025.webp");
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(1.2);
    z-index: -2;
}
.sb-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* --- Top Bar --- */
.sb-topbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 56px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 8px;
}

.sb-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin-right: 24px;
    white-space: nowrap;
}
.sb-logo:hover { color: #fff; }

.sb-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.sb-nav-link {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    white-space: nowrap;
}
.sb-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}
.sb-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(74, 138, 181, 0.3), rgba(58, 122, 69, 0.3));
    border-bottom: 2px solid transparent;
    background-clip: padding-box;
}
.sb-nav-link i { margin-right: 6px; }

.sb-topbar-right {
    display: flex;
    gap: 4px;
}

.sb-nav-back {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}
.sb-nav-back:hover { color: rgba(255, 255, 255, 0.6); }

/* --- Content --- */
.sb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px;
    min-height: calc(100vh - 60px);
}

/* --- Footer --- */
.sb-footer {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}
.sb-corner-slot {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 60;
}
.sb-footer a { color: rgba(255, 255, 255, 0.4); font-size: 13px; }
.sb-footer a:hover { color: rgba(255, 255, 255, 0.7); }
.sb-footer-sep { margin: 0 8px; color: rgba(255, 255, 255, 0.15); }

/* --- Cards --- */
.sb-card {
    background: rgba(8, 12, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.2s;
}
.sb-card:hover {
    border-color: rgba(74, 138, 181, 0.2);
}

.sb-card-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

/* --- Sub-tabs (Skill System / Player Leaderboard) --- */
.sb-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.sb-subtab {
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.sb-subtab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
}
.sb-subtab.active {
    background: linear-gradient(135deg, #4a8ab5, #3a7a45);
    border-color: transparent;
    color: #fff;
}

/* --- Filters --- */
.sb-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(8, 12, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.sb-filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
}

.sb-filter-input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 13px;
    outline: none;
    width: 120px;
    transition: border-color 0.2s;
}
.sb-filter-input:focus {
    border-color: rgba(74, 138, 181, 0.5);
}
.sb-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.sb-filter-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.sb-filter-select option { background: #0c1020; }

.sb-filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #4a8ab5, #3a7a45);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sb-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 138, 181, 0.3);
}

/* --- Table --- */
.sb-table-wrap {
    background: rgba(8, 12, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.sb-table {
    width: 100%;
    border-collapse: collapse;
}

.sb-table th {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}
.sb-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.sb-table th.sortable:hover { color: rgba(255, 255, 255, 0.7); }
.sb-table th.sortable.active-sort { color: #7bbce0; }

.sb-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 15px;
    vertical-align: middle;
}

.sb-table tbody tr {
    transition: background 0.15s;
}
.sb-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sb-table .col-rank { width: 60px; text-align: center; color: rgba(255,255,255,0.5); }
.sb-table .col-skill { text-align: right; font-weight: 700; font-size: 16px; }
.sb-table .col-matches { text-align: center; color: rgba(255,255,255,0.6); }
.sb-table .col-kd { text-align: center; }
.sb-table .col-winrate { text-align: center; }
.sb-table .col-wl { text-align: center; color: rgba(255,255,255,0.6); }

/* --- Player name cell --- */
.sb-player-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sb-player-name a {
    color: #fff;
    font-weight: 600;
    transition: color 0.2s;
}
.sb-player-name a:hover { color: #7bbce0; }
.sb-player-name .premium-color { color: #e8c040; }
.sb-player-name .premium-color:hover { color: #f0d060; }

/* --- Rank Badge --- */
.sb-rank-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    position: relative;
    cursor: help;
}
/* --- Tooltips (data-tooltip) --- */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    white-space: nowrap;
    color: #fff;
    z-index: 50;
    pointer-events: none;
    max-width: 300px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.sb-help-icon {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    margin-left: 4px;
    vertical-align: middle;
}
.sb-help-icon:hover { color: rgba(255, 255, 255, 0.6); }

/* Tooltip below (for elements near top of page) */
[data-tooltip-down] {
    position: relative;
    cursor: help;
}
[data-tooltip-down]:hover::after {
    content: attr(data-tooltip-down);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    color: #fff;
    z-index: 50;
    pointer-events: none;
    max-width: 300px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

/* rank badge tooltip handled by [data-tooltip] above */
.sb-rank-platinum { background: rgba(123, 188, 224, 0.2); color: #7bbce0; border: 1px solid rgba(123, 188, 224, 0.3); }
.sb-rank-gold { background: rgba(232, 192, 64, 0.2); color: #e8c040; border: 1px solid rgba(232, 192, 64, 0.3); }
.sb-rank-silver { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); }
.sb-rank-bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.3); }

/* --- Skill Breakdown Bar --- */
.sb-skill-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    min-width: 120px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.05);
}
.sb-skill-kd { background: #4a8ab5; }
.sb-skill-team { background: #5cb85c; }
.sb-skill-impact { background: #e8c040; }

/* --- Colored Values --- */
.val-good { color: #5cb85c; }
.val-neutral { color: #fff; }
.val-bad { color: #e85050; }

/* --- Pagination --- */
.sb-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.sb-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.sb-page-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.sb-page-btn.active {
    background: linear-gradient(135deg, #4a8ab5, #3a7a45);
    border-color: transparent;
    color: #fff;
}

/* --- Update info --- */
.sb-update-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

/* --- Count info --- */
.sb-count-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    text-align: center;
}

/* --- Coming Soon Stub --- */
.sb-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}
.sb-coming-soon i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}
.sb-coming-soon h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}
.sb-coming-soon p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Match History / Match Viewer
   ========================================================================== */

.sb-page-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.sb-page-hero-copy {
    flex: 1;
}

.sb-page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sb-page-copy {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
}

.sb-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.sb-action-link:hover {
    transform: translateY(-1px);
}

.sb-action-link-primary {
    background: linear-gradient(135deg, #4a8ab5, #3a7a45);
    color: #fff;
}

.sb-action-link-primary:hover {
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 138, 181, 0.25);
}

.sb-action-link-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
}

.sb-action-link-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.sb-action-link-inline {
    min-height: auto;
}

.sb-provider-banner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
}

.sb-provider-copy {
    flex: 1;
}

.sb-provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(232, 192, 64, 0.12);
    border: 1px solid rgba(232, 192, 64, 0.24);
    color: #e8c040;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sb-provider-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sb-provider-text {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.56);
}

.sb-provider-meta {
    min-width: 240px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.sb-provider-meta-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sb-provider-meta-row span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.sb-provider-meta-row strong {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.sb-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sb-overview-card {
    padding: 18px 20px;
}

.sb-overview-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
}

.sb-overview-value-status {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.sb-overview-meta {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
}

.sb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-view-toggle {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.sb-view-toggle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sb-view-toggle-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sb-view-toggle-link.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, rgba(74, 138, 181, 0.85), rgba(58, 122, 69, 0.85));
}

.sb-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sb-status-chip-completed {
    background: rgba(92, 184, 92, 0.14);
    border: 1px solid rgba(92, 184, 92, 0.26);
    color: #7cd57c;
}

.sb-status-chip-in_progress {
    background: rgba(74, 138, 181, 0.14);
    border: 1px solid rgba(74, 138, 181, 0.28);
    color: #7bbce0;
}

.sb-history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sb-history-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-history-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sb-match-id-link {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.sb-match-id-link:hover {
    color: #7bbce0;
}

.sb-history-map {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.sb-history-meta,
.sb-history-summary,
.sb-match-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.sb-history-scoreline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.sb-history-scoreline-sep,
.sb-match-score-separator,
.sb-half-score-separator {
    color: rgba(255, 255, 255, 0.24);
}

.sb-history-mvp {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.sb-history-mvp-meta,
.sb-table-subtext {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.42);
}

.sb-list-score {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.sb-inline-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.sb-player-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #fff;
}

.sb-player-inline .flag-icon {
    flex-shrink: 0;
}

.sb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    text-align: center;
    gap: 10px;
}

.sb-empty-state i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.16);
}

.sb-empty-state h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sb-empty-state p {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.44);
}

.sb-note-card p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.56);
}

.sb-note-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-note-list li {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.56);
    padding-left: 14px;
    position: relative;
}

.sb-note-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a8ab5;
}

.sb-match-result-card {
    padding: 24px;
}

.sb-match-scoreline {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.sb-match-score-team {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-match-score-team span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.sb-match-score-team strong {
    font-size: 48px;
    line-height: 1;
}

.sb-match-score-separator {
    font-size: 34px;
    font-weight: 700;
}

.sb-match-halves {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-half-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-half-header,
.sb-team-summary-head,
.sb-team-snapshot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sb-section-title {
    font-size: 20px;
    font-weight: 700;
}

.sb-half-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-half-score-side {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sb-half-score-side span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.sb-half-score-side strong,
.sb-team-snapshot-score,
.sb-team-summary-score {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.sb-team-snapshot-grid,
.sb-team-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sb-team-snapshot {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sb-team-summary-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sb-table-compact .sb-table th,
.sb-table-compact .sb-table td {
    padding: 9px 12px;
    font-size: 14px;
}

.sb-empty-inline {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.42);
    font-size: 13px;
    text-align: center;
}

/* ==========================================================================
   Team Balancer
   ========================================================================== */

.sb-balancer-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-balancer-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
}

.sb-balancer-hero-copy {
    flex: 1;
}

.sb-balancer-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.sb-balancer-copy {
    max-width: 720px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.sb-balancer-server-form {
    min-width: 360px;
    justify-content: flex-end;
    margin-bottom: 0;
}

.sb-balancer-server-form .sb-filter-select {
    min-width: 320px;
}

.sb-balancer-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sb-balancer-overview-card {
    padding: 18px 20px;
}

.sb-balancer-overview-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
}

.sb-balancer-overview-meta {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.sb-balancer-toolbar-card {
    padding: 18px 20px;
}

.sb-balancer-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.sb-balancer-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-balancer-toolbar-group .sb-filter-input {
    width: 260px;
}

.sb-balancer-toolbar-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.sb-balancer-secondary-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sb-balancer-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.sb-balancer-note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.45;
}

.sb-balancer-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 16px;
}

.sb-balancer-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sb-balancer-section-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.sb-balancer-section-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.sb-balancer-player-list,
.sb-balancer-selected-list,
.sb-balancer-team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sb-balancer-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.sb-balancer-player:hover {
    transform: translateY(-1px);
    border-color: rgba(74, 138, 181, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.sb-balancer-player.is-selected {
    border-color: rgba(74, 138, 181, 0.34);
    background: linear-gradient(135deg, rgba(74, 138, 181, 0.12), rgba(58, 122, 69, 0.08));
}

.sb-balancer-player input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4a8ab5;
    flex: none;
}

.sb-balancer-player input[type="checkbox"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sb-balancer-player-main {
    flex: 1;
    min-width: 0;
}

.sb-balancer-player-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.sb-balancer-player-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.sb-balancer-player-tag {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.sb-balancer-inline-badge {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(232, 160, 64, 0.16);
    border: 1px solid rgba(232, 160, 64, 0.26);
    color: #e8a040;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sb-balancer-player-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.4;
}

.sb-balancer-player-side {
    min-width: 110px;
    text-align: right;
}

.sb-balancer-player-skill {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.sb-balancer-player-rank {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
}

.sb-balancer-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.sb-balancer-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(232, 80, 80, 0.24);
    background: rgba(232, 80, 80, 0.12);
    color: #e85050;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex: none;
}

.sb-balancer-remove:hover {
    background: rgba(232, 80, 80, 0.22);
    border-color: rgba(232, 80, 80, 0.36);
}

.sb-balancer-selected-main {
    flex: 1;
    min-width: 0;
}

.sb-balancer-selected-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.sb-balancer-selected-meta {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.sb-balancer-selected-score {
    font-size: 15px;
    font-weight: 700;
    color: #7bbce0;
    text-align: right;
}

.sb-balancer-output {
    padding: 22px;
}

.sb-balancer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
}

.sb-balancer-placeholder i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.18);
    margin-bottom: 16px;
}

.sb-balancer-placeholder h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sb-balancer-placeholder p {
    max-width: 520px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
}

.sb-balancer-placeholder--error h2 {
    color: #e85050;
}

.sb-balancer-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sb-balancer-results-title {
    font-size: 22px;
    font-weight: 700;
}

.sb-balancer-results-copy {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
}

.sb-balancer-diff {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.sb-balancer-diff strong {
    font-size: 24px;
    line-height: 1;
}

.sb-balancer-diff span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sb-balancer-diff--good {
    border-color: rgba(92, 184, 92, 0.22);
}

.sb-balancer-diff--good strong {
    color: #5cb85c;
}

.sb-balancer-diff--warn {
    border-color: rgba(232, 160, 64, 0.22);
}

.sb-balancer-diff--warn strong {
    color: #e8a040;
}

.sb-balancer-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sb-balancer-team-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.sb-balancer-team-card--alpha {
    border-color: rgba(74, 138, 181, 0.25);
}

.sb-balancer-team-card--bravo {
    border-color: rgba(58, 122, 69, 0.25);
}

.sb-balancer-team-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sb-balancer-team-title {
    font-size: 20px;
    font-weight: 700;
}

.sb-balancer-team-total {
    font-size: 24px;
    font-weight: 700;
}

.sb-balancer-team-summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.sb-balancer-team-summary strong {
    color: #fff;
}

.sb-balancer-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sb-balancer-team-row:last-child {
    border-bottom: none;
}

.sb-balancer-team-order {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    flex: none;
}

.sb-balancer-team-player {
    flex: 1;
    min-width: 0;
}

.sb-balancer-team-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.sb-balancer-team-meta {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.44);
}

.sb-balancer-team-score {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #7bbce0;
    min-width: 90px;
}

/* ==========================================================================
   Player Profile
   ========================================================================== */

/* --- Back button --- */
.sb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    transition: color 0.2s;
}
.sb-back-link:hover { color: #7bbce0; }

/* --- Player Header --- */
.sb-player-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: rgba(8, 12, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 20px;
}

.sb-player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sb-player-info { flex: 1; }

.sb-player-nick {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.sb-player-meta span { display: inline-flex; align-items: center; gap: 4px; }
.sb-player-meta strong { color: rgba(255, 255, 255, 0.8); font-weight: 600; }

.sb-player-nicks { flex-wrap: wrap; gap: 4px; }
.sb-player-nicks__item {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    padding: 1px 6px;
    cursor: help;
}

.sb-player-numbers {
    display: flex;
    gap: 24px;
    text-align: center;
}
.sb-player-big-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.sb-player-big-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* --- Grid layout for profile cards --- */
.sb-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.sb-profile-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.sb-profile-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* --- Ring chart card --- */
.sb-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
}
.sb-ring-chart-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 12px;
}
.sb-ring-chart-wrap canvas {
    width: 130px !important;
    height: 130px !important;
}
.sb-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.sb-ring-details {
    width: 100%;
}
.sb-ring-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sb-ring-detail-row:last-child { border-bottom: none; }
.sb-ring-detail-label { color: rgba(255, 255, 255, 0.5); }
.sb-ring-detail-value { font-weight: 600; }

/* --- Skill breakdown card --- */
.sb-breakdown-card { padding: 20px; }
.sb-breakdown-total {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}
.sb-breakdown-bar-wrap {
    margin: 16px 0;
}
.sb-breakdown-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}
.sb-breakdown-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.sb-breakdown-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.sb-breakdown-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* --- Horizontal bar lists (weapons, maps) --- */
.sb-bar-list { list-style: none; }
.sb-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.sb-bar-icon {
    width: 50px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0.9);
}
.sb-bar-name {
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}
.sb-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #4a8ab5, #3a7a45);
    transition: width 0.5s ease;
}
.sb-bar-value {
    min-width: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
}
.sb-bar-hs {
    min-width: 45px;
    text-align: right;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Victims / Killers list --- */
.sb-vk-list { list-style: none; }
.sb-vk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.sb-vk-item:last-child { border-bottom: none; }
.sb-vk-name { font-size: 13px; font-weight: 600; }
.sb-vk-count { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* --- Game actions grid --- */
.sb-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.sb-action-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.sb-action-label { color: rgba(255, 255, 255, 0.5); }
.sb-action-value { font-weight: 600; }

/* --- Knife progress --- */
.sb-knife-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.sb-knife-name { flex: 1; font-size: 13px; }
.sb-knife-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}
.sb-knife-fill { height: 100%; border-radius: 3px; }
.sb-knife-pct { min-width: 40px; text-align: right; font-size: 12px; font-weight: 600; }

/* --- Server list --- */
.sb-server-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.sb-server-item:last-child { border-bottom: none; }

/* --- No data --- */
.sb-no-data {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes sbFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.sb-content { animation: sbFadeInUp 0.4s ease forwards; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .sb-page-hero { flex-direction: column; }
    .sb-provider-banner { flex-direction: column; }
    .sb-provider-meta { min-width: 0; padding-left: 0; border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 16px; }
    .sb-overview-grid { grid-template-columns: repeat(2, 1fr); }
    .sb-history-grid { grid-template-columns: repeat(2, 1fr); }
    .sb-team-snapshot-grid,
    .sb-team-summary-grid { grid-template-columns: 1fr; }
    .sb-balancer-overview { grid-template-columns: repeat(2, 1fr); }
    .sb-balancer-main { grid-template-columns: 1fr; }
    .sb-balancer-results-grid { grid-template-columns: 1fr; }
    .sb-profile-grid { grid-template-columns: repeat(2, 1fr); }
    .sb-nav-link span { display: none; }
    .sb-nav-link i { margin-right: 0; }
    .sb-topbar-right span { display: none; }
}

@media (max-width: 768px) {
    .sb-content { padding: 72px 12px 24px; }
    .sb-page-actions { width: 100%; }
    .sb-page-actions > * { flex: 1; }
    .sb-view-toggle { width: 100%; margin-left: 0; }
    .sb-view-toggle > * { flex: 1; justify-content: center; }
    .sb-history-grid { grid-template-columns: 1fr; }
    .sb-match-scoreline { gap: 14px; }
    .sb-match-score-team strong { font-size: 38px; }
    .sb-half-header,
    .sb-team-summary-head,
    .sb-team-snapshot-head { flex-direction: column; align-items: flex-start; }
    .sb-balancer-hero { flex-direction: column; align-items: stretch; }
    .sb-balancer-server-form { min-width: 0; width: 100%; }
    .sb-balancer-server-form .sb-filter-select { min-width: 0; width: 100%; }
    .sb-balancer-toolbar-actions { margin-left: 0; width: 100%; }
    .sb-balancer-toolbar-actions > * { flex: 1; }
    .sb-balancer-results-head { flex-direction: column; }
    .sb-profile-grid { grid-template-columns: 1fr; }
    .sb-profile-grid-2 { grid-template-columns: 1fr; }
    .sb-profile-grid-3 { grid-template-columns: 1fr; }
    .sb-player-header { flex-direction: column; text-align: center; padding: 16px; }
    .sb-player-numbers { justify-content: center; }
    .sb-player-meta { justify-content: center; }
    .sb-filters { flex-direction: column; align-items: stretch; }
    .sb-filter-input { width: 100%; }
    .sb-table-wrap { overflow-x: auto; }
    .sb-skill-bar { min-width: 80px; }
    .sb-logo { font-size: 13px; margin-right: 12px; }
}

@media (max-width: 600px) {
    .sb-overview-grid { grid-template-columns: 1fr; }
    .sb-page-title { font-size: 20px; }
    .sb-match-scoreline { flex-direction: column; align-items: flex-start; }
    .sb-match-score-separator { display: none; }
    .sb-balancer-overview { grid-template-columns: 1fr; }
    .sb-balancer-player,
    .sb-balancer-selected-item,
    .sb-balancer-team-row { padding-left: 12px; padding-right: 12px; }
    .sb-balancer-player { align-items: flex-start; }
    .sb-balancer-player-side,
    .sb-balancer-team-score { min-width: 0; }
    .sb-balancer-player-title,
    .sb-balancer-selected-name,
    .sb-balancer-team-name { line-height: 1.3; }
    .sb-topbar-right { display: none; }
    .sb-player-nick { font-size: 20px; }
    .sb-ring-chart-wrap { width: 100px; height: 100px; }
    .sb-ring-value { font-size: 22px; }
}

.sb-rank-tier-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;}
.sb-rank-tier-icon--sm{width:16px;height:16px;}

.sb-prestige-num{font-size:11px;color:#e8c040;font-weight:700;vertical-align:middle;margin-left:2px;}

/* Витрина медалей игрока (профиль скорборда) */
.sb-medals{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px;}
.sb-medals__count{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:9px;background:rgba(255,255,255,0.08);font-size:10px;color:rgba(255,255,255,0.6);}
.sb-medals__title{font-size:11px;text-transform:uppercase;letter-spacing:0.6px;color:rgba(255,255,255,0.45);margin-right:4px;}
.sb-medals__item{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid rgba(255,255,255,0.08);border-radius:4px;background:rgba(255,255,255,0.03);}
.sb-medals__item img{width:22px;height:22px;object-fit:contain;}
.sb-medals__item.is-equipped{border-color:rgba(92,184,92,0.6);background:rgba(92,184,92,0.12);}
.sb-medals__item.is-equipped img{filter:drop-shadow(0 0 4px rgba(92,184,92,0.8));}

/* Всплывающая карточка медали в профиле игрока */
.sb-medals__item{position:relative;cursor:default;}
.sb-medals__pop{position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%) translateY(4px);width:200px;padding:13px 13px 11px;border-radius:8px;z-index:40;background:#10151c;border:1px solid rgba(255,255,255,0.14);box-shadow:0 10px 28px rgba(0,0,0,0.6);display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 0.12s ease,transform 0.12s ease;}
.sb-medals__pop::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:7px solid transparent;border-top-color:#10151c;}
.sb-medals__item:hover .sb-medals__pop,.sb-medals__item:focus-visible .sb-medals__pop{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.sb-medals__pop-img,.sb-medals__pop-img img{width:96px;height:96px;object-fit:contain;}
.sb-medals__pop b{font-size:13px;color:#fff;line-height:1.2;}
.sb-medals__pop-desc{font-size:11px;line-height:1.4;color:rgba(255,255,255,0.6);}
.sb-medals__pop-cta{font-size:11px;font-weight:700;letter-spacing:0.4px;color:#5cb85c;}
@media (max-width:620px){.sb-medals__pop{width:164px;}.sb-medals__pop-img,.sb-medals__pop-img img{width:80px;height:80px;}}
