/* ==========================================
   DESIGN SYSTEM - AR Brand Colors & Typography
   ==========================================
   Primary: Deep Learning Blue #0B2A5B
   Memory Orange: #FF6B00
   Success Gold: #FFC107
   Smart Blue: #1E5EFF
   Growth Green: #34A853
   Purple Learning: #6A3DE8
   Typography: Montserrat (headings), Inter (body)
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  overflow-x: hidden;
}

.app-container {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #0B2A5B 0%, #1E5EFF 100%);
  overflow-x: hidden;
}

/* Home Page Styles */
.home-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.home-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 1300px;
  width: 100%;
}

.home-left {
  position: sticky;
  top: 40px;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.profile-header {
  background: linear-gradient(135deg, #FF6B00 0%, #FFC107 100%);
  padding: 14px;
  text-align: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
}

.home-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-title {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 4px;
}

.quiz-section {
  width: 100%;
}

.quiz-section-title {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-button {
  background: white;
  color: #0B2A5B;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.quiz-button-label {
  font-size: 14px;
  font-weight: 700;
  color: #0B2A5B;
}

.quiz-button-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  font-family: 'Inter', sans-serif;
}

.quiz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #0B2A5B;
}

.quiz-button:hover .quiz-button-label {
  color: white;
}

.quiz-button:hover .quiz-button-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.quiz-button:active {
  transform: translateY(0);
  background: #FF6B00;
}

.quiz-button:active .quiz-button-label,
.quiz-button:active .quiz-button-subtitle {
  color: white;
}

.about-button {
  width: 100%;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-button .quiz-button-label {
  color: white;
}

.about-button .quiz-button-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.about-button:hover {
  background: white;
}

.about-button:hover .quiz-button-label {
  color: #0B2A5B;
}

.about-button:hover .quiz-button-subtitle {
  color: #666;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.social-icon {
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2);
}

.social-icon-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-link:hover .social-icon {
  transform: scale(1.2);
  color: #FFC107;
}

/* Quotes Carousel */
.quotes-carousel {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px 24px 18px;
  backdrop-filter: blur(4px);
}

.quote-card {
  text-align: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-text {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
}

.quote-author {
  color: #FFC107;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.quote-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.quote-progress-bar {
  height: 100%;
  background: #FFC107;
  border-radius: 2px;
  animation: progressFill 5s linear;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Quiz Container Styles */
.quiz-container {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  background: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid #34A853;
}

.quiz-title-small {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0B2A5B;
  text-transform: uppercase;
}

.question-counter {
  background: #0B2A5B;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-body {
  flex: 1;
  background: linear-gradient(180deg, #0B2A5B 0%, #1E5EFF 100%);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question-section {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.question-text {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.5;
}

.options-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.option-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border-color: #1E5EFF;
}

.option-item:active {
  transform: translateX(3px);
  border-color: #1E5EFF;
  background: #f0f4ff;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  cursor: pointer;
  accent-color: #1E5EFF;
}

.option-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #333;
  flex: 1;
  line-height: 1.4;
}

.quiz-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 20px;
}

.nav-button {
  background: white;
  color: #0B2A5B;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
}

.nav-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #FF6B00;
  color: white;
}

.nav-button:active:not(:disabled) {
  transform: translateY(0);
  background: #FF6B00;
  color: white;
}

.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Results Page Styles */
.results-container {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-title {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.results-divider {
  width: 100%;
  max-width: 1000px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #34A853, transparent);
  margin-bottom: 30px;
}

.chart-container {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  width: 100%;
  margin-bottom: 24px;
}

.download-button {
  background: white;
  color: #0B2A5B;
  border: 2px solid white;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
}

.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: #FF6B00;
  color: white;
  border-color: #FF6B00;
}

.download-button:active {
  transform: translateY(0);
  background: #FF6B00;
  color: white;
  border-color: #FF6B00;
}

/* User Name Page Styles */
.username-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.username-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
}

.username-card h2 {
  color: #0B2A5B;
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.username-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.form-group input {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus {
  outline: none;
  border-color: #1E5EFF;
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.1);
}

.submit-button {
  background: #0B2A5B;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}

.submit-button:hover {
  background: #FF6B00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.submit-button:active {
  background: #FF6B00;
  transform: translateY(0);
}

/* About Page Styles */
.about-container {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 30px 16px;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about-content h1 {
  color: #0B2A5B;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
}

.about-content h2 {
  color: #0B2A5B;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.about-content p {
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-content ul {
  margin-left: 24px;
  margin-bottom: 20px;
}

.about-content li {
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.back-home-button {
  background: #0B2A5B;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: block;
  margin-left: auto;
  margin-right: auto;
  -webkit-tap-highlight-color: transparent;
}

.back-home-button:hover {
  background: #FF6B00;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.back-home-button:active {
  background: #FF6B00;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 968px)
   ========================================== */
@media (max-width: 968px) {
  .home-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .home-left {
    position: static;
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .profile-card {
    max-width: 250px;
  }

  .quiz-title {
    font-size: 36px;
    text-align: center;
  }

  .quiz-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 600px)
   ========================================== */
@media (max-width: 600px) {
  .home-container {
    padding: 20px 12px;
  }

  .home-content {
    gap: 20px;
  }

  .home-left {
    flex-direction: column;
    align-items: center;
  }

  .profile-card {
    max-width: 180px;
    border-radius: 16px;
  }

  .profile-header {
    font-size: 14px;
    padding: 10px;
  }

  .quiz-title {
    font-size: 26px;
    margin-bottom: 0;
  }

  .quiz-section-title {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quiz-button {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .quiz-button-label {
    font-size: 13px;
  }

  .quiz-button-subtitle {
    font-size: 11px;
  }

  .social-icons {
    margin-top: 4px;
    gap: 16px;
  }

  .social-icon {
    font-size: 26px;
  }

  .quotes-carousel {
    padding: 20px 16px 14px;
  }

  .quote-text {
    font-size: 14px;
  }

  .quote-author {
    font-size: 12px;
  }

  /* Quiz page mobile */
  .quiz-header {
    padding: 12px 16px;
  }

  .quiz-title-small {
    font-size: 13px;
  }

  .question-counter {
    padding: 6px 14px;
    font-size: 12px;
  }

  .quiz-body {
    padding: 20px 14px;
  }

  .question-text {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .options-list {
    gap: 10px;
  }

  .option-item {
    padding: 14px 14px;
    border-radius: 10px;
    gap: 10px;
  }

  .option-text {
    font-size: 14px;
  }

  .quiz-navigation {
    gap: 14px;
    margin-top: 24px;
    padding-bottom: 16px;
  }

  .nav-button {
    padding: 12px 28px;
    font-size: 13px;
  }

  /* Results mobile */
  .results-container {
    padding: 20px 12px;
  }

  .results-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .results-divider {
    margin-bottom: 20px;
  }

  .chart-container {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .download-button {
    padding: 12px 24px;
    font-size: 13px;
  }

  /* Username page mobile */
  .username-card {
    padding: 30px 24px;
    border-radius: 16px;
  }

  .username-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .submit-button {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* About page mobile */
  .about-container {
    padding: 20px 12px;
  }

  .about-content {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .about-content h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .about-content h2 {
    font-size: 18px;
    margin-top: 24px;
  }

  .about-content p {
    font-size: 14px;
  }

  .about-content li {
    font-size: 14px;
  }

  .about-content ul {
    margin-left: 16px;
  }

  .back-home-button {
    padding: 14px 30px;
    font-size: 14px;
    width: 100%;
  }
}

/* ==========================================
   RESPONSIVE - VERY SMALL PHONES (max-width: 380px)
   ========================================== */
@media (max-width: 380px) {
  .quiz-title {
    font-size: 22px;
  }

  .quiz-button {
    padding: 12px 14px;
  }

  .quiz-button-label {
    font-size: 12px;
  }

  .profile-card {
    max-width: 150px;
  }

  .profile-header {
    font-size: 12px;
    padding: 8px;
  }

  .question-text {
    font-size: 15px;
  }

  .option-text {
    font-size: 13px;
  }

  .nav-button {
    padding: 10px 22px;
    font-size: 12px;
  }

  .results-title {
    font-size: 24px;
  }

  .username-card h2 {
    font-size: 20px;
  }
}

/* ==========================================================================
   Additions for the plain-JS port
   Everything below replaces a React dependency: MUI (dialog, progress bar),
   recharts (donut + legend), canvas-confetti (falling pieces), plus the
   result/tool layouts that used to be inline JSX styles.
   Tokens are kept identical to style.css's :root so both pages match.
   ========================================================================== */

:root {
  --deep-learning-blue: #0B2A5B;
  --memory-orange: #FF6B00;
  --success-gold: #FFC107;
  --growth-green: #34A853;
  --smart-blue: #1E5EFF;
  --purple-learning: #6A3DE8;
  --alert-red: #E53935;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: var(--deep-learning-blue);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Inputs and the journaling tool must stay selectable/typable */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* ---------- Boot / loading / error ---------- */

.quiz-boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.quiz-boot-logo { border-radius: 12px; max-width: 220px; height: auto; }
.quiz-boot h1 { font-family: var(--font-heading); font-size: 28px; margin: 20px 0 10px; }
.quiz-boot p { max-width: 520px; line-height: 1.7; opacity: 0.9; }
.quiz-boot-note { color: var(--success-gold); font-weight: 600; }

.quiz-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 18px;
}

.quiz-error {
  max-width: 560px;
  margin: 80px auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
}

.quiz-error h2 { font-family: var(--font-heading); color: var(--deep-learning-blue); margin-bottom: 12px; }
.quiz-error p { color: #555; line-height: 1.7; margin-bottom: 24px; }

/* ---------- Home extras ---------- */

.profile-image {
  padding: 20px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image img { width: 100%; max-width: 280px; height: auto; display: block; border-radius: 10px; }

.home-workshop-link {
  display: block;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #FF6B00, #ff5e3a);
  box-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.home-workshop-link:hover { transform: translateY(-2px); }
.home-workshop-link small { display: block; font-family: var(--font-body); font-weight: 400; opacity: 0.9; margin-top: 2px; }

.quote-progress-bar { animation-duration: 8s; }

/* ---------- Quiz runner ---------- */

.quiz-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(52, 168, 83, 0.2);
}

.quiz-progress-fill {
  height: 100%;
  background: var(--growth-green);
  transition: width 0.25s ease;
}

.option-marker {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid #d7dce6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #8a93a6;
  transition: all 0.2s ease;
}

.option-item.is-selected { border-color: var(--smart-blue); background: #f0f4ff; }
.option-item.is-selected .option-marker { background: var(--smart-blue); border-color: var(--smart-blue); color: #fff; }
.option-item:focus-visible { outline: 3px solid var(--success-gold); outline-offset: 2px; }

.username-meta { color: #777; font-size: 14px; margin: -8px 0 20px; }

/* ---------- Result card ---------- */

.result-card {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-bottom: 24px;
}

.result-emoji { font-size: 48px; margin-bottom: 8px; }

.result-label {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--deep-learning-blue);
  margin: 8px 0 12px;
  line-height: 1.3;
}

.result-greeting { color: #666; font-size: 14px; margin-bottom: 16px; }

.result-text {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  max-width: 700px;
  margin: 0 auto 8px;
}

.result-range { color: #777; font-size: 13px; margin-top: 8px; }

.result-subhead {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--deep-learning-blue);
  margin: 32px 0 16px;
  text-align: left;
}

.result-bignum { font-family: var(--font-heading); font-weight: 800; line-height: 1; margin-bottom: 16px; }
.result-bignum span { font-size: 64px; display: block; }
.result-bignum small { font-size: 13px; color: #777; font-family: var(--font-body); font-weight: 400; }

.result-tip {
  background: #f6f8fc;
  border-left: 4px solid var(--smart-blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0 0;
  text-align: left;
}

.result-tip h4 { font-family: var(--font-heading); font-size: 15px; color: var(--deep-learning-blue); margin-bottom: 6px; }
.result-tip p { color: #444; font-size: 14px; line-height: 1.7; margin: 0; }
.result-tip ul { margin: 6px 0 0 18px; color: #444; font-size: 14px; line-height: 1.8; }

.result-urgency {
  background: #FFF3E0;
  border-left: 4px solid var(--memory-orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  text-align: left;
  color: #333;
  font-weight: 500;
}

.result-secondary {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
  text-align: left;
}

.result-secondary h4 { font-family: var(--font-heading); font-size: 14px; color: #777; margin-bottom: 6px; }
.result-secondary p { font-size: 18px; color: var(--deep-learning-blue); font-weight: 600; margin: 0; }

.plan-steps { text-align: left; margin: 0 0 0 20px; color: #333; font-size: 15px; line-height: 1.9; }
.plan-steps li { margin-bottom: 8px; }

.trait-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 16px 0 0; }

.trait-chip {
  background: #eef3ff;
  color: var(--smart-blue);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
}

.profile-hero {
  height: 160px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--profile-color, #1E5EFF), var(--deep-learning-blue));
}

.profile-hero-emoji { font-size: 80px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 12px 40px; }
.download-button-solid { background: var(--deep-learning-blue); color: #fff; }

/* ---------- Score ring ---------- */

.score-ring { position: relative; margin: 0 auto 24px; }
.score-ring-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-ring-pct { font-family: var(--font-heading); font-size: 32px; font-weight: 800; }
.score-ring-caption { font-size: 11px; color: #666; }

/* ---------- Donut chart (replaces recharts) ---------- */

.chart-svg-wrap { max-width: 300px; margin: 0 auto; }

.chart-legend { list-style: none; padding: 0; margin: 20px auto 0; max-width: 420px; }

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
}

.chart-legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.chart-legend-name { flex: 1; text-align: left; }
.chart-legend-value { font-family: var(--font-heading); font-weight: 700; color: var(--deep-learning-blue); }

/* ---------- Domain bars ---------- */

.domain-list { text-align: left; }
.domain-row { margin-bottom: 22px; }
.domain-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 12px; }
.domain-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; color: var(--deep-learning-blue); }
.domain-emoji { margin-right: 6px; }
.domain-pct { font-family: var(--font-heading); font-weight: 800; font-size: 14px; }
.domain-track { height: 10px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.domain-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.domain-note { font-size: 13px; color: #555; line-height: 1.7; margin: 8px 0 0; }
.domain-reframe { font-size: 13px; color: #333; line-height: 1.7; margin: 6px 0 0; background: #f6f8fc; padding: 10px 12px; border-radius: 8px; }

/* ---------- Exhaustion check: dominant-pattern action plan ----------
   Used only by the `dominant-domain` widget. The plan is the answer on that
   card, so it gets a tinted panel keyed to the domain's own colour
   (--plan-color, set inline per block) while the four domain bars below stay
   in the standard .domain-* styling. */

.plan-block {
  text-align: left;
  background: #f8fafd;
  border: 1px solid #e6ebf4;
  border-left: 4px solid var(--plan-color, #1E5EFF);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0 0;
}

.plan-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.plan-emoji { font-size: 18px; }
.plan-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--plan-color, var(--deep-learning-blue));
  flex: 1;
}
.plan-score { font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: #777; white-space: nowrap; }

.plan-lead { font-size: 14px; line-height: 1.7; color: #333; margin: 0; }

.plan-sequence {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  color: var(--plan-color, var(--deep-learning-blue));
  background: #fff;
  border: 1px dashed #d8e0ee;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0 0;
}

.plan-do { margin: 12px 0 0 18px; color: #444; font-size: 14px; line-height: 1.8; }
.plan-avoid { font-size: 13px; line-height: 1.7; color: #555; margin: 12px 0 0; }
.plan-rule {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
  color: var(--deep-learning-blue);
  margin: 12px 0 0;
}

.result-guide {
  background: #FFF3E0;
  border-left: 4px solid var(--memory-orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0 0;
  text-align: left;
}

.result-guide h4 { font-family: var(--font-heading); font-size: 15px; color: var(--deep-learning-blue); margin-bottom: 6px; }
.result-guide p { color: #444; font-size: 14px; line-height: 1.7; margin: 0 0 12px; }

.result-guide-link {
  display: inline-block;
  background: var(--memory-orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.result-guide-link:hover, .result-guide-link:focus-visible { background: var(--deep-learning-blue); color: #fff; }

.result-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: #8a8a8a;
  text-align: left;
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eef1f6;
}

/* ---------- About ---------- */

.about-group { text-align: left; margin-top: 28px; }
.about-group h3 { font-family: var(--font-heading); color: var(--deep-learning-blue); font-size: 17px; margin-bottom: 10px; }
.about-list { margin: 0 0 0 18px; color: #444; font-size: 14px; line-height: 1.9; }

/* ---------- Dialog (replaces MUI Dialog) ---------- */

.quiz-dialog { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.quiz-dialog[hidden] { display: none !important; }
.quiz-dialog-backdrop { position: absolute; inset: 0; background: rgba(11, 42, 91, 0.6); }

.quiz-dialog-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.quiz-dialog-title { font-family: var(--font-heading); font-size: 20px; color: var(--deep-learning-blue); font-weight: 600; margin-bottom: 14px; }
.quiz-dialog-body p { color: #333; font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.quiz-dialog-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 12px; flex-wrap: wrap; }

.quiz-dialog-btn {
  border-radius: 20px;
  padding: 9px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--deep-learning-blue);
  transition: all 0.2s ease;
}

.quiz-dialog-btn-outline { background: transparent; color: var(--deep-learning-blue); }
.quiz-dialog-btn-outline:hover { background: #eef3ff; }
.quiz-dialog-btn-filled { background: var(--deep-learning-blue); color: #fff; }
.quiz-dialog-btn-filled:hover { background: #143a75; }

/* ---------- Confetti (same markup as script.js's playConfetti) ---------- */

#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }

.confetti-piece { animation-name: confetti-fall; animation-timing-function: linear; animation-fill-mode: forwards; }

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ---------- Content protection popup ---------- */

#protection-popup { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.protection-popup-inner {
  background: rgba(11, 42, 91, 0.94);
  color: #fff;
  padding: 20px 28px;
  border-radius: 16px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 15px;
}

.protection-popup-inner i { font-size: 26px; color: var(--success-gold); display: block; margin-bottom: 8px; }

/* ==========================================================================
   Tool pages (quiz-tools.js)
   ========================================================================== */

.tool-container { min-height: 100vh; padding: 24px 16px 60px; display: flex; flex-direction: column; align-items: center; }

.tool-card {
  max-width: 860px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  margin-bottom: 20px;
}

.tool-head { text-align: center; margin-bottom: 22px; }
.tool-head h1 { font-family: var(--font-heading); font-size: 24px; color: var(--deep-learning-blue); margin-bottom: 6px; }
.tool-head p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }

.tool-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-end; margin-bottom: 20px; }
.tool-field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.tool-field label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.04em; }

.tool-field input, .tool-field select, .tool-input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 9px 12px;
  border: 2px solid #dfe4ee;
  border-radius: 10px;
  color: #333;
  background: #fff;
}

.tool-field input:focus, .tool-field select:focus, .tool-input:focus { outline: none; border-color: var(--smart-blue); }

.tool-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FF6B00, #ff5e3a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 94, 58, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tool-btn:hover:not(:disabled) { transform: translateY(-2px); }
.tool-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.tool-btn-ghost { background: transparent; color: var(--deep-learning-blue); border: 2px solid var(--deep-learning-blue); box-shadow: none; }
.tool-btn-ghost:hover:not(:disabled) { background: #eef3ff; }

.tool-stage {
  position: relative;
  background: #0B2A5B;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.tool-stat-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; }
.tool-stat { background: #f6f8fc; border-radius: 12px; padding: 12px 20px; text-align: center; min-width: 96px; }
.tool-stat-value { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--deep-learning-blue); }
.tool-stat-label { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 0.04em; }

.tool-note { font-size: 13px; color: #777; line-height: 1.7; text-align: center; margin-top: 16px; }

/* Speed reading / RSVP word display */
.rsvp-display {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  padding: 20px;
  text-align: center;
  word-break: break-word;
}

/* Focus grid */
.focus-grid { display: grid; gap: 4px; margin: 0 auto; }

.focus-grid-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--deep-learning-blue);
  font-size: clamp(11px, 2.6vw, 18px);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.focus-grid-cell.is-found { background: var(--growth-green); color: #fff; border-color: var(--growth-green); }
.focus-grid-cell.is-wrong { background: #ffe5e5; border-color: var(--alert-red); }

.focus-target { font-family: var(--font-heading); font-size: 40px; font-weight: 800; color: var(--memory-orange); text-align: center; }

/* Peg system */
.peg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.peg-card { background: #f6f8fc; border-radius: 14px; padding: 10px; text-align: center; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; }
.peg-card:hover { border-color: var(--smart-blue); transform: translateY(-3px); }
.peg-card img { width: 100%; height: auto; border-radius: 10px; display: block; background: #fff; }
.peg-card-label { font-family: var(--font-heading); font-weight: 700; color: var(--deep-learning-blue); font-size: 13px; margin-top: 8px; }

.peg-viewer { text-align: center; }
.peg-viewer img { max-width: 320px; width: 100%; height: auto; border-radius: 16px; }
.peg-viewer-num { font-family: var(--font-heading); font-size: 42px; font-weight: 800; color: var(--memory-orange); }

/* Reflects journal */
.reflect-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; align-items: start; }
.reflect-row textarea { width: 100%; min-height: 78px; resize: vertical; font-family: var(--font-body); font-size: 14px; padding: 10px 12px; border: 2px solid #dfe4ee; border-radius: 10px; line-height: 1.6; }
.reflect-row textarea:focus { outline: none; border-color: var(--smart-blue); }
.reflect-row .reflect-negative { border-color: #f5c6c6; background: #fff8f8; }
.reflect-row .reflect-positive { border-color: #c6e7cf; background: #f7fdf9; }
.reflect-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Audio player */
.track-list { list-style: none; padding: 0; margin: 0; }

.track-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f8fc;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.track-item:hover { border-color: var(--smart-blue); }
.track-item.is-active { border-color: var(--memory-orange); background: #fff5ee; }
.track-emoji { font-size: 26px; }
.track-name { font-family: var(--font-heading); font-weight: 700; color: var(--deep-learning-blue); font-size: 15px; }
.track-desc { font-size: 13px; color: #777; margin-top: 2px; }
.tool-audio { width: 100%; margin-top: 18px; }

/* Timer */
.timer-readout { font-family: var(--font-heading); font-size: clamp(48px, 14vw, 96px); font-weight: 800; color: var(--deep-learning-blue); text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-phase { text-align: center; font-family: var(--font-heading); font-size: 16px; color: var(--memory-orange); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }

/* Mental math */
.math-problem { font-family: var(--font-heading); font-size: clamp(34px, 9vw, 60px); font-weight: 800; color: var(--deep-learning-blue); text-align: center; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.math-answer { font-size: 28px; text-align: center; width: 190px; font-family: var(--font-heading); font-weight: 700; }
.math-feedback { text-align: center; font-family: var(--font-heading); font-weight: 700; min-height: 26px; margin-top: 12px; }

/* Mandala */
.mandala-stage { display: flex; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(circle, #143a75, #0B2A5B); }
.mandala-spinner { width: min(70vw, 380px); height: min(70vw, 380px); animation: mandala-tool-spin 90s linear infinite; }

@keyframes mandala-tool-spin { to { transform: rotate(360deg); } }

/* Eye exercise / ball focus canvas stage */
.tool-canvas { display: block; width: 100%; height: auto; background: #0B2A5B; border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
  .confetti-piece { display: none; }
  .mandala-spinner { animation: none; }
  .quote-progress-bar, .domain-fill, .quiz-progress-fill { animation: none !important; transition: none !important; }
}

@media (max-width: 600px) {
  .result-card { padding: 28px 18px; border-radius: 16px; }
  .result-label { font-size: 20px; }
  .result-bignum span { font-size: 48px; }
  .quiz-dialog-actions { justify-content: stretch; }
  .quiz-dialog-btn { flex: 1; }
  .tool-card { padding: 22px 16px; border-radius: 16px; }
  .reflect-row, .reflect-labels { grid-template-columns: 1fr; }
  .rsvp-display { font-size: 32px; min-height: 140px; }
}

/* ---------- Focus Grid (quiz-tools.js) ---------- */

.focus-grid-stage {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.focus-grid-scene {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
  flex-shrink: 0;
}

/* The diamond-clipped grid that slowly rotates behind the dots */
.focus-grid-rotor {
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: focus-grid-rotate 20s linear infinite;
  transition: width 0.4s ease, height 0.4s ease;
}

@keyframes focus-grid-rotate {
  from { transform: translate(-50%, -50%) rotate(45deg); }
  to   { transform: translate(-50%, -50%) rotate(405deg); }
}

.focus-grid-inner {
  display: grid;
  grid-template-columns: repeat(15, 24px);
  grid-template-rows: repeat(15, 24px);
  gap: 2px;
  flex-shrink: 0;
}

.fg-cell { position: relative; width: 24px; height: 24px; }

.fg-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 3px;
  margin: -1.5px 0 0 -7px;
  background: #e63946;
  border-radius: 1px;
}

.fg-bar-a { transform: rotate(45deg); }
.fg-bar-b { transform: rotate(-45deg); }

.fg-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  z-index: 10;
  background: #ffd60a;
  box-shadow: 0 0 12px 4px rgba(255, 214, 10, 0.5);
  transition: top 0.3s ease, left 0.3s ease;
}

/* The fixation point: colour-shifts so the eye has something to lock onto */
.fg-dot-center {
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  animation: fg-color-shift 3s ease-in-out infinite;
}

@keyframes fg-color-shift {
  0%   { background: #4287f5; box-shadow: 0 0 14px 4px rgba(66,135,245,0.6); }
  20%  { background: #42f5a7; box-shadow: 0 0 14px 4px rgba(66,245,167,0.6); }
  40%  { background: #f542e6; box-shadow: 0 0 14px 4px rgba(245,66,230,0.6); }
  60%  { background: #f5a442; box-shadow: 0 0 14px 4px rgba(245,164,66,0.6); }
  80%  { background: #42c5f5; box-shadow: 0 0 14px 4px rgba(66,197,245,0.6); }
  100% { background: #4287f5; box-shadow: 0 0 14px 4px rgba(66,135,245,0.6); }
}

/* Value readout next to a range slider */
.fg-value {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--memory-orange);
}

.tool-field input[type="range"] { width: 130px; accent-color: var(--memory-orange); padding: 0; border: none; }

@media (prefers-reduced-motion: reduce) {
  .focus-grid-rotor, .fg-dot-center { animation: none; }
}

@media (max-width: 600px) {
  .focus-grid-scene { width: 320px; height: 320px; }
  .focus-grid-inner { grid-template-columns: repeat(15, 18px); grid-template-rows: repeat(15, 18px); }
  .fg-cell { width: 18px; height: 18px; }
  .fg-bar { width: 11px; margin-left: -5.5px; }
}


/* ==========================================================================
   LANGUAGE SWITCH (English / Hindi)

   The picker on the name gate is the one the brief asks for; the copy on the
   home and about views follows the same choice so the app is never half
   translated. Devanagari has taller ascenders/descenders than Latin, so
   [data-lang="hi"] puts Noto Sans Devanagari first (quiz.js injects that
   webfont only once Hindi is picked) and opens the line-height a little.
   ========================================================================== */

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin: 0 0 14px;
    background: #eef1f6;
    border-radius: 999px;
}

.lang-option {
    appearance: none;
    border: none;
    background: transparent;
    color: #4a5568;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-option:hover {
    color: #1E5EFF;
}

.lang-option.is-active {
    background: #fff;
    color: #1E5EFF;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14);
}

.lang-option:focus-visible {
    outline: 2px solid #1E5EFF;
    outline-offset: 2px;
}

.lang-group {
    text-align: left;
}

.lang-group-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.lang-hint {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
}

:root[data-lang="hi"] body,
:root[data-lang="hi"] .app-container {
    font-family: 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, sans-serif;
}

:root[data-lang="hi"] .question-text,
:root[data-lang="hi"] .option-text,
:root[data-lang="hi"] .result-text,
:root[data-lang="hi"] .domain-note,
:root[data-lang="hi"] .plan-lead {
    line-height: 1.75;
}

/* The picker is the first thing on the name card; keep it off the edge on
   narrow phones, where the two pills otherwise touch the card border. */
@media (max-width: 480px) {
    .lang-switch {
        width: 100%;
        justify-content: center;
    }

    .lang-option {
        flex: 1;
        padding: 8px 10px;
    }
}

/* ==========================================================
   Site chrome while a quiz is being answered
   ----------------------------------------------------------
   The shared hamburger button (site-nav.css) is fixed to the
   top-right, which is where the question card's progress badge
   ("3/15") sits — the two collide. A student mid-question also
   has no reason to leave the page, and the quiz view has its own
   Exit control, so the whole menu is hidden for that one route.
   quiz.js writes data-view onto <html> on every navigation.
   ========================================================== */
:root[data-view="quiz"] .site-nav {
    display: none;
}
