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

.pal {
  box-sizing: border-box;
  width: min(264px, 88vw);
  padding: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.pal__bar {
  box-sizing: border-box;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(23, 20, 26, 0.05);
}

.pal__mag {
  display: inline-flex;
  color: rgba(23, 20, 26, 0.42);
}

.pal__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

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

.pal__kbd {
  flex: 0 0 auto;
  height: 14px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 20, 26, 0.22);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  color: rgba(23, 20, 26, 0.5);
}

.pal__box {
  position: relative;
  box-sizing: border-box;
  height: 96px;
  margin: 8px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.pal__box::-webkit-scrollbar {
  width: 0;
}

.pal__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 24px;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.14);
  opacity: 0;
}

.pal__track {
  position: relative;
  z-index: 1;
}

.pal__opt {
  box-sizing: border-box;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
  cursor: pointer;
}

.pal__opt.is-at {
  background: rgba(47, 109, 246, 0.14);
  color: #2f6df6;
}

.pal.is-demo .pal__cursor {
  opacity: 1;
  animation: cur-run 2s ease-out infinite;
}

.pal.is-demo .pal__track {
  animation: track-follow 2s ease-out infinite;
}

@keyframes cur-run {
  0% {
    transform: translateY(0);
  }
  28%, 66% {
    transform: translateY(72px);
  }
  90%, 100% {
    transform: translateY(0);
  }
}
@keyframes track-follow {
  0%, 28% {
    transform: translateY(0);
  }
  52%, 66% {
    transform: translateY(-72px);
  }
  90%, 100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pal.is-demo .pal__cursor,
  .pal.is-demo .pal__track {
    animation: none !important;
  }
  .pal.is-demo .pal__cursor {
    opacity: 1;
  }
}
