/* Shared highlighted-digit presentation. The generated digit and its position
   stay untouched; the underline also identifies it without relying on colour. */
.is-source-practice .source-practice-visual .highlight-number,
.place-value-practice-page .place-question-visual .highlight-number {
  display: inline-block;
  max-width: 100%;
  padding: 8px 6px 12px;
  color: #212121;
  font-size: clamp(34px, 6vmin, 64px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.is-source-practice .source-practice-visual .highlight-number > mark,
.place-value-practice-page .place-question-visual .highlight-number > mark {
  padding: 0.02em 0.08em;
  background: #212121;
  color: #fffcf0;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.13em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.place-value-practice-page .place-question h2 {
  font-size: clamp(22px, 3.2vmin, 30px);
  line-height: 1.2;
}

/* Keep the practice app's existing large-number scale. */
.place-value-practice-page .place-question-visual .highlight-number {
  font-size: clamp(34px, 6vw, 76px);
}
