.quiz-card.basket-card {
  max-width: 720px;
}

.target-banner {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-dark);
  background: #fff0eb;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.target-banner #targetNum {
  font-size: 1.7rem;
  color: var(--secondary);
}

.basket-zone {
  background: #f7fbff;
  border: 3px dashed #a9c9e8;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.basket-zone.wrong-flash {
  border-color: #ff5c5c;
  background: #fff0f0;
}

.basket-label {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.basket-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-content: flex-start;
  min-height: 96px;
}

.basket-hint {
  align-self: center;
  color: #9aa4b2;
  font-weight: bold;
  padding: 20px 0;
}

.tray-label {
  font-weight: bold;
  color: var(--text);
  margin-bottom: 8px;
  text-align: left;
}

.bag-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 110px;
  background: #fbfbfb;
  border-radius: 14px;
  padding: 12px;
}

.bag-piece {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 6px 4px;
  border-radius: 12px;
  transition: transform 0.12s ease;
}

.bag-piece:hover {
  transform: translateY(-2px);
}

.bag-piece.dragging {
  cursor: grabbing;
  z-index: 999;
}

.bag-piece.in-basket {
  background: #eafcef;
}

.bag-visual {
  position: relative;
  font-size: 2.6rem;
  line-height: 1;
}

.bag-badge {
  position: absolute;
  bottom: -6px;
  right: -10px;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 999px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bag-fruit-label {
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--text);
  text-align: center;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
}

@media (max-width: 480px) {
  .bag-piece { width: 72px; }
  .bag-visual { font-size: 2.2rem; }
}
