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

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

.sk {
  box-sizing: border-box;
  width: min(300px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.sk__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk__label {
  flex: 0 0 auto;
  width: 48px;
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  transition: color 220ms ease-out;
}

.sk__row.is-bad .sk__label {
  color: #c2361a;
}

.sk__row.is-ok .sk__label {
  color: #479076;
}

.sk__box {
  position: relative;
  flex: 1 1 auto;
  display: block;
}

.sk__ghost {
  position: absolute;
  left: 14px;
  top: 0;
  color: #17141a;
  font-size: 13px;
  line-height: 34px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.sk__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 2px solid rgba(23, 20, 26, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 13px;
  line-height: 30px;
  font-weight: 700;
  transition: border-color 220ms ease-out;
}

.sk__input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.sk__row.is-bad .sk__input {
  border-color: #c2361a;
  background: #ffe0d8;
}

.sk__row.is-ok .sk__input {
  border-color: #479076;
}

.sk__row.is-bad {
  animation-name: sk-shake;
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.36, 0.07, 0.19, 0.97);
  animation-iteration-count: 1;
}

.sk__btn {
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 13px;
  line-height: 34px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease-out;
}

.sk__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.sk__btn:active {
  transform: scale(0.97);
}

.sk__say {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.sk.is-demo .sk__row {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.36, 0.07, 0.19, 0.97);
  animation-iteration-count: infinite;
}

.sk.is-demo .sk__row[data-row="1"] {
  animation-name: sk-row-1;
}

.sk.is-demo .sk__row[data-row="2"] {
  animation-name: sk-row-2;
}

.sk.is-demo .sk__label,
.sk.is-demo .sk__input {
  transition: none;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.sk.is-demo .sk__row[data-row="1"] .sk__label {
  animation-name: sk-lb-1;
}

.sk.is-demo .sk__row[data-row="2"] .sk__label {
  animation-name: sk-lb-2;
}

.sk.is-demo .sk__row[data-row="1"] .sk__input {
  animation-name: sk-in-1;
}

.sk.is-demo .sk__row[data-row="2"] .sk__input {
  animation-name: sk-in-2;
}

.sk.is-demo .sk__ghost {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.sk.is-demo .sk__row[data-row="1"] .sk__ghost {
  animation-name: sk-gh-1;
}

.sk.is-demo .sk__row[data-row="2"] .sk__ghost {
  animation-name: sk-gh-2;
}

.sk.is-demo .sk__btn {
  transition: none;
  animation-name: sk-btn;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes sk-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(2px);
  }
}
@keyframes sk-row-1 {
  0% {
    transform: translateX(0);
  }
  28% {
    transform: translateX(0);
  }
  31% {
    transform: translateX(-6px);
  }
  34% {
    transform: translateX(6px);
  }
  37% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(2px);
  }
  43% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes sk-row-2 {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-6px);
  }
  36% {
    transform: translateX(6px);
  }
  39% {
    transform: translateX(-4px);
  }
  42% {
    transform: translateX(2px);
  }
  45% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes sk-lb-1 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  28% {
    color: #c2361a;
  }
  56% {
    color: #479076;
  }
  84% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes sk-lb-2 {
  0% {
    color: rgba(23, 20, 26, 0.72);
  }
  30% {
    color: #c2361a;
  }
  64% {
    color: #479076;
  }
  88% {
    color: rgba(23, 20, 26, 0.72);
  }
  100% {
    color: rgba(23, 20, 26, 0.72);
  }
}
@keyframes sk-in-1 {
  0% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
  28% {
    border-color: #c2361a;
    background: #ffe0d8;
  }
  56% {
    border-color: #479076;
    background: #ffffff;
  }
  84% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
  100% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
}
@keyframes sk-in-2 {
  0% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
  30% {
    border-color: #c2361a;
    background: #ffe0d8;
  }
  64% {
    border-color: #479076;
    background: #ffffff;
  }
  88% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
  100% {
    border-color: rgba(23, 20, 26, 0.2);
    background: #ffffff;
  }
}
@keyframes sk-gh-1 {
  0% {
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  84% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sk-gh-2 {
  0% {
    opacity: 0;
  }
  64% {
    opacity: 1;
  }
  88% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes sk-btn {
  0% {
    transform: scale(1);
  }
  24% {
    transform: scale(1);
  }
  26% {
    transform: scale(0.97);
  }
  30% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 360px) {
  .sk {
    gap: 4px;
  }
  .sk__label {
    width: 40px;
  }
  .sk__input, .sk__btn {
    height: 32px;
  }
  .sk__ghost {
    line-height: 32px;
  }
  .sk__btn {
    line-height: 32px;
  }
  .sk__input {
    line-height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sk.is-demo .sk__row,
  .sk.is-demo .sk__label,
  .sk.is-demo .sk__input,
  .sk.is-demo .sk__btn,
  .sk.is-demo .sk__ghost,
  .sk__row.is-bad {
    animation: none !important;
  }
  .sk.is-demo .sk__label {
    color: #c2361a;
  }
  .sk.is-demo .sk__input {
    border-color: #c2361a;
    background: #ffe0d8;
  }
  .sk__label, .sk__input, .sk__btn {
    transition: none;
  }
}
