.quiz-match-audio-screen .quiz-match-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: var(--space-6) auto 0;
  max-width: 800px;
}
.quiz-match-draggables-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.quiz-match-targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-4);
  padding-top: var(--space-6);
}
.quiz-match-drop-target {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: all var(--transition-fast);
  animation-duration: 0.5s;
  background-color: white; /* Ensure consistent background */
  box-shadow: var(--shadow-sm); /* Add subtle shadow */
}
.quiz-match-drop-target.drag-over {
  box-shadow: var(--shadow-lg); /* Enhance shadow on drag over */
}
.quiz-match-audio-btn {
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--gray-300);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm); /* Add shadow */
}
.quiz-match-audio-btn:hover, .quiz-match-audio-btn:focus-visible {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05); /* Slight scale on hover */
  box-shadow: var(--shadow); /* Enhance shadow on hover */
}
.quiz-match-audio-btn.playing {
  background-color: var(--primary);
  color: white;
  animation: pulse 1.2s infinite;
  box-shadow: var(--shadow-lg); /* Stronger shadow when playing */
}
.quiz-match-audio-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.quiz-match-drop-zone {
  flex-grow: 1;
  position: relative;
  min-height: 52px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3); /* Adjusted padding */
  box-sizing: border-box;
}
.quiz-match-drop-target.drag-over .quiz-match-drop-zone {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: scale(1.02); /* Slight scale on drag over */
}
.quiz-match-draggable-word {
  padding: var(--space-2) var(--space-4);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: grab;
  font-size: var(--font-size-lg);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  color: var(--gray-800);
  animation-duration: 0.5s;
  position: relative; /* Added for potential future absolute positioning */
  z-index: 1; /* Ensure it's above other elements when dragging */
}
.quiz-match-draggable-word:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.quiz-match-draggable-word.dragging {
  opacity: 0.7;
  cursor: grabbing;
  box-shadow: var(--shadow-xl);
  transform: scale(1.05) rotate(2deg); /* Add a slight rotation for visual flair */
  z-index: 1000; /* Bring to front when dragging */
}

/* STATES for Quiz Match Audio */
.quiz-match-drop-target.incorrect,
.quiz-match-draggable-word.incorrect {
  animation-name: shake;
}
.quiz-match-drop-target.incorrect {
  border-color: var(--error);
  background-color: var(--error-light);
}
.quiz-match-drop-target.correct {
  border-color: var(--success);
  background-color: var(--success-light);
}
.quiz-match-drop-target.correct.matched {
  border-color: var(--success);
}
.quiz-match-drop-target.correct.matched .quiz-match-drop-zone {
  background-color: var(--success-light);
  border-color: var(--success);
  border-style: solid; /* Changed to solid for correct state */
}
.quiz-match-drop-zone .quiz-match-draggable-word.correct.matched {
  position: static; /* Changed to static to flow naturally */
  transform: none; /* Remove transform */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: default;
  color: var(--success-dark); /* Couleur spécifique pour le texte sur le fond vert clair */
  font-weight: 700; /* Texte plus gras pour une meilleure visibilité */
  white-space: normal; /* Allow text to wrap */
  text-align: center; /* Center the text within the drop zone */
  width: 100%; /* Take full width of the drop zone */
}
