/* Phone reading refinements. Keep the established type sizes, logos and
   disclosures; desktop and tablet layouts continue to use their own rules. */
@media (max-width: 767px) {
  main :is(h1, h2, h3, h4),
  main .quiz-question-title,
  main .quiz-option-label {
    min-width: 0;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
  }

  /* Retain deliberate sentence-boundary breaks. Avoid balancing an entire
     Chinese sentence at the expense of its phrases. */
  body[data-page=home] .neutral-hero-title,
  body:is([data-page=strategy], [data-page=pocket]) .content-hero h1 {
    text-wrap: pretty;
  }

  /* A marked phrase moves as a unit while it fits. Very narrow displays can
     still wrap within an unusually long phrase, rather than clipping it. */
  main .mobile-phrase,
  body:is([data-page=strategy], [data-page=pocket]) .content-hero h1 .hero-title-part {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    vertical-align: baseline;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
  }

  main :is(.lead, .quiz-option-label) {
    text-wrap: pretty;
  }

  main :is(.btn, .tab) {
    line-break: strict;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  .activity-next-card .activity-step-icon {
    grid-row: 1;
  }

  .activity-next-card > p,
  .activity-next-card > .btn,
  .activity-next-card .activity-rules-link {
    grid-column: 1 / -1;
  }

  .activity-book-prize {
    column-gap: 12px;
  }

  .activity-points-number {
    flex: none;
    white-space: nowrap;
  }
}
