.popup {
    position: fixed;
    display: block;
    display: -ms-flexbox;
    /* display: flex; */
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 250ms 700ms ease;
}
.popup::before {
    content: "";
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #96c9f4;
    background-image: url(../../bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.popup--active.popup {
    pointer-events: auto;
    opacity: 1;
    transition: all 300ms ease-in-out;
}

.popup-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    min-height: 240px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 30px;
    border: 2px solid #fc7cf5;;
    overflow: hidden;
    padding-bottom: 20px;
    background-color: #fff;
    -ms-flex-item-align: center;
    align-self: center;
    box-shadow: 0 12px 25px 0 rgba(199, 175, 189, .25);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 250ms 250ms ease, transform 300ms 250ms ease;
}

.popup-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.popup-wrap p {
    padding: 20px 30px 0 30px;
}

.popup--active.popup .popup-wrap {
    opacity: 1;
    transform: scale(1);
    transition: opacity 250ms 500ms ease, transform 350ms 500ms ease;
}

#prize-text {
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4em;
    text-align: center;
    margin-bottom: 15px;
}

.popup-wrap .title {
    display: block;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.4em;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f495dc;
}

.btn-close-pushable {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-top: 2rem;
}

.btn-close-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition:
    transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

.btn-close-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    hsl(0, 0%, 32%) 0%,
    hsl(0, 0%, 57%) 8%,
    hsl(0, 0%, 56%) 92%,
    hsl(0, 0%, 60%) 100%
  );
}

.btn-close-front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: rgb(255, 255, 255);
    border: 2px solid #fc7cf5;
    background: hsl(315, 81%, 77%);
    will-change: transform;
    transform: translateY(-4px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-close-pushable:hover {
  filter: brightness(110%);
  -webkit-filter: brightness(110%);
}

.btn-close-pushable:hover .btn-close-front {
  transform: translateY(-6px);
  transition:
    transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

.btn-close-pushable:active .btn-close-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.btn-close-pushable:hover .btn-close-shadow {
  transform: translateY(4px);
  transition:
    transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

.btn-close-pushable:active .btn-close-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.btn-close-pushable:focus:not(:focus-visible) {
  outline: none;
}

/* firework */
.pyro {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.pyro>.before,
.pyro>.after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff;
    -moz-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -webkit-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -o-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -ms-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
}

.pyro>.after {
    -moz-animation-delay: 1.25s, 1.25s, 1.25s;
    -webkit-animation-delay: 1.25s, 1.25s, 1.25s;
    -o-animation-delay: 1.25s, 1.25s, 1.25s;
    -ms-animation-delay: 1.25s, 1.25s, 1.25s;
    animation-delay: 1.25s, 1.25s, 1.25s;
    -moz-animation-duration: 1.25s, 1.25s, 6.25s;
    -webkit-animation-duration: 1.25s, 1.25s, 6.25s;
    -o-animation-duration: 1.25s, 1.25s, 6.25s;
    -ms-animation-duration: 1.25s, 1.25s, 6.25s;
    animation-duration: 1.25s, 1.25s, 6.25s;
}

@-webkit-keyframes bang {
    to {
        box-shadow: 81px -12.6666666667px #cc00ff, -92px -339.6666666667px #ff1a00, 31px -344.6666666667px #0088ff, -62px -242.6666666667px #55ff00, 198px -281.6666666667px #66ff00, -12px 53.3333333333px #a600ff, 29px -105.6666666667px #00d5ff, 16px -353.6666666667px #48ff00, 225px -203.6666666667px #00ffe1, 127px -348.6666666667px #003cff, 46px -405.6666666667px #f7ff00, 199px -388.6666666667px #1eff00, 212px -214.6666666667px #001aff, -203px -28.6666666667px #001aff, 103px -398.6666666667px aqua, -137px -197.6666666667px #ff0026, -88px -362.6666666667px #ff00fb, 48px -361.6666666667px #4d00ff, -129px -338.6666666667px #80ff00, -178px -210.6666666667px #00ff99, -185px -136.6666666667px #ff00d0, 11px -334.6666666667px #ff00bf, -229px 57.3333333333px #00ff5e, 191px 56.3333333333px #0095ff, 149px -315.6666666667px #00ffb3, -24px -338.6666666667px #ff8800, 157px 65.3333333333px #0091ff, 234px -94.6666666667px #ff00ae, 78px 16.3333333333px #ff003c, -199px -81.6666666667px #ff0051, -134px -393.6666666667px #ffea00, -94px -331.6666666667px #00e6ff, 18px -4.6666666667px #ff0009, -167px -335.6666666667px #ff00c4, 161px -157.6666666667px #00ffa6, -25px -232.6666666667px #0004ff, 122px -255.6666666667px #ff3300, -8px -290.6666666667px #00f7ff, -19px 35.3333333333px #d900ff, 238px -340.6666666667px #4800ff, 78px -40.6666666667px #ff2600, -49px -137.6666666667px #1100ff, 129px -310.6666666667px #00ff73, -124px 32.3333333333px #ff0037, 131px -159.6666666667px #ff3300, -112px -268.6666666667px #ffd500, -215px 5.3333333333px #006fff, -223px -38.6666666667px #e600ff, -163px -415.6666666667px #b3ff00, -68px -297.6666666667px #95ff00, -167px 23.3333333333px #ff6f00;
    }
}

@-moz-keyframes bang {
    to {
        box-shadow: 81px -12.6666666667px #cc00ff, -92px -339.6666666667px #ff1a00, 31px -344.6666666667px #0088ff, -62px -242.6666666667px #55ff00, 198px -281.6666666667px #66ff00, -12px 53.3333333333px #a600ff, 29px -105.6666666667px #00d5ff, 16px -353.6666666667px #48ff00, 225px -203.6666666667px #00ffe1, 127px -348.6666666667px #003cff, 46px -405.6666666667px #f7ff00, 199px -388.6666666667px #1eff00, 212px -214.6666666667px #001aff, -203px -28.6666666667px #001aff, 103px -398.6666666667px aqua, -137px -197.6666666667px #ff0026, -88px -362.6666666667px #ff00fb, 48px -361.6666666667px #4d00ff, -129px -338.6666666667px #80ff00, -178px -210.6666666667px #00ff99, -185px -136.6666666667px #ff00d0, 11px -334.6666666667px #ff00bf, -229px 57.3333333333px #00ff5e, 191px 56.3333333333px #0095ff, 149px -315.6666666667px #00ffb3, -24px -338.6666666667px #ff8800, 157px 65.3333333333px #0091ff, 234px -94.6666666667px #ff00ae, 78px 16.3333333333px #ff003c, -199px -81.6666666667px #ff0051, -134px -393.6666666667px #ffea00, -94px -331.6666666667px #00e6ff, 18px -4.6666666667px #ff0009, -167px -335.6666666667px #ff00c4, 161px -157.6666666667px #00ffa6, -25px -232.6666666667px #0004ff, 122px -255.6666666667px #ff3300, -8px -290.6666666667px #00f7ff, -19px 35.3333333333px #d900ff, 238px -340.6666666667px #4800ff, 78px -40.6666666667px #ff2600, -49px -137.6666666667px #1100ff, 129px -310.6666666667px #00ff73, -124px 32.3333333333px #ff0037, 131px -159.6666666667px #ff3300, -112px -268.6666666667px #ffd500, -215px 5.3333333333px #006fff, -223px -38.6666666667px #e600ff, -163px -415.6666666667px #b3ff00, -68px -297.6666666667px #95ff00, -167px 23.3333333333px #ff6f00;
    }
}

@-o-keyframes bang {
    to {
        box-shadow: 81px -12.6666666667px #cc00ff, -92px -339.6666666667px #ff1a00, 31px -344.6666666667px #0088ff, -62px -242.6666666667px #55ff00, 198px -281.6666666667px #66ff00, -12px 53.3333333333px #a600ff, 29px -105.6666666667px #00d5ff, 16px -353.6666666667px #48ff00, 225px -203.6666666667px #00ffe1, 127px -348.6666666667px #003cff, 46px -405.6666666667px #f7ff00, 199px -388.6666666667px #1eff00, 212px -214.6666666667px #001aff, -203px -28.6666666667px #001aff, 103px -398.6666666667px aqua, -137px -197.6666666667px #ff0026, -88px -362.6666666667px #ff00fb, 48px -361.6666666667px #4d00ff, -129px -338.6666666667px #80ff00, -178px -210.6666666667px #00ff99, -185px -136.6666666667px #ff00d0, 11px -334.6666666667px #ff00bf, -229px 57.3333333333px #00ff5e, 191px 56.3333333333px #0095ff, 149px -315.6666666667px #00ffb3, -24px -338.6666666667px #ff8800, 157px 65.3333333333px #0091ff, 234px -94.6666666667px #ff00ae, 78px 16.3333333333px #ff003c, -199px -81.6666666667px #ff0051, -134px -393.6666666667px #ffea00, -94px -331.6666666667px #00e6ff, 18px -4.6666666667px #ff0009, -167px -335.6666666667px #ff00c4, 161px -157.6666666667px #00ffa6, -25px -232.6666666667px #0004ff, 122px -255.6666666667px #ff3300, -8px -290.6666666667px #00f7ff, -19px 35.3333333333px #d900ff, 238px -340.6666666667px #4800ff, 78px -40.6666666667px #ff2600, -49px -137.6666666667px #1100ff, 129px -310.6666666667px #00ff73, -124px 32.3333333333px #ff0037, 131px -159.6666666667px #ff3300, -112px -268.6666666667px #ffd500, -215px 5.3333333333px #006fff, -223px -38.6666666667px #e600ff, -163px -415.6666666667px #b3ff00, -68px -297.6666666667px #95ff00, -167px 23.3333333333px #ff6f00;
    }
}

@-ms-keyframes bang {
    to {
        box-shadow: 81px -12.6666666667px #cc00ff, -92px -339.6666666667px #ff1a00, 31px -344.6666666667px #0088ff, -62px -242.6666666667px #55ff00, 198px -281.6666666667px #66ff00, -12px 53.3333333333px #a600ff, 29px -105.6666666667px #00d5ff, 16px -353.6666666667px #48ff00, 225px -203.6666666667px #00ffe1, 127px -348.6666666667px #003cff, 46px -405.6666666667px #f7ff00, 199px -388.6666666667px #1eff00, 212px -214.6666666667px #001aff, -203px -28.6666666667px #001aff, 103px -398.6666666667px aqua, -137px -197.6666666667px #ff0026, -88px -362.6666666667px #ff00fb, 48px -361.6666666667px #4d00ff, -129px -338.6666666667px #80ff00, -178px -210.6666666667px #00ff99, -185px -136.6666666667px #ff00d0, 11px -334.6666666667px #ff00bf, -229px 57.3333333333px #00ff5e, 191px 56.3333333333px #0095ff, 149px -315.6666666667px #00ffb3, -24px -338.6666666667px #ff8800, 157px 65.3333333333px #0091ff, 234px -94.6666666667px #ff00ae, 78px 16.3333333333px #ff003c, -199px -81.6666666667px #ff0051, -134px -393.6666666667px #ffea00, -94px -331.6666666667px #00e6ff, 18px -4.6666666667px #ff0009, -167px -335.6666666667px #ff00c4, 161px -157.6666666667px #00ffa6, -25px -232.6666666667px #0004ff, 122px -255.6666666667px #ff3300, -8px -290.6666666667px #00f7ff, -19px 35.3333333333px #d900ff, 238px -340.6666666667px #4800ff, 78px -40.6666666667px #ff2600, -49px -137.6666666667px #1100ff, 129px -310.6666666667px #00ff73, -124px 32.3333333333px #ff0037, 131px -159.6666666667px #ff3300, -112px -268.6666666667px #ffd500, -215px 5.3333333333px #006fff, -223px -38.6666666667px #e600ff, -163px -415.6666666667px #b3ff00, -68px -297.6666666667px #95ff00, -167px 23.3333333333px #ff6f00;
    }
}

@keyframes bang {
    to {
        box-shadow: 81px -12.6666666667px #cc00ff, -92px -339.6666666667px #ff1a00, 31px -344.6666666667px #0088ff, -62px -242.6666666667px #55ff00, 198px -281.6666666667px #66ff00, -12px 53.3333333333px #a600ff, 29px -105.6666666667px #00d5ff, 16px -353.6666666667px #48ff00, 225px -203.6666666667px #00ffe1, 127px -348.6666666667px #003cff, 46px -405.6666666667px #f7ff00, 199px -388.6666666667px #1eff00, 212px -214.6666666667px #001aff, -203px -28.6666666667px #001aff, 103px -398.6666666667px aqua, -137px -197.6666666667px #ff0026, -88px -362.6666666667px #ff00fb, 48px -361.6666666667px #4d00ff, -129px -338.6666666667px #80ff00, -178px -210.6666666667px #00ff99, -185px -136.6666666667px #ff00d0, 11px -334.6666666667px #ff00bf, -229px 57.3333333333px #00ff5e, 191px 56.3333333333px #0095ff, 149px -315.6666666667px #00ffb3, -24px -338.6666666667px #ff8800, 157px 65.3333333333px #0091ff, 234px -94.6666666667px #ff00ae, 78px 16.3333333333px #ff003c, -199px -81.6666666667px #ff0051, -134px -393.6666666667px #ffea00, -94px -331.6666666667px #00e6ff, 18px -4.6666666667px #ff0009, -167px -335.6666666667px #ff00c4, 161px -157.6666666667px #00ffa6, -25px -232.6666666667px #0004ff, 122px -255.6666666667px #ff3300, -8px -290.6666666667px #00f7ff, -19px 35.3333333333px #d900ff, 238px -340.6666666667px #4800ff, 78px -40.6666666667px #ff2600, -49px -137.6666666667px #1100ff, 129px -310.6666666667px #00ff73, -124px 32.3333333333px #ff0037, 131px -159.6666666667px #ff3300, -112px -268.6666666667px #ffd500, -215px 5.3333333333px #006fff, -223px -38.6666666667px #e600ff, -163px -415.6666666667px #b3ff00, -68px -297.6666666667px #95ff00, -167px 23.3333333333px #ff6f00;
    }
}

@-webkit-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-moz-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-o-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-ms-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-webkit-keyframes position {

    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-moz-keyframes position {

    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-o-keyframes position {

    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-ms-keyframes position {

    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@keyframes position {

    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

.sunrise {
    position: absolute;
    display: block;
    width: 100vw;
    height: 100dvh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.sunrise svg {
    -webkit-transform-origin: center 50%;
    -moz-transform-origin: center 50%;
    -o-transform-origin: center 50%;
    transform-origin: center 50%;
    margin-top: -5%;
    position: relative;
    -webkit-transform: scale(5);
    -moz-transform: scale(5);
    -o-transform: scale(5);
    transform: scale(5);
    -webkit-animation: rotate 10s infinite linear;
    -moz-animation: rotate 10s infinite linear;
    -o-animation: rotate 10s infinite linear;
    animation: rotate 10s infinite linear;
}

@keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .btn-close-front {
        font-size: 1.25rem;
        padding: 12px 42px;
    }
}
@media (max-width: 515px) {
    .popup-wrap {
        max-width: calc(100% - 40px);
    }
}