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 {
  overflow: hidden;
}

.sse {
  width: min(380px, 90vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 247, 230, 0.06);
}

.sse__logo {
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.sse__search {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  width: 36px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
  overflow: hidden;
  transition: width 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sse__search.is-open {
  width: 156px;
  background: #fff7e6;
}

.sse__toggle {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sse__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff7e6;
  stroke-width: 2;
  stroke-linecap: round;
}

.sse__search.is-open .sse__icon {
  stroke: #2f6df6;
}

.sse__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px 0 0;
  font-weight: 500;
  font-size: clamp(12px, 3.6vw, 13px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sse__search.is-open .sse__input {
  opacity: 1;
}

.sse.is-demo .sse__search {
  animation: sse-expand-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.sse.is-demo .sse__icon {
  animation: sse-icon-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.sse.is-demo .sse__input {
  animation: sse-input-loop 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sse-expand-loop {
  0%, 20% {
    width: 36px;
    background: rgba(255, 247, 230, 0.12);
  }
  45%, 70% {
    width: 156px;
    background: #fff7e6;
  }
  95%, 100% {
    width: 36px;
    background: rgba(255, 247, 230, 0.12);
  }
}
@keyframes sse-icon-loop {
  0%, 20% {
    stroke: #fff7e6;
  }
  45%, 70% {
    stroke: #2f6df6;
  }
  95%, 100% {
    stroke: #fff7e6;
  }
}
@keyframes sse-input-loop {
  0%, 20% {
    opacity: 0;
  }
  45%, 70% {
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sse__search, .sse__input {
    transition: none;
  }
  .sse.is-demo .sse__search, .sse.is-demo .sse__icon, .sse.is-demo .sse__input {
    animation: none !important;
  }
  .sse.is-demo .sse__search {
    width: 36px;
    background: rgba(255, 247, 230, 0.12);
  }
  .sse.is-demo .sse__icon {
    stroke: #fff7e6;
  }
  .sse.is-demo .sse__input {
    opacity: 0;
  }
}
