/* /Components/Chess/ChessBoard.razor.rz.scp.css */
/* Feature 15: wooden board + tap-to-move feedback. White fixed at the bottom,
   so the rendered rank order is 8 (top) → 1 (bottom). */
.chess-board[b-vtyfs7ws8p] {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-rows: 1fr;
    width: min(90vw, 28rem);
    aspect-ratio: 1;
    border: 4px solid #6b4a2f;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #b58863;
}

.chess-square[b-vtyfs7ws8p] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
}

.chess-square--light[b-vtyfs7ws8p] {
    background-color: #f0d9b5;
}

.chess-square--dark[b-vtyfs7ws8p] {
    background-color: #b58863;
}

/* Tap-to-move: the selected piece, the last move, and a checked king. */
.chess-square--selected[b-vtyfs7ws8p] {
    box-shadow: inset 0 0 0 3px #ffcf40;
}

.chess-square--last-move[b-vtyfs7ws8p] {
    background-color: #f7ec8f;
}

.chess-square--check[b-vtyfs7ws8p] {
    box-shadow: inset 0 0 0 3px #e50000;
}

/* Legal-move dots: filled circle on empty squares, capture ring on occupied ones. */
.chess-dot[b-vtyfs7ws8p] {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.chess-dot[b-vtyfs7ws8p] {
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.28);
}

.chess-dot--capture[b-vtyfs7ws8p] {
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 3px solid rgba(229, 0, 0, 0.45);
    background-color: transparent;
}
/* /Components/Chess/ChessPieceIcon.razor.rz.scp.css */
/* Feature 15: pieces fill their parent (the board square, or a fixed small size
   when listed as captured). */
.chess-piece[b-3bra8faa9r] {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.chess-piece svg[b-3bra8faa9r] {
    display: block;
    width: 100%;
    height: 100%;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-yxpfhbc9tk] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-yxpfhbc9tk] {
    flex: 1;
}

.sidebar[b-yxpfhbc9tk] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-yxpfhbc9tk] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-yxpfhbc9tk]  a, .top-row[b-yxpfhbc9tk]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-yxpfhbc9tk]  a:hover, .top-row[b-yxpfhbc9tk]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-yxpfhbc9tk]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-yxpfhbc9tk] {
        justify-content: space-between;
    }

    .top-row[b-yxpfhbc9tk]  a, .top-row[b-yxpfhbc9tk]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-yxpfhbc9tk] {
        flex-direction: row;
    }

    .sidebar[b-yxpfhbc9tk] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-yxpfhbc9tk] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-yxpfhbc9tk]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-yxpfhbc9tk], article[b-yxpfhbc9tk] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-yxpfhbc9tk] {
    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-yxpfhbc9tk] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-u0dcrzjeyd] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-u0dcrzjeyd] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-u0dcrzjeyd] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-u0dcrzjeyd] {
    font-size: 1.1rem;
}

.bi[b-u0dcrzjeyd] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-u0dcrzjeyd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-u0dcrzjeyd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-u0dcrzjeyd] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-u0dcrzjeyd] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-u0dcrzjeyd] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-u0dcrzjeyd] {
        padding-bottom: 1rem;
    }

    .nav-item[b-u0dcrzjeyd]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-u0dcrzjeyd]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-u0dcrzjeyd]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Feature 13: module sub-menus (MathMenu / EnglishMenu / ChessMenu) render
   inside NavMenu's own <nav>, so ::deep (anchored on this component's .nav)
   reaches their markup. */
.nav[b-u0dcrzjeyd]  .nav-module-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d7d7d7;
    display: flex;
    align-items: center;
    height: 2rem;
    line-height: 2rem;
}

.nav[b-u0dcrzjeyd]  .nav-module-icon {
    margin-right: 0.75rem;
}

.nav[b-u0dcrzjeyd]  .nav-sub-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 2.25rem;
    display: flex;
    align-items: center;
    line-height: 2.25rem;
    width: 100%;
}

.nav[b-u0dcrzjeyd]  .nav-sub-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav[b-u0dcrzjeyd]  .nav-sub-item .nav-link.active {
    background-color: rgba(255, 255, 255, 0.37);
    color: white;
}

.nav[b-u0dcrzjeyd]  .nav-coming-soon {
    font-size: 0.85rem;
    font-style: italic;
    color: #8a8a8a;
    height: 2.25rem;
    display: flex;
    align-items: center;
    line-height: 2.25rem;
}

.nav-scrollable[b-u0dcrzjeyd] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-u0dcrzjeyd] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-u0dcrzjeyd] {
        display: none;
    }

    .nav-scrollable[b-u0dcrzjeyd] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4glsbv4mnj],
.components-reconnect-repeated-attempt-visible[b-4glsbv4mnj],
.components-reconnect-failed-visible[b-4glsbv4mnj],
.components-pause-visible[b-4glsbv4mnj],
.components-resume-failed-visible[b-4glsbv4mnj],
.components-rejoining-animation[b-4glsbv4mnj] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-retrying[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-failed[b-4glsbv4mnj],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4glsbv4mnj] {
    display: block;
}


#components-reconnect-modal[b-4glsbv4mnj] {
    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-4glsbv4mnj 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4glsbv4mnj 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4glsbv4mnj 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4glsbv4mnj]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4glsbv4mnj 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4glsbv4mnj {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4glsbv4mnj {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4glsbv4mnj {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4glsbv4mnj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4glsbv4mnj] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4glsbv4mnj] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4glsbv4mnj] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4glsbv4mnj] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4glsbv4mnj] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4glsbv4mnj] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4glsbv4mnj 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4glsbv4mnj] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4glsbv4mnj {
    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/ChessPage.razor.rz.scp.css */
/* Feature 15: chess page layout — clocks above/below the board, status banner,
   actions, PGN window, promotion picker, confetti, attribution. */

.chess-layout[b-jfszj9y8mr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    max-width: 30rem;
    margin: 1rem auto 0;
}

.chess-clock[b-jfszj9y8mr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(90vw, 28rem);
    padding: 0.4rem 0.9rem;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    background-color: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 600;
}

.chess-clock--active[b-jfszj9y8mr] {
    border-color: #ffcf40;
    background-color: #fff8dc;
    box-shadow: 0 0 0 3px rgba(255, 207, 64, 0.35);
}

.chess-clock-time[b-jfszj9y8mr] {
    font-variant-numeric: tabular-nums;
    font-size: 1.75rem;
    line-height: 1.1;
}

.chess-clock--active .chess-clock-time[b-jfszj9y8mr] {
    color: #b26a00;
}

.chess-captured[b-jfszj9y8mr] {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    min-height: 1.6rem;
}

/* Captured-piece icons are fixed-size thumbnails next to the clock. */
.chess-captured[b-jfszj9y8mr]  .chess-piece {
    width: 1.6rem;
    height: 1.6rem;
}

.chess-status[b-jfszj9y8mr] {
    min-height: 1.75rem;
    margin: 0.75rem 0 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #212529;
}

.chess-actions[b-jfszj9y8mr] {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.chess-pgn[b-jfszj9y8mr] {
    max-width: 30rem;
    margin: 0 auto;
}

.chess-pgn-header[b-jfszj9y8mr] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chess-pgn-window[b-jfszj9y8mr] {
    max-height: 10rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95rem;
}

.chess-pgn-line[b-jfszj9y8mr] {
    line-height: 1.5;
}

.chess-attribution[b-jfszj9y8mr] {
    margin: 1.5rem auto 0;
    max-width: 30rem;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Pawn promotion picker overlay. */
.chess-promotion[b-jfszj9y8mr] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(0, 0, 0, 0.55);
}

.chess-promotion-title[b-jfszj9y8mr] {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.chess-promotion-options[b-jfszj9y8mr] {
    display: flex;
    gap: 0.5rem;
}

.chess-promo-btn[b-jfszj9y8mr] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background-color: #fff;
    cursor: pointer;
}

.chess-promo-btn:hover[b-jfszj9y8mr] {
    background-color: #f0f6ff;
}

/* Confetti on a win (CSS-only, decorative). */
.chess-confetti[b-jfszj9y8mr] {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    pointer-events: none;
}

.confetti[b-jfszj9y8mr] {
    position: absolute;
    top: -1rem;
    width: 0.6rem;
    height: 0.6rem;
    opacity: 0.9;
    animation: confetti-fall-b-jfszj9y8mr 3s linear infinite;
}

.confetti--0[b-jfszj9y8mr] { left: 5%;  background-color: #ffcf40; animation-delay: 0s; }
.confetti--1[b-jfszj9y8mr] { left: 25%; background-color: #1b6ec2; animation-delay: 0.5s; }
.confetti--2[b-jfszj9y8mr] { left: 50%; background-color: #e50000; animation-delay: 1s; }
.confetti--3[b-jfszj9y8mr] { left: 75%; background-color: #28a745; animation-delay: 1.5s; }

@keyframes confetti-fall-b-jfszj9y8mr {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(720deg); }
}
