/* C154 launch polish: Endgame tab + Review my last game (js/tab-endgame.js, js/lastgame.js). Design tokens only. */

/* the material line on a mistake card: "Rook vs rook · pawns: you 2, them 3" */
.eg-mi .eg-mat { display: block; margin: 2px 0 6px; font-weight: 700; font-size: 12.5px; line-height: 1.3; color: var(--text-2); }

/* draw-rule warning under the move feedback: a third repetition / the 50-move count is close */
.eg-drawwarn {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; font-weight: 600;
  background: color-mix(in srgb, var(--good, #2fb86b) 14%, var(--surface, transparent)); color: var(--text);
}
.eg-drawwarn.warn { background: color-mix(in srgb, var(--warn, #f7c045) 18%, var(--surface, transparent)); }
.eg-drawwarn b { font-weight: 900; }

/* Review my last game: what you played / what was better / why */
.lg-why { color: var(--text-2); }
.lg-why .lg-k { font-weight: 900; color: var(--text); }
.lg-why b, .lg-p .lg-line { white-space: normal; }
.lg-p .lg-line { font-weight: 600; color: var(--text-3, var(--text-2)); }

@media (prefers-reduced-motion: reduce) {
  .eg-drawwarn { transition: none; animation: none; }
}
