html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  min-height: 100dvh;
}

.nav {
  position: sticky;
  top: 74px;
  z-index: 3;
  background: #080c18ed;
  backdrop-filter: blur(18px);
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.pull-to-refresh {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #11182aee;
  box-shadow: 0 12px 30px #0008;
  color: var(--muted);
  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -70px);
  transition: opacity .15s ease, transform .15s ease;
}

.pull-to-refresh.visible {
  opacity: 1;
  transition: none;
}

.pull-to-refresh.ready {
  color: var(--accent);
  border-color: #6ee7c455;
}

.pull-to-refresh.ready span {
  transform: rotate(180deg);
}

.pull-to-refresh span {
  display: inline-block;
  transition: transform .15s ease;
}

@media (pointer: coarse) {
  body {
    touch-action: pan-y;
  }
}

@media (display-mode: standalone) {
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(74px + env(safe-area-inset-top));
  }

  .nav {
    top: calc(74px + env(safe-area-inset-top));
  }
}
