.lottery-mask{
    position: fixed;
    width: 100%;
    height: 100%;
    font-size: 100px;
}
.lottery-mask .lottery-giftbox{
    position: absolute;
    left: 0;
    right: 0;
    top: 10%;
    width: 540px;
    height: 720px;
    max-height: 100%;
    padding-bottom: 180px;
    margin: 0 auto;
}
.lottery-mask .lottery-animation{
    width: 100%;
    height: 100%;
}
.lottery-mask .try{
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    width: 262px;
    height: 86px;
    background-image: url('../images/web1/lottery/try.png');
    background-size: cover;
    margin: 0 auto;
    cursor: pointer;
}
.lottery-mask .lottery-abu{
    display: none;
    position: absolute;
    right: -50px;
    bottom: -12px;
    height: 100px;
    width: 100px;
}
.lottery-mask .lottery-result {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 360px;
    height: 210px;
    background: #fff;
    border-radius: 20px;
    margin: auto;
    transform: scale(0.75);
}
.lottery-mask .lottery-result.default .lottery-abu,
.lottery-mask .lottery-result.star .lottery-abu{
    right: -10px;
    bottom: 0px;
}
.lottery-mask .lottery-result--header{
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    width: 340px;
    height: 170px;
    background-image: url(../images/web1/lottery/sorry_header.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
}
.lottery-mask .lottery-result--img{
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    width: 80px;
    height: 56px;
    background-image: url(../images/web1/lottery/sorry_icon.png);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto;
}
.lottery-mask .lottery-result--text{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    font-size: 16px;
    color: #66A3FF;
    text-align: center;
    margin: 0 auto;
}
.lottery-mask .lottery-result.default .lottery-result--header{
    background-image: url('../images/web1/lottery/default_header.png');
}
.lottery-mask .lottery-result.default .lottery-result--img{
    background-image: url('../images/web1/lottery/default_icon.png');
}
.lottery-mask .lottery-result.default .lottery-result--text{
    color: #FB5F30;
}
.lottery-mask .lottery-result.star .lottery-result--header{
    background-image: url('../images/web1/lottery/star_header.png');
}
.lottery-mask .lottery-result.star .lottery-result--img{
    background-image: url('../images/web1/lottery/star_icon.png');
}
.lottery-mask .lottery-result.star .lottery-result--text{
    color: #FB5F30;
}

/* 抽奖结果 */
.lottery-mask.gift-opened .lottery-giftbox{
    padding-bottom: 0;
    max-width: none;
    max-height: 100%;
}
.lottery-mask.gift-opened .try{
    display: none;
}
.lottery-mask.gift-opened .lottery-abu{
    display: block;
}
.lottery-mask.gift-opened .lottery-result{
    animation: turnBig 1s ease 0s 1;
    animation-fill-mode: forwards;
}

@media only screen and (max-width: 500px) {
    .lottery-mask .lottery-giftbox{
        width: 100%;
        height: 70%;
        top: auto;
        bottom: 0;
        padding-bottom: 100px;
    }
    .lottery-mask .try{
        width: 200px;
        height: 66px;
        bottom: 50px;
    }
    .lottery-mask .lottery-result{
        top: auto;
        bottom: 40px;
    }
}

@keyframes turnBig {
    from {
        transform: scale(.75);
    }
    to {
        transform: scale(1);
    }
}