/* ============================================
   LESSON 3b – Spelling Phrases
   ============================================ */

/* Conversation block */
.lph-conv-list   { display: flex; flex-direction: column; gap: 14px; }

.lph-conv-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}

.lph-conv-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* Each phrase line */
.lph-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
}
.lph-line:last-child { margin-bottom: 0; }

.lph-ctx { color: var(--text-primary); }

/* Input field */
.lph-inp {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--text-primary);
  padding: 4px 10px;
  font-size: 1rem;
  min-width: 140px;
  max-width: 220px;
  outline: none;
  transition: border-color .2s;
  vertical-align: middle;
}
.lph-inp:focus { border-color: var(--gold); }

/* Correct-answer reveal box */
.lph-reveal {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 6px;
  padding: 5px 10px;
  margin-top: 4px;
}
.lph-reveal-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.lph-reveal-val {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

/* Input correct / wrong states */
.lph-inp.lph-correct {
  border-color: var(--success) !important;
  background: rgba(74,222,128,0.1) !important;
  color: var(--success) !important;
}
.lph-inp.lph-wrong {
  border-color: var(--error) !important;
  background: rgba(248,113,113,0.08) !important;
  color: var(--text-primary);
}

/* Wrap each field + reveal together */
.lph-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.lph-item:last-child { margin-bottom: 0; }
