.mobile-top-nav {
  display: none;
}

@media (max-width: 800px) {
  :root {
    --mobile-nav-content-height: 64px;
    --mobile-safe-bottom: env(safe-area-inset-bottom);
    --mobile-nav-total-height: calc(var(--mobile-nav-content-height) + var(--mobile-safe-bottom));
  }

  body {
    padding-bottom: var(--mobile-nav-total-height) !important;
  }

  .site-head {
    position: static !important;
    top: auto;
    z-index: 1000;
    height: 64px !important;
    min-height: 64px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-head .head-row {
    height: 64px !important;
    min-height: 64px;
  }

  .mobile-top-nav {
    display: none !important;
  }

  .mobile-top-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-top-nav a {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 52px;
    padding: 0 11px;
    color: #778396;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
  }

  .mobile-top-nav a::after {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #339cff;
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-top-nav a.on {
    color: #1674d9;
    font-weight: 900;
  }

  .mobile-top-nav a.on::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .mobile-top-nav a:focus-visible {
    border-radius: 10px;
    outline: 3px solid rgba(51, 156, 255, 0.22);
    outline-offset: -4px;
  }

  .mobile-top-nav .nav-beta {
    position: absolute;
    top: 5px;
    margin-left: 3px;
    color: #339cff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .mobile-top-nav em {
    position: absolute;
    top: 7px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef476f;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
  }

  .mobile-bottom-nav {
    display: grid !important;
    transition:
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 220ms ease;
    will-change: transform;
  }

  .mobile-bottom-nav.is-hidden {
    pointer-events: none;
    transform: translate3d(0, calc(100% + 2px), 0);
  }

  .footer {
    padding-bottom: calc(32px + var(--mobile-nav-total-height)) !important;
  }

  .mobile-purchase-bar {
    bottom: var(--mobile-nav-total-height) !important;
    transition: bottom 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.mobile-nav-hidden .mobile-purchase-bar {
    bottom: 0 !important;
  }

  .detail-layout {
    padding-bottom: calc(104px + var(--mobile-nav-total-height)) !important;
  }

  body.auth-page-open .site-head,
  body.auth-page-open .mobile-bottom-nav {
    display: none !important;
  }
}
