:root {
  --muted: #94a3b8;
  --bg: #f7f7fb;
  --panel: #fff;
  --accent: #6366f1;
  --ok: #16a34a;
  --bad: #ef4444;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: var(--bg);
  color: #0f172a;
}

.wrap {
  max-width: 900px;
  margin: 24px auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid #e6edf3;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
}

h1 {
  margin: 0;
  font-size: 18px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  background: #eef2ff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  font-size: 1rem !important;
}

.pill.dragging {
  opacity: 0.5;
}

.phrase {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.9;
}

.dropzone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 34px;
  border: 2px dotted #cbd5e1;
  margin: 0 0px;
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.dropzone.can-drop {
  border-color: var(--ok);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
  background: #f6fffb;
}

.dropzone.filled {
  background: #f8fafc;
  border: 2px solid #94a3b8;
}

.dropzone.correct {
  background: #ecfdf5;
  border: 2px solid var(--ok);
}

.dropzone.incorrect {
  background: #fff1f2;
  border: 2px solid var(--bad);
}

.revealed {
  color: var(--bad);
  font-weight: 700;
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7df;
  background: #fff;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.hint {
  margin-top: 8px;
  color: #475569;
  font-size: 13px;
}

.preview {
  margin-top: 8px;
  font-size: 18px;
}

.small {
  font-size: 13px;
  color: #64748b;
}
