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

.kb {
  position: relative;
  box-sizing: border-box;
  width: min(280px, 88vw);
  display: flex;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.kb__col {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
}

.kb__head {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 247, 230, 0.55);
  display: flex;
  align-items: center;
  gap: 4px;
}

.kb__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
  font-size: 9px;
  color: #fff7e6;
}

.kb__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb__card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 247, 230, 0.06);
  border: 1px solid rgba(255, 247, 230, 0.12);
  border-radius: 8px;
  padding: 8px;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.kb__card--moving {
  opacity: 0;
  transform: scale(0.9);
}

.kb__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.kb__dot--warn {
  background: #d0bd9f;
}

.kb__dot--info {
  background: #6ec8ff;
}

.kb__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10px;
  color: #fff7e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb__move {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 230, 0.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 4px;
}

.kb__move:hover {
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
}

.kb__ic {
  flex: 0 0 auto;
  color: #4cd4a6;
}

.kb__card--done {
  opacity: 0.85;
}

.kb__ghost {
  position: absolute;
  top: 20px;
  left: 0;
  box-sizing: border-box;
  width: 74px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.1);
  border: 1px dashed rgba(255, 247, 230, 0.3);
  font-size: 9px;
  color: rgba(255, 247, 230, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
}

.kb__ghost.is-demo {
  animation: kb-move 2s linear infinite;
}

@keyframes kb-move {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0.9;
  }
  45% {
    transform: translateX(96px) translateY(-3px);
    opacity: 0.9;
  }
  90% {
    transform: translateX(192px) translateY(0);
    opacity: 0.9;
  }
  96% {
    transform: translateX(192px) translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .kb__label {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kb__ghost.is-demo {
    animation: none !important;
    opacity: 0;
  }
  .kb__card {
    transition: none;
  }
}
