/* ============================================================
   페이지 골격: 헤더 · 네비게이션 · 3컬럼 그리드 · 푸터
   ============================================================ */
/* ---------- 상단 헤더 (높이 82) ---------- */
.gg-header { background: #fff; border-bottom: 1px solid var(--card-border); }
.gg-header-in {
  width: 1060px; margin: 0 auto; height: 82px;
  display: flex; align-items: center; justify-content: space-between;
}
.gg-logo { display: flex; align-items: center; gap: 12px; }
.gg-logo-title { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }
.gg-logo-sub { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--tx-sub); margin-top: 2px; }

.gg-header-right { display: flex; align-items: center; gap: 12px; }
.gg-profile-chip {
  height: 52px; padding: 0 18px 0 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 3px 10px rgba(96, 143, 214, .12);
}
.gg-profile-chip .gg-avatar { width: 38px; height: 38px; }
.gg-profile-chip .gg-nick { font-size: 14px; font-weight: 800; }
.gg-profile-chip .gg-lv { font-size: 11px; font-weight: 700; color: var(--tx-sub); border: 1px solid var(--card-border); border-radius: 999px; padding: 1px 8px; }
.gg-points-chip {
  height: 46px; padding: 0 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 900;
  box-shadow: 0 3px 10px rgba(96, 143, 214, .12);
}
.gg-points-chip .gg-coin { width: 22px; height: 22px; }
.gg-points-chip small { font-size: 12px; font-weight: 800; color: var(--tx-sub); }

/* ---------- 네비게이션 (높이 48) ---------- */
.gg-nav { background: #fff; border-bottom: 1px solid var(--card-border); }
.gg-nav-in { width: 1060px; margin: 0 auto; height: 48px; display: flex; align-items: stretch; gap: 8px; }
.gg-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 0 22px; font-size: 14px; font-weight: 700; color: var(--tx-sub);
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.gg-nav-item .gg-nav-ico { width: 20px; height: 20px; }
.gg-nav-item { transition: color .25s ease; }
.gg-nav-item:hover { color: var(--tx); }
.gg-nav-item.is-active { color: var(--tx); border-bottom-color: var(--blue); }

/* ---------- 메인 3컬럼 그리드 ---------- */
.gg-main {
  width: 1060px; margin: 18px auto 0;
  display: grid; grid-template-columns: 246px 554px 222px;
  justify-content: space-between;
}
.gg-col { display: flex; flex-direction: column; gap: 16px; height: 892px; }
.gg-col.gg-col-auto { height: auto; min-height: 892px; }

/* ---------- 하단 와이드 행 ---------- */
.gg-bottom {
  width: 1060px; margin: 18px auto 0;
  display: grid; grid-template-columns: 681px 361px; justify-content: space-between;
  height: 313px;
}

/* ---------- 푸터 ---------- */
.gg-footer {
  width: 1060px; margin: 14px auto 0; height: 56px;
  display: flex; align-items: center; justify-content: center; position: relative;
  color: var(--tx-sub); font-size: 12px;
}
.gg-footer-links { position: absolute; right: 0; display: flex; gap: 18px; font-size: 12px; }
.gg-footer-links span { cursor: pointer; }


/* ---------- 페이지 공통 ---------- */
.gg-page-single {
  width: 1060px; margin: 18px auto 0;
}

/* 반응형 규칙은 src/styles/responsive.css 에서 일괄 관리 */

/* ---------- 게임 메뉴 (한 칸으로 묶은 게임 목록) ---------- */
/* 상단 메뉴의 "게임" 칸 — 링크가 아니라 버튼이라 기본 버튼 모양을 지운다 */
.gg-nav-item.gg-nav-games,
.gg-nav-item.gg-nav-megaphone {
  border: none; border-bottom: 3px solid transparent;
  background: none; font-family: inherit; height: 100%;
}
.gg-nav-caret {
  width: 0; height: 0; margin-left: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .18s ease;
}
.gg-nav-games.is-open .gg-nav-caret { transform: rotate(180deg); }
.gg-nav-games.is-open { color: var(--tx); }

/* 펼쳐지는 목록 (상단·하단 공용) */
.gg-games-menu {
  position: fixed; z-index: 900;
  min-width: 168px; padding: 6px;
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 32, 60, .18);
  display: flex; flex-direction: column; gap: 2px;
}
.gg-games-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 10px; text-decoration: none;
  font-size: 13.5px; font-weight: 800; color: var(--tx-sub); white-space: nowrap;
}
.gg-games-item img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.gg-games-item img.gg-img-smooth { image-rendering: auto; }
.gg-games-item:hover { background: #f2f8ff; color: var(--tx); }
.gg-games-item.is-on { background: #eaf3ff; color: #1d6bfa; }

/* 하단 메뉴에서 열면 버튼 위로 뜬다 */
.gg-games-menu.is-bottom { top: auto; }
