/* Andar Bahar - two-side table */
.ab-arena { align-items: center; gap: 12px; }

.ab-joker-row { display: flex; align-items: center; gap: 12px; }
.ab-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #ffd400;
}
.ab-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 14vw, 78px);
  height: clamp(78px, 19vw, 104px);
  border-radius: 9px;
  background: linear-gradient(160deg, #fdfdf5, #dfe4d8);
  color: #14141c;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 900;
  border: 2px solid rgba(255, 212, 0, 0.65);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.ab-card.joker { font-size: clamp(30px, 7vw, 40px); }
.ab-card.flip { animation: ab-flip 0.35s ease; }
@keyframes ab-flip {
  from { transform: rotateY(90deg) scale(0.85); }
  to { transform: none; }
}

.ab-table {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  width: min(560px, 96%);
}
.ab-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 110px;
}
.ab-side.win { border-color: #ffd400; box-shadow: 0 0 18px rgba(255, 212, 0, 0.4); background: rgba(255, 212, 0, 0.08); }
.ab-name { font-weight: 900; letter-spacing: 1.6px; font-size: 0.82rem; color: #2fd99a; }
.ab-side:last-child .ab-name { color: #ffd400; }
.ab-pile {
  min-width: 64px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 900;
  color: #f5f6fa;
}
.ab-count { font-size: 0.68rem; color: var(--casino-muted, #9aa0b8); font-weight: 700; }
.ab-vs { font-weight: 900; color: #ff5c7a; letter-spacing: 1px; }

.ab-btns { display: flex; gap: 12px; width: min(560px, 96%); }
.ab-bet {
  flex: 1;
  padding: 13px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  color: #06140d;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.ab-bet small { display: block; font-size: 0.64rem; font-weight: 700; opacity: 0.8; }
.ab-bet.andar { background: linear-gradient(180deg, #2fd99a, #0a8f5c); }
.ab-bet.bahar { background: linear-gradient(180deg, #ffd400, #e0a800); }
.ab-bet:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.08); }
.ab-bet:disabled { opacity: 0.5; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
  .ab-card.flip { animation: none; }
}
