/* ============================================================
   Practice Bingo — /games/nvc-bingo
   Scoped under .gbg. Built on the main site token set.
   ============================================================ */

/* the hidden attribute always wins over display classes */
.gbg [hidden] { display: none !important; }

.gbg {
  background: var(--paper);
  padding: clamp(96px, 13vw, 150px) 20px clamp(72px, 9vw, 120px);
}
.gbg-inner { max-width: 900px; margin: 0 auto; }

/* ---- header -------------------------------------------------------------- */
.gbg-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 12px;
}
.gbg-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.gbg-title em {
  font-style: italic;
  background: var(--gradient-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gbg-lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 0 0 14px; }
.gbg-howto { color: var(--ink-soft); font-size: 15px; max-width: 600px; margin: 0 0 10px; }
.gbg-honesty {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 600px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 14px;
  margin: 0 0 10px;
}
.gbg-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 30px;
}

/* ---- deck switcher -------------------------------------------------------- */
.gbg-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.gbg-vbtn {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gbg-vbtn:hover { border-color: var(--ink-faint); }
.gbg-vbtn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.gbg-vbtn-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
  margin-right: 4px;
}

/* ---- status row ---------------------------------------------------------- */
.gbg-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.gbg-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.gbg-toast {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--brand-ink);
  margin: 0 0 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gbg-toast.is-showing { opacity: 1; }

/* ---- card ---------------------------------------------------------------- */
.gbg-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 40px;
}
.gbg-square {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: clamp(4px, 1vw, 12px);
  font-family: var(--font-body);
  font-size: clamp(8.5px, 1.35vw, 13.5px);
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}
.gbg-square:hover { border-color: var(--ink-faint); }
.gbg-square.is-marked {
  background: var(--accent-green-soft);
  border-color: var(--accent-green);
  color: var(--ink-soft);
}
.gbg-square.is-marked::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(#000 0 0);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.gbg-square.is-free {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
  font-style: italic;
  cursor: default;
}
.gbg-square.is-free .gbg-free-tag {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.gbg-square.in-bingo {
  background: var(--accent-magenta-soft);
  border-color: var(--brand);
}
.gbg-square.is-free.in-bingo { background: var(--accent-gold-soft); }

/* ---- blackout ------------------------------------------------------------ */
.gbg-blackout {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(42, 34, 51, 0.08);
  padding: 34px 30px;
  max-width: 640px;
}
.gbg-blackout h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
  margin: 0 0 12px;
}
.gbg-blackout p { color: var(--ink-soft); margin: 0 0 20px; }
.gbg-blackout-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- buttons ------------------------------------------------------------- */
.gbg-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.gbg-btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.gbg-btn-primary:hover { transform: translateY(-2px); color: var(--white); }
.gbg-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.gbg-btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }

@media (max-width: 560px) {
  .gbg-card { gap: 4px; }
  .gbg-square { border-radius: var(--radius-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .gbg-btn, .gbg-btn:hover, .gbg-square, .gbg-toast { transition: none; transform: none; }
}
