/* ============================================================
   홈 페이지 — PC(1번 시안) / Mobile(2번 시안) 독립 레이아웃
   - 이 파일은 Desktop(1200↑) 기준. Tablet/Mobile은 responsive.css
   ============================================================ */
.gg-home {
  width: 1060px; margin: 18px auto 0;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- Hero Banner (PC: 1번 시안) ---------- */
.gg-home-hero {
  position: relative;
  height: 264px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(90deg, #e3f2fe 0%, #eef7fe 45%, #fbfdff 100%);
  border: 1px solid #e7f0fb;
  box-shadow:
    0 10px 30px rgba(96, 143, 214, .14),
    0 1px 3px rgba(96, 143, 214, .08),
    inset 0 2px 0 rgba(255, 255, 255, .9);
}
.gg-home-hero-art {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 100%; width: auto;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}
.gg-home-hero-txt { position: relative; z-index: 1; padding: 44px 0 0 56px; }
.gg-home-hero-welcome {
  font-size: 15px; font-weight: 900; letter-spacing: 2.5px;
  color: #4a90d9; margin-bottom: 9px;
}
.gg-home-hero-title {
  font-size: 46px; font-weight: 900; letter-spacing: .5px;
  color: #1158c3; line-height: 1.05; margin-bottom: 12px;
}
.gg-home-hero-sub { font-size: 14px; font-weight: 700; color: #8ba1c4; margin-bottom: 24px; }
.gg-home-hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 30px;
  border: 1px solid #eab63a; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #ffe36a 0%, #ffcf43 100%);
  box-shadow: 0 4px 0 #e6ac16, 0 10px 20px rgba(230, 172, 22, .25), inset 0 2px 0 rgba(255, 255, 255, .6);
  font-family: inherit; font-size: 16px; font-weight: 900; color: #173a66;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.gg-home-hero-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.04); }
.gg-home-hero-btn:active {
  transform: scale(.98) translateY(2px);
  box-shadow: 0 2px 0 #e6ac16, 0 5px 12px rgba(230, 172, 22, .22), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.gg-home-hero-btn img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }

/* ---------- 바로가기 (PC: 6칸 한 줄) ---------- */
.gg-home-quick {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: #fff; border: 1px solid #e7f0fb; border-radius: 22px;
  box-shadow: 0 8px 24px rgba(96, 143, 214, .10), 0 1px 3px rgba(96, 143, 214, .06);
  padding: 22px 8px;
}
.gg-home-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; cursor: pointer;
  border-right: 1px solid #eef4fb;
  transition: background .2s ease;
}
.gg-home-quick-item:last-child { border-right: none; }
.gg-home-quick-item:hover { background: #f2f8ff; border-radius: 12px; }
.gg-home-quick-item:active { transform: scale(.98); }
.gg-home-quick-item img { height: 56px; width: auto; object-fit: contain; image-rendering: auto; margin-bottom: 6px; }
.gg-home-quick-name { font-size: 14px; font-weight: 900; color: #172e67; }
.gg-home-quick-sub { font-size: 11.5px; font-weight: 700; color: #9ca5bd; }

/* ---------- 행 그리드 (PC: 1번 시안 비율) ---------- */
.gg-home-row1 { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 18px; }
.gg-home-row2 { display: grid; grid-template-columns: 473px minmax(0, 1fr); gap: 18px; }
.gg-home-row3 { display: grid; grid-template-columns: minmax(0, 1fr) 346px; gap: 18px; }
.gg-home .gg-card-title { font-size: 14.5px; }
.gg-home-link { font-size: 12px; font-weight: 800; color: #7f8a9e; cursor: pointer; }
.gg-home-link:hover { color: #256eeb; }

/* ---------- 내 정보 (PC: 세로 카드 — 1번 시안) ---------- */
.gg-home-me2 {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 0; row-gap: 0;
  align-content: start;
}
.gg-home-me-title { grid-column: 1 / -1; font-size: 14.5px; font-weight: 900; color: #16305e; margin-bottom: 8px; }
.gg-home-me-avatar {
  grid-column: 1 / -1; justify-self: center;
  width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #e3f0fd 100%);
  border: 1px solid #e3effb;
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 10px;
}
.gg-home-me-id {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; row-gap: 12px;
  margin-bottom: 12px;
}
.gg-home-me-name {
  grid-column: 1 / -1; justify-self: center;
  display: flex; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 900; color: #172e67;
}
.gg-home-me-name .gg-lv { font-size: 11px; font-weight: 700; color: var(--tx-sub); border: 1px solid var(--card-border); border-radius: 999px; padding: 1px 8px; background: #fff; }
.gg-home-me-id .lbl {
  font-size: 11px; font-weight: 800; color: #5f6f92;
  background: #e4eefb; border-radius: 8px; padding: 3px 9px;
}
.gg-home-me-id .pts { justify-self: end; font-size: 19px; font-weight: 900; color: #1158c3; }
.gg-home-me-id .pts small { font-size: 12px; color: var(--tx-sub); font-weight: 800; }
.gg-home-me-stat {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #f4f8fd; border: 1px solid #e9f1fa;
  padding: 12px 6px; margin-bottom: 14px;
}
.gg-home-me-stat:first-of-type { border-radius: 12px 0 0 12px; border-right: none; }
.gg-home-me-stat:last-of-type { border-radius: 0 12px 12px 0; }
.gg-home-me-stat .k { font-size: 11px; font-weight: 800; color: #8c9bb8; }
.gg-home-me-stat .v { font-size: 13.5px; font-weight: 900; color: #172e67; }
.gg-home-me-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gg-home-me-actions .gg-btn { height: 38px; padding: 0 10px; font-size: 13px; border-radius: 11px; }

/* ---------- 출석체크 ---------- */
.gg-home-att-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gg-home-att-head .gg-card-title { margin-bottom: 0; }
.gg-home-att-streak { font-size: 13px; font-weight: 800; color: #44578a; }
.gg-home-att-streak b { color: #1158c3; }
.gg-home-att-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 14px; }
.gg-home-att-day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #f4f8fd; border: 1.5px solid #e9f1fa; border-radius: 14px;
  padding: 12px 4px 11px; position: relative;
}
.gg-home-att-day .d { font-size: 12.5px; font-weight: 900; color: #44578a; }
.gg-home-att-day img { height: 40px; width: auto; object-fit: contain; image-rendering: pixelated; }
.gg-home-att-day .r { font-size: 12px; font-weight: 900; color: #172e67; }
.gg-home-att-day.is-done { opacity: .82; }
.gg-home-att-day.is-done::after {
  content: "✓";
  position: absolute; top: 6px; right: 8px;
  font-size: 12px; font-weight: 900; color: #2db14e;
}
.gg-home-att-day.is-today {
  background: #eef6ff; border-color: #7fb1f2;
  box-shadow: 0 4px 12px rgba(60, 130, 240, .14);
}
.gg-home-att-day.is-today .d { color: #1158c3; }
.gg-home-att-note {
  text-align: center; font-size: 12px; font-weight: 700; color: #8c9bb8;
  background: #eef3fa; border-radius: 999px; padding: 8px 0; margin-bottom: 12px;
}
.gg-home-row1 > .gg-card:last-child { display: flex; flex-direction: column; }
.gg-home-row1 .gg-home-att-note { margin-top: auto; }
.gg-home-att-btn {
  width: 100%; height: 52px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #3b86fa 0%, #1d6bfa 100%);
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 900;
  box-shadow: 0 5px 12px rgba(29, 107, 250, .30), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .2s ease, transform .2s ease;
}
.gg-home-att-btn:hover { filter: brightness(1.07); }
.gg-home-att-btn:active { transform: translateY(1px) scale(.98); }
.gg-home-att-btn:disabled { filter: grayscale(.35) brightness(.95); cursor: not-allowed; }

/* ---------- 실시간 잭팟 (PC: 좌측) ---------- */
.gg-home-row2 > .gg-card:first-child { display: flex; flex-direction: column; }
.gg-home-jp-panel {
  position: relative; flex: 1; min-height: 186px; border-radius: 18px; overflow: visible;
  margin-top: 16px;
}
.gg-home-jp-inner {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .55) 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 14%, rgba(255, 255, 255, .5) 1px, transparent 2px),
    radial-gradient(circle at 88% 42%, rgba(255, 255, 255, .45) 1.5px, transparent 2.5px),
    radial-gradient(circle at 32% 48%, rgba(255, 255, 255, .4) 1px, transparent 2px),
    radial-gradient(circle at 55% 30%, rgba(255, 255, 255, .35) 1px, transparent 2px),
    linear-gradient(180deg, #2f6bd8 0%, #1e4aa8 55%, #163a8c 100%);
  border: 1px solid #3f77dd;
  box-shadow: 0 10px 22px rgba(30, 74, 168, .28), inset 0 2px 0 rgba(255, 255, 255, .18);
}
.gg-home-jp-crown {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
  width: 44px; height: 36px; object-fit: contain; z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(20, 50, 120, .4));
}
.gg-home-jp-amt {
  position: relative; z-index: 1;
  text-align: center; margin-top: 16px;
  font-size: 30px; font-weight: 900; letter-spacing: .5px; color: #ffe14d;
  text-shadow: 0 2px 0 rgba(120, 80, 0, .35), 0 0 16px rgba(255, 220, 80, .45);
}
.gg-home-jp-time { position: relative; z-index: 1; text-align: center; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: #cfe0ff; }
.gg-home-jp-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: auto; pointer-events: none;
}

/* ---------- 오늘의 미션 ---------- */
.gg-home-ms-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.gg-home-ms-head .gg-card-title { margin-bottom: 0; }
.gg-home-ms-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px 78px;
  align-items: center; column-gap: 12px; row-gap: 6px;
  padding: 11px 2px 10px; border-bottom: 1px solid #eef4fb;
}
.gg-home-ms-row:last-child { border-bottom: none; }
.gg-home-ms-name { font-size: 13.5px; font-weight: 800; color: #2b3f6e; }
.gg-home-ms-name small { color: #8c9bb8; font-weight: 800; margin-left: 8px; }
.gg-home-ms-reward { font-size: 13px; font-weight: 900; color: #172e67; text-align: right; }
.gg-home-ms-badge {
  justify-self: end;
  font-size: 12px; font-weight: 800; color: #256eeb;
  border: 1px solid #bcd6fb; background: #f2f8ff;
  border-radius: 9px; padding: 5px 13px;
}
.gg-home-ms-badge.is-done { color: #fff; background: linear-gradient(180deg, #3b86fa, #1d6bfa); border-color: transparent; }
.gg-home-ms-bar { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: #e8eef7; overflow: hidden; }
.gg-home-ms-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #46c26c, #2fae57); }

/* ---------- 인기 게임 (PC: 4개 그리드 · 화살표 숨김) ---------- */
.gg-home-games-wrap { position: relative; }
.gg-home-games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gg-home-game {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1;
  box-shadow: 0 6px 16px rgba(96, 143, 214, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gg-home-game img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-home-game:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(96, 143, 214, .28); }
.gg-home-game:active { transform: scale(.98); }
.gg-home-game.is-soon { cursor: default; }
.gg-home-game.is-soon::after {
  content: "준비중";
  position: absolute; right: 8px; top: 8px;
  font-size: 11px; font-weight: 900; color: #fff;
  background: rgba(15, 35, 75, .72);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 4px 10px;
}
.gg-home-game.is-soon:hover { transform: none; box-shadow: 0 6px 16px rgba(96, 143, 214, .18); }
.gg-home-games-arrow {
  display: none;                         /* 모바일 캐러셀 전용 */
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e3edf9;
  background: #fff; color: #44578a; font-size: 17px; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 12px rgba(96, 143, 214, .22);
  align-items: center; justify-content: center;
}
.gg-home-games-arrow.is-left { left: -10px; }
.gg-home-games-arrow.is-right { right: -10px; }

/* ---------- 공지사항 (PC: 우측 1열 리스트) ---------- */
.gg-home-nt-grid { display: block; }
.gg-home-nt-row {
  display: flex; align-items: center; gap: 9px;
  padding: 12.5px 2px; border-bottom: 1px solid #eef4fb;
  font-size: 13px; font-weight: 700; color: #2b3f6e; cursor: pointer;
}
.gg-home-nt-row:last-child { border-bottom: none; }
.gg-home-nt-row::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4a90d9; flex: none; }
.gg-home-nt-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-home-nt-row small { color: #9ca5bd; font-weight: 800; }
.gg-home-nt-row:hover { color: #1158c3; }

/* ---------- 친구초대 배너 ---------- */
.gg-home-invite {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  border-radius: 20px; padding: 16px 200px 16px 22px;
  background: #3d89f5;
  border: 1px solid #5b9cf5;
  box-shadow: 0 10px 24px rgba(60, 130, 240, .28), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.gg-home-invite-duck { width: 64px; height: auto; object-fit: contain; image-rendering: pixelated; flex: none; }
.gg-home-invite-txt { flex: none; }
.gg-home-invite-txt b { display: block; font-size: 16.5px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.gg-home-invite-txt b em { font-style: normal; color: #ffe14d; }
.gg-home-invite-txt span { font-size: 12.5px; font-weight: 700; color: #dcebff; }
.gg-home-invite-btn {
  margin: 0 auto;
  height: 40px; padding: 0 30px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .22);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 900;
  transition: filter .2s ease, transform .2s ease;
}
.gg-home-invite-btn:hover { filter: brightness(1.1); transform: scale(1.03); }
.gg-home-invite-btn:active { transform: scale(.98); }
.gg-home-invite-art {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  height: 86%; width: auto; pointer-events: none;
}

/* ---------- Footer ---------- */
.gg-home-footer { padding: 6px 4px 26px; }
.gg-home-footer-links { display: flex; gap: 22px; font-size: 12px; font-weight: 700; color: #55658c; margin-bottom: 8px; }
.gg-home-footer-links span { cursor: pointer; }
.gg-home-footer-links span:hover { color: #1158c3; }
.gg-home-footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.gg-home-footer-bottom p { font-size: 12px; color: var(--tx-sub); font-weight: 600; }
.gg-home-footer-bottom img { height: 30px; width: auto; }

/* ============================================================
   모바일 전용 크롬: 햄버거 버튼 · 하단 네비게이션
   (표시 여부는 responsive.css — 기본은 숨김)
   ============================================================ */
.gg-nav-burger {
  display: none;
  width: 42px; height: 42px; border: none; border-radius: 12px;
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  color: #16305e; font-size: 24px; font-weight: 900;
}
.gg-bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 800;
  background: #fff; border-top: 1px solid #e3edf9;
  box-shadow: 0 -6px 18px rgba(96, 143, 214, .12);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
}
.gg-bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none;
  font-size: 10.5px; font-weight: 800; color: #9ca5bd;
}
.gg-bottomnav a img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; filter: grayscale(1) opacity(.55); }
.gg-bottomnav a.is-active { color: #1d6bfa; }
.gg-bottomnav a.is-active img { filter: none; }
