/* _content/Sarmeda.ChessShell/Components/ChessBoard.razor.rz.scp.css */
.chessboard[b-ve1xfcayud] {
    --board-size: min(92vw, 480px);
    width: var(--board-size);
    height: var(--board-size);
    display: flex;
    flex-direction: column;
    border: 4px solid #222;
    box-sizing: content-box;
    margin: 0 auto;
}

.rank[b-ve1xfcayud] {
    display: flex;
    width: 100%;
    height: calc(var(--board-size) / 8);
}

.square[b-ve1xfcayud] {
    width: calc(var(--board-size) / 8);
    height: calc(var(--board-size) / 8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 0 0 calc(var(--board-size) / 8);
}

.light[b-ve1xfcayud] {
    background: #f0d9b5;
}

.dark[b-ve1xfcayud] {
    background: #b58863;
}

.piece[b-ve1xfcayud] {
    width: 78%;
    height: 78%;
    user-select: none;
    object-fit: contain;
}

/* Selected piece square */
.selected-square[b-ve1xfcayud] {
    outline: 3px solid #ffeb3b;
    outline-offset: -3px;
}

/* Empty move targets */
.move-target[b-ve1xfcayud]::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(0, 255, 0, 0.6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.board-status[b-ve1xfcayud] {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.try-again-btn[b-ve1xfcayud] {
    margin-top: 6px;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
}

    .try-again-btn:hover[b-ve1xfcayud] {
        background: #e6e6e6;
    }
    
    /* Capture targets */
.capture-target[b-ve1xfcayud] {
    box-shadow: inset 0 0 0 4px rgba(255, 0, 0, 0.6);
}

.capture-target[b-ve1xfcayud]::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid rgba(255, 0, 0, 0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.rank-label[b-ve1xfcayud] {
    position: absolute;
    top: 3px;
    left: 5px;
    font-size: 11px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.file-label[b-ve1xfcayud] {
    position: absolute;
    right: 5px;
    bottom: 3px;
    font-size: 11px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.55);
    z-index: 2;
}
/* _content/Sarmeda.ChessShell/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-ywimmdod6p] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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-ywimmdod6p] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
