/* Quiet reading surface inside the existing jungle game. */
.tg-guided #tg-reading{background:#fffaf0;border:2px solid #b9a46d;padding:24px;color:#243c31;box-shadow:0 4px 0 #a68b4c22}
.tg-guided #tg-reading-title{margin:0 0 14px;max-width:38em;font-size:23px;line-height:1.5;text-shadow:none}
.tg-guided #tg-reading .tg-reading-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 8px}
.pilot-mode .tg-guided #tg-reading:not([hidden]){width:min(850px,calc(100vw - 30px));box-shadow:0 0 0 100vmax #102c24c9}
.pilot-mode .tg-guided #tg-reading .tg-reading-actions{position:static;background:transparent;padding:0}
.lesson-audio-primary{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.tg-guided #tg-reading button.small-btn{font-size:14px;line-height:1.5;min-height:44px;padding:10px 14px;box-shadow:0 3px 0 #8a693a66}
#tg-reading #bm-stop:disabled{display:none}
.lesson-reading-options{margin-left:auto;max-width:100%;border:1px solid #c6ba96;border-radius:10px;background:#fffdf5;color:#304b3b}
.lesson-reading-options summary{cursor:pointer;min-height:44px;padding:11px 16px;font-size:14px;font-weight:600;list-style-position:inside}
.lesson-reading-settings{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 12px 12px}
.lesson-reading-settings .bm-rate{font-size:13px;gap:8px}
.tg-guided #tg-reading .tg-audio-note{margin:0 0 16px;font-size:12px;line-height:1.6;color:#526450}
.lesson-reading-layout{display:block}
.is-learning-checkpoint .lesson-reading-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);align-items:start;gap:20px;margin:0 0 20px}
.lesson-passage{min-width:0}
.is-learning-checkpoint .lesson-passage{padding:20px 22px;border:1px solid #ddd3b6;border-left:4px solid #60845d;border-radius:12px;background:#fffef9}
.lesson-section-label{margin:0 0 12px;font-size:14px;line-height:1.6;font-weight:600;color:#49654b}
#tg-reading:not(.is-learning-checkpoint) .lesson-section-label{display:none}
.tg-guided #tg-reading-text{font-size:21px;line-height:1.85;letter-spacing:.025em;word-spacing:.06em;max-width:55ch;margin:0;text-align:left;text-shadow:none;overflow-wrap:break-word}
.tg-guided #tg-reading-text.tg-focus-passage{background:#fff1c9;padding:10px}
#tg-reading .bm-reading{outline:2px solid #71916b;outline-offset:5px}
.is-learning-checkpoint #tg-reading-graphic{min-width:0}
#tg-reading .gq-visual{margin:0;width:100%;max-width:400px;border:1px solid #b6c4a2;border-radius:12px;background:#eef2e5;box-shadow:none}
#tg-reading .gq-scene{height:140px;background:#dce8d2}
.gq-habitat-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 48%}
.gq-scene-1 .gq-habitat-photo{object-position:20% 55%}.gq-scene-2 .gq-habitat-photo{object-position:60% 24%}.gq-scene-3 .gq-habitat-photo{object-position:70% 62%}
#tg-reading .gq-animal{width:95px;height:95px;right:8px;bottom:3px}
#tg-reading .gq-visual figcaption{font-size:13px;line-height:1.6;padding:9px 12px;background:#edf2e4;border-top:1px solid #bccba9;color:#365136;text-shadow:none}
#tg-reading .gq-scene:has(.gq-items),#tg-reading .gq-scene:has(.gq-track-visual),#tg-reading .gq-scene:has(.gq-threat),#tg-reading .gq-scene:has(.gq-recovery),#tg-reading .gq-scene:has(.gq-eggs){height:auto;min-height:140px;padding-top:116px}
#tg-reading .gq-scene .gq-items,#tg-reading .gq-scene .gq-track-visual,#tg-reading .gq-scene .gq-threat,#tg-reading .gq-scene .gq-recovery,#tg-reading .gq-scene .gq-eggs{position:relative;left:auto;bottom:auto;z-index:4;margin:0 8px 8px;max-width:none;box-shadow:none;font-size:12px;padding:8px;background:#fffdf2;flex-wrap:wrap}
#tg-reading .gq-scene:has(.gq-items) .gq-animal,#tg-reading .gq-scene:has(.gq-track-visual) .gq-animal,#tg-reading .gq-scene:has(.gq-threat) .gq-animal,#tg-reading .gq-scene:has(.gq-recovery) .gq-animal,#tg-reading .gq-scene:has(.gq-eggs) .gq-animal{top:15px;bottom:auto}
#tg-reading .gq-items{justify-content:space-around;gap:5px}
#tg-reading .gq-item{background:transparent;border:0;box-shadow:none;min-width:50px;padding:3px;font-size:12px}
#tg-reading .gq-food{width:30px;height:30px}
#tg-reading .gq-track-visual svg{width:42px;height:40px}
#tg-reading .gq-threat>span{width:30px;height:30px;font-size:18px;border-width:2px}
#tg-reading .lesson-reading-layout.has-comparison{grid-template-columns:1fr}
#tg-reading .gq-compare{margin:0;gap:12px}
.tg-guided #tg-reading .tg-lesson{margin:0;padding:18px 0 0;border-top:1px solid #c9d0b7}
.tg-lesson>.tg-lesson-step{display:none}
.lesson-question-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.lesson-question-heading #tg-question{flex:1 1 280px;margin:0;font-size:21px;line-height:1.7;letter-spacing:.02em;color:#243c31}
.tg-guided #tg-reading .tg-lesson-answer{background:#fffef9;box-shadow:0 2px #c5cba9;font-size:18px;line-height:1.7;padding:12px 16px}
.tg-guided #tg-reading .tg-lesson-answer.is-correct{background:#e4f0d6}
#tg-reading .tg-explore{display:block;margin:18px 0 8px;background:#f7f1df;border-color:#c4b891;color:#526048}
.text-large .tg-guided #tg-reading-text,.text-large .lesson-question-heading #tg-question{font-size:24px}
@media(max-width:900px){.is-learning-checkpoint .lesson-reading-layout{grid-template-columns:1fr;gap:16px}#tg-reading .gq-visual{max-width:360px;margin:auto}#tg-reading .gq-scene{height:126px}}
@media(max-width:650px){.tg-guided #tg-reading{padding:16px}.tg-guided #tg-reading-title{font-size:20px}.tg-guided #tg-reading-text{font-size:19px;line-height:1.85}.is-learning-checkpoint .lesson-passage{padding:16px}.lesson-reading-options{margin-left:0}.lesson-question-heading #tg-question{font-size:19px}.lesson-question-heading{gap:10px}.tg-guided #tg-reading .tg-lesson-answer{font-size:17px}.lesson-reading-settings{display:grid;gap:10px}}
