/* A quiet, text-first study surface. No timers, moving backgrounds, or busy art. */
.review-study { max-width: 900px; margin: 20px auto 36px; padding: clamp(24px, 5vw, 56px); color: #233f3b; background: linear-gradient(145deg, #fffef9, #f3f7f2); border: 1px solid #d5e0d4; border-radius: 24px; box-shadow: 0 12px 34px #264d3c0b; scroll-margin-top: 165px; font-family: system-ui, sans-serif; }
.review-study *, .review-quit-dialog * { box-sizing: border-box; }
.review-heading { padding-bottom: 18px; border-bottom: 1px solid #dbe4d9; margin-bottom: 24px; }
.review-heading .eyebrow { letter-spacing: .14em; font-size: .9rem; }
.review-chapter { margin: 10px 0 0; font-size: 1.12rem; font-weight: 650; line-height: 1.6; }
.review-chapter span { font-weight: 400; }
.review-progress { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; color: #52665a; }
.review-meter { width: 100%; height: 8px; margin: 12px 0 24px; border: none; border-radius: 20px; accent-color: #3b7460; background: #dfe8dd; }
.review-meter::-webkit-progress-bar { background: #dfe8dd; border-radius: 20px; }
.review-meter::-webkit-progress-value { background: #3b7460; border-radius: 20px; }
.review-source { margin: 0 0 12px; color: #566757; font-size: 1rem; line-height: 1.5; }
.review-study h2 { font: 650 clamp(1.6rem, 3vw, 2rem)/1.3 system-ui, sans-serif; margin: 0 0 18px; color: #233f3b; }
.review-prompt { font-size: clamp(1.4rem, 2vw, 1.5rem); line-height: 1.7; max-width: 65ch; margin-bottom: 24px; }
.review-prompt p { margin: 0 0 12px; }
.review-answer { border: 0; padding: 0; margin: 0; min-width: 0; }
.review-choices { display: grid; gap: 12px; }
.review-choice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid #c8d6c9; border-radius: 12px; background: #fffefb; cursor: pointer; font-size: 1.4rem; line-height: 1.55; }
.review-choice:hover { border-color: #618b72; background: #f1f6ee; }
.review-choice:has(input:checked) { border-color: #37745a; background: #e9f2e7; box-shadow: inset 4px 0 #37745a; }
.review-choice input { flex: 0 0 auto; width: 21px; height: 21px; margin: 4px 0 0; accent-color: #37745a; }
.review-number-label { display: block; font-size: 1.1rem; font-weight: 650; margin-bottom: 10px; }
.review-number-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 1.15rem; }
.review-number-row input { width: min(240px, 100%); min-width: 0; min-height: 60px; font: 500 1.5rem/1.4 system-ui, sans-serif; padding: 12px 16px; border: 1px solid #8eab98; border-radius: 10px; color: #233f3b; background: #fffefb; }
.review-help { font-size: 1.1rem; line-height: 1.65; color: #52665a; }
.review-feedback:empty { display: none; }
.review-feedback { padding: 19px 22px; border-radius: 12px; margin-top: 20px; border-left: 4px solid #9b8052; background: #f6f0df; font-size: 1.125rem; line-height: 1.65; }
.review-feedback[data-kind="correct"] { border-color: #528064; background: #e9f1e5; }
.review-feedback p { margin: 8px 0 0; }
.review-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0 6px; align-items: center; }
.review-buttons .btn { min-height: 48px; padding: 13px 20px; font-size: 1.05rem; line-height: 1.4; white-space: normal; }
.review-study [hidden] { display: none !important; }
.review-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid #dbe4d9; color: #52665a; font-size: 1rem; line-height: 1.65; }
.review-footer p { margin: 0 0 8px; }
.review-study :focus-visible, .review-quit-dialog :focus-visible { outline: 3px solid #a0792b; outline-offset: 4px; }
.review-quit-dialog { width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 40px); border: 1px solid #c8d6c9; border-radius: 20px; background: #fffdf6; color: #233f3b; }
.review-quit-dialog::backdrop { background: #122b2875; }
.review-quit-dialog h2 { margin: 14px 0; font-size: 1.8rem; }
.review-quit-dialog p { font-size: 1.15rem; line-height: 1.7; }
.review-earned { text-align: center; }
.review-earned > p { font-size: 1.15rem; line-height: 1.7; }
.review-earned .review-buttons { justify-content: center; }
.review-congratulations { color: #476952; font-size: 1.4rem !important; }
.review-final-idea { text-align: left; padding: 20px 24px; border-radius: 14px; background: #edf3e7; margin: 26px 0; font-size: 1.12rem; line-height: 1.7; }
.review-final-idea p { margin-bottom: 0; }
.review-save { background: #fffdf5; border: 1px solid #d7e1d2; padding: 16px; border-radius: 10px; }
.honor-emblem { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; background: #f3e2b1; border: 3px double #a37b2c; color: #956c1e; font: 3.1rem/1 Georgia, serif; box-shadow: 0 0 0 7px #f5eddb; }
.honor-emblem span { position: absolute; bottom: -9px; right: -5px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #315f49; color: white; font: bold 1.35rem/1 system-ui, sans-serif; border: 3px solid #fffdf6; }
.honor-emblem--beginning { background: #f0dac6; color: #91643e; border-color: #98724c; box-shadow: 0 0 0 7px #f4ebe1; }
.honor-emblem--medium { background: #e3e9e5; color: #566b65; border-color: #7b9388; box-shadow: 0 0 0 7px #f0f4ef; }
.celebration-quiz-offer { padding: 20px; margin: 24px 0 18px; border: 1px solid #bed1c0; border-radius: 14px; background: #f0f6e9; }
.celebration-quiz-offer h3 { font-size: 1.25rem; margin: 0 0 10px; }
.celebration-quiz-offer p { font-size: 1rem; line-height: 1.65; margin: 8px 0; }
.celebration-quiz-offer .btn { margin: 12px 0; }
.quiz-study-active .level-navigation { display: none; }
.inventory-summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 30px; border: 1px solid #d3dfd0; border-radius: 18px; background: #eef4e8; margin-bottom: 28px; }
.inventory-summary strong { font-size: 2.5rem; white-space: nowrap; }
.inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.inventory-chapter { padding: 26px; border: 1px solid #dce2d2; border-radius: 18px; background: #fffdf6; }
.inventory-chapter h2 { font-size: 1.35rem; margin: 0 0 24px; }
.inventory-honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: center; }
.inventory-honor { border-radius: 12px; padding: 14px 7px; background: #f3f5ed; }
.inventory-honor .honor-emblem { width: 50px; height: 50px; font-size: 2.05rem; margin: 8px auto 20px; }
.inventory-honor .honor-emblem span { width: 24px; height: 24px; font-size: 1.1rem; }
.inventory-honor strong { display: block; font-size: 1.1rem; }
.inventory-honor small { display: block; margin-top: 7px; line-height: 1.5; color: #52665a; }
.inventory-honor--empty { border: 1px dashed #c8d2c3; background: none; }
.inventory-honor--empty .honor-emblem { color: #8a9687; background: #f1f3ec; border-color: #b6c0b0; box-shadow: none; }
.inventory-chapter > p { font-size: 1.1rem; line-height: 1.65; margin: 20px 0 12px; }
@media(max-width: 700px) { .inventory-grid { grid-template-columns: 1fr; } .review-study { padding: 24px 19px; border-radius: 18px; scroll-margin-top: 200px; } .review-progress { font-size: 1.1rem; flex-wrap: wrap; } .review-choice { padding: 15px 13px; } .review-buttons { align-items: stretch; } .review-buttons .btn { flex: 1 1 190px; text-align: center; } .inventory-summary { padding: 20px; } .inventory-chapter { padding: 22px 16px; } .inventory-honors { gap: 8px; } }
@media print { .review-study .review-buttons, .inventory-chapter > a { display: none; } }

.review-study .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Keep the study page focused; the chapter name is already on the quiz card. */
body.review-mode .game-header, body.review-mode .game-bottom, body.review-mode #session-award { display: none; }
body.review-mode .game-host { margin-top: 20px; }
body.review-mode .toast:not(.error) { display: none; }
