/* THE WOODSHED'S LESSONS: js/woodshed-lessons.js's screens. Combat Center's words through the page's own classes; no boxes, no underlines, one idea to a screen, an
   upright phone never scrolls. He is colour-blind: right and wrong differ by shape and lightness, a lit part by being solid. */
#lessonPage .ws-col{min-width:clamp(320px,34vw,460px);max-width:50vw}
.wl-stage{flex:1 1 0;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(16px,5vh,48px) 0}
.wl-pic{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.wl-pic svg{display:block;width:auto;height:100%;max-width:100%;max-height:min(70vh,520px);overflow:visible}
.wl-ink,.wl-part{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.wl-solid{fill:#ffffff24;stroke:#fff;stroke-width:5;stroke-linejoin:round}
.wl-fill{fill:#ffffff24}
.wl-thick{stroke-width:9}
.wl-lit{stroke:var(--key)}
.wl-part.wl-fill.wl-lit{fill:var(--key)}
.wl-hit{fill:transparent;stroke:none}
.wl-label{font:700 24px var(--face);fill:#fff;stroke:none}
.wl-label--big{font-size:56px;font-style:italic;font-weight:800}
.wl-label--lit{fill:var(--key)}
.wl-key{fill:#ffffff1a;stroke:#fff;stroke-width:4}
.wl-key--black{fill:#05131f}
.wl-key--root{fill:#fff}
.wl-key--on{fill:var(--key)}
[data-part].is-lit .wl-part{stroke:var(--key);stroke-width:7}
[data-part].is-lit .wl-part.wl-fill{fill:var(--key)}
[data-part].is-wrong .wl-part{stroke:#fff;stroke-dasharray:3 9;opacity:.7}
.wl-pic--tap [data-part]{cursor:pointer}
.wl-folds--buzz .wl-solid{animation:wl-buzz .09s linear infinite alternate}
.wl-folds .wl-buzz{display:none}
.wl-folds--buzz .wl-buzz{display:block}
@keyframes wl-buzz{to{transform:translateY(2px) scaleX(1.012);transform-origin:50% 50%}}
@media(prefers-reduced-motion:reduce){.wl-folds--buzz .wl-solid{animation:none}}
.wl-say{box-sizing:border-box;padding:0 30px 0 24px;text-align:right;font:600 clamp(22px,2.3vw,30px)/1.18 var(--face);color:#fff;text-shadow:0 1px 2px #05131f,0 0 6px #05131fcc;min-width:0;width:0;min-width:100%}
.wl-say:empty{display:none}
.wl-line{margin:4px 0 6px}
.wl-big{font:italic 800 clamp(34px,4.2vw,58px)/1.02 var(--face);color:var(--key);margin:2px 0 6px}
.wl-big--miss{color:#fff}
.wl-say--loud .wl-big{font-size:clamp(44px,6vw,84px)}
.wl-cite{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 14px;margin-top:2px}
.wl-source{background:none;border:0;padding:6px 0;min-height:32px;color:var(--pale);font:600 15px/1 var(--face);letter-spacing:.05em;cursor:pointer;text-shadow:0 1px 2px #05131f}
.wl-source::before{content:'◇ ';color:var(--key)}
.wl-source:hover{color:#fff}
a.wl-source{display:inline-flex;align-items:center;text-decoration:none}
/* HEAR IT: the teacher's clip, the whole picture it can be at 16:9 inside the stage, on every shape of screen */
.wl-stage:has(.wl-film){container-type:size}
.wl-film{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.wl-film iframe{display:block;border:0;width:min(100cqw,177.7cqh);aspect-ratio:16/9;height:auto;background:#05131f}
.wl-track{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding-right:30px;min-height:18px}
.wl-track:empty{display:none}
.wl-pips{display:flex;gap:5px}
.wl-pips i{display:block;width:9px;height:9px;box-sizing:border-box;transform:rotate(45deg);border:2px solid #ffffff99}
.wl-pips i.did{background:#fff;border-color:#fff}
.wl-pips i.now{background:var(--key);border-color:var(--key)}
.wl-strikes{display:flex;gap:6px}
.wl-strikes i{display:flex;align-items:center;justify-content:center;width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:2px solid #ffffff80;font:800 15px/1 var(--face);font-style:normal;color:#fff}
.wl-strikes i.hit{background:#fff;color:#0a1f32;border-color:#fff}
.wl-words{margin-top:6px}
body .mw-menu #lessonPage .wl-answer{white-space:normal;text-align:right;line-height:1.1;height:auto}
body .mw-menu #lessonPage .wl-gap{margin-top:6px}
.wl-pager{padding-right:18px}
.wl-pager small{min-width:3em;text-align:center}
.wl-clock{position:absolute;right:6%;bottom:4%;font:italic 800 clamp(44px,6vw,84px)/1 var(--face);color:var(--key);text-shadow:0 2px 4px #000000d9;font-variant-numeric:tabular-nums}
.wl-qmark{font:italic 800 clamp(90px,16vh,180px)/1 var(--face);color:#ffffff40}
.wl-tracebox{width:100%;height:100%;min-height:80px;display:flex;align-items:center}
.wl-trace{display:block;width:100%;height:min(60%,320px)}
.wl-xp{width:min(520px,100%);display:flex;flex-direction:column;justify-content:center}
.wl-xp .reward-xp{width:100%;margin:0;padding:0}
.wl-sources{align-self:stretch;width:100%;display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}
.wl-srow{flex:none;display:flex;flex-direction:column;gap:1px;min-height:44px;color:#fff;text-decoration:none;text-shadow:0 1px 2px #05131f,0 0 6px #05131fcc}
.wl-srow b{font:700 clamp(17px,1.7vw,22px)/1.15 var(--face)}
.wl-srow span{font:600 clamp(14px,1.3vw,17px)/1.2 var(--face);color:var(--pale)}
.wl-srow:hover b{color:var(--key)}

@media(max-height:500px){
  #lessonPage .ws-col{width:clamp(320px,46vw,420px);min-width:0;max-width:none}
  .wl-say{padding:0 12px 0 8px;font-size:clamp(17px,2.4vw,20px)}
  .wl-big{font-size:26px}
  .wl-say--loud .wl-big{font-size:34px}
  .wl-stage{padding:6px 0}
  .wl-track{padding-right:12px}
  .wl-words{margin-top:2px}
}
@media(max-width:600px) and (orientation:portrait){
  #lessonPage .ws-head{order:0;margin:4px 0 2px}
  #lessonPage .wl-track{order:1;justify-content:flex-start;padding:0 0 2px}
  #lessonPage .wl-stage{order:2;flex:1 1 0;padding:4px 0;width:100%}
  #lessonPage .wl-say{order:3;width:100%;padding:0;text-align:left;font-size:22px}
  #lessonPage .wl-cite{justify-content:flex-start}
  #lessonPage .ws-list{order:4;margin-top:2px}
  #lessonPage .wl-desc{order:5;margin:0;min-height:0}
  #lessonPage .ws-foot{order:6;margin-top:0}
  body .mw-menu #lessonPage .wl-answer{text-align:left;justify-content:flex-start}
  .wl-big{font-size:38px}
  .wl-say--loud .wl-big{font-size:56px}
  .wl-pic svg{max-height:100%}
}
