@charset "utf-8";

@font-face {
    font-family: 'MBC1961GulimM';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2304-01@1.0/MBC1961GulimM.woff2') format('woff2'),
         url('../../font/MBC1961GulimM.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
#gameWrap {
    height: 100%;
    max-height: calc(var(--vh, 1vh) * 100);
    font-family: 'MBC1961GulimM', 'Noto Sans KR','Noto Sans','Noto Sans Korean','Pretendard-Regular', sans-serif;
    visibility: hidden;
}
#gameWrap.on {
    visibility: visible;
}
#gameWrap.on .main.complete {
    display: none; visibility: hidden;
}
#gameWrap.complete {
    visibility: visible;
}
#gameWrap.complete .main:not(.complete) {
    display: none; visibility: hidden;
}
#gameWrap {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}
#gameWrap {
    display: flex;
    background: url('/resources/game/assets_pop/images/game/mockup_bg.png') no-repeat center / cover;
}
@media print {
    #gameWrap {
        background-color: #fff;
    }
}
#gameWrap {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
}
#gameWrap * {
    box-sizing: border-box;
}
#gameWrap.mob {
    /* background-color: #38003f; */
}
#gameWrap::backdrop {
    background-color: #fff;
}
:root {
    --vw: 7.5px;
}
#container,
.wrap {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    height: 100%;
    margin: auto;
    overflow: hidden;
}
.wrap {
    height: 100%;
}
#container::after {
    content: ''; display: none;
    /* position: absolute; top: 0; left: 0; */
    /* width: 100%; height: 100%; */
    background: url('/resources/game/assets_pop/images/game/mockup.png') no-repeat center / 100% auto;
    pointer-events: none; touch-action: none;
    padding-top: 208.34035%;
}
.wrap.complete {
    overflow: auto;
}
@media all and (min-width: 768px) {
    #container,
    .wrap {
        max-width: calc(var(--vw, 1vw) * 100 * (781.5 / 1563));
        max-height: 812px;
        margin-left: auto;
        margin-right: auto;
    }
    #container {
        border-radius: 55px;
        overflow: hidden;
        height: fit-content;
    }
    #container::after {
        display: block;
        position: relative; z-index: 10000;
    }
    #container .main {
        position: absolute; top: 50%; left: 50%;
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
        transform: translate(-50%, -50%);
    }
    .step1, .step2 {

    }
}
body {
    background-color: #eee;
    /* background-color: #38003f;
    background: radial-gradient(calc(var(--vw, 1vw) * 25) at center 45%, #9000d6 0%, #38003f 100%); */
}
main {
    position: relative;
    width: 100%;
    height: 100%;
}
.game_header {
    position: absolute;
    /* top: calc(var(--vw, 1vw) * 100 * (100 / 1563)); */
    /* left: 50%; */
    /* transform: translate(-50%); */
    max-width: calc(var(--vw, 1vw) * 100 * (781.5 / 1563));
    width: 100%;
    width: 100%;
    z-index: 100;
}
.game_header .contain {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    padding: calc(var(--vw, 1vw) * 100 * (60 / 1563)) calc(var(--vw, 1vw) * 100 * (45 / 1563)) 0;
}
.game_header .contain .logo1 {
    width: calc(var(--vw, 1vw) * 100 * (181 / 1563));
    /* height: calc(var(--vw, 1vw) * 100 * (89 / 1563)); */
}
.game_header .contain .logo2 {
    width: calc(var(--vw, 1vw) * 100 * (193 / 1563));
    /* height: calc(var(--vw, 1vw) * 100 * (175 / 1563)); */
}
.game_header img {
    height: auto;
}
.step1 {
    /* background: url(/resources/game/assets_pop/images/game/step1_bg.png) no-repeat top center / cover; */
    /* height: 100vh; */
    /* width: 100vw; */
    /* position: fixed; */
    left: 0;
    top: 0;
    transition: opacity 0.6s;
    z-index: 10;
}
.step1.off {
    display: none;
}
.step1,
.step2 {
    display: none;
    position: relative;
    /* position: absolute; */
    background-color: #38003f;
    /* background: radial-gradient(calc(var(--vw, 1vw) * 25) at center 45%, #9000d6 0%, #38003f 100%); */
    background-image: radial-gradient(circle at 49% 52%, #551387 3%, #33063e 20%);
    background: url(/resources/game/assets_pop/images/game/step1_bg.png) no-repeat center / cover;
    max-width: calc(var(--vw, 1vw) * 100 * (781.5 / 1563));
    width: 100%;
    height: 100%;
    /* margin-left: auto;
    margin-right: auto; */
}
.step1.on {
    display: block;
}
.step2.on {
    display: flex;
    flex-direction: column;
}
.step1 .img {
    /* width: calc(var(--vw, 1vw) * 100 * (1176 / 1563)); */
    /* height: calc(var(--vw, 1vw) * 100 * (1900 / 1563)); */
    width: 100%;
    padding: 0 calc(var(--vw, 1vw) * 100 * (40 / 1563));
    height: calc(var(--vh, 1vh) * 74);
    max-height: 608px;
    text-align: center;
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--vw, 1vw) * 100 * (128 / 1563)); */
    padding-top: calc(var(--vw, 1vw) * 100 * (128 / 1563));
    margin-left: auto;
    margin-right: auto;
}
.step1 .img img {
    max-width: 100%;
    width: auto;
    height: 100%;
    vertical-align: top;
}
@media all and (min-width: 501px) {
    .step1 .img {
        max-width: calc(var(--vw, 1vw) * 100 * (625 / 1563));
        /* max-height: none; */
    }
    .step1 .img img {
        width: 100%;
        height: auto;
    }
}
.step1 .img img {
    object-fit: scale-down;
}

.step1 .start_btn {
    display: block;
    width: calc(var(--vw, 1vw) * 100 * (356 / 1563));
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--vw, 1vw) * 100 * (58 / 1563));
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--vw, 1vw) * 100 * (120 / 1563)); */
}
.step2 {
    /* background: url(/resources/game/assets_pop/images/game/step1_bg.png) no-repeat top center / cover; */
    /* height: 100vh; */
    /* width: 100vw; */
    /* position: fixed; */
    top: 0;
    /* opacity: 0; */
    transition: opacity 0.6s;
    z-index: 9;
    padding: calc(var(--vw, 1vw) * 100 * (45 / 1563));
    transform: translate(0px);
}
.step2::before {
    content: '';
    display: block;
    opacity: 0;
    transition: opacity 0.25s;
    touch-action: none;
    pointer-events: none;
}
.step2.danger {
    /* background: url(/resources/game/assets_pop/images/game/warring.png) no-repeat top center / cover; */
}
.step2.danger::before {
    background: url(/resources/game/assets_pop/images/game/warring.png) no-repeat top center / cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 1;
    animation: danger 1s linear infinite;
    animation-fill-mode: both;
}
@keyframes danger {
    0% {
        opacity: 1;
    }
    35% {
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
.step2 .word_wrap {
    position: relative;

    /* margin-top: calc(var(--vw, 1vw) * 100 * (65 / 1563)); */
    margin-top: calc(var(--vw, 1vw) * 100 * (155 / 1563));

    /* margin-top: calc(var(--vw, 1vw) * 100 * (150 / 1563)); */
    width: 100%;
    min-height: calc(var(--vw, 1vw) * 100 * (177 / 1563));

    /* padding: 0 calc(var(--vw, 1vw) * 100 * (100 / 1563)); */
}
.step2 .word_wrap.fix {
    top: 0;
    padding-top: 0;
    margin-top: 0;
    transition: all 0.75s;
    transform: translateY(0px);
}
.step2 .title .list .word_item.active {
    color: #c85910;
}
.step2 .title {
    left: 50%;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--vw, 1vw) * 100 * (40 / 1563)) calc(var(--vw, 1vw) * 100 * (18 / 1563));
    gap: calc(var(--vw, 1vw) * 100 * (28 / 1563));
    background: url(/resources/game/assets_pop/images/game/titlebar.png) no-repeat center center / contain;
    font-weight: 400;
}

.step2 .info_txt {
    display: block;
    position: absolute; top: 100%; left: 0; 
    width: 100%;
    padding: .85em 0;
    font-size: 14px;
    color: #fff;
    text-align: center;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}

.step2 .title .time {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    min-width: calc(var(--vw, 1vw) * 100 * (100 / 1563));
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}

.step2 .title .time::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5px;
    height: calc(var(--vw, 1vw) * 100 * (110 / 1563));
    border-radius: 10px;
    background: #fff;
}
.step2 .title .icon {
    display: flex;
    justify-content: center;
}
.step2 .title .icon svg {
    vertical-align: top;
}
.step2 .title .list {
    width: auto;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: calc(var(--vw, 1vw) * 100 * (15 / 1563));
}

.step2 .title .word_item {
    display: block;
    font-size: calc(var(--vw, 1vw) * 100 * (40 / 1563));
    line-height: 1;
    color: #fff;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}

.step2 .title #timer {
    font-size: calc(var(--vw, 1vw) * 100 * (40 / 1563));
    margin-top: calc(var(--vw, 1vw) * 100 * (10 / 1563));
    color: #fff;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
    font-weight: normal;
}

.step2 .title .time .icon {
    width: calc(var(--vw, 1vw) * 100 * (45 / 1563));
}
.step2 .title .time .ico_time {
    fill: #fff;
}
.step2 .title .time.warning #timer,
.step2 .title .time.warning .ico_time {
    color: #b01218;
    fill: #b01218;
}
.step2 .input {
    opacity: 0;
    visibility: hidden;
    /* transition: 0.25s; */
    width: 100%;
    height: calc(var(--vw, 1vw) * 100 * (110 / 1563));
    padding: 0 calc(var(--vw, 1vw) * 100 * (45 / 1563));
    overflow: hidden;
    margin-top: 4.5em;
    /* position: fixed; */
    /* left: 0; */
    /* top: calc(var(--vw, 1vw) * 100 * (280 * 2 / 1563)); */
    /* left: 50%; */
    /* bottom: calc(var(--vw, 1vw) * 100 * (150 / 1563)); */
}
@media screen and (min-width: 768px) {
    .step2 .input {
        position: static; transform: none;
        margin-top: auto; margin-bottom: 40px;
        /* transform: translateY(-50%); */
    }
}
.step2 .hidden_lab {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}
.step2 .input.active::after {
    display: block;
}
.step2 .hidden_lab .inp_quest::after {
    content: ''; display: inline-block;
    visibility: hidden;
    /* position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); */
    border-right: 2px solid #666;
    height: 20px;
    margin-left: -4px;
}



.step2 .hidden_quest:focus + .input .hidden_lab .inp_quest::after {
    visibility: visible;
    animation: name duration timing-function delay iteration-count direction fill-mode;
    animation: cursorAct 1s linear infinite;
}
@keyframes cursorAct {
    0% {
        visibility: hidden;
    }
    50% {
        visibility: hidden;
    }
    75% {
        visibility: visible;
    }
    100% {
        visibility: visible;
    }
}
.step2 .hidden_lab .inp_quest {
    pointer-events: none; touch-action: none;
}
.step2 .hidden_quest {
    position: fixed;
    top: 0; left: 0; width: 0; height: 0; border: 0; outline: 0;
    margin: 0; padding: 0; opacity: 0;
    width: 300px; height: 100px;
}
.step2 .input.on {
    opacity: 1;
    visibility: visible;
}
.step2 .num {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -25%);
    font-size: calc(var(--vw, 1vw) * 100 * (300 / 1563));
    /* font-weight: 700; */
    color: #ffc128;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}

.step2 .text {
    width: calc(var(--vw, 1vw) * 100 * (1247 / 1563));
    max-width: 100%;
    display: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(var(--vw, 1vw) * 100 * (-32 / 1563));
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
    position: absolute; top: 100%; left: 0;
    transform: translateY(15%);
}
@media screen and (min-width: 768px) {
    .step2 .text {
        margin-top: calc(var(--vw, 1vw) * 100 * (32 / 1563));
        transform: none;
        position: static;
    }
}
.step2 .text.opacity {
    opacity: 0.5;
}

.step2 .inp_quest {
    display: flex; align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    border-radius: 10px;
    border: 0;
    box-sizing: border-box;
    transition: background 0.25s;
    color: #545454;
    border: solid 1px #c7c7c7;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
    
    opacity: .96;
    background-image: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.96) 43%,
        rgba(242, 242, 242, 0.96) 85%,
        rgba(227, 227, 227, 0.96) 100%
    );
    overflow: hidden;
}
.step2 .inp_quest .inner_txt,
.temp_txt {
    font-size: calc(var(--vw, 1vw) * 100 * (34 / 1563));
    font-weight: 400;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
    line-height: 1.25;
    word-break: word-break;
    /* max-height: 2.5em; */
    overflow: hidden;
    /* line-clamp: 2;
    -webkit-line-clamp: 2; */
    white-space: nowrap;
    padding: 0 6px;
}
.step2 .inp_quest .inner_txt {
    margin-left: var(--x);
}

.step2 .complete {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* left: 50%;
    top: 50%;
    transform: translate(-50%, -90%); */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* width: calc(var(--vw, 1vw) * 100 * (1369 / 2 / 1563)); */
    padding: 0 calc(var(--vw, 1vw) * 100 * (40 / 1563));
    opacity: 0;
    transition: opacity 0.6s;
    visibility: hidden;
}
.step2 .complete img {
    transform: translateY(12.5%);
    height: auto;
}

.step2 .complete.on {
    opacity: 1;
    visibility: visible;
}
.circle_word {
    display: inline-block;
    width: 100%; max-width: 100%;
    aspect-ratio: 1;
    transform: translateY(5%);
}
.circle_word .lists {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    animation: rotating 11s linear infinite;
}
.circle_word .lists + .lists {
    animation-delay: .25s;
    animation-duration: 13s;
    transform: rotate(25deg);
}
.circle_word .lists + .lists + .lists {
    animation-delay: .5s;
    animation-duration: 15s;
    transform: rotate(50deg);
}
.circle_word * {
    margin: 0; padding: 0; word-spacing: 0; letter-spacing: -.25em;
    font-weight: normal;
}
.circle_word .text_node {
    color: #fff;
    fill: #fbefc9;
    font-weight: normal;
    letter-spacing: 0.25em;
    /* word-spacing: 0.5em; */
    font-size: calc(var(--vw, 1vw) * 100 * (46 / 1563));
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.circle_word .lists + .lists .text_node{
    font-size: calc(var(--vw, 1vw) * 100 * (52 / 1563));
}
.circle_word .lists + .lists + .lists .text_node{
    font-size: calc(var(--vw, 1vw) * 100 * (58 / 1563));
    /* letter-spacing: 0.25em; */
}
.circle_word svg {
    max-width: 100%;
}
@keyframes rotating {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* complete */

.complete_wrap {
    /* 20 */
    font-size: calc(var(--vw, 1vw) * 100 * (40 / 1563));
    padding-top: calc(var(--vw, 1vw) * 100 * (280 / 1563));
    padding-left: calc(var(--vw, 1vw) * 100 * (46 / 1563));
    padding-right: calc(var(--vw, 1vw) * 100 * (46 / 1563));
    padding-bottom: calc(var(--vw, 1vw) * 100 * (100 / 1563));

    position: relative;
    background-color: #38003f;
    background-image: radial-gradient(circle at 49% 52%, #551387 3%, #33063e 20%);
    background: url(/resources/game/assets_pop/images/game/step1_bg.png) no-repeat center / cover;
    width: 100%;
    max-width: calc(var(--vw, 1vw) * 100 * (781.5 / 1563));
    min-height: 100%;
    /* margin-left: auto;
    margin-right: auto; */
}
.result_box {
    position: relative;

    text-align: center;
    font-size: 1em;
    background: url('/resources/game/assets_pop/images/game/result_box_bg.png') no-repeat center / cover;
}
.result_box::before {
    content: '';
    display: block;
    padding-top: 96.352%;
}
.result_box[class*='rating'] .inner::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}
.result_box.rating1 .inner::before {
    background: url('/resources/game/assets_pop/images/game/rating_star1.png') no-repeat center / cover;
    width: calc(var(--vw, 1vw) * 100 * (72 * 2 / 1563));
    height: calc(var(--vw, 1vw) * 100 * (70 * 2 / 1563));
}
.result_box .rating {
    display: block;
    margin-top: calc(var(--vw, 1vw) * 100 * (16 / 1563));
    height: calc(var(--vw, 1vw) * 100 * (49 * 2 / 1563));
}
.result_box .rating img {
    height: 100%;
    width: auto;
    max-width: 100%;
    vertical-align: top;
}
.result_box.rating2 .inner::before {
    background: url('/resources/game/assets_pop/images/game/rating_star2.png') no-repeat center / cover;
    width: calc(var(--vw, 1vw) * 100 * (144 * 2 / 1563));
    height: calc(var(--vw, 1vw) * 100 * (70 * 2 / 1563));
}
.result_box.rating3 .inner::before {
    background: url('/resources/game/assets_pop/images/game/rating_star3.png') no-repeat center / cover;
    width: calc(var(--vw, 1vw) * 100 * (192 * 2 / 1563));
    height: calc(var(--vw, 1vw) * 100 * (74 * 2 / 1563));
}
.result_box .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 1em;
    min-height: calc(var(--vw, 1vw) * 100 * (335 * 2 / 1563));
    padding-top: calc(var(--vw, 1vw) * 100 * (144 / 1563));
}
.result_box .sub_tit_txt {
    display: block;
    font-size: 1.4em;
    line-height: 1.25;
    color: #979797;
    letter-spacing: -0.56px;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.result_box .result_txt {
    margin-top: calc(var(--vw, 1vw) * 100 * (40 / 1563));
    font-size: 1em;
    line-height: 1.35;
    color: #636363;
    letter-spacing: -0.4px;
    font-family: 'MBC1961GulimM', 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.result_btn_lists {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: calc(var(--vw, 1vw) * 100 * (24 / 1563));
    margin-top: calc(var(--vw, 1vw) * 100 * (-64 / 1563));
}
.result_btn_lists .result_btns {
    text-align: center;
    cursor: default;
}
.result_btns .result_btn {
    display: inline-block;
    margin: 0 auto;
    border: 0;
    box-shadow: none;
    outline: 0;
    /* background-color: #222; */
    width: calc(var(--vw, 1vw) * 100 * (196 * 2 / 1563));
    height: calc(var(--vw, 1vw) * 100 * (63 * 2 / 1563));
}
.result_btns .result_btn img {
    vertical-align: top;
    width: 100%;
    height: auto;
}
