.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 37, 143, .58);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all .3s ease;
    transition: all .5s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: image-set(
            url('../img/modal/bg_modal@1x.webp') 1x,
            url('../img/modal/bg_modal@2x.webp') 2x
    ) no-repeat center center;
    background-size: cover;
    z-index: 101;
}

.modal--active {
    z-index: 100;
    opacity: 1;
    pointer-events: all;
}

.modal__content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal__content {
    width: 629px;
    aspect-ratio: 629 / 767;
    background: image-set(
        url('../img/modal/modal@1x.webp') 1x,
        url('../img/modal/modal@2x.webp') 2x
    ) no-repeat center center;
    background-size: cover;
    position: absolute;
    isolation: isolate;
    z-index: 102;
    padding-top: 166px;
}

.modal__content.no-transition {
    transition: none !important;
}

.modal__content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal__title {
    font-size: 30px;
    letter-spacing: 1px;
    font-weight: 400;
    color: #FFF;
    margin-bottom: 20px;
}

.modal__subtitle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 48px;
    letter-spacing: 1px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 335px;
    margin-bottom: 40px;
}

.modal__subtitle-first {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    content: attr(data-text);
    left: 0;
    top: 0;
    color: transparent;
    -webkit-text-stroke: 1px #FFFFFF;
    z-index: -1;
    text-align: center;
    text-shadow: 0 0 4px 0 rgba(0, 57, 154, 0.25);
    margin-bottom: 10px;
}

.modal__subtitle-second {
    color: #EBBE71;
    text-align: center;
    text-shadow: 0 4px 4px 0 rgba(8, 5, 153, 0.25);
    white-space: nowrap;
    font-size: 40px;
}

.modal__btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

.modal__btn {
    width: 323px;
    height: 70px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: image-set(
            url('../img/modal/modal_btn@1x.webp') 1x,
            url('../img/modal/modal_btn@2x.webp') 2x
    ) no-repeat center center;
    background-size: cover;
}

.modal__btn-label {
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 2px;
    color: #1332AE;
}

.modal__btn-pulse {
    animation: pulse 2s linear infinite;
}

#button {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
