.app-orientation-hint{display:none}.app-orientation-badge{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:4px 7px;border:1px solid #d2dcc3;border-radius:7px;background:#edf3e2;color:#647b4f;font-size:10px;line-height:1.3;white-space:normal}.app-orientation-badge>span{font-size:15px;line-height:1}.is-app .app-orientation-badge{font-size:9px;margin-top:5px;padding:3px 6px}
@media(orientation:portrait) and (max-width:700px){
 body.is-playing #arena[data-preferred-orientation="landscape"]{grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto;grid-template-areas:'header' 'tour' 'score' 'status' 'orientation' 'board' 'result'}
 #arena[data-preferred-orientation="landscape"] .app-orientation-hint{grid-area:orientation;display:flex;align-items:center;justify-content:center;gap:11px;padding:9px 12px;border:1px solid #cdddb3;background:#eef4df;border-radius:12px;color:#5a743f;line-height:1.35}
 .app-orientation-hint strong{display:block;font-size:12px;font-weight:700}.app-orientation-hint div>span{display:block;font-size:10px;color:#7b8c68;margin-top:3px}.app-rotate-phone{display:grid;place-items:center;width:32px;height:22px;border:2px solid #7c9860;border-radius:5px;font-size:23px;line-height:1;flex-shrink:0}
}
@media(orientation:landscape){
 #arena[data-game="math"] .math-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:100%;max-width:650px}
 #arena[data-game="math"] .math-player{min-width:0;padding:14px;border-radius:16px}
 #arena[data-game="math"] .math-player>small{font-size:12px;font-weight:650;display:block;overflow-wrap:anywhere}
 #arena[data-game="math"] .math-player>strong{font-size:clamp(25px,4vw,36px);margin:15px 0;white-space:nowrap}
 #arena[data-game="math"] .math-answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:0}
 #arena[data-game="math"] .math-answers button{min-width:0;min-height:48px;font-size:24px}
 #arena[data-game="math"] .math-board>#math-next{grid-column:1/-1;justify-self:center;min-height:40px;margin:0}
}
