/* V51: preserve the approved cabinet and original sprites. These changes
   unify small navigation details and put scrolling where it belongs. */
#app :is(.arcade-btn,.career-btn,.mode-info b,.pilot-arrow,.pista-ready){
  font-variant-emoji:text;
}
#app :is(#history,#awards,#ranking) .history-list,
#app #career .cup-live-table {
  scrollbar-width:thin;scrollbar-color:#9dbbd8 #0a2348;
  overscroll-behavior:contain;
}
#app #career .cup-live-table:focus-visible,
#app #career .career-content:focus-visible{
  outline:2px solid #ffe16b;outline-offset:-2px;
}
@media (orientation:landscape) and (min-height:370px){
  /* Do not reserve a second scrollbar when the championship fits. The
     standings keep their own scroll; the outer tray remains a fallback for
     larger accessibility text or particularly short screens. */
  #app #career.active .career-panel .career-content[data-active-cup="true"]{
    scrollbar-gutter:auto;
  }
}
/* Pause/replay foreground has focused controls; do not visually dim the
   already-approved track art or displace any buttons. */
#app #pause #resume-btn:focus-visible,
#app #replay #replay-close:focus-visible{outline:2px solid #fff0a5!important;outline-offset:2px}
