.quiz-scores-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 15px;
}

.quiz-scores-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 20px;
  font-weight: 600;
}

.quiz-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.quiz-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.quiz-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.quiz-summary span {
  font-weight: 500;
  font-size: 0.9rem;
}

.quiz-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quiz-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.65rem, 2.5vw, 0.8rem);
  min-width: 500px;
}

.quiz-table th,
.quiz-table td {
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
}

.quiz-table th {
  background: var(--accent-primary);
  color: var(--text-light);
}

.quiz-table tr {
  border-bottom: 1px solid var(--neutral-grey);
}

.quiz-leader-row {
  background: var(--accent-secondary);
  font-weight: bold;
}

.quiz-overall {
  margin: 30px 0;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.quiz-overall-table {
  width: 100%;
  min-width: 400px;
}

.quiz-overall-table th,
.quiz-overall-table td {
  padding: 8px;
  text-align: center;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
}

.quiz-overall-table th {
  background: var(--accent-primary);
  color: var(--text-light);
}

.quiz-overall-top {
  background: var(--accent-secondary);
  font-weight: bold;
}

.quiz-diff-neg {
  color: #dc2626;
  font-weight: bold;
}

@media (max-width: 600px) {
  .quiz-scores-container {
    padding: 10px;
  }

  .quiz-card {
    padding: 12px;
  }

  .quiz-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-summary span {
    width: 100%;
  }

  .quiz-table th,
  .quiz-table td {
    padding: 6px;
  }

  .quiz-overall {
    padding: 12px;
  }
}