/* Four Acacia Trees */
.sort-top { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: end; margin-bottom: 18px; }
.sort-giraffe { align-self: end; }
.card-col { display: grid; gap: 12px; min-width: 0; }

.data-card {
  background: #fff; border: 2px solid var(--blue); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 6px 18px rgba(33, 26, 82, .14);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  position: relative; z-index: 2; transition: transform .2s ease, opacity .2s ease, box-shadow .2s;
}
.data-card .data-text { font-size: clamp(1.1rem, 1.2vw + .8rem, 1.35rem); font-weight: 650; margin: 0; color: var(--text); }
.data-card.dragging { cursor: grabbing; transition: none; box-shadow: 0 14px 30px rgba(33, 26, 82, .25); opacity: .95; }
.data-card.done { cursor: default; }
.data-card.enter { animation: cardIn .35s ease; }
@keyframes cardIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.mixed-tag { display: inline-block; margin-left: 8px; background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .7rem; letter-spacing: .04em; vertical-align: 1px; }

.trees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tree {
  appearance: none; font: inherit; color: inherit; cursor: pointer;
  background: var(--cb); border: 2px solid transparent; border-radius: 16px;
  padding: 12px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tree:hover, .tree.over { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.tree .tree-svg { width: 100%; max-width: 170px; height: auto; display: block; }
.tree-label { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tree-label .lvl { background: #fff; }
.tree-label small { color: var(--muted); font-size: .8rem; }
.tree.correct { border-color: var(--good); box-shadow: 0 0 0 4px rgba(31, 122, 69, .25); }
.tree.wrong { border-color: var(--bad); animation: shake .45s ease; }
.trees.locked .tree:not(.correct):not(.wrong) { opacity: .55; }

@media (max-width: 720px) {
  .sort-top { grid-template-columns: 84px 1fr; gap: 12px; }
  .trees { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tree .tree-svg { max-width: 120px; }
}
