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

.sp {
  box-sizing: border-box;
  width: min(260px, 86vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.sp__wrap {
  position: relative;
  padding-bottom: 116px;
}

.sp__group {
  display: flex;
  align-items: stretch;
  height: 44px;
  border-radius: 12px;
  background-color: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.sp__main {
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background-color: transparent;
  color: #17141a;
  cursor: pointer;
}

.sp__main[data-sent="1"] {
  background-color: #4cd4a6;
}

.sp__more {
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border: 0;
  border-left: 2px solid #ff4d1f;
  border-radius: 0 12px 12px 0;
  background-color: transparent;
  color: #17141a;
  cursor: pointer;
}

.sp__main:focus-visible,
.sp__more:focus-visible {
  outline: 3px solid #fff7e6;
  outline-offset: 2px;
}

.sp__ic,
.sp__caret {
  display: inline-flex;
  flex: 0 0 auto;
}

.sp__ic svg,
.sp__caret svg {
  display: block;
}

.sp__t {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.sp__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 16px;
  background-color: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
}

.sp__item {
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  display: block;
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  color: #17141a;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transform: translateY(-16px);
}

.sp__item:hover {
  background-color: #ffd23f;
}

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

.sp:not(.is-demo)[data-open="1"] .sp__menu {
  opacity: 1;
}

.sp:not(.is-demo)[data-open="1"] .sp__item {
  transform: translateY(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp:not(.is-demo)[data-open="1"] .sp__caret {
  transform: rotate(180deg);
}

.sp:not(.is-demo) .sp__caret {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp__menu[aria-hidden],
.sp:not(.is-demo):not([data-open="1"]) .sp__menu {
  pointer-events: none;
}

.sp.is-demo .sp__menu {
  animation-name: sp-open;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes sp-open {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.sp.is-demo .sp__item {
  animation-name: sp-slide, sp-walk;
  animation-duration: 2s, 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1), steps(1, end);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}

.sp.is-demo li:nth-child(1) .sp__item {
  animation-delay: 0s, 0s;
}

.sp.is-demo li:nth-child(2) .sp__item {
  animation-delay: 140ms, 360ms;
}

.sp.is-demo li:nth-child(3) .sp__item {
  animation-delay: 280ms, 720ms;
}

@keyframes sp-slide {
  0% {
    transform: translateY(-16px);
  }
  8% {
    transform: translateY(-16px);
  }
  34% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes sp-walk {
  0% {
    background-color: transparent;
  }
  40% {
    background-color: #ffd23f;
  }
  58% {
    background-color: transparent;
  }
  100% {
    background-color: transparent;
  }
}
.sp.is-demo .sp__caret {
  animation-name: sp-turn;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes sp-turn {
  0% {
    transform: rotate(0deg);
  }
  6% {
    transform: rotate(0deg);
  }
  26% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(180deg);
  }
}
@media (max-width: 340px) {
  .sp__wrap {
    padding-bottom: 100px;
  }
  .sp__group {
    height: 40px;
  }
  .sp__t {
    font-size: 12px;
    line-height: 18px;
  }
  .sp__menu {
    top: 44px;
  }
  .sp__item {
    height: 28px;
    font-size: 11px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp.is-demo .sp__menu,
  .sp.is-demo .sp__item,
  .sp.is-demo .sp__caret {
    animation: none !important;
  }
  .sp:not(.is-demo) .sp__item,
  .sp:not(.is-demo) .sp__caret {
    transition: none !important;
  }
  .sp.is-demo .sp__menu {
    opacity: 1;
  }
  .sp.is-demo .sp__item {
    transform: translateY(0);
  }
}
