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

.ps {
  position: relative;
  width: min(240px, 82vw);
}

.ps__input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid rgba(255, 247, 230, 0.35);
  border-radius: 12px;
  padding: 16px 16px;
  font-weight: 500;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1;
  font-family: inherit;
  color: #fff7e6;
  background: transparent;
}
.ps__input:focus {
  outline: none;
  border-color: #2f6df6;
}

.ps__bloom {
  position: absolute;
  inset: -6px;
  border-radius: calc(12px + 6px);
  background: radial-gradient(circle, rgba(47, 109, 246, 0.3) 0%, rgba(47, 109, 246, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.ps__input:focus ~ .ps__bloom {
  animation: ps-bloom 300ms ease-out;
}

@keyframes ps-bloom {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}
.ps__ghost {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translate(0, -50%);
  color: rgba(255, 247, 230, 0.55);
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 15px);
  line-height: 1;
  font-family: inherit;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.3, 1.6, 0.4, 1), opacity 220ms ease-out;
}

.ps__input:focus ~ .ps__ghost,
.ps__input:not(:placeholder-shown) ~ .ps__ghost {
  transform: translate(13px, -50%) scale(0.94);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ps__ghost {
    transition: none;
  }
  .ps__input:focus ~ .ps__bloom {
    animation: none;
  }
}
