.nensi-daily-welcome[hidden] {
    display: none !important;
}

.nensi-daily-welcome {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.nensi-daily-welcome__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.62);
}

.nensi-daily-welcome__dialog {
    position: relative;
    width: min(100%, 640px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 48px 48px 38px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    color: var(--wp--preset--color--custom-base-text, #252525);
    text-align: left;
}

.nensi-daily-welcome__dialog h2 {
    margin: 0 36px 24px 0;
    color: var(--wp--preset--color--custom-accent, #b2202b);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.2;
}

.nensi-daily-welcome__dialog p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.55;
}

.nensi-daily-welcome__dialog p:last-child {
    margin-bottom: 0;
}

.nensi-daily-welcome__dialog a {
    color: var(--wp--preset--color--custom-accent, #b2202b);
    font-weight: 700;
}

.nensi-daily-welcome__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.nensi-daily-welcome__close:hover,
.nensi-daily-welcome__close:focus-visible {
    background: rgba(0, 0, 0, 0.08);
    outline: none;
}

@media (max-width: 600px) {
    .nensi-daily-welcome {
        padding: 16px;
    }

    .nensi-daily-welcome__dialog {
        max-height: calc(100vh - 32px);
        padding: 40px 24px 28px;
    }

    .nensi-daily-welcome__dialog h2 {
        font-size: 25px;
    }

    .nensi-daily-welcome__dialog p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .nensi-daily-welcome__dialog {
        animation: nensi-daily-welcome-enter 180ms ease-out;
    }

    @keyframes nensi-daily-welcome-enter {
        from {
            opacity: 0;
            transform: translateY(12px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}
