.mental-math-game .mm-stream-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px 24px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  background: var(--hub-surface);
  box-shadow: var(--hub-shadow-sm);
}

.mental-math-game .mm-stream-timer {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--hub-radius-pill);
  background: #fff1f2;
  color: #9f1239;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 2px solid #fda4af;
  letter-spacing: 0.04em;
}

.mental-math-game .mm-stream-timer.is-low {
  background: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.mental-math-game .mm-stream-prompt {
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hub-ink);
  font-variant-numeric: tabular-nums;
  min-height: 64px;
}

.mental-math-game .mm-stream-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.mental-math-game .mm-stream-input {
  flex: 1 1 200px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid var(--hub-border);
  background: var(--hub-surface);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--hub-ink);
}

.mental-math-game .mm-stream-input:focus {
  outline: none;
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}

.mental-math-game .mm-stream-actions {
  display: flex;
  gap: 8px;
}

.mental-math-game .mm-stream-feedback {
  min-height: 22px;
  font-size: 16px;
  font-weight: 700;
}

.mental-math-game .mm-stream-feedback[data-kind="correct"] { color: #047857; }
.mental-math-game .mm-stream-feedback[data-kind="wrong"]   { color: #b91c1c; }
.mental-math-game .mm-stream-feedback[data-kind="skip"]    { color: var(--hub-muted); }

.mental-math-game .mm-stream-stats {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-muted);
  font-variant-numeric: tabular-nums;
}

.mental-math-game .mm-stream-ready-note {
  margin: 0;
  max-width: 52ch;
  text-align: center;
  color: var(--hub-muted);
  font-size: 14px;
  line-height: 1.55;
}

.mental-math-game .mm-stream-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  width: 100%;
  max-width: 460px;
}

.mental-math-game .mm-stream-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-md);
  background: var(--hub-surface-muted);
}

.mental-math-game .mm-stream-result-stat span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hub-muted);
}

.mental-math-game .mm-stream-result-stat strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--hub-ink);
  font-variant-numeric: tabular-nums;
}
