body {
  background: #222;
  display: flex;
  justify-content: center;
  padding: 20px;
}

#status {
  color: #4ee;
  font-size: 1.2em;
  margin-bottom: 10px;
  width: 200px;
  text-align: center;
}

#board {
  display: grid;
  grid-template-columns: repeat(16, 40px); 
  grid-template-rows: repeat(10, 40px);
  border: 2px solid #bbb;
  background: #888;
}

.cell {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.hand-tile.selected {
  outline: 3px solid gold;
}

.cell,
.hand-tile {
  touch-action: manipulation;
  user-select: none;
}

#game {
  display: flex;
  gap: 20px;
}

#han__d {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #333;
}

#hand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.hand-tile {
  width: 40px;
  height: 40px;
  border: 2px solid #aaa;
  background-size: cover;
  cursor: grab;
}

#scoreboard {
  display: flex;
  justify-content: space-between;
  width: 320px;
  /* gleiche Breite wie Board */
  margin-bottom: 8px;
  font-weight: bold;
  color: white;
}

#player1-score {
  text-align: left;
  color: white;
}

#scoreboard div {
  width: 400px;
  height: 200px;
  padding: 4px 8px;
  font-size: 24px;
  color: burlywood;
}

.active {
  background: #ffd;
}