/* v3.9.63: True separated scroll layout for leaderboard dialogs.
   Previous sticky-on-sticky layers drew over Top 1–3; this version has
   nonoverlapping fixed controls + one internal scrolling results pane. */
#ntv-game-root .ntv-modal:has(.ntv-leaderboard-v3924){
  display:flex!important;
  flex-direction:column!important;
  height:min(860px,calc(100dvh - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  min-height:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  padding:12px!important;
  isolation:isolate;
  background:#f2fff5!important;
}
#ntv-game-root .ntv-modal:has(.ntv-leaderboard-v3924) > .ntv-modal-head{
  position:relative!important;
  top:auto!important;
  inset:auto!important;
  flex:0 0 auto!important;
  z-index:2!important;
  margin:0 0 10px!important;
  padding:4px 4px 12px!important;
  border-bottom:1px solid #b6ddca!important;
  background:#f2fff5!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#ntv-game-root .ntv-modal:has(.ntv-leaderboard-v3924) > [data-role="modal-content"]{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  position:relative;
}
#ntv-game-root .ntv-leaderboard-v3924{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%;
  overflow:hidden!important;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack{
  display:block;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  z-index:1!important;
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0 0 4px!important;
  padding:0 0 5px!important;
  background:#f2fff5!important;
  box-shadow:none!important;
  border-bottom:1px solid #d3eadd!important;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-heading{
  position:relative!important;
  margin:0 0 9px!important;
  box-shadow:0 3px 0 #0b6558!important;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-tabs{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  max-width:100%!important;
  padding:5px 2px 9px!important;
  margin:0 0 3px!important;
  white-space:nowrap;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  background:transparent!important;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-tabs button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-tab-description{
  margin:2px 1px 3px!important;
  gap:6px;
  min-width:0;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-tab-description b{
  min-width:0;
  font-size:clamp(11px,2vw,13px);
  overflow-wrap:anywhere;
}
#ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-scroll-content{
  display:block!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  padding:28px 5px 16px;
  position:relative;
  isolation:isolate;
}
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content > .ntv-lb-podium{
  margin-top:0!important;
}
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content .ntv-race-overview,
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content .ntv-race-my-stats{
  position:relative;
  z-index:0;
}
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content .ntv-race-my-stats{margin-bottom:14px}
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content .ntv-lb-section-title{
  scroll-margin-top:12px!important;
}
#ntv-game-root .ntv-leaderboard-v3924 .ntv-lb-scroll-content .ntv-lb-podium{
  scroll-margin-top:0!important;
}
@media(max-width:720px){
  #ntv-game-root .ntv-modal:has(.ntv-leaderboard-v3924){height:calc(100dvh - 12px)!important;padding:9px!important;}
  #ntv-game-root .ntv-modal:has(.ntv-leaderboard-v3924)>.ntv-modal-head{margin-bottom:7px!important;padding-bottom:8px!important;}
  #ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-scroll-content{padding:22px 2px 12px;}
}
@media(max-width:420px){
  #ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-heading{padding:10px 11px!important;margin-bottom:7px!important;}
  #ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-heading h3{font-size:16px!important;}
  #ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-sticky-stack .ntv-lb-tabs button{min-height:36px!important;padding:7px 9px!important;font-size:11px!important;}
  #ntv-game-root .ntv-leaderboard-v3924 > .ntv-lb-scroll-content{padding-top:18px;}
}

/* v3.9.69 — full last-match scoreboard remains readable after 1s transition. */
#ntv-game-root .ntv-last-match-summary{min-width:0;overflow-wrap:anywhere;display:grid;gap:12px}
#ntv-game-root .ntv-last-match-list{display:grid;gap:7px}
#ntv-game-root .ntv-last-match-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;border:1px solid #89cba9;border-radius:12px;padding:10px 12px;background:#f0fff5;color:#145742}
#ntv-game-root .ntv-last-match-row.is-me{border:2px solid #d2a43c;background:#fff5d8}
#ntv-game-root .ntv-last-match-row span{font-weight:800;font-variant-numeric:tabular-nums}
#ntv-game-root .ntv-last-match-summary details{min-width:0;overflow-wrap:anywhere}
@media(max-width:420px){#ntv-game-root .ntv-last-match-row{padding:9px 8px;gap:4px}}
