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

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

.rd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(260px, 82vw);
  display: flex;
  flex-direction: column;
}

.rd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 8px;
  background: #ffffff;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rd-item span {
  font-size: 13px;
  color: #17141a;
}

.rd-item.is-dragging {
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transition: none;
  cursor: grabbing;
}

.rd-item__handle {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: rgba(23, 20, 26, 0.5);
  cursor: grab;
  flex: 0 0 auto;
  touch-action: none;
}

.rd-item__handle svg {
  width: 14px;
  height: 14px;
}

.rd-item__handle:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
  border-radius: 4px;
}

.rd-drop-indicator {
  height: 0;
  margin: 0 16px;
  border-radius: 4px;
  background: #2f6df6;
  opacity: 0;
  transition: height 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rd-list.is-dragging .rd-drop-indicator {
  height: 8px;
  opacity: 1;
}

.rd-list.is-demo .rd-item--lifted {
  animation: rd-lift-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.rd-list.is-demo .rd-drop-indicator {
  animation: rd-gap-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes rd-lift-loop {
  0%, 10% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
  40%, 65% {
    transform: translateY(52px) scale(1.03);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  95%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: none;
  }
}
@keyframes rd-gap-loop {
  0%, 10% {
    height: 0;
    opacity: 0;
  }
  40%, 65% {
    height: 8px;
    opacity: 1;
  }
  95%, 100% {
    height: 0;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-item, .rd-drop-indicator {
    transition: none;
  }
}
