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

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

.frame {
  position: relative;
  width: min(230px, 74vw);
  border-radius: 12px;
  padding: 3px;
  isolation: isolate;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px;
  background: repeating-linear-gradient(115deg, #2f6df6 0 10px, #fff7e6 10px 14px, transparent 14px 34px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.frame.is-demo::before,
.frame:focus-within::before {
  animation: sweep 2s linear infinite;
}

.frame__input {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.3;
  font-family: inherit;
  color: #fff7e6;
  background: #17141a;
}

.frame__input::placeholder {
  color: rgba(255, 247, 230, 0.55);
}

@keyframes sweep {
  to {
    background-position: 220px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .frame.is-demo::before, .frame:focus-within::before {
    animation: none;
  }
}
