* {max-width: 100%; scrollbar-width:thin;scrollbar-color:#108D5B transparent;}
::-webkit-scrollbar {width:6px;}
::-webkit-scrollbar-track {background:transparent;}
::-webkit-scrollbar-thumb {background:transparent;border-radius:999px;}
body:hover::-webkit-scrollbar-thumb, body:active::-webkit-scrollbar-thumb {background:#108D5B;}

html, body {height: 100%; overflow-x: clip; font-family: 'SUIT Variable';}
.bg {position: fixed; inset: 0; height: 100vh; z-index: -1; background: url('/assets/img/pcbg0.png') center bottom / cover no-repeat;}
.bg::before, .bg::after {content: ""; position: absolute; bottom: 0; width: 50%; height: 100%; background-repeat: no-repeat; background-size: auto 100%;}
.bg::before {left: 0; background-image: url('/assets/img/pcbg1.png'); background-position: left bottom;}
.bg::after {right: 0; background-image: url('/assets/img/pcbg2.png'); background-position: right bottom;}
.frame {display: flex; justify-content: center; width: 100%; letter-spacing: -0.06em; overflow-x: clip;}
.wrap {width: 100%; max-width: 550px; min-height: 100vh; background: #86D28B;}

/* hero */
.hero {position: relative;}
.hero_img {width: 100%; display: block;}

/* about */
.about {padding: 0 20px 60px;}
.about .about_tit {display: flex; justify-content: center; align-items: center;}
.about .about_tit .title_img {width: 75%; margin-bottom: 70px;}
.about .about_cont {margin-bottom: 20px; text-align: center;}
.about_cont.deco {position: relative; margin-top: 60px; z-index: 5;}
.flwr1 {position: absolute; top: -20%; right: 0; transform: translateX(20px); width: 160px; z-index: 10;}
.flwr2 {position: absolute; top: 45%; left: 0; transform: translateX(-20px); width: 160px; z-index: 10;}
.about .about_tag {display: inline-block; background: #FFF2AC; border: 1px solid #2CAA70; width: 120px; height: 34px; border-radius: 30px; margin-bottom: 10px;}
.about .about_tag p {display: flex; justify-content: center; align-items: center; height: 100%; line-height: 1; font-size: 20px; font-weight: 700;}
.about .about_box {background: #EDFFC4; padding: 15px 0; border-radius: 10px; font-size: clamp(18px, 3.5vw, 24px); line-height: 1.4;}
.about .intro_box {position: relative; padding: 40px 20px;}
.about .intro {margin-bottom: 25px; font-size: 24px; line-height: 1.5;}
.about .intro b {font-weight: 700;}
.about .intro_box .welcome {font-family: 'reko'; font-size: 26px; color: #049244; margin-bottom: 0;}
.intro_box img {position: absolute; bottom: -110px; right: 30px; width: 110px;}

/* game */
.game {padding: 100px 20px;}
.game_tit {text-align: center; margin-bottom: 40px;}
.game_tit > p {font-size: 28px; font-weight: 700; color: #0F3A29; margin-bottom: 6px;}
.tit_box {background: #108D5B; border-radius: 10px; padding: 20px 20px 10px;}
.tit_box h3 {color: #fff; font-family: 'reko'; font-size: 40px;}
.story_box {position: relative; border-radius: 10px; overflow: hidden; background: url('/assets/img/storyImg.png') center top / cover no-repeat; padding: 200px 20px 60px; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;}
.story_inner {width: 100%; display: flex; flex-direction: column; justify-content: flex-end;}
.story_line {margin-bottom: 20px; text-align: center; color: #fff; font-size: 24px; line-height: 1.4; white-space: nowrap;}
.story_line.help {margin-bottom: 0;}

/* bubbl(말풍선) */
.cb_talk {text-align: center;}
.bubl {margin-top: 10px; position: relative; display: inline-block; background: #E7FAD6; width: 100%; padding: 18px 20px; border-radius: 10px; border: 2px solid #333; text-align: center;}
.bubl p {font-size: 20px; line-height: 1.5;}
.bubl b {font-weight: 700;}
.bubl::after {content: ""; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); border-width: 13px 11px 1px; border-style: solid; border-color: #E7FAD6 transparent transparent transparent;}
.bubl::before {content: ""; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); border-width: 14px 12px 0; border-style: solid; border-color: #333 transparent transparent transparent;}
.chara {margin-top: 20px; position: relative; z-index: 6;}
.chara img {width: 160px;}

/* 초록배경 */
.green_bg {position: relative; background: #21A872; z-index: 5;}
.green_bg::before {content: ""; position: absolute; top: -140px; left: 0; width: 100%; height: 300px; background: #21A872; border-radius: 50%; z-index: 1;}

/* map */
.map {padding: 60px 20px; position: relative; overflow: hidden;} 
h4 {position: relative; text-align: center; color: #fff; font-family: 'reko'; font-size: 32px; margin-bottom: 20px; z-index: 1;}
.map_img {position: relative; z-index: 1;}
.map_img img {width: 100%; display: block; border-radius: 10px;}
/* map modal */
.modal {display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; cursor: zoom-out;}
.modal_content { max-width: 90vw; max-height: 90vh; transition: transform 0.25s ease; user-select: none;}
.close_button {position: absolute; top: 20px; right: 30px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; z-index: 1001; line-height: 1;}
.close_button:hover {color: #ccc;}

/* enter */
.enter {padding: 60px 20px;}
.enter ol {list-style: none; display: flex; flex-direction: column; gap: 10px;}
.enter li {position: relative; text-align: center; padding-top: 20px;}
.step {position: absolute; top: 0; left: 50%; transform: translate(-50%, 10%); display: inline-block; background: #FFF2AC; border: 1px solid #2CAA70; padding: 6px 16px; width: 94px; height: 34px; border-radius: 30px; font-weight: 700; z-index: 2;}
.step_box {background: #81DD9D; padding: 25px; border-radius: 10px; font-size: 24px;}
.step_box b {font-weight: 700;}
.enter .bubl {margin-top: 20px;}
.enter .chara img {width: 110px;}

/* collect */
.collect {padding: 0 20px; text-align: center;}
.scan {display: flex; justify-content: center; width: 100%; margin-bottom: 60px; border: none; background: none;}
.scan a {display: flex; justify-content: center; align-items: center; width: 100%; max-width: 395px; height: 80px; gap: 10px; background: #F5C724; padding: 20px; border-radius: 10px; font-size: 32px; font-weight: 800; color: #222;}
.scan img {width: 32px;}
.collect_board {display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px 0; justify-items: center;}
.star {display: flex; align-items: center; justify-content: center;}
.btn_quiz {background:none; border:none; padding:0; cursor:pointer; width:100%; height:100%; display:flex; align-items:center; justify-content:center;}
.star img {max-width: 90%; max-height: 90%;}
.star.on img {transform: scale(1.5);}

/* quiz modal */
.Qmodal_overlay {position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); display:none; justify-content:center; align-items:center; z-index:1000; padding:20px; box-sizing:border-box;}
.Qmodal_overlay.active {display:flex !important;}
.Qmodal_content {background:#FFFBE3; width:100%; max-width:480px; max-height:90vh; border-radius:20px; padding:40px 20px; text-align:center; box-sizing:border-box; overflow-y:auto; display:block;}
.Qmodal_title {color:#21A872; font-size:36px; font-weight:900; margin-bottom:30px; letter-spacing:-1px;}
.quiz_card {background:#fff; border-radius:20px; padding:30px 20px; margin-bottom:20px; height:auto;}
.quiz_no {display:block; color:#21A872; font-size:24px; font-weight:800; margin-bottom:15px;}
.quiz_question {font-size:24px; font-weight:700; color:#444; line-height:1.4; margin-bottom:30px; word-break:keep-all;}
.quiz_options {list-style:none; padding:0; display:flex; flex-direction:column; gap:10px;}
.quiz_options li input[type="radio"] {display:none;}
.quiz_options li label {display:flex; align-items:center; justify-content:center; background:#D2F4DC; color:#0B603E; padding:18px; border-radius:15px; font-size:20px; font-weight:700; cursor:pointer; position:relative; transition:0.2s; border:3px solid transparent; box-sizing:border-box;}
.quiz_options li label span {position:absolute; left:20px; font-weight:800;}
.quiz_options li input[type="radio"]:checked + label {background:#FDFFB7; border:3px solid #FFCB02; color:#333;}
.error_msg {color:#E3412B; font-size:18px; font-weight:600; margin:20px 0 10px; visibility:visible;}
.error_msg.on {visibility:visible;}
.btn_submit {width:100%; background:#21A872; color:#fff; border:none; padding:28px 0 20px; border-radius:20px; font-size:28px; font-family:'reko'; cursor:pointer;}
.btn_submit:active {background:#187D55;}

/* info */
.info {padding: 120px 20px 90px;}
.info_list {display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;}
.list_cont a {display: block; background: #fff; padding: 18px 0; border-radius: 10px; text-align: center; font-size: 26px; font-weight: 500; line-height: 1;}
.info_list li:nth-child(-n+3) {grid-column: 1 / -1;}

/* footer */
footer {padding: 0 20px 90px; text-align: center; color: #eaf5ee;}
footer img {width: 240px; margin-bottom: 40px;}
.ft_cont {display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 20px; text-align: left; width: fit-content; margin: 0 auto;}
.ft_txt {display: flex; gap: 10px;}

@media only screen and (max-width: 700px) { .modal_content { width: 95%; } }

@media (min-width: 551px) {
body {overflow: hidden;}
.frame {height: 100vh; align-items: center;}
.wrap {height: 100vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.15);}
.break {display: none;}
}

@media (max-width: 550px) {
.bg {display: none;}
body {overflow: auto;}
.bg::before, .bg::after {display: none;}
.wrap {border-radius: 0;}
.story_line {font-size: clamp(17px, 4.2vw, 22px);}
}

@media (max-width: 520px) {
.about {padding: 0 16px 50px;}
.game {padding: 80px 16px;}
.map {padding: 50px 16px;}
.enter {padding: 50px 16px;}
.collect {padding: 0 16px;}
.info {padding: 100px 16px 70px;}
footer {padding: 0 16px 70px;}
.game_tit {margin-bottom: 20px;}
.game_tit > p {font-size: 26px;}
.tit_box h3 {font-size: 36px;}
.about .about_box {padding: 15px 0;}
.about .intro_box {padding: 40px 10px;}
.about .intro {font-size: 20px;}
.about .intro_box .welcome {font-size: 22px;}
.story_box {padding: 160px 20px 50px;}
.bubl p {font-size: 18px;}
 h4 {font-size: 30px;}
.step {font-size: 14px; width: 88px; height: 32px;}
.step_box {font-size: 22px; padding: 22px;}
.scan a {font-size: 28px; height: 70px; padding: 18px;}
.list_cont a {font-size: 24px; padding: 15px 0;}
.ft_cont {font-size: 18px;}
.flwr1 {width: 140px;}
.flwr2 {width: 140px;}
.chara img {width: 140px;}
.enter .chara img {width: 100px;}
.scan img {width: 24px;}
.Qmodal_overlay {padding: 20px 10px;}
}

@media (max-width: 425px) {
.about {padding: 0 14px 40px;}
.game {padding: 70px 14px;}
.map {padding: 40px 14px;}
.enter {padding: 40px 14px;}
.info {padding: 80px 14px 60px;}
footer {padding: 0 14px 60px;}
.game_tit > p {font-size: 24px;}
.tit_box h3 {font-size: 30px;}
.about .intro {font-size: 18px; margin-bottom: 20px;}
.story_box {padding: 140px 20px 40px;}
.story_line {margin-bottom: 15px;}
.bubl p {font-size: 17px;}
h4 {font-size: 26px;}
.step {width: 80px; height: 30px;}
.step_box {font-size: 20px; padding: 20px;}
.scan a {font-size: 24px; height: 64px; padding: 16px;}
.list_cont a {font-size: 18px;}
.ft_cont {font-size: 17px;}
.flwr1 {top: -15%; width: 120px;}
.flwr2 {top: 55%; width: 120px;}
.chara img {width: 120px;}
.enter .chara img {width: 90px;}
.scan {margin-bottom: 40px;}
.intro_box img {bottom: -110px; right: 10px; width: 100px;}
.Qmodal_content {border-radius:30px; padding:30px 15px;}
.Qmodal_title {font-size:28px; margin-bottom:20px;}
.quiz_card {padding: 20px 15px; margin-bottom:30px;}
.quiz_no {font-size:22px; margin-bottom:20px;}
.quiz_question {font-size:20px; margin-bottom:20px;}
.quiz_options li label {padding:15px;}
.error_msg {font-size:16px;}
.btn_submit {padding: 22px 0 15px; font-size:24px;}
.btn_submit:active {background:#187D55;}
}

@media (max-width: 360px) {
.break {display: block;}
.about {padding: 0 12px 30px;}
.game {padding: 60px 12px;}
.map {padding: 30px 12px;}
.enter {padding: 30px 12px;}
.info {padding: 60px 12px 50px;}
footer {padding: 0 12px 50px;}
.game_tit > p {font-size: 22px;}
.tit_box h3 {font-size: 24px;}
.about .intro {font-size: 18px; margin-bottom: 15px;}
.story_box {padding: 130px 10px 40px;}
.story_line {margin-bottom: 10px;}
.bubl {padding: 10px;}
.bubl p {font-size: 16px;}
h4 {font-size: 22px;}
.step {font-size: 12px; width: 72px; height: 28px;}
.step_box {font-size: 18px; padding: 18px;}
.scan a {font-size: 20px; height: 58px; padding: 14px;}
.list_cont a {font-size: 16px;}
.ft_cont {font-size: 16px;}
.flwr1 {top: -10%; width: 110px;}
.flwr2 {top: 60%; width: 110px;}
.chara img {width: 100px;}
.enter .chara img {width: 80px;}
.intro_box img {bottom: -100px; right: 10px; width: 90px;}
.about .intro_box .welcome {font-size: 20px;}
.collect_board {gap: 30px 0;}
.scan img {width: 18px;}
}