/* Parsisho — /account mobile layout fixes (2026-10-20)
   The hero kept avatar + name side by side on phones: the 126px avatar left
   ~150px for the name, so the level ticks wrapped on top of the name and the
   @username was clipped. Below 640px the identity block stacks and centres. */
@media (max-width: 639.98px) {
  body.pd-account div:has(> .ac-hero-art) > .relative.flex {
    gap: 12px;
  }
  body.pd-account div:has(> .ac-hero-art) .flex.items-center.gap-4 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  body.pd-account div:has(> .ac-hero-art) .min-w-0 {
    width: 100%;
  }
  body.pd-account .pd-avatar-progress {
    width: 104px !important;
    height: 104px !important;
  }
  body.pd-account h1.pd-has-username {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 19px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  body.pd-account .pd-tier {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  body.pd-account .pd-tier .ac-tick svg {
    width: 15px;
    height: 15px;
  }
  body.pd-account .pd-username {
    margin-inline-start: 0;
  }
}

/* The SPA still renders its own bottom section bar under 1024, which covers the
   account tab strip (z-50 over z-20) and duplicates the header nav. */
@media (max-width: 1023.98px) {
  body.pd-account nav.fixed.bottom-0 { display: none !important; }
  body.pd-account .ac-tabs { z-index: 45; bottom: 0; }
  body.pd-account .support-btn-glow { bottom: 10.6rem !important; }
  /* the hero already shows avatar + name + completion, so the sidebar identity
     card above the tabs is a duplicate on phones/tablets */
  body.pd-account aside > section:first-child { display: none; }
}

/* The SPA's account stylesheet sets `body.ac-account aside{position:static}`.
   That also hit the music drawer (an <aside>), so it left ~720px of empty page
   under the footer. Keep the drawer fixed as designed. */
body.pd-account .phm-drawer { position: fixed !important; }

/* The live-support pill sat on top of the account sidebar's nav/logout column. */
body.pd-account .support-btn-glow { right: auto !important; left: 1.25rem !important; }

/* The mobile tab strip scrolls horizontally; keep the selected tab visible. */
body.pd-account .ac-tabs { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
body.pd-account .ac-tab { scroll-snap-align: center; }
