/* A real phone uses the browser viewport, not the desktop device mockup. */
@media (max-width: 599px) {
  html {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--bg);
  }

  body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--bg);
  }

  #app.phone {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  #app > .top {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  #app .statusbar,
  #app .home-indicator {
    display: none;
  }

  #app > #main {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #app:has(.home-content) > #main {
    overflow: hidden;
  }

  #app > .dock {
    max-width: none;
    border-radius: 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  #app .boxes-grid {
    overscroll-behavior-y: contain;
  }

  #app .home-content {
    padding-top: 12px;
  }

  #app .player-banner {
    flex-shrink: 0;
    height: 96px;
    padding: 10px 14px;
    margin-bottom: 12px;
  }

  #app .player-banner h2 {
    font-size: 19px;
    line-height: 21px;
    margin: 3px 0 4px;
  }

  #app .player-banner img {
    width: 130px;
    height: 96px;
  }

  #app .promos {
    margin: 8px 0;
  }

  #app .promos button {
    height: 64px;
  }

  #app .promos img,
  #app .promo-community {
    width: 42px;
    height: 42px;
  }

  #app .player-ticker {
    flex-shrink: 0;
    padding: 8px 10px;
    margin: 6px 0 10px;
  }
}
