@font-face {
    font-family: 'Pretendard Variable';
    src: url('fonts/PretendardVariable.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
  }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
/* 상단 헤더 영역: 탭 버튼 + 닫기 버튼 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px; /* 기존보다 여백 줄임 */
  margin-top: 26px;    /* 요청한 여백 */
}
.modal-content {
  background: #F1F3F5;
  width: 90%;
  max-width: 375px;
  max-height: 80vh;
  border-radius: 20px;
  padding: 16px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 8px;         /* 기존보다 위로 */
  right: 12px;
  font-size: 32px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  z-index: 10;
  
}

.genie-close-btn {
  position: absolute;
  top: 8px;         /* 기존보다 위로 */
  right: 12px;
  font-size: 32px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  z-index: 10;
  
}



/*.tab-buttons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 12px;
  gap: 6px;
}
*/
.tab-buttons {
  display: flex;
  gap: 12px;
  flex: 1;
}

.tab-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  background: #333;
  color: #fff;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
  transition: background 0.3s;
}

.tab-buttons button.active {
  background: #9c4dff;
  color: #fff;
  font-weight: bold;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.image-scroll {
  overflow-y: auto;
  max-height: 45vh;
  padding-right: 6px;
}

.image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-wrapper img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-badge {
  align-self: center;
  padding: 10px 10px;
  background: linear-gradient(to right, #ff5858, #ffc107);
  color: #000;
  font-weight: bold;
  border-radius: 20px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  animation: fadeInText 1s ease-out forwards;
  animation-delay: 0.5s;
  
}

.link-badge span {
  display: inline-block;
  opacity: 0;
  animation: appear 0.1s ease-in-out forwards;
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

.sparkle {
  font-size: 12px;
  font-weight: bold;
  margin-left: 6px;
  color: #FF1E56;
  animation: sparkleBlink 1s infinite;
}

@keyframes sparkleBlink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px #FF1E56, 0 0 10px #FF1E56;
  }
  50% {
    opacity: 0.6;
    text-shadow: 0 0 10px #FF1E56, 0 0 20px #FF1E56;
  }
}



.egg-container {
  position: relative;
  display: inline-block;
  margin: 24px 0;
}

.egg-container img {
  width: 120px;
  height: auto;
  animation: shake 1.2s infinite ease-in-out;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.tooltip {
  visibility: hidden;
  background: #A274F8;
  color: #fff;
  white-space: nowrap;
  text-align: center;
  padding: 10px 16px;
  border-radius: 20px;
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #A274F8 transparent transparent transparent;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
}

.egg-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}


.progress-container {
  width: 100%;
  background: #e0e0e0;
  height: 24px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  width: 20.11%;
  background: linear-gradient(90deg, #A274F8, #D2B3FF);
  border-radius: 10px 0 0 10px;
  transition: width 0.4s ease;
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

/* 단계별 색상 */
.progress-bar.level-20 {
  background: linear-gradient(90deg, #A274F8, #D2B3FF);
}
.progress-bar.level-40 {
  background: linear-gradient(90deg, #8DC2F8, #A4E8F8);
}
.progress-bar.level-60 {
  background: linear-gradient(90deg, #5AD6A5, #91F6D8);
}
.progress-bar.level-80 {
  background: linear-gradient(90deg, #FFD369, #FFB347);
}
.progress-bar.level-100 {
  background: linear-gradient(90deg, #FF6B6B, #FF8A8A);
}
.genie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.genie-modal.active {
  display: flex;
}
.genie-modal-content {
  background: #fff;
  width: 90%;
  max-width: 375px;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  position: relative;
}
.genie-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.genie-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

.info-buttons {
 display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.info-button1 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  background-color: #fcf951;
  color: #422057!important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif; 
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.info-button2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
  background-color: #9fc131;
  color: #fff!important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); 
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif; 
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}




.info-button1:hover {
  background-color: #E6DB45;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.info-button2:hover {
  background-color: #89A627;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: #5A8DEE;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #3e6edc;
}

.kkung-container img {
  width: 80px;
  margin-right: 8px;
  animation: jumpUpDown 0.6s ease-in-out infinite;
}


.kkung-container {
  position: absolute;
  top: 46px;
  right: -300px;
  display: flex;
  align-items: center;
  animation: slidePauseUp 10s ease-in-out forwards;
  z-index: 3;
}
.kkung-text {
  background: rgba(255,255,255,0.9);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  opacity: 1;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', Arial, sans-serif;
  animation: fadeInText 1s ease-in-out 1.5s forwards;
}
.kkung-text .highlight {
  color: #A274F8;
  font-weight: bold;
}

@keyframes slideLeftLinear {
  0% {
    right: -300px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    right: 400px;
    opacity: 0;
  }
}

@keyframes tailWag {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(10deg); }
}

@keyframes fadeInText {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slidePauseUp {
  0% {
    right: -300px;
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    right: 20px;
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    right: calc(100% - 360px); /* 왼쪽 끝까지 도달 */
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    right: calc(100% - 360px); /* 3초 정지 */
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    right: calc(100% - 360px); /* 위로 올라가며 사라짐 */
    transform: translateY(-80px);
    opacity: 0;
  }
}

@keyframes jumpUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}