html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

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

.sp__field {
  position: relative;
  box-sizing: border-box;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 16px;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.sp__mag {
  display: inline-flex;
  color: rgba(255, 247, 230, 0.5);
}

.sp__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff7e6;
}

.sp__input::placeholder {
  color: rgba(255, 247, 230, 0.4);
}

.sp__input:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 4px;
  border-radius: 8px;
}

.sp.is-demo .sp__input::placeholder {
  color: transparent;
}

.sp__ghost {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: #fff7e6;
  opacity: 0;
  pointer-events: none;
}

.sp__panel {
  position: relative;
  box-sizing: border-box;
  height: 84px;
  margin: 8px 0 0;
  clip-path: inset(0 0 100% 0 round 16px);
}

.sp__sheet {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.sp__rows {
  position: relative;
  box-sizing: border-box;
  padding: 8px;
}

.sp.is-open .sp__panel {
  clip-path: inset(0 0 0 0 round 16px);
}

.sp__opt {
  box-sizing: border-box;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 247, 230, 0.82);
  white-space: nowrap;
  cursor: pointer;
}

.sp__opt.is-at {
  background: rgba(255, 247, 230, 0.12);
}

.sp.is-demo .sp__panel {
  animation: panel-open 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.sp.is-demo .sp__ghost {
  animation: ghost-cut 2s steps(1, end) infinite;
}

@keyframes panel-open {
  0%, 42% {
    clip-path: inset(0 0 0 0 round 16px);
  }
  58%, 74% {
    clip-path: inset(0 0 100% 0 round 16px);
  }
  90%, 100% {
    clip-path: inset(0 0 0 0 round 16px);
  }
}
@keyframes ghost-cut {
  0%, 49% {
    opacity: 1;
  }
  50%, 87% {
    opacity: 0;
  }
  88%, 100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sp.is-demo .sp__panel,
  .sp.is-demo .sp__ghost {
    animation: none !important;
  }
  .sp__ghost {
    opacity: 0;
  }
}
