/* ============================================================
   컴포넌트: 패널 · 버튼 · 카드 · 폼 · 테이블 · 모달
   ============================================================ */
/* ============================================================
   STEP 2 : 패널(카드) 스타일 통일
   - 흰색 카드 + 얇은 Border + 부드러운 Shadow + 약한 Glow (시안 기준)
   ============================================================ */
.gg-card {
  background: #ffffff;
  border: 1px solid #e3edf9;
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 6px 20px rgba(96, 143, 214, .10),   /* 부드러운 그림자 */
    0 1px 3px rgba(96, 143, 214, .06),
    0 0 26px rgba(130, 180, 255, .08);    /* 약한 글로우 */
}
.gg-card-title {
  font-size: 14px; font-weight: 900; color: #16305e;
  display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
}
.gg-card-title .gg-t-ico { width: 18px; height: 18px; flex: none; }
.gg-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gg-card-head .gg-card-title { margin-bottom: 0; }

/* 카드 안 연회색-블루 이너 패널 */
.gg-inner { background: #f2f7fc; border: 1px solid #e8f1fa; border-radius: 12px; padding: 14px; }

/* ---------- 리소스 이미지 공통 규칙 ---------- */
img.gg-logo-img, img.gg-avatar, img.gg-nav-ico, img.gg-t-ico, img.gg-coin,
img.gg-me-duck, img.gg-gift, img.gg-attend-gift, img.gg-charge-duck,
img.gg-jackpot-crown, img.gg-p-ico, img.gg-guide-duck, img.gg-shop-img,
img.gg-m-ico, img.gg-s-ico, img.gg-slot-duck, img.gg-recent-empty-duck {
  background: none;
  object-fit: contain;
  image-rendering: pixelated;
}
/* 고해상도 일러스트(무지개/폭죽)는 부드럽게 */
img.gg-img-smooth { image-rendering: auto; }

/* 출석 마지막 날: 선물 뱃지 이미지 */
.gg-attend-day.is-gift { background: none; }
.gg-attend-day.is-gift img { width: 100%; height: 100%; }

/* 최근 당첨 빈 상태 오리 */
.gg-recent-empty-duck { width: 44px; height: 44px; }


/* ============================================================
   STEP 2 : 버튼 스타일 통일
   - 큰 Radius / Gradient / Hover 밝아짐 / 클릭 눌림 / Transition 0.2~0.3s
   - 모든 색상은 디자인 시안에서 직접 추출
   ============================================================ */

/* ---------- 기본 파랑 버튼 (출석 완료 / 구매하기 / 포인트 충전하기 등) ---------- */
.gg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 800; white-space: nowrap;
  background: linear-gradient(180deg, #3b86fa 0%, #1d6bfa 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(29, 107, 250, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .25s ease, transform .2s ease, box-shadow .25s ease;
}
.gg-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(29, 107, 250, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.gg-btn:active {
  transform: translateY(1px) scale(.985);
  filter: brightness(.97);
  box-shadow: 0 2px 6px rgba(29, 107, 250, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.gg-btn-block { display: flex; width: 100%; }
.gg-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.gg-btn-md { height: 38px; padding: 0 18px; font-size: 13px; }

/* ---------- 더보기 버튼 (흰색 보조 버튼) ---------- */
.gg-more-btn {
  font-size: 11px; font-weight: 700; color: #7d8aa0;
  border: 1px solid #e3edf9; background: #fff;
  border-radius: 9px; padding: 5px 11px; cursor: pointer;
  transition: filter .25s ease, transform .2s ease, border-color .25s ease, color .25s ease;
}
.gg-more-btn:hover { border-color: #b9d4fb; color: #256eeb; filter: brightness(1.02); }
.gg-more-btn:active { transform: translateY(1px) scale(.97); }

/* ---------- START! 버튼 (옐로우 그라데이션) ---------- */
.gg-start-btn {
  height: 66px; border: none; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, #ffde55 0%, #f9cc30 100%);
  color: #2b2c2b; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 6px 0 #d9ab12, 0 10px 18px rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .5);
  transition: filter .25s ease, transform .2s ease, box-shadow .2s ease;
}
.gg-start-btn b { font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.gg-start-btn span { font-size: 11px; font-weight: 800; opacity: .8; }
.gg-start-btn:hover { filter: brightness(1.06); }
.gg-start-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #d9ab12, 0 4px 10px rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .5);
}

/* ---------- 베팅 칩 조절(−/+) 버튼 ---------- */
.gg-chip-adjust {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, #40699f 0%, #315a90 100%);
  color: #fff; font-size: 20px; font-weight: 900; border: none; cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: filter .25s ease, transform .2s ease;
}
.gg-chip-adjust:hover { filter: brightness(1.15); }
.gg-chip-adjust:active { transform: translateY(1px) scale(.95); }

/* ---------- 베팅 칩 (파랑 10 / 초록 100 / 오렌지 1,000) ---------- */
.gg-chip {
  width: 62px; height: 62px; border-radius: 50%;
  border: 5px dashed rgba(255, 255, 255, .85);
  color: #fff; font-size: 14px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .25), inset 0 3px 6px rgba(255, 255, 255, .25);
  transition: filter .25s ease, transform .2s ease, box-shadow .25s ease;
}
.gg-chip:hover { filter: brightness(1.1); transform: translateY(-2px); }
.gg-chip:active { transform: translateY(0) scale(.95); }
.gg-chip-blue   { background: radial-gradient(circle at 50% 35%, #4d8ffa 0%, #2f7bf8 60%, #1e5fd6 100%); }
.gg-chip-green  { background: radial-gradient(circle at 50% 35%, #56c77a 0%, #3fb564 60%, #2c924c 100%); }
.gg-chip-orange { background: radial-gradient(circle at 50% 35%, #f5913f 0%, #ed7527 60%, #d55c0d 100%); }


/* ============================================================
   좌/우 컬럼 + 하단 카드 내부 레이아웃 — STEP 1
   ============================================================ */

/* ---------- 내 정보 ---------- */
.gg-me { height: 252px; display: flex; flex-direction: column; }
.gg-me-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.gg-me-duck { width: var(--duck-size); height: calc(var(--duck-size) * 0.86); }
.gg-me-name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; }
.gg-me-lv { font-size: 11px; font-weight: 800; color: #7d5bd6; border: 1px solid #cfc2f2; border-radius: 999px; padding: 1px 9px; }
.gg-me-points { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; }
.gg-me-points .gg-coin { width: 26px; height: 26px; }
.gg-me-points small { font-size: 14px; color: var(--tx-sub); font-weight: 800; }
.gg-me-exp { width: 100%; margin-top: 6px; }
.gg-me-exp-row { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--tx-sub); margin-bottom: 5px; }
.gg-bar { height: 8px; border-radius: 999px; background: #e4edf8; overflow: hidden; }
.gg-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4d8ffa, #1d6bfa); }

/* ---------- 오늘의 미션 ---------- */
.gg-mission { height: 170px; display: flex; flex-direction: column; }
.gg-mission .gg-gift { width: 26px; height: 26px; }
.gg-mission-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.gg-mission-name { font-size: 12px; font-weight: 700; color: var(--tx-sub); }
.gg-mission-count { font-size: 20px; font-weight: 900; }
.gg-mission-reward { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; }
.gg-mission-reward b { color: var(--blue); }

/* ---------- 출석 체크 ---------- */
.gg-attend { height: 202px; display: flex; flex-direction: column; }
.gg-attend-streak { font-size: 12px; font-weight: 800; color: var(--tx-sub); margin-bottom: 10px; }
.gg-attend-days { display: flex; justify-content: space-between; margin-bottom: 12px; }
.gg-attend-day {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ph);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--tx-sub);
}
.gg-attend-day.is-done { background: linear-gradient(180deg, #43cf68, #2db14e); color: #fff; box-shadow: 0 2px 5px rgba(45, 177, 78, .35); }
.gg-attend-reward { font-size: 12px; font-weight: 700; color: var(--tx-sub); margin-bottom: 12px; }
.gg-attend .gg-btn { margin-top: auto; }

/* ---------- 포인트 충전 ---------- */
.gg-charge { flex: 1; display: flex; flex-direction: column; }
.gg-charge-body { flex: 1; display: flex; align-items: center; gap: 14px; }
.gg-charge-duck { width: 84px; height: 96px; flex: none; }
.gg-charge-txt { display: flex; flex-direction: column; gap: 10px; }
.gg-charge-txt p { font-size: 13px; font-weight: 700; line-height: 1.5; }

/* ---------- 실시간 잭팟 ---------- */
.gg-jackpot { height: 211px; display: flex; flex-direction: column; }
.gg-jackpot-inner {
  flex: 1; border-radius: 16px;
  background: linear-gradient(180deg, #4288f5 0%, #3279f2 100%);
  border: 1px solid #5a97f7;
  box-shadow: 0 8px 18px rgba(50, 121, 242, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.gg-jackpot-crown { width: 48px; height: 36px; }
.gg-jackpot-amount {
  width: 85%; height: 44px; border-radius: 12px;
  background: #1c1d22;
  border: 1px solid #34363e;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6);
  color: var(--gold); font-size: 19px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px;
}
.gg-jackpot-who { font-size: 12px; font-weight: 800; color: #fff; }
.gg-jackpot-time { font-size: 11px; color: rgba(255, 255, 255, .75); font-weight: 700; }

/* ---------- 등급별 확률 ---------- */
.gg-prob { height: 286px; display: flex; flex-direction: column; }
.gg-prob-rows { flex: 1; display: flex; flex-direction: column; }
.gg-prob-row {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #edf2f8; font-size: 13px; font-weight: 800;
}
.gg-prob-row:last-child { border-bottom: none; }
.gg-prob-name { display: flex; align-items: center; gap: 8px; }
.gg-prob-name .gg-p-ico { width: 16px; height: 16px; }
.gg-prob-row .gg-pct { color: var(--tx-sub); font-weight: 800; }

/* ---------- 게임 안내 ---------- */
.gg-guide { flex: 1; display: flex; flex-direction: column; }
.gg-guide-list { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; line-height: 1.55; color: #40507a; font-weight: 600; }
.gg-guide-list li { list-style: none; padding-left: 12px; position: relative; }
.gg-guide-list li::before { content: "·"; position: absolute; left: 0; font-weight: 900; }
.gg-guide-duck { margin-top: auto; align-self: flex-end; width: 130px; height: 96px; }

/* ---------- 최근 당첨 내역 ---------- */
.gg-recent { flex: 1; display: flex; flex-direction: column; }
.gg-recent-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gg-recent-card {
  border: 1px solid var(--card-border); border-radius: 12px; background: #fff;
  box-shadow: 0 2px 8px rgba(96, 143, 214, .08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.gg-recent-name { font-size: 13px; font-weight: 900; }
.gg-recent-icons { display: flex; gap: 3px; }
.gg-recent-icons i { width: 20px; height: 20px; }
.gg-recent-amt { font-size: 13px; font-weight: 900; color: var(--blue); }
.gg-recent-time { font-size: 11px; color: var(--tx-sub); font-weight: 700; }
.gg-recent-tag { font-size: 10px; font-weight: 900; color: #f08c00; }

/* ---------- 포인트 상점 ---------- */
.gg-shop { display: flex; flex-direction: column; }
.gg-shop-items { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.gg-shop-item {
  border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 10px; background: #fff;
  box-shadow: 0 2px 8px rgba(96, 143, 214, .08);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.gg-shop-item:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(96, 143, 214, .16); }
.gg-shop-img { width: 78px; height: 78px; }
.gg-shop-name { font-size: 12px; font-weight: 800; text-align: center; line-height: 1.4; }
.gg-shop-price { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 900; }
.gg-shop-price .gg-coin { width: 15px; height: 15px; }
.gg-shop-item .gg-btn { margin-top: auto; width: 100%; height: 30px; font-size: 12px; }

/* ---------- 미니 게임 ---------- */
.gg-mini { display: flex; flex-direction: column; }
.gg-mini-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.gg-mini-card {
  border: 1px solid #dcebf8; border-radius: 12px; background: #e9f4fb;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; font-weight: 800; color: var(--tx); cursor: pointer;
  transition: filter .25s ease, transform .2s ease, box-shadow .25s ease;
}
.gg-mini-card:hover { filter: brightness(1.03); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(96, 143, 214, .18); }
.gg-mini-card:active { transform: translateY(0) scale(.98); }
.gg-mini-card .gg-m-ico { width: 34px; height: 34px; }
.gg-mini-card.is-wide { grid-column: 1 / -1; }


/* ---------- 준비 중 뱃지 ---------- */
.gg-soon {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 900; color: #f08c00;
  background: rgba(240, 140, 0, .1);
  border: 1px solid rgba(240, 140, 0, .3);
  border-radius: 999px; padding: 3px 10px;
}
.gg-soon-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 46px 20px; text-align: center;
}
.gg-soon-panel img { width: 90px; height: 90px; object-fit: contain; image-rendering: pixelated; opacity: .9; }
.gg-soon-panel p { color: var(--tx-sub); font-size: 13px; font-weight: 700; line-height: 1.6; }

/* ---------- 로그인/회원가입 ---------- */
.gg-auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 16px; }
.gg-auth-card { text-align: center; padding: 34px 30px; }
.gg-auth-card .gg-auth-duck { width: 88px; height: 88px; object-fit: contain; image-rendering: pixelated; margin-bottom: 8px; }
.gg-auth-card h1 { font-size: 24px; font-weight: 900; color: var(--tx); margin-bottom: 4px; }
.gg-auth-card .gg-auth-sub { font-size: 12px; color: var(--tx-sub); font-weight: 700; letter-spacing: 2px; margin-bottom: 22px; }
.gg-input {
  width: 100%; height: 46px; border-radius: 12px;
  border: 1px solid var(--card-border); background: #f7fafd;
  padding: 0 15px; font-size: 14px; color: var(--tx); font-family: inherit;
  margin-bottom: 10px;
}
.gg-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.gg-auth-err { color: #e03131; font-size: 12.5px; font-weight: 700; min-height: 18px; margin: 4px 0 8px; }
.gg-auth-switch { margin-top: 16px; font-size: 13px; color: var(--tx-sub); }
.gg-auth-switch a { color: var(--blue); font-weight: 800; cursor: pointer; text-decoration: none; }

/* ---------- 데이터 테이블 (관리자/거래내역) ---------- */
.gg-table { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.gg-tr {
  display: grid; gap: 8px; align-items: center;
  padding: 11px 14px; font-size: 12.5px; color: var(--tx);
  border-bottom: 1px solid #edf3fa;
}
.gg-tr:last-child { border-bottom: none; }
.gg-tr-head { background: #f2f7fc; color: var(--tx-sub); font-weight: 800; font-size: 11.5px; }
.gg-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.gg-badge-admin { background: rgba(245, 166, 35, .15); color: #f5a623; }
.gg-badge-manager { background: rgba(76, 175, 80, .15); color: #37a63c; }
.gg-badge-member { background: #eef3f9; color: var(--tx-sub); }
.gg-badge-banned { background: rgba(224, 49, 49, .12); color: #e03131; }
.gg-badge-online { color: #2db14e; font-weight: 800; font-size: 11.5px; }
.gg-badge-offline { color: #b0bacc; font-size: 11.5px; }
.gg-amt-plus { color: #2db14e; font-weight: 900; }
.gg-amt-minus { color: #e03131; font-weight: 900; }

/* 관리자 탭 */
.gg-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.gg-tab {
  padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 800;
  color: var(--tx-sub); background: #fff; border: 1px solid var(--card-border); cursor: pointer;
  transition: all .2s ease;
}
.gg-tab.is-active { color: #fff; background: linear-gradient(180deg, #3b86fa, #1d6bfa); border-color: transparent; }

/* 관리자 소형 입력/버튼 */
.gg-mini-input {
  width: 84px; height: 30px; border-radius: 8px; border: 1px solid var(--card-border);
  background: #f7fafd; padding: 0 8px; font-size: 12px; color: var(--tx); font-family: inherit;
}
.gg-mini-input:focus { outline: none; border-color: var(--blue); }
.gg-select {
  height: 30px; border-radius: 8px; border: 1px solid var(--card-border);
  background: #fff; font-size: 12px; color: var(--tx); font-family: inherit; padding: 0 6px;
}
.gg-btn-danger { background: linear-gradient(180deg, #ff6b6b, #e03131); box-shadow: 0 4px 10px rgba(224,49,49,.25), inset 0 1px 0 rgba(255,255,255,.25); }
.gg-btn-ghost { background: #fff; color: var(--tx-sub); border: 1px solid var(--card-border); box-shadow: none; }

/* ---------- 토스트 ---------- */
.gg-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(10px);
  background: #16305e; color: #fff; font-size: 13px; font-weight: 700;
  padding: 12px 22px; border-radius: 12px; box-shadow: 0 10px 24px rgba(20, 45, 90, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}
.gg-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 확인 모달 ---------- */
.gg-modal-back {
  position: fixed; inset: 0; background: rgba(15, 35, 75, .45);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  animation: ggFadeIn .2s ease;
}
.gg-modal {
  background: #fff; border-radius: 18px; padding: 26px 26px 20px;
  width: 340px; max-width: calc(100vw - 40px);
  box-shadow: 0 20px 50px rgba(20, 45, 90, .3);
  animation: ggRise .25s ease;
}
.gg-modal p { font-size: 14px; font-weight: 700; color: var(--tx); line-height: 1.6; margin-bottom: 18px; }
.gg-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }
