/* Question card and educational visuals; loaded after legacy mobile rules. */
#answers button{touch-action:manipulation;min-height:56px}#answers button:focus-visible{outline:4px solid #ffe6a0;outline-offset:2px}.recognizeNumber{font-size:64px;line-height:1;font-weight:900;color:#304b3c}.mathObjects{display:grid;grid-template-columns:repeat(5,22px);gap:2px;align-content:center;justify-content:center;max-width:100%}.mathObjects>span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #809b6b44;box-sizing:border-box}.mathObjects .atlasIcon{--icon:20px!important}.mathZero{font-size:34px;color:#3f5942}.mathSum,.mathCompare{display:flex;align-items:center;justify-content:center;gap:12px;width:100%}.mathSum>.mathObjects,.mathCompare>div{flex:0 1 auto}.mathCompare>div{display:flex;flex-direction:column;align-items:center;gap:3px}.mathCompare strong{font-size:25px;line-height:26px}.mathCompare .mathObjects>span{width:16px;height:16px}.mathCompare .mathObjects{grid-template-columns:repeat(5,16px);gap:1px}.mathCompare .atlasIcon{--icon:14px!important}.mathCompare> b,.mathSum> b{font-size:25px}#answerHint{font-size:13px}#answers button.wrong{animation:none}@media(max-width:550px){.recognizeNumber{font-size:58px}.mathSum,.mathCompare{gap:8px}.mathSum .mathObjects>span{width:20px;height:20px}.mathSum .mathObjects{grid-template-columns:repeat(5,20px)}.mathSum .atlasIcon{--icon:18px!important}}

/* v15 A: flow layout leaves room for pictures, answers and useful feedback. */
:root {
 --question-safe-top:env(safe-area-inset-top,0px);--question-safe-bottom:env(safe-area-inset-bottom,0px);
 --question-safe-left:env(safe-area-inset-left,0px);--question-safe-right:env(safe-area-inset-right,0px);
}
.questionCard .mathObjects>.crossedItem {overflow:hidden}
.questionCard .mathObjects>.crossedItem:after {font-size:22px;line-height:20px;display:grid;place-items:center}
@media (max-width:1100px) {
 .questionWrap {
  inset:auto max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
  width:auto;
  height:min(332px,calc(100dvh - 230px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
  padding:0;
 }
 .questionCard {
  display:grid;
  grid-template-rows:36px 14px minmax(30px,max-content) minmax(0,1fr) 56px 36px;
  gap:3px;
  height:100%;min-height:0;max-height:none;
  padding:7px;
  overflow:hidden;
 }
 .questionCard .questionTop,.questionCard #battleProgress,.questionCard h2,
 .questionCard #questionVisual,.questionCard #answers,.questionCard #answerHint {
  position:static;inset:auto;width:auto;min-width:0;margin:0;
  height:auto;min-height:0;max-height:none;
 }
 .questionCard .questionTop {align-items:center;justify-content:space-between;gap:6px;overflow:hidden}
 .questionTop #battleTag {font-size:12px;line-height:20px;min-width:0;text-overflow:ellipsis}
 .questionTop #leaveQuestion {min-width:80px;min-height:36px;padding:4px 7px;font-size:12px}
 .questionCard #battleProgress {font-size:11px;line-height:12px;text-align:center;overflow:hidden}
 .questionCard .progressBar {height:3px;margin:1px auto 0}
 .questionCard h2 {font-size:20px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;align-self:center}
 .questionCard #questionVisual {
  overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  align-items:safe center;justify-content:safe center;
  flex-wrap:nowrap;gap:6px;padding:2px;background:transparent;border:0;
 }
 .questionCard #answers {gap:8px;align-self:stretch}
 .questionCard #answers button {height:56px;min-height:56px;max-height:none}
 .questionCard #answers button>span {font-size:28px;line-height:1.2}
 .questionCard #answerHint {
  padding:2px 4px;font-size:12px;line-height:16px;background:transparent;
  overflow:auto;overscroll-behavior:contain;
 }
 .questionCard #answerHint:empty {visibility:hidden}
 .questionCard .numberTrain {gap:8px;max-width:100%}
 .questionCard .numberTrain>span {min-width:40px;min-height:42px;max-height:none;font-size:26px}
 .questionCard .mathSum .mathObjects {grid-template-columns:repeat(5,20px)}
 .questionCard .mathSum .mathObjects>span {width:20px;height:20px}
 .questionCard .mathSum .atlasIcon {--icon:18px!important}
 .inCombat #hud header,.inCombat #hud .region,.inCombat #hud .quest,
 .inCombat #hud footer,.inCombat #hud #autoRun,.inCombat #routeStrip,
 .inCombat #clickHint,.inCombat #hud .saveTag,.inCombat #hud #toast,
 .inCombat #hud #dangerBanner {display:none!important}
 .inCombat #hud #vitalHUD {
  top:max(8px,env(safe-area-inset-top));bottom:auto;
  left:max(12px,env(safe-area-inset-left));right:auto;
  width:190px;transform:none;z-index:18;
 }
 .inCombat #vitalHUD .vitalRow {margin:0}
 .inCombat #vitalHUD #healthCanvas {width:190px;height:auto}
 .inCombat #vitalHUD #foodCanvas,.inCombat #vitalHUD #xpRail {display:none}
}
@media (max-width:1100px) and (orientation:landscape) {
 .questionWrap {
  left:auto;right:max(9px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));
  width:calc(54vw - max(9px,env(safe-area-inset-right)) - 8px);
  height:min(364px,calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
 }
}
