@layer reset, tokens, base, legacy, layout, components, utilities;
/* replay-viewer-dialogs.css from the pre-redesign frontend, in the legacy layer: above reset and base,
   below the new core and theme. Generated; edit the source and rebuild. */
@layer legacy {
.stats-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
    padding: 30px;
    overflow: auto;
    display: flex;
    align-items: center;
}
.stats-modal {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 18px;
    border-radius: 14px;
    background: #050609;
    border: 1px solid var(--replay-border);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.stats-modal>header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--replay-border);
    margin-bottom: 14px;
}
.stats-modal h2 {
    margin: 4px 0 2px;
    font-size: 1.6rem;
    letter-spacing: -.03em;
}
.stats-modal p {
    margin: 0;
    color: var(--replay-muted);
    font-size: .85rem;
}
.stats-modal-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.stats-modal-summary article {
    background: rgba(0, 0, 0, .18);
    border: 1px solid var(--replay-border);
    border-radius: 10px;
    padding: 10px 12px;
}
.stats-modal-summary span {
    display: block;
    color: var(--replay-muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .10em;
    font-weight: 900;
}
.stats-modal-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 1.2rem;
}
@media (max-width: 1100px) {
.stats-modal-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 720px) {
.stats-modal-backdrop {
        padding: 10px;
    }
}
.stats-modal-backdrop {
    align-items: flex-start;
    padding: 24px;
    background: rgba(2, 3, 6, .78);
}
.stats-modal {
    max-width: 1480px;
    padding: 0;
    overflow: hidden auto;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(19, 24, 34, .99), rgba(7, 9, 14, .99));
}
.stats-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 22px;
    margin-bottom: 0;
    background: rgba(9, 12, 18, .94);
    backdrop-filter: blur(14px);
}
.stats-modal-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 22px 0;
}
.stats-modal-summary article, .stats-modal-leaders article, .stats-team-column, .stats-metric-group {
    border: 1px solid var(--replay-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}
.stats-modal-summary article {
    min-height: 88px;
    padding: 14px;
}
.stats-modal-summary small {
    display: block;
    margin-top: 5px;
    color: var(--replay-muted);
    font-size: .78rem;
}
.stats-modal-leaders {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 22px 0;
}
.stats-modal-leaders article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
}
.stats-modal-leaders .material-icons {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 153, 0, .10);
    color: var(--replay-primary);
}
.stats-modal-leaders small, .stats-modal-leaders em {
    display: block;
    color: var(--replay-muted);
    font-size: .74rem;
    font-style: normal;
}
.stats-modal-leaders strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 820px) {
.stats-modal-leaders, .stats-modal-summary {
        grid-template-columns: 1fr 1fr;
    }
.stats-modal-backdrop {
        padding: 10px;
    }
.stats-modal {
        max-height: calc(100vh - 20px);
    }
.stats-modal-header {
        padding: 16px;
    }
.stats-modal-summary, .stats-modal-leaders {
        margin-left: 12px;
        margin-right: 12px;
    }
}
@media (max-width: 560px) {
.replay-upload-shell, .replay-upload-metrics, .stats-modal-leaders, .stats-modal-summary, .stats-team-strip {
        grid-template-columns: 1fr;
    }
}
.scoreboard-dialog.stats-modal {
    width: min(1180px, calc(100vw - 48px));
    max-width: none;
    max-height: min(82vh, 780px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--replay-text);
    overflow: visible;
    box-shadow: none;
}
.scoreboard-dialog::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(7px);
}
.auth-required-dialog.scoreboard-dialog.stats-modal {
    width: min(560px, calc(100vw - 48px));
    max-height: min(70vh, 420px);
}
.auth-required-header.scoreboard-header {
    grid-template-columns: 1fr;
    background: rgba(18, 18, 20, .94);
}
.auth-required-header .scoreboard-brand {
    gap: 10px;
}
.replay-table-dialog.scoreboard-dialog.stats-modal {
    width: min(1320px, calc(100vw - 48px));
    
    height: min(86vh, 860px);
    max-height: min(86vh, 860px);
}
.replay-table-shell {
    height: min(86vh, 860px);
    max-height: min(86vh, 860px);
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: var(--dash-bg, #09090b);
    box-shadow: 0 28px 100px rgba(0, 0, 0, .62);
    overflow: hidden;
}
.replay-table-header.scoreboard-header {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
    background: rgba(18, 18, 20, .94);
    border-bottom-color: var(--dash-border, rgba(255, 255, 255, 0.06));
}
.replay-table-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.replay-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-muted, #71717a);
    font-size: 0.85rem;
}
.replay-table-sections {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.01);
    overflow: auto;
}
.replay-table-sections-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.replay-table-sections-body > .replay-subtable {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.replay-table-sections-body .replay-subtable-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
}
.replay-table-subtabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.01);
    overflow: auto;
}
.replay-subtable {
    overflow: hidden;
    border-radius: 8px;
    transform: none;
    transition: border-color var(--dash-duration) var(--dash-ease),
                background var(--dash-duration) var(--dash-ease);
}
.replay-subtable:hover {
    transform: none;
}
.replay-subtable-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
}
.replay-subtable-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--dash-text, #fafafa);
}
.replay-subtable-head span {
    color: var(--dash-text-muted, #71717a);
    font-size: 0.82rem;
}
.replay-subtable-wrap {
    max-height: 380px;
    overflow: auto;
}
.replay-table-wrap {
    flex: 1;
    padding: 0;
    overflow: auto;
    background: transparent;
}
.replay-table-shell .card:hover {
    transform: none;
}
.replay-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.replay-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(14, 14, 16, .96);
    border-bottom: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    color: var(--dash-text-secondary, #a1a1aa);
    text-align: left;
    padding: 10px 12px;
    font-weight: 650;
    white-space: nowrap;
}
.replay-table thead th > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.replay-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 9px 12px;
    vertical-align: top;
    color: var(--dash-text, #fafafa);
}
.replay-table--dense thead th {
    padding: 9px 12px;
}
.replay-table--dense tbody td {
    padding: 8px 12px;
    max-width: 560px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.replay-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.replay-table-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: var(--dash-text, #fafafa);
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.replay-table-value {
    color: var(--dash-text, #fafafa);
    max-width: 680px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.replay-table-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}
.replay-table-filter-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-muted, #71717a);
    cursor: pointer;
}
.replay-table-filter-btn .material-icons {
    font-size: 18px;
}
.replay-table-filter-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dash-text, #fafafa);
}
.replay-table-filter-btn.active {
    color: var(--dash-accent, #f5a623);
    border-color: rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.10);
}
.replay-table-filter-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(10, 10, 12, 0.98);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.replay-table-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.replay-table-filter-head b {
    color: var(--dash-text, #fafafa);
    font-size: 0.9rem;
}
.replay-table-filter-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-secondary, #a1a1aa);
    cursor: pointer;
}
.replay-table-filter-close .material-icons {
    font-size: 18px;
}
.replay-table-filter-pop input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.03);
    color: var(--dash-text, #fafafa);
    outline: none;
    font-family: inherit;
}
.replay-table-filter-pop input:focus {
    border-color: var(--dash-accent, #f5a623);
    box-shadow: 0 0 0 3px var(--dash-accent-glow, rgba(245, 166, 35, 0.25));
}
.replay-table-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.replay-table-footer.scoreboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.replay-sheet-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: auto;
    max-width: 70%;
    padding: 2px 0;
}
.replay-table-footer-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
}
.scoreboard-shell {
    max-height: min(82vh, 780px);
    display: flex;
    flex-direction: column;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 33, 36, .97), rgba(13, 14, 16, .97)),
        rgba(14, 15, 18, .97);
    box-shadow: 0 28px 100px rgba(0, 0, 0, .62);
}
.scoreboard-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto 34px;
    align-items: center;
    gap: 14px;
    height: 50px;
    padding: 0 10px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(24, 25, 27, .96);
}
.scoreboard-brand, .scoreboard-context {
    display: flex;
    align-items: center;
    min-width: 0;
}
.scoreboard-brand {
    gap: 8px;
}
.scoreboard-brand .material-icons {
    color: #ffcf7a;
    font-size: 27px;
    transform: rotate(-28deg);
}
.scoreboard-brand h2 {
    margin: 0;
    overflow: hidden;
    color: #f4f4f5;
    font-size: 1.05rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scoreboard-context {
    gap: 10px;
    justify-content: flex-end;
    color: #b7bbc2;
    font-size: .88rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.scoreboard-context span:after {
    content: '-';
    margin-left: 10px;
    color: rgba(255, 255, 255, .34);
}
.scoreboard-context strong {
    color: #f0f2f5;
    font-weight: 800;
}
.scoreboard-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: #d9dde4;
    cursor: pointer;
}
.scoreboard-close .material-icons {
    font-size: 18px;
}
.scoreboard-overview {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background: rgba(0, 0, 0, .18);
    color: #aeb4bf;
    font-size: .75rem;
    text-transform: uppercase;
}
.scoreboard-overview span {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    white-space: nowrap;
}
.scoreboard-team {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 254px;
    min-height: 245px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.scoreboard-team-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    overflow: hidden;
    position: relative;
}
.scoreboard-team-score:before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 38%),
        linear-gradient(315deg, rgba(0, 0, 0, .20), transparent 45%);
}
.scoreboard-team.blue-side .scoreboard-team-score {
    background: #09507c;
}
.scoreboard-team.red-side .scoreboard-team-score {
    background: #8e171c;
}
.scoreboard-team-score small, .scoreboard-team-score strong {
    position: relative;
    z-index: 1;
}
.scoreboard-team-score small {
    max-width: 80px;
    overflow: hidden;
    color: rgba(255, 255, 255, .74);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.scoreboard-team-score strong {
    color: #fff;
    font-size: 5.3rem;
    line-height: .86;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .38);
}
.scoreboard-team-table {
    min-width: 0;
    overflow-x: auto;
    background: rgba(18, 19, 21, .72);
}
.scoreboard-table-head, .scoreboard-player-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.7fr) 70px 92px 88px 62px 76px 58px 58px 58px 62px;
    align-items: center;
    min-width: 900px;
    gap: 8px;
    padding: 0 14px;
}
.scoreboard-table-head {
    height: 39px;
    color: #aeb3bb;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}
.scoreboard-player-row {
    min-height: 40px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #d8dbe1;
    font-size: .88rem;
}
.scoreboard-player-row:nth-child(odd) {
    background: rgba(255, 255, 255, .025);
}
.scoreboard-player-row.is-top {
    background: rgba(255, 255, 255, .055);
}
.scoreboard-player-row>strong, .scoreboard-player-row>span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scoreboard-player {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.scoreboard-seed {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d7b71c;
    color: #141414;
    font-size: .78rem;
    font-weight: 950;
}
.scoreboard-player b, .scoreboard-player small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scoreboard-player b {
    color: #f3f4f6;
    font-size: .92rem;
}
.scoreboard-player small {
    margin-top: 2px;
    color: #8f96a2;
    font-size: .7rem;
}
.scoreboard-rank {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.scoreboard-rank-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
}
.scoreboard-rank small {
    min-width: 0;
    overflow: hidden;
    color: #c6cbd4;
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.scoreboard-team-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, .20);
}
.scoreboard-team-summary article {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    background: rgba(255, 255, 255, .045);
}
.scoreboard-team.blue-side .scoreboard-team-summary article:nth-child(-n+2) {
    background: rgba(42, 180, 255, .22);
}
.scoreboard-team.red-side .scoreboard-team-summary article:nth-child(-n+2) {
    background: rgba(255, 92, 92, .22);
}
.scoreboard-team-summary strong {
    color: #fff;
    font-size: 1.04rem;
}
.scoreboard-team-summary span {
    color: #aeb3bd;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.scoreboard-divider {
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, .24);
}
.scoreboard-divider span {
    color: #8d949f;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
}
.scoreboard-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: rgba(0, 0, 0, .24);
    color: #8d949f;
    font-size: .73rem;
}
@media (max-width: 1060px) {
.scoreboard-dialog.stats-modal {
        width: min(960px, calc(100vw - 28px));
    }
.scoreboard-team {
        grid-template-columns: 82px minmax(0, 1fr);
    }
.scoreboard-team-summary {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
.scoreboard-team-score strong {
        font-size: 4.2rem;
    }
}
@media (max-width: 720px) {
.scoreboard-dialog.stats-modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
    }
.scoreboard-shell {
        max-height: calc(100vh - 24px);
    }
.scoreboard-header {
        grid-template-columns: minmax(0, 1fr) 32px;
        height: auto;
        min-height: 52px;
        padding: 10px;
    }
.scoreboard-context {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
    }
.scoreboard-close {
        grid-column: 2;
        grid-row: 1;
    }
.scoreboard-overview, .scoreboard-footer {
        overflow-x: auto;
    }
.scoreboard-team {
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 220px;
    }
.scoreboard-team-score strong {
        font-size: 3.4rem;
    }
.scoreboard-team-score small {
        max-width: 52px;
    }
.scoreboard-team-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.replay-hero-tags span, .replay-score article, .round-tabs.card, .replay-tabs.card, .map-title, .stats-team-strip article, .scoreboard-team-summary article {
    background: rgba(255, 255, 255, .025);
    border-color: var(--dash-border);
}
.scoreboard-dialog.stats-modal {
    width: min(1480px, calc(100vw - 28px));
    max-height: min(90vh, 860px);
}
.scoreboard-shell {
    max-height: min(90vh, 860px);
    overflow: hidden;
}
.scoreboard-brand {
    gap: 0;
}
.scoreboard-brand .material-icons {
    display: none;
}
.scoreboard-brand h2 {
    font-size: 1.1rem;
}
.scoreboard-team {
    grid-template-columns: 96px minmax(0, 1fr) 224px;
    min-height: 274px;
}
.scoreboard-team-table {
    overflow-x: hidden;
}
.scoreboard-table-head, .scoreboard-player-row {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(170px, 1.05fr) minmax(60px, .42fr) minmax(82px, .55fr) minmax(96px, .7fr) minmax(58px, .42fr) minmax(72px, .5fr) minmax(54px, .38fr) minmax(56px, .38fr) minmax(56px, .38fr) minmax(62px, .45fr);
    gap: 8px;
    padding: 0 14px;
}
.scoreboard-table-head {
    height: 42px;
    font-size: .75rem;
}
.scoreboard-player-row {
    min-height: 45px;
    font-size: .93rem;
}
.scoreboard-player {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
}
.scoreboard-seed {
    width: 28px;
    height: 28px;
    font-size: .82rem;
}
.scoreboard-player b {
    font-size: .97rem;
}
.scoreboard-player small {
    font-size: .73rem;
}
.scoreboard-rank-icon {
    width: 34px;
    height: 34px;
}
.scoreboard-rank small {
    font-size: .69rem;
}
.scoreboard-team-score strong {
    font-size: 5.65rem;
}
.scoreboard-team-summary {
    padding: 13px;
    gap: 8px;
}
.scoreboard-team-summary article {
    min-height: 59px;
}
.scoreboard-team-summary strong {
    font-size: 1.1rem;
}
@media (max-width: 1200px) {
.scoreboard-dialog.stats-modal {
        width: min(1100px, calc(100vw - 24px));
    }
.scoreboard-team {
        grid-template-columns: 92px minmax(0, 1fr);
    }
.scoreboard-team-summary {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 820px) {
.scoreboard-shell {
        overflow: auto;
    }
}
.replay-download-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}
.replay-download-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}
.replay-download-btn:active {
    transform: translateY(1px);
}
.replay-download-btn i, .replay-download-btn .material-icons {
    font-size: 18px;
    line-height: 1;
}
.replay-download-btn span {
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: currentColor;
}
.replay-download-btn.csv {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
}
.replay-download-btn.xlsx {
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.28);
    background: rgba(22, 163, 74, 0.08);
}
.replay-download-btn.xml {
    color: var(--dash-text-secondary, #a1a1aa);
}
.replay-download-btn.xml:hover {
    color: var(--dash-text, #fafafa);
}
.replay-section-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-secondary, #a1a1aa);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.replay-section-tab .material-icons {
    font-size: 18px;
}
.replay-section-tab b {
    font-size: 0.88rem;
    font-weight: 650;
}
.replay-section-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dash-text, #fafafa);
}
.replay-section-tab.active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
    color: var(--dash-text, #fafafa);
}
.replay-section-tab.active .material-icons {
    color: var(--dash-accent, #f5a623);
}
.replay-subtab {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-secondary, #a1a1aa);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 650;
    white-space: nowrap;
}
.replay-subtab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dash-text, #fafafa);
}
.replay-subtab.active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
    color: var(--dash-text, #fafafa);
}
.replay-sheet-tab {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--dash-border, rgba(255, 255, 255, 0.06));
    background: rgba(255, 255, 255, 0.02);
    color: var(--dash-text-secondary, #a1a1aa);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.replay-sheet-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dash-text, #fafafa);
}
.replay-sheet-tab.active {
    background: rgba(245, 166, 35, 0.12);
    border-color: rgba(245, 166, 35, 0.28);
    color: var(--dash-text, #fafafa);
}
.stats-modal {
  letter-spacing: normal;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.stats-modal .card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.stats-modal .btn-secondary {
  width: auto;
  height: auto;
  min-height: auto;
  padding: 10px 20px;
  border: 1px solid var(--dash-border-strong, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  background: transparent;
  color: var(--dash-text-secondary, #a1a1aa);
  font-size: 0.875rem;
  font-weight: 500;
}
.stats-modal .btn-secondary:hover {
  background: var(--dash-surface-hover, rgba(255, 255, 255, 0.04));
  color: var(--dash-text, #fafafa);
  border-color: rgba(255, 255, 255, 0.15);
}
}
