.player-cards {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.player-actions {
  position: absolute;
  left: calc(50% + 70px);
  bottom: 120px;
  transform: translateX(0);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 301;
}

.position-label.player-label {
  left: 50% !important;
  bottom: 60px !important;
  top: unset !important;
  transform: translateX(-50%);
  z-index: 350;
}
#feedbackOverlay {
  pointer-events: none;
}
#feedbackOverlay[style*="display: flex"] {
  pointer-events: auto;
}
/* --- Holdem Trainer Custom Styles --- */
.player-cards {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.player-actions {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  z-index: 301;
}

/* Feedback Overlay Styles (closer to bottom) */
#feedbackOverlay {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 40vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 2.5rem;
}
#feedbackBox {
  background: #222;
  padding: 2rem 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #000a;
  text-align: center;
  max-width: 90vw;
}
#feedbackTitle {
  color: #fff;
  margin-bottom: 1.2rem;
}
#rangeImageContainer img {
  max-width: 320px;
  width: 100%;
  border-radius: 0.7rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 16px #0006;
}
.home-table-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 560px;
  border-radius: 38% / 50%;
  background: radial-gradient(ellipse at 50% 60%, #2e8b57 70%, #14532d 100%);
  box-shadow: 0 0 40px #0006;
  z-index: 1;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
}
.table-container {
  position: relative;
  width: 380px;
  height: 600px;
  margin: 2rem 0;
}
.table {
  width: 100%;
  height: 100%;
  border-radius: 38% / 50%;
  background: radial-gradient(ellipse at 50% 60%, #2e8b57 70%, #14532d 100%);
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
}
.seat {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 3px solid transparent;
  transition: border 0.2s;
  z-index: 1;
  overflow: hidden;
}
.position-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #1976d2;
  color: #fff;
  border-radius: 16px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  z-index: 10;
  padding: 0 18px;
  height: 32px;
  top: unset;
}
.seat.player {
  background: #1976d2;
  border-color: #fff;
  font-weight: bold;
}
.seat.dealer {
  border-color: #ffd600;
  box-shadow: 0 0 12px 2px #ffd60099;
}
.dealer-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd600;
  color: #222;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px #0003;
  z-index: 200;
}
.chip {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #ff2d2d 70%, #b71c1c 100%);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px #0005;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}
@media (max-width: 700px) {
  .table-container {
    width: 98vw;
    height: 140vw;
    max-width: 340px;
    max-height: 500px;
  }
  .seat {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }
  .action-btn {
    width: 48px;
    height: 22px;
    font-size: 0.7rem;
  }
}

/* Feedback Overlay Styles */
#feedbackOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#feedbackBox {
  background: #222;
  padding: 2rem 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px #000a;
  text-align: center;
  max-width: 90vw;
}
#feedbackTitle {
  color: #fff;
  margin-bottom: 1.2rem;
}
#rangeImageContainer img {
  max-width: 320px;
  width: 100%;
  border-radius: 0.7rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 16px #0006;
}
