@charset "UTF-8";
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);
}

.cm {
  padding-bottom: 72px;
  user-select: none;
  -webkit-user-select: none;
}

.cm__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 20px;
  font-weight: 600;
}

.cm__list > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cm__list > li + li::before {
  content: "›";
  display: inline-flex;
  justify-content: center;
  width: 8px;
  color: rgba(255, 247, 230, 0.45);
}

.cm__list a {
  color: rgba(255, 247, 230, 0.82);
  text-decoration: none;
  border-radius: 4px;
}

.cm__list a:hover {
  color: #fff7e6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cm__list a:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.cm__cur {
  color: #fff7e6;
  font-weight: 800;
}

.cm__slot {
  position: relative;
}

.cm__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm__dots:hover {
  background: rgba(255, 247, 230, 0.26);
}

.cm__dots:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.cm__slot.is-open .cm__dots {
  background: #2f6df6;
}

.cm__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2;
  min-width: 132px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 12px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 220ms;
}

.cm__slot.is-open .cm__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
}

.cm__menu li {
  display: block;
}

.cm__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #17141a;
  text-decoration: none;
  font-size: 12px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.cm__menu a:hover {
  background-color: rgba(47, 109, 246, 0.18);
  color: #17141a;
  text-decoration: none;
}

.cm__menu a:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.cm__menu svg {
  flex: none;
  color: rgba(23, 20, 26, 0.55);
}

.cm.is-demo .cm__dots {
  animation-name: cm-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes cm-press {
  0%, 4% {
    transform: scale(1);
  }
  10% {
    transform: scale(0.84);
  }
  16%, 100% {
    transform: scale(1);
  }
}
.cm.is-demo .cm__menu {
  visibility: visible;
  animation-name: cm-cut, cm-slide;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}

@keyframes cm-cut {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  84%, 100% {
    opacity: 0;
  }
}
@keyframes cm-slide {
  0%, 14% {
    transform: translateY(-10px);
  }
  42%, 70% {
    transform: translateY(0);
  }
  84%, 100% {
    transform: translateY(-10px);
  }
}
.cm.is-demo .cm__menu li:nth-child(1) a,
.cm.is-demo .cm__menu li:nth-child(2) a {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.cm.is-demo .cm__menu li:nth-child(1) a {
  animation-name: cm-hi1;
}

.cm.is-demo .cm__menu li:nth-child(2) a {
  animation-name: cm-hi2;
}

@keyframes cm-hi1 {
  0% {
    background-color: rgba(47, 109, 246, 0);
  }
  46% {
    background-color: rgba(47, 109, 246, 0.18);
  }
  60%, 100% {
    background-color: rgba(47, 109, 246, 0);
  }
}
@keyframes cm-hi2 {
  0% {
    background-color: rgba(47, 109, 246, 0);
  }
  60% {
    background-color: rgba(47, 109, 246, 0.18);
  }
  74%, 100% {
    background-color: rgba(47, 109, 246, 0);
  }
}
@media (max-width: 340px) {
  .cm {
    padding-bottom: 68px;
  }
  .cm__menu {
    min-width: 120px;
  }
  .cm__dots {
    width: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm.is-demo .cm__dots,
  .cm.is-demo .cm__menu,
  .cm.is-demo .cm__menu a {
    animation: none !important;
  }
  .cm.is-demo .cm__menu {
    opacity: 1;
    transform: none;
  }
  .cm__dots, .cm__menu {
    transition: none;
  }
}
