/* topNav.css  */

/* 전체 헤더 레이아웃 */
.pg-header {
  position: fixed;
  top: 0;
  left: 0;
  height:120px;
  width: 100%;
  z-index: 1000; /* 로고 아래지만 모든 요소 위 */
  background-color: #333;
  background-image: url(/dist/images/gnb_bg.png);
}

/* ===== 상단 검정 영역 ===== */
.pg-header-top {
  position: relative;
  padding: 5px 0;
  z-index: 10;
}

/* ===== 골드 메뉴 영역 ===== */
.pg-header-bottom {
  position: relative;
  z-index: 8;
  height: 80px;  
  padding-bottom: 0;
}

/* .pg-header-bottom.sticky {
  background: rgba(20, 20, 20, 1);
  border-bottom: 1px solid rgba(255, 200, 39, 0.1);
} */

/* ====== 로고_FIXED ====== */
.pg-logo-img img{
  position: fixed;
  top: 15px;
  z-index: 1000;   /* 헤더보다 위로 */
  height: auto;
  padding-left:10px; 
  max-height: 85px;
  width: auto;
}

.pg-header button {
   height:25px; font-size:0.9em; padding:0 12px; margin-left: 3px; margin-top:-2px;
}
.pg-header .badge{
  color:#fff;
  padding:4px 5px;
  font-size: 0.9em;
  font-weight: 100;
}
.pg-header .login-money {
  font-size:0.9em;
  color:#fff;
}

/* 좌측 알림 박스 */
.pg-search-box {
  /* background-color: #142841; */
  border-radius: 6px;
  padding: 8px 20px;
  /* min-width: 400px; */
  color: #b8bcc4;
  font-size: 0.9rem;
}

.pg-search-placeholder {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pg-gold {
  background: linear-gradient(135deg, #C8A24D, #A98532);
  color: #333333;
  border: 1px solid #D9B96A;
}
.btn-pg-gold:hover {
  filter: brightness(1.12);
}

.btn-pg-menu {
  border-radius: 6px;
  border: 0px solid #999;
  padding: 8px 18px;
  height: 32px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(4, 43, 61, 0.5);
  white-space: nowrap;
}

.btn-pg-menu:hover, .btn-pg-menu.active {
  border-color: #2c0101;        /* hover 시 골드로 */
  background-color: rgb(119, 3, 3);
  height: 33px;
}

.btn-pg-menu.active_game:hover, .btn-pg-menu.active_game {
  border-color: #2c0101;        /* hover 시 골드로 */
  background-color: rgb(119, 3, 3);
  height: 33px;
}

/* ===== 유저 아이콘 ===== */
.pg-user-btn {
  background-color: #11161c;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  border: 0px solid #f0c86a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pg-user-btn::after {
  display: none;
}

.pg-user-flag {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: url("/assets/flags/kr.png") center center / cover no-repeat;
}

/* ===== 모바일 메뉴 ===== */
.pg-nav-mobile {
  display: none;
  padding-top: 8px;
}

.pg-nav-mobile.show {
  display: block;
}

.pg-mobile-menu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 모바일 햄버거 버튼 */
.pg-nav-toggle {
  margin-right: 8px;  
}

.pg-nav-menu ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-nav-menu ul li .nav-link {
  padding: 4px 10px;
}

.pg-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.pg-nav li {
  position: relative;
}

.pg-nav>ul>li {
  white-space: nowrap;
  padding: 5px 0 5px 15px;
}

.pg-nav a,
.pg-nav a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
}

.pg-nav a i,
.pg-nav a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-right: 5px;
}

.pg-nav a:hover,
.pg-nav .active,
.pg-nav .active:focus,
.pg-nav li:hover>a {
  color: #dbc85b;
}

.pg-nav .getstarted,
.pg-nav .getstarted:focus {
  padding: 8px 25px;
  margin-left: 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: 400;
  font-family: "Noto Sans KR","Poppins", sans-serif;
  border: 2px solid #dbc85b;
}

.pg-nav .getstarted:hover,
.pg-nav .getstarted:focus:hover {
  color: #fff;
  background: #dbc85b;
}

.pg-nav .getstarted:hover:before,
.pg-nav li:hover>.getstarted:before {
  visibility: hidden;
}

/* 기본: PC에서는 안 보이게 */
.m_money_box {
  display: none;
  background-color: #222;
}

.vs_box {
  padding-top: 60px;
  min-height: 300px;
  max-height: 950px;
  overflow: hidden;
  border:0px solid orange;
}
.vs_item {
  display:none;
}
.vs_item.active {
  display:block;
}
.vs_item img{
  max-width:100%;
  height:auto;
}

/* 게임카테고리박스 */
.category-box-pc {
  max-width:1200px;
  height:865px;    
  background-image: url(/dist/images/category_bg.png);
  background-position: center;
  background-repeat: no-repeat;
  /*background-size: cover;     /* div 크기에 맞춰 자동 스케일 */
  background-size: contain;   /* div 안에 전부 보이게 */
  text-align:center;  
  margin-top: -50px;
  padding:190px 100px;  
}
.category-box-mo {
  background-color: #161616;
}

/* 반응형 */
@media (max-width: 1024px) {
  /* 배경이미지 숨김 */
  .category-box-pc {
    display: none;
  }
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    padding-left: 5px !important;
    padding-right: 5px !important;
    /* border: 2px solid white; */
  }
  .pg-header {
    top: 0;
    padding: 0;
    height: 65px;
    background-color: #000;
  }
  .pg-header-top {
    padding: 0;
    margin: 0;
    /* display: none; */
  }
  .pg-header-bottom {
    height: 60px;
  }
  .pg-nav {
    height: 60px;
    padding-left:6px;
  }
  .pg-logo-img img {
    height: 40px;
  }  
}

@media (max-width: 768px) {   
  .pg-nav {
    height: 60px;
    padding-left:6px;
  }
  .pg-logo-img img {
    top: 10px;
    height: 40px;
  }
  .m_money_box {
    display: block;
    padding: 10px 5px;
    list-style: none;
    background: #181818;
  }
  .m_money_box{
    position: sticky;
    top: 60px;        /* 상단 50px 위치에 닿으면 고정 */
    z-index: 3000;
  }  
  .m_money_box ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;        /* 2칸 가로배치 */
    width: 100%;
  }
  .m_money_box li {
    width: 50%;              /* 50%, 50% */
    display: flex;
    padding: 0 4px;          /* li끼리 간격 */
    box-sizing: border-box;
  }
  .m_money_box li a {
    width: 100%;
    padding: 8px 4px;
    display: flex;
    justify-content: center; /* 아이콘 + 텍스트 중앙 정렬 */
    align-items: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    background-color: #333;  
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  }
  /* 아이콘 조금만 여유 */
  .m_money_box li a i {
    font-size: 1rem;
  }
  /* 글자 크기 모바일에 맞게 살짝 줄이기 */
  .m_money_box li a span,
  .m_money_box li a {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .f_section_web {
    display: none;
  }
  .pg-header-top {
    background-color: #333;
  }
}