.tzq-game-sorting {
  margin: 0 auto;
  font-family: "Outfit", sans-serif;
  color: #333;
  padding: 20px;
  background: #fff;
  border-radius: var(--tzq-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.tzq-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}
.tzq-game-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2d3748;
}
.tzq-game-stats {
  display: flex;
  gap: 15px;
}
.tzq-stat-badge {
  background: #f7fafc;
  padding: 8px 15px;
  border-radius: var(--tzq-radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.tzq-task-info {
  text-align: center;
  margin-bottom: 2rem;
}
.tzq-task-info h3 {
  color: #4a5568;
  margin-bottom: 0.5rem;
}
.tzq-task-info p {
  color: #718096;
  margin: 0;
}
.tzq-sort-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: var(--tzq-radius-md);
  min-height: 200px;
  user-select: none;
}
.tzq-sort-item {
  background: white;
  padding: 15px 20px;
  border-radius: var(--tzq-radius-md);
  border: 1px solid var(--tzq-primary-light);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.tzq-sort-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.tzq-sort-item.tzq-dragging {
  opacity: 0.5;
  background: #edf2f7;
  cursor: grabbing;
  transform: scale(0.98);
}
.tzq-sort-item.tzq-over {
  border: 1px solid var(--tzq-primary-light);
  transform: translateY(5px);
}
.tzq-sort-item.selected {
  border: 1px solid var(--tzq-primary-light);
  background: #ebf8ff;
}
.tzq-sort-handle {
  color: #a0aec0;
  cursor: grab;
  font-size: 1.2rem;
}
.tzq-sort-text {
  font-weight: 500;
  font-size: 1.1rem;
  flex: 1;
}
.tzq-sort-item.tzq-correct-item {
  background: #f0fff4;
  border-color: #48bb78;
  color: #2f855a;
}
.tzq-sort-item.tzq-wrong-item {
  animation: shake 0.5s;
  background: #fff5f5;
  border-color: #fc8181;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}
.tzq-game-controls {
  margin-top: 2rem;
  text-align: center;
}
.tzq-btn {
  padding: 12px 30px;
  border: 1px solid var(--tzq-primary-light);
  border-radius: var(--tzq-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.tzq-btn--primary {
  background: #4299e1;
  color: white;
  box-shadow: 0 4px 10px rgba(66, 153, 225, 0.3);
}
.tzq-btn--primary:hover {
  background: #3182ce;
  transform: translateY(-2px);
}
.tzq-btn--secondary {
  background: #48bb78;
  color: white;
  box-shadow: 0 4px 10px rgba(72, 187, 120, 0.3);
}
.tzq-game-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  border-radius: var(--tzq-radius-md);
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 1000;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.tzq-game-feedback--success {
  background: #48bb78;
}
.tzq-game-feedback--error {
  background: #e53e3e;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (max-width: 600px) {
  .tzq-game-sorting {
    padding: 15px;
  }
  .tzq-sort-item {
    padding: 12px;
    font-size: 0.95rem;
  }
  .tzq-sort-handle {
    font-size: 1.5rem;
    padding: 0 10px 0 0;
  }
}
