body {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #d0d0d0;
  margin: 0;
  padding: 20px;
}

#setupScreen {
  background: #eee;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  width: fit-content;
}

#board {
  padding: 20px;
  display: none;
  grid-template-columns: repeat(11, 40px);
  grid-template-rows: repeat(11, 40px);
  gap: 4px;
  margin-bottom: 16px;
}

.cell {
  border-radius: 42%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.field { background: #ffffff; outline: 1.5px solid black; }
.home { background: #ddd; outline: 1.5px solid black; }
.finish { background: #bbb; }

/* player colours */
.b  { background: #3b7cff !important; }
.gr { background: #2ebe2e !important; }
.r  { background: #ff3d3d !important; }
.g  { background: #ffd83b !important; }

.pawn {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: #000;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.highlight-pawn { outline: 3px solid #000000; }
.highlight-cell { outline: 3.5px dashed #000000; outline-offset: -2px;}

#diceImage {
  width: 50px; 
  cursor: pointer; 
  display: none;
  margin: 20px;
  border-radius: 6px;
  user-select: none;
}

#restartButton {
  position: fixed;
  top: 42px;
  right: 42px;
  padding: 6px 10px;
  color: white;
  background-color: #202020;
  font-size: 16px;
  font-weight: bold;
  border: 3px solid #000;
  border-radius: 6px;
  display: none;
}

#restartButton:hover {
  background-color: red;
}

#diceImage:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

#diceResult {
  display: none;
  font-weight: bold;
}

option:disabled {
  color: #888;
}

