/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-ht5u8hac3y] {
    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[b-ht5u8hac3y] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-dohxa9dvcn],
.components-reconnect-repeated-attempt-visible[b-dohxa9dvcn],
.components-reconnect-failed-visible[b-dohxa9dvcn],
.components-pause-visible[b-dohxa9dvcn],
.components-resume-failed-visible[b-dohxa9dvcn],
.components-rejoining-animation[b-dohxa9dvcn] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-retrying[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-failed[b-dohxa9dvcn],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-dohxa9dvcn] {
    display: block;
}


#components-reconnect-modal[b-dohxa9dvcn] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-dohxa9dvcn 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-dohxa9dvcn 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-dohxa9dvcn 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-dohxa9dvcn]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-dohxa9dvcn 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-dohxa9dvcn {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-dohxa9dvcn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-dohxa9dvcn {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-dohxa9dvcn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-dohxa9dvcn] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-dohxa9dvcn] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-dohxa9dvcn] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-dohxa9dvcn] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-dohxa9dvcn] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-dohxa9dvcn] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-dohxa9dvcn 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-dohxa9dvcn] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-dohxa9dvcn {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Dashboard.razor.rz.scp.css */
/* --- DASHBOARD WRAPPER & LAYOUT --- */
.dashboard-wrapper[b-qh5f5acth1] {
    padding: 12px 16px;
    background: var(--cue-bg-color, #121212);
    color: var(--cue-btn-text, #ffffff);
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}
    .dashboard-wrapper[b-qh5f5acth1]  .dash-header {
        width: 100%;
        height: auto;
        min-height: 6vh;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 14px;
        background: var(--cue-card-bg, #181818);
        border-radius: 8px;
        border: 1px solid var(--cue-border-color, #2a2a2a);
        border-bottom: 2px solid var(--cue-brand-color, #ffc107);
        margin-bottom: 14px;
        box-sizing: border-box;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .dash-grid {
        display: grid;
        grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
        gap: 16px;
        width: 100%;
        min-height: calc(100vh - 110px);
        box-sizing: border-box;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-picker-name {
        color: var(--cue-btn-text, #ffffff) !important;
        font-weight: 700;
    }

    /* --- BRANDING & HEADER TEXT --- */
    .dashboard-wrapper[b-qh5f5acth1]  .brand-title {
        font-family: 'Oswald', 'Montserrat', sans-serif !important;
        font-size: clamp(1.15rem, 2.4vh, 1.8rem) !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        margin: 0 !important;
        line-height: 1.1;
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .brand-cue {
        color: var(--cue-btn-text, #ffffff) !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .brand-control,
    .dashboard-wrapper[b-qh5f5acth1]  .text-brand,
    .dashboard-wrapper[b-qh5f5acth1]  .table-name-highlight {
        color: var(--cue-brand-color, #ffc107) !important;
        font-weight: bold;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .brand-subtitle {
        color: #aaaaaa !important;
        font-size: 0.95rem;
        margin-left: 4px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
    }

    /* --- CARDS & TABLES --- */
    .dashboard-wrapper[b-qh5f5acth1]  .card {
        background: var(--cue-card-bg, #1e1e1e);
        border-radius: 10px;
        padding: 14px;
        border: 1px solid var(--cue-border-color, #333333);
        display: flex;
        flex-direction: column;
        min-height: 0;
        box-sizing: border-box;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .card-title {
        font-size: 1.05rem;
        font-weight: 700;
        margin-top: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--cue-border-color, #2a2a2a);
        padding-bottom: 6px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-container {
        flex-grow: 1;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--cue-brand-color, #ffc107) var(--cue-bg-color, #181818);
    }

    /* WebKit (Chrome, Edge, Safari, iPadOS) custom scrollbar */
    .dashboard-wrapper[b-qh5f5acth1]  .table-container::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-container::-webkit-scrollbar-track {
        background: #181818;
        border-radius: 4px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-container::-webkit-scrollbar-thumb {
        background: var(--cue-brand-color, #ffc107);
        border-radius: 4px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--cue-brand-hover, #e0a800);
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-compact {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .active-matches-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll {
        max-height: calc(100dvh - 185px);
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    @@media (max-width: 991.98px) {
        .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll {
            max-height: 440px;
        }
    }

    .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--cue-card-bg, #181818);
    }

        .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll::-webkit-scrollbar {
            width: 7px;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll::-webkit-scrollbar-track {
            background: var(--cue-bg-color, #121212);
            border-radius: 4px;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll::-webkit-scrollbar-thumb {
            background: var(--cue-border-color, #444444);
            border-radius: 4px;
        }

            .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll::-webkit-scrollbar-thumb:hover {
                background: var(--cue-brand-color, #ffc107);
            }


    .dashboard-wrapper[b-qh5f5acth1]  .table-compact th {
        color: var(--cue-brand-color, #ffc107);
        font-weight: 700;
        border-bottom: 1px solid var(--cue-border-color, #333);
        padding: 8px;
        text-transform: uppercase;
        font-size: 0.75rem;
        position: sticky;
        top: 0;
        background: var(--cue-card-bg, #1e1e1e);
        z-index: 1;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-compact td {
        padding: 8px;
        border-bottom: 1px solid var(--cue-border-color, #282828);
        vertical-align: middle;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .match-row:hover {
        background-color: var(--cue-btn-color, #252525);
    }

    .dashboard-wrapper[b-qh5f5acth1]  .frame-badge {
        background: var(--cue-bg-color, #111);
        color: var(--cue-brand-color, #ffc107);
        border: 1px solid var(--cue-border-color, #444);
        padding: 3px 8px;
        border-radius: 6px;
        font-weight: bold;
        font-family: monospace;
        white-space: nowrap;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-compact td small,
    .dashboard-wrapper[b-qh5f5acth1]  .best-of-label {
        color: color-mix(in srgb, var(--cue-btn-text, #f8fafc) 68%, transparent) !important;
    }

    /* --- PLAYER COLORS & DIVIDERS --- */
    .dashboard-wrapper[b-qh5f5acth1]  .p1-color {
        color: var(--cue-player1-color, #3498db) !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .p2-color {
        color: var(--cue-player2-color, #e74c3c) !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .player-name-link {
        cursor: pointer;
        touch-action: manipulation;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .vs-divider {
        color: #888888;
        font-size: 0.75rem;
        margin: 0 4px;
    }

    /* --- STATS CARD --- */
    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .player-name {
        color: var(--cue-btn-text, #ffffff) !important;
        font-weight: 600;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .stat-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .stat-list li {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: 1px solid var(--cue-border-color, #282828);
        font-size: 0.85rem;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .break-score {
        color: var(--cue-brand-color, #ffc107) !important;
        font-weight: bold;
        font-family: monospace;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .wins-score {
        color: #198754 !important;
        font-family: 'Oswald', 'Montserrat', sans-serif !important;
        font-weight: 700 !important;
        font-size: 1rem;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .text-muted-custom {
        color: #888888 !important;
        font-size: 0.82rem;
    }

    /* --- BUTTONS & INPUTS --- */
    .dashboard-wrapper[b-qh5f5acth1]  .btn,
    .dashboard-wrapper[b-qh5f5acth1]  button {
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-xs {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-height: 30px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-sm {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-subtle {
        background: var(--cue-btn-color, #2a2a2a);
        color: var(--cue-btn-text, #cccccc);
        border: 1px solid var(--cue-border-color, #444);
    }

        .dashboard-wrapper[b-qh5f5acth1]  .btn-subtle:hover {
            background: #333;
            color: #fff;
        }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-open-scoreboard {
        background: #3498db;
        color: #ffffff;
        border: none;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-open-scoreboard:hover {
        background: #2980b9;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-clear-inline {
        background: transparent;
        border: none;
        color: #888;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 2px 6px;
    }

        .dashboard-wrapper[b-qh5f5acth1]  .btn-clear-inline:hover {
            color: #fff;
        }

    /* Theme Primary Buttons */
    .dashboard-wrapper[b-qh5f5acth1]  .btn-warning,
    .dashboard-wrapper[b-qh5f5acth1]  .btn-theme-primary,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-warning,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-primary-custom,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-theme-primary {
        background-color: var(--cue-brand-color, #ffc107) !important;
        color: #121212 !important;
        border: none !important;
        font-weight: 700 !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-warning:hover,
    .dashboard-wrapper[b-qh5f5acth1]  .btn-theme-primary:hover,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-warning:hover,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-primary-custom:hover,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .btn-theme-primary:hover {
        background-color: var(--cue-brand-color, #ffc107) !important;
        filter: brightness(0.85); /* Slightly darkens the active theme color on hover */
        color: var(--cue-brand-text, #121212) !important;
    }

    /* --- MODALS & DIALOGS --- */
    .dashboard-wrapper[b-qh5f5acth1]  .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.82);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        z-index: 10000 !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .modal-backdrop-stacked {
        z-index: 10050 !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .modal-card {
        background: var(--cue-card-bg, #181818) !important;
        border: 1px solid var(--cue-border-color, #333333) !important;
        border-top: 3px solid var(--cue-brand-color, #ffc107) !important;
        border-radius: 12px !important;
        padding: 20px !important;
        width: 100%;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
        color: var(--cue-btn-text, #ffffff) !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9) !important;
        box-sizing: border-box !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .stats-modal-card {
        width: 90vw !important;
        max-width: 650px !important;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .search-modal-card {
        width: 90vw !important;
        max-width: 680px !important;
    }

    /* Modal Titles, Badges & Highlights */
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card h3,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-title-theme {
        color: var(--cue-brand-color, #ffc107) !important;
        font-family: 'Oswald', 'Montserrat', sans-serif !important;
        font-weight: 700 !important;
    }

    /* Modal Form Inputs Focus Border */
    .dashboard-wrapper[b-qh5f5acth1]  .input-label {
        font-size: 0.8rem;
        color: #aaaaaa;
        font-weight: 600;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .input-field,
    .dashboard-wrapper[b-qh5f5acth1]  .input-field-theme,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .form-select,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .form-control {
        background: var(--cue-bg-color, #111111) !important;
        border: 1px solid var(--cue-border-color, #333333) !important;
        color: var(--cue-btn-text, #ffffff) !important;
        padding: 8px 12px;
        border-radius: 6px;
        width: 100%;
        font-size: 16px; /* Prevents iOS Safari auto-zoom on input focus */
    }

    .dashboard-wrapper[b-qh5f5acth1]  .input-field-sm {
        background: var(--cue-bg-color, #111111);
        border: 1px solid var(--cue-border-color, #333333);
        color: var(--cue-btn-text, #ffffff);
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
        min-height: 32px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .input-field:focus,
    .dashboard-wrapper[b-qh5f5acth1]  .input-field-theme:focus,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .form-select:focus,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .form-control:focus {
        border-color: var(--cue-brand-color, #ffc107) !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2) !important;
    }

    /* Search Controls & Results Table */
    .dashboard-wrapper[b-qh5f5acth1]  .search-controls-grid {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
    }

        .dashboard-wrapper[b-qh5f5acth1]  .search-controls-grid input {
            flex-grow: 1;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .search-controls-grid select {
            width: 180px;
        }

    .dashboard-wrapper[b-qh5f5acth1]  .search-results-container {
        max-height: 320px;
        overflow-y: auto;
        border: 1px solid #2a2a2a;
        border-radius: 6px;
        margin-top: 10px;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .table-theme-modal th {
        color: var(--cue-brand-color, #ffc107) !important;
        border-bottom: 1px solid #333333 !important;
        background: #111111 !important;
    }

    /* --- MODAL BUTTON ABSTÄNDE (GAP FIX) --- */
    .dashboard-wrapper[b-qh5f5acth1]  .modal-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px !important;
    }

        /* Stellt sicher, dass flex-grow Buttons auf Mobile/Tablets ebenfalls genug Abstand haben */
        .dashboard-wrapper[b-qh5f5acth1]  .modal-actions .btn {
            margin: 0 !important;
        }

    /* --- COMPLETED MATCHES ICON BUTTON --- */
    .dashboard-wrapper[b-qh5f5acth1]  .btn-matches-icon {
        background: #2a2a2a;
        color: #27ae60; /* Distinct green checkmark */
        border: 1px solid #444444;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        padding: 0;
        font-size: 0.85rem;
        line-height: 1;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .player-stats-link {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        color: var(--cue-btn-text, #f8fafc);
        font: inherit;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.15s ease;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .player-stats-link:hover,
    .dashboard-wrapper[b-qh5f5acth1]  .player-stats-link:focus-visible {
        color: var(--cue-brand-color, #ffc107);
        text-decoration: underline;
        outline: none;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .btn-matches-icon:hover {
        background: #333333;
        color: #2ecc71;
        border-color: #27ae60;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .modal-card h3,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .text-warning,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-card .text-brand,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-header-text,
    .dashboard-wrapper[b-qh5f5acth1]  .modal-title-theme,
    .dashboard-wrapper[b-qh5f5acth1]  .stats-modal-card .modal-title,
    .dashboard-wrapper[b-qh5f5acth1]  .stats-card .break-score {
        color: var(--cue-brand-color, #ffc107) !important;
        font-family: 'Oswald', 'Montserrat', sans-serif !important;
        font-weight: 700 !important;
    }


    .dashboard-wrapper[b-qh5f5acth1]  .dash-meta-started {
        color: color-mix(in srgb, var(--cue-btn-text, #f8fafc) 72%, transparent) !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .dash-meta-active {
        color: var(--cue-btn-text, #f8fafc) !important;
        opacity: 0.9;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .text-muted-custom {
        color: color-mix(in srgb, var(--cue-btn-text, #f8fafc) 70%, transparent) !important;
    }

/* Ensure dropdown select options have high contrast */
.form-select.bg-dark[b-qh5f5acth1] {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.form-select.bg-dark option[b-qh5f5acth1] {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

@media (min-width: 992px) {
    .dashboard-wrapper[b-qh5f5acth1] {
        padding-top: 10px;
        padding-bottom: 12px;
    }

        .dashboard-wrapper[b-qh5f5acth1]  .active-matches-scroll {
            max-height: calc(100dvh - 210px);
        }
}

/* --- TABLET & MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .dashboard-wrapper[b-qh5f5acth1]  .dash-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dashboard-wrapper[b-qh5f5acth1]  .col-meta-desktop {
        display: none;
    }
}

@media (max-width: 640px) {
    .dashboard-wrapper[b-qh5f5acth1] {
        padding: 8px;
    }

        .dashboard-wrapper[b-qh5f5acth1]  .dash-card-toolbar {
            flex-wrap: wrap;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .dash-toolbar-actions {
            width: 100%;
            justify-content: flex-end;
            flex-wrap: wrap;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .col-meta,
        .dashboard-wrapper[b-qh5f5acth1]  .best-of-text {
            display: none;
        }

        .dashboard-wrapper[b-qh5f5acth1]  .search-controls-grid {
            flex-direction: column;
        }

            .dashboard-wrapper[b-qh5f5acth1]  .search-controls-grid select {
                width: 100%;
            }
}
/* /Components/Pages/Error.razor.rz.scp.css */
.error-wrapper[b-fbm3ophbz0] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.error-card[b-fbm3ophbz0] {
    width: 100%;
    max-width: 520px;
    padding: 32px 28px;
    background: #181818;
    border: 1px solid #333333;
    border-top: 3px solid #ffc107;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
    text-align: center;
    box-sizing: border-box;
}

.brand-title[b-fbm3ophbz0] {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    line-height: 1.1;
}

.brand-cue[b-fbm3ophbz0] {
    color: #ffffff;
}

.brand-control[b-fbm3ophbz0] {
    color: #ffc107;
}

.error-icon[b-fbm3ophbz0] {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 12px;
}

.error-heading[b-fbm3ophbz0] {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    margin: 0 0 10px 0;
}

.error-text[b-fbm3ophbz0] {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.error-actions[b-fbm3ophbz0] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-action[b-fbm3ophbz0] {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}

.btn-primary-action[b-fbm3ophbz0] {
    background: #ffc107;
    color: #121212;
    border: none;
}

    .btn-primary-action:hover[b-fbm3ophbz0] {
        background: #e0a800;
        color: #121212;
    }

.btn-secondary-action[b-fbm3ophbz0] {
    background: #2a2a2a;
    color: #cccccc;
    border: 1px solid #444444;
}

    .btn-secondary-action:hover[b-fbm3ophbz0] {
        background: #333333;
        color: #ffffff;
    }

.error-reference[b-fbm3ophbz0] {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.error-reference-label[b-fbm3ophbz0] {
    color: #888888;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.error-reference code[b-fbm3ophbz0] {
    color: #aaaaaa;
    font-size: 0.78rem;
    word-break: break-all;
}

.error-reference-hint[b-fbm3ophbz0] {
    color: #777777;
    font-size: 0.75rem;
}
/* /Components/Pages/LandingPage.razor.rz.scp.css */
html[b-s5masg1o8d],
body[b-s5masg1o8d] {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ===== PAGE WRAPPER (MIDNIGHT SLATE THEME) ===== */
.landing-wrapper[b-s5masg1o8d] {
    --cue-bg-color: #0f172a;
    --cue-card-bg: #1e293b;
    --cue-btn-color: #334155;
    --cue-btn-text: #f8fafc;
    --cue-player1-color: #38bdf8;
    --cue-player2-color: #fb7185;
    --cue-brand-color: #f59e0b;
    --cue-brand-hover: #d97706;
    --cue-brand-text: #0f172a;
    --cue-border-color: #475569;
    position: relative;
    display: block;
    width: 100%;
    min-height: 100dvh;
    height: auto !important;
    overflow-x: hidden;
    overflow-y: visible !important;
    padding: 12px 14px 48px;
    background: var(--cue-bg-color);
    color: var(--cue-btn-text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
    touch-action: pan-y;
}

/* ===== HEADER ===== */
.landing-header[b-s5masg1o8d] {
    max-width: 1200px;
    margin: 0 auto 12px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--cue-card-bg);
    border: 1px solid var(--cue-border-color);
    border-bottom: 2px solid var(--cue-brand-color);
    border-radius: 10px;
    box-sizing: border-box;
}

.brand-title[b-s5masg1o8d] {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-cue[b-s5masg1o8d] {
    color: var(--cue-btn-text);
}

.brand-control[b-s5masg1o8d] {
    color: var(--cue-brand-color);
}

.header-actions[b-s5masg1o8d] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* ===== BUTTONS ===== */
.btn-landing[b-s5masg1o8d] {
    padding: 8px 14px;
    min-height: 36px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-landing-lg[b-s5masg1o8d] {
    padding: 10px 18px;
    min-height: 42px;
    font-size: 0.95rem;
}

.btn-landing:disabled[b-s5masg1o8d] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-landing-primary[b-s5masg1o8d] {
    background: var(--cue-brand-color);
    color: var(--cue-brand-text);
    font-weight: 700;
}

    .btn-landing-primary:hover:not(:disabled)[b-s5masg1o8d] {
        background: var(--cue-brand-hover);
    }

.btn-landing-subtle[b-s5masg1o8d] {
    background: var(--cue-btn-color);
    color: var(--cue-btn-text);
    border: 1px solid var(--cue-border-color);
}

    .btn-landing-subtle:hover[b-s5masg1o8d] {
        filter: brightness(1.12);
    }

.btn-landing-secondary[b-s5masg1o8d] {
    background: var(--cue-btn-color);
    color: var(--cue-btn-text);
    border: 1px solid var(--cue-border-color);
}

    .btn-landing-secondary:hover[b-s5masg1o8d] {
        filter: brightness(1.15);
    }

.btn-attached[b-s5masg1o8d] {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-close-inline[b-s5masg1o8d] {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    padding: 4px 8px;
    min-width: 34px;
    min-height: 34px;
    cursor: pointer;
    touch-action: manipulation;
}

    .btn-close-inline:hover[b-s5masg1o8d] {
        color: var(--cue-btn-text);
    }

/* ===== HERO ===== */
.hero[b-s5masg1o8d] {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 14px 36px 14px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(245, 158, 11, 0.14), transparent 65%);
}

.hero-title[b-s5masg1o8d] {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 16px 0;
    color: var(--cue-btn-text);
}

.hero-subtitle[b-s5masg1o8d] {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 24px auto;
}

.feature-list[b-s5masg1o8d] {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.feature-pill[b-s5masg1o8d] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cue-card-bg);
    border: 1px solid var(--cue-border-color);
    border-radius: 999px;
    color: var(--cue-btn-text);
    font-weight: 600;
    font-size: 0.92rem;
}

    .feature-pill i[b-s5masg1o8d] {
        color: var(--cue-brand-color);
    }

.hero-cta-row[b-s5masg1o8d] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== SCREENSHOTS ===== */
.screenshots[b-s5masg1o8d] {
    max-width: 1200px;
    margin: 16px auto 0 auto;
    text-align: center;
}

.section-title[b-s5masg1o8d] {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--cue-brand-color);
    margin: 0 0 6px 0;
}

.section-subtitle[b-s5masg1o8d] {
    color: #94a3b8;
    margin: 0 0 24px 0;
}

.screenshot-grid[b-s5masg1o8d] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.screenshot-card[b-s5masg1o8d] {
    display: flex;
    flex-direction: column;
    background: var(--cue-card-bg);
    border: 1px solid var(--cue-border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .screenshot-card:hover[b-s5masg1o8d] {
        transform: translateY(-4px);
        border-color: var(--cue-brand-color);
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.65);
    }

.thumbnail-container[b-s5masg1o8d] {
    position: relative;
    height: 185px;
    overflow: hidden;
    background: var(--cue-bg-color);
}

.preview-thumb[b-s5masg1o8d] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .preview-thumb[b-s5masg1o8d] {
    transform: scale(1.04);
}

.thumbnail-overlay[b-s5masg1o8d] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screenshot-card:hover .thumbnail-overlay[b-s5masg1o8d] {
    opacity: 1;
}

.zoom-pill[b-s5masg1o8d] {
    padding: 6px 12px;
    background: var(--cue-brand-color);
    color: var(--cue-brand-text);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.screenshot-body[b-s5masg1o8d] {
    padding: 14px 16px 16px 16px;
}

.screenshot-title[b-s5masg1o8d] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cue-brand-color);
    margin: 0 0 6px 0;
}

.screenshot-text[b-s5masg1o8d] {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== MODALS ===== */
.landing-backdrop[b-s5masg1o8d] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(2, 6, 23, 0.82);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    box-sizing: border-box;
}

.landing-modal[b-s5masg1o8d] {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    background: var(--cue-card-bg);
    border: 1px solid var(--cue-border-color);
    border-top: 3px solid var(--cue-brand-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.9);
    color: var(--cue-btn-text);
    box-sizing: border-box;
}

.landing-modal-wide[b-s5masg1o8d] {
    max-width: 640px;
}

.modal-head[b-s5masg1o8d] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modal-title-theme[b-s5masg1o8d] {
    margin: 0;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cue-brand-color);
}

.modal-hint[b-s5masg1o8d] {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0 0 14px 0;
}

.modal-actions[b-s5masg1o8d] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.info-box[b-s5masg1o8d] {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: var(--cue-bg-color);
    border: 1px solid var(--cue-border-color);
    border-radius: 8px;
}

.info-title[b-s5masg1o8d] {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cue-brand-color);
}

.info-box ol[b-s5masg1o8d] {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.info-box li[b-s5masg1o8d] {
    margin-bottom: 4px;
}

/* ===== ALERTS ===== */
.landing-alert[b-s5masg1o8d] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
}

.landing-alert-error[b-s5masg1o8d] {
    background: rgba(251, 113, 133, 0.14);
    border: 1px solid rgba(251, 113, 133, 0.5);
    color: #fda4af;
}

.landing-alert-success[b-s5masg1o8d] {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.landing-alert-block[b-s5masg1o8d] {
    display: block;
    padding: 16px;
    margin-bottom: 0;
}

/* ===== FORM FIELDS ===== */
.field[b-s5masg1o8d] {
    margin-bottom: 14px;
}

.input-label[b-s5masg1o8d] {
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.captcha-question[b-s5masg1o8d] {
    margin-left: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cue-brand-color);
}

.input-group-landing[b-s5masg1o8d] {
    display: flex;
    align-items: stretch;
}

.input-prefix[b-s5masg1o8d] {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--cue-btn-color);
    border: 1px solid var(--cue-border-color);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.landing-wrapper[b-s5masg1o8d]  .landing-input {
    width: 100%;
    padding: 9px 12px;
    background: var(--cue-bg-color);
    border: 1px solid var(--cue-border-color);
    border-radius: 6px;
    color: var(--cue-btn-text);
    font-size: 16px;
    box-sizing: border-box;
}

    .landing-wrapper[b-s5masg1o8d]  .landing-input::placeholder {
        color: #64748b;
    }

    .landing-wrapper[b-s5masg1o8d]  .landing-input:focus {
        border-color: var(--cue-brand-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
    }

.landing-wrapper[b-s5masg1o8d]  .input-group-landing .landing-input {
    flex: 1 1 auto;
    min-width: 0;
}

.landing-wrapper[b-s5masg1o8d]  .input-prefix + .landing-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.landing-wrapper[b-s5masg1o8d]  .input-group-landing .landing-input:not(.landing-input-slug):not(:only-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.landing-wrapper[b-s5masg1o8d]  .landing-input-slug {
    color: var(--cue-brand-color);
    font-weight: 700;
    opacity: 0.9;
    cursor: not-allowed;
}

/* ===== LIGHTBOX ===== */
.lightbox-backdrop[b-s5masg1o8d] {
    z-index: 10100;
    padding: 14px;
}

.lightbox[b-s5masg1o8d] {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: var(--cue-card-bg);
    border: 1px solid var(--cue-border-color);
    border-top: 3px solid var(--cue-brand-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.9);
    text-align: center;
    box-sizing: border-box;
}

.lightbox-close[b-s5masg1o8d] {
    position: absolute;
    top: 10px;
    right: 12px;
}

.lightbox-title[b-s5masg1o8d] {
    margin: 0 36px 12px 0;
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cue-brand-color);
}

.lightbox-img[b-s5masg1o8d] {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 1px solid var(--cue-border-color);
    border-radius: 8px;
}

/* ===== SMALL SCREENS ===== */
@media (max-width: 640px) {
    .landing-wrapper[b-s5masg1o8d] {
        padding: 10px 12px 40px;
    }

    .landing-header[b-s5masg1o8d] {
        justify-content: center;
        padding: 10px 12px;
    }

    .header-actions[b-s5masg1o8d] {
        width: 100%;
        justify-content: center;
    }

    .hero[b-s5masg1o8d] {
        padding: 28px 6px 24px 6px;
    }

    .screenshot-grid[b-s5masg1o8d] {
        grid-template-columns: 1fr;
    }
}
/* /Components/Pages/Scoreboard.razor.rz.scp.css */
.log-player[b-dcqqitb9nf] {
    color: var(--cue-btn-text, #ffffff) !important;
    font-weight: 700;
    flex-grow: 1;
    margin: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scoreboard-body[b-dcqqitb9nf] {
    background-color: var(--cue-bg-color, #121212);
    color: var(--cue-btn-text, #ffffff);
    min-height: 100vh;
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.modal-body-text[b-dcqqitb9nf] {
    color: var(--cue-btn-text, #ffffff) !important;
}

/* HEADER BAR */
.header-bar[b-dcqqitb9nf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--cue-card-bg, #181818);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--cue-border-color, #2a2a2a);
    border-bottom: 2px solid var(--cue-brand-color, #ffc107);
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* BRANDING & TITLE */
.brand-title[b-dcqqitb9nf] {
    font-family: 'Oswald', 'Montserrat', sans-serif !important;
    font-size: clamp(1.15rem, 2.4vh, 1.8rem) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.brand-cue[b-dcqqitb9nf] {
    color: var(--cue-btn-text, #ffffff) !important;
}

.brand-control[b-dcqqitb9nf],
.table-name-highlight[b-dcqqitb9nf],
.text-brand[b-dcqqitb9nf] {
    color: var(--cue-brand-color, #ffc107) !important;
}

.brand-subtitle[b-dcqqitb9nf] {
    color: #aaaaaa !important;
    font-size: 0.95rem;
    margin-left: 4px;
}

/* HEADER SUBLINE */
.header-subline[b-dcqqitb9nf] {
    font-size: clamp(0.85rem, 1.6vh, 1.1rem);
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.1;
}

.club-name-text[b-dcqqitb9nf] {
    color: #cccccc;
}

.subline-divider[b-dcqqitb9nf] {
    color: #666666;
    margin: 0 4px;
}

/* BUTTONS & GENERAL CONTROLS */
.btn[b-dcqqitb9nf], button[b-dcqqitb9nf] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-home[b-dcqqitb9nf] {
    background: var(--cue-btn-color, #2a2a2a);
    color: var(--cue-btn-text, #ffffff);
    border: 1px solid var(--cue-border-color, #444);
    font-weight: 600;
    border-radius: 6px;
    padding: 5px 10px;
}

    .btn-home:hover[b-dcqqitb9nf] {
        filter: brightness(1.15);
    }

/* MAIN CONTAINER GRID */
.main-container[b-dcqqitb9nf] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr);
    gap: 14px;
    flex-grow: 1;
    min-height: 0;
}

.player-section[b-dcqqitb9nf] {
    background: var(--cue-card-bg, #1e1e1e);
    border-radius: 12px;
    border: 1px solid var(--cue-border-color, #333);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    min-width: 0;
}

/* PLAYER 1 & PLAYER 2 THEME COLORS */
.p1-color[b-dcqqitb9nf] {
    color: var(--cue-player1-color, #3498db) !important;
}

.p2-color[b-dcqqitb9nf] {
    color: var(--cue-player2-color, #e74c3c) !important;
}

.p1-border[b-dcqqitb9nf] {
    border-top: 5px solid var(--cue-player1-color, #3498db) !important;
}

.p2-border[b-dcqqitb9nf] {
    border-top: 5px solid var(--cue-player2-color, #e74c3c) !important;
}

.player-name-header[b-dcqqitb9nf] {
    font-size: clamp(1.3rem, 3vh, 2.2rem);
    font-weight: 800;
    margin: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-display[b-dcqqitb9nf] {
    font-size: clamp(4.2rem, 16vh, 11rem) !important;
    font-weight: 900 !important;
    text-align: center;
    margin: 4px 0;
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--cue-btn-text, #ffffff);
}

.input-container[b-dcqqitb9nf] {
    background: var(--cue-bg-color, #111111);
    border: 1px solid var(--cue-border-color, #333333);
    border-radius: 8px;
    padding: 6px;
}

.input-preview[b-dcqqitb9nf] {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    font-family: monospace;
    color: var(--cue-brand-color, #ffc107);
    min-height: 36px;
    line-height: 36px;
}

.timer-progress-container[b-dcqqitb9nf] {
    height: 3px;
    width: 100%;
    background: var(--cue-border-color, #222);
    margin-top: 4px;
}

.timer-filling[b-dcqqitb9nf] {
    height: 100%;
    background: var(--cue-brand-color, #ffc107);
    width: 100%;
    transition: width 2s linear;
}

.timer-reset[b-dcqqitb9nf] {
    width: 0%;
}

.numpad[b-dcqqitb9nf] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

    .numpad button[b-dcqqitb9nf] {
        background: var(--cue-btn-color, #262626);
        border: 1px solid var(--cue-border-color, #3d3d3d);
        color: var(--cue-btn-text, #ffffff);
        font-size: clamp(1.2rem, 2.4vh, 1.5rem);
        font-weight: 700;
        padding: 12px 0;
        min-height: 46px;
        border-radius: 8px;
        cursor: pointer;
    }

        .numpad button:active[b-dcqqitb9nf] {
            background: var(--cue-brand-color, #ffc107);
            color: #121212;
        }

/* Muted Undo Button */
.btn-undo-numpad[b-dcqqitb9nf] {
    grid-column: span 2;
    background: #141414 !important;
    color: #888888 !important;
    border: 1px solid #282828 !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

    .btn-undo-numpad:hover[b-dcqqitb9nf] {
        background: #1f1f1f !important;
        color: #ffc107 !important;
        border-color: #444 !important;
    }

    .btn-undo-numpad:active[b-dcqqitb9nf] {
        background: #2a2a2a !important;
    }

/* Foul Buttons - Traditional Snooker Colors */
.foul-container[b-dcqqitb9nf] {
    background: var(--cue-bg-color, #181818);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid var(--cue-border-color, #2a2a2a);
}

.foul-label[b-dcqqitb9nf] {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--cue-player2-color, #dc3545);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 6px;
}

.foul-buttons[b-dcqqitb9nf] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.btn-foul[b-dcqqitb9nf] {
    font-weight: 700;
    min-height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: filter 0.2s;
}

    .btn-foul:hover[b-dcqqitb9nf] {
        filter: brightness(1.15);
    }

.foul-4[b-dcqqitb9nf] {
    background-color: #d32f2f !important;
    color: #ffffff !important;
}

.foul-5[b-dcqqitb9nf] {
    background-color: #1976d2 !important;
    color: #ffffff !important;
}

.foul-6[b-dcqqitb9nf] {
    background-color: #e91e63 !important;
    color: #ffffff !important;
}

.foul-7[b-dcqqitb9nf] {
    background-color: #111111 !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

/* CENTER STAT BRIDGE */
.center-stat-bridge[b-dcqqitb9nf] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

.frame-standings-pill[b-dcqqitb9nf] {
    background: var(--cue-card-bg, #181818);
    border: 1px solid var(--cue-border-color, #333);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.frame-score-box[b-dcqqitb9nf] {
    font-size: clamp(2.4rem, 5vh, 3.8rem) !important;
    font-weight: 900;
    font-family: monospace;
    line-height: 1;
}

.frame-divider[b-dcqqitb9nf] {
    color: #666;
    margin: 0 4px;
}

.best-of-subtext[b-dcqqitb9nf] {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
}

.stat-pill[b-dcqqitb9nf] {
    background: var(--cue-card-bg, #181818);
    border: 1px solid var(--cue-border-color, #2e2e2e);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label[b-dcqqitb9nf] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #aaaaaa;
    text-transform: uppercase;
}

.stat-value[b-dcqqitb9nf] {
    font-size: 1.5rem !important;
    font-weight: 900;
    font-family: monospace;
}

.text-accent[b-dcqqitb9nf] {
    color: var(--cue-player1-color, #0d6efd);
}

.text-muted-tied[b-dcqqitb9nf] {
    color: #777;
}

.clock-pill[b-dcqqitb9nf] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.clock-display-row[b-dcqqitb9nf] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-text[b-dcqqitb9nf] {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: monospace;
    color: var(--cue-btn-text, #ffffff);
}

.btn-timer-reset[b-dcqqitb9nf] {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
}

.center-action-buttons[b-dcqqitb9nf] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-activity-log[b-dcqqitb9nf] {
    background: var(--cue-btn-color, #2a2a2a);
    color: var(--cue-btn-text, #cccccc);
    border: 1px solid var(--cue-border-color, #444);
    padding: 10px;
    font-weight: 700;
    border-radius: 6px;
}

.btn-finish-frame[b-dcqqitb9nf] {
    background: var(--cue-brand-color, #ffc107) !important;
    color: #121212 !important;
    padding: 12px;
    font-weight: 800;
    border: none;
    border-radius: 6px;
}

    .btn-finish-frame:hover[b-dcqqitb9nf] {
        filter: brightness(0.9);
    }

.btn-swap-players[b-dcqqitb9nf] {
    background: var(--cue-btn-color, #262626) !important;
    color: var(--cue-btn-text, #ffffff) !important;
    border: 1px solid var(--cue-border-color, #444444) !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    width: 100% !important;
}

/* MODALS & SIDEBAR DRAWER */
.modal-backdrop[b-dcqqitb9nf] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 1050;
}

.modal-card[b-dcqqitb9nf] {
    background: var(--cue-card-bg, #1e1e1e);
    padding: 22px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--cue-border-color, #333);
    border-top: 3px solid var(--cue-brand-color, #ffc107) !important;
    color: var(--cue-btn-text, #fff);
    box-sizing: border-box;
}

.score-summary[b-dcqqitb9nf] {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--cue-bg-color, #111);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--cue-border-color, #2a2a2a);
    margin-top: 10px;
}

.summary-player[b-dcqqitb9nf] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-vs[b-dcqqitb9nf] {
    color: #777;
    font-weight: bold;
}

.sidebar-backdrop[b-dcqqitb9nf] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
}

.sidebar-drawer[b-dcqqitb9nf] {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    background: var(--cue-card-bg, #181818);
    border-left: 2px solid var(--cue-brand-color, #ffc107) !important;
    padding: 18px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

    .sidebar-drawer h3[b-dcqqitb9nf] {
        color: var(--cue-brand-color, #ffc107) !important;
        font-family: 'Oswald', 'Montserrat', sans-serif;
        font-weight: 700;
        margin-bottom: 14px;
    }

.log-tabs[b-dcqqitb9nf] {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tab-btn[b-dcqqitb9nf] {
    flex: 1;
    background: var(--cue-btn-color, #262626);
    border: 1px solid var(--cue-border-color, #3d3d3d);
    color: var(--cue-btn-text, #aaa);
    padding: 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

    .tab-btn.active[b-dcqqitb9nf] {
        background: var(--cue-brand-color, #ffc107) !important;
        color: #121212 !important;
        border-color: var(--cue-brand-color, #ffc107) !important;
        font-weight: 800;
    }

.log-entries[b-dcqqitb9nf] {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-entry[b-dcqqitb9nf] {
    background: var(--cue-bg-color, #111);
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-family: monospace;
}

.log-foul-bg[b-dcqqitb9nf] {
    background: rgba(220, 53, 69, 0.14);
}

.log-time[b-dcqqitb9nf] {
    color: #888;
}

.log-points-plus[b-dcqqitb9nf] {
    color: #2ecc71;
    font-weight: bold;
}

.log-points-minus[b-dcqqitb9nf] {
    color: #dc3545;
    font-weight: bold;
}

/* --- TABLET & MOBILE RESPONSIVENESS --- */
@media (max-width: 991.98px) {
    .main-container[b-dcqqitb9nf] {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .center-stat-bridge[b-dcqqitb9nf] {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .frame-standings-pill[b-dcqqitb9nf],
    .center-action-buttons[b-dcqqitb9nf] {
        grid-column: 1 / -1;
    }

    .center-action-buttons[b-dcqqitb9nf] {
        flex-direction: row;
    }

        .center-action-buttons .btn[b-dcqqitb9nf] {
            flex: 1;
        }
}

@media (max-width: 640px) {
    .scoreboard-body[b-dcqqitb9nf] {
        padding: 8px;
    }

    .score-display[b-dcqqitb9nf] {
        font-size: clamp(3.8rem, 16vw, 6rem) !important;
    }

    .numpad button[b-dcqqitb9nf] {
        min-height: 50px;
    }
}
