#learning-mode-dialog,#learning-reading-dialog{box-sizing:border-box;width:min(900px,94vw);max-height:90dvh;overflow:auto;border:3px solid #d2ad65;border-radius:28px;padding:clamp(18px,4vw,32px);background:#fff9e9;color:#193e32;box-shadow:0 15px 60px #17362d55;font-family:Verdana,Arial,sans-serif}
#learning-mode-dialog::backdrop,#learning-reading-dialog::backdrop{background:#102e2670}
.lm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.lm-heading h2{font-size:clamp(22px,4vw,30px);margin:0}.lm-heading button{min-width:44px;min-height:44px}
.lm-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.lm-card{position:relative;text-align:left;padding:24px;border:3px solid #adc88c;border-radius:26px;background:linear-gradient(145deg,#fff5cc,#e8f2ce);color:#193e32;box-shadow:0 5px 0 #a8b77d;font-family:inherit;cursor:pointer;min-width:0}.lm-card[data-mode="inclusive"]{background:linear-gradient(145deg,#fff3ff,#eadcff);border-color:#bb9cd8;box-shadow:0 5px 0 #ac92bf}.lm-card[aria-pressed="true"]{outline:4px solid #286e4a;outline-offset:4px}.lm-card .lm-icon{display:block;font-size:52px}.lm-card strong{display:block;font-size:23px;margin:12px 0}.lm-card p{font-size:18px;line-height:1.65;margin:0}.lm-selected{display:block;margin-top:15px;font-weight:bold;min-height:24px}.lm-primary{padding:14px 24px;border:2px solid #244f39;border-radius:18px;background:#347846;color:#fff;font:700 18px Verdana,sans-serif;min-height:48px;cursor:pointer}.lm-primary:disabled{opacity:.5;cursor:default}.lm-settings{border:1px solid #c7b5d4;border-radius:18px;padding:16px;margin:18px 0;background:#f5edff}.lm-settings label{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:18px}.lm-settings select,.lm-settings input{min-height:30px}.lm-settings input{width:24px}.lm-note{font-size:16px;line-height:1.6}.lm-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.lm-actions button{min-height:48px;padding:10px 16px;border-radius:16px;font:inherit;background:#ffedb3;color:#193e32;border:2px solid #c6a765;cursor:pointer}
#learning-home-mode{position:relative;display:block;margin:12px auto;min-height:48px;padding:12px 20px;border:2px solid #bd9e55;border-radius:20px;background:#fff4d4;color:#193e32;font:700 18px Verdana,sans-serif;cursor:pointer}
#learning-reading-tools{position:fixed;bottom:12px;left:12px;z-index:220;background:#fff5df;border:2px solid #a5bf8e;border-radius:18px;padding:10px;max-width:calc(100vw - 24px);color:#193e32;font:18px Verdana,sans-serif;box-shadow:0 3px 14px #1234}#learning-reading-tools[hidden]{display:none}#learning-reading-tools summary{cursor:pointer;min-height:32px}.lm-reading-text{font:var(--lm-size,20px)/1.8 Verdana,sans-serif;letter-spacing:.04em;word-spacing:.12em;background:#fff9e9;color:#193e32;padding:18px;border-radius:18px;white-space:pre-line}.lm-progress{font-size:16px}
html[data-learning-mode="inclusive"] body :is(p,li,label,summary,button,input,select,textarea,h1,h2,h3,h4){font-family:Verdana,Arial,sans-serif!important;letter-spacing:.035em;word-spacing:.1em;line-height:1.65}
html[data-learning-mode="inclusive"] body :is(p,li,label,summary,button,input,select,textarea){font-size:var(--lm-size,20px)!important}
html[data-learning-mode="inclusive"] body :is(.panel,.reading,.passage,.reading-passage,.question-card,.learning-card,dialog){background-color:#fff9e9;color:#193e32}
html[data-learning-mode="inclusive"] body :is(#fact-text,#reading-text,.passage,.reading-passage){background:#fff9e9!important;color:#193e32!important;padding:16px;border-radius:18px;line-height:1.85!important}
html[data-learning-mode="inclusive"] body :is(.speech-bubble,.spot,.hotspot,.opening-art){animation:none!important}
html[data-learning-mode="inclusive"] body :is(.forest-walk-pad button,.forest-walk-toggle){font-size:18px!important;letter-spacing:normal;line-height:1.2}
:is(#learning-mode-dialog,#learning-reading-dialog) button:focus-visible{outline:4px solid #246697;outline-offset:3px}
@media(max-width:600px){.lm-cards{grid-template-columns:1fr;gap:16px}.lm-card{padding:16px}.lm-card .lm-icon{font-size:32px}.lm-card strong{font-size:20px}.lm-card p{font-size:17px}.lm-settings{padding:10px}}
#learning-reading-dialog{background:var(--lm-paper,#fff9e9)!important}#learning-reading-dialog .lm-reading-text{background:var(--lm-paper,#fff9e9)!important}.lm-word-current{background:#ffe59a;color:#193e32!important;border-radius:5px;box-shadow:0 2px 0 #b17b26}html[data-learning-mode="inclusive"] body:has(#learning-reading-dialog[open]) *,html[data-learning-mode="inclusive"] body:has(#learning-mode-dialog[open]) *{animation-play-state:paused!important}
.lm-home-cover{position:relative;width:100%;max-width:1672px;margin:auto;line-height:0}.lm-home-cover>img{display:block;width:100%;height:auto}.lm-cover-choice{position:absolute;top:36%;height:59%;width:37%;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:8%;cursor:pointer}.lm-cover-main{left:12%}.lm-cover-inclusive{left:50%}.lm-cover-choice:hover{outline:4px solid #ffed92;outline-offset:-4px}.lm-cover-choice:focus-visible{outline:5px solid #fff;box-shadow:0 0 0 8px #275f49!important}.lm-cover-choice span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#rimba-home .home-scene[hidden]{display:none!important}@media(max-width:600px){.lm-cover-choice{top:80%;height:15%;border:2px solid #fff!important}.lm-cover-choice span{position:static;display:block;width:auto;height:auto;clip-path:none;font:700 12px/1.3 Verdana;color:white;background:#275f49;padding:5px;border-radius:12px}.lm-cover-inclusive span{background:#66378b}}

/* Illustrated entrance; normal in-game settings retained. */
#learning-mode-dialog .lm-illustrated-picker{display:none}
#learning-mode-dialog.lm-art-mode{width:min(96vw,1500px);max-width:none;max-height:96dvh;padding:0;border:0;border-radius:24px;background:#254f34;overflow:auto}
#learning-mode-dialog.lm-art-mode> :not(.lm-illustrated-picker){display:none!important}
#learning-mode-dialog.lm-art-mode .lm-illustrated-picker{display:block;position:relative;line-height:0}
.lm-illustrated-picker>img{display:block;width:100%;height:auto}
#learning-mode-dialog .lm-art-choice{position:absolute;top:36%;height:60%;width:38%;padding:0;border:0;background:transparent;box-shadow:none;border-radius:9%;cursor:pointer;transform:none}
.lm-art-main{left:11.5%}.lm-art-inclusive{left:50%}
#learning-mode-dialog .lm-art-choice:hover{outline:4px solid #fff3a6;outline-offset:-5px}
#learning-mode-dialog .lm-art-choice:focus-visible{outline:5px solid white;outline-offset:-6px;box-shadow:inset 0 0 0 10px #245d42}
.lm-art-choice span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#learning-mode-dialog .lm-art-close{position:absolute;right:1%;top:1%;min-width:44px;min-height:44px;padding:4px 12px;border:2px solid #ad7c37;border-radius:50%;background:#fff4d3;color:#234537;font:700 24px/1 Arial;cursor:pointer}
@media(max-width:600px){#learning-mode-dialog.lm-art-mode{width:98vw;border-radius:14px}.lm-illustrated-picker{padding-bottom:66px}#learning-mode-dialog .lm-art-choice{top:auto;bottom:8px;height:48px;width:46%;border:2px solid #fff4bc;border-radius:18px;background:#306e35}.lm-art-main{left:2%}.lm-art-inclusive{left:52%}#learning-mode-dialog .lm-art-inclusive{background:#693bb3}.lm-art-choice span{position:static;width:auto;height:auto;clip-path:none;display:block;color:white;font:700 14px/1.3 Verdana;padding:4px}}

/* Reading assistance is mode-specific; retain original visibility/handlers. */
html:not([data-learning-mode="inclusive"]) [data-reading-assistance]{display:none!important}
html[data-learning-mode="inclusive"] .syllable-0{color:#914510!important}
html[data-learning-mode="inclusive"] .syllable-1{color:#245b8a!important}
html[data-learning-mode="inclusive"] .syllable-2{color:#276440!important}

/* Elephant stages: retain word spaces while showing each syllable separately in Inclusive mode. */
html[data-learning-mode="inclusive"] .word-unit{display:inline-block;white-space:nowrap;margin-inline-end:.08em}
html[data-learning-mode="inclusive"] .syllable{display:inline-block}
html[data-learning-mode="inclusive"] body .syllable.syllable-0{color:#914510!important}
html[data-learning-mode="inclusive"] body .syllable.syllable-1{color:#245b8a!important}
html[data-learning-mode="inclusive"] body .syllable.syllable-2{color:#276440!important}
html:not([data-learning-mode="inclusive"]) #learning-syllables,html:not([data-learning-mode="inclusive"]) #settings-body #syllables{display:none!important}
