/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-nnnefz9w7a] {
    min-height: 100dvh;
}

main[b-nnnefz9w7a] {
    width: min(1150px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

@media (max-width: 768px) {
    main[b-nnnefz9w7a] {
        padding: 0.75rem;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-w39c2s4sci] {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.bi[b-w39c2s4sci] {
    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-w39c2s4sci] {
    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-w39c2s4sci] {
    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-w39c2s4sci] {
    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-w39c2s4sci] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

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

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

    .nav-item[b-w39c2s4sci]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

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

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

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

    .collapse[b-w39c2s4sci] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-w39c2s4sci] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Home.razor.rz.scp.css */
.maui-page[b-gphp8gey0s] {
    background: #f4efe7;
    padding: 0.35rem;
    border-radius: 10px;
    overflow-x: hidden;
}

.top-bar[b-gphp8gey0s] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.top-bar h1[b-gphp8gey0s] {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2.3vw, 1.5rem);
    color: #1b4332;
    line-height: 1;
}

.status[b-gphp8gey0s] {
    text-align: center;
    font-size: clamp(0.62rem, 1.35vw, 0.77rem);
    color: #5c4a2d;
    line-height: 1.2;
}

.new-game[b-gphp8gey0s] {
    background: #2d6a4f;
    border: 0;
    color: #ffffff;
    border-radius: 8px;
    min-height: 2.15rem;
    padding: 0 0.62rem;
    font-weight: 700;
    font-size: clamp(0.72rem, 1.4vw, 0.88rem);
}

.notice[b-gphp8gey0s] {
    margin-bottom: 0.4rem;
    background: #fef3c7;
    border: 1px solid #d97706;
    color: #7c2d12;
    border-radius: 7px;
    padding: 0.3rem 0.45rem;
    font-size: clamp(0.62rem, 1.25vw, 0.74rem);
}

.dice-row[b-gphp8gey0s] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.22rem;
    margin-bottom: 0.4rem;
}

.die[b-gphp8gey0s] {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 1px solid #7d8f69;
    background: #e9f5db;
    color: #1f2937;
    font-size: clamp(1.3rem, 3.6vw, 2.35rem);
    line-height: 1;
    padding: 0;
}

.die.held[b-gphp8gey0s] {
    background: #f4a261;
    border: 3px solid #b45309;
}

.die.rolling[b-gphp8gey0s] {
    background: #d1d5db;
    border-color: #6b7280;
}

.action-row[b-gphp8gey0s] {
    display: grid;
    grid-template-columns: 8fr 2fr;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.action-row button[b-gphp8gey0s] {
    min-height: 2.4rem;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    color: #ffffff;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

.action-row .roll[b-gphp8gey0s] {
    background: #2a9d8f;
}

.action-row .undo[b-gphp8gey0s] {
    background: #e76f51;
}

.score-wrap[b-gphp8gey0s] {
    border: 2px solid #7f5539;
    border-radius: 8px;
    background: #fffdf8;
    padding: 2px;
    overflow-x: hidden;
}

.score-grid[b-gphp8gey0s] {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: clamp(0.5rem, 1vw, 0.76rem);
}

.score-grid th[b-gphp8gey0s],
.score-grid td[b-gphp8gey0s] {
    border: 1px solid #d1d5db;
    padding: 1px;
    text-align: center;
    vertical-align: middle;
}

.score-grid th[b-gphp8gey0s] {
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
    font-size: clamp(0.5rem, 1vw, 0.78rem);
}

.score-grid .col-category[b-gphp8gey0s] {
    width: 29%;
}

.score-grid .col-prob[b-gphp8gey0s] {
    width: 11%;
}

.score-grid .col-game[b-gphp8gey0s] {
    width: 10%;
}

.category-cell[b-gphp8gey0s] {
    text-align: left !important;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.prob-cell[b-gphp8gey0s] {
    color: #475569;
    font-weight: 500;
}

.pace-row td[b-gphp8gey0s] {
    background: #e7f0fa;
    color: #1e3a5f;
    font-weight: 700;
}

.pace-up[b-gphp8gey0s] {
    color: #166534 !important;
}

.pace-down[b-gphp8gey0s] {
    color: #991b1b !important;
}

.pace-neutral[b-gphp8gey0s] {
    color: #5c3a21 !important;
}

.separator-row td[b-gphp8gey0s] {
    border: 0;
    height: 4px;
    background: #7f5539;
    padding: 0;
}

.score-btn[b-gphp8gey0s] {
    width: 100%;
    min-height: clamp(1.55rem, 2.8vw, 2.2rem);
    border-radius: 4px;
    border: 1px solid #9ca3af;
    margin: 0;
    padding: 0;
    font-size: clamp(0.5rem, 1vw, 0.78rem);
    font-weight: 700;
    background: #e5e7eb;
    color: #1f2937;
}

.score-btn.valid[b-gphp8gey0s] {
    background: #dcfce7;
    border-color: #22c55e;
}

.score-btn.filled[b-gphp8gey0s] {
    border-width: 2px;
}

.totals-row td[b-gphp8gey0s] {
    background: #fffbeb;
    color: #1f2937;
    font-weight: 700;
}

.card-total-row td[b-gphp8gey0s] {
    background: #f3f6ff;
}

.summary-panel[b-gphp8gey0s] {
    margin-top: 0.45rem;
    border: 2px solid #3a5a40;
    border-radius: 10px;
    background: #e9f5db;
    padding: 0.5rem;
}

.summary-panel h2[b-gphp8gey0s] {
    margin: 0 0 0.35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    color: #1b4332;
}

.summary-text[b-gphp8gey0s] {
    font-size: 0.72rem;
    line-height: 1.25;
    color: #2d6a4f;
}

.overlay[b-gphp8gey0s] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    display: grid;
    place-items: center;
    z-index: 999;
    padding: 1rem;
}

.modal[b-gphp8gey0s] {
    width: min(36rem, 100%);
    background: #fffbeb;
    border: 2px solid #8b5e34;
    border-radius: 12px;
    padding: 0.85rem;
}

.modal h3[b-gphp8gey0s] {
    margin: 0 0 0.65rem;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    color: #5c3a21;
}

.modal-actions[b-gphp8gey0s] {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.modal-actions button[b-gphp8gey0s] {
    border: 0;
    border-radius: 9px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    background: #2d6a4f;
    color: #ffffff;
}

.modal-actions .secondary[b-gphp8gey0s] {
    background: #d1d5db;
    color: #1f2937;
}

.mode-actions[b-gphp8gey0s] {
    flex-wrap: wrap;
}

.swatch-grid[b-gphp8gey0s] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.swatch[b-gphp8gey0s] {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 2px solid #f8fafc;
}

button:disabled[b-gphp8gey0s] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 820px) {
    .top-bar[b-gphp8gey0s] {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "title button"
            "status status";
    }

    .top-bar h1[b-gphp8gey0s] {
        grid-area: title;
    }

    .status[b-gphp8gey0s] {
        grid-area: status;
        text-align: left;
    }

    .new-game[b-gphp8gey0s] {
        grid-area: button;
        justify-self: end;
    }

    .score-grid[b-gphp8gey0s] {
        font-size: clamp(0.46rem, 1.9vw, 0.72rem);
    }

    .score-grid th[b-gphp8gey0s] {
        font-size: clamp(0.46rem, 1.9vw, 0.74rem);
    }

    .score-btn[b-gphp8gey0s] {
        min-height: 1.45rem;
    }
}
