/* English stems and diagram tasks need readable text and scrolling on phones. */
.battle-screen .round-battle.economics-battle.phase-answer .arena-bottom,
.battle-screen .round-battle.economics-battle.phase-feedback .arena-bottom{
  left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);
  width:min(86vw,1000px);max-height:78dvh;overflow:auto;padding:22px!important;
  background:rgba(253,250,255,.94)!important;backdrop-filter:blur(18px);border-radius:22px;
  color:#30233f;scrollbar-width:thin;box-sizing:border-box;
  display:block!important;pointer-events:auto;
}
.battle-screen .economics-question .question-title{font-size:clamp(20px,2.2vw,28px)!important;line-height:1.5;white-space:pre-line;text-align:left}
.battle-screen .economics-question .question-type{font-size:14px;line-height:1.5;text-align:left;color:#674994}
.battle-screen .economics-question .question-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.battle-screen .economics-question .answer-button{font-size:clamp(16px,1.7vw,21px)!important;line-height:1.45;min-height:68px;padding:16px;text-align:left;white-space:normal;overflow-wrap:anywhere;background:#fff!important;color:#352447}
.economics-diagram{display:block;max-width:680px;margin:14px auto;color:#543887;text-align:center}.economics-diagram img{display:block;width:100%;height:auto;background:white;border-radius:10px}.economics-diagram small{font-size:13px}
.economics-explanation{font-size:16px;line-height:1.5;background:#fffef5ed;border:1px solid #d9cfb5;border-radius:12px;padding:12px;color:#30233f;text-align:left;max-height:30dvh;overflow:auto}.economics-explanation summary{cursor:pointer;font-weight:700}.economics-battle .feedback{font-size:18px;line-height:1.6;text-align:left;white-space:pre-line}
.room-learning{font-size:15px;line-height:1.6;max-height:150px;overflow:auto;color:#644d80}
.battle-screen .economics-battle .arena-bottom,.battle-screen .economics-battle .arena-bottom *{text-shadow:none!important}
.battle-screen .economics-question{max-width:none;width:100%;padding:0!important;box-sizing:border-box;min-height:0!important;justify-content:flex-start!important}
.battle-screen .economics-question .question-title{color:#30233f!important;margin:14px 0}
.battle-screen .economics-question .answer-button{opacity:1!important;min-height:68px!important;height:auto!important;padding:16px!important;border-radius:14px!important;border:1px solid #cdbedf;box-shadow:0 3px 10px #47346015!important}
.battle-screen .economics-question .question-options{width:100%;max-width:none;margin:14px 0}
.battle-screen .economics-question .economics-diagram{width:100%;max-width:440px}
.battle-screen .economics-battle.phase-feedback .phase-title{color:#614484}.battle-screen .economics-battle.phase-feedback .feedback{color:#753950}
@media(min-width:700px){.battle-screen .economics-question:has(.economics-diagram){display:grid!important;grid-template-columns:1fr 1fr;gap:8px 22px;align-items:center}.economics-question:has(.economics-diagram) .question-type,.economics-question:has(.economics-diagram) .question-title{grid-column:1/-1}.battle-screen .economics-question:has(.economics-diagram) .question-options{grid-template-columns:1fr}.economics-question:has(.economics-diagram)>.info-button{grid-column:1/-1;justify-self:center}}
@media(max-height:500px){.battle-screen .round-battle.economics-battle.phase-answer .arena-bottom,.battle-screen .round-battle.economics-battle.phase-feedback .arena-bottom{max-height:86dvh;padding:14px!important}.battle-screen .economics-question .question-title{font-size:20px!important}.battle-screen .economics-question .answer-button{font-size:16px!important;min-height:56px;padding:12px}.economics-explanation{max-height:22dvh}}

/* Review is a readable central panel for both modules and all party sizes. */
.battle-screen .round-battle.phase-feedback .arena-bottom{left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(86vw,1000px);max-height:78dvh;overflow:auto;display:block!important;padding:22px!important;background:rgba(253,250,255,.94)!important;backdrop-filter:blur(18px);border-radius:22px;color:#30233f;box-sizing:border-box;pointer-events:auto}
.battle-screen .phase-feedback .review-panel{text-align:left;text-shadow:none}
.battle-screen .phase-feedback .review-panel .phase-title{color:#614484;font-size:clamp(20px,2.2vw,28px)}
.battle-screen .phase-feedback .review-panel .feedback{font-size:clamp(16px,1.8vw,24px);line-height:1.6;color:#41314e;white-space:pre-line}
.review-question{font-weight:700;font-size:clamp(16px,1.8vw,24px);line-height:1.5;color:#30233f}
.review-panel .economics-diagram img{max-height:200px;object-fit:contain}
.skip-question{display:block;margin:14px auto 4px;min-height:44px;padding:8px 18px;background:#20374ce6!important;color:#fff!important}
.review-panel button:disabled{opacity:.75}
@media(max-height:500px){.battle-screen .round-battle.phase-feedback .arena-bottom{max-height:86dvh;padding:14px!important}.battle-screen .phase-feedback .review-panel .phase-title{font-size:20px}.battle-screen .phase-feedback .review-panel .feedback,.review-question{font-size:16px;line-height:1.45}}

.battle-screen .round-battle.phase-feedback .arena-bottom{z-index:35;text-shadow:none!important}
.battle-screen .round-battle.phase-feedback .review-panel .btn{min-height:44px;padding:10px 18px!important;border-radius:12px!important;background:#674494!important;color:white!important;text-shadow:none!important;filter:none;opacity:1!important;margin:12px 8px 4px 0}
.battle-screen .round-battle.phase-feedback .review-panel .btn:disabled{background:#e2dced!important;color:#5b4e70!important;cursor:default}
.battle-screen .review-panel .info-button{color:#674494!important;text-shadow:none!important;opacity:1!important}
.review-question{white-space:normal;overflow-wrap:anywhere}
@media(max-height:500px){.review-panel .economics-diagram img{max-height:120px}.review-panel .economics-diagram{margin:8px auto}.review-question{margin:8px 0}}

/* Economics v2: keep numeric diagram labels readable; diagrams open at full size. */
.battle-screen .economics-question .economics-diagram{max-width:680px}
.course-level{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 0;font-weight:700}
.course-level select{padding:12px;border:1px solid #b6a2cc;border-radius:12px;background:#fff;color:#352447;font:inherit}
.module-chapter:has(input:disabled){opacity:.45}
@media(max-width:950px){.battle-screen .economics-question:has(.economics-diagram){display:block!important}.battle-screen .economics-question .economics-diagram{min-width:300px}.battle-screen .economics-question .question-options{grid-template-columns:1fr 1fr}}
