/* Fix93 — ONLY Arena navigation and Coach-specific screens. No student-game changes. */
@media (max-width: 900px) {
  /* Keep the computer opponent visible above the 2×3 arena grid. */
  #r56ArenaPage:not(.hidden) .sa82ArenaNav {gap:6px!important;padding:0 0 5px!important;}
  #r56ArenaPage:not(.hidden) .sa82ArenaNav > #saFix03Open {order:-1;min-height:43px!important;margin:0!important;}
  #r56ArenaPage:not(.hidden) #r56ArenaTabs{order:0;gap:5px!important;}
  #r56ArenaPage:not(.hidden) #r56ArenaTabs button{min-height:clamp(42px,12vw,52px)!important;padding:5px 3px!important;font-size:clamp(11px,3vw,14px)!important;}
  #r56ArenaPage:not(.hidden) #r56ArenaStatus:empty {display:none!important;}
  #r56ArenaPage:not(.hidden) #r56ArenaBody{scrollbar-gutter:auto!important;scroll-padding-top:5px;}
  #r56ArenaPage:not(.hidden) .sa93ArenaReturn{display:none;min-height:39px;border-radius:12px;border:1px solid #c1d8cd;background:#fffdf7;color:#125743;font:inherit;font-weight:800;width:100%;}
  #r56ArenaPage.sa93ArenaDetail:not(.saFix03On) .sa93ArenaReturn{display:block;}
  #r56ArenaPage.sa93ArenaDetail:not(.saFix03On) #r56ArenaTabs,
  #r56ArenaPage.sa93ArenaDetail:not(.saFix03On) #saFix03Open{display:none!important;}
  #r56ArenaPage.sa93ArenaDetail:not(.saFix03On) .sa82ArenaNav{padding-bottom:4px!important;}
  #r56ArenaPage:not(.hidden) .r56Panel{max-width:100%!important;}
  /* The legacy adventure-settings panel was mistakenly inserted atop *every* coach subsection. */
  #trainer #v188TrainerAdventureSettings {display:none!important;}
  /* The old dashboard and tabs must never sit above a chosen coach section, regardless of r64-active-page. */
  body.sa93CoachInner #trainer:has(.trSection:not(.hidden)) > #r64t6Dashboard,
  body.sa93CoachInner #trainer:has(.trSection:not(.hidden)) > .r64t6Dashboard,
  body.sa93CoachInner #trainer:has(.trSection:not(.hidden)) > .head,
  body.sa93CoachInner #trainer:has(.trSection:not(.hidden)) > .note,
  body.sa93CoachInner #trainer:has(.trSection:not(.hidden)) > .subtabs {display:none!important;}
  body.sa93CoachInner #trainer .trSection:not(.hidden){height:auto!important;max-height:none!important;overflow:visible!important;}

  /* Coach sections use their own lightweight back; hide the unrelated global title overlay. */
  body.sa93CoachInner #sa83InnerHeader {display:none!important;}
  body.sa93CoachInner #app>.sa83Content{padding-top:8px!important;}
  body.sa93CoachInner #trainer.sa83Content{padding-top:8px!important;}
  body.sa93CoachInner #trainer.sa83Content .sa93TrainerRow {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 12px;padding:3px 2px;}
  #trainer .sa93TrainerRow strong{color:#174d40;font-weight:900;font-size:clamp(16px,4.5vw,21px);}
  #trainer .sa93TrainerRow button,
  #abacus .sa93BackInline {background:#fff8ed;color:#194e41;border:1px solid #decfb2;border-radius:12px;padding:8px 12px;min-height:42px;font:inherit;font-weight:850;}
  body.sa93CoachInner #r56MazePage.sa83Content>.r56Head{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:2px 0 5px!important;margin:0 0 6px!important;}
  body.sa93CoachInner #r56MazePage .r56Head small,
  body.sa93CoachInner #r56MazePage .r56Head p{display:none!important;}
  body.sa93CoachInner #r56MazePage .r56Head h2{margin:0!important;font-size:clamp(17px,5vw,22px)!important;}
  body.sa93CoachInner #r36WheelScreen.sa83Content{overflow-y:auto!important;}
  body.sa93CoachInner #abacus.sa83Content{overflow-y:auto!important;}
  #r36WheelScreen .r36WheelStage{background:radial-gradient(circle at 50% 42%,#fff5c9 0%,#effff8 55%,#d4edff 100%)!important;border-radius:50%;box-shadow:0 0 0 5px #fff5d3,0 8px 22px #246d6560!important;}
  #r36WheelScreen .r36WheelControl{background:linear-gradient(165deg,#ffffff,#effbf4)!important;}
  #r36WheelScreen .r36Winner.sa93WheelWin{background:linear-gradient(120deg,#fff8d9,#e7fff4)!important;border:2px solid #edba55!important;box-shadow:0 0 20px #e8bf5580!important;}
  #r36WheelScreen .sa93WheelSound{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin:5px auto 9px;padding:5px 10px;background:#fff7db;border:1px solid #e5c66c;border-radius:13px;color:#255a48;font:inherit;font-weight:800;}
  #r36WheelScreen .sa93WheelSound button{font:inherit;min-height:40px;padding:6px 12px;border-radius:10px;background:#126b57;color:#fff;border:0;}
  #r36WheelScreen .sa93WheelSound small{font-size:11px;color:#516b60;}
  body.sa93CoachInner #v183Teacher.open .v183Top > button.ghost[onclick*="v183Close"] {display:none!important;}
}
