*{box-sizing:border-box}body{margin:0;background:#f4f6f2;color:#182b2b;font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;letter-spacing:0}header{max-width:1120px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d5ded8}.brand{color:inherit;text-decoration:none;font-size:24px;font-weight:900}.brand span{display:block;font-size:10px;margin-top:2px}.edition{font-size:12px;color:#536b62}main{max-width:1000px;margin:36px auto 48px;padding:0 28px}.meta{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700}.pill{color:#21785c}.progress{height:5px;background:#dfe6df;margin:14px 0 28px}.progress div{height:100%;background:#298362;transition:width .3s}h1{font-size:30px;line-height:1.6;margin:10px 0 7px}h1 span{display:block}.hint{color:#63736b;font-size:14px;margin:0 0 25px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:22px}.choice{font:inherit;padding:0;overflow:hidden;border:2px solid #d7e0d9;border-radius:8px;background:white;color:inherit;text-align:left;cursor:pointer;transition:transform .18s,border-color .18s}.choice:hover:not(:disabled){transform:translateY(-4px);border-color:#268566}.choice:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #be5d35;outline-offset:4px}.choice svg{width:100%;height:auto;display:block;background:#e6ede5}.label{padding:17px 20px;display:flex;align-items:center;gap:12px;font-weight:700;font-size:17px}.letter{width:30px;height:30px;display:grid;place-items:center;background:#edf1eb;border-radius:50%;font-size:14px}.choice:disabled{cursor:default;opacity:1}.choice.correct{border:3px solid #278565}.choice.wrong{border:3px solid #c7524d}.choice.correct .letter{background:#278565;color:white}.choice.wrong .letter{background:#c7524d;color:white}.feedback{margin-top:24px;border-top:2px solid #2b8061;padding:22px 0;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.feedback.bad{border-color:#c7524d}.feedback h2{font-size:23px;margin:0 0 10px}.feedback p{max-width:660px;font-size:15px;line-height:1.9;margin:0}.next{border:0;border-radius:6px;background:#236d54;color:white;padding:16px 25px;font:inherit;font-weight:700;cursor:pointer}.next:hover{background:#174c3b}.secondary{background:transparent;color:#236d54;border:1px solid #236d54}.result{text-align:center;padding:15px 0}.result h1{font-size:36px}.score{font-size:68px;font-weight:900;margin:20px 0}.score small{font-size:20px}.result p{line-height:1.9}.actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:28px 0}.review{text-align:left;max-width:680px;margin:30px auto}.review article{padding:18px 0;border-top:1px solid #d5ded8}.review h3{margin:0 0 8px;font-size:17px}.review p{font-size:14px;margin:0;line-height:1.8}footer{max-width:1000px;margin:auto;padding:22px 28px 35px;border-top:1px solid #d5ded8;font-size:12px;color:#65766a;display:flex;justify-content:space-between;gap:24px}details{max-width:550px}summary{cursor:pointer}details p{line-height:1.8}details a{color:#29684f;line-height:2}.badge{margin:auto;width:100px;height:100px;border:3px solid #dba343;border-radius:50%;display:grid;place-items:center;color:#986a19;font-size:44px;background:#fff4cc}.scene-spark{transform-box:fill-box;transform-origin:center;animation:twinkle 1.6s ease-in-out infinite alternate}@keyframes twinkle{to{opacity:.5}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:600px){header{padding:17px 20px}.brand{font-size:21px}.edition{font-size:10px}main{padding:0 16px;margin:24px auto 30px}h1{font-size:23px}.hint{font-size:12px}.choices{gap:10px}.label{padding:12px 8px;font-size:13px;gap:6px;min-height:68px}.letter{width:24px;height:24px;flex-shrink:0}.feedback{grid-template-columns:1fr}.next{width:100%}.feedback h2{font-size:21px}footer{display:block;padding:20px 16px}details{margin-top:16px}.result h1{font-size:29px}.actions{display:grid}}
/* Answer effects and audio controls. */
header{gap:16px}.brand{flex-shrink:0}
.audio-settings{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}
.audio-settings label{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer}
.audio-settings input{width:20px;height:20px;accent-color:#247c5e;margin:0}
input:focus-visible{outline:3px solid #be5d35;outline-offset:4px}
.meta{gap:12px}.meta>span:last-child{flex-shrink:0}
.progress{height:7px}
.choices{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.choice{border-width:3px;display:flex;flex-direction:column;min-width:0}
.choice:active:not(:disabled){transform:scale(.97)}
.picture{position:relative;display:block;width:100%;aspect-ratio:4/3}
.choice svg{height:100%}
.label{flex:1;min-height:92px}.letter{flex-shrink:0}
.choice.correct{border-color:#278565;animation:correct-pop .6s ease-out;box-shadow:0 7px 0 #d3e6d8}
.choice.wrong{border-color:#c7524d;animation:wrong-shake .45s ease-in-out}
.choice-stamp{display:none;position:absolute;top:8px;right:8px;width:56px;height:56px;border-radius:50%;background:#fff;font-size:44px;line-height:1;font-weight:900;align-items:center;justify-content:center;box-shadow:0 3px 0 #0002}
.correct .choice-stamp{display:flex;color:#237656;animation:stamp .5s ease-out}
.wrong .choice-stamp{display:flex;color:#bb343e;animation:stamp .5s ease-out}
.feedback:empty{display:none}
.feedback{--accent:#207454;margin-top:28px;border-top:4px solid var(--accent);border-bottom:1px solid #d5ded8;padding:24px 0;grid-template-columns:180px minmax(0,1fr);gap:26px;align-items:start;animation:reveal .4s ease-out;scroll-margin:16px}
.feedback.bad{--accent:#b43c49}
.verdict{color:var(--accent);text-align:center}
.verdict-symbol{display:grid;place-items:center;margin:0 auto 4px;width:140px;height:140px;font-size:130px;font-weight:900;line-height:1;animation:stamp .65s cubic-bezier(.18,.8,.3,1.2)}
.verdict strong{display:block;font-size:25px;white-space:nowrap;transform:rotate(-5deg)}
.feedback.bad .verdict-symbol{animation:wrong-shake .5s ease-in-out}
.feedback h2{color:var(--accent)}
.feedback .correct-answer{font-weight:800;margin-bottom:10px}
.feedback-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px}
.next{min-height:48px}
.read-aloud{font:inherit;border:0;border-bottom:1px solid #749887;background:transparent;color:#236d54;padding:12px 4px;min-height:44px;cursor:pointer}
.feedback .voice-status{color:#8c4651;font-size:12px;margin-top:8px}
.score,.badge{animation:stamp .7s ease-out}
#celebration{position:fixed;inset:0;z-index:10;pointer-events:none;overflow:hidden}
.confetti{position:absolute;top:var(--y);left:var(--x);width:8px;height:16px;background:var(--color);opacity:0;animation:firework 1.45s var(--delay) ease-out forwards}
.confetti:nth-child(3n){width:5px;height:23px}
@keyframes stamp{0%{transform:scale(.25) rotate(-18deg);opacity:0}65%{transform:scale(1.12) rotate(4deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes correct-pop{0%,100%{transform:scale(1)}40%{transform:scale(1.035)}}
@keyframes wrong-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
@keyframes reveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes firework{0%{opacity:0;transform:translate(0,0) scale(.2)}12%,70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.8)}}
@media(max-width:600px){
 header{padding:14px 16px;gap:10px}
 .audio-settings{gap:2px;font-size:11px;flex-direction:column}
 .audio-settings label{min-height:32px}.audio-settings input{width:18px;height:18px}
 .meta{font-size:12px}
 .label{padding:12px 8px;font-size:14px;gap:6px;min-height:112px;line-height:1.7;align-items:flex-start}
 .letter{margin-top:2px}
 .choice-stamp{width:40px;height:40px;font-size:32px;top:5px;right:5px}
 .feedback{grid-template-columns:1fr;gap:18px;padding-top:18px}
 .verdict{display:flex;align-items:center;justify-content:center;gap:16px}
 .verdict-symbol{width:76px;height:76px;font-size:76px;margin:0}
 .verdict strong{font-size:30px}
 .feedback-actions{display:grid;grid-template-columns:auto 1fr}
 .next{padding:15px 14px;font-size:15px}.read-aloud{font-size:13px}
}
.answer-screen{--answer-color:#247858;animation:reveal .35s ease-out}
.answer-bad{--answer-color:#b44a57}
.answer-heading{display:flex;align-items:center;gap:18px;margin:24px 0;color:var(--answer-color)}
.answer-heading h1{font-size:26px;margin:0;line-height:1.5}
.answer-sound{font-size:14px;font-weight:800;margin:0 0 2px}
.answer-symbol{display:grid;place-items:center;width:80px;height:80px;flex:0 0 80px;font-size:78px;line-height:1;font-weight:900;animation:stamp .6s ease-out}
.answer-bad .answer-symbol{animation:wrong-shake .5s ease-out}
.answer-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:start}
.outcome-art{margin:0;min-width:0}
.outcome-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#e6ede5;border-radius:6px}
.outcome-art img[hidden]{display:none}
.outcome-art figcaption{margin:16px 0 0;line-height:1.8}
.outcome-art strong{display:block;color:var(--answer-color);font-size:21px;margin-bottom:6px}
.outcome-art span{display:block;font-size:14px}
.outcome-art small{display:block;font-size:12px;color:#69766c;margin-top:8px}
.answer-topic{font-weight:700;font-size:14px;line-height:1.8;margin:0 0 12px}
.chosen-answer{margin:0 0 20px;font-size:13px;line-height:1.8;color:#647268}
.answer-explanation h2{font-size:15px;margin:0 0 8px;color:#287454}
.answer-explanation .correct-answer{font-weight:800;line-height:1.8;font-size:17px;margin:0 0 20px;color:#236d54}
.answer-copy{font-size:15px;line-height:1.95;margin:0}
.answer-explanation .feedback-actions{flex-wrap:wrap}
.answer-explanation .voice-status{font-size:12px;line-height:1.6;color:#8c4651}
.image-error{padding:30px 18px;background:#e6ede5;line-height:1.8}
@media(max-width:700px){
 .answer-layout{grid-template-columns:1fr;gap:26px}
 .answer-heading{gap:12px;margin:16px 0 20px}
 .answer-heading h1{font-size:21px}
 .answer-symbol{width:58px;height:58px;flex-basis:58px;font-size:58px}
 .answer-sound{font-size:12px}
 .outcome-art strong{font-size:20px}
 .answer-explanation{border-top:1px solid #d5ded8;padding-top:22px}
 .answer-explanation .feedback-actions{display:grid;grid-template-columns:auto minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 #celebration{display:none}
 .choice:hover:not(:disabled),.choice:active:not(:disabled){transform:none}
}
header .game-center-return{display:flex;align-items:center;min-height:44px;margin-right:auto;color:#236d54;font-size:13px;font-weight:700;text-underline-offset:4px;white-space:nowrap}
@media(max-width:600px){
 header{flex-wrap:wrap}
 header .game-center-return{order:3;flex-basis:100%;margin:0;font-size:12px}
}
