@charset "utf-8";

/* 차트 */
#myChart{
  width: 100% !important;
  height: 100% !important;
  background: #fff;
}



/* 모달 백드롭 */
.wrapper .page {
  position: relative;
}
.wrapper .page > main::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}
body.modal-open .wrapper .page > main::before {
  display: block;
}
.modal.modal-bottom .modal-dialog {
  z-index: 1050;
}

/* 1) .show 없으면 숨김 */
.wrapper .page > main #dialogModal.modal:not(.show) {
  display: none !important;
}

/* 2) .show 일 때 공통 표시 */
.wrapper .page > main #dialogModal.modal.show {
  position: fixed !important;  /* 뷰포트 기준 */
  inset: 0 !important;         /* top:0; right:0; bottom:0; left:0; */
  display: flex !important;
  align-items: center !important;    /* 수직 중앙정렬 */
  justify-content: center !important;/* 수평 중앙정렬 */
  z-index: 1050 !important;
}

/* 3) 대화상자만 클릭 허용 */
.wrapper .page > main #dialogModal.modal.show .modal-dialog {
  pointer-events: all !important;
  margin: 0 auto !important;
  max-width: 271px;
}





/* 메인 아이콘 슬라이더 */
#main .img-list-wrap.swiper {
  overflow: hidden !important;
}
#main .img-list.swiper-wrapper {
  display: flex !important;
  gap: 0;
  white-space: normal;
}
#main .img-list .swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
}
#main .img-list .swiper-slide a {
  pointer-events: auto;
}
#main .icon-list2-wrap.swiper {
  overflow: hidden !important;
}
#main .icon-list2.swiper-wrapper {
  display: flex !important;
  gap: 0;
  white-space: normal;
}
#main .icon-list2 .swiper-slide {
  width: auto !important;
  flex-shrink: 0 !important;
}
#main .icon-list2 .swiper-slide a {
  pointer-events: auto;
}



/* FAB 버튼 */
#fab, #fh {
  position: fixed;
  bottom: 30px;
  /* right 대신 left 를 JS 로 세팅 */
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .3s, visibility .3s, border-color .3s;
  z-index: 1000;
}
#fab.hidden, #fh.hidden {
  opacity: 0;
  visibility: hidden;
}
#fab {
  border: 2px solid #EBE7E4;
  background: #fff !important;
}
#fh{
  bottom: 83px;
  background-color: #625B4E;
  border: none !important;
  outline: none;
}
#fh:before{
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  left:0;
  width:24px;
  height:24px;
  margin:auto;
  background: url(../images/sub/ico_home_white.webp) no-repeat center / 100%;
  opacity: .6;
}



/* toast */
.page > #toast {
  position: fixed;
  top: 50%;                    /* 뷰포트 세로 50% 지점 */

  /* ↓ padding, border-radius, box-shadow 조정 */
  display: inline-block;            /* 너비가 내용에 맞춰지고 중앙 정렬 가능 */
  padding: 10px 20px;                /* 상하 8px, 좌우 20px */
  background: rgba(0, 0, 0, 0.7);  /* 좀 더 진한 반투명 배경 */
  color: #fff;
  font-size: 16px;
  line-height: 2;
  text-align: center;               /* 내용 가운데 정렬 */
  white-space: pre-line;


  /* pill 모양 */
  border-radius: 15px;              /* 높이의 절반 이상으로 주면 pill 형태 */
  
  /* 약간 그림자 추가 (옵션) */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 99999;
}
.page > #toast.show {
  opacity: 1;
}



/* 홈버튼 바로가기 */
.detail-home {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
  transform: translateY(0);
  border: 24px solid #F6F5F3 !important;
}
.detail-home:hover {
  border-color: #F6F5F3 !important;
  background-color: #5DDBDB !important;
}

.detail-home.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
}



/* 타로카드 탭 */
.tarot-tab {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: none;
  display: flex;
  justify-content: space-around;
  margin-top: 5px;
}

.tarot-tab .tab-item {
  position: relative;
}

.tarot-tab .tab-link {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: #222222;
  cursor: pointer;
  font-size: 18px;    
  line-height: 1.2;
}

.tarot-tab .tab-link.active {
  color: #000;
  font-weight: 600;
}
/* 활성 탭 언더바 */
.tarot-tab .tab-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #000;
}



/* 사주정보 입력창 쿠키 span 기본값 */
.cookie{
  display: none;
}



.infoText{
  color:#374151;
  font-size:12px;
  line-height:15px;
  display: none;
  white-space: normal;
  word-break: break-all;
}



/* 네비바 더블클릭 확대 축소 방지 */
#header {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}



/* 앱설치 배너 기본 스타일 */
#install-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  padding: 12px;
  font-size: 14px;
  text-align: center;
  z-index: 1000;
}
#install-banner.show { display: block; }
#install-banner button {
  margin: 0 8px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: #3367D6;
  color: #fff;
  font-size: 14px;
}
#install-banner .close-btn {
  background: transparent;
  color: #333;
  font-weight: bold;
}
#install-banner img { vertical-align: middle; width: 20px; margin: 0 4px; }



/* 포춘쿠키 */
#fortune-cookie-container{
  max-width: 480px;
}

#fortune-cookie {
  cursor: pointer;
  display: block;
  margin: 0 auto;
  width: 80%;
  transition: none;
}

#fortune-cookie-last{
  display: block;
  margin: 0 auto;
  width: 80%;
}

.cookie_head_text{
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5em;
  color: #222222;
  text-align: center;
}
.cookie_focus{
  color: #007881 !important;
}

.cookie_head_open{
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5em;
  color: #222222;
  text-align: center;
}

.cookie_head_bottom{
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5em;
  color: #999999;
  text-align: center;
}

.resultText{
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2em;
  text-align: center;
}
.subText{
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5em;
  text-align: center;
}

.card.result-card{
  background-color:#eff6ff;
}



/* 패스백 쿠팡 */
/* 뒷배경 어두운 레이어 */
#coupangBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* 광고 팝업 영역 */
#coupangBanner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

/* 광고 내용 감싸는 래퍼 */
.coupang-banner-wrapper {
  position: relative;
  width: 320px;
  height: 480px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 스크롤 잠금 */
.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}