/* ============================================================
   페이지 골격: 헤더 · 네비게이션 · 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-img { width: 46px; height: 46px; }
.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;
}

/* ---------- 모바일/좁은 화면 대응 ---------- */
@media (max-width: 1080px) {
  .gg-container, .gg-header-in, .gg-nav-in, .gg-main, .gg-bottom, .gg-footer, .gg-page-single { width: 100%; padding-left: 12px; padding-right: 12px; }
  .gg-nav-in { overflow-x: auto; }
  .gg-nav-item { padding: 0 12px; }
}
@media (max-width: 900px) {
  .gg-main { display: flex; flex-direction: column; gap: 16px; }
  .gg-col { height: auto; }
  .gg-bottom { display: flex; flex-direction: column; gap: 16px; height: auto; }
  .gg-me, .gg-mission, .gg-attend, .gg-jackpot, .gg-prob { height: auto; min-height: 0; }
  .gg-slot { height: auto; }
}
