/* Google Fonts 사용으로 로컬 폰트 파일 제거 */

/* 백그라운드 비디오 스타일 */
.background-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  display: none; /* 기본적으로 숨김 상태로 시작 */
}

.background-video-container #backgroundVideo {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
  min-width: 2048px;
  min-height: 1080px;
  /* 깜빡거림 방지 */
  opacity: 1;
  transition: none;
  will-change: auto;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
  color: #fff;
  min-height: 100vh;
  background: url('/images/bg.png') center/cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease-in-out;
}

body.reward-bg {
  background: url('/images/reward/reward_page_bg.png') center/cover no-repeat fixed;
}

body.information-bg {
  position: relative;
}

body.information-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

body.information-bg::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/information/information_bg.jpg') center/cover no-repeat fixed;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

body.gameinfo-bg {
  background: url('/images/bg.png') center/cover no-repeat fixed;
}

body.characterinfo-bg {
  background: #161313;
}

body.gamefeatures-bg {
  background: url('/images/features/features_page_bg.png') center/cover no-repeat fixed;
}

body.featured-bg {
  background: url('/images/featured/featured_page_bg.jpg') center/cover no-repeat fixed;
}

/* Swiper.js 스타일 커스터마이징 */
.game-features-swiper {
  width: 80%;
  height: 63%;
  top : -0vh
}

.swiper-slide {
  display: flex !important;
  width: 100%;
  height: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  filter: blur(5px);
  opacity: 0.6;
  transform: scale(0) !important;
}


.game-features-swiper .swiper-slide-active {
  transform: scale(0.8) !important;
}

.game-features-swiper .swiper-slide-prev {
  transform: scale(0.6) !important;
}

.game-features-swiper .swiper-slide-next {
  transform: scale(0.6) !important;
}

.swiper-slide-active {
  filter: blur(0);
  opacity: 1;
  z-index: 10;
  transform: scale(1) !important;
}

.swiper-slide-prev,
.swiper-slide-next {
  filter: blur(5px);
  opacity: 0.6;
  transform: scale(1) !important;
}

/* 일반 특징 슬라이드 */
.feature-slide {
  width: 85%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header {
  width: 100%;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(1px);
  height: 88px;
  display: flex;
  align-items: left;
  justify-content: left;
}

.header-content {
  width: 100%;
  max-width: 4500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px 0 100px;
  height: 88px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 90px;
}

.logo img {
  height: auto;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  color: #777777;
  text-decoration: none;
  font-family: 'Noto Sans CJK KR', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
  font-size: 20px;
  opacity: 0.85;
  font-weight: 400;
  transition: opacity 0.2s;
  padding: 4px 0;
}

.nav-menu a.active, .nav-menu a:hover {
  opacity: 1;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.social-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #00ffff;
  transition: width 0.3s ease;
}

.social-links a:hover::before {
  width: 100%;
}

.social-links img {
  margin: 3px 23px 0px 23px;
  width: auto; height: 30px;
  filter: brightness(0.5);
  transition: filter 0.2s;
}

.social-links a:hover img {
  filter: brightness(1.2);
}

.language-selector {
  width: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  opacity: 0.85;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.language-selector:hover {
  opacity: 1;
}

.language-selector::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: #00ffff;
  transition: width 0.3s ease;
}

.language-selector:hover::before {
  width: 100%;
}

.language-selector img {
  width: auto; height: 30px;
  filter: brightness(0.5);
} 

.language-selector:hover img {
  filter: brightness(1.2);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background: rgba(20,20,20,0.98);
  border-radius: 6px;
  box-shadow: 0 2px 12px #0008;
  min-width: 120px;
  padding: 8px 0;
  z-index: 2000;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.lang-dropdown a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.15s;
}

.lang-dropdown a:hover {
  background: #222c38;
}

.language-selector.active .lang-dropdown {
  display: block;
}

.page-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.page-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  transform: translateY(100vh);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

/* 유튜브 팝업 스타일 */
.youtube-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.youtube-popup-content {
  width: 800px;
  height: 450px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
}

/* 유튜브 팝업 스타일 */
.youtube-popup {
  width: 800px;
  height: 450px;
  max-width: 90vw;
  max-height: 80vh;
}

.youtube-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.youtube-video-selector {
  position: absolute;
  top: 0;
  left: -110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

 /* 유튜브 팝업 버튼 스타일 */
.video-selector-btn {
  background: rgba(20,20,20,0.98);
  color: white;
  border: 2px solid #004372;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
  min-width: 90px;
  text-align: center;
  letter-spacing: 1px;
}

.video-selector-btn:hover {
  background: #004372;
  border-color: #004372;
  transform: scale(1.05);
}

.video-selector-btn.active {
  background: #004372;
  border-color: #004372;
  box-shadow: 0 0 20px #004372;
}

.video-selector-btn span {
  display: block;
}

/* Reward 페이지 기본 스타일 */
.reward-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
  margin-top: 250px;
  /* padding-top: 130px; */
  /* padding-bottom: 200px; */
}

.reward-title h2 {
  font-size: 3.5rem;
  font-family: 'Noto Sans CJK KR', 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  /* margin-bottom: 10px; */
  background: linear-gradient(45deg, #ffffff, #e8e8e8, #d0d0d0, #b8b8b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reward-title2 {
  max-width: 1200px;
}
.reward-title2 h2 {
  font-size: clamp(1.5rem, 2vw, 3rem);
  font-family: 'Noto Sans CJK KR', 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  background: linear-gradient(45deg, #ffffff, #e8e8e8, #d0d0d0, #b8b8b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 30px;
}

.reward-title2 h3 {
  font-size: clamp(0.75rem, 1vw, 1.5rem);
  font-weight: 400;
  font-family: 'Noto Sans CJK KR', 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  color: #f3d8a8;
}

/* 사전예약보상 카드 스타일 */
.reward-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  position: relative;
}

.reward-item img {
  max-width: 50%;
  min-width: 450px;
  height: auto;
  position: absolute;
  left: 60%;
  top: -10%;
}

.reward-page .reward-item-box {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  z-index: 10;
  max-width: 80% !important;
  width: 60%;
  min-width: 700px;
  /* margin-right:15% !important;
  margin-left:25% !important; */
}

.reward-page .reward-goals-card {
  /* width: 12vw; */
  width: 9vw;
  max-width: 250px;
  /* height: 30vh; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.reward-page .reward-item-box-icon {
  width: 100%;
  height: 25%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative; /* 추가 */
}
/* 가운데서부터 오른쪽으로 라인 */
.reward-page .reward-item-box-icon.line-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #887876; /* 라인 색상 */
  transform: translateY(-50%);
  z-index: -1;
}
/* 가운데서부터 왼쪽으로 라인 */
.reward-page .reward-item-box-icon.line-left::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 50%;
  height: 2px;
  background: #887876; /* 라인 색상 */
  transform: translateY(-50%);
  z-index: -1;
}

/* 가운데서부터 오른쪽으로 라인 */
.reward-page .reward-item-box-icon.line-right.suc-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: #ffa4e1; /* 라인 색상 */
  transform: translateY(-50%);
  z-index: -1;
}
/* 가운데서부터 왼쪽으로 라인 */
.reward-page .reward-item-box-icon.line-left.suc-left::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 50%;
  height: 2px;
  background: #ffa4e1; /* 라인 색상 */
  transform: translateY(-50%);
  z-index: -1;
}

.reward-page .reward-item-box-icon img {
  width: 7vw;
  position: relative;
  z-index: 1;
}

.reward-page .reward-item-box-goals  {
  /* width: 12vw; */
  width: 9vw;
  margin-top: -10%;
  aspect-ratio: 2/3;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-page .reward-item-box-goals-text {
  padding-top: 10%;
  width: 100%;
  height: 30%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-page .reward-item-box-goals-text h3 {
  /* font-size: 0.85vw; */
  font-size: 0.75vw;
  font-weight: 400;
  color: #807e77;
}

.reward-page .reward-item-box-goals-text h3.success {
  /* font-size: 0.85vw; */
  font-size: 0.75vw;
  font-weight: 400;
  color: #9f824e;
}

.reward-page .reward-item-box-goals-text h4 {
  /* font-size: 1.6vw; */
  font-size: 1.4vw;
  font-weight: 800;
  color: #b1afa8;
}

.reward-page .reward-item-box-goals-text h4.success {
  /* font-size: 1.6vw; */
  font-size: 1.4vw;
  font-weight: 800;
  color: #ffc601;
}

.reward-page .reward-item-box-goals-item {
  padding-top: 5%;
  width: 100%;
  height: 45%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-page .reward-item-box-goals-reward {
  width: 100%;
  height: 25%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
  padding-bottom: 10%;
}

.reward-page .reward-item-box-goals-reward h5 {
  /* font-size: 0.9vw; */
  font-size: 0.75vw;
  font-weight: 400;
  color: #b1afa8;
}

.reward-page .reward-item-box-goals-reward h5.success {
  /* font-size: 0.9vw; */
  font-size: 0.75vw;
  font-weight: 400;
  color: #fff;
}

/* 7일 로그인 보상 카드 스타일 */
.reward-content2 {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  position: relative;
  margin-bottom: 50px;
  gap: 50px;
}

.reward-goals-card2  {
  width: 9vw;
  min-width: 150px;
  aspect-ratio: 2/3;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-goals-card-2-text1 {
  padding-top: 23%;
  width: 100%;
  height: 30%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-goals-card-2-text1 h6 {
  font-size: clamp(0.75rem, 1vw, 1.5rem);
  font-weight: 400;
  color: #ffc601;
}

.reward-goals-card-2-box-goals-item {
  padding-top: 5%;
  width: 100%;
  height: 40%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
}

.reward-goals-card-2-text2 {
  width: 100%;
  height: 30%;
  background-size: contain; 
  background-position: center; 
  background-repeat: no-repeat;
  padding-left: 10%;
  padding-right: 10%;
  padding-bottom: 23%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-goals-card-2-text2 h7 {
  font-size: clamp(0.42rem, 0.7vw, 1rem);
  font-weight: 400;
  color: #ffffff;
  text-align: center;
}

/* 게임 정보 페이지 스타일 */
.gameinfo-page {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.gameinfo-swiper {
  width: 100%;
  height: 100%;
}

.gameinfo-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* slide 효과에 맞게 수정 */
  width: 100%;
  height: 100%;
}

.gameinfo-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  bottom: -15vh;
}

.gameinfo-text {
  /* background: rgba(0, 0, 0, 0.7); */
  background: inherit;
  /* padding: 40px; */
  /* border-radius: 15px; */
  /* backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  transition: opacity 0.3s ease; /*애니메이션 시간 단축 */
  opacity: 1; /*초기 상태를 0으로 설정*/
}

.gameinfo-text h2 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gameinfo-text p {
  color: #e0e0e0;
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0;
  width: 100%;
  /* margin-top: 20% !important; */
  min-width: 600px;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 페이지네이션 스타일 */
.gameinfo-pagination {
  bottom: 30px;
}

.gameinfo-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0; /* 원형에서 사각형으로 */
  margin: 0 5px;
  opacity: 1;
  transition: all 0.3s ease;
  transform: rotate(45deg); /* 45도 회전하여 다이아몬드 모양 */
}

.gameinfo-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: rotate(45deg) scale(1.2); /* 회전과 크기 조정 */
  border: 2px solid rgba(255, 255, 255, 0.8); /* 바깥 테두리 추가 */
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5), /* 글로우 효과 */
    0 0 0 4px rgba(255, 255, 255, 0.3); /* 떨어진 바깥 테두리 */
}

/* 페이지네이션 위치 강제 조정 */
 .swiper-horizontal>.gameinfo-pagination .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
  bottom: var(--swiper-pagination-bottom, 20%) !important;
  top: var(--swiper-pagination-top, auto);
  left: 0;
  width: 100%;
  display: flex;
  gap: 3%;
  flex-wrap: nowrap;
  justify-content: center;
}
.middle-bar {
  position: absolute;
  bottom: 15%;
  width: 50%;
  height: 0.1%;
  left: 25%;
  background-color: #ffffff;
  z-index: 2000;
}

.gamefeatures-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0; /* 원형에서 사각형으로 */
  margin: 0 5px;
  opacity: 1;
  transition: all 0.3s ease;
  transform: rotate(45deg); /* 45도 회전하여 다이아몬드 모양 */
}

.gamefeatures-pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: rotate(45deg) scale(1.2); /* 회전과 크기 조정 */
  border: 2px solid rgba(255, 255, 255, 0.8); /* 바깥 테두리 추가 */
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5), /* 글로우 효과 */
    0 0 0 4px rgba(255, 255, 255, 0.3); /* 떨어진 바깥 테두리 */
}
/* 페이지네이션 위치 강제 조정 */
 .swiper-horizontal>.gamefeatures-pagination {
  bottom: var(--swiper-pagination-bottom, 2%) !important;
}

/* 캐릭터 정보 페이지 스타일 */
.character-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}
.character-info-panel {
  width: 100%;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

.character-bg{
  height: 32%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.character-voice {
  position: relative;
  right: -40pt;
  display: flex;
  flex-direction: row-reverse;
  align-items: right;
  width: auto;
  top:-5vh;
  z-index: 100;
}

.character-name {
  color: #ffffff;
  font-size: 50px;
  font-weight: 700;
  font-family: 'Noto Sans CJK KR', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  text-align: left;
  margin-top: -7vh;
}

.character-description {
  flex: 1;
  margin-top: 20px;
  margin-bottom: 40px;
  padding-right: 70px;
  height: 300px;
}

.character-description p {
  color: #e0e0e0;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 20px;
  padding:5px;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  text-align: left;
  overflow-y: auto;
  white-space: pre-wrap;
  height: 100%;
  direction: ltr;
  overscroll-behavior: contain;
}
.character-description p::-webkit-scrollbar {
  width: 5px;                /* 스크롤바 두께 */
  background: #222222;    /* 스크롤바 배경 투명 */
}

.character-description p::-webkit-scrollbar-thumb {
  background: #5b5b5b;           /* 스크롤바 막대 색상 */
  border-radius: 4px;         /* 막대 양 끝 둥글게 */
}

.character-description p::-webkit-scrollbar-track {
  background: transparent;    /* 스크롤바 트랙(배경) 투명 */
}

.character-info-content {
  height: 68%; 
  display: flex; 
  flex-direction: row;
  background-image: url('/images/characterinfo/bg_middle_left.jpg');
  background-repeat: no-repeat;
}

.character-info-left {
  width: 15%;
}
.character-info-middle {
  width: 45%;
  margin-left:20px;
}
.character-info-right {
  width: 40%;
  position: relative;
  display: flex;
  align-items: flex-end;
  top: 50px;
}

.character-portraits {
  display: flex;
  width: 92%;
  gap: 15px;
  justify-content: flex-start;
  padding-top: 20px;
  padding-bottom: 10px;
  padding-left: 10px;
  margin-left: 20px;
  margin-bottom: 70px;
  overflow-x: auto;
  white-space: nowrap;
}
.character-portraits::-webkit-scrollbar {
  height: 5px;                /* 스크롤바 두께 */
  background: #222222;    /* 스크롤바 배경 투명 */
}

.character-portraits::-webkit-scrollbar-thumb {
  background: #5b5b5b;           /* 스크롤바 막대 색상 */
  border-radius: 4px;         /* 막대 양 끝 둥글게 */
}

.character-portraits::-webkit-scrollbar-track {
  background: transparent;    /* 스크롤바 트랙(배경) 투명 */
}

.portrait-item {
  background: #9b9b9b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.portrait {
  width: 166px;
  height: 166px;
  border: 5px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.portrait.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  filter: grayscale(0%);
  transform: scale(1.05);
}

.portrait:hover {
  border-color: rgba(255, 255, 255, 0.5);
  filter: grayscale(50%);
  transform: scale(1.02);
}

.portrait:active {
  transform: scale(0.98);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.character-illustration-main {
  display: flex;
}

.main-character {
  object-fit:fill;
  width: 100%;
  height: auto;
  min-width: 870px;
}

.page-section.active {
  transform: translateY(0);
  z-index: 10;
  opacity: 1;
  visibility: visible;
}

.page-section.prev {
  transform: translateY(-100vh);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5vh auto;
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
}

.play-btn:hover { transform: scale(1.08); }

.play-btn img {
  width: auto; 
  display: block;
}

.main-title {
  display: block;
  width: fit-content;
}

.main-title img {
  display: block;
  margin: 0 auto;
  padding-top: 30px;
  max-width: 90%;
  height: auto;
}

.subtitle {
  /* margin: 0 auto 38px auto; */
  display: block;
  width: fit-content;
}

.subtitle h2 {
  font-size: 25px;
  font-weight: 300;
  font-family: 'Noto Sans CJK KR regular', 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  color: #ffffff;
  text-align: center;
  margin: 0;
  text-shadow: 0px 0px 10px black;
}

.store-btns {
  margin-top: 10vh;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
}

.store-btn {
  flex: 1;
}

.store-btn img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 80px;
  object-fit: contain;
}

.reserve-btn {
  margin: 0 auto 0 auto;
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.reserve-btn img {
  display: block;
}

.reserve-btn span {
  position: absolute;
  width: 100%;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  font-size: 23pt;
  font-weight: bold;
  z-index: 1;
  pointer-events: none;
}

.scroll-indicator {
  position: fixed;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  animation: bounce 2s infinite;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator img {
  width:30px; height: auto;
  /* width: auto; height: 50px; */
  margin-top: 4px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

/* 팝업 스타일 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.popup-content {
  width: 500px;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: none;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.popup-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: url('/images/main_page/pop_bg_top.png') no-repeat center top;
  background-size: 100% 100%;
  border-radius: 15px 15px 0 0;
  z-index: -1;
}

.popup-bg-middle {
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  bottom: 29px;
  background: url('/images/main_page/pop_bg_middle.png') repeat-y center;
  background-size: 100% auto;
  z-index: -1;
}

.popup-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: url('/images/main_page/pop_bg_bottom.png') no-repeat center bottom;
  background-size: 100% 100%;
  border-radius: 0 0 15px 15px;
  z-index: -1;
}

.popup-close {
  position: absolute;
  top: 0px;
  right: -50px;
  background: url('../images/main_page/btn_close.png') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-title {
  color: #6A615C;
  font-family: 'SB AggroOTF B', 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 25px;
  text-align: center;
}

.popup-form {
  width: 100%;
  max-width: 400px;
}

.popup-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #D5CDC4;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.popup-input:focus,
.popup-input:not(:placeholder-shown) {
  border-color: #dd5300;
  color: #dd5300;
}

.popup-platform {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-btn {
  width: 100px;
  height: 38px;
  padding: 10px 20px;
  border: 2px solid #D5CDC4;
  background: #ffffff;
  color: #CDCDCD;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.platform-btn.active {
  background: #333333;
  color: #ffffff;
}

.popup-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #5B5B5B;
  font-size: 14px;
}

.popup-checkbox input[type="checkbox"] {
  width: 33px;
  height: 33px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('/images/main_page/pop_check_off.png') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: pointer;
}

.popup-checkbox input[type="checkbox"]:checked {
  background: url('/images/main_page/pop_check_on.png') no-repeat center center;
  background-size: contain;
}

.popup-details-btn {
  background: #666;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  margin-left: 5px;
  width: 60px;
  height: 40px;
}

.popup-reserve-btn {
  width: 100%;
  height: 65px;
  background: #D5CDC4;
  border: none;
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.popup-reserve-btn:enabled {
  background: #333333;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-reserve-btn:enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.popup-reserve-btn:enabled:active {
  transform: translateY(0);
}

.popup-reserve-btn span {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.terms-error-message {
  color: #dd5300;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-icon {
  font-size: 16px;
  font-weight: bold;
}

/* 성공 팝업 스타일 */
.success-popup {
  max-width: 500px;
  height: 280px;
  text-align: center;
}

.success-content {
  padding: 40px 20px;
  position: relative;
  z-index: 10;
}

.success-message {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 45px;
}

.success-btn {
  background: #333333;
  color: #ffffff;
  width: 100%;
  height: 65px;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.success-btn:hover {
  background: #555555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 문의 팝업 스타일 */
.contact-popup {
  height: 600px;
}

.contact-popup textarea {
  height: 180px;
  resize: none;
  color: #5B5B5B !important;
}

@media (max-width: 1024px) {
  .nav-menu {
    gap: 18px;
  }
  .nav-menu a {
    font-size: 1.1rem;
  }
  /* 유튜브 팝업 버튼 스타일 */
  .youtube-video-selector {
    top: -40px;
    left: 0;
    flex-direction: row;
    gap: 6px;
  }
  
  .video-selector-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
  }
}

@media (max-width: 700px) {
  .mobile-menu-overlay {
    display: none !important;
    position: fixed;
    z-index: 3000;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.7);
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu-overlay.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }

  .nav-menu {
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 1vw;
  }
  .nav-menu li {
    margin-bottom: 0;
  }
  .nav-menu a {
    font-size: 0.7rem;
    padding: 1px 0;
    min-width: unset;
    white-space: nowrap;
    word-break: keep-all;
  }

  .popup-details-btn {
    font-size: 8px;
    margin-left: 0px;
  }

  .main-title img { max-width: 80%; }
  .subtitle h2 { font-size: 15px; }
  .store-btns {
    gap: 10px;
  }
  .store-btn img { height: 36px; }
  .reserve-btn img { height: 40px; }
  .reserve-btn span { font-size: 12pt; }
  .play-btn { width: 100px; height: 100px; }
  .play-btn img { width: 200px; height: auto; }
  
  /* Reward 페이지 제목 반응형 */
  .reward-title {
    text-align: center;
    padding-top: 15%;
    /* padding: 0 20px; */
    /* margin-bottom: 120px !important; */
  }
  .reward-content {
    top: -6% !important;
  }
  
  .reward-title h2 {
    font-size: 1.2rem;
  }
  
  .reward-title p {
    font-size: 16px;
  }

  .reward-title2 {
    width: 90%;
    position: relative;
    top: -23% !important;
  }
  .reward-title2 h2 {
    font-size: 1rem;
    margin-top: 40px !important;
  }
  .reward-content2 {
    position: relative;
    top: -23% !important;
    gap: 20px !important;
  }
  .reward-goals-card2 {
    min-width: 90px !important;
  }

  .reward-page .reward-item img {
    min-width: 100% !important;
    height: auto !important;
    position: relative !important;
    left: 30% !important;
    top: 20% !important;
  }
  
  .reward-page .reward-item-box {
    position: absolute !important;
    top: 10% !important;
    min-width: 200px !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-left: 8% !important;
    margin-right: 8% !important;
    width: 80%;
  }
  
  .reward-page .reward-item-box .reward-goals-card {
    height: auto !important;
    flex: 0 0 calc(33.333%) !important; /* 모든 이미지를 동일한 크기로 */
    max-width: calc(33.333%) !important;
    width: 10vw;
  }

  /* 첫 번째와 두 번째 아이템을 33.5% 너비로 설정하여 한 줄에 2개씩 배치(3등분이 안되도록) */
  .reward-page .reward-item-box .reward-goals-card:nth-child(1),
  .reward-page .reward-item-box .reward-goals-card:nth-child(2) {
    flex: 0 0 calc(33.5%) !important;
    max-width: calc(33.5%) !important;
  }
  
  /* order 속성을 기준으로 3번째부터 줄바꿈 */
  .reward-page .reward-item-box .reward-goals-card:nth-child(3),
  .reward-page .reward-item-box .reward-goals-card:nth-child(4),
  .reward-page .reward-item-box .reward-goals-card:nth-child(5) {
    flex: 0 0 calc(33.333%) !important;
    max-width: calc(33.333%) !important;
  }
  
  .reward-page .reward-item-box-goals  {
    width: 28vw;
    aspect-ratio: 2/3;
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
  }

  /* 가운데서부터 오른쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #887876; 
    transform: translateY(-50%);
    z-index: -1;
  }
  /* 가운데서부터 왼쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #887876; 
    transform: translateY(-50%);
    z-index: -1;
  }

  /* 가운데서부터 오른쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-right.suc-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #ffa4e1; 
    transform: translateY(-50%);
    z-index: -1;
  }
  /* 가운데서부터 왼쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-left.suc-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #ffa4e1; 
    transform: translateY(-50%);
    z-index: -1;
  }

  .reward-page .reward-item-box .reward-goals-card:nth-child(2) .reward-item-box-icon.line-right::before,
  .reward-page .reward-item-box .reward-goals-card:nth-child(3) .reward-item-box-icon.line-left::after {
    width: 0% !important;
  }

  .reward-page .reward-item-box-icon img {
    width: 10vw;
    position: relative;
    z-index: 1;
  }

  /* 달성 보상 텍스트 크기 조정 */
  .reward-page .reward-item-box-goals-text h3 {
    font-size: 2vw;
  }
  
  .reward-page .reward-item-box-goals-text h3.success {
    font-size: 2vw;
  }
  
  .reward-page .reward-item-box-goals-text h4 {
    font-size: 3.5vw;
  }
  
  .reward-page .reward-item-box-goals-text h4.success {
    font-size: 3.5vw;
  }

  .reward-page .reward-item-box-goals-reward h5 {
    font-size: 2.2vw;
  }
  
  .reward-page .reward-item-box-goals-reward h5.success {
    font-size: 2.2vw;
  }


  
  /* 다른 페이지들 반응형 */
  .gameinfo-page h2,
  .characterinfo-page h2,
  .gamefeatures-page h2 {
    /* font-size: 24px; */
    margin-bottom: 15px;
  }
  
  .gameinfo-page p,
  .characterinfo-page p,
  .gamefeatures-page p {
    /* font-size: 16px; */
    padding: 0 20px;
    line-height: 1.5;
  }

  .gameinfo-content {
    bottom: 0vh;
  }

  .gameinfo-text p {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 40px;
    /* margin: 0; */
    width: 100%;
    margin-top: 45% !important;
    min-width: 400px;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  }

  .gameinfo-pagination .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
  }
  
  /* 캐릭터 정보 페이지 모바일 반응형 */
  .character-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .character-info-panel {
    width: 100%;
    padding: 30px 20px;
    order: 2;
    height: 100%;
  }

  .character-bg {
    display: none;
  }

  .character-info-content {
    height: 100%; 
    display: flex; 
    flex-direction: column-reverse;
    background-image: url('/images/characterinfo/bg_middle_left.jpg');
    background-repeat: no-repeat;
  }
  
  .character-voice {
    height:15%;
    top :-3.8vh;
    right: -0.5vw;
  }
  .character-name {
    padding-left: 20px;
    font-size: clamp(0.5rem, 4vw, 2.5rem);
  }

  .character-description {
    padding: 0;
    margin-bottom: 0px;
    height: 18vh;
    margin-top: 10px;
  } 
  
  .character-description p {
    font-size: 12px;
  }
  
  .character-description p::-webkit-scrollbar {
    width: 3px;                /* 스크롤바 두께 */
  }

  .character-portraits {
    gap: 10px;
    padding-left: 2px;
  }

  .character-portraits::-webkit-scrollbar {
    height: 3px;                /* 스크롤바 두께 */
  }

  .character-info-panel {
    padding: 0;
  }
  .character-info-left {
    display: none;
  }
  .character-info-middle {
    width: 90%;
    height: 45%;
    margin-left: 10px;
  }
  .character-info-right {
    width: 100%;
    display: flex;
    align-items: flex-end;
    top: 0px;
  }

  .portrait {
    width: 80px;
    height: 80px;
  }

  .main-character {
    min-width: 100%;
  }

  .game-features-swiper {
    top: -5vh !important;
  }
  /* 게임 특징 페이지 페이지네이션 */
  .game-features-swiper .swiper-slide-active {
    transform: scale(1) !important;
  }
  
  .game-features-swiper .swiper-slide-prev {
    transform: scale(0.8) !important;
  }
  
  .game-features-swiper .swiper-slide-next {
    transform: scale(0.8) !important;
  }

  .gamefeatures-pagination .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
  }

  .swiper-horizontal>.gamefeatures-pagination {
    bottom: var(--swiper-pagination-bottom, 15%) !important;
  }
  
  .popup-content {
    width: 90vw;
    max-height: 80vh;
    height: auto;
    padding: 30px 20px;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
  }
  /* 모든 팝업의 닫기 버튼에 동일한 스타일 적용 */
  .popup-close {
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 1000;
    background: url('../images/main_page/btn_close.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .footer-section {
    height: 180px !important;
  }

  .footer-section a {
    font-size: 8pt !important;
  }

  .footer-logo img {
    width: 50% !important;
    height: auto !important;
  }

  .footer-content {
    margin-top: 5px !important;
    font-size: 8px !important;
  }
  /* 모바일 전용: PC 요소 숨김 + 모바일 레이아웃/크기 보장 */
  .header {
    display: none !important;
  }
  .mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    padding: 0 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 3000;
  }
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1201;
    flex-shrink: 0;
  }
  .mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
  }
  .mobile-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 1200;
  }
  .mobile-logo img {
    height: 40px;
    width: auto;
  }
  /* 모바일 언어 선택기 스타일 */
  .mobile-header .language-selector {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1201;
  }
  .mobile-header .language-selector:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-header .language-selector img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }
  /* 모바일에서 언어 텍스트 숨김 */
  .mobile-hidden {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    visibility: hidden !important;
  }
  .mobile-header .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    z-index: 3100;
    display: none;
  }
  .mobile-header .lang-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
  }
  .mobile-header .lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-menu-social img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
  }
  .mobile-menu-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .mobile-menu-overlay.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-content {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
  }
  .mobile-menu-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-menu-nav ul li a {
    color: #ebe6e6;
    text-decoration: none;
    font-family: 'Noto Sans CJK KR', 'Noto Sans KR', sans-serif;
    font-size: 30px;
    opacity: 0.85;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 4px 0;
  }
  /* .mobile-menu-nav ul li a.active, .mobile-menu-nav ul li a:hover {
    opacity: 1;
    color: #fff;
  } */
  .mobile-menu-social {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 16px;
  }
  .mobile-menu-social img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
  }
  .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    transform: scale(1.0) !important;
  }
}

/* PC 전용: 모바일 요소 숨김 */
@media (min-width: 701px) {
  .mobile-header,
  .mobile-menu-overlay,
  .mobile-menu-btn,
  .mobile-menu-social {
    display: none !important;
  }
}

/* 태블릿 크기 반응형 (701px ~ 1350px) */
@media (min-width: 701px) and (max-width: 1350px) {
  .main-title img { max-width: 70%; }
  .subtitle h2 { font-size: 18px; }
  .store-btn img { height: 45px; }
  .reserve-btn img { height: 50px; }
  .reserve-btn span { font-size: 14pt; }

  .character-name {
    font-size: 32px;
  }
    
  .character-description p {
    font-size: 15px;
  }
  .character-info-left {
    width: 10%;
  }
  .character-info-right {
    width: 90%;
  }

  .portrait {
    width: 100px;
    height: 100px;
  }

  .header-content {
    padding: 0 10px 0 10px;
    height: 64px;
    gap: 10px;
  }
  .header {
    height: 64px;
  }
  .header-left {
    gap: 24px;
  }
  .logo img {
    width: 90px;
    max-width: 12vw;
    height: auto;
  }
  .nav-menu {
    gap: 10px;
    padding: 0 10px;
  }
  .nav-menu a {
    font-size: 1rem;
    padding: 2px 0;
    min-width: unset;
    white-space: nowrap;
    word-break: keep-all;
  }
  .social-links img {
    height: 20px;
    margin: 2px 6px 0 6px;
  }
  .language-selector {
    font-size: 0.9rem;
  }
  .language-selector img {
    height: 20px;
  }
  .current-language {
    width: 60px !important;
    font-size: 0.9rem !important;
  }
  .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    transform: scale(1.0) !important;
  }
}

/* 태블릿 크기 반응형 (701px ~ 1350px) */
@media (min-width: 701px) and (max-width: 1000px) {
  .reward-page .reward-item img {
    min-width: 60% !important;
    height: auto !important;
    position: relative !important;
    left: 30% !important;
    top:0% !important;
  }

  .reward-page .reward-item-box {
    position: absolute !important;
    min-width: 200px !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-left: 8% !important;
    margin-right: 8% !important;
    width: 60%;
  }
  
  .reward-page .reward-item-box .reward-goals-card {
    height: auto !important;
    flex: 0 0 calc(33.333%) !important; /* 모든 이미지를 동일한 크기로 */
    max-width: calc(33.333%) !important;
    width: 10vw;
  }

  /* 첫 번째와 두 번째 아이템을 33.5% 너비로 설정하여 한 줄에 2개씩 배치(3등분이 안되도록) */
  .reward-page .reward-item-box .reward-goals-card:nth-child(1),
  .reward-page .reward-item-box .reward-goals-card:nth-child(2) {
    flex: 0 0 calc(33.5%) !important;
    max-width: calc(33.5%) !important;
  }
  
  /* order 속성을 기준으로 3번째부터 줄바꿈 */
  .reward-page .reward-item-box .reward-goals-card:nth-child(3),
  .reward-page .reward-item-box .reward-goals-card:nth-child(4),
  .reward-page .reward-item-box .reward-goals-card:nth-child(5) {
    flex: 0 0 calc(33.333%) !important;
    max-width: calc(33.333%) !important;
  }
  
  .reward-page .reward-item-box-goals  {
    width: 20vw;
    aspect-ratio: 2/3;
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
  }

  /* 가운데서부터 오른쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #887876; 
    transform: translateY(-50%);
    z-index: -1;
  }
  /* 가운데서부터 왼쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #887876; 
    transform: translateY(-50%);
    z-index: -1;
  }

  /* 가운데서부터 오른쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-right.suc-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #ffa4e1; 
    transform: translateY(-50%);
    z-index: -1;
  }
  /* 가운데서부터 왼쪽으로 라인 없애기 */
  .reward-page .reward-item-box-icon.line-left.suc-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 50%;
    /* width: 0% !important; */
    height: 2px;
    background: #ffa4e1; 
    transform: translateY(-50%);
    z-index: -1;
  }

  .reward-page .reward-item-box .reward-goals-card:nth-child(2) .reward-item-box-icon.line-right::before,
  .reward-page .reward-item-box .reward-goals-card:nth-child(3) .reward-item-box-icon.line-left::after {
    width: 0% !important;
  }

  .reward-page .reward-item-box-icon img {
    width: 10vw;
    position: relative;
    z-index: 1;
  }

  /* 달성 보상 텍스트 크기 조정 */
  .reward-page .reward-item-box-goals-text h3 {
    font-size: 1.5vw;
  }
  
  .reward-page .reward-item-box-goals-text h3.success {
    font-size: 1.5vw;
  }
  
  .reward-page .reward-item-box-goals-text h4 {
    font-size: 2.5vw;
  }
  
  .reward-page .reward-item-box-goals-text h4.success {
    font-size: 2.5vw;
  }

  .reward-page .reward-item-box-goals-reward h5 {
    font-size: 1.5vw;
  }
  
  .reward-page .reward-item-box-goals-reward h5.success {
    font-size: 1.5vw;
  }
}

.footer-section {
  width: 100%;
  height: 270px;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
} 
.footer-section a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}
.footer-logo img {
  width: 100%;
  height: auto;
}
.footer-content-pop {
  display: flex;
  font-family: 'Noto Sans KR','Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
  gap: 25px;
  color: #888888;
}
.footer-content {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #888888;
}

/* 캐릭터 정보 전환 효과 */
.character-name h1,
.character-description p,
.main-character {
  transition: all 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* @media (max-width: 480px) {
  .gameinfo-text {
    padding: 20px 15px;
  }
  
  .gameinfo-text h2 {
    font-size: 1.5rem;
  }
  
  .gameinfo-text p {
    font-size: 0.9rem;
  }
} */

/* 입력 이력 차단 스타일 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: inherit !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* 자동완성 드롭다운 숨기기 */
input::-webkit-calendar-picker-indicator {
  display: none !important;
}

/* Firefox 자동완성 스타일 */
input:-moz-autofill {
  background-color: white !important;
  color: inherit !important;
}

/* Featured Page 스타일 */
.featured-page {
  /* position: relative; */
  width: 100%;
  min-height: 100vh;
  /* display: flex; */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0 270px 0;
}

.featured-content-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px;
  background: rgba(40, 40, 40, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.featured-card {
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: hand;
  cursor: pointer;
}

.featured-card-content {
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-height: 240px;
}

.featured-card-content-title {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
  text-align: left;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.featured-card-title {
  font-size: 26px;
  font-weight: bold;
  color: #232323;
  margin: 0;
  text-align: left;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.featured-card-description {
  font-size: 12px;
  color: #5f5f5f;
  margin: 0;
  font-family: 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans TC', 'Inter', Arial, sans-serif;
}

.featured-card-image {
  width: 70%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.featured-card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
}

/* 반응형 디자인 */
@media (max-width: 768px) {

  .featured-content-container {
    padding: 20px 15px;
  }

  .featured-content-wrapper {
    gap: 10px;
  }
  
  .featured-card-content {
    padding: 10px;
    flex-direction: column;
    max-height: none;
  }
  
  .featured-card-content-title {
    width: 100%;
    gap: 0px;
  }
  
  .featured-card-image {
    width: 100%;
    height: auto;
    min-height: 100px;
    justify-content: right;
  }
  
  .featured-card-image img {
    width: 60%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
  
  .featured-card-title {
    font-size: 16px;
  }
  
  .featured-card-description {
    font-size: 11px;
  }
}