/* Apply at first paint in WebKit, including Home Screen windows with no device marker. */
@supports (-webkit-touch-callout: none) and (bottom: max(2px, 12px)) {
  @media screen and (orientation: portrait) and (max-width: 540px) {
    html:root #app > .shell > nav.bottom-nav.dq-menu-r142 {
      --dq341-menu-edge: max(2px, calc(env(safe-area-inset-bottom, 0px) - 22px));
      position: fixed !important;
      bottom: var(--dq341-menu-edge) !important;
    }

    /* Blend the artwork's transparent tail into the app canvas under the home indicator. */
    html:root #app > .shell > nav.bottom-nav.dq-menu-r142::after {
      content: "" !important;
      display: block !important;
      position: absolute;
      top: calc(100% - 5px);
      bottom: calc(0px - var(--dq341-menu-edge));
      left: 50%;
      width: 100vw;
      transform: translateX(-50%);
      z-index: -1;
      background: linear-gradient(to bottom, transparent, #000c18 5px);
      pointer-events: none;
    }
  }
}
