.live-scoreboard {
    --ls-ink: #182c3c;
    --ls-muted: #657a89;
    --ls-accent: #137b70;
    color: var(--ls-ink);
    background: #f6f9fb;
    border: 1px solid #dce6eb;
    border-radius: 18px;
    padding: 24px !important;
    margin-bottom: 24px;
    overflow: visible;
    font-family: inherit;
    isolation: isolate;
    overflow-anchor: none;
}

.live-scoreboard *, .ls-ghost, .ls-ghost * {
    box-sizing: border-box;
}

.live-scoreboard [hidden] {
    display: none !important;
}

.live-scoreboard h2, .live-scoreboard h3, .live-scoreboard p {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.live-scoreboard .ls-title {
    color: var(--ls-ink);
    font-size: 23px;
    line-height: 1.3;
    margin-top: 8px;
    font-weight: 700;
}

.ls-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ls-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ls-accent);
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 700;
}

.ls-dot {
    width: 7px;
    height: 7px;
    background: #22aa8e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #22aa8e14;
}

.ls-status {
    border: 1px solid #c5e4da;
    background: #e8f5ef;
    color: #23725a;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 10px;
    white-space: nowrap;
}

.ls-stale .ls-status {
    background: #f4eee1;
    color: #826c42;
    border-color: #e5dbc6;
}

.ls-stale .ls-dot {
    background: #b89c68;
    box-shadow: none;
}

.ls-stage {
    background: #152e40;
    color: #fff;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.live-scoreboard h3 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.ls-stage h3 {
    color: #acc7d5;
    font-size: 11px;
    letter-spacing: .4px;
    margin-bottom: 9px;
}

.ls-last-section {
    border-top: 1px solid #ffffff1c;
    padding-top: 14px;
    margin-top: 14px;
}

.ls-card {
    display: grid;
    grid-template-columns: 30px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e1e9ee;
    border-radius: 10px;
    color: #182c3c;
    position: relative;
}

.ls-stage .ls-card {
    background: transparent;
    color: #fff;
    border: 0;
    padding: 0;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 58px;
}

.ls-stage .ls-rank {
    display: none;
}

.ls-stage .ls-name, .ls-stage .ls-name:visited {
    color: #fff;
}

.ls-stage .ls-meta, .ls-stage .ls-breakdown {
    color: #abc5d5;
}

.ls-stage .ls-avatars {
    background: #ffffff12;
    color: #d8e9ef;
}

.ls-rank {
    font-size: 20px;
    font-weight: 600;
    color: #82929e;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.ls-leader {
    border-color: #92c9bb;
    background: #f1faf6;
}

.ls-leader .ls-rank {
    color: #14816a;
}

.ls-avatars {
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf3f7;
    color: #87a2b1;
    font-size: 19px;
}

.ls-avatars img {
    object-fit: cover;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #f6f9fb;
}

.ls-avatars img + img {
    margin-left: -15px;
}

.ls-person {
    min-width: 0;
}

.ls-name, .ls-name:visited {
    white-space: pre-line;
    display: block;
    color: #182c3c;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ls-name[href]:hover {
    text-decoration: underline;
}

.ls-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 16px;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
    color: #657a89;
}

.ls-flag.flag {
    display: inline-block;
    flex-shrink: 0;
    transform: scale(.4);
    transform-origin: center;
    margin: -14px;
}

.ls-flag:not(.flag) {
    display: none;
}

.ls-note {
    opacity: .9;
}

.ls-result {
    text-align: right;
    min-width: 82px;
    font-variant-numeric: tabular-nums;
}

.ls-score {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.6px;
    line-height: 1.25;
}

.ls-breakdown {
    display: block;
    color: #657a89;
    font-size: 10px;
    line-height: 1.4;
    min-height: 14px;
    margin-top: 3px;
    white-space: nowrap;
}

.ls-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ls-count {
    font-size: 11px;
    color: #657a89;
}

.ls-standings, .ls-queue {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-standings > .ls-card, .ls-queue > .ls-card {
    flex-shrink: 0;
}

.live-scoreboard .ls-empty {
    text-align: center;
    padding: 30px 12px;
    color: #657a89;
    font-size: 13px;
}

.live-scoreboard .ls-current-empty, .live-scoreboard .ls-last-empty {
    color: #acc7d5;
    font-size: 13px;
    min-height: 58px;
    display: flex;
    align-items: center;
}

.ls-next {
    border-top: 1px solid #dce6eb;
    margin-top: 20px;
    padding-top: 16px;
}

.ls-next summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
}

.ls-queue {
    margin-top: 12px;
}

.ls-queue-count {
    color: #657a89;
}

.ls-queue .ls-result {
    display: none;
}

.ls-queue .ls-card {
    grid-template-columns: 30px 48px minmax(0, 1fr);
    min-height: 68px;
}

.ls-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #dce6eb;
    padding-top: 14px;
    margin-top: 20px;
    font-size: 10px;
    color: #657a89;
}

.ls-footer a {
    color: #137b70;
    text-decoration: none;
}

.ls-moving {
    z-index: 5;
    will-change: transform;
}

.ls-exit {
    pointer-events: none;
    z-index: 10000;
    box-sizing: border-box;
}

.ls-ghost {
    pointer-events: none;
    z-index: 10000;
    background: #152e40;
    color: #fff;
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.ls-ghost .ls-rank {
    display: none;
}

.ls-ghost .ls-name {
    color: #fff;
}

@media (max-width: 600px) {
    .live-scoreboard {
        padding: 14px !important;
        border-radius: 12px;
    }

    .live-scoreboard .ls-title {
        font-size: 19px;
    }

    .ls-header {
        gap: 8px;
    }

    .ls-stage {
        padding: 13px;
    }

    .ls-card {
        grid-template-columns: 22px 36px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 11px 8px;
    }

    .ls-stage .ls-card {
        grid-template-columns: 36px minmax(0, 1fr) auto;
    }

    .ls-avatars {
        width: 36px;
        height: 36px;
    }

    .ls-avatars img {
        width: 34px;
        height: 34px;
    }

    .ls-name {
        font-size: 12px;
    }

    .ls-score {
        font-size: 19px;
    }

    .ls-result {
        min-width: 62px;
    }

    .ls-breakdown {
        font-size: 9px;
    }

    .ls-rank {
        font-size: 17px;
    }

    .ls-queue .ls-card {
        grid-template-columns: 22px 36px minmax(0, 1fr);
    }

    .ls-status {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-scoreboard *, .ls-ghost {
        animation: none !important;
        transition: none !important;
    }
}
