@charset "UTF-8";
/* top */
.game_area{
    background: url(/assets/img/game/joypico/spotdiff/pc/game_bg.png) no-repeat center center !important;
    background-size: cover !important;
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}
.bg_police{
    & img{
        max-width: 130px;
        position: absolute;
        top: 350px;
        right: -30px;
        z-index: 2;
        animation: policeShake 1.5s linear infinite;
    }
}

@keyframes policeShake {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-1px); }
    45%  { transform: translateY(1px); }
    75%  { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}
.bg_city{
    position: absolute;
    bottom: 51px;
    width: 100%;
    height: 300px;
    background: url(/assets/img/game/joypico/spotdiff/pc/city.png) repeat-x bottom;
    background-size: auto 100px;
    animation: cityMove 100s linear infinite;
    z-index: 1;
}

@keyframes cityMove{
    from { background-position: 0 bottom; }
    to   { background-position: 1000px bottom; } /* ← プラスで右へ */
}
.game_start{
    position: relative;
    z-index: 3;
}
.title{
    width: 320px !important;
}
.title_text{
    text-align: left;
    margin-left: 20px;
    width: 90%;
}
.start_btn,.result_btn{
    & img {
    max-width: 440px;
    margin: 0 auto;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  &:hover img {
    transform: translateY(3px);
    opacity: 1 !important;
  }
  &:hover{
    opacity: 1 !important;
  }
  &:active img {
    transform: translateY(6px);
  }
}

/* play */
.stop_bg{
    background: url(/assets/img/game/joypico/spotdiff/pc/bg.png) no-repeat center center !important;
    background-size: cover !important;
}
.timeup_title{
    max-width: 280px;
    margin: 140px auto 100px;
}

/* result */
.result_title{
    max-width: 260px;
    margin: 20px auto 15px;
}
.bigtxt{
    color: #ffd788;
    font-size: 1.3em;
}
.smalltxt{
    font-size: 0.8em;
    color: #ffd788;
}
.btn_two{
    display: flex;
    width: 90%;
    margin: 25px auto 0;
    & img {
    max-width: 300px;
    }
}
.result_text{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 77%;
    font-size: 18px;
    line-height: 1.6em;
    margin: 20px auto 25px;
    background-color: rgba(9, 9, 34, 0.8);
    padding: 20px 30px;
    border-radius: 20px;
    color: #fff;
    border: 3px solid #f9d983;
    & img{
        max-width: 70px;
    }
}


/* play */
#box {
    width: 400px;
    height: 400px;
    margin: 0 auto;
}
#score {
    float: left;
    line-height: 150%;
    font-size: 26px;
}
#timer {
    float: right;
    line-height: 150%;
    font-size: 30px;
    text-align: right;
}
#gameOver {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 3em;
    text-align: center;
    padding-top: 20%;
}
.creat {
    float: left;
    border-radius: 100%;
}
.game_area {
    & .timeup_title{
        width: 500px;
        padding: 110px 0 70px;
        margin: 0 auto;
    }
    & .play_area {
        color: #090d25;
        background-color: #fff;
        margin: 0 auto;
        width: 440px;
        & .game_head{
            display: flex;
            justify-content: center;
            align-items: center;;
            margin: 0 auto;
            padding: 5px 15px;
            & #score{
                font-size: 14px;
                width: 26%;
                font-weight: 700;
            }
            & #timer{
                background-image: url(/assets/img/game/joypico/spotdiff/pc/ui_window.png);
                background-size: cover;
                width: 68%;
                height: 30px;
                & #time_gauge time{
                    background: #7bcb67;
                    height: 8px;
                    width: 216px;
                    display: block;
                    top: 14px;
                    margin-left: 55px;
                    position: absolute;
                }
            }
        }
    }
}

/* earn */
.earn_text{
    width: 77%;
    font-size: 18px;
    line-height: 1.6em;
    margin: 15px auto 30px;
    background-color: rgba(9, 9, 34, 0.8);
    padding: 20px 30px;
    border-radius: 20px;
    color: #fff;
    border: 3px solid #f9d983;
}
.ex_text{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 77%;
    font-size: 18px;
    line-height: 1.6em;
    margin: 10px auto 20px;
    background-color: rgba(9, 9, 34, 0.8);
    padding: 20px 30px;
    border-radius: 20px;
    color: #fff;
    border: 3px solid #f9d983;
    & img{
        max-width: 70px;
    }
}