﻿button{
  outline: none !important;
}

.game-kv{
	position: relative;
}

.game-gacha {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-top: -18%;
}

.game-gacha .game-gacha-bn img{
    width: 80%;
    margin-bottom: 15%;
}

.gachapon {
    position: relative;
    width: 35%;
    height: 100%;
}

.gachapon .gachapon-bg{
	position: relative;
	width: 100%;
	height: auto;
	padding-top: 120%;
	background: url(../../../images/gachapon/background.png) no-repeat center center;
	background-size: 100%;
	margin: 0 auto;
}

.gachapon .gachapon-bg .gachapon-shiny{
  position: absolute;
  width: 71.8%;
  height: 13.9%;
  top: 2.5%;
  left: 14.2%;
}

.gachapon .gachapon-bg .gachapon-shiny > div{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0px 0px 10px 1px #F7F134;
  animation: gachapon_shiny_border .8s linear infinite alternate;
  -webkit-animation: gachapon_shiny_border .8s linear infinite alternate;
}

.gachapon .gachapon-bg .gachapon-shiny > div::before,
.gachapon .gachapon-bg .gachapon-shiny > div::after{
  position: absolute;
  content: '';
  display: block;
  width: 2%;
  height: 2%;
  border-radius: 50%;
  background-color: #fff;
  top: 3%;
  left: -1%;
  box-shadow: 0px 0px 12px 10px #F7F134;
}

.gachapon .gachapon-bg .gachapon-shiny > div::before{
  animation: gachapon_shiny 3s linear infinite;
  -webkit-animation: gachapon_shiny 3s linear infinite;
}

.gachapon .gachapon-bg .gachapon-shiny > div::after{
  animation: gachapon_shiny 3s .3s linear infinite;
  -webkit-animation: gachapon_shiny 3s .3s linear infinite;
}

.gachapon .gachapon-bg .gachapon-btn{
    width: 25%;
    height: 21.5%;
    background: url(../../../images/gachapon/roll.png?v=1) no-repeat center center;
    background-size: 100%;
    position: absolute;
    bottom: 6.5%;
    right: 23%;
    border: 0;
    padding: 0;
    cursor: pointer;
    animation: gachapon_btn 1s linear infinite alternate;
    -webkit-animation: gachapon_btn 1s linear infinite alternate;
}

.gachapon .gachapon-bg .gachapon-btn.rotating{ 
	animation: gachapon_rotating .8s ease-in-out 3;
	-webkit-animation: gachapon_rotating .8s ease-in-out 3;
}

.gachapon .gachapon-bg .gachapon-prize{
    position: absolute;
    width: 24%;
    height: 21%;
    bottom: 9%;
    left: 25%;
    z-index: 1;
}

.gachapon .gachapon-bg .gachapon-prize::after{
    content: '';
    width: 90%;
    height: 32%;
    background: url(../../../images/gachapon/undercover.png?v=1) no-repeat center center;
    background-size: 100%;
    position: absolute;
    bottom: -4%;
    left: 2%;
}

/*.gachapon .gachapon-bg .gachapon-prize::before {
    content: '';
    width: 80%;
    height: 80%;
    background: url(../../../images/gachapon/click_me.png?v=1) no-repeat center center;
    background-size: 100%;
    position: absolute;
    z-index: 1;
    right: -50%;
    top: -35%;
    animation: gachapon_arrow .4s linear infinite alternate;
    -webkit-animation: gachapon_arrow .4s linear infinite alternate;
}*/

.gachapon .gachapon-bg .gachapon-prize .ball{
	width: 75%;
    height: 75%;
    position: absolute;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100%;
    left: 9%;
    top: 5%;
	animation: gachapon_prize 0.5s normal both;
	-webkit-animation: gachapon_prize 0.5s normal both;
}

/*.gachapon .gachapon-bg .gachapon-prize > svg{
  width: 135%;
  transform: translate(-13%, -13%);
}

.gachapon .gachapon-bg .gachapon-prize > svg circle{
  fill: #fff;
}

.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(2),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(10){
  animation: gachapon_shiny_circle .5s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(3),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(11){
  animation: gachapon_shiny_circle .5s .5s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s .5s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(4),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(12){
  animation: gachapon_shiny_circle .5s 1s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 1s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(5),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(13){
  animation: gachapon_shiny_circle .5s 1.5s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 1.5s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(6),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(14){
  animation: gachapon_shiny_circle .5s 2s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 2s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(7),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(15){
  animation: gachapon_shiny_circle .5s 2.5s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 2.5s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(8),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(16){
  animation: gachapon_shiny_circle .5s 3s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 3s linear infinite alternate;  
}
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(9),
.gachapon .gachapon-bg .gachapon-prize > svg circle:nth-child(17){
  animation: gachapon_shiny_circle .5s 3.5s linear infinite alternate;
  -webkit-animation: gachapon_shiny_circle .5s 3.5s linear infinite alternate;  
}*/


.gachapon .gachapon-balls{
	position: absolute;
	top: 19%;
	left: 12.4%;
	width: 75.5%;
	height: 52.5%;
}

.gachapon .gachapon-balls ul{
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/*.gachapon .gachapon-balls ul::after{
    content: '';
    width: 100%;
    height: 101%;
    position: absolute;
	background: url(../../../images/gachapon/cover.png?v=1) no-repeat center center;
	background-size: 100%;
	left: 0;
	top: 0;
}*/

.gachapon .gachapon-balls ul li{
	position: absolute;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100%;
	width: 27%;
	height: 33%;
}

.gachapon .gachapon-bg .gachapon-text{
    position: absolute;
    width: 70%;
    height: 5%;
    bottom: 1%;
    left: 15%;
}

.gachapon .gachapon-bg .gachapon-text:before {
    content: '';
    width: 80%;
    height: 100%;
    background: url(../../../images/gachapon/text.gif) no-repeat center center;
    background-size: 100%;
    position: absolute;
    bottom: 0px;
    left: 10%;
}


/* --Modal------------------------------------- */

#gachaponModal.modal .modal-dialog {
    background-color: transparent;
}

#gachaponModal .modal-content {
    background-color: #fffcd9;
    border: 5px solid #fee836;
    border-radius: 40px;
    position: relative;
}

#gachaponModal .modal-content::after {
    content: '';
    width: 462px;
    height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    z-index: -1;
    left: 50%;
    transform: translateX(-50%);
}

#gachaponModal .modal-content.color-1::after {
    background-image: url(../../../images/gachapon/egg1_open.png);
}

#gachaponModal .modal-content.color-2::after {
    background-image: url(../../../images/gachapon/egg2_open.png);
}

#gachaponModal .modal-content.color-3::after {
    background-image: url(../../../images/gachapon/egg3_open.png);
}

#gachaponModal .modal-content.color-4::after {
    background-image: url(../../../images/gachapon/egg4_open.png);
}

#gachaponModal .modal-header {
    border-bottom: none;
}

#gachaponModal .modal-header .close {
    font-size: 2rem;
    color: #ffd200;
    text-shadow: none;
}

#gachaponModal .modal-body {
    font-size: 18px;
    padding: 0.3rem;
    color: #6d0000;
    text-align: center;
    font-weight: bold;
}

#gachaponModal .modal-body > p {
    margin: 1rem 0 0 0;
    color: #ff1c47;
}

#gachaponModal .modal-footer {
    border-top: none;
    justify-content: center;
    padding: 1rem 1rem 2rem;
}

#gachaponModal .modal-footer .btn {
    border-top: none;
    text-align: center;
    min-width: 120px;
    font-size: 16px;
    padding: .6rem .75rem;
    background-color: #ffd200;
    color: #6d0000;
    border: none;
    font-weight: bold;
    border-radius: 40px;
    -webkit-animation: modal_btn 1s infinite linear;
    animation: modal_btn 1s infinite linear;
}


/* --手機版型------------------------------------- */

@media screen and (max-width: 736px) {
  body{
    background-color: transparent;
    /*background-image: url("../images/mb-bg.jpg");*/
    background-size: contain;
    background-attachment: fixed;
  }
  #CONTENT-1-bg1{
/*    background-image: none;*/
  }

    .game-gacha {
        margin-top: -55%;
    }

  .game-gacha .game-gacha-bn{
      display: none;
  }

	.gachapon{
        width: 80%;
	}

	.gachapon .gachapon-ball ul{
		height: 100%
	}

  .gachapon .gachapon-bg .gachapon-shiny > div::before,
  .gachapon .gachapon-bg .gachapon-shiny > div::after{
    box-shadow: 0px 0px 8px 5px #F7F134;
  }

    #gachaponModal .modal-content::after {
        width: 320px;
        height: 415px;
        top: 50%;
    }

    .gachapon-loader,
    .gachapon-loader:after {
        border-radius: 50%;
        width: 10em;
        height: 10em;
    }

    .gachapon-loader {
        font-size: 5px;
        position: absolute;
        text-indent: -9999em;
        border-top: 1.1em solid rgba(255, 255, 255, 0.2);
        border-right: 1.1em solid rgba(255, 255, 255, 0.2);
        border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
        border-left: 1.1em solid #ffffff;
        -webkit-transform: translateZ(0);
        -ms-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-animation: load8 1.1s infinite linear;
        animation: load8 1.1s infinite linear;
        left: 41%;
        top: 45%;
    }


    @-webkit-keyframes load8 {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
        }
    }

    @keyframes load8 {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
        }
    }

}



/* --動畫------------------------------------- */

@keyframes modal_btn {
    0%,20% {
        transform: scale(1);
    }
    10%,30% {
        transform: scale(1.05);
    }
    40%,100% {
        transform: rotate(1);
    }
}
@keyframes gachapon_btn {
  0% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(25deg);
  }
}
@keyframes gachapon_rotating {
  0% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(370deg);
  }
}
@keyframes gachapon_prize {
  0% {
  	top: 5%;
    transform: rotate(0deg);
  }
  80%, 100% {
  	top: 28%;
    transform: rotate(30deg);
  }
}
/*@keyframes gachapon_shiny_border {
  0%{
    box-shadow: 0px 0px 10px 5px #fff;
  }
  100% {
    box-shadow: 0px 0px 10px 5px transparent;
  }
}
@keyframes gachapon_shiny {
  0%, 100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translateX(5000%);
  }
  40%,60% {
    transform: translate(5000%, 5000%);
  }
  90% {
    transform: translate(0, 5000%);
  }
}
@keyframes gachapon_shiny_circle {
  0%{
    fill: #fff;
  }
  100% {
    fill: #ff9e00;
  }
}*/
@keyframes gachapon_arrow {
    0%, 50%, 100% {
        transform: translate(0, 0);
    }
    25%{
        transform: translate(4%, 4%);
    }
}




/* --球的位置------------------------------------- */

.gachapon .gachapon-balls ul li:nth-child(1) {
    bottom: 28%;
    left: 2%;
    transform: rotate(20deg);
}
.gachapon .gachapon-balls ul li:nth-child(2) {
    bottom: 0%;
    left: 11%;
    transform: rotate(-20deg);
}
.gachapon .gachapon-balls ul li:nth-child(3) {
    bottom: 28%;
    left: 22%;
    transform: rotate(10deg);
}
.gachapon .gachapon-balls ul li:nth-child(4) {
    bottom: 5%;
    left: 38%;
    transform: rotate(20deg);
}
.gachapon .gachapon-balls ul li:nth-child(5) {
    bottom: 3%;
    right: 10%;
    transform: rotate(-10deg);
}
.gachapon .gachapon-balls ul li:nth-child(6) {
    bottom: 32%;
    right: 3%;
    transform: rotate(-30deg);
}
.gachapon .gachapon-balls ul li:nth-child(7) {
    bottom: 55%;
    left: 36%;
    transform: rotate(20deg);
}
.gachapon .gachapon-balls ul li:nth-child(8) {
    bottom: 53%;
    left: 59%;
    transform: rotate(5deg);
}
.gachapon .gachapon-balls ul li:nth-child(9) {
    bottom: 32%;
    left: 47%;
    transform: rotate(-5deg);
}
.gachapon .gachapon-balls ul li:nth-child(10) {
    bottom: 50%;
    left: 10%;
    transform: rotate(30deg);
}

/* --球的顏色------------------------------------- */

.gachapon .gachapon-balls ul li.color-1,
.gachapon .gachapon-bg .gachapon-prize .ball.color-1{
  background-image: url(../../../images/gachapon/egg1.png);
}
.gachapon .gachapon-balls ul li.color-2,
.gachapon .gachapon-bg .gachapon-prize .ball.color-2{
  background-image: url(../../../images/gachapon/egg2.png);
}
.gachapon .gachapon-balls ul li.color-3,
.gachapon .gachapon-bg .gachapon-prize .ball.color-3{
  background-image: url(../../../images/gachapon/egg3.png);
}
.gachapon .gachapon-balls ul li.color-4,
.gachapon .gachapon-bg .gachapon-prize .ball.color-4{
  background-image: url(../../../images/gachapon/egg4.png);
}

/* --球的動畫------------------------------------- */

.gachapon .gachapon-balls ul.play-1 li:nth-child(1){
  animation: gachapon_play_1_1 1s normal both;
  -webkit-animation: gachapon_play_1_1 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(2){
  animation: gachapon_play_1_2 1s normal both;
  -webkit-animation: gachapon_play_1_2 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(3){
  animation: gachapon_play_1_3 1s normal both;
  -webkit-animation: gachapon_play_1_3 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(4){
  animation: gachapon_play_1_4 1s normal both;
  -webkit-animation: gachapon_play_1_4 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(5){
  animation: gachapon_play_1_5 1s normal both;
  -webkit-animation: gachapon_play_1_5 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(6){
  animation: gachapon_play_1_6 1s normal both;
  -webkit-animation: gachapon_play_1_6 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(7){
  animation: gachapon_play_1_7 1s normal both;
  -webkit-animation: gachapon_play_1_7 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(8){
  animation: gachapon_play_1_8 1s normal both;
  -webkit-animation: gachapon_play_1_8 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(9){
  animation: gachapon_play_1_9 1s normal both;
  -webkit-animation: gachapon_play_1_9 1s normal both;  
}
.gachapon .gachapon-balls ul.play-1 li:nth-child(10){
  animation: gachapon_play_1_10 1s normal both;
  -webkit-animation: gachapon_play_1_10 1s normal both; 
}

@keyframes gachapon_play_1_3 {
  0% {
  	bottom: 28%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
  	bottom: 28%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
  	bottom: 28%;
    transform: rotate(-10deg) translate3d(4px, 0, 0);
  }
  30% {
    transform: rotate(-30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
  	bottom: 13%;
    transform: rotate(-40deg) translate3d(4px, 0, 0);
  }
}
@keyframes gachapon_play_1_7 {
  0% {
  	bottom: 55%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
  	bottom: 55%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
  	bottom: 55%;
    transform: rotate(10deg) translate3d(4px, 0, 0);
  }
  30% {
    transform: rotate(30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
  	bottom: 48%;
  	left: 29%;
    transform: rotate(40deg) translate3d(4px, 0, 0);
  }
}
@keyframes gachapon_play_1_9 {
  0% {
  	bottom: 32%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
  	bottom: 32%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
  	bottom: 32%;
    transform: rotate(10deg) translate3d(4px, 0, 0);
  }
  30% {
    transform: rotate(30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
  	bottom: 28%;
  	left: 45%;
    transform: rotate(40deg) translate3d(4px, 0, 0);
  }
}
@keyframes gachapon_play_1_4 {
  0% {
    bottom: 5%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
    bottom: 5%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
    bottom: 5%;
    transform: rotate(-10deg) translate3d(4px, 0, 0);
  }
  30% {
    transform: rotate(-30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
    bottom: 4%;
    left: 35%;
    transform: rotate(-40deg) translate3d(4px, 0, 0);
  }
}
@keyframes gachapon_play_1_10 {
  0% {
    left: 10%;
    bottom: 50%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
    left: 10%;
    bottom: 50%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
    left: 10%;
    bottom: 50%;
    transform: rotate(10deg) translate3d(4px, 0, 0);
  }
  30% {
    left: 10%;
    bottom: 50%;
    transform: rotate(30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
    left: 5%;
    bottom: 40%;
    transform: rotate(40deg) translate3d(4px, 0, 0);
  }
}
@keyframes gachapon_play_1_5 {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  20%{
    transform: rotate(0deg) translate3d(-2px, 0, 0);
  }
  40% {
    transform: rotate(-20deg) translate3d(2px, 0, 0);
  }
  60%, 100% {
    transform: rotate(-30deg) translate3d(-2px, 0, 0);
  }
}
@keyframes gachapon_play_1_6 {
  0% {
    bottom: 32%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  20%{
    bottom: 32%;
    transform: rotate(0deg) translate3d(-2px, 0, 0);
  }
  40% {
    bottom: 32%;
    transform: rotate(20deg) translate3d(2px, 0, 0);
  }
  60%, 100% {
    bottom: 30%;
    transform: rotate(30deg) translate3d(-2px, 0, 0);
  }
}
@keyframes gachapon_play_1_8 {
  0% {
    bottom: 53%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  20%{
    bottom: 53%;
    transform: rotate(0deg) translate3d(-2px, 0, 0);
  }
  40% {
    bottom: 53%;
    transform: rotate(-20deg) translate3d(2px, 0, 0);
  }
  60%, 100% {
    bottom: 52%;
    left: 51%;
    transform: rotate(-30deg) translate3d(-2px, 0, 0);
  }
}
@keyframes gachapon_play_1_2 {
  0%,15% {
    bottom: 0%;
    left: 11%;
    transform: rotate(-20deg) translate3d(0, 0, 0);
  }
  5%, 25%{
    bottom: 0%;
    left: 11%;
    transform: rotate(-30deg) translate3d(-2px, 0, 0);
  }
  100% {
    bottom: -30%;
    left: 11%;
    transform: rotate(50deg) translate3d(2px, 0, 0);
  }
}
@keyframes gachapon_play_1_1 {
  0% {
    bottom: 28%;
    left: 2%;
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  10%,25%{
    bottom: 28%;
    left: 2%;
    transform: rotate(0deg) translate3d(-4px, 0, 0);
  }
  20% {
    bottom: 28%;
    left: 2%;
    transform: rotate(10deg) translate3d(4px, 0, 0);
  }
  30% {
    transform: rotate(30deg) translate3d(4px, 0, 0);
  }
  70%, 100% {
    bottom: 10%;
    left: 0;
    transform: rotate(40deg) translate3d(4px, 0, 0);
  }
}