body {
  font-family: sans-serif;
  background: #f8f8f8;
  text-align: center;
  padding: 20px;
  color: #333;
}

h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

#gameBoard {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#playerPiles {
  display: flex;
  gap: 10px;
  margin: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cardSlot {
  width: 60px;
  height: 90px;
  border: 2px solid #aaa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.cardSlot:hover {
  transform: scale(1.05);
}

.cardSlot.back {
  background: #444;
  color: #ccc;
}

.cardSlot.empty {
  background: #eee;
  color: #999;
}

.cardSlot.card {
  background: #fefefe;
  font-weight: bold;
}

.card.discard {
  margin-top: 10px;
  width: 60px;
  height: 90px;
  border: 2px dashed #c00;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffecec;
  font-size: 18px;
}

#discardArea {
  margin-top: 20px;
  text-align: center;
}

#controls {
  margin-top: 20px;
}

button {
  margin: 5px;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #444;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background-color: #666;
}

.message {
  margin-top: 15px;
  font-weight: bold;
  color: #c00;
}

.turn-message {
  font-size: 18px;
  margin-bottom: 10px;
  color: #007b00;
}

/* Responsive for mobile */
@media screen and (max-width: 600px) {
  #playerPiles {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cardSlot,
  .card.discard {
    width: 50px;
    height: 75px;
    font-size: 16px;
  }

  button {
    font-size: 12px;
    padding: 8px 12px;
  }
}
