/* gemgem find (젬젬) — private treasure hunt mode */
.tabbar.gg-six { grid-template-columns: repeat(6, 1fr); gap: 4px; padding-left: 6px; padding-right: 6px; }
.gg-tab-btn { position: relative; color: #fcd34d; }
.gg-badge {
  position: absolute; top: 2px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #f43f5e; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px;
}
.gg-badge.hidden { display: none; }
.gg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gg-head h2 { margin: 2px 0 0; font-size: 19px; }
.gg-logo { height: 30px; display: block; margin-left: -6px; }
.gg-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(245, 185, 66, 0.55); color: #fde68a; background: rgba(245, 185, 66, 0.1); font-weight: 700; font-size: 14px;
}
.gg-pill img { width: 20px; height: 20px; }
.gg-hero { text-align: center; margin: 4px 0 14px; }
.gg-hero-logo { width: min(320px, 80%); }
.gg-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.gg-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gg-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; min-height: 0;
  background: #111a2e; border: 1px solid #334155; color: var(--text); border-radius: 14px; font-weight: 600;
}
.gg-opt img { width: 52px; height: 52px; }
.gg-opt b { font-size: 13px; }
.gg-opt small { color: var(--muted); font-size: 11px; font-weight: 500; }
.gg-opt.active { border-color: var(--brand); background: rgba(139, 92, 246, 0.22); }
.field-label { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }
.gg-invite .gg-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gg-codes div { background: #0b1222; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.gg-codes small { display: block; color: var(--muted); font-size: 12px; }
.gg-codes b { font-size: 26px; letter-spacing: 4px; color: #fde68a; }
.gg-member { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gg-member img { width: 34px; height: 34px; }
.gg-member b { display: block; }
.gg-member small { color: var(--muted); }
.gg-member select, .gg-t select { width: auto; min-height: 34px; padding: 4px 8px; margin: 6px 6px 0 0; font-size: 13px; }
.gg-dot { width: 34px; height: 34px; border-radius: 50%; background: #1e293b; flex: none; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; align-items: center; }
.gg-t { display: flex; gap: 12px; align-items: flex-start; }
.gg-t > div { flex: 1; min-width: 0; }
.gg-t small { display: block; }
.gg-gem { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15)); }
.gg-done { opacity: 0.55; }
.gg-done b { text-decoration: line-through; }
.gg-ok { color: #6ee7b7 !important; }
.gg-wait { color: #fbbf24 !important; }
.gg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gg-chip-gem { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.gg-map-card { border: 1px solid var(--line); border-radius: 18px; padding: 8px; background: #0b1222; margin-bottom: 14px; }
#ggMap { width: 100%; aspect-ratio: 1 / 1; display: block; touch-action: manipulation; }
.gg-map-bg { fill: #101a2c; }
.gg-zone { fill: rgba(139, 92, 246, 0.06); stroke: #f472b6; stroke-width: 0.5; stroke-dasharray: 1.6 1.2; }
.gg-hint { stroke-width: 0.35; }
.gg-hint-common { fill: rgba(96, 165, 250, 0.16); stroke: #60a5fa; }
.gg-hint-rare { fill: rgba(167, 139, 250, 0.16); stroke: #a78bfa; }
.gg-hint-legend { fill: rgba(245, 185, 66, 0.18); stroke: #f5b942; }
.gg-hint-done { fill: rgba(148, 163, 184, 0.08); stroke: #64748b; }
.gg-me { fill: #22d3ee; stroke: #fff; stroke-width: 0.5; }
.gg-me-acc { fill: rgba(34, 211, 238, 0.15); }
.gg-map-note { display: block; text-align: center; color: var(--muted); margin-top: 6px; }
.gg-clock { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.gg-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.gg-score { border-radius: 14px; padding: 12px; border: 1px solid; }
.gg-score small { display: block; color: var(--muted); }
.gg-score b { font-size: 20px; }
.gg-score-0 { border-color: rgba(244, 114, 182, 0.6); background: rgba(244, 114, 182, 0.1); color: #f9a8d4; }
.gg-score-1 { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.1); color: #67e8f9; }
.gg-score-2 { border-color: rgba(245, 185, 66, 0.6); background: rgba(245, 185, 66, 0.1); color: #fde68a; }
.gg-score-3 { border-color: rgba(167, 139, 250, 0.6); background: rgba(167, 139, 250, 0.1); color: #c4b5fd; }
.gg-score.mine { box-shadow: 0 0 0 2px #fff inset; }
.gg-quiz { margin: 8px 0 4px; color: #fde68a; }
.gg-wait-card, .gg-result { text-align: center; }
.gg-wait-card img, .gg-result img { width: 140px; }
.gg-wait-card ul { text-align: left; }
.gg-role-img { width: 56px; float: right; }
.gg-found-card {
  text-align: center; border: 2px solid rgba(245, 185, 66, 0.7);
  background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.55), rgba(15, 23, 42, 0.97) 70%);
}
.gg-chest { position: relative; width: 190px; margin: 0 auto; animation: gg-pop 0.5s ease-out; }
.gg-chest img { width: 100%; }
.gg-chest-gem { position: absolute; width: 64px !important; left: 50%; top: 28%; transform: translateX(-50%); animation: gg-rise 0.9s ease-out; }
.gg-found-kicker { color: #fcd34d; font-weight: 900; font-size: 22px; margin: 6px 0 2px; }
.gg-found-title { margin: 0 0 6px; font-size: 22px; line-height: 1.35; }
.gg-r-legend { color: #f5b942; }
.gg-r-rare { color: #c4b5fd; }
.gg-r-common { color: #93c5fd; }
@keyframes gg-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gg-rise { from { top: 45%; opacity: 0; } to { top: 28%; opacity: 1; } }
@media (max-width: 380px) {
  .gg-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-btn { font-size: 12px; }
}
.gg-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gg-table th, .gg-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.gg-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.gg-table td small { display: block; color: var(--muted); }
.gg-table tr:last-child td { border-bottom: 0; }
.gg-first td { background: rgba(245, 185, 66, 0.07); }
.gg-first-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(245, 185, 66, 0.2); color: #fde68a; font-size: 11px; font-weight: 800; }
.gg-stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.gg-stepper .chip { width: 44px; font-size: 20px; padding: 0; }
.gg-stepper b { min-width: 48px; text-align: center; font-size: 17px; }
.gg-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.gg-points label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border: 1px solid #334155; border-radius: 14px; background: #111a2e; font-size: 13px; }
.gg-points img { width: 34px; height: 34px; }
.gg-points input { width: 100%; text-align: center; min-height: 38px; padding: 4px; font-weight: 800; font-size: 16px; }
.gg-points small { color: var(--muted); font-size: 11px; }

/* 상품 목록 → 보물 자동 매칭 (2026-11-17) */
.gg-prize .subhead img.gg-chip-gem { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.gg-file { display: block; position: relative; margin: 10px 0 8px; }
.gg-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.gg-file span {
  display: block; text-align: center; padding: 14px 12px; border-radius: 14px; font-weight: 700;
  border: 1.5px dashed rgba(245, 185, 66, 0.7); color: #fde68a; background: rgba(245, 185, 66, 0.08);
}
.gg-paste { margin: 6px 0; }
.gg-paste summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
.gg-paste textarea { width: 100%; box-sizing: border-box; margin: 6px 0; font-size: 13px; }
.gg-prize-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 8px 0 10px; font-size: 14px; }
.gg-prize-kind { display: inline-flex; align-items: center; gap: 4px; }
.gg-prize-kind img { width: 22px; height: 22px; }
.gg-prize-list { display: grid; gap: 8px; margin-bottom: 8px; }
.gg-prize-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.gg-prize-row .gg-gem { width: 44px; height: 44px; }
.gg-prize-main b { display: block; word-break: keep-all; }
.gg-prize-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.gg-prize-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gg-prize-chips .chip { min-height: 30px; padding: 2px 10px; font-size: 12px; }
.gg-prize-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gg-prize-qty input { width: 62px; min-height: 34px; padding: 4px 6px; text-align: right; }
.gg-prize-qty small { color: var(--muted); font-size: 11px; }
.gg-prize-warn { margin: 6px 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: #fecaca; background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.35); }
.gg-list-tag { color: #fde68a; }

/* 상품 매칭 안내 (2026-11-17) */
.gg-howto { margin: 6px 0 4px; padding-left: 22px; }
.gg-howto li { margin: 6px 0; }
.gg-howto li small { display: block; color: var(--muted); font-size: 12px; }
.gg-howto a { color: #fde68a; font-weight: 700; }
.gg-rule ul { margin: 4px 0 6px; padding-left: 18px; font-size: 13px; }
.gg-rule li { margin: 4px 0; }
.gg-rule .gg-chip-gem, .gg-home-tip .gg-chip-gem { width: 18px; height: 18px; vertical-align: -4px; margin: 0 2px; }
.gg-prize a.link-btn { display: inline-block; margin-top: 4px; }
.gg-new { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start;
  border-color: rgba(245, 185, 66, 0.6) !important; background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(139, 92, 246, 0.14)) !important; }
.gg-new img { width: 64px; height: 64px; }
.gg-new b { display: block; font-size: 15px; }
.gg-new small { display: block; color: var(--muted); margin: 4px 0 8px; }
.gg-new-tag { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 800; }
.gg-home-tip b { color: #fde68a; margin-right: 4px; }

.gg-cap { width: 72px; min-height: 36px; padding: 4px 8px; text-align: center; }
.gg-prize-note { margin: 6px 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: #fde68a; background: rgba(245, 185, 66, 0.1); border: 1px solid rgba(245, 185, 66, 0.4); }

/* 시작 10초 카운트다운 (모든 참가자) */
.gg-countdown { z-index: 60; background: rgba(15, 23, 42, 0.82); }
.gg-cd-box { text-align: center; color: #fff; }
.gg-cd-kicker { margin: 0 0 8px; font-weight: 800; font-size: 20px; color: #fcd34d; }
#ggCdNum { display: block; font-size: min(42vw, 220px); line-height: 1; font-weight: 900; text-shadow: 0 6px 30px rgba(252, 211, 77, 0.55); }
.gg-cd-pop { animation: gg-cd-pop 0.9s ease-out; }
@keyframes gg-cd-pop { 0% { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.92); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .gg-cd-pop { animation: none; } }
