/*
 * Puzzle à glisser anti-robot — feuille **partagée** par l'application et par la page
 * d'inscription publique, comme `captcha.js`. Le widget ne dépend d'aucune classe des deux autres
 * feuilles : il apporte les siennes, pour être identique des deux côtés.
 * Les couleurs viennent des variables de la page hôte (`app.css` ou `landing.css`).
 */
.captcha { display: grid; gap: 8px; }
.cap-stage { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.cap-stage img { display: block; user-select: none; -webkit-user-select: none; }
.cap-piece { position: absolute; left: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.cap-track { position: relative; height: 44px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; touch-action: none; }
.cap-track.ok { background: var(--ok-soft); border-color: var(--ok); }
.cap-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--muted); pointer-events: none; }
.cap-handle { position: absolute; top: 1px; left: 0; width: 60px; height: 40px; border-radius: 20px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: grab; touch-action: none; }
.cap-track.ok .cap-handle { background: var(--ok); }
.cap-handle svg { width: 22px; height: 22px; }

.cap-status { margin: 0; font-size: 14px; color: var(--muted); }
.cap-q { display: grid; gap: 6px; }
.cap-q label { font-size: 15px; font-weight: 600; }
.cap-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.cap-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.cap-alt { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 14px; color: var(--accent); text-decoration: underline; cursor: pointer; }
