body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
}

#scoreboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Each scoreboard */
.scoreboard {
  flex: 1 1 260px; /* Minimum width of 260px, grow to fit */
  max-width: 300px;
  background: white;
  border: 2px solid #444;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

/* Style for dropdown */
.scoreboard select {
  font-size: 16px;
  margin-bottom: 10px;
  padding: 5px;
  width: 100%;
}

/* Headings and labels */
.scoreboard h2 {
  margin: 10px 0;
  font-size: 20px;
}

.rink-label {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.teams {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 10px 0;
  padding: 0 10px;
  border-bottom: 1px solid #ddd;
}

.scores, .ends {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 15px 0;
}

.label {
  font-size: 14px;
  color: #666;
}

.value {
  font-size: 28px;
  font-weight: bold;
}

.section-title {
  font-weight: bold;
  margin: 10px 0 0;
  font-size: 18px;
}

#aggregate-scoreboard {
  max-width: 300px;
  margin: 1rem auto;
  padding: 1rem;
  background: #f7f7f7;
  border: 2px solid #ccc;
  border-radius: 12px;
  font-family: sans-serif;
  text-align: center;
}

.aggregate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.label-agg {
  font-weight: bold;
  font-size: 1rem;
}

.value-red {
  font-size: 1.2rem;
  color: #d00;
}

.value-green {
  font-size: 1.2rem;
  color: #090;
}

.section-title-agg {
  margin-top: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 1px;
  text-align: center;
}

.highlight {
  background-color: yellow;
  transition: background-color 1s ease;
}

.highlight.fade {
  background-color: transparent;
}

