/* Keep the complete equation above its labels and sound control on narrow screens. */
@media (max-width: 640px) {
  body.s2-body .fx-draw-main > .fx-number-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr) max-content) minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 8px 3px;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  body.s2-body .fx-draw-main > .fx-number-line > b {
    width: min(58px, 100%) !important;
    min-width: 0;
    height: auto !important;
    aspect-ratio: 1;
    font-size: clamp(26px, 8vw, 36px) !important;
  }
  body.s2-body .fx-draw-main > .fx-number-line > .fx-result-chips {
    grid-column: 1 / 7;
    justify-self: end;
    margin: 0;
  }
  body.s2-body .fx-draw-main > .fx-number-line > .fx-result-chips > i { display: inline-flex; }
  body.s2-body .fx-draw-main > .fx-number-line > .c28-draw-chime-toggle {
    grid-column: 7;
    justify-self: center;
    margin-inline-start: 0 !important;
  }
}
