.site-mobile-nav-toggle,
.site-mobile-nav-backdrop,
.site-mobile-nav-drawer {
  display: none;
}

@media (max-width: 600px), (min-width: 601px) and (max-width: 900px) and (orientation: portrait), (min-width: 601px) and (max-width: 1100px) and (min-height: 600px) and (orientation: landscape) and (pointer: coarse) {
  body.site-mobile-nav-ready .topbar {
    height: 76px !important;
    min-height: 76px !important;
    padding: 14px 10px !important;
    overflow: visible !important;
  }

  body.site-mobile-nav-ready .topbar .app-nav-grid,
  body.site-mobile-nav-ready .topbar .nav-buttons,
  body.site-mobile-nav-ready .topbar .topbar-secondary-toggle,
  body.site-mobile-nav-ready .topbar .nav-collapse-toggle {
    display: none !important;
  }

  body.site-mobile-nav-ready .topbar .app-logo,
  body.site-mobile-nav-ready .topbar .brand-logo {
    position: absolute !important;
    left: 50% !important;
    top: 14px !important;
    z-index: 240;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex: 0 0 48px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }

  body.site-mobile-nav-ready .app {
    grid-template-rows: 76px auto 1fr !important;
  }

  body.site-mobile-nav-ready .app.weapon-browser-collapsed,
  body.site-mobile-nav-ready .app.topbar-secondary-collapsed.weapon-browser-collapsed {
    grid-template-rows: 76px 0 auto !important;
  }

  body.site-mobile-nav-ready .page {
    min-height: calc(100vh - 76px - var(--site-footer-height, 146px)) !important;
  }

  .site-mobile-nav-toggle {
    position: absolute;
    left: 10px;
    top: 14px;
    z-index: 250;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #fff;
  }

  .site-mobile-nav-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .site-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(2,7,10,.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-mobile-nav-drawer {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1410;
    width: min(82vw, 320px);
    display: flex;
    flex-direction: column;
    padding: max(16px, env(safe-area-inset-top)) 14px 20px;
    border-right: 1px solid rgba(255,255,255,.16);
    background: rgba(12,22,30,.98);
    box-shadow: 18px 0 42px rgba(0,0,0,.42);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
  }

  body.site-mobile-nav-open {
    overflow: hidden !important;
  }

  body.site-mobile-nav-open .site-mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.site-mobile-nav-open .site-mobile-nav-drawer {
    transform: translateX(0);
    visibility: visible;
  }

  .site-mobile-nav-head {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 18px;
    letter-spacing: 1px;
  }

  .site-mobile-nav-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.84);
    font: inherit;
    font-size: 25px;
    line-height: 1;
  }

  .site-mobile-nav-links {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 2px;
    overflow-y: auto;
  }

  .site-mobile-nav-primary,
  .site-mobile-nav-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 9px;
    color: rgba(255,255,255,.92);
    font-size: 17px;
    letter-spacing: 1px;
    text-decoration: none;
  }

  .site-mobile-nav-primary.current,
  .site-mobile-nav-title.current {
    background: rgba(255,255,255,.1);
    color: #fff;
  }

  .site-mobile-nav-section {
    padding: 4px;
    border-radius: 11px;
    background: rgba(255,255,255,.025);
  }

  .site-mobile-nav-children {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0 8px 8px 20px;
  }

  .site-mobile-nav-children a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 7px;
    color: rgba(255,255,255,.64);
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
  }

  .site-mobile-nav-children a.current {
    background: rgba(255,255,255,.08);
    color: #fff;
  }

  .site-mobile-nav-title.current,
  .site-mobile-nav-children a.current {
    position: relative;
    background: transparent;
  }

  .site-mobile-nav-title.current::before,
  .site-mobile-nav-children a.current::before {
    content: "";
    position: absolute;
    inset: 4px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.1);
    pointer-events: none;
  }

  .site-mobile-nav-children a.current::before {
    inset: 4px 12px 4px 4px;
  }
}
