/* Small-screen bounds for the shared shell and the four newer games. */
@media (max-width: 760px) {
  .public-shell .games-list {
    max-height: min(520px, calc(100dvh - 195px));
    overflow: auto;
    overscroll-behavior: contain;
  }

  body[data-game] dialog {
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  body[data-game="price-check"] .product-body {
    min-width: 0;
  }

  body:is([data-game="price-check"], [data-game="basket-case"], [data-game="payday"], [data-game="around-the-world"]) .product-body h2 {
    overflow-wrap: anywhere;
  }

  body[data-game="price-check"] .reveal-values {
    flex-wrap: wrap;
  }

  body[data-game="price-check"] .reveal-values > div {
    min-width: 0;
    max-width: 100%;
  }

  body[data-game="price-check"] .reveal-values dd,
  body[data-game="price-check"] .sources a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 450px) {
  .public-shell .header-nav button {
    min-height: 44px;
  }

  footer.public-shell {
    font-size: 12px;
    line-height: 1.6;
  }
}
