/* Движок «Сортировка по корзинам»: карточка сверху, корзины снизу. */

.item-holder {
  display: flex;
  justify-content: center;
  min-height: clamp(96px, 18vmin, 140px);
}

.item-card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(46, 42, 79, 0.16);
  padding: 18px 26px;
  font-size: clamp(24px, 5vmin, 34px);
  font-weight: 800;
  text-align: center;
  cursor: grab;
  touch-action: none;
}

/* Карточка с картинкой: рисунок сверху, подпись под ним. Без картинки
   ничего не меняется — подпись остаётся единственным содержимым. */
.item-card:has(.task-pic) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
}

.item-card:has(.task-pic) .item-name {
  font-size: clamp(17px, 3.2vmin, 22px);
}

.item-card .task-pic img {
  height: clamp(96px, 20vmin, 160px);
  box-shadow: none;
}

.item-card.is-dragging {
  cursor: grabbing;
  box-shadow: 0 18px 40px rgba(46, 42, 79, 0.28);
  z-index: 3;
  position: relative;
}

.bins {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--bins, 2), 1fr);
}

@media (max-width: 560px) {
  .bins {
    grid-template-columns: 1fr 1fr;
  }
}

.bin {
  border: 3px dashed rgba(46, 42, 79, 0.25);
  border-radius: 22px;
  min-height: clamp(84px, 16vmin, 120px);
  padding: 14px;
  font: inherit;
  font-size: clamp(17px, 3vmin, 21px);
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.bin.is-over {
  border-color: var(--theme-accent);
  background: #fff;
  transform: scale(1.03);
}
