#board {
  position: relative;
  width: 600px;
  height: 600px;
  margin: 0 auto;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: #fafafa;
}

.spot {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  color: black; 
  line-height: 30px;
  font-size: 10px;
  border: 1px solid #ccc;
}

.house {
  background-color: white;
  border: 2px dashed black;
  font-weight: bold;
}

.red { background-color: red; color: white; }
.green { background-color: green; color: white; }
.blue { background-color: blue; color: white; }
.yellow { background-color: yellow; color: black; }

.player-red { background-color: crimson; color: white; }
.player-green { background-color: darkgreen; color: white; }
.player-blue { background-color: royalblue; color: white; }
.player-yellow { background-color: goldenrod; color: black; }

.out-spot { border: 2px solid #000; font-weight: bold; }

.piece {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  transition: all 0.3s ease;
  z-index: 10;
}

.player-info-block {
  display: flex;
  position: absolute;
  min-width: 120px;
  max-width: 200px;
  height: 60px;
  padding: 4px;
  font-size: 12px;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #000;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.player-info-block.active {
  box-shadow: 0 0 12px 4px rgba(255, 255, 0, 0.6); /* soft yellow glow */
}

#player-info-top-left {
  top: 5%;
  left: 5%;
}
#player-info-top-right {
  top: 5%;
  left: 95%;
}
#player-info-bottom-left {
  top: 95%;
  left: 5%;
}
#player-info-bottom-right {
  top: 95%;
  left: 95%;
}

.card-box {
  position: absolute;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px;
  min-width: 290px;
  max-width: 420px;
  min-height: 80px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: bold;
  background-color: #eee;
  border-radius: 8px;
  border: 2px solid #000;
}


#card-box-top-left {
  top: 15%;
  right: 100%;
  display: none;
}

#card-box-top-right {
  top: 15%;
  left: 100%;
  display: none;
}

#card-box-bottom-left {
  top: 70%;
  right: 100%;
  display: none;
}

#card-box-bottom-right {
  top: 70%;
  left: 100%;
  display: none;
}

.card-container {
  width: 50px;
  height: 75px;
  border-radius: 8px;
  border: 1px solid #000;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  color: black;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  perspective: 1000px;
}

.card-value {
  font-size: 20px;
}

.card-suit {
  font-size: 24px;
  margin-top: 4px;
}

.♠️, .♣️ {
  color: black;
}
.♥️, .♦️ {
  color: red;
}

.card-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.card-container.selected {
  box-shadow: 0 0 12px 4px rgba(255, 255, 0, 0.6); /* soft yellow glow */
  transform: scale(1.05);
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  user-select: none;
}

.card * {
  user-select: none;
}

.card-container.flip .card {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.card-front {
  background: white;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
}

.card-back {
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg);
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}