/* ==========================================================================
   Velo Cards — builds on common.css tokens
   ========================================================================== */
:root {
  --card-face: #f3f1e8;
  --card-ink: #14130f;
}

body { padding-bottom: 190px; } /* leaves room for the fixed control panel */

.board-wrap { max-width: 760px; margin: 0 auto; padding: 6px 14px 6px; }
.board-title { text-align: center; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px;
}
.card-slot {
  position: relative;
  aspect-ratio: 5 / 7;
  background: var(--card-face);
  border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease;
}
.card-slot:active { transform: scale(0.95); }
.card-slot .rank { font-size: 22px; font-weight: 800; color: var(--card-ink); line-height: 1; }
.card-slot .suit-row { display: flex; gap: 2px; margin-top: 4px; font-size: 10px; color: #a63a3a; opacity: 0.55; }
.card-slot.has-bet { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,0.28), 0 4px 14px rgba(0,0,0,0.5); }
.card-slot .bet-chip-tag {
  position: absolute; bottom: -8px; right: -6px;
  background: var(--gold-bright); color: #1a0d05; font-weight: 800; font-size: 11px;
  padding: 3px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 2px solid #170a1c;
}
.card-slot.flash-in { animation: flashLose 0.9s ease; }
.card-slot.flash-out { animation: flashWin 0.9s ease; }
@keyframes flashWin { 0% { box-shadow: 0 0 0 0 rgba(79,174,124,0.9); } 50% { box-shadow: 0 0 0 10px rgba(79,174,124,0); } 100% { box-shadow: 0 0 0 0 rgba(79,174,124,0); } }
@keyframes flashLose { 0% { box-shadow: 0 0 0 0 rgba(192,82,63,0.9); } 50% { box-shadow: 0 0 0 10px rgba(192,82,63,0); } 100% { box-shadow: 0 0 0 0 rgba(192,82,63,0); } }

.reveal-strip {
  max-width: 760px; margin: 18px auto 0; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(212,175,55,0.18);
  border-radius: 12px; display: none; align-items: center; justify-content: center; gap: 26px;
}
.reveal-strip.show { display: flex; }
.reveal-item { text-align: center; }
.reveal-label { font-size: 10px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 6px; }
.reveal-card { width: 44px; height: 60px; background: var(--card-face); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: var(--card-ink); margin: 0 auto; }
.reveal-item.out .reveal-card { box-shadow: 0 0 0 2px var(--win); }
.reveal-item.in .reveal-card { box-shadow: 0 0 0 2px var(--danger); }

/* History mini cards (Velo-specific: shows the In/Out pair per round) */
.history-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.history-cards { display: flex; gap: 6px; flex-shrink: 0; }
.mini-card { width: 30px; height: 40px; border-radius: 5px; background: var(--card-face); color: var(--card-ink); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.mini-card.out-c { box-shadow: 0 0 0 2px var(--win); }
.mini-card.in-c { box-shadow: 0 0 0 2px var(--danger); }
.history-meta { flex: 1; min-width: 0; }
.history-time { font-size: 10.5px; color: var(--muted); }
.history-outcome { font-size: 12px; margin-top: 2px; color: var(--ivory); }

@media (max-width: 480px) {
  body { padding-bottom: 172px; }
  .card-slot .rank { font-size: 18px; }
}
