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

.stage {
  padding: clamp(6px, 2.4vw, 16px);
}

.frame {
  position: relative;
  width: min(220px, 70vw);
  border-radius: 10px;
}

.frame__edge {
  position: absolute;
}

.frame__edge--top, .frame__edge--bottom {
  left: 10px;
  right: 10px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, #fff7e6 0 8px, transparent 8px 16px);
}

.frame__edge--left, .frame__edge--right {
  top: 10px;
  bottom: 10px;
  width: 3px;
  background-image: repeating-linear-gradient(180deg, #fff7e6 0 8px, transparent 8px 16px);
}

.frame__edge--top {
  top: 0;
}

.frame__edge--bottom {
  bottom: 0;
}

.frame__edge--left {
  left: 0;
}

.frame__edge--right {
  right: 0;
}

.frame.is-demo .frame__edge--top {
  animation: run-x 2s linear infinite;
}

.frame.is-demo .frame__edge--bottom {
  animation: run-x-rev 2s linear infinite;
}

.frame.is-demo .frame__edge--left {
  animation: run-y-rev 2s linear infinite;
}

.frame.is-demo .frame__edge--right {
  animation: run-y 2s linear infinite;
}

@keyframes run-x {
  to {
    background-position: 32px 0;
  }
}
@keyframes run-x-rev {
  to {
    background-position: -32px 0;
  }
}
@keyframes run-y {
  to {
    background-position: 0 32px;
  }
}
@keyframes run-y-rev {
  to {
    background-position: 0 -32px;
  }
}
.frame__body {
  padding: 22px 18px;
}

.frame__label {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

.frame__pct {
  margin: 0;
  font-weight: 500;
  font-size: clamp(11px, 3vw, 12px);
  line-height: 1.3;
  font-family: inherit;
  color: #17141a;
}

@media (prefers-reduced-motion: reduce) {
  .frame.is-demo .frame__edge {
    animation: none;
  }
}
