/* UI 017.4.19 SAFE CANARY — Premium Result single-paint + Safari viewport stability.
   Presentation only. No Battle/A6/final-hit/HP/reward ownership changes. */

/* The persistent result must never create a page-sized overflow surface while
   Safari expands/collapses its browser chrome. :has() scopes the root lock only
   to the actual finished result, so other screens on the canary URL can scroll. */
html.arena-result0174-canary:has(body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready){
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

html.arena-result0174-canary body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

/* Premium Result lives inside a padded finished container. Using vw here can
   exceed that container during Safari visualViewport transitions (96vw + parent
   padding), briefly creating both horizontal and vertical page scrollbars.
   Size against the actual content box instead. */
html.arena-result0174-canary body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready .b14-finished-card.b174-premium-victory{
  box-sizing:border-box!important;
  width:min(100%,560px)!important;
  max-width:560px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* V6's b174V6ResultBridge is the sole owner of the whole-card entrance.
   Disable the old base b174CardIn animation permanently for the enhanced card;
   otherwise a later style/class transition can re-arm a second opacity/scale pass. */
html.arena-result0174-canary body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready .b14-finished-card.b174-premium-victory{
  animation:none!important;
  transform:none!important;
}

/* WebKit scroll indicators are a symptom of transient root overflow. Geometry
   above removes the overflow; these rules make sure no stale indicator survives
   one extra compositor frame during browser-chrome expansion. */
html.arena-result0174-canary:has(body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready)::-webkit-scrollbar,
html.arena-result0174-canary body.arena-battle014-active #battle014-root > .battle014-finished.b174-ready::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
