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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cb {
  position: relative;
  width: min(240px, 76vw);
}

.cb__input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 247, 230, 0.22);
  background: rgba(255, 247, 230, 0.06);
  color: #fff7e6;
  outline: none;
  transition: border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb.is-open .cb__input, .cb__input:focus {
  border-color: #2f6df6;
}

.cb__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0 4px;
  list-style: none;
  border-radius: 12px;
  background: #17141a;
  border: 1px solid rgba(255, 247, 230, 0.16);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1), max-height 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb.is-open .cb__list {
  opacity: 1;
  max-height: 132px;
  padding: 4px;
  transform: translateY(0);
  pointer-events: auto;
}

.cb__opt {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #fff7e6;
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cb__opt.is-active, .cb__opt:hover {
  background: rgba(47, 109, 246, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .cb__list, .cb__input {
    transition: none;
  }
}
