/* Kalkil — Leçon guidée (tuteur/tuteur.js): the tutor's talk screen. The work itself runs on the posée screen. */
#tuteur .tu-wrap{max-width:520px;margin:0 auto;padding:18px 16px 34px;display:flex;flex-direction:column;align-items:center;gap:16px}
#tuteur .tu-koko{width:96px;height:116px;animation:tuBob 2.6s ease-in-out infinite}
#tuteur .tu-koko svg{width:100%;height:100%}
#tuteur .tu-koko.talk{animation:tuTalk .45s ease-in-out infinite}
#tuteur .tu-koko.dance{animation:tuDance .55s ease-in-out infinite}
@keyframes tuBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes tuTalk{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}
@keyframes tuDance{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@media (prefers-reduced-motion:reduce){#tuteur .tu-koko,#tuteur .tu-koko.talk,#tuteur .tu-koko.dance{animation:none}}
#tuteur .tu-bubble{display:flex;align-items:flex-start;gap:8px;width:100%}
#tuteur .tu-say{flex:1;margin:0;background:#fff;border-radius:16px;padding:12px 14px;font-weight:800;font-size:18px;line-height:1.4;color:#1d2b3a;box-shadow:0 3px 0 #dde8f0;animation:tuIn .25s}
@keyframes tuIn{from{opacity:0;transform:translateY(4px)}}
#tuteur .tu-listen{flex:none;width:44px;height:44px;border:none;border-radius:12px;background:#e8f1ff;color:#1a5f9c;box-shadow:0 3px 0 #b7cff2;cursor:pointer}
#tuteur .tu-listen svg{width:24px;height:24px;vertical-align:middle}
#tuteur .tu-expr{margin:0;background:#fff;border-radius:14px;padding:10px 18px;font-size:26px;font-weight:900;letter-spacing:2px;color:#1d2b3a;box-shadow:0 3px 0 #dde8f0}
#tuteur .tu-go{border:none;border-radius:18px;background:#19b5c9;color:#fff;font-size:20px;font-weight:900;padding:16px 30px;box-shadow:0 4px 0 #0f8fab;cursor:pointer}
#tuteur .tu-go:active{transform:translateY(2px);box-shadow:0 2px 0 #0f8fab}
#tuteur .tu-ghost{border:none;background:none;color:#5b7186;font-size:16px;font-weight:700;text-decoration:underline;cursor:pointer;padding:6px 10px}
/* « pourquoi la retenue »: the jetons glide from their groups into the box, the box's 10 become the barre */
#tuteur .tu-why{width:100%;max-width:400px;background:#fff;border-radius:16px;box-shadow:0 3px 0 #dde8f0;padding:6px}
#tuteur .tu-jeton{transition:transform .7s ease-in-out;stroke:#fff;stroke-width:2}
#tuteur .tu-box{fill:#f4f8fc;stroke:#9db4c8;stroke-width:2.5;stroke-dasharray:8 6;transition:all .4s}
#tuteur .tu-bar{opacity:0;transform:translateY(8px);transition:all .5s}
#tuteur .tu-bar-t{fill:#7a4a1f;font-size:20px;font-weight:900}
#tuteur .tu-bar-l{fill:#c3362b;font-size:22px;font-weight:900;opacity:0;transition:opacity .4s}
#tuteur .tu-why[data-step="2"] .tu-box{stroke:#f5a800;stroke-dasharray:none;fill:#fff6d6}
#tuteur .tu-why[data-step="3"] .tu-box{stroke:#f5a800;stroke-dasharray:none;fill:#fff6d6}
#tuteur .tu-why[data-step="3"] .tu-bar,#tuteur .tu-why[data-step="4"] .tu-bar{opacity:1;transform:translateY(0)}
#tuteur .tu-why[data-step="3"] .tu-bar-l,#tuteur .tu-why[data-step="4"] .tu-bar-l{opacity:1}
/* the 10 in the box BECOME the barre: they must leave the box so the final state reads 10 + 8 = 18, never 28 */
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="0"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="0"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="1"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="1"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="2"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="2"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="3"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="3"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="4"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="4"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="5"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="5"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="6"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="6"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="7"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="7"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="8"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="8"],
#tuteur .tu-why[data-step="3"] .tu-jeton[data-i="9"],#tuteur .tu-why[data-step="4"] .tu-jeton[data-i="9"]{opacity:0}
@media (max-height:700px){#tuteur .tu-koko{width:72px;height:88px}#tuteur .tu-wrap{gap:12px;padding-top:10px}}
