@media (max-width: 1080px) {
  body.drip-menu-open {
    overflow: hidden;
    touch-action: none;
  }

  body.drip-menu-open .floating-nav {
    z-index: 120;
  }

  .mobile-menu-button {
    min-height: 44px;
    min-width: 44px;
    border-color: rgba(53, 208, 255, 0.34);
    background:
      linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(53, 208, 255, 0.12)),
      rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .drip-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    background:
      radial-gradient(circle at 18% 8%, rgba(124, 92, 255, 0.22), transparent 34%),
      rgba(3, 5, 10, 0.72);
    opacity: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: opacity 180ms ease;
  }

  body.drip-menu-open .drip-menu-backdrop {
    opacity: 1;
  }

  body.drip-menu-open .drip-menu-backdrop.is-closing {
    opacity: 0;
  }

  .mobile-drawer {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: auto;
    left: auto;
    width: min(340px, calc(100vw - 56px));
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 130;
    align-content: start;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
      linear-gradient(150deg, rgba(124, 92, 255, 0.18), transparent 36%),
      linear-gradient(210deg, rgba(53, 208, 255, 0.15), transparent 42%),
      rgba(7, 9, 16, 0.96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(18px);
    opacity: 0;
    transition: transform 190ms ease, opacity 190ms ease;
  }

  .mobile-drawer.is-ready {
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-drawer.is-closing {
    transform: translateX(18px);
    opacity: 0;
  }

  .mobile-drawer a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
    padding: 13px 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 720;
    line-height: 1.22;
  }

  .mobile-drawer a:active {
    transform: scale(0.99);
    background: rgba(53, 208, 255, 0.12);
    border-color: rgba(53, 208, 255, 0.32);
  }

  .mobile-drawer .language-switcher.compact {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    padding: 8px;
  }

  .mobile-drawer .language-switcher.compact > svg {
    display: none;
  }

  .mobile-drawer .language-switcher.compact a {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 8px 4px;
    font-size: 13px;
  }

  .drawer-close {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.075);
  }
}

@media (max-width: 380px) {
  .mobile-drawer {
    width: calc(100vw - 56px);
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    height: calc(100dvh - 16px);
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drip-menu-backdrop,
  .mobile-drawer {
    transition: none;
  }
}
