:root{color-scheme:dark;--paper:#f6ecd5;--gold:#d9bc76;--bg:#10271e;--panel:#19392d;--muted:#c6c9ae}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--paper);font:16px/1.65 system-ui,-apple-system,sans-serif}header,main,footer{max-width:1000px;margin:auto;padding:12px 20px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px}.brand{font-size:16px;text-decoration:none}.language{display:flex;align-items:center;gap:8px;font-size:13px}.language select{max-width:170px}h1{font-size:28px;line-height:1.45;margin:8px 0 16px}h2{font-size:21px;line-height:1.5}p{margin:12px 0}a{color:var(--gold)}button,select,.button{font:inherit;min-height:46px;max-width:100%;border:1px solid var(--gold);border-radius:5px;padding:9px 15px;background:#f1e5c5;color:#203326;cursor:pointer}button:disabled,select:disabled{opacity:.6;cursor:wait}a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}.primary{background:var(--gold);font-weight:700}.text-button{background:transparent;border-color:transparent;color:var(--gold);text-decoration:underline}.small{font-size:14px;padding:6px 12px;min-height:44px}.button:focus-visible,button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #fff;outline-offset:4px}.page{margin:0 auto}.home{text-align:center;max-width:650px}.home h1{font-size:clamp(28px,5vw,38px);letter-spacing:.07em}.intro{font-size:18px}.meta,.note,.scope,figcaption,.translation{font-size:13px;color:var(--muted)}.start{display:block;width:min(100%,350px);margin:20px auto 8px;font-size:18px;min-height:54px}.hero{margin:22px auto 0}.hero img{display:block;width:100%;height:clamp(140px,30dvh,280px);object-fit:contain;image-rendering:auto}.hero figcaption{margin-top:6px}.translation:not(:empty)::before{content:' · '}.preview{font-size:12px;color:var(--gold)}footer{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;font-size:13px;margin-top:18px;border-top:1px solid #3b5945}#busy{font-size:13px;min-height:22px;margin:0 0 6px}#notice{padding:12px;border:1px solid #f2b0a6;background:#522a26}.panel{border:1px solid #9a8d5f;border-radius:6px;background:var(--panel);padding:20px;margin:20px auto}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.game-top span{font-size:14px;color:var(--gold)}.play-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:start}.scene{margin:0;position:sticky;top:12px}.scene img{display:block;width:100%;height:min(45dvh,300px);object-fit:contain;background:#163027}.scene figcaption{font-size:11px;line-height:1.4;margin-top:6px}#context{font-size:15px;line-height:1.6;margin:6px 0 14px}.question h1{font-size:21px;margin:0 0 8px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choices button{text-align:left;line-height:1.45;min-height:66px;padding:10px;font-size:15px;overflow-wrap:anywhere}.choices button.wrong{border:3px solid #fc9f90;background:#ffdcd2;color:#6e231c}.choices button.correct{border:3px solid #d0e4aa;background:#e8edbd;color:#203326;opacity:1;cursor:default}#feedback{font-weight:700;line-height:1.5;padding:10px 12px;margin:10px 0}#feedback.wrong{border:2px solid #f8a394;background:#602b28;color:#fff1e5}#feedback.correct{border-left:3px solid #d0e4aa;background:#284535}.hint{border-left:3px solid var(--gold);padding:8px 12px;font-size:14px}.explanation{font-size:14px;border-left:2px solid var(--gold);padding-left:12px}.actions{display:flex;gap:10px;margin-top:12px}.scope{margin-top:18px;font-size:12px}summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px}details{border-top:1px solid #46634d;margin-top:12px}#questionFeedback a{font-size:13px;display:inline-block;padding:8px 0}.result{max-width:660px}.result>h1{text-align:center}.eyebrow{text-align:center;color:var(--gold)}#rewardImage{display:block;width:100%;height:clamp(150px,28dvh,250px);object-fit:contain;margin:18px 0}.result h2{font-size:24px}.score{font-size:18px;font-weight:700}.result-actions{display:flex;flex-wrap:wrap;gap:10px}.result-actions>.primary{flex:1}.interest .button{width:100%}.interest,.sources{margin-top:20px}textarea{font:inherit;line-height:1.6;display:block;width:100%;color:var(--paper);background:var(--bg);border:1px solid #788969;padding:12px;resize:vertical}.story{max-width:680px}.story p{line-height:2;margin:20px 0}.story .lead{font-size:19px;color:var(--gold)}.story h2{margin-top:32px}#sourcePage{max-width:650px}#sourcePage .button{margin:8px 4px 0 0}#pausePage{max-width:650px}body[data-busy=true] button,body[data-busy=true] select{cursor:wait}#copyStatus{font-size:13px;min-height:18px}
@media(max-width:700px){header,main,footer{padding:10px 14px}header{min-height:58px}.brand{font-size:13px;max-width:45%}.language select{font-size:14px;max-width:145px}.home .intro{font-size:16px}.home h1{margin-top:10px}.hero{margin-top:18px}.play-grid{grid-template-columns:1fr;gap:10px}.scene{position:static}.scene img{height:min(24dvh,160px)}.scene figcaption{display:none}.question h1{font-size:19px;line-height:1.4}.choices{gap:8px}.choices button{font-size:14px;padding:9px;min-height:62px}#context{font-size:14px;line-height:1.5;margin:6px 0 10px}#feedback{font-size:14px;padding:8px;margin:8px 0}.explanation{font-size:14px}.panel{padding:16px}.scope{margin:12px 0 0}.result h2{font-size:21px}.story p{font-size:15px}.story .lead{font-size:17px}.actions{margin-top:10px}.actions button{font-size:14px}}
@media(max-height:650px) and (max-width:700px){header{min-height:50px;padding-top:6px;padding-bottom:6px}.scene img{height:88px}.game-top{margin-bottom:4px}.play-grid{gap:7px}.choices button{min-height:54px;padding:7px}.hero img{height:150px}.home .start{margin-top:14px}.home h1{margin-bottom:8px}.home p{margin:8px 0}}
@media(prefers-reduced-motion:no-preference){.correct{animation:confirm .22s ease-out}@keyframes confirm{from{transform:translateY(2px)}to{transform:translateY(0)}}}

/* Post-answer reading: the reader reaches the story before the next button. */
.lesson{border:1px solid #647650;border-radius:5px;background:#18362a;padding:22px 20px;margin:22px 0 0;scroll-margin-top:16px}
.lesson .lesson-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--gold);margin:0 0 8px}
.lesson h2{font-size:22px;line-height:1.55;margin:0 0 18px;color:#f4ead0}
#lessonParagraphs p{font-size:15px;line-height:1.95;margin:0 0 16px;overflow-wrap:anywhere}
#lessonParagraphs p:first-child{color:#e5e7ce}
.lesson-quote{margin:22px 0;padding:16px 18px;border-left:3px solid var(--gold);background:#10271e}
.lesson-quote blockquote{font-size:18px;line-height:1.9;margin:0;color:#f1dfb1;font-family:'Yu Mincho','Hiragino Mincho ProN',serif}
#quoteTranslation{font-size:13px;line-height:1.8;color:#d1d5bc;margin:12px 0}
.lesson-quote figcaption{font-size:11px;line-height:1.7;margin-top:10px}
.lesson h3{font-size:12px;letter-spacing:.04em;font-weight:500;color:var(--gold);margin:24px 0 10px}
#lessonSources{list-style:none;padding:0;margin:0;border-top:1px solid #3a5540}
#lessonSources li{padding:10px 0;border-bottom:1px solid #3a5540;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#lessonSources a{display:block;min-height:28px;padding-top:2px}
.reference-kind{display:block;font-size:10px;color:#b8bfa8}
@media(max-width:700px){.lesson{padding:18px 16px;margin-top:18px}.lesson h2{font-size:20px}#lessonParagraphs p{font-size:15px}.lesson-quote{padding:14px}.lesson-quote blockquote{font-size:17px}}
