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

@property --w {
  syntax: "<length>";
  inherits: false;
  initial-value: 48px;
}
.se {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.se__hint {
  margin: 0;
  color: #17141a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.se__dock {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.se__pill {
  --w: 48px;
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: var(--w);
  height: 48px;
  padding: 0 4px;
  border: 1px solid rgba(23, 20, 26, 0.2);
  border-radius: 999px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: --w 320ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 140ms linear;
}

.se__go {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2f6df6;
  color: #fff7e6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.se__go:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.se__go:active {
  transform: scale(0.9);
}

.se__input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: 36px;
  margin: 0 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0ms 320ms;
}

.se__input:focus-visible {
  outline: none;
}

.se__input::placeholder {
  color: rgba(23, 20, 26, 0.45);
}

.se.is-open .se__input {
  opacity: 1;
  pointer-events: auto;
}

.se.is-open .se__pill {
  border-color: #2f6df6;
}

.se__q {
  position: absolute;
  left: 56px;
  top: 50%;
  margin: 0;
  color: #17141a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.se__log {
  margin: 0;
  min-height: 14px;
  color: rgba(255, 247, 230, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

@keyframes se-loop-w {
  0%, 12% {
    --w: 48px;
  }
  34%, 82% {
    --w: 264px;
  }
  94%, 100% {
    --w: 48px;
  }
}
@keyframes se-loop-q {
  0%, 30% {
    opacity: 0;
  }
  31%, 81% {
    opacity: 1;
  }
  82%, 100% {
    opacity: 0;
  }
}
@keyframes se-loop-hint {
  0%, 11% {
    opacity: 1;
  }
  12%, 81% {
    opacity: 0.4;
  }
  82%, 100% {
    opacity: 1;
  }
}
.se.is-demo .se__pill {
  animation-name: se-loop-w;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.se.is-demo .se__q {
  animation-name: se-loop-q;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.se.is-demo .se__hint {
  animation-name: se-loop-hint;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.se.is-demo .se__input::placeholder {
  color: transparent;
}
.se.is-demo .se__input {
  opacity: 0;
}

@media (max-width: 340px) {
  .se__pill {
    height: 44px;
  }
  .se__go {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .se__input {
    height: 32px;
    font-size: 12px;
  }
  .se__q {
    left: 52px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .se.is-demo .se__pill,
  .se.is-demo .se__q,
  .se.is-demo .se__hint {
    animation: none !important;
  }
  .se.is-demo .se__pill {
    --w: 264px !important;
  }
  .se.is-demo .se__q {
    opacity: 1 !important;
  }
  .se.is-demo .se__hint {
    opacity: 0.4 !important;
  }
}
