h1:focus {
    outline: none;
}

/* The bingo card. The number of columns is set inline, from the card. */
.card-grid {
    display: grid;
    gap: 8px;
}

.card-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    position: relative;
}

.card-tile--tappable {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.card-tile--found {
    background-color: var(--mud-palette-success-hover);
    outline: 2px solid var(--mud-palette-success);
}

.card-tile-check {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--mud-palette-surface);
    border-radius: 4px;
}

.card-tile-image {
    aspect-ratio: 1;
    width: 100%;
}

/* Stands in for the picture of an item that has none, so the tile keeps its size. */
.card-tile-text {
    aspect-ratio: 1;
    width: 100%;
    margin: auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tile-name {
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* A cell of the card editor that has no item yet. */
.card-tile--empty {
    outline: 2px dashed var(--mud-palette-lines-default);
    box-shadow: none;
}

/* The button on a filled cell of the card editor that empties it again. */
.card-tile-clear {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--mud-palette-surface);
    border-radius: 50%;
}

/* The items to choose from when filling a cell. */
.item-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 2px;
}

#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: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
