/* ===================================================================== */
/* sim-tries.css · «Mistakes stay forever» (his rule 2026-11-02): every  */
/* simulation the kid took, its tries newest first, one big «Ver sus N   */
/* errores» each (js/sim-tries.js). Papás and the kid's home. The paper  */
/* look of the golden book: Crema, Rojo Imperial, Oro; green = passed.   */
/* Phone first (360 px), big tap targets, no hanzi.                      */
/* ===================================================================== */
.dt-list {
  --dt-rojo: #5a1010; --dt-oro: #b88b2c; --dt-oro-ink: #85631d; --dt-paper: #fffdf8; --dt-warm: #fbf6ea;
  --dt-line: #e2d4b4; --dt-ink: #1c1a17; --dt-ink-2: #5b4f43; --dt-green: #1f6b45; --dt-green-pale: #eef6f0;
  --dt-mal: #a8352c; --dt-mal-pale: #f9e4df;
  display: grid; gap: 12px; color: var(--dt-ink);
}
.dt-sim { border-radius: 16px; background: var(--dt-paper); box-shadow: inset 0 0 0 1.5px var(--dt-line); padding: 12px 12px 4px; }
.dt-sim-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 0 2px 8px; }
.dt-sim-h b { font-weight: 900; font-size: 1.05rem; line-height: 1.25; color: var(--dt-rojo); }
.dt-sim-h small { font-size: .9rem; font-weight: 700; color: var(--dt-ink-2); }
.dt-tries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-try { padding: 10px 12px 12px; border-radius: 14px; background: var(--dt-warm); }
.dt-try + .dt-try { margin-top: 0; }
.dt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dt-when { display: flex; flex-direction: column; min-width: 0; }
.dt-when b { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.dt-when small { font-size: .86rem; font-weight: 700; color: var(--dt-ink-2); }
.dt-pct {
  flex: none; min-width: 64px; padding: 4px 10px; border-radius: 999px; text-align: center; font-weight: 900; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; color: #5c3d06; background: #f3e2b3;
}
.dt-pct.is-pass { color: #fff; background: var(--dt-green); }
.dt-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .92rem; font-weight: 700; color: var(--dt-ink-2); }
.dt-state.is-pass { color: var(--dt-green); }
.dt-state svg { width: 15px; height: 15px; }
.dt-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 16px;
  border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 1.02rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  color: #3d0707; background: radial-gradient(circle at 30% 20%, #f6e2a4 0%, #d4ac52 60%, #b88b2c 100%); box-shadow: 0 6px 14px -8px rgba(90, 16, 16, .55);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.dt-go svg { width: 20px; height: 20px; flex: none; transition: transform 160ms ease; }
.dt-go.is-open svg { transform: rotate(180deg); }
.dt-go:active { transform: scale(.98); }
.dt-go:focus-visible, .dt-play:focus-visible { outline: 3px solid var(--dt-rojo); outline-offset: 3px; }
.dt-zero { margin: 8px 0 0; font-weight: 900; font-size: 1rem; color: var(--dt-green); }
.dt-old, .dt-note { margin: 8px 0 0; font-size: .92rem; font-weight: 600; color: var(--dt-ink-2); }
.dt-note.dt-old-v { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; line-height: 1.4; background: var(--dt-paper); box-shadow: inset 0 0 0 1.5px var(--dt-line); }

/* ── one try's mistakes, right here ── */
.dt-miss { margin-top: 10px; }
.dt-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dt-q { padding: 12px; border-radius: 14px; background: var(--dt-paper); box-shadow: inset 0 0 0 1.5px var(--dt-line); }
.dt-q-h { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.dt-q-h b { font-weight: 900; font-size: 1rem; color: var(--dt-rojo); }
.dt-q-h span { flex: 1; min-width: 0; font-size: .88rem; font-weight: 700; color: var(--dt-ink-2); }
.dt-play {
  flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin-left: auto;
  color: #fff; background: var(--dt-rojo); box-shadow: 0 5px 12px -7px rgba(90, 16, 16, .8);
}
.dt-play svg { width: 22px; height: 22px; }
.dt-play.is-on { background: var(--dt-oro); color: #3d0707; }
.dt-play.is-error { background: #6b645a; }
.dt-py { margin: 4px 0 0; font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.35; overflow-wrap: anywhere; }
.dt-es { margin: 2px 0 0; font-size: .95rem; line-height: 1.35; color: var(--dt-ink-2); }
.dt-img { display: block; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; object-fit: contain; margin: 8px 0 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--dt-line); }
.dt-ans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.dt-pick { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 10px; border-radius: 12px; }
.dt-pick.is-mine { background: var(--dt-mal-pale); box-shadow: inset 0 0 0 1.5px #e7b3aa; }
.dt-pick.is-right { background: #f6e7c4; box-shadow: inset 0 0 0 1.5px #c9a14a; }
.dt-pick-t { font-size: .8rem; font-weight: 800; text-transform: none; color: var(--dt-ink-2); }
.dt-pick.is-mine .dt-pick-t { color: #7b1f18; }
.dt-pick.is-right .dt-pick-t { color: #5c3d06; }
.dt-pick b { font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.dt-pick small { font-size: .88rem; line-height: 1.3; color: var(--dt-ink-2); }
.dt-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: #fff; }
@media (max-width: 359px) { .dt-ans { grid-template-columns: minmax(0, 1fr); } }
@media (hover: hover) { .dt-go:hover { filter: brightness(1.04); } }
@media (prefers-reduced-motion: reduce) { .dt-go, .dt-go svg { transition: none; } .dt-go:active { transform: none; } }
