/* Generated from shared question-layout.json. */
.journey-stage,.journey-answer-history{--question-portrait:96px;--question-character-gap:14px;--question-bubble-padding:16px;--question-answer-height:74px;--question-answer-font:18px;--question-answer-x:16px;--question-answer-y:16px;--question-answer-gap:12px}
@media(max-width:600px){.journey-stage,.journey-answer-history{--question-portrait:64px;--question-character-gap:10px;--question-bubble-padding:12px;--question-answer-height:64px;--question-answer-font:17px;--question-answer-x:12px;--question-answer-y:10px;--question-answer-gap:8px}}
@media(max-width:360px) and (max-height:700px){.journey-stage,.journey-answer-history{--question-portrait:48px;--question-character-gap:8px;--question-bubble-padding:8px;--question-answer-height:60px;--question-answer-font:17px;--question-answer-x:10px;--question-answer-y:8px;--question-answer-gap:4px}}
.journey-stage .lesson-speaker-bubble{box-sizing:border-box;max-height:min(20dvh,160px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:360px) and (max-height:700px){.journey-stage .lesson-speaker-bubble{max-height:min(16dvh,100px)}}
.journey-stage .qopt{background:#f6f8fb;color:#18213a;border:2px solid #e2e6ee;border-bottom-width:5px;border-radius:16px}
.journey-stage .qopt.selected,.journey-stage .qopt.selected:hover:not([disabled]){background:#eef0ff;color:#20275f;border-color:#6672db}
.journey-stage .qopt.th{font-size:19px}
.journey-stage .qopt>.qrom{font-size:13px}
.journey-stage{--question-prompt-font:16px;--question-target-font:clamp(24px,6vw,38px);--question-target-line:1.65;--question-speaker-top:8px;--question-speaker-bottom:20px}
@media(max-width:600px){.journey-stage{--question-prompt-font:19px;--question-target-font:24px;--question-target-line:1.5;--question-speaker-top:8px;--question-speaker-bottom:12px}}
@media(max-width:360px) and (max-height:700px){.journey-stage{--question-prompt-font:19px;--question-target-font:22px;--question-target-line:1.5;--question-speaker-top:4px;--question-speaker-bottom:8px}}
.journey-stage .q .qprompt{font-size:var(--question-prompt-font);font-weight:600;line-height:1.4}
.journey-stage .lesson-speaker-bubble .qth{font-size:var(--question-target-font);font-weight:600;line-height:var(--question-target-line)}
.journey-stage .q .lesson-speaker{margin-top:var(--question-speaker-top);margin-bottom:var(--question-speaker-bottom)}
.journey-session-active .journey-footer>.btn{font-size:16px;font-weight:600;min-height:54px;border-radius:12px;padding:9px 16px;line-height:1.55;text-align:center;white-space:normal}
.journey-session-active .journey-footer>.btn[disabled]{opacity:0.45}
.journey-stage .qopt.right{background:var(--good-soft,#dcf3e4);border-color:var(--good,#15803d);color:var(--good,#15803d)}
.journey-stage .qopt.wrong{background:var(--bad-soft,#fbe4e1);border-color:var(--bad,#c0352b);color:var(--bad,#c0352b)}
.q .qfb{padding:16px;border-radius:16px;font-size:16px;line-height:1.5;margin-top:12px;background:var(--surface2,#f6f8fb);color:var(--ink,#18213a)}
.q.ok .qfb{background:var(--good-soft,#dcf3e4)}
.q.bad .qfb{background:var(--bad-soft,#fbe4e1)}
.question-feedback-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.question-feedback-header>strong{font-size:18px;line-height:1.4;color:var(--good,#15803d)}
.q.bad .question-feedback-header>strong{color:var(--bad,#c0352b)}
.question-feedback-content:not(:empty){margin-top:12px;overflow-wrap:anywhere}
.qfb .question-feedback-content .th{font-size:20px;line-height:1.5}
.qfb .question-feedback-content .qrom{font-size:14px}
.q .qfb .question-see-why{display:block;width:100%;min-height:48px;margin-top:12px;border-radius:12px;font-size:16px;white-space:normal}
.q .qfb .question-report{display:grid;place-items:center;flex:0 0 48px;width:48px;min-height:48px;padding:0;border-radius:12px;font-size:20px}
.question-feedback-answer>small{display:block;margin-bottom:4px}
.journey-notebook.journey-exit{max-width:620px;max-height:90dvh}
.question-explanation[open]{width:min(94vw,720px);max-height:85dvh}
.journey-exit .journey-brandy-bubble,.journey-exit-saved{line-height:1.5}
.journey-exit-actions>.btn,.question-explanation-actions>.btn{min-height:48px;font-size:16px;font-weight:600;border-radius:12px;padding:9px 16px;line-height:1.55;text-align:center}
.question-feedback[open]{display:flex;flex-direction:column;box-sizing:border-box;width:min(94vw,620px);max-width:none;overflow:hidden;max-height:calc(100dvh - 32px);padding:20px;gap:16px}
.question-feedback h2{margin:0;font-size:23px;line-height:1.4;overflow-wrap:anywhere}
/* Assessment question presentation; shares the lesson layout policy. */
body.testing{--assessment-prompt:16px;--assessment-target:38px;--assessment-line:1.65;--assessment-answer-height:74px;--assessment-answer-font:18px;--assessment-answer-x:16px;--assessment-answer-y:16px;--assessment-answer-gap:12px;--assessment-passage:min(20dvh,160px)}
@media(max-width:600px){body.testing{--assessment-prompt:19px;--assessment-target:24px;--assessment-line:1.5;--assessment-answer-height:64px;--assessment-answer-font:17px;--assessment-answer-x:12px;--assessment-answer-y:10px;--assessment-answer-gap:8px;--assessment-passage:min(20dvh,160px)}}
@media(max-width:360px) and (max-height:700px){body.testing{--assessment-prompt:19px;--assessment-target:22px;--assessment-line:1.5;--assessment-answer-height:60px;--assessment-answer-font:17px;--assessment-answer-x:10px;--assessment-answer-y:8px;--assessment-answer-gap:4px;--assessment-passage:min(16dvh,100px)}}
body.testing .qcard .prompt{font-size:var(--assessment-prompt);font-weight:600;line-height:1.4;margin:8px 0 12px}
body.testing .qcard .stim{box-sizing:border-box;font-size:var(--assessment-target);font-weight:600;line-height:var(--assessment-line);background:#f6f8fb;color:#18213a;border:2px solid #e2e6ee;border-radius:16px;padding:12px 16px;overflow-wrap:anywhere}
body.testing .qcard .opts{gap:var(--assessment-answer-gap)}
body.testing #root:has(.qcard .opts){box-sizing:border-box;height:100dvh;display:flex;flex-direction:column;padding-top:10px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
body.testing #root:has(.qcard .opts)>.qtop,body.testing #root:has(.qcard .opts)>.qmeta{flex-shrink:0}
body.testing .qcard:has(.opts){display:flex;flex-direction:column;min-height:0;flex:0 1 auto;padding-bottom:0}
body.testing .qcard:has(.opts)>:not(.opts){flex-shrink:0}
body.testing .qcard .opts{min-height:96px;overflow-y:auto;overscroll-behavior:contain;grid-auto-rows:max-content;align-content:start;padding-bottom:6px}
body.testing .qcard .opt{box-sizing:border-box;min-height:var(--assessment-answer-height);font-size:var(--assessment-answer-font);font-weight:600;line-height:1.5;padding:var(--assessment-answer-y) var(--assessment-answer-x);background:#f6f8fb;color:#18213a;border:2px solid #e2e6ee;border-bottom-width:5px;border-radius:16px;white-space:normal;overflow-wrap:anywhere}
body.testing .qcard .opt .th{font-size:19px;line-height:1.5}
body.testing .qcard .option-reading{font-size:13px;line-height:1.5}
body.testing .qcard .opt.right{background:#dcf3e4;color:#15803d;border-color:#15803d}
body.testing .qcard .opt.wrong{background:#fbe4e1;color:#c0352b;border-color:#c0352b}
body.testing .qcard .passage{box-sizing:border-box;max-height:var(--assessment-passage);overflow-y:auto;overscroll-behavior:contain}
.journey-result-stats.journey-confirmed-stats{display:flex;align-items:stretch;gap:8px;max-width:520px;margin:8px auto;flex-wrap:nowrap}
.journey-confirmed-stats .journey-result-stat{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 8px;border:2px solid #efc657;border-radius:14px;background:#ffffff;text-align:center;color:#182040}
.journey-confirmed-stats .journey-result-stat[data-stat=coins]{border-color:#8c98e5}
.journey-confirmed-stats .journey-result-stat[data-stat=score]{border-color:#8c98e5}
.journey-confirmed-stats .journey-result-stat[data-stat=accuracy]{border-color:#56b78c}
.journey-confirmed-stats .journey-result-stat[data-stat=time]{border-color:#529dc7}
.journey-confirmed-stats .journey-result-stat strong{font-weight:700;border:0;padding:0;font-size:24px;color:#182040;line-height:1.45}
.journey-confirmed-stats .journey-result-stat small{font-weight:400;display:block;margin:0;font-size:12px;color:#677084;line-height:1.5;padding-top:6px;overflow-wrap:anywhere}
.journey-stage.journey-ad-reward>h2{font-size:26px;font-weight:700;line-height:1.5;margin:0;padding:8px 0 12px;overflow-wrap:anywhere}
.journey-stage.journey-ad-reward>p{font-size:18px;line-height:1.5;margin:0;padding:8px 0 12px;overflow-wrap:anywhere}
.journey-ad-reward+.journey-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.journey-ad-reward+.journey-footer>.btn{min-width:0;width:100%;white-space:normal}
.word-definition-popover{width:min(240px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:12px;border-radius:16px;font-size:16px;overflow:hidden}
.word-definition-popover[open]{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px}
.word-definition-popover>h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.word-definition-meanings{min-height:0;overflow:auto;max-height:50dvh;overscroll-behavior:contain}
.word-definition-popover .word-definition-meanings p{margin:4px 0;line-height:1.4;overflow-wrap:anywhere}
.word-definition-popover>.btn{margin:0;padding:8px;font-size:14px;min-height:40px;white-space:normal}
.paw-power-meter{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:6px;min-width:60px;min-height:48px;padding:4px 8px;border:1px solid #ead398;border-radius:14px;background:#fff7d9;color:#785b16;font-family:inherit;font-weight:700;font-size:15px;line-height:1.5;cursor:pointer}.paw-power-meter svg{width:20px;height:20px;flex:none;fill:currentColor}.paw-power-meter[data-low=true]{background:#fff0e6;color:#a64b25}.paw-power-meter:focus-visible{outline:3px solid #6672db;outline-offset:2px}.paw-power-details{width:min(420px,calc(100vw - 32px));max-height:80dvh;overflow:auto;border:0;border-radius:24px;padding:24px;background:#fff;color:#182040}.paw-power-details::backdrop{background:#18204066}.paw-power-details h2{font-size:24px;line-height:1.5;margin:0 0 12px}.paw-power-details p{font-size:17px;line-height:1.65;margin:0 0 16px}.paw-power-details>.btn{width:100%;min-height:48px}
