.card {
  width: 60px;
  height: 90px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* carta virada para baixo */
.card.back {
  background-image: url("../assets/cards/BACK.png");
}
/* ============================= */
/* Jogos baixados na mesa        */
/* ============================= */

.grupo-table {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* =========================
   ANIMAÇÕES “LEVE CASINO”
========================= */

.card { will-change: transform, opacity; }

.card.selected { outline: 2px solid #ffd400; }

/* carta “voadora” (clone) */
.flying-card{
  position: fixed;
  width: 60px;
  height: 90px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  transform: translate3d(0,0,0) scale(1);
  transition: transform 280ms ease, opacity 280ms ease;
  opacity: 1;
}

/* quando terminar */
.flying-card.done{
  opacity: 0;
  transform: translate3d(var(--dx), var(--dy), 0) scale(.95);
}

/* micro animações suaves */
.pop-in{
  animation: popIn 180ms ease;
}
@keyframes popIn{
  from{ transform: translateY(6px) scale(.98); opacity: .5; }
  to  { transform: translateY(0)  scale(1);   opacity: 1; }
}



/* Botão sala de mesas*/
.tables-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.tables-tab {
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.tables-tab:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
}

.tables-tab.active {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.30);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.tables-crazy-mode .tables-tab.active {
  box-shadow: 0 0 12px rgba(255, 120, 0, 0.30);
}

@media (max-width: 768px) {
  .tables-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tables-tab {
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
  }
}

.tables-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.tables-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
