body {
  margin: 0;
  padding: 24px;
  background: #0f1620;
  color: #e8eef6;
  font-family: system-ui, sans-serif;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
}

.hidden {
  display: none;
}

/* Name screen */

#menu input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #33465c;
  border-radius: 6px;
  background: #1b2430;
  color: #e8eef6;
}

#menu button {
  padding: 10px 20px;
  font-size: 16px;
  border: 0;
  border-radius: 6px;
  background: #4363d8;
  color: #ffffff;
  cursor: pointer;
}

#menu button:hover {
  background: #5578f0;
}

/* Our own two buttons */

#controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

#my-name {
  font-weight: bold;
  font-size: 18px;
}

#my-score {
  font-size: 24px;
  font-weight: bold;
  min-width: 50px;
}

.score-button {
  width: 56px;
  height: 56px;
  font-size: 22px;
  font-weight: bold;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
}

.score-button.plus {
  background: #3cb44b;
}

.score-button.plus:hover {
  background: #4ad05b;
}

.score-button.minus {
  background: #e6194b;
}

.score-button.minus:hover {
  background: #f83a68;
}

.score-button:active {
  transform: scale(0.94);
}

/* The bar chart */

#chart {
  max-width: 640px;
  margin: 0 auto;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.row-name {
  width: 90px;
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row.mine .row-name,
.row.mine .row-score {
  font-weight: bold;
}

/* The full-width lane a bar sits in. */
.track {
  position: relative;
  flex: 1;
  height: 26px;
  background: #1b2430;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  /* This is what makes the bars slide instead of jumping. */
  transition: width 0.25s ease, left 0.25s ease;
}

/* The zero line, only shown when someone has a negative score. */
.axis {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: #556b82;
}

.row-score {
  width: 34px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.hint {
  font-size: 13px;
  color: #8fa3b8;
  margin-top: 24px;
}
