/* ============================================================
   홈 페이지 — 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 — 2장 자동 전환 슬라이드
   · 슬라이드 1 = 기존 슬롯머신 배너 (안쪽 마크업/스타일 그대로)
   · 슬라이드 2 = 오리 레이스 배너 이미지 + 버튼 클릭 영역
   · 그림자만 바깥(.gg-hero-slider)으로 옮겼다 — 뷰포트가 잘라내기 때문
   ============================================================ */
.gg-hero-slider {
  position: relative;
  border-radius: 26px;
  box-shadow:
    0 10px 30px rgba(96, 143, 214, .14),
    0 1px 3px rgba(96, 143, 214, .08);
}
.gg-hero-viewport { overflow: hidden; border-radius: 26px; }
.gg-hero-track {
  display: flex;
  will-change: transform;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;              /* 세로 스크롤은 그대로, 가로만 잡는다 */
  user-select: none;                /* 스와이프할 때 배너 글자가 선택되지 않게 */
  -webkit-user-select: none;
}
.gg-hero-track.is-dragging { transition: none; }
/* 모션 최소화 설정: 배너는 계속 바뀌지만 미끄러지는 움직임은 없앤다 */
@media (prefers-reduced-motion: reduce) {
  .gg-hero-track { transition: none; }
}
.gg-hero-slide { flex: 0 0 100%; min-width: 100%; }
/* 슬라이드 안의 배너는 그림자를 빼고(바깥에서 그림) 나머지는 원래대로 */
.gg-hero-slide > .gg-home-hero { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9); }

/* 슬라이드 2 — 이미지 배너 */
.gg-home-hero.is-photo { background: #dfeefc; }
.gg-hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* 4:1 배너가 화면보다 좁은 폭에서 좌우로 잘릴 때, 제목과 "게임 시작하기" 버튼이 있는
     왼쪽을 기준으로 보여준다. 1060px 이상에서는 잘림이 없어 결과가 같다.
     배너마다 초점을 달리하고 싶으면 그 슬라이드에 --hero-focus 변수만 주면 된다 (2026-08-17). */
  object-position: var(--hero-focus, 0% 50%);
  display: block;
  user-select: none; -webkit-user-drag: none;
}
/* 신규 배너(덕스마인드·에그붐붐) — 배너 전체가 링크다 */
.gg-hero-cover {
  position: absolute; inset: 0; display: block;
  -webkit-tap-highlight-color: transparent;
}
.gg-hero-cover:focus-visible { outline: 3px solid #2f6fe0; outline-offset: -3px; border-radius: 26px; }
/* "레이스 참여하기" 버튼 클릭 영역 — 위치·크기는 JS가 실제 이미지 좌표로 맞춘다 */
.gg-hero-hot {
  position: absolute;
  border-radius: 999px;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.gg-hero-hot:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 6px 16px rgba(214, 158, 20, .35); }
.gg-hero-hot:focus-visible { outline: 3px solid #2f6fe0; outline-offset: 3px; }

/* 좌우 화살표 (PC 전용 · 배너에 올렸을 때만) */
.gg-hero-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: #4a6b96;
  font-size: 24px; font-weight: 900; line-height: 34px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, background .15s ease;
  box-shadow: 0 3px 10px rgba(60, 100, 160, .22);
  z-index: 3;
}
.gg-hero-arrow.is-prev { left: 12px; }
.gg-hero-arrow.is-next { right: 12px; }
.gg-hero-slider:hover .gg-hero-arrow { opacity: 1; pointer-events: auto; }
.gg-hero-arrow:focus-visible { opacity: 1; pointer-events: auto; outline: 3px solid #2f6fe0; }
.gg-hero-arrow:hover { background: #fff; }
@media (hover: none) { .gg-hero-arrow { display: none; } }

/* 페이지 표시 점 */
.gg-hero-dots {
  position: absolute; right: 18px; bottom: 14px;
  display: flex; gap: 7px; align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(3px);
  z-index: 3;
}
.gg-hero-dot {
  width: 8px; height: 8px; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(74, 107, 150, .34);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.gg-hero-dot.is-on { width: 20px; border-radius: 999px; background: #3b7ae0; }
.gg-hero-dot:focus-visible { outline: 2px solid #2f6fe0; outline-offset: 2px; }

/* ---------- 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 {
  /* 6칸(내정보 · 출석 · 상점 · 미션 · 랭킹 · 게시판)을 한 줄에 넣는다 */
  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: 46px; width: auto; object-fit: contain; image-rendering: auto; margin-bottom: 5px; }
.gg-home-quick-name { font-size: 13px; font-weight: 900; color: #172e67; white-space: nowrap; }
.gg-home-quick-sub { font-size: 10.5px; font-weight: 700; color: #9ca5bd; white-space: nowrap; }

/* ---------- 행 그리드 (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); 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: 4px; }
.gg-home-me-avatar {
  grid-column: 1 / -1; justify-self: center;
  width: 88px; height: 88px; border-radius: 50%;
  /* 파란 기운을 조금 더 — 흰 오리 대비 (2026-08-24, 랭킹 원과 같은 색) */
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #dcebfc 100%);
  border: 1px solid #d9e8fa;
  display: flex; align-items: center; justify-content: center;
  margin: 2px 0 6px;
  overflow: hidden;   /* 확대된 아바타 효과가 원 밖으로 넘치지 않게 (2026-08-12) */
}
.gg-home-me-id {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr;
  align-items: center; row-gap: 7px;
  margin-bottom: 7px;
}
.gg-home-me-name {
  grid-column: 1 / -1; justify-self: center;
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; 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; }
/* (총 게임 횟수 · 총 당첨 금액 칸은 제거 — 아바타/닉네임/보유 포인트/충전·교환만 남긴다) */
/* 충전하기 · 포인트 거래 · 내 아바타 — 2열로 놓고, 홀수로 남는 마지막 버튼은 한 줄을 다 쓴다
   (안 그러면 마지막 버튼 옆이 빈칸으로 남아 어색하다) */
.gg-home-me-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gg-home-me-actions .gg-btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gg-home-me-actions .gg-btn { height: 34px; padding: 0 8px; font-size: 12.5px; border-radius: 11px; white-space: nowrap; }
/* 내 정보(#/profile) 페이지에서도 홈과 똑같은 충전·교환 버튼을 쓴다.
   그쪽은 가로 배치(.pf-top flex)라 오른쪽 끝으로 밀어 붙인다. */
.pf-actions { margin-left: auto; flex: 0 0 auto; width: 250px; }

/* ---------- 출석체크 ---------- */
.gg-home-att-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.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: 9px; margin-bottom: 11px; }
.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: 9px 4px 9px; position: relative;
}
.gg-home-att-day .d { font-size: 12.5px; font-weight: 900; color: #44578a; }
.gg-home-att-day img { height: 34px; 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 {
  background: #e9f9ee;
  border-color: #bfe9cb;
  box-shadow: 0 3px 10px rgba(45, 177, 78, .12);
}
.gg-home-att-day.is-done .d { color: #2f9e4f; }
.gg-home-att-day.is-done .r { color: #2f9e4f; }
.gg-home-att-day.is-done::after {
  content: "✓";
  position: absolute; top: 5px; right: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #43cf68, #2db14e);
  color: #fff; font-size: 10px; font-weight: 900;
  box-shadow: 0 2px 5px rgba(45, 177, 78, .35);
}
.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: 7px 0; margin-bottom: 10px;
}
.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: 48px; 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-who { position: relative; z-index: 1; text-align: center; margin-top: 6px; font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 4px rgba(10, 35, 90, .35); }
.gg-home-jp-who b { color: #ffe14d; font-weight: 900; }
.gg-home-jp-time { position: relative; z-index: 1; text-align: center; margin-top: 2px; font-size: 11.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-badge.is-got { color: #8c9bb8; background: #f3f6fb; border-color: #e2e9f4; }
.gg-home-ms-row.is-claimed .gg-home-ms-name,
.gg-home-ms-row.is-claimed .gg-home-ms-reward { color: #9aa8c2; }
.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); }

/* ---------- 보상받기 버튼 (달성했을 때만 등장 — 강조 효과) ---------- */
.gg-home-ms-claim {
  justify-self: end;
  font-size: 12px; font-weight: 900; color: #6b4a00;
  border: 1px solid #f0b400; border-radius: 9px; padding: 5px 13px;
  background: linear-gradient(180deg, #ffe27a, #ffc21e);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 0 #e0a800, 0 0 0 0 rgba(255, 190, 20, .55);
  animation: ggMsHot 1.5s ease-in-out infinite;
}
.gg-home-ms-claim:hover { filter: brightness(1.05); }
.gg-home-ms-claim:active { transform: translateY(1px); box-shadow: 0 1px 0 #e0a800; }
.gg-home-ms-claim:disabled { animation: none; opacity: .65; cursor: default; }
/* 버튼 위치는 고정하고 빛 번짐만 퍼지게 — 누르는 지점이 흔들리지 않도록 (모바일 오터치 방지) */
@keyframes ggMsHot {
  0%   { box-shadow: 0 2px 0 #e0a800, 0 0 0 0 rgba(255, 190, 20, .6); filter: brightness(1); }
  55%  { box-shadow: 0 2px 0 #e0a800, 0 0 0 8px rgba(255, 190, 20, 0); filter: brightness(1.08); }
  100% { box-shadow: 0 2px 0 #e0a800, 0 0 0 0 rgba(255, 190, 20, 0); filter: brightness(1); }
}
/* 움직임을 줄이도록 설정한 기기에서는 반짝임만 유지 */
@media (prefers-reduced-motion: reduce) {
  .gg-home-ms-claim { animation: none; }
}

.gg-ms-empty { padding: 22px 4px; text-align: center; color: #8c9bb8; font-weight: 800; font-size: 13px; }

/* ---------- 미션 페이지 ---------- */
.gg-ms-page { max-width: 760px; }
.gg-ms-reset { font-size: 12px; font-weight: 800; color: #8c9bb8; }
.gg-ms-guide {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 4px; padding: 11px 13px;
  background: #f2f8ff; border: 1px solid #dcebff; border-radius: 12px;
  font-size: 13px; font-weight: 800; color: #33507f;
}
.gg-ms-guide img { width: 20px; height: 20px; flex: none; image-rendering: pixelated; }
.gg-ms-guide span { min-width: 0; }
.gg-ms-guide b { color: #1d6bfa; }

/* ---------- 인기 게임 (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;
}
/* 하단바 아이콘 — 상단 메뉴와 같이 "원본 색"을 그대로 쓴다.
   예전에는 비활성 아이콘에 grayscale(1) 을 걸었는데, 컬러 일러스트 아이콘(v2·게시판·
   하이로우 등)이 들어오면서 색이 통째로 날아갔다. 지금은 투명도로만 선택 여부를 표현한다. */
.gg-bottomnav a img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; filter: none; opacity: .72; }
.gg-bottomnav a img.gg-img-smooth { image-rendering: auto; }   /* 컬러 일러스트는 부드럽게 */
.gg-bottomnav a.is-active { color: #1d6bfa; }
.gg-bottomnav a.is-active img { opacity: 1; }
/* 하이로우까지 7칸이 되면 좁은 화면에서 글자가 겹치므로 살짝 줄인다 */
.gg-bottomnav.is-7 a { font-size: 9.5px; letter-spacing: -.3px; gap: 2px; }
.gg-bottomnav.is-7 a img { width: 21px; height: 21px; }
.gg-bottomnav.is-7 a span { white-space: nowrap; transform-origin: 50% 50%; }

/* ---------- 게임 화면 사이드의 미션 목록 (슬롯 · 오리레이스) ---------- */
/* 홈 카드와 같은 컴포넌트를 쓰되 폭이 좁아 한 줄씩 접어서 보여준다 */
.gg-ms-side .gg-home-ms-row {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 3px;
  padding: 9px 0 8px;
}
.gg-ms-side .gg-home-ms-name { grid-column: 1 / -1; font-size: 12.5px; }
.gg-ms-side .gg-home-ms-reward { font-size: 12px; text-align: left; }
.gg-ms-side .gg-home-ms-badge { display: none; }        /* 좁아서 진행중/완료 배지는 생략 */
.gg-ms-side .gg-home-ms-claim { justify-self: end; font-size: 11px; padding: 4px 10px; }
.gg-ms-side .gg-home-ms-bar { height: 6px; }
.gg-ms-side .gg-ms-empty { padding: 14px 4px; font-size: 12px; }

/* ---------- 홈 하단: 포인트 상점 + 미니 게임 (슬롯 화면에서 이동) ---------- */
/* .gg-home 이 이미 1060px 폭이라 여기서는 그리드 비율만 잡는다 */
/*  2026-08-26 — «포인트 상점» 칸을 없애 미니 게임 하나만 남았다.
    예전에는 681px + 361px 2칸이었는데, 한 칸만 남으면 좁은 쪽에 몰려 보여서 한 줄 전체를 쓰게 했다.
    (상점을 되살릴 일이 생기면 아래 두 줄을 옛 값으로 돌리면 된다 — 옛 값은 이 주석에 남겨 둠)
      grid-template-columns: minmax(0, 681px) minmax(0, 361px);
      justify-content: space-between;                                   */
.gg-home-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.gg-home-bottom .gg-card { height: auto; min-width: 0; }
/*  한 줄을 다 쓰게 되면서 4칸이 2열로 남으면 너무 넓다 → 넓은 화면에서만 4칸 나란히.
    ⚠ 767px 이하(휴대폰)는 손대지 않는다 — 예전 그대로 2칸(1fr 1fr) 이다.
    (responsive.css 의 휴대폰 분기가 767px 이라 그 위에서만 걸리게 맞췄다)                */
@media (min-width: 768px) {
  .gg-home-bottom .gg-mini-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 하단 네비의 "게임" 칸 — 링크가 아니라 버튼이라 모양을 나머지 칸과 맞춘다 */
.gg-bottomnav .gg-bn-games {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 10.5px; font-weight: 800; color: #9ca5bd;
}
.gg-bottomnav .gg-bn-games img {
  width: 22px; height: 22px; object-fit: contain; image-rendering: auto; opacity: .72;
}
.gg-bottomnav .gg-bn-games.is-active,
.gg-bottomnav .gg-bn-games.is-open { color: #1d6bfa; }
.gg-bottomnav .gg-bn-games.is-active img,
.gg-bottomnav .gg-bn-games.is-open img { opacity: 1; }

/* ============================================================
   덕플라이 전광판 배너 (홈 배너 슬라이드 중 한 장)
     · 배경 이미지에는 문구가 없다 — 제목·설명·버튼은 진짜 HTML 요소다
     · PC : 왼쪽 35% 에 문구, 오른쪽 주인공·적은 가리지 않는다
     · 모바일 : 이미지 초점을 오른쪽에 두어 주인공이 보이게 하고 문구는 작게
   ============================================================ */
.df-hero { background: #0f4c8a; }

.df-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  user-select: none; -webkit-user-drag: none;
}

/* 글자가 하늘색 배경 위에서도 또렷하게 읽히도록 왼쪽만 어둡게 깐다.
   오른쪽으로 갈수록 투명해져서 주인공과 적은 그대로 보인다. */
.df-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(4, 24, 58, .82) 0%,
    rgba(4, 24, 58, .66) 26%,
    rgba(4, 24, 58, .28) 44%,
    rgba(4, 24, 58, 0) 58%);
  pointer-events: none;
}

/* 배너 전체가 하나의 링크 — 어디를 눌러도 게임으로 간다 */
.df-hero-link {
  position: absolute; inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.df-hero-txt {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 35%;
  min-width: 240px;
  padding: 40px 0 0 52px;
}

.df-hero-kicker {
  margin: 0 0 8px;
  display: block;
  font-size: 13px; font-weight: 900; letter-spacing: 2px;
  color: #9fe4ff;
  text-shadow: 0 2px 6px rgba(2, 18, 44, .9);
}

/* 흰색 → 금색 굵은 글씨 + 어두운 남색 그림자 + 금빛 발광 */
.df-hero-title {
  margin: 0 0 10px;
  display: block;
  font-size: 52px; font-weight: 900; letter-spacing: 1px; line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 0%, #fff6cf 40%, #ffc93c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 3px 0 #0a2a55)
    drop-shadow(0 5px 10px rgba(3, 20, 46, .75))
    drop-shadow(0 0 16px rgba(255, 200, 70, .6));
}
/* 글자에 그라데이션을 못 넣는 브라우저 대비 — 금색 단색 + 같은 그림자 */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .df-hero-title {
    color: #ffd54a; -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: 0 3px 0 #0a2a55, 0 0 16px rgba(255, 200, 70, .6);
    filter: none;
  }
}

.df-hero-sub {
  margin: 0 0 22px;
  display: block;
  font-size: 15px; font-weight: 800; line-height: 1.5;
  color: #eaf6ff;
  text-shadow: 0 2px 8px rgba(2, 18, 44, .95);
}

/* 지금 플레이 — 밝은 황금·주황 계열 둥근 버튼 */
.df-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 30px;
  border: 1px solid #ffd97a; border-radius: 999px;
  background: linear-gradient(180deg, #ffe071 0%, #ffb02e 100%);
  box-shadow:
    0 4px 0 #d98411,
    0 10px 22px rgba(214, 132, 17, .38),
    inset 0 2px 0 rgba(255, 255, 255, .65);
  color: #4a2a05; font-size: 17px; font-weight: 900; text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.df-hero-btn::before { content: "▶"; font-size: 12px; }
/* 배너 어디에 마우스를 올려도 버튼이 반응한다 */
.df-hero-link:hover .df-hero-btn { transform: translateY(-2px) scale(1.03); filter: brightness(1.05); }
.df-hero-link:active .df-hero-btn {
  transform: scale(.98) translateY(2px);
  box-shadow: 0 2px 0 #d98411, 0 5px 12px rgba(214, 132, 17, .3), inset 0 2px 0 rgba(255, 255, 255, .65);
}
/* 키보드로 이동하면 포커스 표시가 버튼에 나타난다 (배너 전체가 아니라) */
.df-hero-link:focus-visible { outline: none; }
.df-hero-link:focus-visible .df-hero-btn {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 4px 0 #d98411, 0 0 0 6px rgba(47, 111, 224, .55),
              inset 0 2px 0 rgba(255, 255, 255, .65);
}

/* 홈 내 정보 카드 "내 아바타" 버튼의 NEW — 아직 안 입어 본 아바타가 있을 때 */
.gg-home-new {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 900; color: #fff; line-height: 1.5;
  background: linear-gradient(180deg, #ff8a5c, #ff5c7a); border-radius: 999px;
  vertical-align: 1px; white-space: nowrap;
}
