.mobile-pill {
  display: none;
}

@media (max-width: 520px) {
  .site-nav {
    display: none !important;
  }

  .content {
    padding-bottom: 96px;
  }

  .mobile-pill {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: pill-enter 0.5s var(--ease-out) both;
  }

  .mobile-pill__accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    padding: 0 16px 0 12px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--text-on-accent);
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: var(--shadow-btn-accent);
    transition:
      background var(--duration-fast) ease,
      transform var(--duration-fast) ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  @media (prefers-color-scheme: dark) {
    .mobile-pill__accent {
      background: var(--chat-client-bg-dark);
    }
  }

  .mobile-pill__accent:hover {
    background: var(--accent-hover);
    color: var(--text-on-accent);
  }

  .mobile-pill__accent:active {
    transform: scale(0.95);
  }

  .mobile-pill__accent svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .mobile-pill__accent-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
  }
}

@keyframes pill-enter {
  from {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  @supports (animation-timeline: scroll()) {
    .mobile-pill {
      transform: translateX(-50%) translateY(20px);
      opacity: 0;
      animation: pill-scroll-reveal linear both;
      animation-timeline: scroll();
      animation-range: 200px 400px;
    }

    @keyframes pill-scroll-reveal {
      to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
      }
    }
  }
}
