/* /Layout/MainLayout.razor.rz.scp.css */

main[b-gwl6ygopx8] {
    width: 100%;
    min-height: 100vh;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-kkkdrfk2db] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-kkkdrfk2db] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-kkkdrfk2db] {
    font-size: 1.1rem;
}

.bi[b-kkkdrfk2db] {
    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-kkkdrfk2db] {
    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-kkkdrfk2db] {
    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-kkkdrfk2db] {
    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-kkkdrfk2db] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-kkkdrfk2db] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-kkkdrfk2db] {
        padding-bottom: 1rem;
    }

    .nav-item[b-kkkdrfk2db]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-kkkdrfk2db]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-kkkdrfk2db]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-kkkdrfk2db] {
        display: none;
    }

    .collapse[b-kkkdrfk2db] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-kkkdrfk2db] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Home.razor.rz.scp.css */

.game-container[b-2x2pfgez9o] {
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
    background: #101b38;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    font-family: Arial, sans-serif;
}

/* Header */

.game-header[b-2x2pfgez9o] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 755px;
    min-height: 44px;
    margin: 0 auto 8px;
}

    .game-header h1[b-2x2pfgez9o] {
        font-size: 36px;
        color: #ffcc42;
        margin: 0;
        text-align: center;
    }

.sound-button[b-2x2pfgez9o] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: #26375c;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

    .sound-button:hover[b-2x2pfgez9o] {
        background: #344a78;
    }

/* Game Layout */

.game-layout[b-2x2pfgez9o] {
    --board-size: min(540px, 62vw, calc(100dvh - 215px));
    display: grid;
    grid-template-columns: var(--board-size) 190px;
    grid-template-rows: 65px var(--board-size) auto;
    column-gap: 25px;
    row-gap: 12px;
    align-items: center;
    justify-items: center;
}

/* Score */

.score-panel[b-2x2pfgez9o] {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    justify-content: space-around;
    width: 100%;
    text-align: center;
}

    .score-panel span[b-2x2pfgez9o] {
        font-size: 15px;
        color: #aab7d4;
    }

    .score-panel h2[b-2x2pfgez9o] {
        font-size: 30px;
        margin: 5px 0;
    }

/* Board Wrapper */

.board-wrapper[b-2x2pfgez9o] {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    width: var(--board-size);
    height: var(--board-size);
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

/* Board */

.game-board[b-2x2pfgez9o] {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: 5px;
    background: #26375c;
    padding: 8px;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    touch-action: none;
}

.cell[b-2x2pfgez9o] {
    background: #172646;
    border-radius: 5px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

    .cell.preview-valid[b-2x2pfgez9o] {
        box-shadow: inset 0 0 0 100px rgba(60, 220, 140, 0.18);
    }

    .cell.preview-invalid[b-2x2pfgez9o] {
        box-shadow: inset 0 0 0 100px rgba(255, 75, 95, 0.18);
    }

.game-board .cell.preview-line[b-2x2pfgez9o] {
    outline: 3px solid #ffdf66;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 2px #fff0a3, 0 0 12px rgba(255, 204, 66, 0.7);
    z-index: 2;
}

/* Pieces */

.pieces-panel[b-2x2pfgez9o] {
    grid-column: 2;
    grid-row: 2;
    width: 190px;
    height: var(--board-size);
    box-sizing: border-box;
    background: #26375c;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    touch-action: none;
}

.piece[b-2x2pfgez9o] {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

    .piece:active[b-2x2pfgez9o] {
        cursor: grabbing;
    }

    .piece.drag-source[b-2x2pfgez9o] {
        opacity: 0;
    }

.piece-row[b-2x2pfgez9o] {
    display: flex;
}

.piece-cell[b-2x2pfgez9o] {
    width: 24px;
    height: 24px;
    margin: 2px;
    border-radius: 4px;
    box-sizing: border-box;
    pointer-events: auto;
}

    .piece-cell.filled[b-2x2pfgez9o] {
        box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    }

/* Restart */

.restart-button[b-2x2pfgez9o] {
    grid-column: 1 / 3;
    grid-row: 3;
    justify-self: center;
    background: #ffcc42;
    color: #172646;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    width: 190px;
}

    .restart-button:hover[b-2x2pfgez9o] {
        background: #ffdc70;
    }

/* Line Clearing */

.cell.clearing[b-2x2pfgez9o] {
    animation: clear-line-b-2x2pfgez9o 400ms ease-in forwards;
}

@keyframes clear-line-b-2x2pfgez9o {
    0% {
        filter: brightness(1);
        opacity: 1;
        transform: scale(1);
    }

    45% {
        filter: brightness(1.8);
        opacity: 1;
        transform: scale(1.04);
    }

    100% {
        filter: brightness(2);
        opacity: 0;
        transform: scale(0.3);
    }
}

/* Combo */

.combo-overlay[b-2x2pfgez9o] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
    border-radius: 12px;
}

.combo-message[b-2x2pfgez9o] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    text-align: center;
    animation: combo-slide-b-2x2pfgez9o 1.2s ease-in-out both;
}

.combo-title[b-2x2pfgez9o] {
    color: #ffdc65;
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    text-shadow: 0 3px 0 #a86a18, 0 0 20px rgba(255, 190, 40, 0.8);
}

.combo-points[b-2x2pfgez9o] {
    color: #ffffff;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 800;
    margin-top: 5px;
    text-shadow: 0 2px 8px #000;
}

@keyframes combo-slide-b-2x2pfgez9o {
    0% {
        opacity: 0;
        transform: translate(-160vw, -50%) scale(0.8);
    }

    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    35% {
        transform: translate(-50%, -50%) scale(1);
    }

    65% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(160vw, -50%) scale(0.8);
    }
}

/* Game Over */

.game-over-overlay[b-2x2pfgez9o] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(5, 12, 30, 0.82);
    backdrop-filter: blur(6px);
    animation: overlay-appear-b-2x2pfgez9o 250ms ease-out;
}

.game-over-modal[b-2x2pfgez9o] {
    width: 100%;
    max-width: 380px;
    padding: 34px 28px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: #26375c;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: modal-appear-b-2x2pfgez9o 300ms ease-out;
}

    .game-over-modal h2[b-2x2pfgez9o] {
        margin: 0 0 22px;
        color: #ffcc42;
        font-size: 34px;
        font-weight: 800;
        letter-spacing: 2px;
    }

.new-best[b-2x2pfgez9o] {
    margin: -8px 0 20px;
    color: #ffcc42;
    font-size: 19px;
    font-weight: 700;
}

.game-over-scores[b-2x2pfgez9o] {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 28px;
}

    .game-over-scores div[b-2x2pfgez9o] {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .game-over-scores span[b-2x2pfgez9o] {
        color: #a9bce6;
        font-size: 14px;
    }

    .game-over-scores strong[b-2x2pfgez9o] {
        color: white;
        font-size: 32px;
    }

.play-again-button[b-2x2pfgez9o] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #ffcc42;
    color: #172646;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background 200ms, transform 200ms;
}

    .play-again-button:hover[b-2x2pfgez9o] {
        background: #ffe082;
        transform: translateY(-2px);
    }

@keyframes overlay-appear-b-2x2pfgez9o {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-appear-b-2x2pfgez9o {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile */

@media (max-width: 700px) {
    .game-container[b-2x2pfgez9o] {
        width: 100%;
        min-height: 100dvh;
        padding: 12px;
        box-sizing: border-box;
    }

    .game-header[b-2x2pfgez9o] {
        min-height: 40px;
        margin-bottom: 8px;
        padding: 0 4px;
        box-sizing: border-box;
    }

        .game-header h1[b-2x2pfgez9o] {
            font-size: clamp(22px, 6vw, 28px);
        }

    .sound-button[b-2x2pfgez9o] {
        right: 4px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .game-layout[b-2x2pfgez9o] {
        --board-size: 100%;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 60px auto 115px auto;
        gap: 12px;
        justify-items: center;
    }

    .score-panel[b-2x2pfgez9o] {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .board-wrapper[b-2x2pfgez9o] {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .game-board[b-2x2pfgez9o] {
        width: 100%;
        height: 100%;
    }

    .pieces-panel[b-2x2pfgez9o] {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        height: 115px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 8px;
    }

    .piece[b-2x2pfgez9o] {
        flex: 1;
        width: 0;
        height: 100%;
    }

    .piece-cell[b-2x2pfgez9o] {
        width: clamp(10px, 4vw, 17px);
        height: clamp(10px, 4vw, 17px);
        margin: 1px;
        border-radius: 3px;
    }

    .restart-button[b-2x2pfgez9o] {
        grid-column: 1;
        grid-row: 4;
        justify-self: center;
        width: 190px;
    }

    .combo-title[b-2x2pfgez9o] {
        font-size: clamp(28px, 9vw, 40px);
    }

    .combo-points[b-2x2pfgez9o] {
        font-size: 20px;
    }

    .game-over-modal[b-2x2pfgez9o] {
        padding: 28px 22px;
    }

        .game-over-modal h2[b-2x2pfgez9o] {
            font-size: 29px;
        }
}
