/* v13.26.75 — conservative mobile paint cleanup. */
@media(max-width:700px){
  body.ctp-is-app #ctp-app-dashboard .ctp-dash-wrap{overflow:visible!important}
  body.ctp-is-app #ctp-app-dashboard .ctp2553-tile,
  body.ctp-is-app #ctp-app-dashboard .ctp57-mini-card,
  body.ctp-is-app #ctp-app-dashboard .ctp313-skill{box-shadow:none!important;filter:none!important;-webkit-filter:none!important}
  body.ctp-is-app #ctp-app-dashboard #ctp313-dna{margin-top:18px!important;margin-bottom:96px!important;contain:layout style!important}
  body.ctp-is-app #ctp-app-dashboard #ctp313-dna svg{contain:strict!important}
}

/* Ranking and lower cards: no repaint-heavy decorative effects while scrolling. */
@media(max-width:700px){
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-users,
  body.ctp-is-app #ctp-app-dashboard #ctp-featured-members{content-visibility:visible!important;contain:none!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-users .ctp-v13180-user,
  body.ctp-is-app #ctp-app-dashboard #ctp-featured-members .ctp-featured-row{filter:none!important;-webkit-filter:none!important;will-change:auto!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-users *{text-shadow:none!important}
}


/* v13.26.81 — mobile leaderboard repair + repaint/stutter cut.
   Identity badges used to be rebuilt at desktop size several seconds after paint,
   making each leaderboard row grow and causing a visible long reflow on Android. */
@media(max-width:700px){
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-v13180-user{
    grid-template-columns:38px minmax(0,1fr) auto!important;grid-template-rows:auto!important;
    min-height:72px!important;padding:10px!important;gap:8px!important;margin:0!important;
    border-radius:15px!important;box-shadow:none!important;transform:none!important;contain:layout style!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-v13180-user>.rank{
    grid-column:1!important;grid-row:1!important;width:36px!important;height:36px!important;border-radius:11px!important;font-size:15px!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-v13180-user>div{grid-column:2!important;min-width:0!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-v13180-user>strong{
    grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;margin:0!important;
    max-width:76px!important;font-size:9px!important;white-space:nowrap!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp59-user-line{display:block!important;min-width:0!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp59-user-line>b{
    display:block!important;width:auto!important;margin:0 0 5px!important;font-size:11px!important;line-height:1.45!important;white-space:normal!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set{
    display:flex!important;width:auto!important;max-width:100%!important;gap:4px!important;margin:2px 0 0!important;flex-wrap:wrap!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-public-badge,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-member-badge,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-fide-title-badge{
    width:auto!important;max-width:150px!important;min-width:0!important;min-height:24px!important;height:24px!important;
    padding:2px 6px!important;margin:0!important;border-radius:8px!important;gap:4px!important;
    box-shadow:none!important;filter:none!important;-webkit-filter:none!important;animation:none!important;transform:none!important
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-member-badge:before,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-public-badge:before,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-global-identity-set .ctp-fide-title-badge:before{display:none!important;animation:none!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-role-piece{width:20px!important;height:20px!important;flex:0 0 20px!important;font-size:13px!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-role-label{font-size:7.5px!important;line-height:1.1!important;white-space:nowrap!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-role-kicker{display:none!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-badge-piece,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-fide-mark{font-size:12px!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-badge-label,
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-fide-copy b{font-size:7.5px!important;white-space:nowrap!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-list .ctp-fide-copy small{display:none!important}

  /* Stop decorative perpetual badge animations across the long champion feed.
     They add continuous compositing work while the user scrolls. */
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-public-badge,
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-member-badge,
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-fide-title-badge,
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-public-badge:before,
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-member-badge:before,
  body.ctp-is-app #ctp-app-dashboard .ctp-global-identity-set .ctp-fide-title-badge:before{animation:none!important;will-change:auto!important}
}

/* v13.26.89 — below-fold paint budget. Browser can skip layout/paint for long Champion
   sections until they approach the viewport; intrinsic sizes prevent scrollbar jumps. */
@media(max-width:700px){
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-users,
  body.ctp-is-app #ctp-app-dashboard #ctp-featured-members,
  body.ctp-is-app #ctp-app-dashboard #ctp-province-league,
  body.ctp-is-app #ctp-app-dashboard #ctp313-dna,
  body.ctp-is-app #ctp-app-dashboard #ctp-bot-path,
  body.ctp-is-app #ctp-app-dashboard #ctp2553-admin-events{
    content-visibility:auto!important;
    contain:layout style paint!important;
    contain-intrinsic-size:auto 720px!important;
  }
  body.ctp-is-app #ctp-app-dashboard #ctp-v13180-top-users{contain-intrinsic-size:auto 900px!important}
  body.ctp-is-app #ctp-app-dashboard #ctp-province-league{contain-intrinsic-size:auto 820px!important}
}
