/* The round player (#play/lesson/today): one exercise per screen, header, feedback, sticky footer.
   Tokens and rem for text; touch-target minimums in px (rem doubles at 200 % text). Motion only under no-preference. */
body.in-round #bottom-nav { display: none; }
.pl { display: grid; gap: var(--sp-3); }
.pl > * { min-width: 0; margin: 0; }
.pl-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-2) var(--sp-3); }
.pl-close {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px;
  color: var(--text); border-radius: var(--r-pill);
}
.pl-close:hover { background: var(--surface-2); text-decoration: none; }
.pl-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-close .icon { width: 1.5rem; height: 1.5rem; }
.pl-bar { display: flex; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.pl-seg {
  flex: 1; height: 0.5rem; border-radius: var(--r-pill); box-sizing: border-box; position: relative;
  display: flex; align-items: center; justify-content: center; transform-origin: left center;
}
.pl-seg.is-later { border: 1px solid var(--border-strong); }
.pl-seg.is-now { border: 2px solid var(--accent); }
.pl-seg.is-right { background: var(--accent); }
.pl-seg.is-wrong { background: var(--surface-2); border: 1px solid var(--border-strong); }
.pl-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--text); display: block; }
.pl-count { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
@media (max-width: 24em) { .pl-head { grid-template-columns: auto 1fr; } .pl-bar { grid-column: 1 / -1; order: 3; } .pl-count { justify-self: end; } }
.pl-again { color: var(--muted); font-weight: 600; }
.order-status { font-weight: 600; }
.order-status:empty { margin: 0; }
.pl-task { font-size: var(--fs-xl); line-height: 1.2; }
.pl-task:focus { outline: none; }
.pl-item { margin: 0; }
.pl-item .answer-input, .pl-item textarea { scroll-margin-bottom: 6rem; }
.pl-item .mc-option, .pl-item .es-option, .pl-item .chip, .pl-item button { min-height: 48px; }
.pl-item .mc-option, .pl-item .es-option { display: block; width: 100%; text-align: left; }
/* One filled control per state (t95): only .pl-go is filled; every other button here is neutral. */
.pl-item .self-mark { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pl-item .self-mark button, .pl-fb button { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); margin: 0; }
.pl-item .self-mark button { flex: 1 1 8rem; }
.pl-item .chip.placed { background: var(--surface-2); color: var(--text); border: 2px solid var(--accent); }
.pl-fb:empty { display: none; }
.pl-fb { display: grid; gap: var(--sp-2); }
.pl-fb.is-wrong { background: var(--incorrect-bg); border-radius: var(--r-lg); padding: var(--sp-4); }
.pl-fb > * { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pl-state { font-weight: 700; }
.pl-state:focus { outline: none; }
.pl-state:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.is-right > .pl-state { color: var(--correct); }
.is-wrong > .pl-state { color: var(--incorrect); }
.pl-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.pl-returns { color: var(--muted); }
.pl-fb.is-wrong .pl-returns, .pl-fb.is-wrong .muted { color: var(--text); } /* muted fails AA on the wrong panel's tint */
.pl-fb .claude-note.pending { animation: none; } /* the pulse drops the text below AA */
.pl-item input, .pl-item textarea { transition: none; } /* the focus ring is there at once */
.pl-foot {
  position: sticky; bottom: 0; background: var(--bg);
  padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom));
}
.pl-go { display: block; width: 100%; min-height: 48px; box-sizing: border-box; }
.pl-go[hidden] { display: none; } /* display:block above would show it anyway */
@media (prefers-reduced-motion: no-preference) {
  .pl-glyph { display: inline-block; animation: pl-pop 200ms var(--ease) both; }
  .pl-seg.is-new { animation: pl-grow 200ms var(--ease) both; }
  @keyframes pl-pop { from { transform: scale(0.6); } to { transform: scale(1); } }
  @keyframes pl-grow { from { transform: scaleX(0.4); } to { transform: scaleX(1); } }
}
