/* /Components/AnalysisView.razor.rz.scp.css */
.analysis-view[b-qpvnnuazf6] {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 75px);
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: visible;
}

.btn-back-to-menu[b-qpvnnuazf6] {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    z-index: 10;
}

.btn-back-to-menu:hover[b-qpvnnuazf6] {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.board-row[b-qpvnnuazf6] {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.eval-col[b-qpvnnuazf6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    height: min(74vh, 68vw);
    flex-shrink: 0;
    width: 30px;
}

.eval-score-label[b-qpvnnuazf6] {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.4px;
    line-height: 1;
}

.eval-bar[b-qpvnnuazf6] {
    flex: 1;
    width: 100%;
    background: #1e1e1e; /* Distinct dark gray/black instead of dark blue */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly stronger border to separate it from the background */
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); /* Adds a nice inner shadow to make it look embedded */
}

.eval-bar-white[b-qpvnnuazf6] {
    position: absolute;
    left: 0;
    width: 100%;
    background: #e8edf2;
    transition: height 0.4s ease;
}

.eval-bar[b-qpvnnuazf6]::after {
    content: '';
    position: absolute;
    inset: auto 0 50% 0;
    height: 1px;
    background: rgba(0, 210, 255, 0.35);
    pointer-events: none;
}

.board-col[b-qpvnnuazf6] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.board-sizing[b-qpvnnuazf6] {
    width: min(74vh, 68vw);
    height: min(74vh, 68vw);
    flex-shrink: 0;
    position: relative;
}

.board-sizing.whatif-glow[b-qpvnnuazf6] {
    box-shadow: 0 0 10px 4px rgba(255, 210, 0, 0.55);
    border-radius: var(--border-radius-sm);
    transition: box-shadow 0.35s ease;
}

.nav-btn--dimmed[b-qpvnnuazf6] {
    opacity: 0.15 !important;
}

.board-analysis-overlay[b-qpvnnuazf6] {
    position: absolute;
    inset: 2px;
    background: rgba(7, 11, 20, 0.52);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    z-index: 20;
    border-radius: var(--border-radius-sm);
    pointer-events: none;
}

.analysis-overlay-label[b-qpvnnuazf6] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(0,210,255,0.5);
}

.depth-bar-track[b-qpvnnuazf6] {
    width: 55%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.depth-bar-fill[b-qpvnnuazf6] {
    height: 100%;
    background: var(--primary-cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0,210,255,0.6);
    transition: width 0.25s ease;
    min-width: 4px;
}

.depth-counter[b-qpvnnuazf6] {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

.controls-panel[b-qpvnnuazf6] {
    background: rgba(13, 21, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: none;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    overflow: hidden;
}

.move-info[b-qpvnnuazf6] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 0.35rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 1.9rem;
}

.move-counter[b-qpvnnuazf6] {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 500;
}

.current-move-text[b-qpvnnuazf6] {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-cyan);
    letter-spacing: 0.4px;
}

.move-controls[b-qpvnnuazf6] {
    display: flex;
    width: 100%;
}

.nav-btn[b-qpvnnuazf6] {
    flex: 1;
    height: 2.75rem;
    font-size: 1.15rem;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-btn:last-child[b-qpvnnuazf6] {
    border-right: none;
}

.nav-btn:hover:not(:disabled)[b-qpvnnuazf6] {
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-cyan);
}

.nav-btn:active:not(:disabled)[b-qpvnnuazf6] {
    background: rgba(0, 210, 255, 0.18);
}

.nav-btn:disabled[b-qpvnnuazf6] {
    opacity: 0.2;
    cursor: default;
}

.review-col[b-qpvnnuazf6] {
    width: 440px;
    height: calc(min(74vh, 68vw) + 2.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    overflow: visible;
    flex-shrink: 0;
}

.fade-in[b-qpvnnuazf6] {
    animation: fadeIn-b-qpvnnuazf6 0.4s ease-out forwards;
}

@keyframes fadeIn-b-qpvnnuazf6 {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.engine-loading-overlay[b-qpvnnuazf6] {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    z-index: 30;
    border-radius: var(--border-radius-md);
}

.engine-spinner[b-qpvnnuazf6] {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 210, 255, 0.15);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin-b-qpvnnuazf6 0.75s linear infinite;
}

@keyframes spin-b-qpvnnuazf6 { to { transform: rotate(360deg); } }

.engine-loading-label[b-qpvnnuazf6] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.4px;
}

.analysing-badge[b-qpvnnuazf6] {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-cyan);
    opacity: 0.8;
    animation: pulse-b-qpvnnuazf6 1.4s ease-in-out infinite;
}

@keyframes pulse-b-qpvnnuazf6 { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── Desktop defaults for new elements ─────────────────────── */

.mobile-ghp-drawer[b-qpvnnuazf6]        { display: contents; }
.mobile-ghp-backdrop[b-qpvnnuazf6]      { display: none; }
.mobile-drawer-btn[b-qpvnnuazf6]        { display: none; }
.move-info-text[b-qpvnnuazf6]           { display: contents; } /* transparent wrapper on desktop */
.mobile-evalgraph-slot[b-qpvnnuazf6]    { display: none; }     /* desktop uses review-col EvalGraph */

.mobile-evalgraph-wrapper[b-qpvnnuazf6],
.mobile-gamereview-wrapper[b-qpvnnuazf6],
.mobile-whatif-wrapper[b-qpvnnuazf6] { width: 100%; }

/* ── Mobile layout (portrait phones / narrow screens) ────────── */

@media (max-width: 768px) {

    .analysis-view[b-qpvnnuazf6] {
        height: 100dvh;
        padding: 0;
        justify-content: flex-start;
        align-items: stretch;
        overflow: hidden;
    }

    .btn-back-to-menu[b-qpvnnuazf6] {
        top: 0.4rem;
        right: 0.5rem;
        z-index: 55;
    }

    /* Vertical flex column — children ordered via CSS order */
    .board-row[b-qpvnnuazf6] {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: calc(3.5rem + 4.5rem); /* nav + whatif */
    }

    /* Lift children into board-row so we can freely reorder them */
    .board-col[b-qpvnnuazf6]      { display: contents; }
    .review-col[b-qpvnnuazf6]     { display: contents; animation: none; }
    .controls-panel[b-qpvnnuazf6] { display: contents; }

    .eval-col[b-qpvnnuazf6] { display: none; }

    /* ── Stacking order ─────────────────────────────────────────── */
    .mobile-evalgraph-slot[b-qpvnnuazf6]    { order: 1; }   /* always-on eval graph above board */
    .board-sizing[b-qpvnnuazf6]             { order: 2; }
    .move-info[b-qpvnnuazf6]                { order: 3; flex-shrink: 0; }
    .mobile-evalgraph-wrapper[b-qpvnnuazf6] { display: none; } /* review-col copy hidden on mobile */
    .mobile-gamereview-wrapper[b-qpvnnuazf6] { display: block; } /* visible as a fixed drawer */

    /* ── Always-on EvalGraph slot (prevents layout jumps) ───────── */
    .mobile-evalgraph-slot[b-qpvnnuazf6] {
        display: block;
        width: 100%;
        height: 90px;
        flex-shrink: 0;
        background: rgba(30, 41, 59, 0.6);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
    }

    /* ── Board: full-width square ──────────────────────────────── */
    .board-sizing[b-qpvnnuazf6] {
        width: 100vw;
        height: 100vw;
        flex-shrink: 0;
        align-self: stretch;
    }

    /* ── Move-info row with GHP drawer button ───────────────────── */
    .move-info[b-qpvnnuazf6] {
        display: flex;
        align-items: stretch;
        padding: 0;
        min-height: 1.75rem;
        border-bottom: none;
        background: rgba(13, 21, 38, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .move-info-text[b-qpvnnuazf6] {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        gap: 0.875rem;
        padding: 0.3rem 0.25rem;
    }

    /* Drawer toggle buttons — cyan, live in the move-info row */
    .mobile-drawer-btn[b-qpvnnuazf6] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        flex-shrink: 0;
        font-size: 0.65rem;
        background: transparent;
        border: none;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        color: var(--primary-cyan);
        cursor: pointer;
        transition: background 0.15s;
    }

    .mobile-drawer-btn--right[b-qpvnnuazf6] {
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-drawer-btn--hidden[b-qpvnnuazf6] {
        visibility: hidden; /* preserves space so text stays centered */
    }

    .mobile-drawer-btn:hover[b-qpvnnuazf6] {
        background: rgba(0, 210, 255, 0.08);
    }

    /* ── What-If: fixed flush above nav buttons ─────────────────── */
    .mobile-whatif-wrapper[b-qpvnnuazf6] {
        position: fixed;
        bottom: 3.5rem;
        left: 0;
        right: 0;
        padding: 0;
        z-index: 20;
    }

    /* ── Nav buttons: fixed at the bottom ───────────────────────── */
    .move-controls[b-qpvnnuazf6] {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        background: rgba(13, 21, 38, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-btn[b-qpvnnuazf6] {
        height: 3.5rem;
        font-size: 1.25rem;
    }

    /* ── Left slide-out: game history ───────────────────────────── */
    .mobile-ghp-drawer[b-qpvnnuazf6] {
        display: flex;
        align-items: stretch;
        position: fixed;
        left: 0;
        top: 0;
        height: 100dvh;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
    }

    .mobile-ghp-drawer--open[b-qpvnnuazf6] {
        transform: translateX(0);
    }

    /* ── Right slide-out: GameReview (badge ratings) ────────────── */
    .mobile-gamereview-wrapper[b-qpvnnuazf6] {
        position: fixed;
        right: 0;
        top: 0;
        height: 100dvh;
        width: min(85vw, 380px);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 50;
        overflow-y: auto;
        background: rgba(7, 11, 20, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 12px 0 0 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1rem 0.75rem 1.5rem;
        box-sizing: border-box;
    }

    .mobile-gamereview-wrapper--open[b-qpvnnuazf6] {
        transform: translateX(0);
    }

    /* ── Backdrop behind open drawer ────────────────────────────── */
    .mobile-ghp-backdrop[b-qpvnnuazf6] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 45;
    }
}
/* /Components/EvalGraph.razor.rz.scp.css */
.eval-graph-wrap[b-9pg3s7icmr] {
    width: 100%;
    height: 90px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .eval-graph-wrap[b-9pg3s7icmr] {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}

.eval-graph-svg[b-9pg3s7icmr] {
    width: 100%;
    height: 100%;
    display: block;
}
/* /Components/GameHistoryPanel.razor.rz.scp.css */
.ghp-container[b-yc22ybmj58] {
    width: 240px;
    height: min(74vh, 68vw);
    display: flex;
    flex-direction: column;
    background: rgba(13, 21, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ghp-container[b-yc22ybmj58] {
        height: 100dvh;
        border-radius: 0;
        border-top: none;
        border-bottom: none;
        border-left: none;
    }
}

.ghp-header[b-yc22ybmj58] {
    padding: 0.65rem 0.875rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ghp-back-btn[b-yc22ybmj58] {
    width: 100%;
    padding: 0.45rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.2px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.ghp-back-btn:hover[b-yc22ybmj58] {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
}

.ghp-list[b-yc22ybmj58] {
    flex: 1;
    overflow-y: auto;
    padding: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ghp-list[b-yc22ybmj58]::-webkit-scrollbar { width: 4px; }
.ghp-list[b-yc22ybmj58]::-webkit-scrollbar-track { background: transparent; }
.ghp-list[b-yc22ybmj58]::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }
.ghp-list[b-yc22ybmj58]::-webkit-scrollbar-thumb:hover { background: var(--primary-cyan); }

.ghp-card[b-yc22ybmj58] {
    padding: 0.625rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    background: rgba(15, 23, 42, 0.7);
}

.ghp-card:hover[b-yc22ybmj58] {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(0, 210, 255, 0.3);
}

.ghp-card--active[b-yc22ybmj58] {
    border-color: var(--primary-cyan) !important;
    background: rgba(0, 210, 255, 0.08) !important;
    cursor: default;
}

.ghp-players[b-yc22ybmj58] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.ghp-meta[b-yc22ybmj58] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.ghp-date[b-yc22ybmj58] {
    font-size: 0.73rem;
    color: #475569;
    white-space: nowrap;
}

.ghp-cached[b-yc22ybmj58] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.ghp-bolt[b-yc22ybmj58] {
    transform: rotate(-8deg);
    filter: drop-shadow(0 0 3px rgba(255, 140, 0, 0.55));
    display: block;
    flex-shrink: 0;
}

.ghp-cached-depth[b-yc22ybmj58] {
    font-size: 0.6rem;
    font-weight: 700;
    color: #FF8C00;
    letter-spacing: 0.3px;
    line-height: 1;
}

.ghp-result[b-yc22ybmj58] {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.ghp-result--win[b-yc22ybmj58]   { color: #4ade80; }
.ghp-result--loss[b-yc22ybmj58]  { color: #f87171; }
.ghp-result--draw[b-yc22ybmj58]  { color: #94a3b8; }

/* ── Action buttons ──────────────────────────────────────── */

.ghp-actions[b-yc22ybmj58] {
    display: flex;
    gap: 0.375rem;
    padding: 0.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ghp-btn[b-yc22ybmj58] {
    flex: 1;
    padding: 0.4rem 0.25rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border: 1px solid rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.05);
    color: rgba(0, 210, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ghp-btn:hover[b-yc22ybmj58] {
    background: rgba(0, 210, 255, 0.12);
    border-color: rgba(0, 210, 255, 0.5);
    color: var(--primary-cyan);
}

.ghp-btn:active[b-yc22ybmj58] {
    background: rgba(0, 210, 255, 0.18);
}

.ghp-btn--nosave-on[b-yc22ybmj58] {
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: var(--primary-cyan) !important;
    color: var(--primary-cyan) !important;
}
/* /Components/LandingView.razor.rz.scp.css */
.landing-wrapper[b-uxtbmebyld] {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 75px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dark-panel[b-uxtbmebyld] {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.dark-panel h2[b-uxtbmebyld] {
    margin-top: 0;
    color: var(--surface-white);
    margin-bottom: 0.5rem;
    text-align: center;
}

.dark-panel p[b-uxtbmebyld] {
    color: #94a3b8;
    margin-bottom: 2rem;
    text-align: center;
}

.input-row[b-uxtbmebyld] {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-wrapper[b-uxtbmebyld] {
    flex: 1;
    position: relative;
}

.input-wrapper .form-control-dark[b-uxtbmebyld] {
    width: 100%;
    box-sizing: border-box;
}

.username-dropdown[b-uxtbmebyld] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.username-option[b-uxtbmebyld] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.username-option:not(:last-child)[b-uxtbmebyld] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.username-option:hover[b-uxtbmebyld] {
    background: rgba(0, 210, 255, 0.1);
    color: #f1f5f9;
}

.history-icon[b-uxtbmebyld] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #475569;
}

.form-control-dark[b-uxtbmebyld] {
    flex: 1;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-dark:focus[b-uxtbmebyld] {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
}

.form-control-dark[b-uxtbmebyld]::placeholder {
    color: #475569;
}

.textarea-dark[b-uxtbmebyld] {
    min-height: 120px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

.btn-action[b-uxtbmebyld] {
    padding: 0 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-full[b-uxtbmebyld] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.divider[b-uxtbmebyld] {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
}

.divider[b-uxtbmebyld]::before, .divider[b-uxtbmebyld]::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span[b-uxtbmebyld] {
    padding: 0 1rem;
}

.games-list[b-uxtbmebyld] {
    max-height: 350px;
    overflow-y: auto;
    margin-top: 1.5rem;
    padding: 6px calc(0.5rem + 6px) 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.games-list[b-uxtbmebyld]::-webkit-scrollbar { width: 6px; }
.games-list[b-uxtbmebyld]::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.games-list[b-uxtbmebyld]::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.games-list[b-uxtbmebyld]::-webkit-scrollbar-thumb:hover { background: var(--primary-cyan); }

.game-card[b-uxtbmebyld] {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-card:hover[b-uxtbmebyld] {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card--selected[b-uxtbmebyld],
.game-card--selected:hover[b-uxtbmebyld] {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 1px var(--primary-cyan), 0 4px 12px rgba(0, 210, 255, 0.15);
}

.game-info[b-uxtbmebyld] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.players[b-uxtbmebyld] {
    font-weight: 600;
    font-size: 1rem;
    color: #f1f5f9;
}

.meta[b-uxtbmebyld] {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 1rem;
}

.result[b-uxtbmebyld] {
    font-weight: bold;
    font-size: 1.1rem;
}

.result.win-white[b-uxtbmebyld] { color: #f1f5f9; }
.result.win-black[b-uxtbmebyld] { color: #94a3b8; }
.result.draw[b-uxtbmebyld] { color: var(--primary-cyan); }

.loading-text[b-uxtbmebyld] {
    text-align: center;
    color: var(--primary-cyan);
    font-weight: 600;
    margin-top: 1rem;
}

.error-text[b-uxtbmebyld] {
    text-align: center;
    color: var(--text-error);
    margin-top: 1rem;
}

.depth-row[b-uxtbmebyld] {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.depth-label[b-uxtbmebyld] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: #94a3b8;
}

.depth-value[b-uxtbmebyld] {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}

.depth-hints[b-uxtbmebyld] {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #475569;
}

.depth-warning[b-uxtbmebyld] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--border-radius-md);
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.45;
    animation: fadeIn-b-uxtbmebyld 0.2s ease;
}

.thread-warning[b-uxtbmebyld] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: var(--border-radius-md);
    color: #fde68a;
    font-size: 0.8rem;
    line-height: 1.45;
    animation: fadeIn-b-uxtbmebyld 0.2s ease;
}

@keyframes fadeIn-b-uxtbmebyld {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .landing-wrapper[b-uxtbmebyld] {
        padding: 0;
        min-height: unset;
        height: calc(100dvh - 75px);
        overflow: hidden;
        justify-content: flex-start;
    }

    .dark-panel[b-uxtbmebyld] {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
        max-width: none;
        padding: 1.25rem 1rem;
        height: 100%;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .dark-panel h2[b-uxtbmebyld] {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .dark-panel p[b-uxtbmebyld] {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .input-row[b-uxtbmebyld] {
        margin-bottom: 0.625rem;
        gap: 0.5rem;
    }

    .form-control-dark[b-uxtbmebyld] {
        padding: 0.65rem 0.75rem;
        font-size: 0.95rem;
    }

    .btn-action[b-uxtbmebyld] {
        padding: 0 0.75rem;
        font-size: 0.9rem;
    }

    .depth-row[b-uxtbmebyld] {
        margin-bottom: 0.625rem;
        gap: 0.3rem;
    }

    .divider[b-uxtbmebyld] {
        margin: 0.875rem 0;
    }

    .textarea-dark[b-uxtbmebyld] {
        min-height: 80px;
    }

    .btn-full[b-uxtbmebyld] {
        padding: 0.8rem;
        font-size: 1rem;
        margin-top: 0.625rem;
    }

    .games-list[b-uxtbmebyld] {
        max-height: 55dvh;
        margin-top: 0.75rem;
    }
}

.depth-slider[b-uxtbmebyld] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}

.depth-slider[b-uxtbmebyld]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.1s;
}

.depth-slider[b-uxtbmebyld]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.depth-slider[b-uxtbmebyld]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
    cursor: pointer;
}
/* /Components/WhatIfPanel.razor.rz.scp.css */
.whatif-panel[b-gsxvg6ew1q] {
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 16, 4, 0.88);
    border: 1px solid rgba(255, 210, 0, 0.18);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 210, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .whatif-panel[b-gsxvg6ew1q] {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}

.whatif-panel--active[b-gsxvg6ew1q] {
    border-color: rgba(255, 210, 0, 0.35);
    box-shadow: 0 4px 24px rgba(255, 210, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.whatif-header[b-gsxvg6ew1q] {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.45rem;
    border-bottom: 1px solid rgba(255, 210, 0, 0.1);
    background: rgba(255, 210, 0, 0.04);
}

.whatif-panel--active .whatif-header[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.07);
    border-bottom-color: rgba(255, 210, 0, 0.18);
}

.whatif-label[b-gsxvg6ew1q] {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--accent-yellow-glow);
}

.whatif-hint[b-gsxvg6ew1q] {
    font-size: 0.65rem;
    color: rgba(255, 210, 0, 0.4);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.whatif-controls[b-gsxvg6ew1q] {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.whatif-nav-btn[b-gsxvg6ew1q] {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.95rem;
    border: none;
    border-right: 1px solid rgba(255, 210, 0, 0.1);
    background: transparent;
    color: rgba(255, 210, 0, 0.5);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.whatif-nav-btn:last-child[b-gsxvg6ew1q] {
    border-right: none;
    border-left: 1px solid rgba(255, 210, 0, 0.1);
}

.whatif-nav-btn:hover:not(:disabled)[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.1);
    color: var(--primary-yellow);
}

.whatif-nav-btn:active:not(:disabled)[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.18);
}

.whatif-nav-btn:disabled[b-gsxvg6ew1q] {
    opacity: 0.2;
    cursor: default;
}

/* Pulsing indicator on the forward button while engine is analyzing */
.whatif-nav-btn--analyzing[b-gsxvg6ew1q] {
    animation: whatif-pulse-b-gsxvg6ew1q 1.2s ease-in-out infinite;
}

@keyframes whatif-pulse-b-gsxvg6ew1q {
    0%, 100% { opacity: 0.15; }
    50%       { opacity: 0.35; }
}

.whatif-main-btn[b-gsxvg6ew1q] {
    flex: 1;
    height: 2.75rem;
    border: none;
    background: rgba(255, 210, 0, 0.08);
    color: var(--primary-yellow);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    padding: 0 0.5rem;
    text-shadow: 0 0 8px rgba(255, 210, 0, 0.4);
}

.whatif-main-btn:hover:not(:disabled)[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.15);
    box-shadow: inset 0 0 18px rgba(255, 210, 0, 0.08);
    color: #ffe566;
    text-shadow: 0 0 12px rgba(255, 210, 0, 0.6);
}

.whatif-main-btn:active:not(:disabled)[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.22);
}

.whatif-main-btn:disabled[b-gsxvg6ew1q] {
    opacity: 0.3;
    cursor: default;
}

/* Return-to-game variant */
.whatif-main-btn--return[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.05);
    color: rgba(255, 210, 0, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.whatif-main-btn--return:hover[b-gsxvg6ew1q] {
    background: rgba(255, 210, 0, 0.12);
    color: var(--primary-yellow);
}
/* /Pages/Home.razor.rz.scp.css */
[b-m5mq3d3nvg] html, [b-m5mq3d3nvg] body {
    background-color: #111827;
    color: #f8fafc;
}

.top-bar[b-m5mq3d3nvg] {
    background-color: #0f172a;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .logo[b-m5mq3d3nvg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

.top-bar .logo svg[b-m5mq3d3nvg] {
    width: 34px;
    height: 34px;
}

@media (max-width: 768px) {
    .top-bar--analysis[b-m5mq3d3nvg] {
        display: none;
    }
}
