/* ===== Shape Filler - Game Styles ===== */

.outline-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 12px 0;
  padding: 20px;
}

.puzzle-grid {
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.puzzle-grid.drop-highlight {
  border-color: var(--btn-primary);
  box-shadow: 0 0 16px rgba(30, 136, 229, 0.3);
}

.piece-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  min-height: 24px;
  margin-bottom: 4px;
}

.choices-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.shape-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border: 3px solid #e0e0e0;
  border-radius: var(--radius-round);
  background: white;
  cursor: grab;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  user-select: none;
  touch-action: none;
}

.shape-choice:hover {
  border-color: var(--btn-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.shape-choice:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.shape-choice--selected {
  border-color: var(--btn-primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}

.shape-choice--correct {
  border-color: var(--correct);
  background: rgba(102, 187, 106, 0.08);
  animation: pop-in 0.3s ease;
  pointer-events: none;
  opacity: 0.5;
}

.shape-choice--incorrect {
  border-color: var(--incorrect);
  animation: wiggle 0.4s ease;
  opacity: 0.5;
  pointer-events: none;
}

.shape-choice--dragging {
  opacity: 0.3;
  transform: scale(0.95);
}

.shape-choice-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Drag ghost (touch + mouse) */
.drag-ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.9;
  transform: scale(1.1);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
  transition: none;
}

@media (max-width: 600px) {
  .choices-row {
    gap: 10px;
  }

  .shape-choice {
    padding: 8px;
  }

  .outline-stage {
    min-height: 160px;
    padding: 12px;
  }

  .puzzle-grid {
    padding: 4px;
  }
}
