/* ============================================================
   Shared components for George's Game Zone — badges, streaks,
   category charts and toast pop-ups. Loaded alongside stats.js
   on every page.
   ============================================================ */

.gz-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy-light, #1c1820);
  color: var(--gold, #f5b942);
  border: 1px solid rgba(255, 184, 77, 0.4);
  padding: 12px 22px;
  border-radius: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 999;
  max-width: 88vw;
  text-align: center;
}
.gz-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.gz-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.gz-badge {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform .15s ease;
}
.gz-badge.earned { border-color: rgba(255, 184, 77, 0.35); }
.gz-badge.locked { opacity: 0.42; }
.gz-badge-emoji { font-size: 24px; }
.gz-badge-name { font-size: 10.5px; font-weight: 800; margin-top: 6px; color: var(--cream, #f1ede9); line-height: 1.25; }

.gz-streak-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.3);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--cream, #f1ede9);
}
.gz-flame { font-size: 18px; }

.gz-chart { margin-top: 10px; }
.gz-chart-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.gz-chart-label { width: 112px; font-size: 12px; font-weight: 700; color: #b9b2ac; flex-shrink: 0; text-align: right; }
.gz-chart-track { flex: 1; height: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; }
.gz-chart-fill { height: 100%; background: linear-gradient(90deg, var(--teal, #9d5cff), var(--gold, #f5b942)); border-radius: 8px; transition: width .7s ease; }
.gz-chart-value { width: 40px; font-size: 12px; font-weight: 800; color: var(--gold, #f5b942); text-align: right; }

@media (max-width: 480px) {
  .gz-chart-label { width: 86px; font-size: 11px; }
}
