html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.kb {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kb__hint {
  margin: 0;
  padding: 0 4px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(23, 20, 26, 0.72);
}

.kb__board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.kb__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 8px;
}

.kb__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: #17141a;
}

.kb__count {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #17141a;
  color: #ffd23f;
  font-weight: 700;
  font-size: 10px;
}

.kb__cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  overflow-y: auto;
}

.kb__card {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  color: #17141a;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  cursor: grab;
  touch-action: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kb__card:hover {
  transform: translateY(-2px) scale(1.02);
  transform-origin: center;
}

.kb__card--drag {
  cursor: grabbing;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.kb__tag {
  flex: 0 0 auto;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 9px;
  line-height: 1.6;
}

.kb__tag--b {
  background: #d6e2eb;
  color: #17141a;
}

.kb__tag--m {
  background: #93d9c0;
  color: #17141a;
}

.kb__tag--o {
  background: #f4b3c6;
  color: #17141a;
}

.kb__txt {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kb__line {
  height: 28px;
  border-radius: 4px;
  background: rgba(10, 79, 232, 0.4);
  list-style: none;
  transform: scaleX(0.92);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kb__meta {
  margin: 0;
  padding: 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.kb__state {
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
}

.kb__unit {
  font-weight: 400;
  font-size: 11px;
  color: rgba(23, 20, 26, 0.72);
}

@media (max-width: 340px) {
  .kb {
    max-width: 280px;
    gap: 4px;
  }
  .kb__hint {
    font-size: 10px;
  }
  .kb__card {
    font-size: 10px;
    padding: 4px;
  }
  .kb__cards {
    max-height: 66px;
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kb__card,
  .kb__line {
    transition: none !important;
    transform: none !important;
  }
}
