.score-sheet-content {
  min-width: 0;
}

.score-sheet-lookup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--cream-300);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(125deg, #fff, var(--cream-100));
  box-shadow: 0 2px 8px rgb(39 50 36 / 12%);
}

.score-sheet-lookup h2,
.score-sheet-results-heading h2,
.score-sheet-empty h3 {
  margin: 0;
  color: var(--green-950);
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
}

.score-sheet-lookup-copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
}

.score-sheet-form label,
.score-sheet-form small {
  display: block;
}

.score-sheet-form label {
  margin-bottom: 7px;
  color: var(--green-950);
  font-size: 0.84rem;
  font-weight: 800;
}

.score-sheet-form small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.score-sheet-input-row {
  display: flex;
  gap: 9px;
}

.score-sheet-input-row input,
.score-sheet-input-row button {
  min-height: 44px;
  border-radius: 7px;
  font: inherit;
}

.score-sheet-input-row input {
  width: 8.7rem;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--cream-400);
  color: var(--green-950);
  background: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

.score-sheet-input-row input:focus,
.score-sheet-input-row button:focus-visible {
  outline: 3px solid rgb(221 163 0 / 32%);
  outline-offset: 2px;
}

.score-sheet-input-row button {
  padding: 9px 15px;
  border: 1px solid var(--green-800);
  color: #fff;
  background: linear-gradient(135deg, #168048, var(--green-800));
  cursor: pointer;
  font-weight: 800;
}

.score-sheet-input-row button:hover {
  background: linear-gradient(135deg, #1a8950, var(--green-700));
  transform: translateY(-1px);
}

.score-sheet-results {
  min-width: 0;
  margin-top: 24px;
}

.score-sheet-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.score-sheet-results-heading h2 span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.score-sheet-results-heading > strong {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid var(--cream-300);
  border-radius: 999px;
  color: var(--green-800);
  background: var(--cream-100);
  font-size: 0.82rem;
}

.score-sheet-table .score-sheet-rank-column {
  width: 72px;
}

.score-sheet-table .score-sheet-player-column {
  width: 58%;
  text-align: left;
}

.score-sheet-table td.is-player {
  min-width: 145px;
}

.score-sheet-table tbody tr.is-podium {
  background: linear-gradient(90deg, rgb(240 194 65 / 12%), rgb(255 253 248 / 92%));
}

.score-sheet-rank-medal {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(170 120 0 / 46%);
  border-radius: 50%;
  color: #664800;
  background: linear-gradient(145deg, #fff5b8, var(--gold-light));
  box-shadow: 0 2px 5px rgb(85 61 8 / 17%);
  font-weight: 900;
}

.score-sheet-table .is-positive {
  color: var(--green-800);
  font-weight: 800;
}

.score-sheet-table .is-negative {
  color: var(--red);
  font-weight: 800;
}

.score-sheet-table .is-neutral {
  color: var(--muted);
  font-weight: 750;
}

.score-sheet-empty {
  padding: 26px;
  border: 1px solid var(--cream-300);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  background: var(--cream-100);
}

.score-sheet-empty p {
  margin: 7px 0 0;
}

@media (max-width: 760px) {
  .score-sheet-lookup {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .score-sheet-input-row input,
  .score-sheet-input-row button {
    min-height: 46px;
  }

  .score-sheet-results-heading {
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .score-sheet-input-row {
    flex-direction: column;
  }

  .score-sheet-input-row input,
  .score-sheet-input-row button {
    width: 100%;
  }

  .score-sheet-results-heading {
    flex-direction: column;
    gap: 9px;
  }

  .score-sheet-table th,
  .score-sheet-table td {
    padding-right: 8px;
    padding-left: 8px;
  }
}
