html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ptr {
  position: relative;
  width: min(240px, 78vw);
  overflow: hidden;
  border-radius: 16px;
}

.ptr__indicator {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.ptr__spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #2f6df6;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ptr__body {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  transform: translateY(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-x;
  cursor: grab;
}

.ptr__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ptr__title {
  font-weight: 700;
  font-size: 14px;
  color: #17141a;
}

.ptr__refresh {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #2f6df6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ptr__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  color: rgba(23, 20, 26, 0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ptr__status {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.72);
}

.ptr.is-refreshing .ptr__spinner {
  opacity: 1;
  animation: ptr-spin 0.7s linear infinite;
}

.ptr.is-demo .ptr__body {
  animation: ptr-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ptr.is-demo .ptr__spinner {
  animation: ptr-spin-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ptr-loop {
  0%, 10% {
    transform: translateY(0);
  }
  40%, 60% {
    transform: translateY(56px);
  }
  95%, 100% {
    transform: translateY(0);
  }
}
@keyframes ptr-spin-loop {
  0%, 10% {
    opacity: 0;
    transform: rotate(0deg);
  }
  40%, 60% {
    opacity: 1;
    transform: rotate(360deg);
  }
  95%, 100% {
    opacity: 0;
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ptr__body, .ptr__spinner {
    transition: none;
  }
  .ptr.is-demo .ptr__body {
    animation: none;
    transform: translateY(56px);
  }
  .ptr.is-demo .ptr__spinner {
    animation: none;
    opacity: 1;
  }
  .ptr.is-refreshing .ptr__spinner {
    animation: none;
  }
}
