/* ============================================================
   lesson-lv3.css — Level 3: First Sentences
   ============================================================ */

/* ---- Chapter navigation ---- */
.lv3-ch-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ch-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #c8d8ee;
  background: #f4f7fb;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ch-btn:hover { border-color: #378ADD; color: #185FA5; background: #e8f1fb; }
.ch-btn.on    { background: #185FA5; color: #fff; border-color: #185FA5; }
.ch-btn.ch-done:not(.on) { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.ch-btn.ch-done::after { content: ' ✅'; }

/* ---- Chapter panel ---- */
.lv3-panel { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.lv3-lesson-title {
  font-size: 20px;
  font-weight: 700;
  color: #185FA5;
  margin-bottom: 4px;
}
.lv3-lesson-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
}

/* ---- Sentence display with color-coded parts ---- */
.sentence-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
  margin: 16px 0;
}
.sv-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.sv-word {
  font-size: 22px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
}
.sv-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
}
.sv-eng {
  font-size: 13px;
  color: #888;
}
.sv-arrow {
  font-size: 22px;
  color: #ccc;
  padding-bottom: 20px;
}

/* Part color themes */
.sv-subject  .sv-word { background: #dbeafe; color: #1e40af; }
.sv-object   .sv-word { background: #dcfce7; color: #166534; }
.sv-verb     .sv-word { background: #ffedd5; color: #9a3412; }
.sv-particle .sv-word { background: #f3e8ff; color: #6b21a8; font-size: 16px; }
.sv-place    .sv-word { background: #fef9c3; color: #854d0e; }

/* ---- Comparison table (Korean vs English order) ---- */
.order-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.order-box {
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.order-box.eng { background: #f0f6ff; border: 1.5px solid #b5d4f4; }
.order-box.kor { background: #f0fdf4; border: 1.5px solid #a7f3d0; }
.order-box h4 { font-size: 13px; color: #888; margin: 0 0 10px; font-weight: 600; }
.order-pills {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.order-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.pill-s { background: #dbeafe; color: #1e40af; }
.pill-o { background: #dcfce7; color: #166534; }
.pill-v { background: #ffedd5; color: #9a3412; }
.pill-arrow { font-size: 18px; color: #bbb; display: flex; align-items: center; }

/* ---- Particle rule box ---- */
.rule-box {
  background: #f8faff;
  border: 1.5px solid #d0e3f8;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.rule-box h4 { font-size: 13px; color: #185FA5; font-weight: 700; margin: 0 0 10px; }
.rule-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 14px;
}
.rule-cond { font-weight: 600; color: #555; min-width: 180px; }
.rule-particle {
  font-size: 16px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 8px;
  background: #e8f1fb;
  color: #185FA5;
}
.rule-ex { color: #888; font-size: 12px; margin-left: 6px; }

/* ---- Example sentence card ---- */
.ex-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.ex-card {
  background: #f8faff;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ex-kr { font-size: 18px; font-weight: 700; color: #185FA5; flex: 1; }
.ex-eng { font-size: 12px; color: #888; }
.ex-speak-btn {
  background: #e8f1fb;
  border: none;
  border-radius: 8px;
  width: 34px; height: 34px;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ex-speak-btn:hover { background: #185FA5; }
.ex-speak-btn.playing { background: #D85A30; }

/* ---- Quiz section ---- */
.lv3-quiz-box {
  background: #f4f7fb;
  border: 1.5px solid #d0e3f8;
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
}
.lv3-quiz-box h4 { font-size: 14px; font-weight: 700; color: #185FA5; margin: 0 0 16px; }

.quiz-sentence {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 6px;
}
.quiz-eng {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 18px;
}
.quiz-blank {
  display: inline-block;
  min-width: 50px;
  border-bottom: 2.5px solid #185FA5;
  color: #185FA5;
  text-align: center;
  padding: 0 4px;
}
.lv3-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.lv3-opt {
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #d0e3f8;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: #185FA5;
}
.lv3-opt:hover { border-color: #185FA5; background: #e8f1fb; }
.lv3-opt.correct { border-color: #16a34a; background: #dcfce7; color: #166534; }
.lv3-opt.wrong   { border-color: #dc2626; background: #fee2e2; color: #991b1b; }
.lv3-opt:disabled { cursor: default; }

.lv3-result { text-align: center; font-weight: 700; font-size: 14px; min-height: 22px; margin-bottom: 8px; }
.lv3-result.ok { color: #16a34a; }
.lv3-result.no { color: #dc2626; }

.lv3-next-btn {
  display: block;
  margin: 0 auto;
  padding: 9px 28px;
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.lv3-next-btn:hover { background: #0C447C; }

.lv3-score-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 14px;
}
.lv3-score-item { text-align: center; }
.lv3-score-num { font-size: 24px; font-weight: 700; }
.lv3-score-lbl { font-size: 13px; color: #888; }
.score-ok { color: #16a34a; }
.score-no { color: #dc2626; }

/* ---- 3-6 Situations ---- */
.situation-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.sit-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #c8d8ee;
  background: #f4f7fb;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sit-btn:hover { border-color: #378ADD; color: #185FA5; }
.sit-btn.on    { background: #185FA5; color: #fff; border-color: #185FA5; }

.sit-panel { display: none; }
.sit-panel.on { display: block; }

.sit-sentences { display: flex; flex-direction: column; gap: 10px; }
.sit-card {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.sit-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #185FA5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sit-text { flex: 1; }
.sit-kr  { font-size: 17px; font-weight: 700; color: #185FA5; }
.sit-rom { font-size: 13px; color: #378ADD; margin-top: 2px; }
.sit-eng { font-size: 13px; color: #888; margin-top: 2px; }
.sit-speak {
  background: #e8f1fb; border: none; border-radius: 8px;
  width: 36px; height: 36px; font-size: 16px;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.sit-speak:hover { background: #185FA5; }
.sit-speak.playing { background: #D85A30; }

/* ---- 3-6 Vocab annotations ---- */
.sit-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sv-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #F0F7FF;
  border: 1px solid #C7D9F5;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.5;
}

.sv-dict {
  font-weight: 700;
  color: #185FA5;
  font-size: 13px;
}

.sv-eng {
  color: #555;
}

.sv-arrow {
  color: #aaa;
  font-size: 11px;
}

.sv-form {
  font-weight: 600;
  color: #D85A30;
}

.sv-note {
  color: #888;
  font-size: 13px;
  font-style: italic;
  width: 100%;
  padding-top: 1px;
}

/* ---- 3-7 Sentence Builder Game ---- */
.game-sentence-prompt {
  background: #f0fdf4;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.game-eng { font-size: 18px; font-weight: 700; color: #166534; }
.game-hint { font-size: 12px; color: #888; margin-top: 4px; }

.game-drop-zone {
  min-height: 60px;
  background: #f8faff;
  border: 2px dashed #b5d4f4;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.game-drop-placeholder {
  color: #bbb;
  font-size: 13px;
  width: 100%;
  text-align: center;
}

.game-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.game-tile {
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid #185FA5;
  background: #fff;
  color: #185FA5;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.game-tile:hover   { background: #185FA5; color: #fff; }
.game-tile.used    { opacity: 0.3; cursor: default; pointer-events: none; }
.game-tile.selected {
  background: #185FA5;
  color: #fff;
  border-color: #0C447C;
}

.game-selected-tile {
  padding: 8px 14px;
  border-radius: 20px;
  background: #185FA5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.game-selected-tile:hover { background: #dc2626; }

.game-btns { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.game-check-btn {
  padding: 9px 24px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.game-check-btn:hover { background: #15803d; }
.game-clear-btn {
  padding: 9px 20px;
  background: #f4f7fb;
  color: #555;
  border: 1.5px solid #c8d8ee;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.game-result { text-align: center; font-weight: 700; font-size: 14px; min-height: 22px; margin-bottom: 8px; }
.game-result.ok { color: #16a34a; }
.game-result.no { color: #dc2626; }

.game-progress {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

/* ---- Conjugation table ---- */
.conj-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.conj-table th {
  background: #185FA5;
  color: #fff;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}
.conj-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e4eaf3;
}
.conj-table tr:nth-child(even) td { background: #f8faff; }
.conj-kr { font-size: 16px; font-weight: 700; color: #185FA5; }
.conj-result { font-size: 16px; font-weight: 700; color: #16a34a; }

/* ---- 3-5 Verb Rule Cards ---- */
.verb-rule-section { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }

.verb-rule-card {
  border: 2px solid #e4eaf3;
  border-radius: 14px;
  overflow: hidden;
}
.vr-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: 15px; font-weight: 700; color: #fff;
}
.vr-header.ao  { background: #185FA5; }
.vr-header.eo  { background: #3B6D11; }
.vr-header.hae { background: #BA7517; }
.vr-badge {
  font-size: 18px; font-weight: 900; letter-spacing: -1px;
  background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 8px;
}
.vr-body { padding: 16px 18px; }

.vr-examples { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vr-ex-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.vr-ex-dict { color: #555; min-width: 90px; }
.vr-ex-arrow { color: #bbb; }
.vr-ex-result { font-size: 16px; font-weight: 700; color: #185FA5; min-width: 80px; }
.vr-ex-result.green { color: #3B6D11; }
.vr-ex-result.amber { color: #BA7517; }

/* Step table (remove 다) */
.step-table {
  width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0;
}
.step-table th {
  background: #f4f7fb; color: #555; font-weight: 600;
  padding: 8px 12px; text-align: left; border-bottom: 2px solid #e4eaf3;
}
.step-table td { padding: 8px 12px; border-bottom: 1px solid #f0f3f8; }
.step-table .dict { font-size: 15px; font-weight: 700; color: #185FA5; }
.step-table .stem { font-size: 15px; font-weight: 700; color: #3B6D11; }

/* Try It */
.tryit-box {
  background: #f8faff; border: 1px dashed #b5d4f4;
  border-radius: 10px; padding: 14px 16px; margin-top: 4px;
}
.tryit-label { font-size: 12px; font-weight: 700; color: #185FA5; margin-bottom: 10px; }
.tryit-items { display: flex; flex-wrap: wrap; gap: 10px; }
.tryit-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tryit-q { font-weight: 600; color: #333; }
.tryit-reveal {
  background: #185FA5; color: #fff;
  border: none; border-radius: 6px;
  padding: 4px 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; min-width: 60px;
  transition: background 0.15s;
}
.tryit-reveal:hover { background: #0C447C; }
.tryit-reveal.revealed { background: #16a34a; cursor: default; }

/* Quick reference summary */
.verb-summary {
  background: #f4f7fb; border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
.verb-summary h4 { font-size: 14px; font-weight: 700; color: #042C53; margin-bottom: 12px; }
.vs-rules { display: flex; flex-direction: column; gap: 8px; }
.vs-rule { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.vs-tag {
  font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap;
}
.vs-tag.ao  { background: #dbeafe; color: #185FA5; }
.vs-tag.eo  { background: #dcfce7; color: #3B6D11; }
.vs-tag.hae { background: #fef3c7; color: #BA7517; }
.vs-examples { color: #555; }

/* ============================================================
   Pattern-first teaching components (3-2 ~ 3-4 redesign)
   ============================================================ */

/* Meaning banner — big visual label at top of section */
.meaning-banner {
  display: flex; align-items: stretch; gap: 0;
  border-radius: 14px; overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.mb-tag {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 18px;
  font-size: 22px; font-weight: 900; color: #fff;
  min-width: 90px; text-align: center; line-height: 1.2;
}
.mb-tag.blue  { background: #185FA5; }
.mb-tag.green { background: #3B6D11; }
.mb-tag.amber { background: #BA7517; }
.mb-tag.teal  { background: #0E7490; }
.mb-body {
  flex: 1; padding: 14px 16px;
  background: #f8faff;
  display: flex; flex-direction: column; justify-content: center;
}
.mb-meaning {
  font-size: 20px; font-weight: 800; color: #042C53; margin-bottom: 4px;
}
.mb-sub { font-size: 13px; color: #6B8DB5; line-height: 1.5; }

/* Pattern examples grid */
.pattern-examples {
  display: flex; flex-direction: column; gap: 9px;
  margin: 14px 0;
}
.pe-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e4eaf3;
  border-radius: 10px; padding: 10px 14px;
}
.pe-kr   { font-size: 17px; font-weight: 700; color: #042C53; flex: 1; }
.pe-kr mark { background: #dbeafe; color: #185FA5; border-radius: 4px; padding: 1px 4px; }
.pe-kr mark.green { background: #dcfce7; color: #3B6D11; }
.pe-kr mark.amber { background: #fef3c7; color: #BA7517; }
.pe-kr mark.teal  { background: #cffafe; color: #0E7490; }
.pe-eng  { font-size: 13px; color: #6B8DB5; flex: 1; }

/* Q&A pattern card */
.qa-card {
  background: #f0f7ff; border-radius: 12px; padding: 14px 18px; margin: 12px 0;
}
.qa-q { font-size: 13px; color: #6B8DB5; margin-bottom: 6px; }
.qa-a { font-size: 16px; font-weight: 700; color: #042C53; }

/* Meaning-change comparison */
.compare-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 16px 0;
}
.compare-card {
  border-radius: 12px; padding: 14px 16px; text-align: center;
}
.compare-card.before { background: #f4f7fb; border: 1.5px solid #e4eaf3; }
.compare-card.after  { background: #e8f4ff; border: 1.5px solid #b5d4f4; }
.cc-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: 6px; }
.cc-kr    { font-size: 18px; font-weight: 800; color: #042C53; margin-bottom: 4px; }
.cc-eng   { font-size: 12px; color: #6B8DB5; }
.cc-nuance { font-size: 12px; font-weight: 700; color: #185FA5; margin-top: 6px; }

/* Pattern summary block */
.pattern-block {
  background: #f4f7fb; border-radius: 12px; padding: 14px 18px; margin: 14px 0;
}
.pb-title { font-size: 12px; font-weight: 700; color: #6B8DB5; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.pb-rows  { display: flex; flex-direction: column; gap: 7px; }
.pb-row   { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pb-particle {
  font-size: 15px; font-weight: 800; padding: 3px 12px;
  border-radius: 8px; min-width: 60px; text-align: center;
}
.pb-particle.blue  { background: #dbeafe; color: #185FA5; }
.pb-particle.green { background: #dcfce7; color: #3B6D11; }
.pb-particle.amber { background: #fef3c7; color: #BA7517; }
.pb-particle.teal  { background: #cffafe; color: #0E7490; }
.pb-desc { color: #444; }

/* Easy tip box */
.easy-tip {
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 12px; padding: 12px 16px; margin: 14px 0;
}
.easy-tip-title { font-size: 12px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.easy-tip p { font-size: 13px; color: #78350F; margin: 0; line-height: 1.7; }

/* Divider between particle groups */
.particle-divider {
  border: none; border-top: 2px dashed #e4eaf3; margin: 24px 0;
}

/* ============================================================
   Batchim Visual — Syllable block diagram
   ============================================================ */
.bv-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #185FA5;
  margin: 14px 0 6px;
  padding: 4px 10px;
  background: #EFF6FF;
  border-left: 3px solid #185FA5;
  border-radius: 4px;
}

.batchim-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}
.bv-card {
  border-radius: 14px;
  padding: 16px 14px 14px;
  text-align: center;
}
.bv-card.has-batchim { background: #fff8ed; border: 2px solid #f59e0b; }
.bv-card.no-batchim  { background: #f0fdf4; border: 2px solid #4ade80; }

.bv-badge {
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.bv-card.has-batchim .bv-badge { background: #fde68a; color: #92400e; }
.bv-card.no-batchim  .bv-badge { background: #bbf7d0; color: #14532d; }

/* Syllable block shape */
.bv-syllable-block {
  display: inline-block;
  border: 2.5px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  min-width: 80px;
}
.bv-top {
  padding: 8px 14px 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 6px;
  color: #333;
  background: #fff;
}
.bv-bottom {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 14px 8px;
  border-top: 2.5px solid #ccc;
}
.bv-bottom.filled {
  background: #f59e0b;
  color: #fff;
  border-top-color: #f59e0b;
}
.bv-bottom.empty {
  background: #f1f5f9;
  color: #bbb;
  font-size: 20px;
  border-top: 2.5px dashed #ccc;
}

.bv-word-label {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.bv-rom { font-size: 13px; color: #888; font-weight: 400; }
.bv-note { font-size: 12px; color: #666; margin-bottom: 10px; }
.bv-ex {
  font-size: 13px;
  color: #333;
  line-height: 1.8;
}
.bv-ex mark { background: transparent; font-weight: 700; }
.bv-card.has-batchim .bv-ex mark { color: #d97706; }
.bv-card.no-batchim  .bv-ex mark { color: #16a34a; }

/* ============================================================
   3-5 WHY compare & Conjugation formula list
   ============================================================ */
.why-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.why-card {
  flex: 1;
  min-width: 160px;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.why-card.raw    { background: #f3f4f6; border: 2px solid #d1d5db; }
.why-card.spoken { background: #f0fdf4; border: 2px solid #4ade80; }
.why-label { font-size: 13px; font-weight: 700; color: #888; margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase; }
.why-kr    { font-size: 28px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.why-card.raw    .why-kr { color: #9ca3af; }
.why-card.spoken .why-kr { color: #16a34a; }
.why-eng   { font-size: 12px; color: #555; line-height: 1.6; }
.why-arrow { font-size: 22px; color: #bbb; flex-shrink: 0; }

/* Conjugation list rows */
.conj-list { display: flex; flex-direction: column; gap: 6px; }
.conj-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  font-size: 13px;
}
.conj-row:hover { background: #f5f8ff; border-color: #c7d9f5; }
.conj-dict {
  min-width: 110px;
  font-weight: 700;
  color: #333;
}
.conj-meaning {
  font-weight: 400;
  color: #999;
  font-size: 13px;
  margin-left: 4px;
}
.conj-formula {
  color: #555;
  font-size: 12px;
  min-width: 140px;
}
.conj-formula s { color: #ef4444; text-decoration-color: #ef4444; }
.conj-eq { color: #bbb; font-size: 14px; }
.conj-result {
  font-size: 16px;
  font-weight: 700;
  min-width: 80px;
}
.conj-result.ao  { color: #d97706; }
.conj-result.eo  { color: #16a34a; }
.conj-result.hae { color: #c05621; }
.conj-note { font-size: 12px; color: #999; font-weight: 400; }
.conj-eng {
  flex: 1;
  font-size: 12px;
  color: #777;
  min-width: 120px;
}

/* ============================================================
   Per-chapter recap box — shown at the bottom of each chapter,
   not the whole-level completion banner
   ============================================================ */
.chapter-recap {
  background: linear-gradient(135deg, #FEF9EC, #f0fdf4);
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
  text-align: center;
}
.chapter-recap .cr-icon { font-size: 30px; margin-bottom: 6px; }
.chapter-recap h4 { font-size: 17px; color: #042C53; margin: 0 0 6px; }
.chapter-recap .cr-msg { font-size: 13px; color: #555; margin: 0 0 16px; line-height: 1.6; }
.chapter-recap .cr-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 auto 20px;
  text-align: left;
  max-width: 480px;
  padding: 0;
}
.chapter-recap .cr-points li {
  font-size: 13px;
  color: #333;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.chapter-recap .cr-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}
.chapter-recap .cr-nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.chapter-recap .cr-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.chapter-recap .cr-btn.prev { background: #f4f7fb; color: #185FA5; border: 1.5px solid #c8d8ee; }
.chapter-recap .cr-btn.prev:hover { background: #e8f1fb; }
.chapter-recap .cr-btn.next { background: #185FA5; color: #fff; }
.chapter-recap .cr-btn.next:hover { background: #0C447C; }
