/* LOT5 mobile hardening: fit Match inside the viewport, never mask horizontal overflow. */
.urw-page-match,
.urw-page-match .urw-functional-shell,
.urw-page-match .urw-functional-main,
.urw-page-match .urw-match-main,
.urw-page-match #matchEditorRoot,
.urw-page-match #matchHistorySection,
.urw-page-match #matchHistoryRoot,
.urw-page-match #urwMatchActionRootV116W,
.urw-page-match .matchSection,
.urw-page-match .matchContent,
.urw-page-match .matchSubBlock,
.urw-page-match .matchScoreBlockV7218,
.urw-page-match .matchOverviewV728,
.urw-page-match .matchOverviewGroupV728,
.urw-page-match .matchOverviewGridV728,
.urw-page-match .matchCardV728 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.urw-page-match #matchEditorRoot *,
.urw-page-match #urwMatchActionRootV116W * {
  box-sizing: border-box;
  min-width: 0;
}

@media (max-width: 640px) {
  .urw-page-match .quickScoreBtnsV7212 {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .urw-page-match .quickScoreBtnsV7212 > button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    line-height: 1.15 !important;
  }
  .urw-page-match .scoreBoxRow,
  .urw-page-match .matchScoreRow {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 360px) {
  .urw-page-match .quickScoreBtnsV7212 {
    grid-template-columns: 1fr !important;
  }
}
