@layer base {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  body {
    overscroll-behavior: none;
    min-height: 100dvh;
    font-variant-numeric: tabular-nums lining-nums;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

.pb-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.pt-safe {
  padding-top: max(0.25rem, env(safe-area-inset-top, 0px));
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabular-nums {
  font-variant-numeric: tabular-nums lining-nums;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-modal-in {
  animation: modalSlideUp 0.2s ease-out forwards;
}
