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

.formhud {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: clamp(220px, 78vw, 300px);
}

.formhud__btn {
  position: relative;
  box-sizing: border-box;
  border: 1px solid #ffd23f;
  border-radius: 12px;
  background: rgba(255, 210, 63, 0.14);
  color: #ffd23f;
  padding: 12px 20px;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 13px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.02em;
  animation: btnSnap 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes btnSnap {
  0%, 55%, 100% {
    transform: scale(1);
  }
  75% {
    transform: scale(0.97);
  }
}
.formhud__corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: #ffd23f;
  border-style: solid;
  border-width: 0;
}

.formhud__corner--tl {
  top: 4px;
  left: 4px;
  border-top-width: 2px;
  border-left-width: 2px;
  animation: snapTl 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.formhud__corner--tr {
  top: 4px;
  right: 4px;
  border-top-width: 2px;
  border-right-width: 2px;
  animation: snapTr 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.formhud__corner--bl {
  bottom: 4px;
  left: 4px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  animation: snapBl 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.formhud__corner--br {
  bottom: 4px;
  right: 4px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  animation: snapBr 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes snapTl {
  0%, 55%, 100% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(3px, 3px);
  }
}
@keyframes snapTr {
  0%, 55%, 100% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(-3px, 3px);
  }
}
@keyframes snapBl {
  0%, 55%, 100% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(3px, -3px);
  }
}
@keyframes snapBr {
  0%, 55%, 100% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(-3px, -3px);
  }
}
.formhud__field {
  position: relative;
  display: block;
  border-radius: 8px;
  background: #17141a;
  box-shadow: 0 1px 0 0 rgba(255, 210, 63, 0.4);
  animation: focusGlow 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes focusGlow {
  0%, 55%, 100% {
    box-shadow: 0 1px 0 0 rgba(255, 210, 63, 0.4);
  }
  75% {
    box-shadow: 0 1px 0 0 rgba(255, 210, 63, 0.9), 0 0 0 3px rgba(255, 210, 63, 0.25), 0 0 20px rgba(255, 210, 63, 0.35);
  }
}
.formhud__input {
  box-sizing: border-box;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  color: #fff7e6;
  font-weight: 500;
  font-size: clamp(12px, 2.8vw, 13px);
  line-height: 1;
  font-family: inherit;
  outline: none;
}

.formhud__input::placeholder {
  color: rgba(255, 247, 230, 0.45);
}

.formhud__caret {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 2px;
  height: 14px;
  transform: translateY(-50%);
  background: #ffd23f;
  animation: blink 2s steps(1) infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .formhud__btn, .formhud__corner, .formhud__field, .formhud__caret {
    animation: none !important;
  }
  .formhud__btn {
    transform: scale(1);
  }
  .formhud__corner {
    transform: translate(0, 0);
  }
  .formhud__field {
    box-shadow: 0 1px 0 0 rgba(255, 210, 63, 0.4);
  }
  .formhud__caret {
    opacity: 1;
  }
}
