/* Retell (js/try-retell.js, her wish 31.10.2026): the story told again out loud, in three short rounds. Builds on the practice
   screen (.t-rc in try.css): same page, top bar, panel and buttons. Explanation texts stay at 16 px or more. */
.t-rt__stage{flex:1;min-height:0;display:flex;flex-direction:column;gap:14px;overflow:auto;padding:6px 0 14px}
.t-rt__stage.is-mid,.t-rt__stage.is-end{justify-content:center}
/* while planning and talking only the story scrolls: who, the clock, the plant and the help chips stay in view */
.t-rt__stage.is-plan,.t-rt__stage.is-talk{overflow:hidden}
.t-rt__stage.is-plan #rt-help,.t-rt__stage.is-talk #rt-help{flex:1;min-height:0;overflow:auto;padding:2px 2px 6px;margin:0 -2px}

/* the help: three chips, the learner's choice */
.t-rt__help{flex:none;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;padding:4px;border-radius:14px;background:#fff;box-shadow:var(--hair)}
.t-rt__help button{appearance:none;border:0;min-height:42px;padding:6px 4px;border-radius:10px;background:none;color:var(--mut);font:700 14.5px/1.15 var(--font-body);cursor:pointer;-webkit-tap-highlight-color:transparent}
.t-rt__help button[aria-checked="true"]{background:var(--ink);color:#fff}
.t-rt__help button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* the story in parts, the new words as chips */
.t-rt__parts{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:rt}
.t-rt__parts li{counter-increment:rt;position:relative;padding:12px 14px 12px 44px;border-radius:16px;background:#fff;box-shadow:var(--hair);display:grid;gap:8px}
.t-rt__parts li::before{content:counter(rt);position:absolute;left:12px;top:12px;width:22px;height:22px;border-radius:50%;background:var(--stone);color:var(--mut);display:grid;place-items:center;font:700 13px/1 var(--font-body)}
.t-rt__say{margin:0;font:500 17px/1.4 var(--font-body);color:var(--ink)}
.t-rt__keys{margin:0;font:600 17px/1.4 var(--font-body);color:var(--ink)}
.t-rt__chips{display:flex;flex-wrap:wrap;gap:6px}
.t-rt__body{display:grid;gap:12px;align-content:start}
.t-rt__body.is-none .t-rt__chips{min-height:40px}
.t-rt__chip{appearance:none;border:0;padding:7px 12px;border-radius:999px;background:var(--stone);color:var(--ink);font:600 16px/1.2 var(--font-body);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s}
.t-rt__chip.is-lit{background:var(--ac);animation:t-rt-pop .45s cubic-bezier(.34,1.56,.64,1) both}
@keyframes t-rt-pop{0%{transform:scale(.8)}60%{transform:scale(1.12)}to{transform:none}}
.t-rt__hint{all:unset;align-self:flex-start;display:flex;align-items:center;gap:8px;cursor:pointer;padding:10px 16px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line2);color:var(--ink);font:600 16px/1.2 var(--font-body);-webkit-tap-highlight-color:transparent}
.t-rt__hint svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.t-rt__hint:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

/* who you tell it to, and the clock */
.t-rt__who{display:flex;align-items:center;gap:12px}
.t-rt__face{width:48px;height:48px;flex:none;border-radius:50%;display:grid;place-items:center;font:800 22px/1 var(--font-display);color:var(--ink)}
.t-rt__face.is-lena{background:var(--acSoft)}.t-rt__face.is-ben{background:#D6E8FA}.t-rt__face.is-friend{background:#DDEFD3}
.t-rt__face svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.t-rt__to{flex:1;margin:0;font:800 22px/1.15 var(--font-display);letter-spacing:-.02em;text-wrap:balance}
.t-rt__secs{flex:none;min-width:2.2ch;text-align:right;font:800 34px/1 var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.t-rt__secs.is-low{color:var(--acText)}
.t-rt__timebar{height:6px;border-radius:3px;background:var(--stone);overflow:hidden}.t-rt__timebar i{display:block;height:100%;background:var(--ink);transform-origin:left;transition:transform .15s linear}
.t-rt__plan{display:flex;align-items:center;gap:12px}.t-rt__plan .t-rc__timer{flex:1;width:auto}.t-rt__plan small{flex:none;color:var(--mut);font-size:16px;font-variant-numeric:tabular-nums}

/* the plant grows with every new word said */
.t-rt__grow{display:flex;align-items:center;gap:12px}
.t-rt__plant{width:58px;height:54px;flex:none;border-radius:50%;background:var(--acSoft);display:grid;place-items:center;overflow:hidden}
.t-rt__plant .t-mem--plant{width:46px;height:44px;margin:0}.t-rt__plant .t-mem--plant svg{width:100%;height:100%;stroke:none}
.t-rt__plant.is-big{width:132px;height:132px}.t-rt__plant.is-big .t-mem--plant{width:104px;height:98px}
.t-rt__plant.is-grow .t-mem--plant{transform-origin:50% 92%;animation:t-rc-grow .8s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__count{font:700 18px/1.2 var(--font-display)}
.t-rt__typed{height:auto;min-height:96px;padding:12px 14px;font-size:17px;line-height:1.4;resize:none}

/* between the rounds and at the end */
.t-rt__stat{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.t-rt__big{margin:0;font:800 30px/1.1 var(--font-display);letter-spacing:-.03em}
.t-rt__up{color:var(--green);font-weight:700}
p.t-rt__up{margin:0;font-size:17px}
.t-rt__fix{display:grid;gap:8px;padding:16px;border-radius:18px;background:#fff;box-shadow:var(--hair);animation:t-in .25s ease both}
.t-rt__fixh{margin:0;font:700 14px/1.2 var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--acText)}
.t-rt__better{margin:0;font:700 22px/1.3 var(--font-display);letter-spacing:-.01em}
.t-rt__fix .t-rc__tr{font-size:17px}
.t-rt__fixctl{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.t-rt__fixctl .t-rc__btn{padding:0 16px;height:46px}
.t-rt__fixctl .t-rc__btn.is-on{background:var(--ac);animation:t-pulse 1.6s ease-out infinite}
.t-rt__fixctl .t-rc__btn svg{width:20px;height:20px}
.t-rt__nice{display:inline-flex;align-items:center;gap:6px;height:46px;padding:0 16px;border-radius:16px;background:var(--ac);font:700 16px/1 var(--font-body);animation:t-rt-pop .45s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__nice svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.t-rt__oncesaid{margin:0;color:var(--mut);font-size:16px;min-height:1.3em}
.lm-btn.t-rt__next{gap:10px}.t-rt__next .t-rt__face{width:34px;height:34px;font-size:16px;background:rgba(255,255,255,.55)}.t-rt__next .t-rt__face svg{width:20px;height:20px}
.t-rt__react{margin:0;padding:14px 16px;border-radius:18px;background:var(--acSoft);font:600 18px/1.4 var(--font-body);text-align:center}
.t-rt__list{max-height:30vh}
.t-rt__row{box-sizing:border-box;width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;font-size:17px}
.t-rt__less{align-self:center}

/* the button at the end of the practice: retell the story */
.lm-btn.t-rc__rt{flex-direction:column;gap:2px;height:auto;min-height:60px;padding:10px 16px}
.t-rc__rt small{font:500 15px/1.2 var(--font-body);opacity:.75}

@media (prefers-reduced-motion:reduce){.t-rt__chip.is-lit,.t-rt__nice,.t-rt__plant.is-grow .t-mem--plant,.t-rt__fix{animation:none}}
/* her rule 31.10.2026: words recalled more than once may light up in the retell as a bonus; they do not count */
.t-rt__chip.is-bonus{background:none;box-shadow:inset 0 0 0 1.5px var(--line2);font-weight:500;font-size:15px}
.t-rt__chip.is-bonus.is-lit{background:var(--acSoft);box-shadow:none}
/* "Lots of help" (her wish 31.10.2026): the words to say inside the sentence, in the learned language */
.t-rt__in{all:unset;display:inline;padding:1px 6px;border-radius:8px;background:var(--stone);font-weight:700;cursor:pointer;-webkit-box-decoration-break:clone;box-decoration-break:clone;-webkit-tap-highlight-color:transparent}
.t-rt__in.is-bonus{background:none;box-shadow:inset 0 0 0 1.5px var(--line2);font-weight:600}
.t-rt__in.is-lit{background:var(--ac);box-shadow:none;animation:t-rt-pop .45s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__in:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.t-rt__chip.is-tr{font-weight:500}
/* her wish 31.10.2026: words said and parts told turn green while talking; after a round the story as it was told */
.t-rt__chip.is-lit,.t-rt__in.is-lit{background:var(--green);color:#fff;box-shadow:none}
.t-rt__chip.is-lit .t-wa,.t-rt__chip.is-lit span{color:inherit}
.t-rt__chip.is-off{background:var(--acSoft)}
.t-rt__parts>li{transition:background-color .3s,box-shadow .3s}
.t-rt__parts>li.is-now{box-shadow:inset 0 0 0 2px var(--ink)}
.t-rt__parts>li.is-done{background:#E6F5EC;box-shadow:inset 0 0 0 1.5px var(--green)}
.t-rt__parts>li.is-done::before{content:"✓";background:var(--green);color:#fff}
.t-rt__parts>li.is-new{animation:t-rt-told .7s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__parts>li.is-new::before{animation:t-rt-pop .5s cubic-bezier(.34,1.56,.64,1) .1s both}
@keyframes t-rt-told{0%{transform:scale(1)}40%{transform:scale(1.03);box-shadow:inset 0 0 0 1.5px var(--green),0 0 0 6px rgba(31,157,85,.18)}to{transform:none}}
.t-rt__track{display:flex;gap:6px;justify-content:center}
.t-rt__track span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--stone);color:var(--mut);font:700 14px/1 var(--font-body);transition:background-color .3s}
.t-rt__track span.is-now{box-shadow:inset 0 0 0 2px var(--ink);color:var(--ink)}
.t-rt__track span.is-done{background:var(--green);color:#fff}
.t-rt__track span.is-new{animation:t-rt-pop .5s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__track svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.t-rt__stage.is-review{justify-content:flex-start}
.t-rt__review{display:grid;gap:10px}
.t-rt__revh{margin:6px 0 0;font:800 22px/1.2 var(--font-display)}
.t-rt__parts.is-review>li.is-missed{background:var(--stone);box-shadow:none}
.t-rt__parts.is-review>li.is-partly::before{content:"~";background:var(--acSoft);color:var(--acText)}
.t-rt__parts.is-review>li.is-missed::before{background:#fff}
.t-rt__rsaid{margin:0;font:500 17px/1.45 var(--font-body)}
.t-rt__parts.is-review>li.is-missed .t-rt__rsaid{color:var(--mut)}
.t-rt__wrong{background:var(--acSoft);color:inherit;border-radius:.2em;padding:0 .1em;text-decoration:underline wavy var(--ac);text-underline-offset:3px}
.t-rt__fixrow{margin:0;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;font-size:16px;line-height:1.35}
.t-rt__fixrow b{color:var(--green);font-weight:700}.t-rt__fixrow b::before{content:"→ ";color:var(--mut);font-weight:400}
.t-rt__fixrow span{color:var(--mut)}
.t-rt__model{margin:0;font-size:16px;line-height:1.4;color:var(--ink)}.t-rt__model span{color:var(--mut)}
.t-rt__save{margin-top:4px}
.t-rt__clean{margin:4px 0 0;display:flex;align-items:center;gap:8px;justify-content:center;color:var(--green);font:600 16px/1.3 var(--font-body)}
.t-rt__clean svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.t-rt__parts>li.is-new,.t-rt__parts>li.is-new::before,.t-rt__track span.is-new{animation:none}}
/* her rule 31.10.2026: only the parts with mistakes are said again, one at a time, no clock */
.t-rt__stage.is-fix{justify-content:center;gap:16px}
.t-rt__fixn{margin:0;font:700 14px/1.2 var(--font-body);letter-spacing:.06em;text-transform:uppercase;color:var(--acText)}
.t-rt__say.is-plain{color:var(--mut)}
.t-rt__rsaid.is-big{font-size:21px;line-height:1.45;font-weight:600}
.t-rt__wrong.is-ok{background:var(--green);color:#fff;text-decoration:none;animation:t-rt-pop .5s cubic-bezier(.34,1.56,.64,1) both}
.t-rt__clean.is-big{font-size:18px;justify-content:flex-start}
/* her wish 02.11.2026: pick which mistakes become cards, all ticked at first */
.t-rt__pick{display:grid;gap:10px;margin-top:6px}
.t-rt__pickh{margin:0;color:var(--mut);font-size:16px;line-height:1.4}
.t-rt__picks{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.t-rt__pickrow{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#fff;box-shadow:var(--hair);cursor:pointer;-webkit-tap-highlight-color:transparent}
.t-rt__pickrow input{position:absolute;opacity:0;width:1px;height:1px}
.t-rt__box{width:26px;height:26px;flex:none;border-radius:8px;display:grid;place-items:center;box-shadow:inset 0 0 0 2px var(--line2);background:#fff;transition:background-color .15s}
.t-rt__box svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.t-rt__pickrow input:checked+.t-rt__box{background:var(--green);box-shadow:none}
.t-rt__pickrow input:checked+.t-rt__box svg{opacity:1}
.t-rt__pickrow input:focus-visible+.t-rt__box{outline:2px solid var(--ink);outline-offset:2px}
.t-rt__picktxt{flex:1;min-width:0;display:grid;gap:2px}
.t-rt__picktxt b{font:700 17px/1.25 var(--font-display)}
.t-rt__picktxt small{color:var(--mut);font-size:16px;line-height:1.3}
.t-rt__pickrow:has(input:not(:checked)) .t-rt__picktxt{opacity:.55}
.t-rt__save[disabled]{opacity:.45;cursor:default}
