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

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marker {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: transparent;
  font-size: 0;
}
.marker:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.marker::before,
.marker::after {
  content: "";
  position: absolute;
  transition: width 300ms ease-out, height 300ms ease-out, border-width 300ms ease-out, transform 300ms ease-out, opacity 220ms ease-out;
}

.marker.state-0::before {
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-top: calc(var(--size) / -2);
  border-radius: 50%;
  background: #5b8cf8;
}

.marker.state-0::after {
  opacity: 0;
  width: 0;
  height: 0;
}

.marker.state-1::before {
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) / -2);
  margin-top: calc(var(--size) / -2);
  border-radius: 4px;
  border: var(--thick) solid #2f6df6;
  background: transparent;
  transform: rotate(45deg);
}

.marker.state-1::after {
  opacity: 0;
  width: 0;
  height: 0;
}

.marker.state-2::before,
.marker.state-2::after {
  left: 30%;
  top: 55%;
  height: var(--thick);
  background: #4cd4a6;
  border-radius: 999px;
  transform-origin: left center;
}

.marker.state-2::before {
  width: calc(var(--size) * 0.45);
  transform: rotate(225deg);
}

.marker.state-2::after {
  width: calc(var(--size) * 0.8);
  transform: rotate(-52deg);
}

.label {
  color: #17141a;
  font-size: 12px;
}

@media (max-width: 340px) {
  .task-list {
    width: 200px;
  }
  .label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marker::before,
  .marker::after {
    transition: none;
  }
}
