/* Elen 2026-11-17: word trainer — Unbounded, palette rose #cf5236, blue #4162e9, olive #909b15, text #3e3535 */
.trn{max-width:860px;color:#3e3535}
.trstep{font-weight:450;font-size:15px;color:#cf5236;margin:18px 0 10px}
.trhow{display:flex;flex-wrap:wrap;gap:8px}
.trh{all:unset;cursor:pointer;font-family:var(--text);font-size:13.5px;font-weight:450;padding:9px 16px;border-radius:999px;background:#fff;color:#4162e9;box-shadow:0 0 0 1.5px #d9e0f1 inset}
.trh:hover{background:#eceffc}
.trh.on{background:#4162e9;color:#fff;box-shadow:none}
.trpick{margin:14px 0 4px}
.trlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px;max-height:320px;overflow:auto;padding:4px;background:#fdfbf6;border-radius:16px}
.trw{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:12px;background:#fff;cursor:pointer;font-size:13px;line-height:1.25}
.trw input{width:auto;margin:0;accent-color:#4162e9}
.trw b{font-weight:450;color:#cf5236}
.trw span{color:#6b655c}
.trw.on{box-shadow:0 0 0 1.5px #4162e9 inset}
.trmodes{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.trm{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:20px;background:#fffdf9;box-shadow:0 1px 2px rgba(70,50,20,.06),0 8px 24px rgba(70,50,20,.07);transition:transform .15s,box-shadow .15s}
.trm:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgba(70,50,20,.08),0 14px 34px rgba(70,50,20,.12)}
.trm:focus-visible{outline:2px solid #4162e9;outline-offset:2px}
.trm[disabled]{opacity:.45;cursor:default;transform:none}
.tri{font-size:26px;line-height:1}
.trm b{font-weight:450;font-size:15px;color:#3e3535}
.trm span:last-child{font-size:12px;line-height:1.35;color:#6b655c}
.trtop{display:flex;align-items:center;gap:12px;margin:4px 0 10px}
.trtop b{flex:1;font-weight:450;font-size:15px;text-align:center}
.trbar{height:6px;border-radius:4px;background:#ece5d6;overflow:hidden;margin:0 0 16px}
.trbar i{display:block;height:100%;background:linear-gradient(90deg,#909b15,#4162e9);transition:width .3s}
.trops{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.trop{all:unset;cursor:pointer;padding:14px 12px;border-radius:16px;background:#fff;box-shadow:0 0 0 1.5px #e3d9c8 inset;font-size:15px;line-height:1.3;text-align:center;transition:background .15s}
.trop:hover:not([disabled]){box-shadow:0 0 0 1.5px #4162e9 inset}
.trop.ok{background:#f0f1e0;box-shadow:0 0 0 2px #909b15 inset;color:#5d6420}
.trop.bad{background:#f5e6e4;box-shadow:0 0 0 2px #cf5236 inset;color:#cf5236}
.trform{display:flex;gap:8px;max-width:420px;margin:18px auto 8px}
.trform input{flex:1;font-size:18px;text-align:center}
.trfb{min-height:24px;font-size:15px;margin:6px 0}
.trfb.ok{color:#6d7428}.trfb.bad{color:#cf5236}
.trfb b{font-weight:450}
.say.huge{width:96px;height:96px;border-radius:50%;border:2px solid #4162e9;background:#fff;font-size:40px;cursor:pointer;margin:8px auto 6px;display:block}
.trslots{font-size:30px;letter-spacing:.18em;font-weight:450;color:#4162e9;margin:16px 0 10px;word-break:break-word}
.trslots.ok{color:#6d7428}.trslots.bad{color:#cf5236}
.trlets{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:460px;margin:0 auto}
.trl{all:unset;cursor:pointer;width:44px;height:44px;line-height:44px;text-align:center;border-radius:12px;background:#fff;box-shadow:0 0 0 1.5px #d9e0f1 inset;font-size:20px;font-weight:450;color:#3e3535}
.trl:hover{box-shadow:0 0 0 1.5px #4162e9 inset}
.trl[disabled]{opacity:.2;cursor:default}
.trl.bad{background:#f5e6e4;box-shadow:0 0 0 2px #cf5236 inset}
.trpairs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.trcol{display:flex;flex-direction:column;gap:10px}
.trp{all:unset;cursor:pointer;padding:14px 12px;border-radius:16px;background:#fff;box-shadow:0 0 0 1.5px #e3d9c8 inset;font-size:14.5px;line-height:1.3;text-align:center}
.trp.on{box-shadow:0 0 0 2px #4162e9 inset;background:#eceffc}
.trp.ok{background:#f0f1e0;box-shadow:0 0 0 2px #909b15 inset;opacity:.6}
.trp.bad{background:#f5e6e4;box-shadow:0 0 0 2px #cf5236 inset}
.trscore{font-size:16px;margin:4px 0 12px}.trscore b{font-size:28px;color:#4162e9;font-weight:450}
.trmiss{text-align:left;max-width:380px;margin:0 auto;background:#fdfbf6;border-radius:14px;padding:10px 14px;font-size:14px;line-height:1.6}
.trmiss b{font-weight:450;color:#cf5236}
.wnew{display:inline-block;font-size:10.5px;font-weight:450;color:#fff;background:#909b15;border-radius:999px;padding:1px 8px;vertical-align:2px;margin-left:4px}
.wcard .wdel{flex:none;width:32px;height:32px;border-radius:50%;border:0;background:#f5e6e4;cursor:pointer;font-size:14px;line-height:32px;padding:0}
.wcard .wdel:hover{background:#cf5236}
@media (max-width:640px){
  .trmodes{grid-template-columns:1fr 1fr;gap:10px}
  .trm{padding:12px}
  .trops{grid-template-columns:1fr}
  .trl{width:40px;height:40px;line-height:40px}
}
