.question-container {
  max-width: 900px;
  margin: 0 auto;
}

.question-number {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.question-text {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.top-3-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.drop-zone {
  background: var(--bg-light);
  border: 3px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.drop-zone[data-rank="1"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
}

.drop-zone[data-rank="2"] {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
}

.drop-zone[data-rank="3"] {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
}

.drop-zone.drag-over {
  border-style: solid;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.drop-zone[data-rank="1"].drag-over {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
}

.drop-zone[data-rank="2"].drag-over {
  border-color: var(--silver);
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
}

.drop-zone[data-rank="3"].drag-over {
  border-color: var(--bronze);
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
}

.rank-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.medal {
  font-size: 1.5rem;
}

.selected-person {
  width: 100%;
  text-align: center;
}

.selected-person:empty::before {
  content: '+';
  font-size: 2rem;
  color: var(--border);
}

.selected-person.filled {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

.selected-person.filled[data-rank="1"] {
  border: 2px solid var(--gold);
}

.selected-person.filled[data-rank="2"] {
  border: 2px solid var(--silver);
}

.selected-person.filled[data-rank="3"] {
  border: 2px solid var(--bronze);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.person-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.person-card:active {
  transform: translateY(-2px);
}

.person-card.selected {
  border: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.05));
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.person-card.selected:hover {
  border-color: var(--error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.person-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.rank-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 2rem;
  background: white;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.validation-message {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.validation-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.validation-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.navigation-buttons .btn {
  flex: 1;
}

.completion-screen {
  text-align: center;
  padding: 3rem 2rem;
}

.completion-content h2 {
  font-size: 2rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.completion-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.completion-content .btn {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .top-3-selection {
    grid-template-columns: 1fr;
  }

  .persons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .person-card {
    padding: 1rem;
  }

  .person-name {
    font-size: 1rem;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .navigation-buttons {
    flex-direction: column;
  }
}

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

  .drop-zone {
    min-height: 120px;
  }
}
