@font-face {
  font-family: 'Musai Score';
  src: url('/assets/fonts/barlow-condensed-digits.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* 牌桌、账本和统计的大数字共用选定的 C 字体，标签与牌名保留原字体。 */
.score-card .score-number,
.score-card [data-roll-number],
.ledger-shell .ledger-personal > strong,
.ledger-shell .ledger-completed > strong,
.ledger-shell :is(.member-score,.history-score),
.statistics-shell .statistics-net > strong,
.statistics-shell .stat-metric > strong,
.statistics-shell .round-record strong {
  font-family: 'Musai Score', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.015em;
  font-synthesis: none;
}
/* 三个主成绩数字固定使用确认的复古绿（--accent: #3F6650）。 */
.score-card .score-number,
.ledger-personal > strong,
.statistics-net > strong { color: var(--accent) !important; }
.score-card .score-number [data-number],
.ledger-personal > strong [data-number],
.statistics-net > strong [data-number] { color: inherit !important; }
.score-card [data-roll-number] { display: inline-block; line-height: inherit; }
/* 补偿窄体正号的字面宽度，与 B 方案总分的视觉起点一致。 */
.score-card .score-number > [data-roll-number] { padding-inline-start: .095em; }
.score-card .round-result b { font-size: 21px; }
.score-card .segment-total [data-roll-number] { font-size: 20px; }

.score-roll-viewport {
  display: inline-grid;
  grid-template-columns: minmax(0,1fr);
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  text-align: inherit;
}
.score-roll-row {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  line-height: inherit;
  text-align: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .score-roll-row { animation: none; transition: none; }
}
