:root {
    --popup-width: 704px;
    --popup-height: 498px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
}

body.scrolllock-on {
    top: unset!important;
}

#popup-apr {
    --blue: #2a3b74;
    overflow: hidden;
}

#popup-apr .popup-content {
    width: 700px;
    height: 500px;
    padding: 0;
}

#popup-apr .popup-default,
#popup-apr .popup-thanks {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    background-image: url(../images/hero/popup-back.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back.jpg") 1x,
            url("../images/hero/popup-back@2x.jpg") 2x);
}

#popup-apr .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}

#popup-apr form {
    margin-top: 20px;
}

#popup-apr .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    padding: 0.2em 0 0;
    margin: 0 auto;
}

#popup-apr .form-action {
    justify-content: center;
    display: flex;
}

#popup-apr .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
}

#popup-apr .bg-video-game {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

#popup-apr .popup-flower {
    width: 19em;
    height: 16em;
    bottom: 1em;
    left: 10em;
    cursor: pointer;
}

#popup-apr .game-text {
    margin-top: -22em;

}

#popup-apr .close2 {
    filter: invert(1);
}

@media screen and (min-width: 568px) {}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-apr form {
        margin-top: 21px;
        width: calc(100% - 50px);
    }

    #popup-apr .popup-content {
        width: 100%;
        height: 100%;
        max-width: 400px;
        max-height: 640px;
    }

    #popup-apr .popup-default,
    #popup-apr .popup-thanks {
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.jpg") 1x,
                url("../images/hero/popup-back-m@2x.jpg") 2x);
    }

    #popup-apr .popup-close {
        width: 47px;
    }

    #popup-apr .thanks {
        width: 90%;
    }

    #popup-apr .form-text {
        width: 75%;
    }

    #popup-apr .game-text {
        margin-top: 13%;
        width: 90%;
    }

    #popup-apr .popup-form,
    #popup-apr .popup-inner {
        width: 100%;
    }

    #popup-apr .bg-video-game {
        width: auto;
        height: 100%;
        max-width: 400px;
        max-height: 640px;
        left: 50%;
        transform: translateX(-50%);
    }

    #popup-apr .popup-flower {
        width: 100%;
        height: 50%;
        bottom: 0;
        left: 0;
    }

    #popup-apr .popup-game {
        justify-content: flex-start;
    }
}