.ess-overlay-open {
    overflow: hidden;
}

.ess-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, var(--ess-overlay-opacity, 0.92));
    color: #f2f2f2;
    text-align: center;
    animation: ess-overlay-fade-in 180ms ease-out;
}

.ess-overlay__inner {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.ess-overlay__logo {
    display: block;
    width: min(130px, 30vw);
    height: auto;
    margin: 0 auto 20px;
}

.ess-overlay__message {
    font-size: clamp(1rem, 2vw, 1.75rem);
    line-height: 1.5;
    color: #f2f2f2;
}

.ess-overlay__message p:last-child {
    margin-bottom: 0;
}

.ess-overlay__resume-hint {
    display: none;
    margin-top: 18px;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.92;
}

.ess-overlay__resume-hint.is-visible {
    display: block;
}

.ess-overlay__button {
    margin-top: 24px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
}

.ess-overlay__button:hover,
.ess-overlay__button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.ess-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ess-overlay-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .ess-overlay {
        padding: 20px;
    }

    .ess-overlay__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ess-overlay {
        animation: none;
    }
}
