html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.vd {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: #17141a;
}

.vd__zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 12px;
  border: 2px dashed rgba(23, 20, 26, 0.72);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 220ms ease-out, background 220ms ease-out;
}

.vd__zone.is-over {
  border-color: #b9a0ff;
  background: rgba(185, 160, 255, 0.18);
}

.vd__file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vd__ic {
  width: 32px;
  height: 32px;
  color: #17141a;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.vd__zone.is-over .vd__ic {
  transform: scale(1.15);
}

.vd__panel {
  display: none;
  padding: 12px;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.vd__panel.is-in {
  display: block;
  animation: vdRise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.vd__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vd__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
}

.vd__chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
}

.vd__stats {
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.vd__stat dt {
  font-weight: 400;
  font-size: 9px;
  color: rgba(23, 20, 26, 0.72);
}

.vd__stat dd {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  color: #17141a;
  white-space: nowrap;
}

.vd__scan {
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
  overflow: hidden;
}

.vd__scanbar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #b9a0ff;
}

.vd__scanbar.is-run {
  animation: vdScan 600ms ease-out both;
}

.vd__calc {
  margin: 8px 0 0;
  font-weight: 400;
  font-size: 10px;
  color: rgba(23, 20, 26, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes vdRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes vdScan {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@media (max-width: 340px) {
  .vd {
    max-width: 280px;
    gap: 4px;
  }
  .vd__hint {
    font-size: 9px;
    line-height: 1.25;
  }
  .vd__zone {
    min-height: 32px;
    padding: 4px;
  }
  .vd__ic {
    width: 20px;
    height: 20px;
  }
  .vd__panel {
    padding: 4px;
  }
  .vd__head {
    margin-bottom: 4px;
  }
  .vd__stats {
    margin-bottom: 4px;
  }
  .vd__stat {
    min-width: 0;
  }
  .vd__stat dd {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vd__calc {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vd__panel.is-in {
    animation: none;
  }
  .vd__scanbar.is-run {
    animation: none;
    width: 100%;
  }
  .vd__zone, .vd__ic {
    transition: none;
  }
  .vd__zone.is-over .vd__ic {
    transform: none;
  }
}
