/* Quiz Engine Styles */

#quiz-container {
  padding: 40px 0 80px;
  min-height: 60vh;
}

#results-container {
  padding: 40px 0 80px;
}

/* Progress Bar */
.quiz-progress {
  margin-bottom: 40px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--card-color, #0D9488), #00C9A7);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Question */
.quiz-question {
  margin-bottom: 40px;
}

.question-text {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Answer Options */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-option:hover {
  border-color: var(--card-color, #0D9488);
  background: rgba(var(--card-color-rgb, 13, 148, 136), 0.06);
  transform: translateX(4px);
}

.answer-option.selected {
  border-color: var(--card-color, #0D9488);
  background: rgba(var(--card-color-rgb, 13, 148, 136), 0.1);
}

.answer-option.selected .option-letter {
  background: var(--card-color, #0D9488);
  color: #FFFFFF;
}

.option-letter {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #64748B;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-text {
  font-size: 16px;
  color: #1E293B;
  line-height: 1.4;
}

/* Likert Scale */
.answer-options.likert {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.answer-options.likert .answer-option {
  flex-direction: column;
  text-align: center;
  padding: 16px 12px;
  flex: 1;
  min-width: 100px;
  max-width: 180px;
}

.answer-options.likert .option-letter {
  margin-bottom: 4px;
}

/* Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

.quiz-nav .btn {
  min-width: 140px;
  justify-content: center;
}

.quiz-nav .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Results */
.results-header {
  text-align: center;
  margin-bottom: 32px;
}

.results-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #1E293B;
}

/* Score Circle */
.score-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.score-circle svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.bg-circle {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 8;
}

.progress-circle {
  fill: none;
  stroke: var(--card-color, #0D9488);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--card-color, #0D9488);
  line-height: 1;
}

.score-label {
  font-size: 14px;
  color: #64748B;
  font-weight: 500;
}

/* Result Title & Description */
.result-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 16px;
}

.result-description {
  text-align: center;
  font-size: 16px;
  color: #64748B;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Dimension Results */
.dimension-results {
  max-width: 560px;
  margin: 0 auto 40px;
}

.dimension-item {
  margin-bottom: 20px;
}

.dimension-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.dimension-name {
  color: #1E293B;
}

.dimension-value {
  color: var(--card-color, #0D9488);
}

.dimension-bar {
  height: 10px;
  background: #E2E8F0;
  border-radius: 5px;
  overflow: hidden;
}

.dimension-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--card-color, #0D9488), #00C9A7);
  border-radius: 5px;
  transition: width 1s ease;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.insight-card {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--card-color, #0D9488);
}

.insight-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.insight-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* Results Actions */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .question-text {
    font-size: 20px;
  }

  .answer-options.likert {
    flex-direction: column;
  }

  .answer-options.likert .answer-option {
    max-width: 100%;
    flex-direction: row;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .results-header h2 {
    font-size: 28px;
  }

  .result-title {
    font-size: 22px;
  }

  .results-actions {
    flex-direction: column;
    align-items: center;
  }
}


/* =============================================
   ADAPTIVE TEST STYLES
   ============================================= */

/* Animate In */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

/* Stage Progress Bar (top pipeline) */
.stage-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 0 20px;
}

.stage-pip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.stage-pip.upcoming {
  background: #E2E8F0;
  color: #94A3B8;
}

.stage-pip.active {
  background: var(--card-color, #0D9488);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(var(--card-color-rgb, 13, 148, 136), 0.2);
}

.stage-pip.completed {
  background: var(--card-color, #0D9488);
  color: #FFFFFF;
}

.pip-number {
  line-height: 1;
}

.pip-line {
  width: 48px;
  height: 3px;
  background: #E2E8F0;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.pip-line.completed {
  background: var(--card-color, #0D9488);
}

/* Stage Intro Screen */
.stage-intro {
  text-align: center;
  padding: 48px 20px;
  max-width: 560px;
  margin: 0 auto;
}

.stage-intro-number {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--card-color, #0D9488);
  margin-bottom: 12px;
}

.stage-intro-title {
  font-size: 28px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 12px;
  line-height: 1.2;
}

.stage-intro-subtitle {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 8px;
  line-height: 1.5;
}

.stage-intro-description {
  font-size: 14px;
  color: #94A3B8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.stage-begin-btn {
  min-width: 180px;
}

/* CPT (Continuous Performance Test) */
.cpt-container {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.cpt-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 8px;
}

.cpt-instruction {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
  line-height: 1.5;
}

.cpt-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.cpt-stat {
  text-align: center;
}

.cpt-stat span {
  font-size: 28px;
  font-weight: 800;
  color: #1E293B;
}

.cpt-stat small {
  display: block;
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

.cpt-arena {
  margin-bottom: 20px;
}

.cpt-stimulus-area {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0F172A;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cpt-ready-text {
  font-size: 18px;
  color: #94A3B8;
  font-weight: 600;
}

.cpt-shape {
  font-size: 80px;
  line-height: 1;
  animation: cptPop 0.15s ease;
}

@keyframes cptPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cpt-star {
  color: #FBBF24;
}

.cpt-circle {
  color: #64748B;
}

.cpt-blank {
  color: #334155;
  font-size: 36px;
}

.cpt-tap-zone {
  margin-bottom: 16px;
}

.cpt-tap-btn {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card-color, #0D9488), #00C9A7);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 800;
  line-height: 120px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.cpt-tap-btn:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
}

.cpt-feedback {
  min-height: 24px;
  font-size: 16px;
  font-weight: 700;
}

.fb-correct {
  color: #22C55E;
}

.fb-miss {
  color: #EF4444;
}

.fb-wrong {
  color: #F97316;
}

/* CPT Results Summary */
.cpt-results {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.cpt-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 24px;
}

.cpt-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cpt-result-card {
  background: #F8FAFC;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.cpt-result-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--card-color, #0D9488);
  margin-bottom: 4px;
}

.cpt-result-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scenarios */
.scenario-instruction {
  font-size: 14px;
  color: #94A3B8;
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

.scenario-card {
  max-width: 600px;
  margin: 0 auto 24px;
}

.scenario-situation {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.scenario-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--card-color, #0D9488);
  margin-bottom: 8px;
}

.scenario-situation p {
  font-size: 16px;
  color: #1E293B;
  line-height: 1.6;
  margin: 0;
}

.scenario-prompt {
  text-align: center;
  margin-bottom: 16px;
  font-size: 15px;
  color: #475569;
}

.scenario-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-option {
  padding: 16px 20px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-option:hover {
  border-color: var(--card-color, #0D9488);
  background: rgba(var(--card-color-rgb, 13, 148, 136), 0.04);
  transform: translateX(4px);
}

.scenario-option.selected {
  border-color: var(--card-color, #0D9488);
  background: rgba(var(--card-color-rgb, 13, 148, 136), 0.1);
}

.scenario-option-text {
  font-size: 15px;
  color: #1E293B;
  line-height: 1.5;
}

/* Adaptive Results Enhancements */
.adaptive-results-header {
  margin-bottom: 16px;
}

.results-subtitle {
  font-size: 15px;
  color: #64748B;
  font-weight: 500;
  margin-top: 4px;
}

.severity-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: 0.3px;
}

.severity-description {
  text-align: center;
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
  max-width: 600px;
  margin: 16px auto 32px;
}

/* Result Sections */
.result-section {
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.result-section-header {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
  text-align: center;
}

/* Radar Chart */
.radar-chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

#radar-chart {
  max-width: 300px;
  max-height: 300px;
}

/* Stage Breakdown */
.stage-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 12px;
}

.stage-breakdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-color, #0D9488);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stage-breakdown-content {
  flex: 1;
}

.stage-breakdown-content strong {
  display: block;
  font-size: 15px;
  color: #1E293B;
  margin-bottom: 4px;
}

.stage-breakdown-content p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* Disclaimer */
.disclaimer-section {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 24px;
}

.disclaimer-section .result-section-header {
  color: #92400E;
  border-bottom-color: #FDE68A;
}

.disclaimer-text {
  font-size: 14px;
  color: #78350F;
  line-height: 1.7;
  margin: 0;
}

/* Adaptive Responsive */
@media (max-width: 768px) {
  .stage-progress-bar {
    margin-bottom: 24px;
  }

  .stage-pip {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .pip-line {
    width: 28px;
  }

  .stage-intro {
    padding: 32px 16px;
  }

  .stage-intro-title {
    font-size: 22px;
  }

  .cpt-stimulus-area {
    width: 160px;
    height: 160px;
  }

  .cpt-shape {
    font-size: 60px;
  }

  .cpt-tap-btn {
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 18px;
  }

  .cpt-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cpt-result-value {
    font-size: 22px;
  }

  .scenario-situation {
    padding: 16px;
  }

  .radar-chart-wrapper {
    padding: 8px 0;
  }

  #radar-chart {
    max-width: 260px;
    max-height: 260px;
  }
}

@media (max-width: 480px) {
  .cpt-stats {
    gap: 24px;
  }

  .cpt-stat span {
    font-size: 22px;
  }

  .stage-breakdown-item {
    padding: 12px;
  }

  .stage-breakdown-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
}

/* =============================================================
   INTERACTIVE CHALLENGES - Shared Styles
   ============================================================= */
.challenge-container {
  text-align: center;
  padding: 20px 0;
}

.challenge-header {
  margin-bottom: 24px;
}

.challenge-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.challenge-instruction {
  color: #6B7280;
  font-size: 15px;
  line-height: 1.5;
}

.challenge-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.challenge-stat {
  text-align: center;
}

.challenge-stat span {
  font-size: 28px;
  font-weight: 700;
  color: #6366F1;
}

.challenge-stat small {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.challenge-message {
  font-size: 16px;
  color: #6B7280;
  margin: 16px 0;
  min-height: 24px;
}

.challenge-feedback {
  min-height: 32px;
  margin-top: 12px;
  font-size: 15px;
}

.challenge-feedback .fb-correct {
  color: #22C55E;
  font-weight: 600;
}

.challenge-feedback .fb-wrong,
.challenge-feedback .fb-miss {
  color: #EF4444;
  font-weight: 600;
}

.challenge-results {
  padding: 32px 0;
  text-align: center;
}

.challenge-results h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 24px;
}

.challenge-complete-text {
  color: #6B7280;
  font-size: 15px;
  margin-bottom: 24px;
}

/* =============================================================
   Memory Matrix
   ============================================================= */
.memory-matrix-grid {
  display: grid;
  gap: 6px;
  max-width: 320px;
  margin: 0 auto 20px;
}

.memory-cell {
  aspect-ratio: 1;
  background: #F3F4F6;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.memory-cell:hover {
  border-color: #A5B4FC;
}

.memory-cell.active {
  background: #6366F1;
  border-color: #4F46E5;
}

.memory-cell.selected {
  background: #818CF8;
  border-color: #6366F1;
}

.memory-cell.correct {
  background: #22C55E;
  border-color: #16A34A;
}

.memory-cell.wrong {
  background: #EF4444;
  border-color: #DC2626;
}

.memory-cell.missed {
  background: #FDE68A;
  border-color: #F59E0B;
}

/* =============================================================
   Card Sort
   ============================================================= */
.card-sort-arena {
  margin: 0 auto 24px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-card {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px 32px;
  font-size: 17px;
  font-weight: 500;
  color: #1F2937;
  max-width: 400px;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  line-height: 1.5;
}

.sort-card.sort-correct {
  border-color: #22C55E;
  background: #F0FDF4;
}

.sort-card.sort-wrong {
  border-color: #EF4444;
  background: #FEF2F2;
}

.card-sort-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-category-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.sort-category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sort-category-btn:active {
  transform: translateY(0);
}

.sort-cat-icon {
  font-size: 20px;
}

.sort-cat-label {
  font-size: 14px;
}

/* =============================================================
   Rapid Response
   ============================================================= */
.rapid-response-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
}

.rr-stimulus-area {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(99,102,241,0.15);
}

.rr-shape {
  font-size: 72px;
  transition: all 0.15s ease;
  line-height: 1;
}

.rr-target {
  color: #22C55E;
}

.rr-distractor {
  color: #EF4444;
}

.rr-blank {
  color: #D1D5DB;
  font-size: 48px;
}

/* =============================================================
   Emotion Reader
   ============================================================= */
.emotion-situation-card {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 20px;
  max-width: 500px;
  text-align: left;
}

.emotion-context {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6366F1;
  margin-bottom: 12px;
}

.emotion-situation-text {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}

.emotion-prompt {
  font-size: 15px;
  color: #4B5563;
}

.emotion-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.emotion-option {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.emotion-option:hover {
  border-color: #A5B4FC;
  background: #F5F3FF;
}

.emotion-option.emotion-correct {
  border-color: #22C55E;
  background: #F0FDF4;
}

.emotion-option.emotion-wrong {
  border-color: #EF4444;
  background: #FEF2F2;
}

.emotion-emoji {
  font-size: 24px;
}

.emotion-option-text {
  font-size: 14px;
  color: #374151;
}

/* =============================================================
   Sequence Solver
   ============================================================= */
.sequence-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}

.sequence-item {
  background: #EEF2FF;
  border: 2px solid #C7D2FE;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #4338CA;
  min-width: 56px;
  text-align: center;
}

.sequence-blank {
  background: white;
  border: 2px dashed #A5B4FC;
  color: #A5B4FC;
  animation: pulse-border 1.5s ease infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #A5B4FC; }
  50% { border-color: #6366F1; }
}

.sequence-reveal {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}

.sequence-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.sequence-option {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sequence-option:hover {
  border-color: #6366F1;
  background: #F5F3FF;
}

.sequence-option.sequence-correct {
  border-color: #22C55E;
  background: #F0FDF4;
  color: #16A34A;
}

.sequence-option.sequence-wrong {
  border-color: #EF4444;
  background: #FEF2F2;
  color: #DC2626;
}

/* =============================================================
   Scenario Decision
   ============================================================= */
.decision-scenario-card {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
  margin: 0 auto 20px;
  max-width: 520px;
  text-align: left;
}

.decision-context {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8B5CF6;
  margin-bottom: 12px;
}

.decision-situation {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}

.decision-prompt {
  font-size: 15px;
  color: #4B5563;
}

.decision-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.decision-option {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.decision-option:hover {
  border-color: #A78BFA;
  background: #F5F3FF;
}

.decision-option.decision-selected {
  border-color: #8B5CF6;
  background: #EDE9FE;
}

.decision-option-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
}

.decision-feedback-text {
  color: #6B7280;
  font-style: italic;
  font-size: 14px;
}

/* =============================================================
   Stroop Challenge
   ============================================================= */
.stroop-word-display {
  margin: 32px auto;
  padding: 32px;
}

.stroop-word {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.stroop-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.stroop-color-btn {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.stroop-color-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stroop-color-btn:active {
  transform: translateY(0);
}

/* =============================================================
   Color Match
   ============================================================= */
.color-match-display {
  margin: 24px auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-swatch-large {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.color-match-text {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  padding: 20px;
}

.color-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.color-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-match-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.color-match-option {
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid transparent;
}

.color-swatch-option {
  min-height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 12px;
}

.color-swatch-option .color-option-label {
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.color-text-option {
  background: white;
  border: 2px solid #E5E7EB;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

.color-text-option:hover {
  border-color: #A5B4FC;
  background: #F5F3FF;
}

.color-match-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.color-option-correct {
  border-color: #22C55E !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.3);
}

.color-option-wrong {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.3);
}

/* =============================================================
   Interactive Challenges - Responsive
   ============================================================= */
@media (max-width: 768px) {
  .memory-matrix-grid {
    max-width: 260px;
  }

  .sort-card {
    min-width: 220px;
    padding: 18px 24px;
    font-size: 15px;
  }

  .sort-category-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 100px;
  }

  .rr-stimulus-area {
    width: 160px;
    height: 160px;
  }

  .rr-shape {
    font-size: 56px;
  }

  .emotion-options {
    grid-template-columns: 1fr;
  }

  .sequence-display {
    gap: 6px;
  }

  .sequence-item {
    padding: 10px 14px;
    font-size: 16px;
    min-width: 44px;
  }

  .sequence-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .stroop-word {
    font-size: 40px;
  }

  .stroop-buttons {
    max-width: 280px;
  }

  .color-match-options {
    max-width: 300px;
  }

  .color-swatch-large {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .challenge-stat span {
    font-size: 22px;
  }

  .sort-card {
    min-width: 200px;
    padding: 14px 18px;
  }

  .sort-category-btn {
    padding: 10px 16px;
    min-width: 80px;
  }

  .stroop-word {
    font-size: 32px;
  }
}
