body {
  min-width: 320px;
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
  font-family: 'DungGeunMo' !important;
  font-weight: 400;
}
.container {
  height:100dvh;
  overflow:auto;
}
.body_stage {
  overflow: hidden;
}

.mo_only {
  display: none;
}
.checkbox_text {
  text-align: left;
}
.checkbox_text .bd {
  border-bottom:1px solid #000;
  font-weight: 400;
}
/* PC 버전 (화면이 768px 이상) */
@media (max-width: 768px) {
  .mo_only {
    display: block;
  }
  .pc_only {
    display: none;
  }

  #gameArea {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 100vh; /* fallback 용 */
  }
  
  #gameArea canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto;
    z-index: 9998;
  }

}

#agree {
  width: 350px;
}

#agree .txt_wrap {
  font-size: 14px;
  line-height: 1.6;
}

#agree .agree_title {
  padding-bottom: 10px;
  font-size: 17px;
  font-weight: bold;
}

#agree .agree_subtitle {
  padding-bottom: 5px;
}

#agree .agree_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  text-align: left;
}

#agree .agree_table th,
#agree .agree_table td {
  border: 1px solid #ccc;
  padding: 8px;
}

#agree .agree_table th {
  text-align: center;
  background-color: #f9f9f9;
}

#agree .pop_btn_wrap {
  padding-top: 10px;
  text-align: center;
}

#gameArea canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  z-index: 9998;
}

.form_group {
  margin-bottom: 15px;
}

.form_title {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  text-align: left;
}

.input_box,
.textarea_box {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.textarea_box {
  resize: none;
}

.checkbox_group {
  margin: 10px 0;
}

.checkbox_label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.checkbox_input {
  width: 18px;
  height: 18px;
  appearance: auto !important;
}


.alert_pop {
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  z-index: 10;
  left: 50%;
  display: none;
}
.alert_pop .txt_wrap {
  min-height: 50px;
}
.alert_pop .pop_btn_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert_pop .pop_btn_wrap button {
  width: 100%;
  height: 40px;
  background-color: #FFCA00;
  color: #fff;
  border-radius: 4px;
}
.dimm {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}
/* 인트로 영역 */
.intro {
  height: 100dvh;
  text-align: center;
  background-position: bottom center;
  background-size: cover;
  background-image: url('../img/bg_main.png');
}
.intro .inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding:40px 0px 110px 0px;
}
.intro .inner .logo_wrap .img_box {
  width:89px;
}

.intro .title_img {
  max-width: 320px;
  margin: 0 auto 20px;
}
.intro .bee_img {
  max-width: 124px;
  margin:40px auto 0;
}

@media (min-width: 1200px) {
  .intro .title_img {
    max-width: 360px;
    margin: 0 auto 10px;
  }

  .intro .logo {
    max-width: 250px;
    margin: 0 auto;
  }
}
.intro .submit_wrap {
  width: 100%;
}
.intro input {
  border-radius: 12px;
  border: 1px solid #efebe4;
  background: #fff;
  width: 100%;
  height: 52px;
  line-height: 52px;
  padding: 0px 16px;
  font-size: 16px;
  font-family: "DungGeunMo";
}
.intro .start_btn {
  width:260px;
  height: 70px;
  margin-top: 20px;
}
.intro .share_btn {
  margin-top: 8px;
  width: 100%;
  height: 60px;
  border-radius: 50px;
  background: #673a3a;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: "DungGeunMo" !important;
}
.intro .share_btn img {
  width: 26px;
  margin-right: 10px;
}
.intro .total {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.56px;
  font-family: "DungGeunMo";
}
.intro .total em {
  color: #26b198;
}
.tutorial.intro {
  background-image: url(../img/tutorial/intro_bg.png);
}
/* 튜토리얼 영역 */
.tutorial {
  padding: 0;
  background-image: url(../img/tutorial/tutorial_bg.png);
  background-position: bottom center;
  text-align: center; 
  background-repeat: no-repeat;
  background-size: cover;
  padding-top:20px;
}
.tutorial .title {
  font-size:42px;
  font-family: 'pixel';
  color:#fff;
}

.tutorial .title_img {
  max-width: 214px;
  margin: 0 auto;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.tutorial .tutorial_swiper .swiper-slide {
  padding-top: 40px;
}

.tutorial_swiper .swiper-slide {
  min-height:calc(100dvh - 70px) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tutorial_swiper .swiper-slide .slide_con {
  height:100%;
  flex:1;
  width:100%;
  padding:0px 32px;
}
.tutorial_swiper .swiper-slide .slide_con .img_box {
  max-width:360px;
  margin:0 auto;
}
.tutorial_swiper .swiper-slide .slide_con .scroll_inner {
  height:calc(100dvh - 220px);
  overflow:auto;
}

.tutorial_swiper .swiper-slide .slide_con .scroll_inner::-webkit-scrollbar {
  width: 4px; 
  height: 4px; 
}

.tutorial_swiper .swiper-slide .slide_con .scroll_inner::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0); 
  border-radius: 4px; 
}

.tutorial_swiper .swiper-slide .img_box img {
  width:90%;
}

.swiper-navigation .btn_prev {
  background-image: url(../img/icn_next.png);
  transform: rotate(180deg);
  background-size: 33px 33px;
  background-position: center;
  width: 33px;
  height: 33px;
  left: 0;
}
.swiper-navigation .btn_next {
  background-image: url(../img/icn_next.png);
  background-size: 33px 33px;
  background-position: center;
  width: 33px;
  height: 33px;
  right: 0;
}
.swiper-navigation .btn_next::after,
.swiper-navigation .btn_prev::after {
  display: none;
}
.swiper-navigation .swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
}
.swiper-navigation .btn_next, .swiper-navigation .btn_prev {
  position: static;
  margin-top: 0;
}
.swiper-navigation.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:0px 20px;
  position: relative;
  height:50px;
}
.tutorial .progress_bar {
  max-width: calc(500px - 64px);
  height: 6px;
  position: absolute;
  top: 84px;
  background: #fff;
  width: calc(100% - 64px);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.tutorial .progress_bar .progress_fill {
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #562E20;
}
.tutorial .goto_btn {
  width: 260px;
  height: 70px;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-size:contain;
  display: none;
  z-index: 30;
}
.tutorial .goto_btn.show {
  display: block;
}
.tutorial .goto_btn.static {
  position: static;
  margin-top: 40px;
  transform: translate(0,0);
}
.tutorial .scroll_img {
  position: absolute;
  bottom:0;
  overflow:auto;
  width:calc(100% + 32px);
  left:0px;
}
.tutorial .scroll_img::-webkit-scrollbar {
  display: none;
}
.tutorial .scroll_img img {
  width:800px;
  max-width:none;
}
.tutorial .mw286 {
  max-width:360px !important;
}
@media screen and (max-width:499px) {
  .tutorial .scroll_img img {
    width:600px;
    max-width:none;
  }
}

/* 게임 영역 */
.game .stage {
  max-width: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game .stage > div {
  display: flex;
  width: auto; /* auto 유지 */
  min-width: 60px;
  margin-left: auto; 
}

.life-box {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(2vw, -50%); /* 10px 띄우기 (고정 간격) */
  display: flex;
  gap: 3px; /* 하트끼리의 간격 고정 */
}

.life-box .life {
  width: 60%; /* 하트 크기 고정 */
}

@media (max-width: 480px) {
  .life-box {
    transform: translate(3vw, -50%); /* 조금 더 붙이기 */
    gap: 0vw;
  }

  .life-box .life {
    width: 50%; /* 모바일에서는 조금 더 크게 */
  }
}

.game .header {
  background-color: #fef1d8;
  padding-top: 20px;
  position: relative;
  z-index: 10;
}
.game .point_box {
  padding: 16px;
  display: flex;
  gap: 8px;
}
.game .point_box ul:first-child {
  width: 40%;
}
.game .point_box ul:last-child {
  width: 60%;
}
.game .point_box ul li {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
}
.game .point_box ul:first-child li {
  height: 76px;
}
.game .point_box ul li .left span {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%; /* 25.2px */
  letter-spacing: -0.72px;
}

.game .point_box ul li .left {
  width: 54px;
  background-color: #673a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.game .point_box ul:last-child li {
  height: 76px;
}
.game .point_box ul:last-child li + li {
  margin-top: 8px;
}
.game .point_box ul:last-child li .left {
  width: 95px;
}
.game .point_box ul li .thumbnail {
  width: 48px;
}
.game .point_box ul li .right {
  background-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
}

.game .result_area {
  height: 100%;
}
.game .play_box {
  height: 100vh;
  position: relative;
}
.game .play_box .play_bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  object-fit: cover;
  z-index: 2;
}
.game .play_box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #d4ab86;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ranking_wrap .list_title {
  padding-top: 24px;
  padding-bottom: 24px;
  font-family: "DungGeunMo";
  font-weight: 700;
  color: #262626;
  letter-spacing: -0.8px;
  font-size: 20px;
}

.ranking_wrap input {
  border-radius: 12px;
  border: 1px solid #efebe4;
  background: #fff;
  width: 100%;
  height: 52px;
  line-height: 52px;
  padding: 0px 16px;
  font-size: 16px;
  font-family: "DungGeunMo";
}

.ranking_wrap .rankings {
  margin-bottom: 12px;
  padding-top: 35px;
  padding-bottom: 12px;
  font-family: "DungGeunMo";
  font-weight: 700;
  color: #262626;
  letter-spacing: -0.8px;
  font-size: 20px;
  text-align: center;
  background-image: url(../img/result/ranking_back.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  display: flex;
  justify-content: center; /* horizontal alignment */
  align-items: center; /* vertical alignment */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift_txt_box .goto_btn {
  width: 100%;
  height: 60px;
  background-color: #673a3a;
  border-radius: 50px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.72px;
  margin-top: 12px;
  margin-bottom: 20px;
  font-family: "DungGeunMo";
}

.ranking_wrap .rankBack {
  padding-top: 35px;
  padding-bottom: 12px;
  font-family: "DungGeunMo";
  font-weight: 700;
  color: #262626;
  letter-spacing: -0.8px;
  font-size: 20px;
  text-align: center;
  background-image: url(../img/result/ranking_back.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  display: flex;
  justify-content: center; /* horizontal alignment */
  align-items: center; /* vertical alignment */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-bar {
  z-index: 9999;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 200px;
  width: 200px;
  justify-content: center;
  pointer-events: none;
}

.progress-ring__circle {
  transition: 0.35s stroke-dashoffset;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-width: 12;
  pointer-events: none;
}

#progress-text {
  z-index: 9999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--Defalt-Color-White, #fff);
  font-family: "LG EI Text";
  font-size: 100px;

  font-weight: 700;
  line-height: 100%; /* 100px */
  letter-spacing: -4px;
  pointer-events: none;
}

.result_icon {
  padding-right: 10px;
}

.result_img {
  text-align: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-bottom: 40px;
}

.result_record_img {
  text-align: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-bottom: 20px;
}

.result_record {
  position: relative;
  display: inline-block;
}

.ranking_wrap_record {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; /* Adjust as per requirement */
  height: 100%; /* Adjust as per requirement */
}

.result_image {
  display: block;
  width: 100%;
  height: auto;
}

#down_box {
  height: 50px;
}

.overlay-text {
  position: absolute;
  top: 15%;
  left: 56%;
  color: #fff;
  text-align: center;
  font-size: 45px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -1.92px;
  z-index: 9999;
}

.span_rank {
  position: absolute;
  top: 35%;
  left: 15%;
  text-align: center;
  color: #26b198;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -1.92px;
}

.span_nickName {
  position: absolute;
  top: 35%;
  color: #262626;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.64px;
}

.span_record {
  position: absolute;
  top: 35%;
  left: 75%;
  text-align: center;
  color: #26b198;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -1.92px;
}

.game .play_box.stage1::after {
  background-color: #dbbe8c;
}
.game .play_box.clear.stage1::after {
  background-color: #ffdda3;
}

.game .play_box.stage2::after {
  background-color: #dbaca0;
}
.game .play_box.clear.stage2::after {
  background-color: #fcc4b5;
}

.game .play_box.stage3::after {
  background-color: #c6c0b9;
}
.game .play_box.clear.stage3::after {
  background-color: #e8e2d9;
}

.game .play_box.stage4::after {
  background-color: #90bfce;
}
.game .play_box.clear.stage4::after {
  background-color: #9fd5e7;
}


/* 결과 영역 */
.result {
  text-align: center;
  background: url("../img/result/event_bg_v1.png") top no-repeat;
  background-size: cover;
}
footer {
  padding: 40px 16px;
  background: #432e2e;
}

footer > p {
  color: #fff;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 100%;
  font-weight: 700;
}

footer ul li {
  padding-left: 18px;
  position: relative;
}

footer ul li + li {
  margin-top: 8px;
}

footer ul li::before {
  content: "※";
  position: absolute;
  top: -2px;
  left: 0;
  color: #fff;
}

footer ul li p {
  color: #fff;
  font-size: 14px;
  line-height: 140%;
}

.overlay_text {
  position: absolute;
  top: 73%;
  left: 37%;
  text-align: center;
  font-weight: 700;
  line-height: 100%;
  z-index: 9999;
  color: #673a3a;
  font-size: 30px;
}

h2.overlay_text {
  letter-spacing: 0.05em; /* 값은 원하는대로 조절하면 됩니다. */
}

.overlay_low {
  position: absolute;
  top: 75%;
  left: 37%;
  text-align: center;
  font-weight: 700;
  line-height: 100%;
  z-index: 9999;
  color: #673a3a;
  font-size: 30px;
}

h2.overlay_text {
  letter-spacing: 0.05em; /* 값은 원하는대로 조절하면 됩니다. */
}



.logo_wrap {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding:0px 20px;
}

.logo_wrap img {
  width: 230px !important; 
  height: auto;
  flex-shrink: 0;
}

#result_text{
  padding-top: 30px;
}

@media (min-width: 1100px) {
  .overlay_text {
    position: absolute;
    top: 71%;
    left: 30%;
    text-align: center;
    font-size: 57px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -1.92px;
    z-index: 9999;
    color: #673a3a;
  }

  .overlay_low {
    position: absolute;
    top: 74%;
    left: 31%;
    text-align: center;
    font-size: 57px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -1.92px;
    z-index: 9999;
    color: #673a3a;
  }
}

@media only screen and (max-device-width: 499px) {
  html {
    height: calc(var(--vh, 1vh) * 100);
  }

  body {
    height: 100%;
  }

  section {
    height: calc(var(--vh, 1vh) * 100);
    min-height: auto !important;
  }
  section.game {
    overflow: hidden;
  }
  section.result {
    height: auto;
  }

  .game .play_box {
    height:100vh;
    /* height: calc(100vh - 168px); */
    position: relative;
  }
  .intro .submit_wrap {
    background-color: transparent;
  }
}

/* 결과 */
.result {
  padding:40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.result .bg_box {
  background-size: contain;
  background-repeat: no-repeat;
  max-width:335px;
  width:100%;
  margin:0 auto;
  position: relative;
}
.result .myscore {
  background-image: url(../img/result/img_my_score_bg.png);
  margin-top: 40px;
}
.result .total_rank {
  background-image: url(../img/result/img_total_score_bg.png);
  margin-top: 15px;
}
.result .event_form_box {
  background-image: url(../img/result/img_event_input_bg.png);
}
.result .bg_box .img_title {
  position: absolute;
  top:-20px;
  left:50%;
  transform: translateX(-50%);
}
.result .rank_list {
  padding:40px 30px 40px 30px;
  min-height:139px;
}
.result .rank_list li:last-child {
  border-bottom:none;
}
.result .rank_list li{
  border-bottom: 1px dotted #666;
  padding:12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result .rank_list li .rank {
  font-size:14px;
  color:#fff;
  width:74px;
  height:28px;
  border-radius: 10px;
  border: 2px solid #FFE6AF;
  background: #F2C13B;
  display:flex;
  align-items: center;
  justify-content: center;
}
.result .rank_list li .name{
  padding-right: 5%;
}
.result .rank_list li .score {
  min-width: 50px;
}
.result .event_form_box {
  background-size: cover;
  padding:60px 30px 40px 30px;
  height:700px;
}
.result .event_box {
  position: relative;
}
.result .event_box .absolute_txt {
  position: absolute;
  top:17%;
  left:50%;
  transform: translateX(-50%);
  font-size:24px;
  font-family: 'DungGeunMo';
  color: #FF001F;
  text-align: center;
  display: flex;
  gap:10px;
}
.result .event_box .absolute_txt span {
  color: #FF001F;
}
.result .event_box .absolute_link {
  width: 84%;
  position: absolute;
  height:10%;
  bottom: 3%;
  display: block;
  left:50%;
  transform: translateX(-50%);
}
@media screen and (max-width:400px) {
  .result .event_form_box {
    background-size: contain;
  }
}
.result .event_form_box input, .result .event_form_box textarea {
  border:2px solid #562E20;
}
.result .event_form_box .form_title {
  font-size:20px;
  margin-bottom: 10px;
}
.result .btn_wrap {
  display: flex;
  flex-direction: column;
  gap:20px;
  margin-top: 150px;
}
.result .btn_wrap .share_btn {
  width:100%;
}
