/* =========================================================
   Pull to refresh — index.htm
   The indicator lives behind the page; dragging the page down
   reveals it. Loaded after style5.css.
   ========================================================= */

/* The browser's own pull to refresh must stay out of the way */
html {
  overscroll-behavior-y: none;
}

.ptr {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate3d(0, -100%, 0);
  will-change: transform;
}

.ptr__ring {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
}

.ptr.is-ready,
.ptr.is-loading {
  color: var(--paper);
}

.ptr.is-ready .ptr__ring,
.ptr.is-loading .ptr__ring {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: ptr-spin 0.7s linear infinite;
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* The page, pulled down with the finger */
#ptr-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--app-height, 100dvh);
}

body.is-pulling {
  user-select: none;
  -webkit-user-select: none;
}
