#guidedLesson{position:fixed;z-index:18;box-sizing:border-box;width:min(338px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:15px 17px 12px;color:#24352f;background:linear-gradient(135deg,#fff8e5,#f9ebc5);border:2px solid #08776b;border-top:5px solid #33d8b6;border-radius:9px;box-shadow:0 0 0 2px #c6ffec,0 10px 30px #000a;font:14px/1.5 system-ui,sans-serif;pointer-events:auto;text-align:left}
#guidedLesson[hidden],#lessonArrow[hidden]{display:none!important}
#guidedLesson .lesson-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font:700 10px/1.4 system-ui;letter-spacing:.09em;color:#075a50;text-transform:uppercase}
#guidedLesson .lesson-count{color:#3f5e54;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
#guidedLesson h2{font:700 20px/1.2 Georgia,serif;margin:9px 0 7px;color:#133d34}
#guidedLesson p{margin:0 0 10px}
#guidedLesson .lesson-control{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:10px}
#guidedLesson kbd{display:inline-block;font:700 12px/1.3 system-ui;padding:6px 9px;border:1px solid #08776b;border-bottom-width:3px;border-radius:5px;background:#e2f6ed;color:#143f35;white-space:normal}
#guidedLesson .lesson-controls-label{font-size:11px;color:#38574c}
#guidedLesson .lesson-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
#guidedLesson button{min-height:35px;padding:7px 12px;border-radius:5px;border:1px solid #80300f;background:#a83c12;color:#fff9eb;font:700 12px/1.3 system-ui;cursor:pointer}
#guidedLesson button.skip{border-color:#467366;color:#284a3e;background:#edf4e5;font-weight:500}
#guidedLesson button:focus-visible{outline:3px solid #075a50;outline-offset:3px}
#guidedLesson .lesson-status{font:11px/1.4 system-ui;color:#3c5b50;margin:9px 0 0}
#lessonArrow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:17;overflow:visible}
#lessonArrow rect{fill:none}#lessonArrow .lesson-ring-shadow{stroke:#07141ed9;stroke-width:5}#lessonArrow .lesson-ring{stroke:#66ffe0;stroke-width:1.5}
#lessonArrow path[class]{fill:none;stroke-linecap:round}#lessonArrow .lesson-line-shadow{stroke:#07141ed9;stroke-width:5}#lessonArrow .lesson-line{stroke:#66ffe0;stroke-width:2}#lessonArrow .lesson-dot{fill:#66ffe0;stroke:#11232d;stroke-width:1.5}
/* Compact screens retain the target's highlight; cards scroll rather than leave the viewport. */
@media(max-width:699px),(max-height:520px){#guidedLesson{width:min(286px,calc(100vw - 24px));padding:10px 12px;font-size:12px;line-height:1.4}#guidedLesson h2{font-size:18px;margin:6px 0}#guidedLesson p{margin-bottom:7px}#guidedLesson .lesson-actions{gap:6px;margin-top:8px}#guidedLesson .lesson-status{font-size:10px;margin-top:7px}#guidedLesson button{padding:6px 8px;min-height:34px;font-size:11px}#guidedLesson kbd{padding:4px 7px}}
#localMap{position:fixed;left:20px;bottom:115px;width:126px;height:126px;z-index:5;border:2px solid #c5a365;border-radius:50%;background:#101923dd;pointer-events:none}#localMap[hidden]{display:none}

/* Distinct key/action pairs teach the two universal menu controls at a glance. */
#guidedLesson .lesson-menu-keys{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
#guidedLesson .lesson-menu-keys>div{display:grid;justify-items:start;gap:5px;padding:10px;background:#e4f1df;border:1px solid #6b9e88;border-radius:7px}
#guidedLesson .lesson-menu-keys kbd{font-size:20px;color:#143f35;border-color:#08776b;min-width:32px;text-align:center}
#guidedLesson .lesson-menu-keys strong{font-size:13px;color:#174b3d}
#guidedLesson .lesson-menu-keys small{font-size:11px;line-height:1.4;color:#38574c}
body.npc-conversation #questbox{display:none!important}

/* One teaching color connects the card, leader and highlighted HUD target. */
#lessonArrow marker path{fill:#66ffe0}

#guidedLesson.lesson-success{border-color:#248243}#guidedLesson.lesson-success .lesson-status{font-weight:800;color:#155e31;background:#dff6cf;padding:8px;border-radius:5px}
#guidedLesson .lesson-menu-keys{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
#menuTour{position:sticky;top:0;z-index:3;box-sizing:border-box;text-align:left;padding:14px 17px;margin:0 0 16px;border:2px solid #08776b;border-top:5px solid #33d8b6;border-radius:9px;background:linear-gradient(135deg,#fff8e5,#f9ebc5);color:#24352f;font:14px/1.5 system-ui,sans-serif}#menuTour h3{font:700 21px Georgia,serif;color:#133d34;margin:6px 0}#menuTour p{margin:7px 0 12px}.menu-tour-count{font-size:11px;color:#075a50;font-weight:800}.menu-tour-actions{display:flex;flex-wrap:wrap;gap:8px}#menuTour button{padding:8px 12px;border:1px solid #08776b;border-radius:6px;background:#e4f1df;color:#174b3d;font:700 13px system-ui;cursor:pointer}#menuTour button[data-next]{background:#a83c12;color:#fff9eb;border-color:#7c2b0b}#menuTour button:disabled{opacity:.45}#menuTour button:focus-visible{outline:3px solid #bd6800;outline-offset:2px}.pausecard .menu-tour-target{outline:3px solid #ffe05b!important;outline-offset:3px;box-shadow:0 0 16px #ffe05b66!important}
