/* Mobile lounge alignment fixes.
 * Keep the action row centered when it fits, while preserving horizontal
 * scrolling on narrower screens. Profile cards stay viewport-centered and
 * scroll internally when their content is taller than the available space.
 */
@media (max-width: 480px) {
  .st-actions {
    justify-content: flex-start;
    width: max-content;
    max-width: calc(100vw - 16px);
  }

  .profile-backdrop {
    align-items: center;
  }

  .profile-card {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(340px, calc(100% - 24px));
    max-width: 100%;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: mobile-profile-fade 0.2s ease-out;
    transform: translate(-50%, -50%);
  }
}

@keyframes mobile-profile-fade {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
