/* =====================================
   Difficulty Modal
   Page-specific rules only; shared tokens
   are inherited from style.css.
   ===================================== */

#difficultyModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    padding: 20px;
    box-sizing: border-box;
}

.difficultyModal {
    width: min(500px, 95vw);
    background: var(--ui-surface);
    border-radius: var(--ui-radius-card-large);
    padding: 28px;
    box-sizing: border-box;
    text-align: center;
    direction: rtl;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .30);
}

.difficultyModal h2 { margin: 0 0 10px; }
.difficultyModal p { margin: 0 0 22px; }

.difficultyOptions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.difficultyOption {
    width: 100%;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--ui-bg);
    color: var(--ui-text);
    cursor: pointer;
    font: inherit;
    font-size: 19px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.difficultyOption:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .10);
}

#difficultyCancelBtn {
    margin-top: 20px;
    padding: 8px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ui-muted);
    cursor: pointer;
    font: inherit;
}

@media (max-width: 480px) {
    .difficultyModal {
        padding: 22px 18px;
        border-radius: 18px;
    }
}
