/* The post's animated figures from version 7 on (figures.js): shared controls, and the "watch it learn" questions.
   The timeline bars use moments.css */
.watch,
.moments { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

/* Back, Play, Next, the slider and the step reached */
.fig-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px;
  margin-bottom: 16px; }
.fig-buttons { display: flex; gap: 6px; }
.fig-buttons button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--ink); font: 500 13.5px/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.fig-buttons button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.fig-buttons button:disabled { opacity: 0.35; cursor: default; }
.fig-buttons .fig-play { min-width: 4.6em; border-color: var(--accent); color: var(--accent); }
.fig-controls button:focus-visible,
.fig-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fig-slider { width: 100%; accent-color: var(--accent); }
.post-body .fig-step { margin: 0; min-width: 13ch; text-align: right; font: 600 15px/1.25 var(--mono); color: var(--ink); }
.fig-step small { display: block; font: 400 11.5px/1.3 var(--mono); color: var(--muted); }
.moments .fig-controls { margin-bottom: 4px; }

/* "Watch it learn": one card per question */
.post-body .watch-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none; }
.post-body .watch-rows li { position: relative; margin: 0; padding: 10px 12px 9px; border: 1px solid transparent;
  border-radius: 10px; background: var(--bg); transition: border-color 0.3s, background 0.3s; }
.post-body .watch-rows li.right { border-color: rgba(70, 209, 252, 0.45); background: #0c1a21; }
.post-body .watch-prompt { margin: 0 0 6px; font: 400 14px/1.35 var(--sans); color: var(--ink-soft); }
.post-body .watch-guess { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.watch-word { font: 600 17px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.watch-rows li.right .watch-word { color: var(--accent); }
.watch-chance { flex: none; font: 400 12px/1.3 var(--mono); color: var(--muted); }
.watch-meter { display: block; height: 3px; margin: 6px 0 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.watch-meter span { display: block; height: 100%; background: var(--muted); transition: width 0.15s; }
.watch-rows li.right .watch-meter span { background: var(--accent); }
.post-body .watch-tag { min-height: 1.3em; margin: 0; font: 400 11.5px/1.3 var(--mono); color: var(--accent); }
.watch-rows li.flash { animation: watch-flash 1s ease-out; }
@keyframes watch-flash { from { box-shadow: 0 0 0 3px var(--accent); } }

@media (max-width: 560px) {
  .watch, .moments { padding: 12px; }
  .fig-controls { grid-template-columns: 1fr; }
  .post-body .fig-step { text-align: left; }
  .post-body .watch-rows { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .post-body .watch-rows li, .watch-meter span { transition: none; }
}
.post-body .moments-key { margin: 0; font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
.ask .fig-controls { margin-bottom: 14px; }
