/* ============================================================
   16-stamp-nearwin.css — Dabber stamp, column fixes, near-win
   ============================================================ */

/* Bingo-dabber stamp: the mark slams down, then an ink ring spreads out */
.pc-cell { position: relative; }

.pc-cell.stamp { animation: stampSlam .42s cubic-bezier(.2,1.4,.4,1) both; z-index: 3; }

.pc-cell.stamp::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid currentColor;
  pointer-events: none;
  animation: stampRing .6s ease-out forwards;
}

@keyframes stampSlam {
  0% { transform: scale(1.55) rotate(-14deg); opacity: .15; filter: brightness(1.6); }
  55% { transform: scale(.92) rotate(3deg); opacity: 1; filter: brightness(1.2); }
  100% { transform: scale(1) rotate(0); filter: none; }
}

@keyframes stampRing {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.pc-cell.m-B.stamp::after { border-color: var(--b-color); }

.pc-cell.m-I.stamp::after { border-color: var(--i-color); }

.pc-cell.m-N.stamp::after { border-color: var(--n-color); }

.pc-cell.m-G.stamp::after { border-color: var(--g-color); }

.pc-cell.m-O.stamp::after { border-color: var(--o-color); }


@media (prefers-reduced-motion: reduce) {
  .pc-cell.stamp,
  .pc-cell.stamp::after {
    animation: none;
  }
}
/* Fix: the right column was stretching to the card width, pushing the cards off-screen */
.game-main { min-width: 0; }

.call-side { min-width: 0; max-width: 100%; }

.player-card-wrap { width: 100%; min-width: 0; max-width: 100%; }

#player-cards { width: 100%; min-width: 0; max-width: 100%; }

#player-cards .my-card { min-width: 0; }

#player-cards .player-card-grid { width: 100%; }

/* card switcher chips: two-line (number + progress) so 4 fit in the narrow column */
.card-dots { flex-wrap: wrap; gap: 5px; }

.card-dots .swipe-hint { display: none; }

.card-dots .dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: auto;
  padding: 3px 6px;
  line-height: 1.15;
  border-radius: 10px;
  font-size: 12px;
}

.card-dots .dot small { display: block; margin: 0; font-size: 10px; }

/* Near-win: the pattern that is one number away is outlined, the missing number pulses */
.pc-cell.near { outline: 2px solid rgba(13,17,23,.6); outline-offset: -2px; }

.pc-cell.need {
  background: rgba(240,193,75,.22) !important;
  border: 2px solid #f0c14b;
  color: #f0c14b !important;
  font-weight: 900;
  z-index: 4;
  animation: needPulse .9s ease-in-out infinite;
}

@keyframes needPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,193,75,.65); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 6px rgba(240,193,75,0); }
}


@media (prefers-reduced-motion: reduce) {
  .pc-cell.need { animation: none; }
}
