.yumeyu-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.yumeyu-modal.show {
    display: flex;
}

.yumeyu-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}

.yumeyu-modal.show .yumeyu-modal-overlay {
    opacity: 1;
}

.yumeyu-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all .25s ease;
}

.yumeyu-modal.show .yumeyu-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.yumeyu-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #222;
}

.help-link {
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    text-decoration: underline;
}

.help-link:hover {
    opacity: 0.8;
}

.yumeyu-modal-lg .yumeyu-modal-content {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-xl);
}

@media (max-width: 768px) {
    .yumeyu-modal-lg .yumeyu-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: var(--spacing-md);
    }
}
