@media (max-width: 700px) {
  body {
    padding: 14px;
  }

  .setting-row {
    align-items: flex-start;
  }

  .lb-rank {
    width: 54px;
    margin-right: 8px;
  }

  .board-score-line {
    font-size: 18px;
  }

  .lb-row-container {
    padding: 4px;
    gap: 4px;
  }
  .lb-score-tile {
    min-width: 40px;
    padding: 0 6px;
    font-size: 14px;
  }
  .lb-initial-tile {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  /* The board viewer owns scrolling so saved word rows are always reachable. */
  #best-board-modal {
    position: fixed;
    inset: 10px 8px;
    max-height: calc(100dvh - 20px);
    padding-bottom: max(120px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #best-board-modal .score-breakdown-list {
    flex: none;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
}
