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

.fu {
  box-sizing: border-box;
  width: min(240px, 86vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
}

.fu__zone {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1.5px dashed rgba(255, 247, 230, 0.4);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color 600ms ease-out, background 600ms ease-out;
}

.fu__zone.is-over {
  border-color: #2f6df6;
  background: rgba(47, 109, 246, 0.12);
}

.fu__ic {
  color: rgba(255, 247, 230, 0.7);
}

.fu__hint {
  font-size: 11px;
  color: #17141a;
  text-align: center;
}

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

.fu__file {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 247, 230, 0.08);
  border-radius: 8px;
  padding: 4px 8px;
}

.fu__file-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10px;
  color: #17141a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fu__track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
  overflow: hidden;
  transition: opacity 600ms ease-out;
}

.fu__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 900ms ease-out;
}

.fu__check {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4cd4a6;
  color: #17141a;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fu__file--done .fu__track {
  opacity: 0;
  width: 0;
}

.fu__file--done .fu__check {
  opacity: 1;
  transform: scale(1);
}

.fu__remove {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 230, 0.6);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.fu__file--demo.is-demo .fu__fill {
  animation: fu-fill 2.6s ease-out infinite;
}

.fu__file--demo.is-demo .fu__track {
  animation: fu-track 2.6s ease-out infinite;
}

.fu__file--demo.is-demo .fu__check {
  animation: fu-check 2.6s ease-out infinite;
}

@keyframes fu-fill {
  0% {
    transform: scaleX(0);
  }
  70% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes fu-track {
  0%, 75% {
    opacity: 1;
  }
  90%, 100% {
    opacity: 0;
  }
}
@keyframes fu-check {
  0%, 75% {
    opacity: 0;
    transform: scale(0.6);
  }
  90%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .fu__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fu__file--demo.is-demo .fu__fill,
  .fu__file--demo.is-demo .fu__track,
  .fu__file--demo.is-demo .fu__check {
    animation: none !important;
  }
  .fu__zone, .fu__fill, .fu__check, .fu__track {
    transition: none;
  }
}
