/* ── The one quit card ("progress snapshot") ─────────────────────
   Built by quit-card.js and shared by every game page. Shows what you've
   done so far (a ring, or a row of friends for Kids), a few numbers, and two
   buttons: Leave, and the bigger green Keep playing. Colours are written out
   here, not taken from page variables, so it looks the same on every page. */
.qc-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5,4,12,.72);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}
.qc-overlay.hidden { display: none; }
.qc-card {
  width: 100%; max-width: 340px;
  border-radius: 24px; padding: 20px 16px 16px;
  display: flex; flex-direction: column; gap: 12px; text-align: center;
  background: #1a1930; border: 2px solid #2e2a52; color: #f1f5f9;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  animation: qcPop .22s cubic-bezier(.3,1.4,.6,1);
}
@keyframes qcPop { from { transform: scale(.86); opacity: 0; } }
.qc-title { margin: 0; font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.qc-ring {
  --p: 0; --rc: #7c3aed; --rt: #2a2745;
  position: relative; width: 112px; height: 112px; margin: 2px auto 0;
  display: grid; place-items: center;
}
.qc-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--rt) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
}
.qc-ring b { display: block; font-size: 1.55rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.qc-ring small { display: block; margin-top: 3px; font-size: .68rem; font-weight: 800; color: #94a3b8; }
.qc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 1.55rem; line-height: 1.2; }
.qc-row .off { opacity: .25; filter: grayscale(1); }
.qc-stats { display: flex; gap: 8px; }
.qc-stat { flex: 1; min-width: 0; border-radius: 14px; padding: 8px 4px; background: #221f3d; }
.qc-stat b { display: block; font-size: 1.1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.qc-stat span { display: block; font-size: .68rem; font-weight: 800; color: #94a3b8; }
.qc-note { margin: 0; font-size: .86rem; font-weight: 600; color: #94a3b8; }
.qc-btns { display: flex; gap: 8px; }
.qc-btn {
  flex: 1; min-height: 52px; border: 0; border-radius: 16px; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 900;
  transition: transform .08s; -webkit-tap-highlight-color: transparent;
}
.qc-btn:active { transform: translateY(2px) scale(.98); }
.qc-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
.qc-stay { background: #22c55e; color: #052e12; }
.qc-leave { background: none; border: 2px solid #7f1d1d; color: #f87171; }

/* Kids: cream card, mint ring, pill buttons */
.qc-overlay.qc-kids { background: rgba(10,58,70,.38); }
.qc-kids .qc-card { background: #fffef8; border: 0; color: #0a3a46; box-shadow: 0 10px 0 rgba(10,58,70,.2), 0 18px 34px rgba(10,58,70,.25); }
.qc-kids .qc-ring { --rc: #34d399; --rt: #e2f3f6; }
.qc-kids .qc-ring small, .qc-kids .qc-stat span, .qc-kids .qc-note { color: #3f6670; }
.qc-kids .qc-stat { background: #eef8fa; }
.qc-kids .qc-stay { background: #22c55e; color: #fff; border-radius: 999px; box-shadow: 0 5px 0 #15803d; }
.qc-kids .qc-stay:active { box-shadow: 0 1px 0 #15803d; }
.qc-kids .qc-leave { background: #eef8fa; border: 0; color: #3f6670; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .qc-card { animation: none; } }
