@charset "UTF-8";
.quiz-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.quiz-wrapper .btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.78rem 1.12rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.12);
}
.quiz-wrapper .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}
.quiz-wrapper .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.14);
}
.quiz-wrapper .btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.3);
  outline-offset: 2px;
}
.quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: #fff;
}
.quiz-wrapper .btn.btn-primary:hover {
  filter: brightness(1.06);
}
.quiz-wrapper .btn.btn-secondary {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}
.quiz-wrapper .btn.btn-secondary:hover {
  background: #e5e7eb;
}

.theme-blue .quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #2b80d9 0%, #1f67bb 100%);
  border-color: #1f67bb;
}

.theme-green .quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #34b56a 0%, #249653 100%);
  border-color: #249653;
}

.theme-pink .quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #ff5ea8 0%, #e73f8e 100%);
  border-color: #e73f8e;
}

.theme-purple .quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #9a53db 0%, #7f36c1 100%);
  border-color: #7f36c1;
}

.theme-orange .quiz-wrapper .btn.btn-primary {
  background: linear-gradient(180deg, #ff9f32 0%, #ea7e06 100%);
  border-color: #ea7e06;
}

.quiz-start-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.85rem;
}

.quiz-nickname-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
  background: #fff;
  color: #111827;
}

.quiz-nickname-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.quiz-progress {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  height: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: #ffcb2b;
  border-radius: 99px;
  transition: width 0.3s ease;
}

.theme-blue .quiz-progress-bar {
  background: #4a90e2;
}

.theme-green .quiz-progress-bar {
  background: #4caf50;
}

.theme-pink .quiz-progress-bar {
  background: #ff69b4;
}

.theme-purple .quiz-progress-bar {
  background: #9c27b0;
}

.theme-orange .quiz-progress-bar {
  background: #ff9800;
}

.quiz-question {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.quiz-question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.quiz-question-image {
  width: 100%;
  max-height: 260px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.quiz-option {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  text-align: left;
  cursor: pointer;
  font-size: 0.97rem;
  color: #374151;
  transition: all 0.18s;
  line-height: 1.5;
}
.quiz-option:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #f3f4f6;
}
.quiz-option:disabled {
  cursor: default;
}
.quiz-option.correct {
  border-color: #4caf50;
  background: #dcfce7;
  color: #15803d;
  font-weight: 600;
}
.quiz-option.wrong {
  border-color: #ef4444;
  background: #fee2e2;
  color: #b91c1c;
}
.quiz-option.selected:not(.correct):not(.wrong) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.quiz-feedback {
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.quiz-feedback.visible {
  display: block;
}
.quiz-feedback.correct {
  background: #dcfce7;
  color: #15803d;
}
.quiz-feedback.wrong {
  background: #fee2e2;
  color: #b91c1c;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quiz-nav-counter {
  font-size: 0.9rem;
  color: #6b7280;
}

.quiz-results {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}
.quiz-results-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #1f2937;
}
.quiz-results-label {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.quiz-results-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.quiz-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quiz-action-form {
  display: inline;
}

.quiz-leaderboard {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.quiz-leaderboard-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.quiz-leaderboard-empty {
  color: #6b7280;
  font-size: 0.9rem;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 0.8rem;
}

.quiz-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.quiz-leaderboard-table thead th {
  text-align: left;
  padding: 8px 10px;
  color: #6b7280;
  font-weight: 700;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.quiz-leaderboard-table tbody td {
  padding: 8px 10px;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
}

.quiz-leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.quiz-leaderboard-table tbody tr:nth-child(even):not(.is-me) {
  background: #fcfcfd;
}

.quiz-leaderboard-table tbody tr.is-me {
  background: #eff6ff;
  font-weight: 700;
}

.quiz-leaderboard-table .quiz-rank {
  font-weight: 800;
  color: #4b5563;
  white-space: nowrap;
}

.quiz-leaderboard-table tbody tr:nth-child(1) .quiz-rank::before {
  content: "🥇 ";
}

.quiz-leaderboard-table tbody tr:nth-child(2) .quiz-rank::before {
  content: "🥈 ";
}

.quiz-leaderboard-table tbody tr:nth-child(3) .quiz-rank::before {
  content: "🥉 ";
}

.quiz-leaderboard-table .quiz-time {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .quiz-wrapper {
    padding-bottom: 2.5rem;
  }
  .quiz-results {
    padding: 1.2rem;
  }
  .quiz-leaderboard-table {
    font-size: 0.84rem;
  }
  .quiz-leaderboard-table thead th,
  .quiz-leaderboard-table tbody td {
    padding: 7px 8px;
  }
}/*# sourceMappingURL=board-quiz.css.map */