/* ═══════════════════════════════════════════════════════════════
   GO FEST 2026 BINGO — styles scoped to the /bingo page only.
   Custom palette (deliberately distinct from the main site theme):
   ═══════════════════════════════════════════════════════════════ */

.bingo-page {
  --bgo-deep: #1A0E52;
  --bgo-panel: #2D1B7A;
  --bgo-accent: #6B3FA8;
  --bgo-highlight: #9B5FD4;
  --bgo-gold: #E8BC3C;
  --bgo-white: #FFFFFF;
  --bgo-lavender: #C5B3E8;

  background: var(--bgo-deep);
  flex: 1;
  padding: 2.5rem 1.25rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero ── */
.bingo-hero {
  max-width: 560px;
  width: 100%;
  text-align: center;
  margin-bottom: 1.75rem;
}

.bingo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(155, 95, 212, 0.18);
  border: 1px solid rgba(155, 95, 212, 0.55);
  color: var(--bgo-highlight);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.bingo-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 4px;
  color: var(--bgo-white);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 30px rgba(155, 95, 212, 0.45);
}

.bingo-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--bgo-lavender);
  margin: 0;
}

/* ── Banner ── */
.bingo-banner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, rgba(232, 188, 60, 0.12), rgba(232, 188, 60, 0.28), rgba(232, 188, 60, 0.12));
  border: 1px solid var(--bgo-gold);
  color: var(--bgo-gold);
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 6px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px rgba(232, 188, 60, 0.35);
  display: none;
}

.bingo-banner.show {
  display: block;
  animation: bingo-banner-in 0.4s ease-out;
}

@keyframes bingo-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Board ── */
.bingo-board {
  max-width: 560px;
  width: 100%;
  background: var(--bgo-panel);
  border: 1px solid var(--bgo-accent);
  border-radius: 16px;
  padding: 1rem;
}

.bingo-headers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.bingo-headers span {
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  letter-spacing: 2px;
  color: var(--bgo-gold);
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.bingo-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 92px;
  background: rgba(155, 95, 212, 0.08);
  border: 1px solid rgba(197, 179, 232, 0.25);
  border-radius: 10px;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--bgo-white);
  font-family: 'Lato', sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.bingo-cell:hover {
  border-color: var(--bgo-highlight);
}

.bingo-cell:active {
  transform: scale(0.97);
}

.bingo-cell:focus-visible {
  outline: 2px solid var(--bgo-highlight);
  outline-offset: 2px;
}

.bingo-cell-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.bingo-cell-text {
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  color: var(--bgo-lavender);
}

.bingo-cell.marked {
  background: rgba(232, 188, 60, 0.18);
  border-color: var(--bgo-gold);
}

.bingo-cell.marked .bingo-cell-text {
  color: var(--bgo-white);
}

.bingo-cell.free {
  cursor: default;
  background: rgba(232, 188, 60, 0.22);
  border-color: var(--bgo-gold);
}

.bingo-cell-check {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.75rem;
  color: var(--bgo-gold);
}

/* Winning-line glow pulse */
.bingo-cell.win-glow {
  animation: bingo-glow-pulse 1.1s ease-in-out infinite;
  border-color: var(--bgo-gold);
}

@keyframes bingo-glow-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(232, 188, 60, 0.35); }
  50% { box-shadow: 0 0 22px rgba(232, 188, 60, 0.9); }
}

/* ── Controls ── */
.bingo-controls {
  max-width: 560px;
  width: 100%;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.bingo-btn {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--bgo-highlight);
  background: transparent;
  color: var(--bgo-white);
  transition: background 0.15s, border-color 0.15s;
}

.bingo-btn:hover {
  background: rgba(155, 95, 212, 0.2);
}

.bingo-btn-primary {
  background: var(--bgo-accent);
  border-color: var(--bgo-accent);
}

.bingo-btn-primary:hover {
  background: var(--bgo-highlight);
  border-color: var(--bgo-highlight);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .bingo-page {
    padding: 1.5rem 0.6rem 2.5rem;
  }

  .bingo-board {
    padding: 0.6rem;
    border-radius: 12px;
  }

  .bingo-headers,
  .bingo-grid {
    gap: 5px;
  }

  .bingo-cell {
    min-height: 64px;
    border-radius: 8px;
    padding: 4px 2px;
    gap: 2px;
  }

  .bingo-cell-emoji {
    font-size: 20px;
  }

  .bingo-cell-text {
    font-size: 9px;
  }

  .bingo-banner {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }
}
