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);
}

.ms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ms__arc {
  position: relative;
  width: 220px;
  height: 120px;
  overflow: hidden;
  touch-action: none;
}

.ms__arc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  border-radius: 50%;
  border: 10px solid rgba(23, 20, 26, 0.12);
  clip-path: inset(0 0 50% 0);
}

.ms__handle {
  position: absolute;
  left: calc(50% + var(--x, 0) * 100px - 15px);
  bottom: calc(var(--y, -1) * -100px - 15px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: grab;
  background: hsl(calc(var(--hue, 60) * 1deg), 62%, 68%);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transition: background 220ms ease-out;
}

.ms__handle:active {
  cursor: grabbing;
}

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

.ms__label {
  margin: 0;
  color: #17141a;
  font-weight: 800;
  font-size: 16px;
}

@media (max-width: 340px) {
  .ms__arc {
    width: 168px;
    height: 92px;
    overflow: hidden;
  }
  .ms__arc::before {
    height: 168px;
  }
  .ms__handle {
    left: calc(50% + var(--x, 0) * 76px - 12px);
    bottom: calc(var(--y, -1) * -76px - 12px);
    width: 24px;
    height: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ms__handle {
    transition: none;
  }
}
