/* ═══════════════════════════════════════════════════════
   MATH MODULE 1 REVIEW · style.css
   Color palette: Orange/Amber
═══════════════════════════════════════════════════════ */
:root {
  --primary:      #d35400;
  --primary-dark: #922b21;
  --secondary:    #f39c12;
  --secondary-dk: #c49f0a;
  --teal:         #1abc9c;
  --teal-dark:    #148f77;
  --card-bg:      #ffffff;
  --text:         #333;
  --locked-bg:    #e9ecef;
  --correct:      #27ae60;
  --correct-dk:   #1e8449;
  --danger:       #c0392b;
  --danger-dk:    #a93226;
  --fs:           1.05rem;
}

* { box-sizing: border-box; }

body {
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  background: linear-gradient(135deg, #d35400 0%, #f39c12 100%);
  color: var(--text);
  margin: 0; padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── CONTAINER ─────────────────────────────────────── */
.container {
  max-width: 820px;
  margin: 2rem auto;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  min-height: 50vh;
  position: relative;
  z-index: 10;
}

h1 {
  text-align: center;
  color: var(--primary);
  letter-spacing: 1px;
  margin-top: 0;
  font-size: 1.75rem;
}

.welcome-sub {
  text-align: center;
  color: #888;
  font-size: 0.88rem;
  margin: -14px 0 26px;
  letter-spacing: 0.5px;
}

/* ── FRACTIONS ─────────────────────────────────────── */
.fraction {
  display: inline-flex; flex-direction: column;
  align-items: center; vertical-align: middle;
  margin: 0 4px; font-size: 0.88em; line-height: 1.15;
}
.frac-top  { display: block; border-bottom: 2px solid currentColor; padding: 0 4px; text-align: center; min-width: 1em; }
.frac-bottom { display: block; padding: 0 4px; text-align: center; min-width: 1em; }
.mixed-num { display: inline-flex; align-items: center; vertical-align: middle; gap: 3px; }

/* ── BUTTONS ───────────────────────────────────────── */
.lgs-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 44px;
  border-radius: 14px;
  font-size: 1.2rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform 0.1s;
}
.lgs-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--primary-dark); }

.start-btn {
  background: var(--primary);
  color: white;
  padding: 18px 28px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: bold;
  box-shadow: 0 5px 0 var(--primary-dark);
  transition: transform 0.1s;
  flex: 1 1 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.start-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--primary-dark); }
.start-btn.locked { background: #7f8c8d !important; box-shadow: 0 5px 0 #566573 !important; cursor: default; }
.start-btn.locked:hover { transform: none; box-shadow: 0 5px 0 #566573 !important; }

.form-btn-sub { font-size: 0.65em; font-weight: normal; opacity: 0.88; }

/* Rounding Quiz — Form A review reads as review (blue), the quiz keeps the orange */
.start-btn.review-btn { background: #2e86c1; box-shadow: 0 5px 0 #1f618d; }
.start-btn.review-btn:hover { box-shadow: 0 8px 0 #1f618d; }
#review-card .step-label { color: #2e86c1; }
.form-note { margin: 4px 0 0; text-align: center; font-size: 0.86rem; color: #555; }

.score-btn {
  background: var(--secondary);
  color: #5a3000;
  padding: 12px 26px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: var(--fs);
  font-family: inherit;
  font-weight: bold;
  box-shadow: 0 5px 0 var(--secondary-dk);
  transition: transform 0.1s;
  margin-top: 10px;
}
.score-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--secondary-dk); }

.ready-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--teal);
  color: white;
  font-size: 1.15rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--teal-dark);
  transition: transform 0.1s;
  margin-top: 10px;
}
.ready-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--teal-dark); }

.resume-btn {
  background: #e67e22;
  color: white;
  padding: 13px 26px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: var(--fs);
  font-family: inherit;
  font-weight: bold;
  box-shadow: 0 5px 0 #a85813;
  transition: transform 0.1s;
}
.resume-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #a85813; }

.sign-in-btn {
  width: 100%;
  padding: 13px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--teal-dark);
  transition: transform 0.1s;
}
.sign-in-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--teal-dark); }

.action-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: var(--fs);
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  box-shadow: 0 4px 0 var(--primary-dark);
  transition: transform 0.1s;
}
.action-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--primary-dark); }
.action-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dark); }
.action-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

#confirm-btn { background: var(--teal); box-shadow: 0 4px 0 var(--teal-dark); }
#confirm-btn:hover:not(:disabled) { box-shadow: 0 6px 0 var(--teal-dark); }

.speak-btn {
  background: none;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 6px 10px;
  min-width: 42px;
  flex-shrink: 0;
}

/* ── LOGIN / STEPS ─────────────────────────────────── */
.step-card {
  background: #fafafa;
  border: 2px solid #ececec;
  border-radius: 16px;
  padding: 20px 22px 16px;
  margin-bottom: 16px;
}
.step-label {
  display: block;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 14px;
}
.login-box label {
  font-size: var(--fs);
  font-weight: bold;
  color: #555;
  display: block;
  margin-bottom: 6px;
}
.login-box select,
.login-box input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: var(--fs);
  font-family: inherit;
  margin-bottom: 14px;
}
.login-box select:focus,
.login-box input:focus { outline: none; border-color: var(--primary); }
.login-error {
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  min-height: 22px;
  margin-bottom: 4px;
}

#resume-container {
  background: #fff8f0;
  border: 2px solid #f0c080;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  text-align: center;
}

.start-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── DIRECTIONS ────────────────────────────────────── */
.dir-section {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 2px solid transparent;
}
.dir-section h3 { margin: 0 0 7px; font-size: var(--fs); }
.dir-section p  { margin: 0; font-size: 0.93rem; line-height: 1.65; color: #444; }
.dir-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 7px; }

.login-dir   { background: #eafaf1; border-color: #a9dfbf; }
.login-dir h3 { color: #1e8449; }
.form-dir    { background: #eaf2ff; border-color: #a9c4f5; }
.form-dir h3  { color: #2471a3; }
.attempts-dir { background: #fde8f0; border-color: #f48fb1; }
.attempts-dir h3 { color: #ad1457; }
.read-dir    { background: #fff8e7; border-color: #ffc107; }
.read-dir h3  { color: #856404; }
.soak-dir    { background: #e8f8f8; border-color: #76d7c4; }
.soak-dir h3  { color: #0e6655; }
.timer-dir   { background: #f1fbe9; border-color: #8bc34a; }   /* light, like the other boxes (Marcos 10/6) */
.timer-dir h3 { color: #4a7a1f; }

.timer-chip {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.82rem;
  font-weight: bold;
  margin-top: 8px;
}
.chip-amber  { background: #fff3cd; border: 2px solid #ffc107; color: #856404; }
.chip-teal   { background: #d1ecf1; border: 2px solid #17a2b8; color: #0c5460; }
.chip-green  { background: #e2f4d3; border: 2px solid #8bc34a; color: #3d6b14; }

/* ── QUIZ SCREEN ───────────────────────────────────── */
.q-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.q-badge-pill {
  background: var(--primary);
  color: white;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: var(--fs);
  font-weight: bold;
}
.score-badge {
  background: var(--secondary);
  color: #5a3000;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: var(--fs);
  font-weight: bold;
}

.streak-bar {
  text-align: center;
  font-size: 1.4rem;
  min-height: 34px;
  margin-bottom: 6px;
  transition: all 0.3s;
}

.progress-bar {
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.4s ease;
}

.timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.timer-display {
  background: #2c3e50;
  color: #2ecc71;
  border-radius: 10px;
  padding: 6px 18px;
  font-size: 1.2rem;
  font-family: monospace;
  font-weight: bold;
  letter-spacing: 2px;
  min-width: 80px;
  text-align: center;
}
.timer-display.warning { color: #e74c3c; }

/* Instructions lock bar (purple) */
.instruct-timer-bar {
  background: #f3e8ff;
  border: 2px solid #9b59b6;
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: bold;
  color: #6c3483;
}
.instruct-timer-fill-wrap { flex: 1; height: 8px; background: #e8d5f5; border-radius: 4px; overflow: hidden; }
.instruct-timer-fill { height: 100%; background: #9b59b6; width: 100%; border-radius: 4px; transition: width 0.25s linear; }

/* Reading lock bar (amber) */
.reading-timer-bar {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: bold;
  color: #856404;
}
.reading-timer-fill-wrap { flex: 1; height: 8px; background: #ffe69c; border-radius: 4px; overflow: hidden; }
.reading-timer-fill { height: 100%; background: var(--primary); width: 100%; border-radius: 4px; transition: width 0.25s linear; }
.reading-timer-count { min-width: 28px; text-align: right; font-size: var(--fs); }

/* Next soak bar (teal) */
.next-timer-bar {
  background: #d1ecf1;
  border: 2px solid #17a2b8;
  border-radius: 10px;
  padding: 8px 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: bold;
  color: #0c5460;
}
.next-timer-fill-wrap { flex: 1; height: 8px; background: #bee5eb; border-radius: 4px; overflow: hidden; }
.next-timer-fill { height: 100%; background: #17a2b8; width: 100%; border-radius: 4px; transition: width 0.25s linear; }

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
h2#question-text {
  font-size: 1.2rem;
  margin: 0;
  color: #2c3e50;
  line-height: 2.0;
  flex: 1;
}

.options-grid { display: grid; gap: 12px; }

.answer-row { display: flex; align-items: stretch; gap: 8px; }

button.choice-speak-btn {
  flex-shrink: 0;
  width: 40px;
  background: #f0f4ff;
  border: 2px solid #c5d5f5;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex; align-items: center; justify-content: center;
}
button.choice-speak-btn:hover { background: #dce8ff; transform: scale(1.1); }

.answer-row button.answer-btn { flex: 1; }

button.answer-btn {
  background: white;
  color: var(--primary);
  border: 3px solid #e0e0e0;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: var(--fs);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
  transition: all 0.2s;
  box-shadow: 0 4px 0 #e0e0e0;
  white-space: normal;
  word-wrap: break-word;
  min-height: 54px;
  line-height: 1.8;
}
button.answer-btn:hover:not(:disabled) {
  background: #fef5e7;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #f0a500;
}
button.answer-btn.selected  { background: #fff9c4; border-color: #f9a825; border-width: 3px; font-weight: bold; box-shadow: 0 4px 0 #f57f17; }
button.answer-btn:disabled  { cursor: not-allowed; opacity: 0.78; }
button.answer-btn.locked-choice { background: var(--locked-bg); color: #999; cursor: not-allowed; border-color: #ccc; transform: none; box-shadow: none; }
button.answer-btn.correct   { background: #d4edda; border-color: #28a745; color: #155724; box-shadow: 0 4px 0 #28a745; }
button.answer-btn.incorrect { background: #f8d7da; border-color: #dc3545; color: #721c24; box-shadow: 0 4px 0 #dc3545; }

.wrd { display: inline; }
.wrd.hl { background: #ffe01b; border-radius: 3px; padding: 0 2px; }

.feedback-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  display: none;
  font-size: var(--fs);
  border: 2px solid transparent;
  line-height: 1.6;
}
.feedback-box.correct   { display: block; background: #d4edda; border-color: #28a745; color: #155724; }
.feedback-box.incorrect { display: block; background: #f8d7da; border-color: #dc3545; color: #721c24; }

.controls {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── END SCREEN ────────────────────────────────────── */
#final-percent {
  font-size: 5rem;
  font-weight: bold;
  color: var(--primary);
  display: block;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin: 10px 0;
  text-align: center;
}
#final-percent.revealed { opacity: 1; transform: scale(1); }

.missed-list {
  text-align: left;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  max-height: 260px;
  overflow-y: auto;
}
.missed-list h3 { margin: 0 0 10px; color: #856404; font-size: var(--fs); }
.missed-item {
  background: white;
  border-left: 4px solid var(--danger);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.missed-item .mi-label { color: var(--danger); font-weight: bold; font-size: 0.8rem; }

.end-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ── SCOREBOARD ────────────────────────────────────── */
.sb-summary-row { display: flex; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.sb-summary-card { flex: 1 1 120px; background: #f9f9f9; border: 2px solid #e0e0e0; border-radius: 14px; padding: 14px 12px; text-align: center; }
.sb-summary-label { font-size: 0.72rem; font-weight: 800; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.sb-summary-grade { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.sb-summary-score { font-size: 0.82rem; font-weight: 700; color: #555; }
.sb-summary-attempt { font-size: 0.68rem; color: #aaa; margin-top: 4px; }

.scoreboard-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.93rem; }
.scoreboard-table th, .scoreboard-table td { border-bottom: 2px solid #eee; padding: 9px 10px; text-align: center; }
.scoreboard-table th { color: var(--primary); }
.score-good { color: var(--correct);  font-weight: bold; }
.score-ok   { color: #f39c12;         font-weight: bold; }
.score-bad  { color: var(--danger);   font-weight: bold; }

/* ── PIN MODAL ─────────────────────────────────────── */
#pin-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 500;
}
.pin-modal-inner {
  background: white;
  border-radius: 20px;
  padding: 2rem 2rem 1.5rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  font-family: inherit;
  position: relative;
  z-index: 501;
}

/* ── CONFETTI ──────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99;
}

/* ── UTILITY ───────────────────────────────────────── */
.hidden { display: none !important; }

@media(max-width: 600px) {
  .container { margin: 10px; padding: 1.4rem; }
  h1 { font-size: 1.25rem; }
  button.answer-btn { font-size: 0.95rem; padding: 11px 12px; }
  #final-percent { font-size: 3.5rem; }
}

/* ── CLOSED-TO-STUDENTS LOCK ── */
.lgs-btn.locked,
.lgs-btn.locked:hover { background: #b8b8b8; box-shadow: 0 5px 0 #8f8f8f; cursor: not-allowed; transform: none; filter: grayscale(1); }
.locked-note { color: #888; font-size: 0.95rem; margin: 14px 0 0; }

/* ── PART 2 — WRITTEN (copied from the Module 16 Test) ── */
.part-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; border-radius: 8px; padding: 4px 12px; margin-bottom: 6px; }
.part-dir { background: #f3e8ff; border-color: #c39bd3; }
.part-dir h3 { color: #6c3483; }
.written-prompt-card { background: #fff8f3; border: 2px solid #f0a070; border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.written-prompt-label { font-size: 0.8rem; font-weight: bold; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.written-prompt-type { font-size: 1rem; font-weight: bold; color: #555; margin-bottom: 10px; }
.written-prompt-text { font-size: 1.05rem; color: #2c3e50; line-height: 1.75; margin-bottom: 10px; background: #fff; border-radius: 8px; padding: 14px 16px; border: 1px solid #e8c4a0; }
.written-guidance { font-size: 0.9rem; color: #7f8c8d; font-style: italic; margin-bottom: 12px; }
.written-textarea { width: 100%; min-height: 130px; padding: 12px; font-size: 1rem; border: 2px solid #ddd; border-radius: 10px; font-family: inherit; box-sizing: border-box; resize: vertical; line-height: 1.6; }
.written-textarea:focus { outline: none; border-color: var(--primary); }
.word-count-row { font-size: 0.85rem; color: #999; text-align: right; margin-top: 5px; }

/* ── NUMBER LINES (Quiz 2) — benchmarks · halfway · dot · distances ── */
#q-visual:empty { display: none; }
#q-visual { margin: 4px 0 14px; }
.nl-wrap {
  clear: both;
  background: #fffdf7;
  border: 2px solid #f3e2c7;
  border-radius: 12px;
  padding: 4px 6px;
  margin-top: 10px;
}
.feedback-box .nl-wrap { background: #ffffff; }
.nl-svg { display: block; width: 100%; height: auto; max-height: 190px; }
.nl-axis  { stroke: #4a4a4a; stroke-width: 3; }
.nl-arrow { fill: #4a4a4a; }
.nl-tick  { stroke: #333; stroke-width: 3; }
.nl-mid, .nl-ask { stroke: var(--secondary); stroke-width: 3; stroke-dasharray: 4 3; }
.nl-goal  { stroke: var(--correct-dk); stroke-width: 4; }
.nl-label { font: 800 19px "Comic Sans MS", "Comic Sans", Arial, sans-serif; fill: #333; text-anchor: middle; }
.nl-label-mid  { fill: #b9770e; font-size: 16px; }
.nl-label-ask  { fill: #b9770e; font-size: 24px; }
.nl-label-goal { fill: var(--correct-dk); font-size: 21px; }
.nl-sub   { font: 700 12px "Comic Sans MS", "Comic Sans", Arial, sans-serif; fill: #b9770e; text-anchor: middle; letter-spacing: .5px; }
.nl-dot   { fill: #2e86de; stroke: #fff; stroke-width: 3; }
.nl-dot-label { font: 900 17px "Comic Sans MS", "Comic Sans", Arial, sans-serif; fill: #1b4f8a; text-anchor: middle; }
.nl-dist line { stroke: #7f8c8d; stroke-width: 2.5; }
.nl-dist text { font: 800 15px "Comic Sans MS", "Comic Sans", Arial, sans-serif; fill: #555; text-anchor: middle; }
.nl-win line  { stroke: var(--correct-dk); stroke-width: 3.5; }
.nl-win text  { fill: var(--correct-dk); font-size: 16px; }
.nl-lose line { stroke: #b0b0b0; }
.nl-lose text { fill: #999; }

/* ── PRACTICE (Form P, Quiz 2) ── */
.start-btn.practice-btn { background: #16a085; box-shadow: 0 5px 0 #0e6655; }
.start-btn.practice-btn:hover { box-shadow: 0 8px 0 #0e6655; }
#practice-card .step-label { color: #138d75; }
.practice-dir    { background: #e8f8f5; border-color: #76d7c4; }
.practice-dir h3 { color: #117864; }
.nl-q { stroke: #b9770e; stroke-width: 3; stroke-dasharray: 5 3; }
.nl-label-q { fill: #b9770e; font-size: 24px; }

/* ── PRACTICE A (Form E, the easy start) ── */
.start-btn.practice-a-btn { background: #27ae60; box-shadow: 0 5px 0 #1e8449; }
.start-btn.practice-a-btn:hover { box-shadow: 0 8px 0 #1e8449; }
#practice-a-card .step-label { color: #1e8449; }
.practice-a-dir    { background: #eafaf1; border-color: #82e0aa; }
.practice-a-dir h3 { color: #1e8449; }

/* ── HINT BOX with its own speaker (10/7) ── */
.hint-box {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 600; color: #555; line-height: 1.5;
  background: #f0f0f0; border-radius: 8px; padding: 6px 10px; margin-top: 8px;
}
.hint-box .hint-speak-btn { font-size: 1rem; min-width: 36px; padding: 4px 8px; background: #fff; }
/* closed hint: a small optional button — the hint shows only if the student asks */
.hint-wrap { margin-top: 8px; }
.hint-reveal-btn {
  font: inherit; font-size: 0.88rem; font-weight: 700; color: #7a5a00;
  background: #fff8e1; border: 2px dashed #f0c14b; border-radius: 999px;
  padding: 5px 14px; cursor: pointer;
}
.hint-reveal-btn:hover, .hint-reveal-btn:focus-visible { background: #ffefc2; outline: none; border-style: solid; }

/* ── PART BANNER (10/8) — which part the student is on ── */
.part-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.35rem; font-weight: 900; color: #fff; letter-spacing: .3px;
  border-radius: 14px; padding: 10px 14px; margin-bottom: 12px;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.part-banner:empty { display: none; }
.part-banner.pb-practice-a { background: #1e8449; }
.part-banner.pb-practice   { background: #117a65; }
.part-banner.pb-review     { background: #2471a3; }
.part-banner.pb-quiz       { background: #a04000; }
.part-banner .pb-teacher   { font-size: .8rem; font-weight: 700; opacity: .9; }

/* Finish screen (Marcos 10/14): Sign Out is quieter than the main buttons, and each button says where it goes */
.signout-btn { background:none; border:2px solid #ccc; border-radius:10px; color:#666; font-family:inherit;
               font-size:0.95rem; font-weight:700; padding:8px 16px; cursor:pointer; }
.signout-btn:hover { border-color:#999; color:#333; }
.signout-sub { display:block; font-size:0.8rem; font-weight:600; color:#888; margin-top:2px; }
