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

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

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

.sl__zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  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;
}

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

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

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

.sl__zone.is-over .sl__ic {
  transform: scale(1.15);
}

.sl__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.1);
}

.sl__ring {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.sl__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.sl__ring-bg {
  fill: none;
  stroke: rgba(255, 247, 230, 0.18);
  stroke-width: 7;
}

.sl__ring-val {
  fill: none;
  stroke: #d6e1eb;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke 600ms ease-out;
}

.sl.is-near-limit .sl__ring-val {
  stroke: #4cd4a6;
}

.sl.is-over-limit .sl__ring-val {
  stroke: #ebe0d6;
}

.sl__ring-num {
  font-weight: 700;
  font-size: 13px;
  color: #fff7e6;
}

.sl__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

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

.sl__size {
  font-weight: 700;
  font-size: 15px;
  color: #d6e1eb;
}

.sl.is-over-limit .sl__size {
  color: #ebe0d6;
}

.sl__limit {
  font-weight: 400;
  font-size: 10px;
  color: rgba(255, 247, 230, 0.72);
}

.sl__verdict {
  margin-top: 4px;
  padding: 4px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.4;
  color: #fff7e6;
  background: rgba(255, 247, 230, 0.12);
}

@media (max-width: 340px) {
  .sl {
    max-width: 260px;
    gap: 4px;
  }
  .sl__hint {
    font-size: 9px;
    line-height: 1.25;
  }
  .sl__zone {
    min-height: 32px;
    padding: 4px 8px;
  }
  .sl__ic {
    width: 20px;
    height: 20px;
  }
  .sl__card {
    padding: 4px;
    gap: 8px;
  }
  .sl__ring {
    width: 48px;
    height: 48px;
  }
  .sl__info {
    gap: 0;
  }
  .sl__name {
    font-size: 11px;
  }
  .sl__size {
    font-size: 12px;
  }
  .sl__limit {
    font-size: 9px;
  }
  .sl__verdict {
    font-size: 8px;
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sl__zone, .sl__ic {
    transition: none;
  }
  .sl__zone.is-over .sl__ic {
    transform: none;
  }
  .sl__ring-val {
    transition: none;
  }
}
