/**
 * css/modal.css
 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.result-modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--accent-cream);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--warm-brown);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
#storyModalButtons {
    display: none;
}
.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.restart-btn {
    background: var(--primary);
    color: white;
}

.menu-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 44, 60, 0.2);
}