/* Fix99 coach-only: hide the exact extra top return strip seen on Android. */
body[data-safe-r10-role="trainer"] #home .sa14-brand,
body[data-safe-r10-role="trainer"] #home .safeR25Eyebrow,
body[data-safe-r10-role="trainer"] #home .safeR25Sub,
body[data-safe-r10-role="trainer"] #home #heroText,
body[data-safe-r10-role="trainer"] #home .safeR10RoleTag,
body[data-safe-r10-role="coach"] #home .sa14-brand,
body[data-safe-r10-role="coach"] #home .safeR25Eyebrow,
body[data-safe-r10-role="coach"] #home .safeR25Sub,
body[data-safe-r10-role="coach"] #home #heroText{display:none!important}
body[data-safe-r10-role="trainer"] #home #hello,body[data-safe-r10-role="coach"] #home #hello{display:block!important;max-width:100%!important;white-space:normal!important;line-height:1.45!important}
@media(max-width:900px){
 body.sa83Inner.sa99CoachSection #sa83InnerHeader,
 body.sa83Inner.sa99CoachPlans #sa83InnerHeader,
 body.sa83Inner.sa99CoachFlash #sa83InnerHeader,
 body.sa83Inner.sa99CoachSection #app>#trainer.sa83Content>.sa83Tools,
 body.sa99CoachSection #trainer>.head,
 body.sa99CoachSection #trainer>.subtabs,
 body.sa99CoachSection #trainer .sa99DuplicateCoachBack,
 body.sa99CoachSection #app>header.top,
 body.sa99CoachPlans #app>header.top,
 body.sa99CoachFlash #app>header.top{display:none!important}
 body.sa83Inner.sa99CoachSection #trainer.sa83Content{padding-top:8px!important;height:100dvh!important;max-height:100dvh!important;overflow-y:auto!important;box-sizing:border-box!important}
 body.sa99CoachSection #trainer .sa93TrainerRow{display:flex!important;position:relative!important;top:auto!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 10px!important;padding:4px 3px!important;z-index:4!important}
 body.sa99CoachSection #trainer .sa93TrainerRow button{display:inline-flex!important;align-items:center!important;min-height:42px!important;flex:0 0 auto!important}
 body.sa83Inner.sa99CoachPlans #trainerPlans.sa83Content,body.sa83Inner.sa99CoachFlash #r55FlashPage.sa83Content{padding-top:7px!important}
}
/* Match-end screen: distinctly state rank and actual per-player points. */
#r56ArenaPage .r56MatchEnd.sa99Results{display:flex;flex-direction:column;gap:12px;align-items:stretch;justify-content:center;text-align:center;box-sizing:border-box;padding:18px 12px;background:linear-gradient(165deg,#e5f6ff,#fff8e8,#f2e9ff);border:2px solid #b6d8c9;border-radius:22px;min-height:min(72dvh,610px);height:auto}
#r56ArenaPage .sa99ResultHeadline{font-size:clamp(24px,6vw,38px);font-weight:950;color:#124f44;margin:0}
#r56ArenaPage .sa99ResultSummary{margin:0;font-size:clamp(15px,4vw,21px);color:#503273;font-weight:800}
#r56ArenaPage .sa99ResultList{display:grid;gap:10px;width:100%}
#r56ArenaPage .sa99ResultPlayer{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px;padding:13px 10px;border-radius:16px;background:white;border:1px solid #e3dfed;text-align:right}
#r56ArenaPage .sa99ResultPlayer.me{border:2px solid #2d80be;background:#eff7ff}
#r56ArenaPage .sa99ResultPlayer .sa99Medal{font-size:26px}
#r56ArenaPage .sa99ResultPlayer .sa99Name{font-size:clamp(15px,4vw,20px);font-weight:900;overflow:hidden;text-overflow:ellipsis}
#r56ArenaPage .sa99ResultPlayer .sa99Points{font-size:clamp(16px,4vw,21px);font-weight:950;color:#0f7556;white-space:nowrap}
#r56ArenaPage .sa99ResultPlayer small{grid-column:2/-1;color:#687275}
#r56ArenaPage #r56BackArena{margin-top:10px;min-height:48px;width:100%;border-radius:15px}

/* Fix100: results are scrollable AFTER the round, never during active gameplay. */
#r56ArenaPage .r56MatchEnd.sa99Results{max-height:calc(100dvh - 116px);min-height:0!important;height:calc(100dvh - 116px);overflow:hidden!important;justify-content:flex-start!important;}
#r56ArenaPage .sa99ResultList{min-height:0;flex:1 1 auto;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;align-content:start;padding:4px 2px 12px;}
#r56ArenaPage .sa99ResultPlayer{flex-shrink:0;}
#r56ArenaPage .r56MatchEnd.sa99Results #r56BackArena{flex:0 0 auto;}
