.player-portal-header [hidden],
.player-portal-mobile [hidden] {
    display: none !important;
}

.player-portal-mobile > .card:not([data-portal-section]) {
    display: none;
}

.player-portal-mobile .portal-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr));
    grid-auto-rows: 1fr;
    gap: .5rem;
    padding: .25rem 0 .5rem;
}

.player-portal-mobile .portal-tile {
    display: grid;
    grid-template-rows: 1.5rem 2.5em 1.5rem;
    justify-items: center;
    align-items: center;
    align-content: start;
    gap: .2rem;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem .375rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: var(--bs-box-shadow-sm);
    text-align: center;
    font: inherit;
    font-size: .875rem;
    line-height: 1.25;
    cursor: pointer;
}

.player-portal-mobile .portal-tile > i {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    width: 100%;
    height: 100%;
    color: var(--bs-link-color);
    font-size: 1.25rem;
    line-height: 1;
}

.player-portal-mobile .portal-tile > .portal-tile-label {
    grid-row: 2;
    align-self: start;
    width: min-content;
    font-weight: 600;
    overflow-wrap: normal;
}

.player-portal-mobile .portal-tile > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.player-portal-mobile .portal-tile-status,
.player-portal-mobile .portal-tile-countdown {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.player-portal-mobile .portal-tile-status {
    grid-row: 3;
}

.player-portal-mobile .portal-tile-countdown {
    grid-row: 4;
    color: var(--bs-secondary-color) !important;
}

.player-portal-mobile .portal-tile-badge {
    grid-row: 3;
    min-width: 1.6rem;
    padding: .2rem .5rem;
    border-radius: var(--bs-border-radius-pill);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-size: .75rem;
    font-weight: 600;
}

.player-portal-mobile .portal-badge-unpaid {
    background: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
}

.player-portal-mobile .portal-badge-checkin {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning-text-emphasis);
}

.player-portal-mobile .portal-tile:hover {
    border-color: var(--bs-link-color);
    background: var(--bs-tertiary-bg);
    box-shadow: var(--bs-box-shadow);
}

.player-portal-mobile .portal-tile:focus-visible,
#playerPortalMobile [data-portal-section-back]:focus-visible {
    outline: 3px solid var(--bs-link-color);
    outline-offset: 3px;
}

.player-portal-header .portal-heading-text {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-portal-mobile [data-portal-section] {
    min-width: 0;
    overflow-wrap: anywhere;
}

.player-portal-mobile [data-portal-section] > .collapse {
    display: block;
}

.player-portal-mobile [data-portal-section] .header-section {
    cursor: default !important;
}

#playerPortalMobile [data-portal-section-back] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    min-height: 44px;
    border: 0;
    background: var(--bs-primary);
    color: var(--bs-light);
    font: inherit;
    font-weight: bold;
    text-align: left;
    cursor: pointer !important;
}

#playerPortalMobile [data-portal-section-back] > .fa-th-large {
    flex-shrink: 0;
    margin-left: auto;
}

#playerPortalMobile [data-portal-section-back]:hover {
    filter: brightness(.95);
}

.player-portal-mobile .portal-registration-logo,
.player-portal-mobile .portal-club-logo {
    position: relative;
    width: 4rem;
}

.player-portal-mobile .portal-registration-logo > a,
.player-portal-mobile .portal-club-logo > a {
    position: absolute;
    inset: 0;
}

.player-portal-mobile .portal-registration-logo img,
.player-portal-mobile .portal-club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

.player-portal-mobile .portal-club-logo {
    width: 3rem;
}

.player-portal-mobile .portal-club-logo img {
    object-position: left center;
}

@media (max-width: 767.98px) {
    .player-portal-header {
        padding: 0;
    }

    .player-portal-header > .row {
        margin: 0;
    }

    .player-portal-header > .row > .col-12 {
        padding: 0;
        min-width: 0;
    }

    .player-portal-header .portal-heading {
        margin-bottom: .375rem;
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .player-portal-header + hr {
        margin-top: .75rem;
        margin-bottom: .75rem;
    }
}

@media (max-width: 767.98px) and (max-height: 740px) {
    .player-portal-mobile .portal-tile-grid {
        gap: .375rem;
    }

    .player-portal-mobile .portal-tile {
        gap: .125rem;
        padding: .25rem .375rem;
    }

    .player-portal-mobile .portal-tile > i {
        font-size: 1rem;
    }
}
