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

.cp {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.cp__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 247, 230, 0.25);
  background: rgba(255, 247, 230, 0.06);
  color: #fff7e6;
  padding: 8px 12px;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cp__kbd {
  margin-left: 4px;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.12);
}

.cp__overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

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

.cp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cp__panel {
  position: relative;
  box-sizing: border-box;
  width: min(230px, 82vw);
  background: #232028;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 8px;
  transform: scale(0.92);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cp__overlay.is-open .cp__panel {
  transform: scale(1);
}

.cp__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.12);
  color: rgba(255, 247, 230, 0.5);
  margin: 0 0 4px;
}

.cp__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff7e6;
  font: inherit;
  font-size: 12px;
  padding: 4px 0;
}

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

.cp__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 132px;
  overflow: hidden;
}

.cp__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  color: rgba(255, 247, 230, 0.75);
  font-size: 12px;
  cursor: pointer;
}

.cp__ic {
  flex: 0 0 auto;
  color: rgba(255, 247, 230, 0.5);
}

.cp__item.is-active {
  background: rgba(255, 247, 230, 0.1);
  color: #fff7e6;
}

.cp__item.is-active .cp__ic {
  color: #fff7e6;
}

.cp__item[hidden] {
  display: none;
}

.cp__empty {
  font-size: 11px;
  color: rgba(255, 247, 230, 0.5);
  padding: 8px;
  margin: 0;
}

.cp__overlay.is-demo {
  animation: cp-open 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.cp__overlay.is-demo .cp__panel {
  animation: cp-panel 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes cp-open {
  0%, 100% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
}
@keyframes cp-panel {
  0%, 100% {
    transform: scale(0.92);
  }
  20% {
    transform: scale(1);
  }
  80% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .cp__trigger {
    font-size: 11px;
    padding: 4px 8px;
  }
  .cp__panel {
    width: min(210px, 80vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp__overlay.is-demo, .cp__overlay.is-demo .cp__panel {
    animation: none !important;
  }
  .cp__overlay, .cp__panel {
    transition: none;
  }
}
