/* BoardGameNite Platform UI - Copyright 2026 BoardGamesNMore Inc. */
/* Copyright (c) 2026 BoardGamesNMore Inc. All rights reserved. */
/* Revision History
v5.3.75 - 2026-04-16
- Replaced the top-left navbar branding with the BoardGameNite logo asset and aligned schedule-matrix lane height to the actual slot count so the time column and session blocks stay synchronized.
v5.3.63 - 2026-04-15
- Added compact responsive header styling with icon-first primary navigation, a collapsible mobile navbar, and a smaller account menu to reduce visual clutter.
v4.3.0 - 2026-04-08
- Added layout styling for the BoardGamesNMore logo in the header and home hero area.
v3.0.0 - 2026-04-08
- Preserved simple base styling for the v3 web UI.
*/
body {
    background: #f8f9fa;
}
.card {
    border-radius: 1rem;
}
.app-navbar {
    box-shadow: 0 0.2rem 0.75rem rgba(15, 23, 42, 0.12);
}
.app-navbar-container {
    gap: 0.75rem;
}
.site-logo-nav {
    height: 52px;
    width: auto;
    max-width: min(240px, 42vw);
    display: block;
}
.brand-title {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.app-primary-nav {
    gap: 0.15rem;
}
.app-primary-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
}
.app-primary-nav .nav-link:hover,
.app-primary-nav .nav-link:focus,
.app-primary-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.app-account-toggle,
.app-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
}
.app-account-menu {
    min-width: 17rem;
    border-radius: 1rem;
    padding: 0.45rem;
}
.app-account-menu .dropdown-item {
    border-radius: 0.7rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.hero-panel {
    overflow: hidden;
}
.hero-logo {
    max-height: 140px;
    width: auto;
}
@media (max-width: 1199.98px) {
    .site-logo-nav {
        height: 30px;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .app-navbar .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        margin-top: 0.85rem;
        padding: 0.9rem;
        box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.22);
    }
    .app-primary-nav .nav-link {
        width: 100%;
        padding: 0.7rem 0.8rem;
    }
    .app-nav-actions {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        width: 100%;
    }
    .app-account-toggle,
    .app-login-button {
        width: 100%;
    }
}
@media (max-width: 575.98px) {
    .site-logo-nav {
        height: 26px;
    }
    .brand-title {
        font-size: 1rem;
    }
    .hero-logo {
        max-height: 100px;
    }
}

.testing-login-panel {
    border-radius: 1rem;
}


:root {
    --slot-height: 38px;
    --session-accent: #4c6ef5;
    --session-border: #8ea2ff;
    --session-fill: #eef2ff;
    --table-accent: #f59f00;
    --table-border: #f7cf78;
    --table-fill: #fff7db;
}
.schedule-day-matrix {
    background: #fff;
    overflow: hidden;
}
.schedule-day-header {
    background: #f1f3f5;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}
.matrix-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.matrix-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
}
.matrix-legend-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.3rem;
    display: inline-block;
}
.matrix-legend-session {
    background: var(--session-fill);
    border: 2px solid var(--session-accent);
}
.matrix-legend-table {
    background: var(--table-fill);
    border: 2px solid var(--table-accent);
}
.schedule-day-grid {
    display: grid;
    grid-template-columns: 90px 1fr;
}
.schedule-time-column {
    border-right: 1px solid #dee2e6;
    background: #fafafa;
}
.schedule-time-slot {
    height: var(--slot-height);
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    border-bottom: 1px solid #edf0f2;
}
.schedule-time-slot-filler {
    color: transparent;
}
.schedule-lane {
    position: relative;
    min-height: calc(var(--slot-height) * var(--slot-count, 1));
    background-image: linear-gradient(to bottom, #edf0f2 1px, transparent 1px);
    background-size: 100% var(--slot-height);
    background-color: #fff;
}
.schedule-empty-slot {
    display: block;
    height: var(--slot-height);
    border-bottom: 1px solid transparent;
    text-decoration: none;
}
.schedule-empty-slot:hover,
.schedule-empty-slot.selected {
    background: rgba(13, 110, 253, 0.08);
    outline: 1px dashed rgba(13, 110, 253, 0.35);
    outline-offset: -3px;
}
.schedule-block-card {
    position: absolute;
    left: 8px;
    right: 8px;
    display: block;
    border-radius: 0.8rem;
    padding: 0.55rem 0.7rem;
    color: #212529;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 2;
    border: 1px solid var(--session-border);
    border-left: 5px solid var(--session-accent);
    background: var(--session-fill);
}
.schedule-block-card:hover {
    color: #212529;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.block-type-playable { background: #e9f0ff; }
.block-type-lunch,
.block-type-snack,
.block-type-break { background: #fff6db; }
.block-type-free_time,
.block-type-other { background: #f1f3f5; }
.block-status-cancelled { opacity: 0.7; }
.block-status-closed { filter: saturate(0.7); }

[id^='block-'] { scroll-margin-top: 90px; }


.collapsible-panel {
    background: #fff;
    overflow: hidden;
}
.collapsible-toggle {
    width: 100%;
    border: 0;
    background: #f8f9fa;
    padding: 0.9rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: inherit;
}
.collapsible-toggle:hover {
    background: #eef1f4;
}
.toggle-indicator {
    font-size: 1.25rem;
    line-height: 1;
    min-width: 1rem;
    text-align: center;
}
.collapsible-body[hidden] {
    display: none !important;
}


.schedule-block-card { overflow: auto; }
.schedule-day-matrix-admin .schedule-block-card {
    overflow: hidden;
}
.schedule-day-matrix-admin .schedule-time-slot,
.schedule-day-matrix-admin .schedule-empty-slot {
    min-height: var(--slot-height);
}
.schedule-day-matrix-admin .schedule-lane {
    overflow: visible;
}
.schedule-table-list { display: flex; flex-direction: column; gap: 0.35rem; }
@media (min-width: 768px) {
    .schedule-table-list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .schedule-table-list > .matrix-table-row-card {
        flex: 1 1 220px;
        margin-top: 0;
        height: 100%;
    }
}
.schedule-table-mini { background: rgba(255,255,255,0.72); border: 1px solid rgba(0,0,0,0.08); border-radius: 0.65rem; padding: 0.35rem 0.45rem; }
.schedule-table-mini-title { font-size: 0.82rem; font-weight: 600; line-height: 1.15; }


.inert-slot {
    pointer-events: none;
}
.public-matrix-table-card {
    background: rgba(255,255,255,0.7);
    border-radius: 0.5rem;
    padding: 0.35rem 0.45rem;
    margin-top: 0.3rem;
}


.matrix-block-header-line {
    line-height: 1.15;
    margin-bottom: 0.2rem;
}
.matrix-table-row-card {
    background: var(--table-fill);
    border: 1px solid var(--table-border);
    border-left: 4px solid var(--table-accent);
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.matrix-table-row-main {
    min-width: 0;
}
.matrix-table-row-action {
    flex: 0 0 auto;
}
.matrix-table-row-action form {
    margin: 0;
}
.public-matrix-table-card {
    display: none;
}

.event-action-row td {
    padding-top: 0;
    border-top: 0;
}


.schedule-block-card .matrix-table-row-card,
.matrix-table-row-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.schedule-block-card .matrix-table-row-main,
.matrix-table-row-main {
    min-width: 0;
    flex: 1 1 auto;
}
.schedule-block-card .matrix-table-row-action,
.matrix-table-row-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


@media (max-width: 767.98px) {
    .matrix-legend {
        width: 100%;
    }

    .matrix-legend-item {
        font-size: 0.74rem;
    }
}

/* v5.3.66 schedule matrix session/table color cues */
/* v4.15.0 schedule matrix usability pass */
.matrix-enhanced {
    overflow-x: auto;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}


.game-archive-list {
    display: flex;
    flex-direction: column;
}

.game-archive-row {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.game-archive-thumb-link {
    text-decoration: none;
}

.game-archive-thumb,
.game-detail-image {
    object-fit: cover;
}

.game-archive-thumb {
    width: 68px;
    height: 68px;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.game-archive-thumb-placeholder,
.game-detail-image-placeholder {
    background: #f8f9fa;
}

.game-archive-title {
    font-weight: 600;
    font-size: 1rem;
}

.game-archive-main {
    min-width: 0;
}

.game-archive-meta span {
    white-space: nowrap;
}

.game-detail-image {
    width: 100%;
}

.game-detail-image-placeholder {
    min-height: 320px;
}

@media (max-width: 767.98px) {
    .game-archive-row {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .game-archive-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 80px;
    }

    .game-archive-meta {
        row-gap: 0.35rem;
    }
}

.event-live-results-loading {
    opacity: 0.65;
}

.game-archive-thumb {
    object-fit: cover;
}

.leaderboard-game-thumb-link {
    display: inline-flex;
    text-decoration: none;
}

.leaderboard-game-thumb,
.leaderboard-game-thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-light);
    overflow: hidden;
}

.leaderboard-game-thumb {
    object-fit: cover;
}

.leaderboard-game-thumb-placeholder {
    text-align: center;
    line-height: 1.15;
    padding: 0.4rem;
}

@media (max-width: 575.98px) {
    .leaderboard-game-thumb,
    .leaderboard-game-thumb-placeholder {
        width: 54px;
        height: 54px;
    }
}


.btn-touch-action {
    min-height: 44px;
    padding-inline: 0.95rem;
}
.mobile-action-dock {
    position: sticky;
    bottom: 0.75rem;
    z-index: 1030;
}
.mobile-action-dock-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
}
.mobile-action-dock-summary {
    font-size: 0.92rem;
    font-weight: 600;
    color: #495057;
}
.mobile-action-dock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mobile-action-dock-secondary {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 auto;
}
.mobile-action-dock [data-mobile-dock-link].active,
.mobile-action-dock [data-mobile-dock-link][aria-current="location"] {
    box-shadow: 0 0.35rem 0.85rem rgba(13, 110, 253, 0.18);
}
.mobile-feedback-compact .btn {
    min-height: 44px;
    border-radius: 999px;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
    .mobile-action-dock {
        position: fixed;
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
    .mobile-action-dock-inner {
        align-items: flex-start;
    }
    .mobile-action-dock-actions,
    .mobile-action-dock-secondary {
        width: 100%;
    }
    .mobile-action-dock-secondary {
        justify-content: stretch;
    }
    .mobile-action-dock-actions .btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
    }
    .mobile-action-dock-secondary .btn {
        width: 100%;
    }
}


.mobile-page-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}
.mobile-page-nav .btn {
    white-space: nowrap;
    min-height: 44px;
    border-radius: 999px;
}
.mobile-info-card,
.mobile-stat-card,
.mobile-data-card,
.mobile-review-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-info-card {
    padding: 1rem;
}
.mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.mobile-stat-card {
    padding: 0.85rem 0.9rem;
}
.mobile-stat-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.mobile-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}
.mobile-card-list {
    display: grid;
    gap: 0.9rem;
}

.mobile-score-sheet-list {
    gap: 0.55rem;
}
.mobile-score-sheet-list .mobile-data-card {
    padding: 0.75rem 0.8rem;
    border-radius: 0.875rem;
}
.mobile-score-sheet-list .mobile-card-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.mobile-score-sheet-list .mobile-card-title {
    font-size: 0.96rem;
    line-height: 1.2;
    margin-bottom: 0;
}
.mobile-score-sheet-list .badge {
    font-size: 0.68rem;
    padding: 0.32rem 0.45rem;
}
.mobile-score-sheet-list .mobile-field-grid {
    gap: 0.5rem;
}
.mobile-score-sheet-list .mobile-field-label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}
.mobile-score-sheet-list .mobile-field-value {
    font-size: 0.92rem;
}
.mobile-score-sheet-list .mobile-card-note {
    font-size: 0.8rem;
    margin-top: 0.45rem;
}
.mobile-score-sheet-list .mobile-review-card {
    padding: 0.75rem;
    margin-top: 0.6rem !important;
    border-radius: 0.875rem;
}
.mobile-data-card,
.mobile-review-card {
    padding: 1rem;
}
.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.mobile-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.2rem;
}
.mobile-card-meta {
    font-size: 0.88rem;
    color: #6c757d;
}
.mobile-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.mobile-field {
    min-width: 0;
}
.mobile-field-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.2rem;
}
.mobile-field-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}
.mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
.mobile-card-actions .btn,
.mobile-card-actions form,
.mobile-card-actions form .btn {
    min-height: 44px;
}
.mobile-card-actions form {
    display: inline-flex;
}
.mobile-card-note {
    font-size: 0.88rem;
    color: #6c757d;
    margin-top: 0.75rem;
}
.mobile-surface-section {
    scroll-margin-top: 5rem;
}
.mobile-scroll-offset {
    scroll-margin-top: 6rem;
}
@media (max-width: 991.98px) {
    .mobile-field-grid {
        grid-template-columns: 1fr;
    }
    .mobile-score-sheet-list .mobile-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mobile-stack-form .btn,
    .mobile-stack-form .form-control,
    .mobile-stack-form .form-select {
        min-height: 44px;
    }
    .mobile-stack-form .col-md-2,
    .mobile-stack-form .col-md-3,
    .mobile-stack-form .col-md-4,
    .mobile-stack-form .col-md-6,
    .mobile-stack-form .col-lg-2,
    .mobile-stack-form .col-lg-3,
    .mobile-stack-form .col-lg-7 {
        width: 100%;
    }
    .table-mobile-compact thead {
        display: none;
    }
}


.mobile-status-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}
.mobile-status-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0b5ed7;
    border: 1px solid rgba(13, 110, 253, 0.16);
    font-size: 0.83rem;
    font-weight: 600;
}
.mobile-filter-sheet {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-filter-sheet + .mobile-filter-sheet {
    margin-top: 1rem;
}
.mobile-filter-sheet-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1rem;
    font-weight: 600;
}
.mobile-filter-sheet-summary::-webkit-details-marker {
    display: none;
}
.mobile-filter-sheet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    font-size: 0.78rem;
    font-weight: 600;
}
.mobile-filter-sheet-body {
    padding: 0 1rem 1rem;
}
.mobile-active-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.mobile-active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0b5ed7;
    border: 1px solid rgba(13, 110, 253, 0.16);
    font-size: 0.82rem;
    font-weight: 600;
}
.mobile-active-filter-chip-label {
    color: #495057;
}
.mobile-active-filter-chip-value {
    color: #0b5ed7;
}
.mobile-my-registrations-layout {
    display: block;
}
@media (max-width: 991.98px) {
    .mobile-my-registrations-layout {
        display: flex;
        flex-direction: column;
    }
    .mobile-my-registrations-tasks {
        order: 1;
    }
    .mobile-my-registrations-account {
        order: 2;
    }
}
@media (min-width: 992px) {
    .mobile-filter-sheet {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }
    .mobile-filter-sheet > summary {
        display: none;
    }
    .mobile-filter-sheet:not([open]) > :not(summary) {
        display: block;
    }
    .mobile-filter-sheet-body {
        padding: 0;
    }
}
@media (max-width: 991.98px) {
    .mobile-filter-sheet-body .form-control,
    .mobile-filter-sheet-body .form-select,
    .mobile-filter-sheet-body .btn {
        min-height: 44px;
    }
}


.mobile-utility-sheet,
.inline-confirm-sheet {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-utility-sheet summary,
.inline-confirm-sheet summary {
    cursor: pointer;
    list-style: none;
}
.mobile-utility-sheet summary::-webkit-details-marker,
.inline-confirm-sheet summary::-webkit-details-marker {
    display: none;
}
.mobile-utility-sheet-summary,
.inline-confirm-sheet > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    font-weight: 600;
}
.mobile-utility-sheet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0b5ed7;
    font-size: 0.78rem;
    font-weight: 600;
}
.mobile-utility-sheet-body,
.inline-confirm-sheet-body {
    padding: 0 1rem 1rem;
}
.mobile-qr-sheet {
    display: flex;
    justify-content: center;
}
.mobile-inline-qr {
    max-width: 240px;
    width: 100%;
}
.inline-confirm-sheet > summary.btn,
.mobile-utility-sheet > summary.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.desktop-registration-actions {
    min-width: 0;
}
.desktop-row-action-sheet {
    max-width: 17rem;
}
.desktop-row-action-sheet .mobile-utility-sheet-body {
    min-width: 15rem;
}
.inline-confirm-sheet[data-disabled="true"] {
    opacity: 0.7;
}
.inline-confirm-sheet[data-disabled="true"] .inline-confirm-sheet-body {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-utility-sheet-body .btn,
    .inline-confirm-sheet-body .btn {
        min-height: 44px;
    }
}


/* v5.5.21 public game detail option A refresh */
.game-detail-hero-card,
.game-detail-stats-card,
.game-detail-upcoming-card {
    border-radius: 1.35rem;
}

.game-detail-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-detail-media-panel {
    border-radius: 1.5rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.game-detail-image {
    aspect-ratio: 4 / 5;
    border-radius: 1.25rem;
}

.game-detail-image-placeholder {
    min-height: 420px;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef2f6 100%);
}

.game-detail-scope-badge {
    font-size: 0.86rem;
    padding: 0.65rem 0.9rem;
}

.game-detail-description-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
}

.game-detail-description-body {
    color: var(--bs-body-color);
    line-height: 1.65;
}

.game-detail-spec-card,
.game-detail-stat-pill,
.game-detail-upcoming-mobile-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.1rem;
    background: #fff;
    padding: 1rem 1rem 0.95rem;
}

.game-detail-spec-card {
    background: #fbfcfd;
}

.game-detail-spec-label,
.game-detail-stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.game-detail-spec-value,
.game-detail-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-body-color);
    line-height: 1.35;
}

.game-detail-stat-pill {
    height: 100%;
    background: #fbfcfd;
}

.game-detail-upcoming-mobile-list {
    display: grid;
    gap: 0.9rem;
}

.game-detail-upcoming-mobile-item a {
    text-decoration: none;
}

.game-detail-action-row .btn {
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .game-detail-heading-wrap {
        flex: 1 1 100%;
    }

    .game-detail-image-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .game-detail-hero-card .card-body,
    .game-detail-stats-card .card-body,
    .game-detail-upcoming-card .card-body {
        padding: 1.15rem !important;
    }

    .game-detail-kicker {
        margin-top: 0.2rem;
    }

    .game-detail-scope-badge {
        order: 3;
    }

    .game-detail-action-row .btn {
        flex: 1 1 100%;
    }

    .game-detail-spec-value,
    .game-detail-stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 399.98px) {
    .mobile-score-sheet-list .mobile-field-grid {
        grid-template-columns: 1fr;
    }
}


/* v5.5.46 broad mobile card compaction */
@media (max-width: 767.98px) {
    .card {
        border-radius: 0.95rem;
    }

    .card.shadow-sm,
    .mobile-filter-sheet,
    .mobile-utility-sheet,
    .inline-confirm-sheet,
    .game-detail-description-card,
    .game-detail-spec-card,
    .game-detail-stat-pill,
    .game-detail-upcoming-mobile-item {
        border-radius: 0.95rem;
        box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.06);
    }

    .card-body {
        padding: 0.95rem;
    }

    .card-body.p-4,
    .card-body.p-5,
    .card-body.p-lg-5 {
        padding: 1rem !important;
    }

    .card-body.p-3 {
        padding: 0.85rem !important;
    }

    .mobile-info-card {
        padding: 0.85rem;
    }

    .mobile-stat-grid,
    .mobile-card-list,
    .game-detail-upcoming-mobile-list {
        gap: 0.65rem;
    }

    .mobile-stat-card {
        padding: 0.7rem 0.75rem;
    }

    .mobile-data-card,
    .mobile-review-card {
        padding: 0.85rem;
        border-radius: 0.9rem;
    }

    .mobile-card-header {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .mobile-card-title {
        font-size: 0.96rem;
        line-height: 1.2;
    }

    .mobile-card-meta,
    .mobile-card-note {
        font-size: 0.82rem;
    }

    .mobile-field-grid {
        gap: 0.55rem;
    }

    .mobile-field-label,
    .mobile-stat-label {
        font-size: 0.72rem;
        margin-bottom: 0.12rem;
    }

    .mobile-field-value,
    .mobile-stat-value {
        font-size: 0.94rem;
    }

    .mobile-card-actions {
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .mobile-filter-sheet-summary,
    .mobile-utility-sheet-summary,
    .inline-confirm-sheet > summary {
        padding: 0.8rem 0.85rem;
        gap: 0.55rem;
    }

    .mobile-filter-sheet-body,
    .mobile-utility-sheet-body,
    .inline-confirm-sheet-body {
        padding: 0 0.85rem 0.85rem;
    }

    .mobile-filter-sheet + .mobile-filter-sheet {
        margin-top: 0.75rem;
    }

    .card .display-6 {
        font-size: 1.75rem;
    }

    .card h1,
    .card .h1,
    .card h2,
    .card .h2,
    .card h3,
    .card .h3,
    .card h4,
    .card .h4,
    .card h5,
    .card .h5 {
        line-height: 1.2;
    }
}


/* v5.5.47 page-by-page mobile tuning for the longest remaining public screens */
@media (max-width: 767.98px) {
    .public-events-page > .card > .card-body,
    .public-events-page #event-filter-form > .card-body {
        padding: 0.85rem !important;
    }

    .public-events-page .mobile-filter-sheet-summary,
    .public-events-page .mobile-utility-sheet-summary,
    .public-events-page .inline-confirm-sheet > summary {
        padding: 0.72rem 0.8rem;
    }

    .public-events-page .public-event-results-mobile-list {
        gap: 0.55rem;
    }

    .public-events-page .public-event-result-card {
        padding: 0.78rem;
    }

    .public-events-page .public-event-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .public-events-page .public-event-result-card .mobile-card-title {
        font-size: 0.94rem;
    }

    .public-events-page .public-event-result-card .badge {
        font-size: 0.68rem;
    }

    .public-events-page .public-event-result-card .mobile-card-actions {
        margin-top: 0.55rem;
    }

    .public-events-page .public-event-result-card .mobile-card-actions .btn {
        width: 100%;
    }

    .public-events-page #event-live-results .alert {
        margin-bottom: 0.7rem;
        padding: 0.55rem 0.7rem;
    }

    .my-registrations-page > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page h1 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem !important;
    }

    .my-registrations-page .mobile-feedback-compact,
    .my-registrations-page .mobile-status-strip {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page .mobile-status-chip {
        min-height: 32px;
        padding: 0.35rem 0.65rem;
        font-size: 0.76rem;
    }

    .my-registrations-page .mobile-my-registrations-account .card,
    .my-registrations-page .mobile-surface-section {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page .mobile-my-registrations-account .card-body,
    .my-registrations-page .mobile-surface-section .card-body {
        padding: 0.85rem !important;
    }

    .my-registrations-page .account-rollup > summary {
        gap: 0.5rem;
        margin-bottom: 0.55rem !important;
    }

    .my-registrations-page .account-rollup summary .h5,
    .my-registrations-page .account-rollup summary span.h5 {
        font-size: 1rem;
    }

    .my-registrations-page .account-rollup summary .small,
    .my-registrations-page .account-rollup .form-text {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .my-registrations-page #pending-results .mobile-field-grid,
    .my-registrations-page #played-history .mobile-field-grid,
    .my-registrations-page #registrations-list .mobile-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .my-registrations-page #pending-results .mobile-data-card,
    .my-registrations-page #played-history .mobile-data-card,
    .my-registrations-page #registrations-list .mobile-data-card {
        padding: 0.78rem;
    }

    .my-registrations-page .mobile-card-actions .btn,
    .my-registrations-page .mobile-card-actions .btn-touch-action {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 42px;
    }

    .my-registrations-page .mobile-utility-sheet-summary,
    .my-registrations-page .inline-confirm-sheet > summary {
        padding: 0.72rem 0.82rem;
        font-size: 0.92rem;
    }

    .my-registrations-page .mobile-utility-sheet-pill {
        min-height: 28px;
        font-size: 0.72rem;
    }

    .my-registrations-page .mobile-utility-sheet-body,
    .my-registrations-page .inline-confirm-sheet-body {
        padding: 0 0.82rem 0.82rem;
    }

    .my-registrations-page .mobile-inline-qr {
        max-width: 180px;
    }

    .public-event-detail-page .public-detail-hero > .card-body,
    .public-event-detail-page .card.shadow-sm.mb-4 > .card-body {
        padding: 0.92rem !important;
    }

    .public-event-detail-page .public-detail-hero h1 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .public-event-detail-page .public-detail-hero .badge,
    .public-event-detail-page .public-block-card .badge {
        font-size: 0.68rem;
    }

    .public-event-detail-page .public-detail-view-switch {
        width: 100%;
    }

    .public-event-detail-page .public-detail-view-switch .btn {
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.55rem 0.7rem;
    }

    .public-event-detail-page .public-detail-hero img {
        max-height: 220px !important;
    }

    .public-event-detail-page .public-event-detail-meta {
        gap: 0.55rem 0;
    }

    .public-event-detail-page .public-event-detail-meta > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .public-event-detail-page .public-block-card {
        padding: 0.8rem !important;
    }

    .public-event-detail-page .public-block-card .d-flex.justify-content-between.align-items-start.gap-2.flex-wrap {
        gap: 0.45rem !important;
        margin-bottom: 0.45rem !important;
    }

    .public-event-detail-page .public-block-card .table-responsive {
        margin-top: 0.65rem !important;
    }

    .public-event-detail-page .public-event-table-mobile-list {
        gap: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card {
        padding: 0.78rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-header {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-title {
        font-size: 0.94rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-meta,
    .public-event-detail-page .public-event-table-mobile-card .mobile-card-meta a {
        font-size: 0.84rem;
        word-break: break-word;
    }

    .public-event-detail-page .public-event-table-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-field-label {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-field-value {
        font-size: 0.92rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .badge {
        font-size: 0.68rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-note {
        margin-top: 0.45rem;
        font-size: 0.8rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions {
        margin-top: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions .btn,
    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions .mobile-utility-sheet {
        width: 100%;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-utility-sheet-summary {
        padding: 0.72rem 0.8rem;
        font-size: 0.9rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-utility-sheet-body {
        padding: 0 0.8rem 0.8rem;
    }

    .public-event-detail-page .public-empty-state {
        padding: 1rem !important;
    }
}

@media (max-width: 399.98px) {
    .public-events-page .public-event-result-grid,
    .my-registrations-page #pending-results .mobile-field-grid,
    .my-registrations-page #played-history .mobile-field-grid,
    .my-registrations-page #registrations-list .mobile-field-grid {
        grid-template-columns: 1fr;
    }

    .my-registrations-page .mobile-card-actions .btn,
    .my-registrations-page .mobile-card-actions .btn-touch-action,
    .public-event-detail-page .public-detail-view-switch .btn {
        flex-basis: 100%;
    }

    .public-event-detail-page .public-event-detail-meta > [class*="col-"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .public-event-detail-page .public-event-table-mobile-grid {
        grid-template-columns: 1fr;
    }
}

.legal-page-card {
    max-width: 980px;
    margin: 0 auto;
}

.legal-page-card .legal-page-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-page-card .legal-section + .legal-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.25rem;
}

.legal-page-card .legal-meta {
    margin-bottom: 0.35rem;
}

.legal-page-card .legal-draft-notice {
    border-radius: 0.85rem;
}

.legal-page-card .legal-download-actions .btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .legal-page-card .legal-page-header {
        padding-bottom: 0.9rem;
    }

    .legal-page-card .legal-download-actions .btn {
        width: 100%;
    }
}


/* v5.7.130 mobile compaction for table registration and played-result screens */
@media (max-width: 767.98px) {
    .table-registration-page > .col-lg-8 > .card {
        margin-bottom: 0.65rem !important;
    }

    .table-registration-page > .col-lg-8 > .card > .card-body {
        padding: 0.7rem !important;
    }

    .table-registration-page h1 {
        font-size: 1.08rem;
        line-height: 1.15;
        margin-bottom: 0.15rem !important;
    }

    .table-registration-page .d-flex.flex-wrap.justify-content-between.align-items-start.gap-3.mb-3 {
        gap: 0.45rem !important;
        margin-bottom: 0.55rem !important;
    }

    .table-registration-mobile-summary {
        padding: 0.58rem 0.65rem;
    }

    .table-registration-mobile-summary .mobile-card-meta {
        margin-bottom: 0.45rem !important;
    }

    .table-registration-mobile-summary .mobile-stat-grid {
        gap: 0.4rem;
    }

    .table-registration-mobile-summary .mobile-stat-card {
        padding: 0.46rem 0.5rem;
    }

    .table-registration-mobile-summary .mobile-stat-label,
    .table-registration-mobile-status .mobile-status-chip {
        font-size: 0.68rem;
    }

    .table-registration-mobile-summary .mobile-stat-value {
        font-size: 0.88rem;
    }

    .table-registration-mobile-status {
        gap: 0.35rem;
        margin-bottom: 0.45rem !important;
    }

    .table-registration-mobile-status .mobile-status-chip {
        min-height: 28px;
        padding: 0.26rem 0.48rem;
    }

    .table-registration-compact-alert {
        padding: 0.45rem 0.55rem !important;
        margin-bottom: 0.45rem !important;
        line-height: 1.25;
    }

    .table-registration-qr-sheet .mobile-utility-sheet-summary {
        padding: 0.56rem 0.65rem;
        font-size: 0.86rem;
    }

    .table-registration-qr-sheet .mobile-utility-sheet-body {
        padding: 0 0.65rem 0.65rem;
    }

    .table-registration-page #table-registration-form {
        row-gap: 0.55rem !important;
    }

    .table-registration-page #table-registration-form .registration-readonly-cost,
    .table-registration-page #table-registration-form .registration-readonly-total {
        display: none;
    }

    .table-registration-page #table-registration-form .registration-seat-field {
        width: 100%;
    }

    .table-registration-page #table-registration-form .form-label {
        margin-bottom: 0.22rem;
        font-size: 0.84rem;
    }

    .table-registration-page #table-registration-form textarea {
        min-height: 64px;
    }

    .table-registration-page #table-registration-form .mobile-card-actions,
    .table-registration-page .mobile-action-dock {
        margin-top: 0.45rem !important;
    }

    .table-registration-page .mobile-action-dock-inner,
    .table-results-page .mobile-action-dock-inner {
        padding: 0.58rem 0.68rem;
        gap: 0.42rem;
        border-radius: 0.78rem;
    }

    .table-registration-page .mobile-action-dock-summary,
    .table-results-page .mobile-action-dock-summary {
        font-size: 0.78rem;
        line-height: 1.18;
    }

    .table-registration-page .mobile-action-dock-actions,
    .table-results-page .mobile-action-dock-actions {
        gap: 0.35rem;
    }

    .table-registration-page .btn-touch-action,
    .table-results-page .btn-touch-action {
        min-height: 38px;
        padding: 0.42rem 0.62rem;
        font-size: 0.86rem;
    }

    .table-results-page .table-results-hero-card {
        margin-bottom: 0.65rem !important;
    }

    .table-results-page .table-results-hero-card > .card-body,
    .table-results-page .table-results-actions-section > .card > .card-body,
    .table-results-page .table-results-score-sheet-section > .card > .card-body {
        padding: 0.72rem !important;
    }

    .table-results-page .table-results-hero-card h1 {
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .table-results-page .table-results-hero-card .text-uppercase.small {
        margin-bottom: 0.25rem !important;
        font-size: 0.68rem;
    }

    .table-results-mobile-nav {
        margin-bottom: 0.45rem !important;
        gap: 0.35rem;
    }

    .table-results-mobile-nav .btn {
        min-height: 34px;
        padding: 0.34rem 0.55rem;
        font-size: 0.8rem;
    }

    .table-results-mobile-status {
        gap: 0.35rem;
        margin-bottom: 0.45rem !important;
    }

    .table-results-mobile-status .mobile-status-chip {
        min-height: 28px;
        padding: 0.26rem 0.48rem;
        font-size: 0.68rem;
    }

    .table-results-mobile-summary {
        padding: 0.58rem 0.65rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-mobile-summary .mobile-card-meta {
        margin-bottom: 0.45rem !important;
    }

    .table-results-mobile-summary .mobile-stat-grid {
        gap: 0.4rem;
    }

    .table-results-mobile-summary .mobile-stat-card {
        padding: 0.46rem 0.5rem;
    }

    .table-results-mobile-summary .mobile-stat-label {
        font-size: 0.68rem;
    }

    .table-results-mobile-summary .mobile-stat-value {
        font-size: 0.88rem;
    }

    .table-results-page-closed .table-results-mobile-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.55rem;
    }

    .table-results-page-closed .table-results-mobile-summary .mobile-card-meta {
        margin-bottom: 0 !important;
        font-size: 0.78rem;
    }

    .table-results-page-closed .table-results-signoff-qr {
        display: none;
    }

    .table-results-page #my-actions h2,
    .table-results-page #shared-score-sheet h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-page #my-actions .small.text-muted.mb-3 {
        margin-bottom: 0.5rem !important;
        line-height: 1.25;
    }

    .table-results-page .inline-confirm-sheet {
        margin-bottom: 0.6rem !important;
    }

    .table-results-page .inline-confirm-sheet > summary {
        padding: 0.55rem 0.65rem;
        font-size: 0.86rem;
    }

    .table-results-page .inline-confirm-sheet-body {
        padding: 0 0.65rem 0.65rem;
    }

    .table-results-score-form {
        row-gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    .table-results-score-form .col-md-4 {
        width: 50%;
        flex: 0 0 50%;
    }

    .table-results-score-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.18rem;
    }

    .table-results-score-form .form-control,
    .table-results-score-form .form-select {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.9rem;
    }

    .table-results-score-form .form-text,
    .table-results-score-form .small.text-muted {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .table-results-difficulty-field {
        margin-top: 0.1rem;
    }

    .table-results-difficulty-field .d-flex.align-items-center.gap-3 {
        gap: 0.55rem !important;
    }

    .table-results-difficulty-field .form-range {
        height: 1.25rem;
    }

    .table-results-notes-field textarea {
        min-height: 58px;
    }

    .table-results-mobile-review-card {
        padding: 0.58rem !important;
        margin-top: 0.45rem !important;
    }

    .table-results-mobile-review-card .mobile-stack-form {
        row-gap: 0.42rem !important;
    }

    .table-results-mobile-review-card .form-label {
        font-size: 0.78rem;
        margin-bottom: 0.15rem !important;
    }

    .table-results-mobile-review-card .form-control,
    .table-results-mobile-review-card .form-select {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.88rem;
    }

    .table-results-page .mobile-score-sheet-list {
        gap: 0.42rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-data-card {
        padding: 0.58rem 0.65rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-card-header {
        gap: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .table-results-page .mobile-score-sheet-list .badge {
        font-size: 0.62rem;
        padding: 0.24rem 0.34rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-grid {
        gap: 0.32rem 0.45rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-label {
        font-size: 0.64rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-value {
        font-size: 0.84rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-card-note {
        margin-top: 0.3rem;
        font-size: 0.72rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card {
        padding: 0.58rem 0.65rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-header {
        margin-bottom: 0.35rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-title {
        font-size: 0.9rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-meta,
    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-label {
        font-size: 0.66rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-grid {
        gap: 0.32rem 0.45rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-value {
        font-size: 0.84rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-actions {
        margin-top: 0.42rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .btn-touch-action {
        min-height: 36px;
        padding: 0.36rem 0.55rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 399.98px) {
    .table-results-score-form .col-md-4 {
        width: 100%;
        flex-basis: 100%;
    }
}

/* v5.7.130: mobile score entry compaction and multi-format scoring controls */
.table-results-score-actions .btn {
    white-space: normal;
}

@media (max-width: 575.98px) {
    .table-results-score-actions {
        gap: 0.4rem !important;
    }
    .table-results-score-actions .btn {
        min-height: 38px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.82rem;
        line-height: 1.12;
    }
    .table-results-score-type-row .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }
    .table-results-score-type-row .form-text {
        display: none;
    }
    .table-results-opt-out-confirm {
        margin-top: 0.45rem;
    }
}


/* v5.7.130: Persistent authenticated mobile quick navigation. */
.mobile-quick-panel {
    position: fixed;
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    pointer-events: none;
}
.mobile-quick-panel-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.45rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.32);
    pointer-events: auto;
}
.mobile-quick-panel-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 48px;
    padding: 0.25rem 0.15rem;
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
}
.mobile-quick-panel-link:hover,
.mobile-quick-panel-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}
.mobile-quick-panel-link.active {
    color: #111827;
    background: #fff;
}
.mobile-quick-panel-icon {
    font-size: 1rem;
    line-height: 1;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }
    main.container {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 992px) {
    .mobile-quick-panel {
        display: none !important;
    }
}

/* v5.7.130 compact mobile score review cards */
@media (max-width: 991.98px) {
    .table-results-actions-minimized .card-body {
        padding: 0.75rem;
    }

    .table-results-actions-minimized h2 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-actions-minimized .small.text-muted.mb-3 {
        display: none;
    }

    .scorecard-review-compact-card,
    .scorecard-pending-compact-card {
        margin-bottom: 0 !important;
    }

    .mobile-score-sheet-compact-card,
    .mobile-score-sheet-list {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0.85rem;
        overflow: hidden;
        background: #fff;
    }

    .mobile-score-sheet-compact-row,
    .mobile-score-sheet-list .mobile-field-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem 0.5rem;
        align-items: center;
        padding: 0.55rem 0.65rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mobile-score-sheet-compact-row:last-child,
    .mobile-score-sheet-list .mobile-field-grid:last-child {
        border-bottom: 0;
    }

    .mobile-score-sheet-player {
        min-width: 0;
    }

    .mobile-score-sheet-name {
        display: block;
        font-weight: 700;
        font-size: 0.9rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-score-sheet-note {
        display: inline-block;
        font-size: 0.68rem;
        color: #6c757d;
    }

    .mobile-score-sheet-values {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .mobile-score-sheet-value {
        white-space: nowrap;
    }

    .mobile-score-sheet-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.25rem;
    }

    .mobile-score-sheet-badges .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }

    .mobile-score-sheet-review-details {
        grid-column: 1 / -1;
        font-size: 0.78rem;
    }

    .mobile-score-sheet-review-details > summary {
        color: #0d6efd;
        cursor: pointer;
        font-weight: 600;
    }

    .mobile-score-sheet-review-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* v5.7.130: scoring-type specific result controls */
.table-results-score-mode-panel[hidden],
[data-score-type-help][hidden] {
  display: none !important;
}
.table-results-outcome-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.table-results-outcome-toggle .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .table-results-score-type-row {
    gap: .75rem !important;
  }
  .table-results-score-mode-panel {
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
  }
}

/* v5.7.130: compact single-row My Actions scoring controls */
.table-results-compact-action-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.05fr) minmax(9rem, 1fr) minmax(15rem, 1.45fr);
  gap: 0.55rem;
  align-items: end;
}
.table-results-compact-field {
  min-width: 0;
}
.table-results-compact-actions {
  min-width: 0;
}
.table-results-compact-actions .btn {
  min-height: 2.25rem;
  white-space: normal;
  line-height: 1.1;
}
.table-results-outcome-toggle-compact {
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.table-results-outcome-toggle-compact .btn {
  min-height: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (max-width: 767.98px) {
  .table-results-compact-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
  }
  .table-results-compact-type-field,
  .table-results-compact-actions {
    grid-column: 1 / -1;
  }
  .table-results-compact-actions .btn {
    font-size: 0.78rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}
@media (max-width: 399.98px) {
  .table-results-compact-action-row {
    grid-template-columns: 1fr;
  }
  .table-results-compact-type-field,
  .table-results-compact-actions {
    grid-column: auto;
  }
}


/* v5.7.130: compact help bubbles use a body-level portal tooltip to avoid rollup clipping */
.help-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-light);
  color: var(--bs-primary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.help-bubble:focus-visible {
  outline: 0.15rem solid rgba(13, 110, 253, 0.45);
  outline-offset: 0.1rem;
}
.help-bubble[aria-expanded="true"] {
  background: #e7f1ff;
  border-color: rgba(13, 110, 253, 0.45);
}
.global-help-tooltip {
  position: fixed;
  z-index: 2147483000;
  display: none;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(33, 37, 41, 0.97);
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.22);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}
.global-help-tooltip.is-visible {
  display: block;
}
.help-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

/* v5.7.130: keep collapsible header labels/help bubbles and +/- indicators on one row.
   Header help controls use non-button elements because nested buttons are invalid HTML. */
.collapsible-toggle > .help-label-wrap {
  min-width: 0;
  flex: 1 1 auto;
}
.collapsible-toggle > .toggle-indicator {
  margin-left: auto;
  flex: 0 0 auto;
}
.collapsible-toggle .help-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.collapsible-toggle .help-bubble {
  flex: 0 0 auto;
}

/* v5.7.130 profile avatar selection */
.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: .75rem;
}
.profile-avatar-option {
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .75rem;
    padding: .65rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    background: #fff;
}
.profile-avatar-option.selected, .profile-avatar-option:has(input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}
.profile-avatar-option input {
    margin: 0;
}
.profile-avatar-option img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.public-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
}
@media (max-width: 575.98px) {
    .profile-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-avatar-option { font-size: .875rem; padding: .5rem; }
}


/* v5.7.130: Mobile game archive width and floating quick panel containment. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-navbar {
    width: 100%;
    max-width: 100%;
}

.public-games-page,
.public-games-page .card,
.public-games-page .card-body,
.public-games-page #game-live-results,
.public-games-page .game-archive-list,
.public-games-page .game-archive-row,
.public-games-page .game-archive-main {
    max-width: 100%;
    box-sizing: border-box;
}

.public-games-page .game-archive-main,
.public-games-page .game-archive-title,
.public-games-page .game-archive-meta {
    min-width: 0;
}

.public-games-page .game-archive-title,
.public-games-page .game-archive-meta span {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 767.98px) {
    .public-games-page .game-archive-row {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start !important;
        gap: 0.65rem 0.8rem !important;
        overflow: hidden;
    }

    .public-games-page .game-archive-thumb {
        width: 64px;
        height: 64px;
    }

    .public-games-page .game-archive-actions {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .public-games-page .game-archive-actions .btn {
        flex: 1 1 100%;
        min-height: 42px;
    }

    .public-games-page .game-archive-meta {
        gap: 0.35rem 0.75rem !important;
    }

    .public-games-page .game-archive-meta span {
        white-space: normal;
    }
}

@media (max-width: 991.98px) {
    .mobile-quick-panel {
        left: max(0.5rem, env(safe-area-inset-left, 0px));
        right: max(0.5rem, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .mobile-quick-panel-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .mobile-quick-panel-link {
        min-width: 0;
        overflow: hidden;
    }

    .mobile-quick-panel-link span:not(.mobile-quick-panel-icon) {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.event-table-game-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.event-table-game-thumb {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .event-table-game-thumb {
        width: 30px;
        height: 30px;
    }
}

/* Event and table share QR codes */

.event-share-qr-details > summary,
.event-table-qr-details > summary {
    list-style: none;
    cursor: pointer;
}
.event-share-qr-details > summary::-webkit-details-marker,
.event-table-qr-details > summary::-webkit-details-marker {
    display: none;
}
.event-share-qr-body {
    overflow-wrap: anywhere;
}
.event-table-qr-details {
    display: inline-block;
}
.event-table-qr-details[open] {
    display: block;
}
.event-table-qr-toggle {
    white-space: nowrap;
}
.event-share-qr-card {
    max-width: 180px;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}
.event-share-qr-img {
    width: 112px;
    height: 112px;
}
.event-share-qr-url {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-table-qr-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
.event-table-qr-strip-table {
    min-width: 118px;
}
.event-table-qr-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.72rem;
    color: #6c757d;
}
.event-table-qr-item img {
    width: 52px;
    height: 52px;
    padding: 0.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.35rem;
    background: #fff;
}
@media (max-width: 767.98px) {
    .event-share-qr-card {
        align-self: stretch;
        max-width: none;
        width: 100%;
    }
    .event-share-qr-url {
        max-width: 100%;
    }
}

/* v5.8.9 - Compact event table QR action sheet and mobile registration/capacity display. */
.event-table-qr-action-sheet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.event-table-qr-action-sheet .event-table-qr-help {
    flex-basis: 100%;
}
.event-table-qr-action {
    min-width: 6.75rem;
}
.public-event-table-mobile-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 575.98px) {
    .event-table-qr-action-sheet {
        align-items: stretch;
    }
    .event-table-qr-action-sheet .btn {
        flex: 1 1 100%;
    }
}

/* v5.8.14: Desktop score action alignment and game rating optional attribute */
.table-results-compact-actions[data-score-action-group] {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.table-results-compact-actions[data-score-action-group] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  line-height: 1.12;
}
@media (min-width: 768px) {
  .table-results-compact-actions[data-score-action-group] {
    align-self: end;
  }
}

/* v5.8.17 - scan-friendly table QR display pages */
.table-qr-display-page {
  min-height: 70vh;
}

.table-qr-display-card {
  border-radius: 1rem;
}

.table-qr-display-image {
  width: min(72vw, 360px);
  max-width: 360px;
}
