body {
  font-family: Arial, sans-serif;
  background: #1a1a1a;
  color: #eee;
  text-align: center;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 80px);
  grid-template-rows: repeat(3, 120px);
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.card {
  background: #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.card.revealed {
  background: #fff;
  color: #111;
}

.controls {
  margin-top: 20px;
}

.player-zone {
  margin-bottom: 30px;
}

#end-message {
  margin-top: 30px;
  font-size: 1.4em;
  color: lightgreen;
}

.horizontal-layout {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.player-zone {
  text-align: center;
}

.drawn-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.display-card {
  width: 80px;
  height: 120px;
  font-size: 24px;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

button:disabled {
  background-color: #777;
  color: #ccc;
  cursor: not-allowed;
}

.card.transfer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 20px solid orange;
  border-left: 20px solid transparent;
  z-index: 1;
}

#help-button {
  font-size: 18px;
  cursor: pointer;
}

#help-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#help-content {
  background: #fff;
  color: #000;
  padding: 20px;
  max-width: 400px;
  border-radius: 8px;
  text-align: left;
}
