/* ==========================================
   MATCH FILTER BAR (HOME PAGE)
   ========================================== */

.match-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    background: rgba(30, 35, 50, 0.4);
    border-radius: 8px;
    margin-bottom: var(--spacing-xl);
}

.filter-toggle {
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(20, 25, 40, 0.6);
    padding: 4px;
    border-radius: 6px;
}

.filter-toggle-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    color: var(--text-primary);
}

.filter-toggle-btn.active {
    background: var(--accent-primary);
    color: white;
}

.game-filter-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--spacing-sm);
}

.game-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid transparent;
    background: rgba(30, 35, 50, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.game-icon-btn img {
    width: 23px;
    height: 23px;
    border-radius: 4px;
}

.game-icon-btn svg {
    stroke: var(--text-secondary);
}

.game-icon-btn:hover {
    background: rgba(40, 45, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-icon-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.game-icon-btn.active svg {
    stroke: var(--accent-primary);
}

/* ==========================================
   MY MATCHES PAGES
   ========================================== */

.my-matches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.my-matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.my-matches-header h1 {
    font-size: 24px;
    font-weight: 650;
    color: var(--text-primary);
    margin: 0;
}

.my-matches-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-matches-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 280px;
}

.my-matches-game-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.queue-filter select {
    padding: 10px 16px;
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.my-matches-champion-filter {
    width: 100%;
    max-width: 340px;
}

/* Matches Table */
.matches-table-container {
    background: rgba(30, 35, 50, 0.4);
    border-radius: 8px;
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table thead {
    background: rgba(20, 25, 40, 0.8);
}

.matches-table th {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
}

.matches-table th:hover {
    color: var(--text-secondary);
}

.matches-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.matches-table tbody tr:hover {
    background: rgba(40, 45, 60, 0.3);
}

.matches-table tbody tr.faceit-stub-row {
    cursor: default;
}

.matches-table tbody tr.faceit-stub-row:hover {
    background: rgba(40, 45, 60, 0.12);
}

.matches-table td {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: 13px;
    color: var(--text-primary);
}

.matches-table tbody tr.win {
    border-left: 3px solid #10b981;
}

.matches-table tbody tr.loss {
    border-left: 3px solid #ef4444;
}

.matches-table tbody tr.remake {
    border-left: 3px solid #d1d5db;
}

/* Champion/Map Cell */
.champion-cell,
.map-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.faceit-stub-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.2;
}

.champ-icon,
.map-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.matches-table.lol-table th,
.matches-table.lol-table td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.matches-table.lol-table .champion-cell {
    gap: 10px;
    min-width: 190px;
    font-weight: 600;
    white-space: nowrap;
}

.matches-table.lol-table td.champion-cell,
.matches-table.lol-table td.role-cell,
.matches-table.lol-table-profile-wide td.champion-cell,
.matches-table.lol-table-profile-wide td.role-cell {
    display: table-cell;
    vertical-align: middle;
}

.matches-table.lol-table .lol-champion-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    white-space: nowrap;
}

.matches-table.lol-table .lol-champion-name {
    font-weight: 600;
}

.matches-table.lol-table .champ-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}

.matches-table.lol-table .role-cell {
    min-width: 130px;
    white-space: nowrap;
}

.matches-table.lol-table .lol-role-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    white-space: nowrap;
}

.matches-table.lol-table .lol-role-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    flex-shrink: 0;
}

.matches-table.lol-table .lol-role-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.matches-table.lol-table .queue-cell,
.matches-table.lol-table .kda-cell,
.matches-table.lol-table .kda-ratio-cell,
.matches-table.lol-table .rating-cell,
.matches-table.lol-table .lp-cell {
    font-variant-numeric: tabular-nums;
}

.my-matches-container.my-matches-container-wide {
    max-width: 1560px;
}

.matches-table.lol-table-profile-wide {
    min-width: 1120px;
}

.matches-table.lol-table-profile-wide th,
.matches-table.lol-table-profile-wide td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.matches-table.lol-table-profile-wide .champion-cell {
    min-width: 230px;
}

.matches-table.lol-table-profile-wide .role-cell {
    min-width: 150px;
}

.matches-table.lol-table-profile-wide .lol-champion-wrap {
    min-width: 230px;
}

.matches-table.lol-table-profile-wide .lol-role-wrap {
    min-width: 150px;
}

.matches-table.cs2-table-profile-wide {
    min-width: 1120px;
}

.matches-table.cs2-table-profile-wide th,
.matches-table.cs2-table-profile-wide td {
    padding-top: 12px;
    padding-bottom: 12px;
}

.matches-table.cs2-table-profile-wide .map-photo-cell {
    gap: 10px;
    min-width: 260px;
}

.matches-table.cs2-table-profile-wide .map-cell-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.matches-table.cs2-table-profile-wide .map-photo {
    width: 74px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 25, 40, 0.6);
}

.matches-table.cs2-table-profile-wide .map-photo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.matches-table.cs2-table-profile-wide .result-cell .result-badge {
    min-width: 102px;
    text-align: center;
}

.matches-table.cs2-table-profile-wide .kda-cell,
.matches-table.cs2-table-profile-wide .rating-cell,
.matches-table.cs2-table-profile-wide .adr-cell {
    font-variant-numeric: tabular-nums;
}

.matches-table.cs2-table-profile-wide .mode-cell {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Role Cell */
.role-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-icon {
    font-size: 14px;
}

/* Result Cell */
.result-cell .result-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 102px;
    display: inline-flex;
    justify-content: center;
}

.result-cell .result-badge.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.result-cell .result-badge.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.result-cell .result-badge.remake {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

body.route-preloading {
    cursor: progress;
}

.sidebar-nav-item.route-preloading {
    opacity: 0.75;
}

/* LP Cell */
.lp-cell {
    font-weight: 600;
}

.lp-cell.lp-gain {
    color: #10b981;
}

.lp-cell.lp-loss {
    color: #ef4444;
}

.lp-cell.lp-empty,
.lp-cell.lp-neutral {
    color: var(--text-primary);
}

/* Rating Cell */
.rating-cell {
    font-weight: 600;
}

.rating-cell.positive {
    color: #10b981;
}

.rating-cell.negative {
    color: #ef4444;
}

/* Score Cell (CS2) */
.score-cell .score {
    font-weight: 600;
}

.score-cell .score.win {
    color: #10b981;
}

.score-cell .score.loss {
    color: #ef4444;
}

/* Rank Cell */
.rank-badge {
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #ffc107;
}

/* Progress Bar Mini (for Aim/Utility) */
.progress-bar-mini {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 3px;
    transition: width 0.3s;
}

/* Achievements & Highlights */
.achievements-cell .achievement {
    font-size: 16px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

/* Loading/Error/Empty States */
.loading-cell,
.error-cell,
.empty-cell {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.error-cell {
    color: var(--error);
}

/* Responsive */
@media (max-width: 1024px) {
    .match-filter-bar {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .my-matches-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .my-matches-controls {
        width: 100%;
        min-width: 0;
    }

    .my-matches-champion-filter {
        max-width: none;
    }

    .matches-table-container {
        overflow-x: scroll;
    }

    .matches-table {
        min-width: 900px;
    }
}

/* ==========================================
   HOME LAYOUT REFRESH
   ========================================== */

.home-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: calc(-1 * var(--spacing-2xl));
}

.match-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: none;
}

.home-top-bar {
    position: relative;
    top: auto;
    z-index: 1;
    margin-left: calc(-1 * var(--spacing-2xl));
    margin-right: calc(-1 * var(--spacing-2xl));
    width: calc(100% + (var(--spacing-2xl) + var(--spacing-2xl)));
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 20px;
    align-items: start;
}

.home-feed-column {
    min-width: 0;
    min-height: 260px;
    padding-right: 22px;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.home-feed-column .match-feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.home-feed-column .match-card {
    margin: 0 0 var(--spacing-lg) 0;
    width: min(100%, 560px);
}

.home-feed-loading {
    position: absolute;
    inset: 0;
    z-index: 12;
    margin: 0;
    padding: 28px 18px;
    background: linear-gradient(180deg, rgba(7, 13, 27, 0.9) 0%, rgba(10, 16, 32, 0.86) 100%);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    backdrop-filter: blur(2px);
    gap: 12px;
}

.home-feed-loading.is-visible {
    opacity: 1;
    visibility: visible;
}

.home-feed-loading .loading-spinner {
    width: 40px;
    height: 40px;
}

.home-feed-loading-progress {
    width: min(280px, 92%);
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-feed-loading-progress-fill {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(3, 202, 252, 0.4) 0%, rgba(3, 202, 252, 0.95) 55%, rgba(180, 244, 255, 0.75) 100%);
    transform: translateX(-115%);
    animation: homeFeedLoadingBar 1.15s ease-in-out infinite;
}

@keyframes homeFeedLoadingBar {
    0% {
        transform: translateX(-115%);
    }
    100% {
        transform: translateX(250%);
    }
}

.home-feed-autoload-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.home-summary-column {
    min-width: 0;
    padding-left: 2px;
}

.home-summary-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: none;
    padding: 14px;
    font-size: 13px;
}

.home-summary-panel.home-summary-panel-switching {
    transition: height 280ms ease;
    overflow: hidden;
    will-change: height;
}

.home-summary-loading {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.home-summary-heading {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    font-weight: 600;
}

.home-summary-heading-game {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.home-summary-heading-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.home-summary-circles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-summary-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.home-summary-ring {
    width: 118px;
    height: 118px;
    position: relative;
}

.home-summary-ring svg {
    width: 118px;
    height: 118px;
    transform: rotate(-90deg);
}

.home-summary-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 9;
}

.home-summary-ring-progress {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.home-summary-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.home-summary-ring-text.home-circle-text-compact {
    font-size: 18px;
}

.home-summary-circle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.home-summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 14px 0;
}

.home-summary-role-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1fr;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    background: var(--bg-secondary);
}

.home-summary-role-title {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-summary-role-main {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
}

.home-summary-role-main-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.home-summary-role-kda-label {
    margin-top: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-summary-role-kda {
    margin-top: 2px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.home-summary-role-chart {
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.home-role-bars {
    width: 100%;
    height: 96px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-items: end;
}

.home-role-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.home-role-bar-track {
    width: 100%;
    height: 56px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px;
    display: flex;
    align-items: flex-end;
}

.home-role-bar-fill {
    width: 100%;
    border-radius: 4px;
    min-height: 0;
    background: linear-gradient(180deg, #2ec5f4 0%, #1594db 100%);
    transition: height 0.35s ease;
}

.home-role-bar-icon-box {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-role-bar-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.9;
    display: block;
}

.home-role-bar-icon-fallback {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.home-role-bar-count {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
}

.home-summary-rank-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.home-summary-rank-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-summary-rank-col-right {
    text-align: right;
}

.home-summary-rank-mode {
    text-transform: uppercase;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-weight: 700;
}

.home-summary-rank-tier {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.home-summary-rank-tier-premier {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 32px;
    height: 32px;
    line-height: 1;
}

.home-summary-rank-tier-premier .cs2-premier-rating {
    display: flex;
    align-items: center;
    vertical-align: middle;
    transform: scale(1.1);
    transform-origin: center center;
}

.home-summary-rank-col-premier {
    align-self: stretch;
}

.home-summary-rank-col-premier .home-summary-rank-tier-premier {
    margin-top: auto;
    margin-bottom: auto;
}

.home-premier-rating-empty {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    line-height: 1;
    color: var(--text-primary);
}

.home-summary-rank-tier-faceit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
}

.home-faceit-level-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 auto;
}

.home-faceit-level-icon.empty {
    filter: grayscale(1);
    opacity: 0.8;
}

.home-summary-rank-lp {
    font-size: 12px;
    color: var(--text-secondary);
}

.home-summary-rank-record {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.home-summary-rank-circles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 126px;
    padding: 0 4px;
    position: relative;
}

.home-summary-rank-circles::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 1px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.home-summary-champions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-summary-champ-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 11px;
    background: var(--bg-secondary);
}

.home-summary-champ-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-summary-champ-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-summary-champ-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.home-summary-champ-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.home-summary-champ-record {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.home-summary-champ-circles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-mini-circle {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.home-mini-circle svg {
    width: 50px;
    height: 50px;
    transform: rotate(-90deg);
}

.home-mini-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 4;
}

.home-mini-circle-progress {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease;
}

.home-mini-circle span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1;
}

.home-mini-circle span.home-circle-text-compact {
    font-size: 8.2px;
}

.home-summary-empty {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 12px;
}

.home-summary-carousel.home-summary-carousel-leaving {
    animation: home-summary-card-fade-out 170ms ease forwards;
}

.home-summary-carousel.home-summary-carousel-pre-enter {
    opacity: 0;
}

.home-summary-carousel.home-summary-carousel-entering {
    opacity: 0;
    animation: home-summary-card-fade-in 220ms ease forwards;
}

.home-summary-switcher {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.home-summary-switch-arrow {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.home-summary-switch-arrow:hover {
    border-color: var(--border-color-hover);
    color: var(--text-primary);
    background: var(--bg-card);
}

.home-summary-switch-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-summary-switch-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(148, 163, 184, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: width 220ms ease, background-color 220ms ease, opacity 220ms ease;
}

.home-summary-switch-dot.active {
    width: 32px;
    background: rgba(45, 212, 191, 0.25);
}

.home-summary-switch-dot-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #22d3ee 0%, #2ec5f4 100%);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
}

.home-summary-switch-dot.active .home-summary-switch-dot-fill {
    animation: home-summary-dot-progress var(--home-summary-switch-ms, 20000ms) linear forwards;
    opacity: 1;
}

.home-summary-carousel.home-summary-carousel-auto-paused .home-summary-switch-dot.active .home-summary-switch-dot-fill {
    animation: none;
    transform: scaleX(1);
    opacity: 1;
}

.home-summary-switch-dot:not(.active) .home-summary-switch-dot-fill {
    animation: none;
    transform: scaleX(0);
    opacity: 0;
}

@keyframes home-summary-dot-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes home-summary-card-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes home-summary-card-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.filter-toggle {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
}

.filter-toggle-btn {
    padding: 9px 20px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.filter-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-toggle-btn.active {
    background: rgba(99, 102, 241, 0.18);
    color: var(--text-primary);
    box-shadow: none;
}

.game-filter-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--spacing-sm);
    letter-spacing: 0.03em;
}

.game-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.game-icon-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-color-hover);
}

.game-icon-btn.active {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.42);
    box-shadow: none;
}

.game-icon-btn.active svg {
    stroke: var(--text-primary);
}

@media (max-width: 1500px) {
    .home-content-grid {
        grid-template-columns: 1fr;
    }

    .home-summary-column {
        display: none;
    }

    .home-feed-column {
        border-right: none;
        padding-right: 0;
    }

    .home-feed-column .match-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 768px) {
    .home-top-bar {
        margin-left: calc(-1 * var(--spacing-lg));
        margin-right: calc(-1 * var(--spacing-lg));
        width: calc(100% + (var(--spacing-lg) + var(--spacing-lg)));
    }

    .match-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .game-filter-icons {
        justify-content: space-between;
    }

    .home-summary-role-card {
        grid-template-columns: 1fr;
    }

    .home-summary-role-chart {
        border-left: none;
        border-top: 1px solid rgba(109, 132, 174, 0.35);
        padding-left: 0;
        padding-top: 10px;
    }

    .home-summary-rank-card {
        grid-template-columns: 1fr;
    }

    .home-summary-rank-circles {
        justify-content: center;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(109, 132, 174, 0.35);
        border-bottom: 1px solid rgba(109, 132, 174, 0.35);
        padding: 10px 0;
    }

    .home-summary-rank-col-right {
        text-align: left;
    }
}
