.score-sheet, .score-empty {
  color: #18332d;
  background: #faf4e4;
  border: 1px solid #c5bba7;
  border-top: 3px double #18332d;
  padding: clamp(14px, 3vw, 24px);
  font-variant-numeric: tabular-nums;
}

.score-identity {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #c5bba7;
}

.score-identity strong {
  overflow-wrap: anywhere;
}

.score-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px 16px;
}

.score-label, .score-facts dt {
  color: #536055;
  font-size: .875rem;
  font-weight: 650;
}

.score-main > .score-label, .score-goal > .score-label {
  display: block;
  margin-bottom: 4px;
}

.score-amount {
  font: 800 clamp(2.25rem, 5vw, 3.35rem)/1 Georgia, "Batang", serif;
  letter-spacing: -.05em;
}

.score-maximum {
  color: #536055;
  font-size: .95rem;
  white-space: nowrap;
}

.score-goal {
  text-align: right;
}

.score-stamp {
  flex: none;
  border: 3px double currentColor;
  border-radius: 3px;
  color: #a1392c;
  padding: 5px 12px;
  text-align: center;
  transform: rotate(-4deg);
}

.score-stamp span, .score-stamp strong {
  display: block;
}

.score-stamp span {
  font-size: .8rem;
}

.score-stamp strong {
  font: 800 1.35rem/1.35 "Nanum Myeongjo", "Batang", Georgia, serif;
}

.subject-scores {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.subject-scores th, .subject-scores td {
  padding: 7px 6px;
  border-bottom: 1px solid #c5bba7;
  text-align: right;
}

.subject-scores th:first-child { text-align: left; }
.subject-scores tbody th { font-weight: 550; }
.subject-scores tbody td:last-child { font-weight: 800; }
.subject-scores thead th { background: #e9e4d2; border-top: 1px solid #72796b; }
.subject-scores tbody tr:last-child > * { border-bottom: 1px solid #72796b; }

.score-facts {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #c5bba7;
}

.subject-scores + .score-facts { border: none; }
.score-facts + .score-facts { margin-top: 10px; }
.score-facts > div { padding-inline: 8px; border-left: 1px solid #c5bba7; }
.score-facts > div:first-child { padding-left: 0; border-left: none; }
.score-facts dt { word-break: keep-all; }
.score-facts dd { margin: 3px 0 0; font-size: 1rem; font-weight: 800; }
.score-empty strong { font: 800 1.25rem/1.5 "Nanum Myeongjo", "Batang", Georgia, serif; }
dialog .score-empty p { color: #536055; margin: 7px 0 0; }

dialog .ranking-personal {
  margin: .75rem 0;
  padding: .65rem .8rem;
  border-inline-start: 3px solid var(--sheet-ink);
  background: #e8ecdd;
  font-weight: 750;
}
.ranking-list {
  max-block-size: 42dvh;
  overflow: auto;
  overscroll-behavior: contain;
  border-block: 1px solid var(--sheet-rule);
}
.ranking-table { width: 100%; border-spacing: 0; font-variant-numeric: tabular-nums; }
.ranking-table th, .ranking-table td { padding: .6rem; text-align: start; }
.ranking-table thead th { position: sticky; top: 0; background: #e9e4d2; font-size: .875rem; }
.ranking-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.ranking-table tbody tr + tr > * { border-top: 1px solid var(--sheet-rule); }
.ranking-table td { white-space: nowrap; }
.ranking-table tr > :last-child { text-align: end; font-weight: 750; }
.ranking-table .ranking-mine { background: #e8ecdd; }
