.agj-gate[hidden] {
    display: none;
}

.agj-gate,
.agj-gate__backdrop {
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
}

.agj-gate {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 18px;
    z-index: 2147483000;
}

.agj-gate__backdrop {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.74);
}

.agj-gate.is-ad-mode .agj-gate__backdrop {
    background: rgba(20, 27, 34, 0.68);
}

.agj-gate__dialog {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 54px rgba(19, 36, 58, 0.15);
    max-width: 600px;
    min-height: 330px;
    overflow: hidden;
    position: relative;
    width: min(100%, 600px);
}

.agj-gate.is-ad-mode .agj-gate__dialog {
    border-radius: 6px;
    max-width: 360px;
    min-height: 260px;
    width: min(100%, 360px);
}

.agj-gate__progress {
    background: #dedede;
    height: 4px;
    margin: 0 auto;
    width: 90%;
}

.agj-gate__progress-bar {
    background: #1f78e5;
    display: block;
    height: 100%;
    transition: width 180ms ease;
    width: 33%;
}

.agj-gate.is-ad-mode .agj-gate__progress-bar {
    background: #f7c529;
}

.agj-gate__body {
    padding: 38px 30px 36px;
    text-align: center;
}

.agj-gate__title {
    color: #2f2f2f;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 28px;
}

.agj-gate__message {
    color: #333;
    font-size: 20px;
    line-height: 1.45;
    margin: 0 auto 28px;
    max-width: 500px;
}

.agj-gate__options {
    display: grid;
    gap: 16px;
}

.agj-gate__option,
.agj-gate__cta {
    background: #2379e6;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(31, 120, 229, 0.18);
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    min-height: 56px;
    padding: 14px 18px;
    text-align: center;
    width: 100%;
}

.agj-gate__option:focus,
.agj-gate__cta:focus {
    outline: 3px solid rgba(35, 121, 230, 0.35);
    outline-offset: 2px;
}

.agj-gate__cta {
    margin: 0 auto;
    max-width: 392px;
}

.agj-gate__hint {
    color: #666;
    font-size: 12px;
    margin-top: 16px;
}

.agj-gate__ad-slot {
    display: none;
    margin: 0 auto 20px;
    min-height: 90px;
    width: 320px;
}

.agj-gate.is-fallback-ad .agj-gate__ad-slot {
    display: block;
}

.agj-gate.is-loading .agj-gate__cta {
    opacity: 0.75;
    pointer-events: none;
}

body.agj-gate-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .agj-gate {
        padding: 14px;
    }

    .agj-gate__dialog {
        border-radius: 14px;
        min-height: 300px;
    }

    .agj-gate__body {
        padding: 30px 20px 28px;
    }

    .agj-gate__title,
    .agj-gate__message {
        font-size: 20px;
    }

    .agj-gate__option,
    .agj-gate__cta {
        font-size: 15px;
        min-height: 52px;
    }
}
