/* Speak (pronunciation practice) */

.speak { gap: 22px; }

.speak__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.speak__words { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 56px; line-height: 1.4; }
.speak__word { transition: color .3s ease; }
.speak__word.is-clear { color: var(--green); }
.speak__word.is-close { color: var(--gold); }
.speak__word.is-weak { color: var(--clay); }

.speak__en { font-size: 22px; color: var(--text-body); }

.speak__play {
  background: var(--sand);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}
.speak__play:hover { background: var(--line); }

.speak__mic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--text-on-accent);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .15s ease;
}
@media (hover: hover) {
  .speak__mic:hover { background: var(--green); }
}
.speak__card.is-recording .speak__mic { background: var(--clay); animation: pulse 1s infinite; }

.speak__hint { font-size: 15px; color: var(--text-body); }

.speak__result {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.speak__score { display: flex; flex-direction: column; }
.speak__score-value { font-size: 56px; line-height: 1; color: var(--green); }
.speak__score-label { font-size: 13px; color: var(--text-muted); }
.speak__feedback { font-size: 14px; color: var(--text-body); max-width: 300px; text-align: left; line-height: 1.5; }

@media (max-width: 600px) {
  .speak__card { padding: 32px 18px; }
  .speak__words { font-size: 42px; }
  .speak__feedback { text-align: center; }
}
