.box {
  width: 8rem;
  margin: 0.5rem auto;
  padding: 1rem;
  border: 6px dashed #999;
  color: white;
  text-align: center;
  background: #6b4f9a;
  mask-image: linear-gradient(black 40%, transparent);
  mask-clip: content-box;
}