/* AERO Games - spelvy for 10 000. */

#t10000-game {
  scroll-margin-top: 16px;
}

#t10000-board {
  display: grid;
  gap: 12px;
}

.t10000-scores {
  display: grid;
  gap: 8px;
}

.t10000-score {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 10px;
}

.t10000-score-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}

.t10000-score progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #8b5cf6;
}

.t10000-current {
  border-color: #8b5cf6;
  background: rgb(139 92 246 / 12%);
}

.t10000-winner {
  border-color: #d4a72c;
  background: rgb(212 167 44 / 12%);
}

.t10000-final {
  padding: 12px;
  border: 1px solid #d4a72c;
  border-radius: 10px;
}

.t10000-controls {
  display: grid;
  gap: 10px;
}

.t10000-controls label {
  display: grid;
  gap: 8px;
}

.t10000-controls input {
  width: 100%;
  box-sizing: border-box;
}

.t10000-dice {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#t10000-game .t10000-die {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: clamp(24px, 6vw, 44px);
  line-height: 1;
}

#t10000-game .t10000-die[aria-pressed="true"] {
  border-color: #8b5cf6;
  background: #7850b5;
  color: #fff;
}

@media (max-width: 420px) {
  .t10000-dice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.t10000-saved-die {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid #8b5cf6;
  border-radius: 10px;
  background: rgb(139 92 246 / 15%);
  font-size: clamp(24px, 6vw, 44px);
}

.t10000-history {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.t10000-history-row {
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.t10000-history-dice {
  font-size: 26px;
  overflow-wrap: anywhere;
}

.t10000-bust {
  padding: 12px;
  border: 1px solid #dc2626;
  border-radius: 10px;
  background: rgb(220 38 38 / 12%);
}

.t10000-bust-text {
  font-weight: bold;
}
