/* /Pages/Home.razor.rz.scp.css */
.story-dice-container[b-g5aq91o69r] {
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    gap: 1.5rem;
    align-items: center;
}

.dice-board[b-g5aq91o69r] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 310px;
}

.dice-board.layout-4[b-g5aq91o69r] {
    max-width: 200px;
}

.die[b-g5aq91o69r] {
    width: 80px;
    height: 80px;
    background-color: #f7f4ed;
    border: 2px solid #dcd3cb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(74, 65, 56, 0.1), 0 2px 4px -1px rgba(74, 65, 56, 0.06);
    color: #4a4138;
    position: relative;
}

.die-animation[b-g5aq91o69r] {
    animation: roll-in-b-g5aq91o69r 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    animation-delay: var(--delay, 0s);
}

.die:hover[b-g5aq91o69r] {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(74, 65, 56, 0.15), 0 4px 6px -2px rgba(74, 65, 56, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.die-reroll[b-g5aq91o69r] {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.4rem;
    height: 1.4rem;
    border: none;
    border-radius: 999px;
    background: rgba(247, 244, 237, 0.96);
    color: #637a5b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(74, 65, 56, 0.12);
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.die:hover .die-reroll[b-g5aq91o69r],
.die:focus-within .die-reroll[b-g5aq91o69r] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.die-reroll:hover[b-g5aq91o69r] {
    background: #637a5b;
    color: white;
}

.die-reroll:focus-visible[b-g5aq91o69r] {
    outline: 2px solid #637a5b;
    outline-offset: 2px;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

@keyframes roll-in-b-g5aq91o69r {
    0% {
        transform: scale(0.3) rotate(-180deg) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }
}

.controls-header[b-g5aq91o69r], .controls-footer[b-g5aq91o69r] {
    display: flex;
    justify-content: center;
}

.control-group[b-g5aq91o69r] {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 6px 6px 6px 16px;
    border-radius: 99px;
}


/* Button Shared Styles */
.btn[b-g5aq91o69r] {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
    color: #4a4138;
    background-color: #f7f4ed;
}

.btn:hover[b-g5aq91o69r] {
    background-color: #dcd3cb;
}

.btn:active[b-g5aq91o69r] {
    transform: scale(0.96);
}

.btn:disabled[b-g5aq91o69r], .btn-icon:disabled[b-g5aq91o69r] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

.btn-primary.roll-btn[b-g5aq91o69r] {
    background-color: #637a5b;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 14px 0 rgba(99, 122, 91, 0.39);
    letter-spacing: 1px;
}

.btn-primary.roll-btn:hover[b-g5aq91o69r] {
    background-color: #4f6348;
    box-shadow: 0 6px 20px rgba(99, 122, 91, 0.23);
}

.btn-icon[b-g5aq91o69r] {
    background: transparent;
    border: none;
    color: #827568;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 101;
}

.btn-icon:hover[b-g5aq91o69r], .btn-icon.active[b-g5aq91o69r] {
    background-color: #f7f4ed;
    color: #4a4138;
    transform: rotate(30deg);
}

.btn-preset.active[b-g5aq91o69r] {
    background-color: #637a5b;
    color: white;
}

.btn-preset.active:hover[b-g5aq91o69r] {
    background-color: #4f6348;
}

.btn-stepper[b-g5aq91o69r] {
    background: white;
    border: none;
    color: #637a5b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-stepper:hover:not(:disabled)[b-g5aq91o69r] {
    background: #637a5b;
    color: white;
}

.btn-stepper:active:not(:disabled)[b-g5aq91o69r] {
    transform: scale(0.9);
}

.btn-stepper:disabled[b-g5aq91o69r] {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    box-shadow: none;
}

.custom-tooltip[b-g5aq91o69r]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4a4138;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(74, 65, 56, 0.2);
    z-index: 10;
}

.custom-tooltip:hover[b-g5aq91o69r]::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.app-title[b-g5aq91o69r] {
    text-align: center;
    margin-bottom: 1rem;
}

.app-title h1[b-g5aq91o69r] {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b332b;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
}

.app-title p[b-g5aq91o69r] {
    font-size: 1.1rem;
    color: #827568;
    margin: 0;
}

.custom-tooltip[data-tooltip=""][b-g5aq91o69r]::after,
.custom-tooltip:not([data-tooltip])[b-g5aq91o69r]::after {
    display: none;
}

.settings-container[b-g5aq91o69r] {
    position: relative;
    margin-left: 0.5rem;
}


.settings-popover[b-g5aq91o69r] {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 170px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(74, 65, 56, 0.2);
    border: 1px solid #dcd3cb;
    padding: 1.25rem;
    z-index: 100;
    animation: slideIn-b-g5aq91o69r 0.2s ease-out;
}

.popover-backdrop[b-g5aq91o69r] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 90;
    cursor: default;
}

@keyframes slideIn-b-g5aq91o69r {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-header[b-g5aq91o69r] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #827568;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f7f4ed;
    padding-bottom: 0.5rem;
}

.setting-item[b-g5aq91o69r] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item.vertical[b-g5aq91o69r] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f7f4ed;
}

.setting-label[b-g5aq91o69r] {
    font-size: 0.9rem;
    color: #4a4138;
    font-weight: 500;
}

.switch[b-g5aq91o69r] {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input[b-g5aq91o69r] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider[b-g5aq91o69r] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dcd3cb;
    transition: .4s;
    border-radius: 34px;
}

.slider[b-g5aq91o69r]:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider[b-g5aq91o69r] {
    background-color: #637a5b;
}

input:checked + .slider[b-g5aq91o69r]:before {
    transform: translateX(18px);
}

.stepper-control[b-g5aq91o69r] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f4ed;
    border-radius: 12px;
    padding: 4px;
    margin-top: 4px;
}

.stepper-value[b-g5aq91o69r] {
    font-weight: 800;
    font-size: 1.1rem;
    color: #4a4138;
    min-width: 40px;
    text-align: center;
}

.startup-die[b-g5aq91o69r] {
    cursor: not-allowed;
    overflow: hidden;
}

.startup-die[b-g5aq91o69r]::after {
    content: "";
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-140%);
    animation: startup-shimmer-b-g5aq91o69r 1.8s ease-in-out infinite;
}

@keyframes startup-shimmer-b-g5aq91o69r {
    to {
        transform: translateX(140%);
    }
}

.startup-die span[b-g5aq91o69r] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px dashed #cbbfb4;
    animation: startup-pulse-b-g5aq91o69r 1.5s ease-in-out infinite;
}

.startup-loading-label[b-g5aq91o69r] {
    color: #827568;
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: startup-pulse-b-g5aq91o69r 1.5s ease-in-out infinite;
}

@keyframes startup-pulse-b-g5aq91o69r {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}
