/* Dice Select Component Styles */

.dice-select-container {
    position: relative;
    width: 100%;
}

.current-die {
    padding: 0.25rem;
    border: 2px solid var(--color-ink);
    border-top: 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    transition: background-color 0.15s;
    height: 4rem; /* 64px - ensures consistent height */
    position: relative;
}

.current-die:hover {
    background-color: #f9fafb;
}

.current-die img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.chevron-icon {
    width: 1rem;
    height: 1rem;
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    color: #6b7280;
}

/* Modal Overlay */
.dice-select-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000; /* Above Nav Bar (z-100) */
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

/* Modal Content */
.dice-select-modal {
    background-color: white;
    border: 3px solid var(--color-ink);
    padding: 1.5rem;
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; /* Wobbly border */
    box-shadow: 4px 4px 0px var(--color-ink);
    width: 100%;
    max-width: 20rem;
    position: relative;
}

.dice-select-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-magenta);
    text-shadow: 1px 1px 0 var(--color-ink);
    letter-spacing: 1px;
}

.dice-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    margin-bottom: 1.5rem;
}

.option-die {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.option-die:hover {
    border-color: var(--color-ink);
    background-color: var(--color-yellow);
    transform: scale(1.1);
}

.option-die.selected {
    background-color: #dbeafe; /* Light blue */
    border-color: var(--color-ink);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.option-die img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-actions {
    text-align: center;
}

.modal-cancel-btn {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    min-width: 100px;
}
