@font-face {
  font-family: 'CherryBombOne-Regular';
  src: url('font/CherryBombOne-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}


.popup_tr{
  height: 30px;
}


.imgdiv {
  background-color: #FFF5F7;
  border-radius: 16px;
  padding: 20px;
}

.badge_img{
    width: 34%;
}

.badge_div{
  display: flex;
  align-items: center;
}

.badge_info {
  width: 100%;
}

.font_CherryBombOne-Regular {
  font-family: CherryBombOne-Regular;
}


/* ------------------------------------ */
/* 메뉴 상 배지 */
.corner-badge-icon {
  position: absolute;
  width: 20%;
  left: 13px;
  top: 5px;
}




/* ------------------------------------ */
/* 오른쪽 하단 말풍선 꼬리 */
.floating-helper {
  position: fixed;
  bottom: 0px;
  right: 0px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speech-bubble {
  background-color: #ff668a;
  color: white;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  right: 10px;
  bottom: 80px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #ff668a transparent transparent transparent;
}

/* 흔들림 애니메이션 */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 1.0s ease-in-out;
}

.character {
  width: 170px;
  right: 0px;
  position: fixed;
  bottom: 0px;
}

.lock {
  margin-right: 5px;
}

/* ------------------------------------ */

/* 팝업 오버레이 배경 */
.popup-overlay {
  position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overscroll-behavior: contain;
    touch-action: none;
}

/* 팝업 내용 */
.popup {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.popup button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #ff668a;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  margin-right: 10px;
}


.popup_close {
  background-color: #adb5bd !important;
}




/* Level 1 */
.level1_step_button {
  background-color: #FF7E85;
  color: #fff;
  margin: 4px;
}

.level1_step_button:hover {
  background-color: #ff5760;
  color: #fff;
  margin: 4px;
  scale: 1.1;
}

.level1_step_button_active {
  background-color: #ff5760;
  color: #fff;
  margin: 4px;
  scale: 1.1;
}

.level1_step_button_active:hover {
  background-color: #ff5760;
  color: #fff;
  margin: 4px;
  scale: 1.1;
}

.font_2_5vw {
  font-size: 2.5vw;
}

.font_color_a {
  color: #07cd92;
}

.font_color_b {
  color: #ff7f62;
}

.font_color_c {
  color: #fa83a6;
}

.pointer {
  cursor: pointer;
}

.main_card:hover {
  scale: 1.05;
}

body {
  -ms-overflow-style: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-use-select: none;
  user-select: none;

}

img {
  height: auto;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;

}

::-webkit-scrollbar {
  display: none;
}


.card_img {
  width: 100%;
}

.filter_btn_wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.filter_btn_check {
  border-radius: 30px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 5px;
  background-color: #000000;
  color: #fff;
}

.filter_btn,
.filter_btn_check {
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid #e5e5ec;
}

.filter_btn_text {
  padding-left: 10px;
  padding-right: 10px;
}

.cursor_pointer {
  cursor: pointer;
}

.month_btn {
  margin-left: 10px;
  margin-right: 10px;
}

.filter_btn {
  border: solid 1px #E5E5EC;
  border-radius: 30px;
  margin-left: 5px;
  margin-right: 5px;
  padding: 5px;
}

.month_btn_check {
  border-bottom: solid 2px #000000;
  margin-left: 10px;
  margin-right: 10px;
}


/*카드 부분*/

.card {
  margin-bottom: 20px;
  margin-left: 15px;
  margin-right: 15px;
  width: 300px;

  background: linear-gradient(to bottom, #ffffff 40%, #fffbe9 40%);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  border: solid 1px #F1F1F5;
}

.card:hover {
  transform: translateY(-5px);
}

.badge_a {
  background-color: #39d7a8;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.badge_b {
  background-color: #ff9981;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.badge_c {
  background-color: #fb9cb8;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}




.card-content {
  padding: 16px 20px 8px;
  flex: 1;
  text-align: center;
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
}

.info-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  margin: 0 10px 16px;
  text-align: left;
}

.category-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.tag {
  background: #f3d6f6;
  color: #a14bc6;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  margin-right: 10px;
  min-width: 44px;
  text-align: center;
}

.gameTitle {
  font-size: 14px;
  color: #444;
}

.bottom-image {
  width: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

/* 기본값 (PC 화면 이상) */
.month-scroll-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* 모두 숨김 */
.img-pc,
.img-tablet,
.img-mobile {
  display: none;
  width: 100%;
  height: auto;
}




.half-select {
  width: 45%;
  /* 반반 너비 */
  flex: 1 1 50%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;

  background-color: white;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  box-sizing: border-box;
}

.select-mobile {
  display: none;
}

.select-pc-month {
  display: block;
}

.select-pc-level {
  display: block;
}

.mobile-select-row {
  padding-right: 0px;
}


.my_visit_count {
  position: absolute;
  left: 17px;
  bottom: 11px;
  font-size: 12px;
  color: #b6b6b6;
}


.game-card-lock {
  background-color: #dfdfdf;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  /* 진하고 부드러운 그림자 */
  position: relative;
  padding: 0px 15px 50px 15px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card {
  text-align: center;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  /* 진하고 부드러운 그림자 */
  position: relative;
  padding: 0px 15px 40px 15px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.badge-week {
  background-color: #ff9998;
  color: white;
  font-size: 13px;
  border-radius: 0 0 10px 10px;
  padding: 5px 12px 6px 12px;
  display: inline-block;
  margin-bottom: 13px;
  margin-left: 15px;
}

.badge_week_s {
  background-color: #ff9998;
  color: white;
  font-size: 13px;
  border-radius: 25px;
  padding: 5px 12px 4px 12px;
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 20px;
}

.badge_week_p {
  background-color: #FFC403;
  color: white;
  font-size: 13px;
  border-radius: 25px;
  padding: 5px 12px 4px 12px;
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 20px;
}


.badge_week_a {
  background-color: #52BF95;
  color: white;
  font-size: 13px;
  border-radius: 25px;
  padding: 5px 12px 4px 12px;
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 20px;
}


.badge_week_b {
  background-color: #75C8E9;
  color: white;
  font-size: 13px;
  border-radius: 25px;
  padding: 5px 12px 4px 12px;
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 20px;
}

.game-title {
  font-weight: bold;
  margin-bottom: 0px;
}

.game-button {
  background: white;
  border-radius: 10px;
  font-size: 14px;
  padding: 0;
  margin-bottom: 16px;
  border: none;
  width: 100%;
  /*box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #767676;
}

.game-button-lock {
  background: #f1f1f1;
  border-radius: 10px;
  font-size: 14px;
  padding: 8px;
  margin-bottom: 10px;
  border: none;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.version-text {
  position: absolute;
  right: 20px;
  bottom: 11px;
  font-size: 12px;
  color:#d3d3d3;
}

.card-image {
  /*position: absolute;*/
  /*top: 10px;
    right: 10px;*/
  width: 170px;
  opacity: 0.9;
}


.lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  z-index: 10;
}


/* PC 이상 전용 (1025px 이상) */
@media screen and (min-width: 1025px) {
  .img-pc {
    display: block;
  }
}

/* 태블릿 전용 (화면 너비 768~1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .img-tablet {
    display: block;
  }
}

/* 모바일 전용 (화면 너비 767px 이하) */
@media screen and (max-width: 767px) {
  .img-mobile {
    display: block;
  }

  .select-mobile {
    display: block;
    width: 100%;
    text-align: center;
  }

  .select-pc-month {
    display: none;
  }

  .select-pc-level {
    display: none;
  }

}

@media screen and (max-width: 480px) {
  .custom-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filter_btn_wrapper {
    justify-content: center;
    gap: 6px;
  }

  .filter_btn,
  .filter_btn_check {
    font-size: 13px;
  }

  .filter_btn_text {
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 768px) {
  .month-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .month-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }

  .month_btn,
  .month_btn_check {
    display: inline-block;
    white-space: nowrap;
    margin-right: 8px;
  }
}