/* Card styles */
.card {
  position: relative;
  width: 120px;
  height: 180px;
  perspective: 1000px;
  transition: all 0.3s;
}

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

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.card-front {
  background-color: white;
  color: black;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.card-back {
  background: linear-gradient(45deg, #3182ce, #2c5282);
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-value {
  font-size: 24px;
  font-weight: bold;
}

.card-suit {
  font-size: 48px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.suit-hearts, .suit-diamonds {
  color: #e53e3e;
}

.suit-clubs, .suit-spades {
  color: #2d3748;
}

/* Animation for dealing cards */
@keyframes deal {
  0% {
    transform: translateY(-200px) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}

.dealing {
  animation: deal 0.5s ease-out forwards;
}

/* Casino table background */
.casino-table {
  background: linear-gradient(to bottom, #10472e, #105c37);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

/* Button styles */
.casino-btn {
  transition: all 0.2s;
}

.casino-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.casino-btn:active {
  transform: translateY(0);
}

/* Chip styles */
.chip {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border: 4px dashed white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Leaderboard styles */
.leaderboard-row:nth-child(1) {
  background-color: rgba(255, 215, 0, 0.2);
}

.leaderboard-row:nth-child(2) {
  background-color: rgba(192, 192, 192, 0.2);
}

.leaderboard-row:nth-child(3) {
  background-color: rgba(205, 127, 50, 0.2);
}

/* Coupon popup animation */
@keyframes bounce-once {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-once {
  animation: bounce-once 1s ease-in-out 1;
}