/* ========================================
   Capitol Boxes — Print Stylesheet
   ======================================== */

@page {
  margin: 1cm;
}

body {
  background: white !important;
  color: black !important;
}

/* Hide everything except the report */
#menu-screen,
#game-screen,
#question-modal,
#help-modal {
  display: none !important;
}

#report-screen {
  display: block !important;
  overflow: visible !important;
  padding: 0 !important;
}

.report-container {
  background: white !important;
  border: 2px solid #333 !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  box-shadow: none !important;
}

.report-header {
  border-bottom: 2px solid #333 !important;
}

.report-title {
  color: #333 !important;
}

.report-score-number {
  color: #333 !important;
}

.report-result {
  color: #333 !important;
}

.report-section {
  border-bottom: 1px solid #ccc !important;
}

.report-section-title {
  color: #333 !important;
}

.category-bar-track {
  background: #eee !important;
}

.category-bar-fill.perfect {
  background: #4ecb71 !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.category-bar-fill.partial {
  background: #d4a84b !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.category-bar-fill.none {
  background: #e74c5f !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.missed-question {
  background: #f5f5f5 !important;
  border-left-color: #e74c5f !important;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.missed-answer.your-answer {
  color: #c0392b !important;
}

.missed-answer.correct-answer {
  color: #27ae60 !important;
}

/* Hide buttons in print */
.report-buttons {
  display: none !important;
}

/* Ensure text is readable */
.report-stat-number,
.category-name,
.category-pct,
.category-fraction,
.missed-q-text,
.missed-answer,
.missed-explanation {
  color: #333 !important;
}

.report-stat-label,
.report-score-label,
.report-score-unit {
  color: #666 !important;
  opacity: 1 !important;
}
