@charset "utf-8";

/* img {backface-visibility:hidden; will-change:transform;} */

/***** 인트로 *****/
#intro .intro-title {top:78px; z-index:50; transform:translate(-50%, calc(-100% - 100px));}
.game-wrp > .bg {position:absolute; top:0; left:0; width:100%; height:100%; background:pink url(../img/game06/bg_game06.jpg) no-repeat top center / auto 100%;}


#intro .intro-obj01 {position:absolute; z-index:20; top:68px; left:20px; width:336px; height:347px; transform:unset; background:url(../img/game06/intro_obj01_01.png) no-repeat center center / cover;}
#intro .intro-obj01 .intro-obj0102 {padding:18px 0; display:flex; justify-content:center; align-items:center; position:absolute; top:100px; left:84px; width:221px; height:67px; transform:translate(0, 0); background:url(../img/game06/intro_obj01_02.png) no-repeat center center / cover;}
#intro .intro-obj01 .intro-obj0102 span {display:inline-block; text-align:center; line-height:35px; font-family:'yg-jalnan'; font-size:0px; margin-top:2px; color:#575757;
    width:121px; height:49px;
    background:url(../img/game06/intro_obj0102_txt01.png) no-repeat center center / cover;
    animation: neon 2s .75s ease-out forwards;
}
.game06 .intro-char {
    position:absolute; z-index:30; left:268px; bottom:112px; transform:unset; width:236px; height:262px;
    animation:introChar 2.5s ease-in forwards;
}
.game06 .intro-char .head {
    position:absolute; z-index:100; top:7px; left:50%; transform:translateX(-50%); margin-left:-8px; width:206px; height:163px; background:url(../img/game06/intro-char-head.png) no-repeat center center / contain; 
    animation:shakeHead 3.5s ease-in-out infinite;
}
.game06 .intro-char .body {width:212px; height:111px; position:absolute; z-index:99; bottom:0; left:14px; background:url(../img/game06/ending/ending-char-body01.svg) no-repeat center center / contain; animation:bodyChange 1s steps(1) infinite;}
.game06 .intro-char .body + .intro-char-shadow {position:absolute; z-index:98; bottom:-10px; left:50%; transform:translateX(-50%); margin-left:-13px; width:162px; height:32px; background:rgba(0,0,0,.2); border-radius:50%;}
@keyframes neon {
    0% {background:url(../img/game06/intro_obj0102_txt01.png) no-repeat center center / cover;}
    10% {background:url(../img/game06/intro_obj0102_txt02.png) no-repeat center center / cover;}
    15% {background:url(../img/game06/intro_obj0102_txt01.png) no-repeat center center / cover;}
    20% {background:url(../img/game06/intro_obj0102_txt02.png) no-repeat center center / cover;}
    25% {background:url(../img/game06/intro_obj0102_txt01.png) no-repeat center center / cover;}
    60% {background:url(../img/game06/intro_obj0102_txt02.png) no-repeat center center / cover;}
    65% {background:url(../img/game06/intro_obj0102_txt01.png) no-repeat center center / cover;}
    75% {background:url(../img/game06/intro_obj0102_txt02.png) no-repeat center center / cover;}
    100% {background:url(../img/game06/intro_obj0102_txt02.png) no-repeat center center / cover;}
}

.btn-start {background:#FDA600; border-color:#FFCC6A; box-shadow:0px 8px #FF900A !important;}
.icon-close {background-color:#2871FF;}
@keyframes introChar {
    0% {offset-path:path('M -75 21 Q 90 73, 125 119'); offset-distance:0%; offset-rotate:0deg; transform:scale(0.5);}
    100% {offset-path:path('M -75 21 Q 90 73, 125 119'); offset-distance:100%; offset-rotate:0deg; transform:scale(1);}
}
@keyframes shakeHead {
    0% {transform:translateX(-50%) rotate(0deg); }
    25% {transform:translateX(-52%) rotate(-4deg);}
    50% {transform:translateX(-48%) rotate(4deg);}
    75% {transform:translateX(-50%) rotate(0deg);}
    100% {transform:translateX(-50%) rotate(0deg);}
}

/***** 플레이 *****/
#round > .bg {position:absolute; top:0; left:50%; width:100%; height:100%; background:pink url(../img/game06/bg_round.jpg) no-repeat top center / auto 100%;}
.icon-home {background-color:#2871FF; box-shadow: 2px 2px #003CB2}
#round .bx {top:75px; bottoM:75px;}

/* .game06 .round-char{left:55px; bottom:42px} */
.game06 .round-char {width:215px; height:230px; z-index:100; left:5px; bottom:15px; transform:translateX(0); transition:left .3s;}
.game06 .round-char .head {position:absolute; z-index:100; top:0; left:50%; transform:translateX(-50%); margin-left:-8px; width:180px; height:140px; background:url(../img/game06/intro-char-head.png) no-repeat center center / contain; animation:shakeHead 3.5s ease-in-out infinite;}
.game06 .round-char .body {width:200px; height:104px; position:absolute; z-index:99; bottom:0; left:14px; background:url(../img/game06/ending/ending-char-body01.svg) no-repeat center center / contain; animation:bodyChange 1s steps(1) infinite;}
/* .game06 .round-obj {width:77px; height:77px; background:url('../img/mg01/round_ball.png') no-repeat center center / cover; z-index:21; left:226px; bottom:86px; transform:translateX(0); animation:jumpBall 1s ease infinite; transition:left .3s;} */

.game06 .round-char.hide {left:-264px;}
.game06 .round-obj.hide {left:-264px;}

.answer-type-choice label>div {box-shadow:8px 8px #C0CBDB}
#round .bx-inner {border:12px solid #FFCC6A; box-shadow:0 10px #FF900A;}
.bx h3 {width:100%; text-align:left; color:#FDA600;}


/***** 엔딩 *****/
#ending > .bg {position:absolute; top:0; left:50%; width:100%; height:100%; background:pink url(../img/game06/bg_round.jpg) no-repeat top center / auto 100%;}

#ending .char .head {
    position:absolute; z-index:221; top:1px; left:50%; margin-left:-22px; transform:translateX(-50%);
    width:191px; height:151px; background:url(../img/game06/ending/ending-char-head.png) no-repeat center center / cover;
    animation:endingShakeHead 3.5s ease-in-out infinite;
}
#ending .char .body-shadow {position:absolute; z-index:98; bottom:-10px; left:50%; transform:translateX(-50%); margin-left:-13px; width:162px; height:32px; background:rgba(0,0,0,.2); border-radius:50%;}
#ending .char {position:absolute; z-index:200; width:220px; height:240px;}
#ending .char.ani01 {animation:endingChar 2.5s ease-in forwards;}

/* 애니메이션 생략 */
/* #ending .char.ani01.ani02 {animation:charAni02 1.6s ease-in forwards;}
#ending .char.ani01.ani02.ani03 {animation:charAni03 1s ease-in forwards;} */
#ending .char.ani01.ani03 {animation:charAni03 1s ease-in forwards;}

#ending .char .body {
    position:absolute; z-index:220; bottom:0; left:50%; transform:translateX(-50%);
    width:212px; height:111px;
    background:url(../img/game06/ending/ending-char-body01.svg) no-repeat center center / cover;
}
#ending .char .body.walking {animation:bodyChange 1s steps(1) infinite;}

#ending .char02 {position:absolute; z-index:200; right:440px; bottom:142px; left:unset; transform:unset; width:210px; height:232px;}
#ending .char02 .head {
    position:absolute; z-index:221; top:0; left:50%; transform:translateX(-50%);
    width:150px; height:134px; background:url(../img/game06/ending/ending-char02-head.png) no-repeat center center / cover;
    animation:shakeHeadSlow 4.5s ease-out infinite;
}
@keyframes shakeHeadSlow {
    0% {transform:translateX(-50%) rotate(0deg);}
    30% {transform:translateX(-52%) rotate(-4deg);}
    60% {transform:translateX(-48%) rotate(4deg);}
    100% {transform:translateX(-50%) rotate(0deg);}
}
#ending .char02 .body {
    position:absolute; z-index:220; bottom:0; left:50%; transform:translateX(-50%); margin-left:30px;
    width:182px; height:150px; background:url(../img/game06/ending/ending-char02-body.png) no-repeat center center / cover;
}
#ending .char02 .body-shadow {position:absolute; z-index:98; bottom:-12px; left:50%; transform:translateX(-50%); margin-left:22px; width:191px; height:31px; background:rgba(0,0,0,.2); border-radius:50%;}


/* 성공일때 엔딩페이지 애니메이션 */
#ending.success .char .head.face-result {top:2px; width:190px; height:150px; background: url(../img/game06/ending/ending-char-head-success.png) no-repeat center center / cover;}
#ending.success .char .body.openBox01 {z-index:222; width:212px; height:130px; background:url(../img/game06/ending/ending-char-body-success01.svg) no-repeat center center / cover;}
#ending.success .char .body.openBox02 {z-index:222; width:212px; height:130px; background:url(../img/game06/ending/ending-char-body-success02.svg) no-repeat center center / cover;}
#ending.success .char02 .head.face-result {background:url(../img/game06/ending/ending-char02-head-success.png) no-repeat center center / cover;}
@keyframes endingShakeHead {
    0% {transform:translateX(-50%) rotate(0deg);}
    33.3% {transform:translateX(-50%) rotate(-5deg);}
    66.6% {transform:translateX(-50%) rotate(5deg);}
    100% {transform:translateX(-50%) rotate(0deg);}
}
@keyframes endingChar {
    0% {offset-path:path('M -432 311 Q -322 349, -307 402'); offset-distance:0%; offset-rotate:0deg; transform:scale(0.5) rotate(0);}
    100% {offset-path:path('M -432 311 Q -322 349, -307 402'); offset-distance:100%; offset-rotate:0deg; transform:scale(0.75) rotate(0);}
}
/* 애니메이션 생략
@keyframes charAni02 {
    0% {offset-path:path('M -307 402 Q -190 410, -180 460'); offset-distance:0%; offset-rotate:0deg; transform:scale(0.75) rotate(0);}
    100% {offset-path:path('M -307 402 Q -190 410, -180 460'); offset-distance:100%; offset-rotate:0deg; transform:scale(1) rotate(0);}
}
@keyframes charAni03 {
    0% {offset-path:path('M -180 460 Q -145 460, -110 460'); offset-distance:0%; offset-rotate:0deg; transform:scale(1) rotate(0);}
    100% {offset-path:path('M -180 460 Q -145 460, -110 460'); offset-distance:100%; offset-rotate:0deg; transform:scale(1) rotate(0);}
} */
@keyframes charAni03 {
    0% {offset-path:path('M -307 402 Q -145 420, -110 460'); offset-distance:0%; offset-rotate:0deg; transform:scale(0.75) rotate(0);}
    100% {offset-path:path('M -307 402 Q -145 420, -110 460'); offset-distance:100%; offset-rotate:0deg; transform:scale(1) rotate(0);}
}
@keyframes bodyChange {
    0% {background:url(../img/game06/ending/ending-char-body01.svg) no-repeat center center / cover;}
    50% {background:url(../img/game06/ending/ending-char-body02.svg) no-repeat center center / cover;}
    100% {background:url(../img/game06/ending/ending-char-body01.svg) no-repeat center center / cover;}
}



.game-stage .result-txt {width:600px; height:200px; background:#FFF; position:absolute; z-index:101; transform:unset; top:115px; left:80px; border-radius:30px; border:6px solid #E0EDFF; box-shadow:8px 8px 0 0 #53A7F4; display:flex; justify-content:center; align-items:center; display:none;}
.game-stage .result-txt p {font-size:42px; line-height:63px; color:#2847EA; text-align:center;}
.game-stage.fail .result-txt {border:6px solid #FFC7CA; box-shadow:8px 8px 0 0 #EA7080;}
.game-stage.fail .result-txt p {color:#FA6377;}
.game-stage.fail .result-txt p + span {display:block; font-size:28px; line-height:42px; margin-top:8px; color:#575F6F;}

#wrap .finish .btn-reset {z-index:104; background:#FF7C1D; border:4px solid #FFA463; box-shadow:0px 8px 0px 0px #E45200!important;}

/* game06 */
.game06 .result-ai.wrong p, [data-page="2"] .result-ai.wrong p{bottom: 185px;left: 188px;}
.game06 .result-ai.correct p, [data-page="2"] .result-ai.correct p {bottom: 207px;left: 200px;}


/* .overlay 닫힘 후 다음 문제 보이기 전까지 클릭 방지 */
.click-blocker {position:fixed; top:0; left:0; width:100%; height:100%; background-color:transparent; z-index:99999;}


