#scorecard {
  position: absolute;
  top: 275px;
  left: 20px;
  width: 160px;
  font-family: 'Patrick Hand', cursive;
  background: rgb(63, 147, 2); /*linear-gradient(135deg, #fdd835, #ff7043);*/
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: #373333;
}

.score-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-weight: bold;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 6px;
}

.score-cell {
  text-align: center;
  padding: 4px;
  background-color: rgb(195, 245, 179);
  border-radius: 6px;
}

#hole-result-modal .modal-content {
  background-color: #f4dac3;
  border: 4px #2e7d32 solid;
  font-family: 'Shrikhand', cursive;
  color: #2e7d32;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  margin-top: 12px;
}
.summary-grid div {
  padding: 4px 8px;
  border-bottom: 1px solid #ccc;
}
.summary-total {
  margin-top: 16px;
  font-weight: bold;
}
.score-cell.green {
  background-color: #4CAF50;
  color: white;
}
.score-cell.yellow {
  background-color: #FFEB3B;
  color: black;
}
.score-cell.red {
  background-color: #F44336;
  color: white;
}