html, body {
    font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Annotated swing frames are portrait phone video; keep them from dominating the page. */
.swing-frame {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 4px;
}

.flaw-thumb {
    display: block;
    width: 104px;
    max-height: 156px;
    object-fit: cover;
    border-radius: 4px;
}

/* Flaw card: frame + name in a row, explanation and drill full width below. The frame seeks the video. */
.flaw-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.flaw-thumb-button {
    position: relative;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
}
.flaw-thumb-button:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.flaw-thumb-button__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
}
.flaw-thumb-button:hover .flaw-thumb-button__play { background: var(--mud-palette-primary); color: #000; }

/* Swing page summary: score and counts as tiles in one row (two per row on phones). */
.swing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.swing-summary__number {
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.05;
    color: var(--msc-amber);
}
.swing-summary__number--plain { color: inherit; display: block; }
.swing-summary__number--none { color: #5b6a82; }

.metric-facts dt {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

.metric-facts dd {
    margin: 0 0 0.5rem 0;
}

/* MudFileUpload's input covers the drop zone so drag-and-drop works; keep it invisible. */
.file-drop-input {
    opacity: 0;
    cursor: pointer;
}
/* Phones can't drag files: say "record or pick" there instead. */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
    .touch-only { display: inline; }
    .pointer-only { display: none; }
}
.file-drop-zone {
    border-style: dashed !important;
    border-width: 2px !important;
    transition: border-color 0.15s, background-color 0.15s;
}
.file-drop-zone--active {
    border-color: var(--mud-palette-primary) !important;
    background-color: rgba(255, 176, 0, 0.08) !important;
}

/* Drill demo videos: 16:9 embeds and our own uploaded clips. */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 4px;
}

.drill-video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
    border-radius: 4px;
}

/* Swing Score */
.score-hero {
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: var(--mud-palette-text-primary);
}

.badge-locked {
    opacity: 0.6;
}

/* Score history chart: single series in the app primary (validated >= 3:1 on the surface). */
.score-chart svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.score-chart .grid {
    stroke: #26324a;
    stroke-width: 1;
}

.score-chart .axis {
    fill: var(--mud-palette-text-secondary);
    font-size: 11px;
}

.score-chart .value {
    fill: var(--mud-palette-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.score-chart .line {
    fill: none;
    stroke: #c98500;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.score-chart .area {
    fill: #c98500;
    opacity: 0.1;
}

.score-chart .dot {
    fill: #c98500;
    stroke: #111a2b;   /* surface ring keeps dots legible where they meet the line */
    stroke-width: 2;
}

.score-chart .dot.partial {
    fill: #111a2b;
    stroke: #c98500;
}

.score-chart .hit {
    fill: transparent;
    cursor: default;
}

.score-chart .point:hover .dot {
    r: 7;
}

/* Coaching plan: the #1 focus is the hero; the rest wait under "Up next". */
.focus-hero {
    border-color: var(--mud-palette-primary) !important;
    border-width: 2px !important;
}

.cue-box {
    background: var(--mud-palette-background-gray);
}

.focus-frame {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
}

.inline-drill-video {
    max-width: 560px;
}

.focus-example {
    max-width: 320px;
}

/* Player page: one column on phones in priority order (upload, #1 focus, swings, up next); on desktop the focus
   column sits left and upload + swings right. The column wrappers dissolve on phones so `order` can interleave them. */
.player-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.player-layout__col { display: contents; }
.player-layout__upload { order: 1; }
.player-layout__focus { order: 2; }
.player-layout__swings { order: 3; }
.player-layout__upnext { order: 4; }
.player-layout__upnext:empty { display: none; }
@media (min-width: 960px) {
    .player-layout { flex-direction: row; align-items: flex-start; }
    .player-layout__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
    .player-layout__main { flex: 7 1 0; }
    .player-layout__side { flex: 5 1 0; }
    .player-layout--single .player-layout__side { flex: 1 1 auto; }
}

.upload-button { width: 100%; max-width: 360px; }

/* Past swings: one compact, tappable row each (score, date, what changed) */
.swing-list { list-style: none; margin: 0; padding: 0; }
.swing-list li + li { border-top: 1px solid var(--mud-palette-lines-default); }
.swing-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}
.swing-row:hover, .swing-row:focus-visible { background: var(--mud-palette-action-default-hover); }
.swing-row__score {
    flex: 0 0 3ch;
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    text-align: center;
    color: var(--msc-amber);
}
.swing-row__score--none { color: #5b6a82; }
.swing-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swing-row__date { font-weight: 600; }
.swing-row__detail { font-size: 0.85rem; color: var(--mud-palette-text-secondary); }
.swing-row__up { color: var(--msc-up); font-weight: 600; }
.swing-row__chevron { color: var(--mud-palette-text-secondary); }

/* Celebration confetti: 24 pieces falling once. Skipped entirely for reduced-motion users. */
.celebration .confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.celebration .confetti span {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 12px;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-fall 1.8s ease-in forwards;
}

.celebration .confetti span:nth-child(4n + 1) { background: #c98500; }
.celebration .confetti span:nth-child(4n + 2) { background: #2e7d6b; }
.celebration .confetti span:nth-child(4n + 3) { background: #eda100; }
.celebration .confetti span:nth-child(4n + 4) { background: #eb6834; }

/* Spread the pieces across the width and stagger them. */
.celebration .confetti span:nth-child(1)  { left: 4%;  animation-delay: 0s; }
.celebration .confetti span:nth-child(2)  { left: 8%;  animation-delay: .15s; }
.celebration .confetti span:nth-child(3)  { left: 12%; animation-delay: .3s; }
.celebration .confetti span:nth-child(4)  { left: 16%; animation-delay: .05s; }
.celebration .confetti span:nth-child(5)  { left: 20%; animation-delay: .25s; }
.celebration .confetti span:nth-child(6)  { left: 24%; animation-delay: .4s; }
.celebration .confetti span:nth-child(7)  { left: 28%; animation-delay: .1s; }
.celebration .confetti span:nth-child(8)  { left: 32%; animation-delay: .35s; }
.celebration .confetti span:nth-child(9)  { left: 36%; animation-delay: .2s; }
.celebration .confetti span:nth-child(10) { left: 40%; animation-delay: .45s; }
.celebration .confetti span:nth-child(11) { left: 44%; animation-delay: 0s; }
.celebration .confetti span:nth-child(12) { left: 48%; animation-delay: .3s; }
.celebration .confetti span:nth-child(13) { left: 52%; animation-delay: .15s; }
.celebration .confetti span:nth-child(14) { left: 56%; animation-delay: .4s; }
.celebration .confetti span:nth-child(15) { left: 60%; animation-delay: .05s; }
.celebration .confetti span:nth-child(16) { left: 64%; animation-delay: .25s; }
.celebration .confetti span:nth-child(17) { left: 68%; animation-delay: .35s; }
.celebration .confetti span:nth-child(18) { left: 72%; animation-delay: .1s; }
.celebration .confetti span:nth-child(19) { left: 76%; animation-delay: .45s; }
.celebration .confetti span:nth-child(20) { left: 80%; animation-delay: .2s; }
.celebration .confetti span:nth-child(21) { left: 84%; animation-delay: 0s; }
.celebration .confetti span:nth-child(22) { left: 88%; animation-delay: .3s; }
.celebration .confetti span:nth-child(23) { left: 92%; animation-delay: .15s; }
.celebration .confetti span:nth-child(24) { left: 96%; animation-delay: .4s; }

@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .celebration .confetti { display: none; }
}

.celebration .mud-dialog-content {
    position: relative;
}

.next-badge {
    border-style: dashed !important;
    border-color: var(--mud-palette-primary) !important;
}

/* Uploaded swing video on the swing page */
.swing-video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .swing-video { max-height: 60vh; }
}
.swing-file-name {
    max-width: 16em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.video-chip {
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border-radius: 16px;
    padding: 4px 12px;
    font: inherit;
    cursor: pointer;
    min-height: 32px;
}

.video-chip:hover,
.video-chip:focus-visible {
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.video-download {
    font-size: 0.8125rem;
}

/* ===== MyBaseballSwingCoach "Scoreboard" theme ===== */
:root {
    --msc-ground: #0b111c;
    --msc-panel: #111a2b;
    --msc-panel-deep: #0d1524;
    --msc-line: #26324a;
    --msc-amber: #ffb000;
    --msc-red: #c8102e;
    --msc-up: #6ee7a0;
    --msc-muted: #9aa6b8;
    --msc-display: "Big Shoulders Display", Inter, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Logo wordmark */
.brand-link { display: inline-flex; text-decoration: none; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-wordmark {
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}
.brand-my { color: var(--msc-amber); }
/* The full name is long: each half stays whole, so the wordmark wraps between "MYBASEBALL" and "SWINGCOACH". */
.brand-line { display: inline-block; white-space: nowrap; }
/* Phones: two small lines in the app bar, so the menu, view switch and sign-out still fit. */
@media (max-width: 600px) {
    .mud-appbar .brand-wordmark {
        display: inline-flex;
        flex-direction: column;
        font-size: 0.95rem;
        line-height: 1.05;
    }
}

/* A solid red rule under the app bar, like a scoreboard trim */
.mud-appbar { border-bottom: 3px solid var(--msc-red); }

/* Section headings: a short amber rule */
.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: var(--msc-amber);
}

/* Home page welcome banner: dark panel + the diamond under the lights */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    border-radius: 10px;
    overflow: hidden;
    background: var(--msc-panel);
    border: 1px solid var(--msc-line);
    color: #fff;
    min-height: 260px;
}
.hero__text { padding: 28px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero__title {
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 0.95;
    margin: 6px 0 0;
    text-transform: uppercase;
}
.hero__tagline { margin: 0 0 8px; max-width: 32em; color: #c3cbd8; font-size: 1.05rem; }
.hero__art { position: relative; min-height: 220px; }
.diamond-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; }
    .hero__text { padding: 22px 20px; }
    .hero__art { min-height: 150px; }
}

/* Player page scoreboard: panels separated by thin lines, big amber numerals */
.scoreboard {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: #1c2638;
    border-radius: 10px;
    overflow: hidden;
}
.scoreboard__panel { background: var(--msc-panel); padding: 22px 28px; }
.scoreboard__batter { flex: 2 1 360px; min-width: 0; }
.scoreboard__score { flex: 1 1 180px; text-align: center; }
.scoreboard__stats { flex: 1 1 220px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.scoreboard__label {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--msc-muted);
}
.scoreboard__name { margin-top: 4px !important; line-height: 0.95 !important; overflow-wrap: anywhere; color: #fff; }
.scoreboard__meta { margin: 10px 0 0; color: #c3cbd8; }
.scoreboard__number {
    margin: 2px 0 0;
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--msc-amber);
}
.scoreboard__number--empty { color: #5b6a82; }
.scoreboard__level { margin: 0; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.scoreboard__hint { margin: 4px 0 0; font-size: 0.85rem; color: var(--msc-muted); }
.scoreboard__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.scoreboard__row span { color: var(--msc-muted); }
.scoreboard__up { color: var(--msc-up); }
/* Phones: name and score share the first row so upload and the focus come up sooner. */
@media (max-width: 600px) {
    .scoreboard__panel { padding: 16px 18px; }
    .scoreboard__batter { flex: 1 1 55%; }
    .scoreboard__score { flex: 1 1 35%; }
    .scoreboard__stats { flex: 1 1 100%; }
    .scoreboard__name { font-size: 2rem !important; }
    .scoreboard__number { font-size: 3.75rem; }
}

/* Report card tiles */
.scoreboard-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    background: #1c2638;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.scoreboard-tile { background: var(--msc-panel-deep); padding: 14px 10px; }
.scoreboard-tile p { margin: 0; }
.scoreboard-tile__label { font-size: 0.75rem; color: var(--msc-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.scoreboard-tile__number {
    margin-top: 6px !important;
    font-family: var(--msc-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--msc-amber);
}
.scoreboard-tile__number--empty { color: #5b6a82; }
.scoreboard-tile__detail { margin-top: 4px !important; font-size: 0.75rem; color: var(--msc-muted); }
.scoreboard-tile__deduction { font-size: 0.75rem; color: #ff6b6b; }
@media (max-width: 600px) {
    .scoreboard-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Accounts, teams and leaderboard */
.team-code,
.family-code {
    font-family: var(--msc-display);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--msc-amber);
}

.team-code {
    font-size: 2.25rem;
    line-height: 1.1;
}

.family-code {
    font-size: 1.4rem;
}

.team-code--compact { font-size: 1.6rem; }

/* Home: team and player cards (whole card is the link) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.home-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    background: var(--mud-palette-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s;
}
.home-card:hover, .home-card:focus-visible { border-color: var(--mud-palette-primary); }
.home-card--player { flex-direction: row; align-items: center; gap: 16px; }
.home-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-card__title { font-family: var(--msc-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: #fff; }
.home-card__detail { font-size: 0.875rem; color: var(--mud-palette-text-secondary); }
.home-card__cta { color: var(--mud-palette-primary); font-weight: 600; }
.home-card__score {
    flex: 0 0 auto;
    min-width: 2.2ch;
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    text-align: center;
    color: var(--msc-amber);
}
.home-card__score--none { color: #5b6a82; }

/* Team page: join requests waiting on the coach, then the roster as tappable rows (reuses the swing-row look). */
.team-requests {
    border-color: var(--mud-palette-warning) !important;
    border-left-width: 4px !important;
}
.roster-row { display: flex; align-items: center; gap: 4px; }
.roster-row__link { flex: 1 1 auto; min-width: 0; }
.roster-row__meta { font-weight: 400; color: var(--mud-palette-text-secondary); }

.user-name {
    color: var(--msc-muted);
    white-space: nowrap;
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--msc-line);
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-rank {
    width: 28px;
    flex: none;
    text-align: center;
    font-family: var(--msc-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--msc-amber);
}

.leaderboard-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.leaderboard-team {
    color: var(--msc-muted);
    font-size: 0.8rem;
}

.leaderboard-value {
    flex: none;
    font-family: var(--msc-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.leaderboard-value small {
    color: var(--msc-muted);
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
}
