html, body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #000;
    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;
}

html[data-theme='dark'] a:not(.mud-button-root):not(.ms-brand-link),
html[data-theme='dark'] .mud-link:not(.mud-link-disabled):not(.ms-brand-link) {
    color: #c4b5fd !important;
}

html[data-theme='dark'] a:not(.mud-button-root):not(.ms-brand-link):hover,
html[data-theme='dark'] .mud-link:not(.mud-link-disabled):not(.ms-brand-link):hover {
    color: #ddd6fe !important;
}

html[data-theme='light'] a:not(.mud-button-root):not(.ms-brand-link),
html[data-theme='light'] .mud-link:not(.mud-link-disabled):not(.ms-brand-link) {
    color: #5947c7 !important;
}

html[data-theme='light'] a:not(.mud-button-root):not(.ms-brand-link):hover,
html[data-theme='light'] .mud-link:not(.mud-link-disabled):not(.ms-brand-link):hover {
    color: #4030a8 !important;
}

.mud-theme-dark .ms-brand-link {
    color: inherit;
}

/* Footer sits at the viewport bottom on short pages and follows the content on long ones. */
.mud-main-content.ms-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
}

.ms-main > .ms-footer {
    margin-top: auto;
}

/* Header row must be clearly distinct from data rows. */
.mud-table .mud-table-head .mud-table-cell,
.mud-table .mud-table-head .mud-table-cell .mud-button-root,
.mud-table .mud-table-head .mud-table-cell .mud-sort-icon {
    font-weight: 700;
}

.mud-table .mud-table-head .mud-table-cell {
    background-color: var(--mud-palette-action-default-hover);
    border-bottom: 2px solid var(--mud-palette-lines-inputs);
}

.mud-table .sport-accent-row > td:first-child {
    box-shadow: inset 4px 0 0 var(--sport-accent, transparent);
}

.home-round-list {
    max-height: 32rem;
    overflow-y: auto;
}

.home-round {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
}

.home-history-item {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
}

.home-round-heading {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.home-round-heading img {
    height: 2rem;
    object-fit: contain;
    width: 2rem;
}
