/* ============================================================
   10-player-cards.css — Player cards, sticky board, bonus ticker, winning line
   ============================================================ */

/* Player cards: dark card, colour-badge BINGO header, light number tiles */
.player-card-wrap {
  background: none;
  border: none;
  padding: 0 0 16px;
  margin-top: 4px;
  margin-bottom: 24px;
  overflow: visible;
}

.my-card {
  background: var(--card-bg);
  border: 1.5px solid rgba(240,193,75,0.4);
  border-radius: 18px;
  padding: 14px 12px 12px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.card-title {
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.player-card-grid { gap: 5px; }

.pc-header,
.preview-header {
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 0;
  border-radius: 9px;
  letter-spacing: 0.3px;
}

.pc-header.B,
.preview-header.B {
  background: var(--b-color) !important;
}

.pc-header.I,
.preview-header.I {
  background: var(--i-color) !important;
}

.pc-header.N,
.preview-header.N {
  background: var(--n-color) !important;
}

.pc-header.G,
.preview-header.G {
  background: var(--g-color) !important;
}

.pc-header.O,
.preview-header.O {
  background: var(--o-color) !important;
}

.pc-cell {
  font-size: 14px;
  font-weight: 700;
  border-radius: 9px;
  background: #eef1f4;
  color: #1f2328;
  border: none;
}

.pc-cell.marked {
  color: #fff;
  font-weight: 800;
}

.pc-cell.free {
  background: var(--b-color);
  border-color: var(--b-color);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.preview-cell {
  border-radius: 8px;
  border: none;
  background: #eef1f4;
  color: #1f2328;
}

.preview-cell.marked { color: #fff; }

.preview-cell.free {
  background: var(--b-color);
  border-color: var(--b-color);
  color: #fff;
}

#card-num-label { display: none; }

.card-meta { justify-content: flex-end; margin-top: 0; }

/* Per-card AUTO toggle + status/claim button, built into the bottom of each card */
.card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.card-auto-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  cursor: pointer;
}

.card-bingo-btn {
  flex: 1 1 auto;
  border: none;
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-align: center;
  color: #06202a;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  cursor: default;
  transition: transform .15s ease;
}

.card-bingo-btn:not(.is-auto) {
  color: #2a1d00;
  background: linear-gradient(135deg, #ffd666, #f0c14b);
  cursor: pointer;
}

.card-bingo-btn:not(.is-auto):active { transform: scale(0.97); }

/* A card on AUTO shows no tap affordance on its own numbers; a manual card does */
.my-card .pc-cell { cursor: default; }

.my-card:not(.is-auto) .pc-cell:not(.free) { cursor: pointer; }

/* Keep the 1-75 board and the drawn number visible while scrolling cards */
.game-main { align-items: flex-start; overflow: visible; }

.left-sticky { position: sticky; top: 6px; }

.ball-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 4px 0 8px;
  border-radius: 0 0 14px 14px;
}


@media (max-height: 720px) {
  .list-num { height: 21px; font-size: 11px; }
  .list-header span { padding: 2px 0; }
  .promo-text { display: none; }
  .cards-count { font-size: 18px; }
  .cards-icon { width: 30px; height: 30px; padding: 3px; gap: 1.5px; }
  .refresh-big { padding: 8px; }
  .current-ball { width: 68px; height: 68px; font-size: 22px; }
}
/* Bonus ticker: text keeps sliding in from the left */
.promo-marquee {
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.promo-track { display: inline-flex; width: max-content; animation: promoSlide 18s linear infinite; }

.promo-item { flex: none; padding-right: 36px; }

@keyframes promoSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.promo-top { width: 132px; flex: none; padding: 6px 0; font-size: 11px; }


@media (max-height: 720px) {
  .promo-marquee { display: block; }
}
/* Winning line: uniform bright green — no column-colour mix */
.preview-cell.win,
.pc-cell.win {
  position: relative;
  z-index: 2;
  color: #fff !important;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  background: #22c55e !important;
  border: 1px solid #16a34a !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.65), inset 0 1px 0 rgba(255,255,255,0.35);
  animation: winPulse 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.08s);
}

@keyframes winPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(34, 197, 94, 0.65), inset 0 1px 0 rgba(255,255,255,0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 18px rgba(34, 197, 94, 0.9), inset 0 1px 0 rgba(255,255,255,0.45); }
}

[data-theme="light"] .preview-cell.win,
[data-theme="light"] .pc-cell.win {
  color: #fff !important;
  background: #16a34a !important;
  border-color: #15803d !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}


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