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

@media (max-width: 520px) {
  .portal-mobile-nav {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: min(350px, calc(100% - 24px));
    height: 76px;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: center;
    margin: 0 auto;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(8, 8, 8, 0.68);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(14px) saturate(100%);
    backdrop-filter: blur(14px) saturate(100%);
  }

  .portal-mobile-nav[data-mobile-nav-reveal] {
    visibility: hidden;
    opacity: 0;
    transform: translateY(calc(100% + 28px));
    pointer-events: none;
    transition: opacity 220ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 360ms;
  }

  .portal-mobile-nav[data-mobile-nav-reveal].is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .portal-mobile-nav__item {
    min-width: 0;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 2px 3px;
    border: 0;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0.015em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .portal-mobile-nav__item:hover,
  .portal-mobile-nav__item:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .portal-mobile-nav__item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  .portal-mobile-nav__item--pending {
    cursor: default;
  }

  .portal-mobile-nav__item--pending:hover,
  .portal-mobile-nav__item--pending:active {
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
  }

  .portal-mobile-nav__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .portal-mobile-nav__item.is-current .portal-mobile-nav__icon {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
  }

  .portal-mobile-nav__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .portal-mobile-nav__item--primary {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 96px;
    height: 92px;
    gap: 5px;
    color: #fff;
    transform: translateX(-50%);
  }

  .portal-mobile-nav__item:last-child {
    grid-column: 3;
  }

  .portal-mobile-nav__item--primary .portal-mobile-nav__icon {
    width: 62px;
    height: 62px;
    padding: 13px;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    color: #090909;
    background: linear-gradient(145deg, #fff, #f2f2f2);
    box-shadow:
      inset 0 2px 0 #fff,
      inset 0 -6px 10px rgba(0, 0, 0, 0.13),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  .portal-mobile-nav__item--primary:hover,
  .portal-mobile-nav__item--primary:active {
    color: #fff;
    background: transparent;
  }

  .portal-mobile-nav__item--primary:active .portal-mobile-nav__icon {
    transform: none;
    box-shadow:
      inset 0 4px 8px rgba(0, 0, 0, 0.16),
      inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  }

  .portal-mobile-nav__item--primary > span:last-child {
    color: #fff;
    font-size: 0.67rem;
    font-weight: 750;
  }

  .portal-home-with-mobile-nav .pc-site-footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-mobile-nav[data-mobile-nav-reveal] {
    transition-duration: 1ms;
  }
}
