@media (max-width: 760px) {
  .home-layout-desktop {
    display: none;
  }

  main.home {
    display: block;
    min-height: 100svh;
    padding: 72px 12px calc(158px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  main.home .messages {
    min-height: calc(100svh - 250px - env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0 0 18px;
  }

  main.home:has(.account-recent-games:not([hidden])) .messages {
    min-height: 250px;
    align-items: end;
  }

  main.home .home-layout-mobile {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .home-layout-mobile h1 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
  }

  main.home .home-layout-mobile .connect-games-button {
    position: static;
    transform: none;
    margin: 0;
  }

  main.home .home-layout-mobile .suggestions,
  main.home .home-layout-mobile:not(:has(.connect-games-button[hidden])) .suggestions {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    max-width: 330px;
  }

  main.home .home-layout-mobile .suggestions button {
    font-size: 12px;
    padding: 8px 11px;
  }

  main.home .account-recent-games {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: calc(100svh - 260px - env(safe-area-inset-bottom, 0px));
    margin: 0;
    z-index: 1;
  }

  main.home .account-recent-head {
    align-items: flex-start;
  }

  main.home .account-recent-filters {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  main.home .account-filter-menu summary {
    max-width: 168px;
  }

  main.home .account-filter-menu-list {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(144px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-height: min(320px, calc(100svh - 210px));
    overflow: auto;
  }

  main.home .account-recent-scroll {
    padding-bottom: 5px;
  }

  main.home .account-recent-game {
    flex-basis: 172px;
  }

  main.home .account-recent-pointer {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin-bottom: 6px;
  }

  main.home .account-recent-pointer::after {
    display: none;
  }

  main.home .composer {
    position: fixed;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    transform: none;
    padding: 10px 10px 14px;
    border-top: 0;
    background: transparent;
  }
}
