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

.mk {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  width: min(360px, 94vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 12px;
}

.mk::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #2f6df6;
  transform-origin: center;
  animation: mk-scan 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes mk-scan {
  0%, 70%, 100% {
    transform: scaleX(0.25);
    opacity: 0.5;
  }
  30% {
    transform: scaleX(1);
    opacity: 1;
  }
}
.mk__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.2;
  font-family: inherit;
  color: #17141a;
}

.mk__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mk__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.05);
}

.mk__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}

.mk__check {
  width: 16px;
  height: 16px;
  accent-color: #2f6df6;
  margin: 0;
  flex: 0 0 auto;
}

.mk__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(10px, 3vw, 11px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.mk__size {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

.mk__done-ic {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #2f6df6;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  opacity: 0;
  transition: stroke-dashoffset 300ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.mk__row.is-done .mk__done-ic {
  stroke-dashoffset: 0;
  opacity: 1;
}

.mk__row.is-done .mk__size {
  display: none;
}

.mk__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  border-radius: 12px;
  border: 0;
  background: #17141a;
  color: #fff7e6;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 300ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.mk__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mk__btn-ic {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-right: 4px;
  animation: mk-bounce 2s ease-in-out infinite;
}

@keyframes mk-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
.mk__status {
  min-height: 14px;
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  color: #2f6df6;
  text-align: center;
}

@media (max-width: 340px), (max-height: 220px) {
  .mk {
    padding: 8px;
  }
  .mk__title {
    display: none;
  }
  .mk__list {
    margin-bottom: 4px;
  }
  .mk__size {
    display: none;
  }
  .mk__row {
    padding: 4px 8px;
  }
  .mk__btn {
    padding: 4px 12px;
  }
  .mk__status {
    margin-top: 4px;
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mk__btn-ic {
    animation: none !important;
  }
  .mk::before {
    animation: none !important;
  }
  .mk__done-ic, .mk__btn {
    transition: none;
  }
}
