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

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

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

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

.rp__zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px 12px;
  border: 2px dashed rgba(255, 247, 230, 0.72);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 220ms ease-out, background 220ms ease-out;
}

.rp__zone.is-over {
  border-color: #d6e1eb;
  background: rgba(159, 201, 236, 0.16);
}

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

.rp__ic {
  width: 24px;
  height: 24px;
  color: #fff7e6;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.rp__zone.is-over .rp__ic {
  transform: scale(1.15);
}

.rp__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.1);
}

.rp__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rp__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: 12px;
  color: #fff7e6;
}

.rp__pct {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 12px;
  color: #d6e1eb;
}

.rp__track {
  --p: 0;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
  overflow: hidden;
}

.rp__bar {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: 999px;
  background: #d6e1eb;
  transition: background 240ms ease-out;
}

.rp__bar.is-done {
  background: #4cd4a6;
}

.rp__bar.is-abort {
  background: #ebe0d6;
}

.rp__calc {
  margin: 0;
  padding: 0 4px;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 247, 230, 0.72);
}

@media (max-width: 340px) {
  .rp {
    max-width: 260px;
  }
  .rp__hint {
    font-size: 10px;
  }
  .rp__zone {
    min-height: 44px;
  }
  .rp__ic {
    width: 20px;
    height: 20px;
  }
  .rp__name, .rp__pct {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rp__zone, .rp__ic {
    transition: none;
  }
  .rp__zone.is-over .rp__ic {
    transform: none;
  }
  .rp__bar {
    transition: none;
  }
}
