body {
  font-family: Arial, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

#player-title {
  text-align: center;
  margin-bottom: 20px;
}

#play_area {
  max-height: 325px;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  background: #f8f8f8;
  text-align: center;
  overflow-y: auto;
}

#round-info {
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 18px;
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.move-row {
  padding: 10px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid #ddd;
  text-align: left;
}

#out {
  margin-top: 20px;
  margin-bottom: 20px;
  display: grid;
  gap: 14px;
}

.hand {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.hand-title {
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 60px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 18px;
  user-select: none;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}

.card.red {
  color: #c00;
}

.card.selected {
  outline: 3px solid #2b7cff;
  transform: translateY(-2px);
}

#knappar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #2b7cff;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}