.mobile-footer-menu-v2 {
  display: none;
}

@keyframes mobile-footer-v2-content-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#content.mobile-footer-page-enter {
  animation: mobile-footer-v2-content-in 380ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
  #content.mobile-footer-page-enter {
    animation: none;
    will-change: auto;
  }
}

@media screen and (max-width: 768px) {
  .mobile-footer-menu-v2 {
    --mobile-footer-edge-gap: 10px;
    box-sizing: border-box;
    position: fixed;
    z-index: 20;
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-footer-edge-gap));
    left: 50%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(calc(100vw - 24px), 408px);
    height: 68px;
    padding: 0;
    isolation: isolate;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(142, 146, 151, 0.58);
    box-shadow: 0 14px 32px rgba(38, 42, 46, 0.2);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    transform: translateX(-50%);
  }

  .mobile-footer-v2-capsule {
    position: absolute;
    z-index: 0;
    top: 3px;
    left: calc(4px + var(--mobile-footer-initial-offset, 0%));
    width: calc(25% - 8px);
    height: 60px;
    border-radius: 999px;
    background: #05c315;
    box-shadow: 0 6px 14px rgba(5, 195, 21, 0.18);
    pointer-events: none;
    will-change: transform;
  }

  .mobile-footer-v2-item {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-footer-v2-item morph-icon {
    display: block;
    width: 23px;
    height: 23px;
    color: currentColor;
    filter: drop-shadow(0 1px 1px rgba(65, 65, 65, 0.18));
  }

  .mobile-footer-v2-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: -4px;
  }

  .mobile-footer-v2-item:active morph-icon {
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-footer-v2-item:active morph-icon {
    transform: none;
  }
}
