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

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

.drag-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(240px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: transform 220ms ease-out;
}
.drag-row.is-dragging {
  transition: none;
  z-index: 2;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.drag-row__handle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #2f6df6;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

.drag-row__handle:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.drag-row__label {
  font-weight: 700;
  font-size: 13px;
  color: #17141a;
  font-family: inherit;
}

.drag-list.is-demo .drag-row:nth-child(1) {
  animation: drag-a 2s ease-out infinite;
}

.drag-list.is-demo .drag-row:nth-child(2) {
  animation: drag-b 2s ease-out infinite;
}

@keyframes drag-a {
  0%, 10% {
    transform: translateY(0);
  }
  45%, 65% {
    transform: translateY(60px);
  }
  95%, 100% {
    transform: translateY(0);
  }
}
@keyframes drag-b {
  0%, 10% {
    transform: translateY(0);
  }
  45%, 65% {
    transform: translateY(-60px);
  }
  95%, 100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .drag-row {
    transition: none;
  }
  .drag-list.is-demo .drag-row:nth-child(1),
  .drag-list.is-demo .drag-row:nth-child(2) {
    animation: none;
  }
}
