@charset "UTF-8";
/**
 * Site-Specific CSS — 007-bingo
 * Bingo card game engine, hero, board, cell interactions.
 * Coral-rose #f43f5e + golden #f59e0b
 *
 * Fonts loaded: Fredoka One (display) + Nunito (body)
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');


/* ═══════════════════════════════════════════════════════════
   PAGE SHELL
   ═══════════════════════════════════════════════════════════ */

body {
  font-family: 'Nunito', var(--font-body, system-ui, sans-serif);
  color: var(--site-text, #1c0714);
}

.bingo-page {
  background: var(--gradient-surface,
    linear-gradient(160deg, #fff1f2 0%, #ffffff 40%, #fffbeb 100%));
  min-height: 100vh;
  padding-bottom: 3rem;
}


/* ═══════════════════════════════════════════════════════════
   BINGO HERO (detail-page hero variant)
   ═══════════════════════════════════════════════════════════ */

.bingo-hero {
  padding: 3rem 1.5rem 2.5rem;
  background: var(--gradient-hero,
    linear-gradient(160deg, #fff1f2 0%, #fce7f3 50%, #fffbeb 100%));
  border-bottom: 2px solid var(--site-primary-border, #fecdd3);
  position: relative;
  overflow: hidden;
}

/* Star confetti — top-left */
.bingo-hero::before {
  content: '★';
  position: absolute;
  top: 12px; left: 20px;
  font-size: 1.5rem;
  color: rgba(244, 63, 94, 0.15);
  pointer-events: none;
  line-height: 1;
}

/* Star confetti — bottom-right */
.bingo-hero::after {
  content: '★';
  position: absolute;
  bottom: 16px; right: 24px;
  font-size: 1rem;
  color: rgba(245, 158, 11, 0.2);
  pointer-events: none;
  line-height: 1;
}

.bingo-hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Hero badge pill */
.bingo-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill, 9999px);
  background: #ffffff;
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--site-primary, #f43f5e);
  margin-bottom: 0.75rem;
}

.badge-emoji { font-size: 1.1rem; }

/* Bingo page title */
.bingo-title {
  font-family: 'Fredoka One', var(--font-heading, 'Nunito', system-ui, sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--site-primary, #f43f5e);
  margin: 0.75rem 0 0.5rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.bingo-subtitle {
  margin: 0 auto 1.25rem;
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--site-text-light, #4b5563);
  line-height: 1.6;
}

/* Meta pills */
.bingo-meta {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.meta-item {
  background: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-text, #1c0714);
  box-shadow: var(--shadow-sm);
}


/* ═══════════════════════════════════════════════════════════
   BINGO ACTION BUTTONS
   ═══════════════════════════════════════════════════════════ */

.bingo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 0.5rem;
}

.bingo-btn {
  border: none;
  border-radius: var(--radius-pill, 9999px);
  padding: 0.65rem 1.4rem;
  font-weight: 800;
  font-family: 'Fredoka One', var(--font-heading, system-ui, sans-serif);
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  letter-spacing: 0.3px;
}

.bingo-btn.primary {
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e, #e11d48));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.30);
}

.bingo-btn.primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.40);
}

/* BINGO! special button — golden */
.bingo-btn.win, .bingo-btn.bingo-call {
  background: var(--gradient-gold, linear-gradient(135deg, #f59e0b, #d97706));
  color: #ffffff;
  box-shadow: var(--shadow-gold, 0 6px 18px rgba(245,158,11,0.30));
}

.bingo-btn.win:hover, .bingo-btn.bingo-call:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.40);
}

.bingo-btn.ghost {
  background: #ffffff;
  color: var(--site-text, #1c0714);
  border: 2px solid var(--site-primary-border, #fecdd3);
  box-shadow: var(--shadow-sm);
}

.bingo-btn.ghost:hover {
  background: var(--site-primary-light, #fff1f2);
  border-color: var(--site-primary, #f43f5e);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bingo-btn:active {
  transform: translateY(0) scale(0.97) !important;
  transition-duration: 80ms;
}


/* ═══════════════════════════════════════════════════════════
   BINGO BOARD (standalone preview / home)
   ═══════════════════════════════════════════════════════════ */

.bingo-board {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

/* B-I-N-G-O header row */
.bingo-header {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bingo-header-cell {
  text-align: center;
  padding: 0.65rem 0;
  font-family: 'Fredoka One', var(--font-heading, system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-brand, linear-gradient(135deg, #f43f5e, #e11d48));
  color: #ffffff;
  border-radius: var(--radius-md, 12px);
  letter-spacing: 3px;
  box-shadow: var(--shadow-md);
}

/* Game grid */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

/* Individual bingo cell */
.bingo-cell {
  background: var(--bingo-cell-bg, #ffffff);
  border: 2px solid var(--bingo-cell-border, #fecdd3);
  border-radius: var(--radius-md, 12px);
  min-height: 90px;
  padding: 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default),
              background var(--dur-normal) var(--ease-default),
              border-color var(--dur-fast) var(--ease-default);
  user-select: none;
}

.bingo-cell:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--site-primary, #f43f5e);
  z-index: 1;
}

.bingo-cell:active {
  transform: scale(0.96);
  transition-duration: 80ms;
}

/* Marked cell — coral fill with bounce */
.bingo-cell.marked {
  background: linear-gradient(135deg, #fecdd3, #fda4af);
  border-color: var(--site-primary, #f43f5e);
  color: var(--site-primary-dark, #be123c);
  animation: var(--bingo-mark-anim, bingoMark 0.3s cubic-bezier(0.68,-0.55,0.265,1.55));
}

/* Winning cell — golden glow */
.bingo-cell.win, .bingo-cell.bingo-win {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--site-accent, #f59e0b);
  color: #92400e;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.30), var(--shadow-md);
  animation: winCellPulse 0.8s ease-in-out infinite alternate;
}

@keyframes winCellPulse {
  from { box-shadow: 0 0 0 3px rgba(245,158,11,0.20), var(--shadow-sm); }
  to   { box-shadow: 0 0 0 6px rgba(245,158,11,0.40), var(--shadow-lg); }
}

/* FREE center cell */
.bingo-cell.free {
  background: var(--bingo-free-bg, linear-gradient(135deg, #fef3c7, #fde68a));
  border-color: var(--site-accent, #f59e0b);
  color: var(--bingo-free-color, #92400e);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.cell-text { display: block; word-break: break-word; }


/* ═══════════════════════════════════════════════════════════
   BINGO STATUS / WIN BANNER
   ═══════════════════════════════════════════════════════════ */

.bingo-status {
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  border-radius: var(--radius-card, 16px);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  text-align: center;
  font-family: 'Fredoka One', var(--font-heading, system-ui, sans-serif);
  font-size: 1.1rem;
  color: var(--site-text, #1c0714);
}

.bingo-status.win {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--site-accent, #f59e0b);
  color: #92400e;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold, 0 4px 16px rgba(245,158,11,0.25)), var(--shadow-md);
  animation: winCelebrate 0.8s ease-in-out infinite alternate;
}


/* ═══════════════════════════════════════════════════════════
   BINGO TIPS CARDS
   ═══════════════════════════════════════════════════════════ */

.bingo-tips {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tip-card {
  background: #ffffff;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-card, 16px);
  border: 1.5px solid var(--site-primary-border, #fecdd3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-default),
              box-shadow var(--dur-normal) var(--ease-default);
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tip-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--site-primary, #f43f5e);
  font-family: 'Fredoka One', var(--font-heading, system-ui, sans-serif);
}

.tip-card ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
  color: var(--site-text-light, #4b5563);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bingo-empty {
  text-align: center;
  padding: 2.5rem 0;
  color: var(--site-text-muted, #6b7280);
  font-size: 1rem;
}


/* ═══════════════════════════════════════════════════════════
   DETAIL ATOM — Runtime Bingo Grid
   Targets: #detail-atom-mount .number-grid-container
   ═══════════════════════════════════════════════════════════ */

#detail-atom-mount .number-grid-container {
  max-width: 580px;
  margin: 1.5rem auto;
}

#detail-atom-mount .number-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--site-primary, #f43f5e);
}

#detail-atom-mount .grid-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

#detail-atom-mount .grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1.5px solid rgba(252, 231, 243, 0.9);
  background: #ffffff;
  color: var(--site-text, #1c0714);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default),
              transform var(--dur-fast) var(--ease-default),
              box-shadow var(--dur-fast) var(--ease-default);
  user-select: none;
}

/* Alternating warm-tint rows */
#detail-atom-mount .grid-row:nth-child(even) .grid-cell {
  background: #fff8f8;
}

/* Hover */
#detail-atom-mount .grid-cell:hover {
  background: var(--site-primary-light, #fff1f2);
  border-color: var(--site-primary, #f43f5e);
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.20);
}

/* Marked cell — bounce animation */
#detail-atom-mount .grid-cell.marked,
#detail-atom-mount .grid-cell[data-marked="true"] {
  background: linear-gradient(135deg, #fecdd3, #fda4af);
  border-color: var(--site-primary, #f43f5e);
  color: var(--site-primary-dark, #be123c);
  animation: bingoMark 0.32s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Winning-line highlight */
#detail-atom-mount .grid-cell.win-cell,
#detail-atom-mount .grid-cell[data-win="true"] {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--site-accent, #f59e0b);
  color: #92400e;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.30);
}

/* FREE center cell (row 3, col 3 in 5×5) */
#detail-atom-mount .grid-row:nth-child(3) .grid-cell:nth-child(3) {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: var(--site-accent, #f59e0b);
  color: #92400e;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════
   PRINT — bingo grid
   ═══════════════════════════════════════════════════════════ */

@media print {
  .bingo-hero::before,
  .bingo-hero::after    { display: none !important; }

  .bingo-actions        { display: none !important; }
  .bingo-status         { display: none !important; }

  .bingo-hero {
    background: #ffffff !important;
    border-bottom: 1pt solid #fecdd3 !important;
    padding: 0.5rem 0 !important;
  }

  .bingo-title { color: #f43f5e !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  .bingo-cell {
    border: 1pt solid #fecdd3 !important;
    min-height: 60px;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 0.85rem;
  }

  .bingo-cell.free {
    background: #fffbeb !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .bingo-header-cell {
    background: #f43f5e !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #detail-atom-mount .grid-cell {
    min-height: 55px;
    font-size: 0.85rem;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: 1pt solid #fecdd3 !important;
  }

  #detail-atom-mount .number-grid {
    border: 2pt solid #f43f5e !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .bingo-cell    { min-height: 72px; font-size: 0.875rem; }
  .bingo-title   { font-size: clamp(1.6rem, 4vw, 2.4rem); }
}

@media (max-width: 600px) {
  .bingo-hero { padding: 2rem 1rem 1.5rem; }

  .bingo-header  { gap: 0.35rem; }
  .bingo-grid    { gap: 0.35rem; }

  .bingo-cell {
    min-height: 58px;
    padding: 0.35rem;
    font-size: 0.78rem;
  }

  .bingo-header-cell {
    font-size: 1rem;
    padding: 0.5rem 0;
    letter-spacing: 2px;
  }

  .bingo-actions { padding: 0.75rem 0.5rem 0.5rem; gap: 0.5rem; }
  .bingo-btn     { min-width: 120px; font-size: 0.9rem; padding: 0.55rem 1rem; }

  #detail-atom-mount .grid-cell {
    min-height: 54px;
    font-size: 0.8rem;
    padding: 0.3rem;
  }
}
