/* The practice silk only enters the layout while a player is in the lesson. */
#pd-lesson[hidden] { display: none; }
.pd-lesson-active .level-row,
.pd-lesson-active #pd-progress,
.pd-lesson-active #board-shell,
.pd-lesson-active #message,
.pd-lesson-active #pd-coach,
.pd-lesson-active .controls,
.pd-lesson-active #result-screen { display: none; }
.pd-lesson-active #pd-title,
.pd-lesson-active #instruction,
.pd-lesson-active #pd-rule {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#pd-lesson { margin: 8px 0 0; }
#pd-lesson:focus { outline: none; }
.pd-lesson-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 8px; color: #E9DFC8; font: 600 18px/1.3 "PD Kai", serif; }
#pd-lesson-count { color: #C7A56A; font: 600 13px/1.3 system-ui, sans-serif; }
#pd-lesson-board { display: block; width: 100%; height: auto; border-radius: 6px; background: #2A1D18; touch-action: none; box-shadow: inset 0 0 0 1px #4A3428, 0 8px 22px rgb(0 0 0 / .35); }
#pd-lesson-line { min-height: 1.45em; margin: 12px 4px 2px; color: #E9DFC8; font: 600 17px/1.4 "PD Kai", serif; }
#pd-lesson-note { min-height: 1.4em; margin: 3px 4px 0; color: #C7A56A; font-size: 14px; }
.pd-lesson-actions { display: flex; justify-content: flex-end; gap: 8px; min-height: 44px; margin: 7px 0 0; }
.pd-lesson-actions button { min-height: 44px; border-color: #75583a; color: #F1E6C8; background: #5A3A26; }
.pd-lesson-actions button[hidden] { display: none; }
#pd-lesson-skip { margin-right: auto; border: 0; color: #C9BCA2; background: transparent; font-size: 13px; }
#pd-lesson-next { background: #764833; }
[data-pd="replay"] { border: 0; background: transparent; color: #6F3B2C; text-decoration: underline; font-size: 12px; }
[data-pd="replay"][hidden] { display: none; }
.pd-intro-card [data-pl="howto-pager"],
.pd-intro-card h2,
.pd-intro-card [data-pl="howto-credit"] { display: none; }
.pd-intro-card [data-pl="howto-pictures"] canvas { width: 160px; height: 190px; }
@media (max-height: 600px) and (max-width: 359px) {
  #pd-lesson { margin-top: 3px; }
  .pd-lesson-head { margin-bottom: 4px; }
  #pd-lesson-line { margin-top: 6px; font-size: 15px; }
  #pd-lesson-note { font-size: 13px; }
}
