:root {
  --roxo: #9C59D1;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* LISTA */
.demo-item {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.demo-item.done {
  border-color: #4CAF50;
}

/* TEXTO */
.line {
  margin: 6px 0;
  min-height: 2em;
}

/* DROP */
.dropzone {
  border-bottom: 1px dotted var(--roxo);
  min-height: 2.2em;
  transition: border 0.15s ease;
}

.dropzone.correct {
  border-bottom: 2px solid #4CAF50;
}

.dropzone.wrong {
  border-bottom: 2px solid #E53935;
}

/* BLOCOS */
.options {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draggable {
  background: rgba(156, 89, 209, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: grab;

  user-select: none;
  touch-action: none;

  position: relative;
  transition: transform 0.1s ease;
}

.dragging {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform: scale(1.08);
}

.locked {
  opacity: 0.5;
  cursor: default;
}

/* BOTÃO */
.back-btn {
  margin-bottom: 16px;
  cursor: pointer;
  color: var(--roxo);
}

.demo-item {
  display: flex;
  flex-direction: column;
}
