.guided-lesson{max-width:760px!important;margin:0 auto!important;padding:12px 28px 24px!important;border:0!important;background:transparent!important;box-shadow:none!important}.lesson-phases{display:flex;gap:8px;justify-content:center;margin:0 0 14px}.lesson-phases span{padding:7px 18px;border-radius:30px;color:#647186;font-size:14px;font-weight:700;background:#edf0f4}.lesson-phases .phase-current{background:#e5f3e9;color:#1d7434}.guided-stage{max-width:540px;margin:auto}.guided-stage>.ts-film{max-width:500px;margin:auto;border:1px solid #dce2e9}.guided-prompt{text-align:center;font-size:clamp(21px,2vw,27px)!important;line-height:1.3!important;margin:4px auto 16px!important;max-width:520px}.guided-count{text-align:center;font-size:13px;color:#647186;margin:4px 0}.guided-direction{text-align:center;font-size:16px;margin:0 0 12px}.guided-board-wrap{width:min(100%,480px);margin:auto}.guided-board{width:100%!important;max-width:none!important;aspect-ratio:1;border:3px solid #c7d5e6!important;border-radius:14px!important;overflow:hidden;box-shadow:0 5px 0 #c7d5e6}.guided-board .square{border:0!important;border-radius:0!important;padding:0!important;margin:0!important;min-width:0!important;min-height:0!important;width:100%!important;aspect-ratio:1;position:relative;display:grid!important;place-items:center;box-shadow:none!important;opacity:1!important}.guided-board .square img{width:86%!important;height:86%!important;object-fit:contain;position:relative;pointer-events:none}.guided-board .square .coord{font-size:9px}.guided-board .square.selected{box-shadow:inset 0 0 0 4px #4285f4!important}.guided-board .square.guided-target{background:#fff0b3!important;box-shadow:inset 0 0 0 3px #fbbc05!important}.guided-spark{position:absolute;font-size:31px;color:#e5a900;pointer-events:none}.guided-board .square img+.guided-spark{right:1px;top:-1px;font-size:18px}.guided-feedback{min-height:32px;padding:12px 16px;margin:12px 0 0;border-radius:12px;text-align:center;font-size:17px;font-weight:600}.guided-feedback:empty{display:none}.guided-feedback.correct{background:#e5f3e9;color:#1d7434}.guided-feedback.retry{background:#fff0cf;color:#72520c}.guided-next{text-align:center;margin-top:12px}.guided-next .primary,.guided-start{min-height:48px!important;min-width:210px}.guided-start{display:block;margin:16px auto 0!important}.guided-tools{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px}.guided-tools button{background:transparent!important;border:0!important;box-shadow:none!important;font-size:13px!important;padding:6px!important;color:#43546b!important;min-height:36px!important}.guided-hint{font-size:15px;line-height:1.5}.guided-choices{display:flex;justify-content:center;gap:10px;margin-top:18px;flex-wrap:wrap}.guided-choices button{min-height:48px;padding:12px 18px}.journey-root:has(.guided-lesson)>h1{font-size:clamp(24px,2.4vw,32px);margin:6px 0 14px}.journey-root:has(.guided-lesson)>.journey-kicker{display:none}.journey-root:has(.guided-lesson)>.journey-crumbs{margin-bottom:12px}@media(max-width:650px){.guided-lesson{padding:8px 0 18px!important}.guided-prompt{font-size:22px!important}.guided-board-wrap{width:min(100%,440px)}.guided-stage>.ts-film{max-width:480px}.lesson-phases span{padding:6px 14px}.guided-tools{margin-top:10px}.guided-stage{width:100%}}
.journey-page:has(.guided-lesson) .journey-status{display:none}.journey-page:has(.guided-lesson) main{padding-top:12px!important}.journey-page:has(.guided-lesson) header{padding-top:8px!important;padding-bottom:8px!important}.journey-page:has(.guided-lesson) header button{height:44px!important;min-height:44px!important;padding:8px 14px!important}.journey-root:has(.guided-lesson){position:relative}.journey-root:has(.guided-lesson)>.journey-crumbs{position:absolute;left:0;right:0;top:0;margin:0!important;pointer-events:none}.journey-root:has(.guided-lesson)>.journey-crumbs button{pointer-events:auto;min-height:40px;height:40px;padding:4px 12px}.journey-root:has(.guided-lesson)>h1{text-align:center;padding:0 55px;min-height:42px;margin:0 0 8px!important;display:flex;align-items:center;justify-content:center}.guided-lesson .guided-direction{display:none}.guided-board .square:disabled{cursor:default}.guided-lesson .guided-stage>.ts-film{max-width:min(480px,calc(100dvh - 390px))}@media(min-width:900px){.guided-board-wrap{max-width:min(480px,max(352px,calc(100dvh - 350px)))}}@media(max-width:899px){.guided-lesson .guided-stage>.ts-film{max-width:480px}.journey-root:has(.guided-lesson)>h1{font-size:24px}.journey-page:has(.guided-lesson) header{padding-left:16px!important;padding-right:16px!important}}
@media(max-width:899px){.journey-page:has(.guided-lesson) .duo-progress-rail .rail-guide{display:none!important}.journey-page:has(.guided-lesson) .duo-progress-rail{gap:6px!important;padding-top:5px!important;padding-bottom:6px!important}.journey-page:has(.guided-lesson) .duo-progress-rail .rail-stats{padding:5px 10px!important}.journey-page:has(.guided-lesson) .duo-progress-rail .rail-play{padding:0 10px!important}.journey-page:has(.guided-lesson) header{height:64px!important;box-sizing:border-box}.journey-page:has(.guided-lesson) header img{max-height:28px!important;object-fit:contain}.journey-page:has(.guided-lesson) .chess-play-actions button{min-height:42px!important}}
.guided-board .square{background:#fffdf7!important}.guided-board .square.dark{background:#dae8ff!important}.guided-board .square.guided-target{background:#fff0b3!important}

/* Fill each square with one touch target and center the artwork inside it. */
.guided-board .square {
  touch-action: manipulation;
}
.guided-board .square img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80% !important;
  height: 80% !important;
}
.guided-move-help {
  margin: 0 0 8px;
  text-align: center;
  font-size: .875rem;
}.guided-board .square.guided-correction,
.guided-choices button.guided-correction {
  background: #dcfce7 !important;
  box-shadow: inset 0 0 0 3px #21834b !important;
}

/* Give the piece artwork more presence without changing the touch targets. */
.guided-board .square img { scale: 1.12 1; }
.guided-board .square:is([data-piece="wp"], [data-piece="bp"]) img { scale: 1.12 1.10; }
