/* Part 144: LEARN TO RIDE (lesson144.js). One card on the left of the ride screen, clear of the course strip, the
   score and the speed: what to do now, the keys for it, and six marks for the six things to learn. */
.lesson{position:fixed;left:max(20px,env(safe-area-inset-left));top:86px;z-index:12;width:min(310px,calc(100vw - 40px));display:flex;flex-direction:column;gap:7px;padding:14px 16px 13px;border-radius:16px;color:#eef6ff;background:linear-gradient(160deg,rgba(9,22,36,.9),rgba(9,22,36,.78));border:1px solid rgba(127,224,176,.35);box-shadow:0 14px 36px rgba(0,0,0,.35);backdrop-filter:blur(6px);pointer-events:none;animation:lessonIn .4s cubic-bezier(.2,.8,.3,1)}
.lesson.hidden{display:none}
@keyframes lessonIn{from{opacity:0;transform:translateX(-14px)}}
.lesson-eyebrow{font:800 10px/1.2 Barlow,system-ui,sans-serif;letter-spacing:.16em;color:#7fe0b0}
.lesson-title{font:900 italic 34px/.95 "Barlow Condensed",Barlow,system-ui,sans-serif;letter-spacing:.01em}
.lesson p{margin:0;font:600 14px/1.42 Barlow,system-ui,sans-serif;color:#d3e1f0}
.lesson kbd{display:inline-block;min-width:22px;margin:0 1px;padding:1px 6px;border-radius:6px;font:800 12px/1.45 Barlow,system-ui,sans-serif;text-align:center;color:#06101c;background:#eef6ff;box-shadow:0 2px 0 #9fb3c9}
.lesson.cheer{border-color:#7fe0b0;background:linear-gradient(160deg,rgba(14,64,48,.92),rgba(9,22,36,.85))}
.lesson-cheer{color:#9ff0c8;animation:lessonCheer .5s cubic-bezier(.2,.9,.3,1.4)}
@keyframes lessonCheer{from{transform:scale(1.35);opacity:0}}
.lesson-carve{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.lesson-carve i{position:relative;overflow:hidden;padding:5px 8px;border-radius:8px;font:800 10px/1.2 Barlow,system-ui,sans-serif;font-style:normal;letter-spacing:.14em;text-align:center;background:rgba(255,255,255,.08)}
.lesson-carve i::before{content:'';position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--f,0));background:rgba(127,224,176,.45);transition:transform .12s linear;z-index:-1}
.lesson-carve i{isolation:isolate}
.lesson-pips{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:3px 0 0;padding:0;list-style:none}
.lesson-pips li{height:5px;border-radius:3px;background:rgba(255,255,255,.16);position:relative}
.lesson-pips li span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.lesson-pips li.done{background:#7fe0b0}
.lesson-pips li.now{background:#eef6ff;animation:lessonNow 1.2s ease-in-out infinite}
@keyframes lessonNow{50%{opacity:.45}}
.lesson[data-step=done]{border-color:#ffcf63}
.lesson[data-step=done] .lesson-eyebrow{color:#ffcf63}
@media(max-width:700px){
  /* Below the speed, the score and the turn-your-phone note, above the rider. */
  .lesson{left:50%;top:calc(150px + env(safe-area-inset-top));width:min(360px,calc(100vw - 24px));transform:translateX(-50%);padding:10px 12px;gap:5px;animation:none}
  .lesson-title{font-size:26px}
  .lesson p{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.lesson,.lesson-cheer,.lesson-pips li.now{animation:none}}
body.reduced-motion .lesson,body.reduced-motion .lesson-cheer,body.reduced-motion .lesson-pips li.now{animation:none}
.help-learn{margin-top:14px;width:100%;justify-content:space-between}
