/* Dome Blitz only: the approved transparent purple-and-gold Ratings/Stats art.
   This image was cropped/optimized from Dome_Blitz_Transparent_Ratings_Panel(2).png.
   The art contains ONE printed "View Stats" button. Retain the existing real
   button, with an invisible label over the print, to preserve click and keyboard
   handlers without a duplicate STATS badge or a second purple underlay.
   Do not alter the card's existing width, height or position (PC and iPad). */

body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar:has(> .wd-rating:not([hidden])){
  position:relative!important;
  isolation:isolate!important;
  background:transparent url('/Dome_Blitz_Ratings_Panel_Approved_Optimized.png?v=approved-blitz-ratings-20261112') center center / 100% auto no-repeat!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* Suppress every inherited gold/purple label image and shared pseudo frame.
   The single uploaded artwork is rendered only as the row background. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar:has(> .wd-rating:not([hidden]))::before,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar:has(> .wd-rating:not([hidden]))::after{
  content:none!important;
  display:none!important;
  background:none!important;
  -webkit-mask:none!important;
  mask:none!important;
}

/* Keep the live tier-colored rating and star in the blank LEFT end of the art. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar > :is(#playerRatingBadge,#opponentRatingBadge):not([hidden]){
  position:absolute!important;
  inset:25% auto auto 7%!important;
  width:43%!important;
  max-width:43%!important;
  min-width:0!important;
  height:50%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  font:700 clamp(14px,1.6vw,20px)/1 Georgia,"Times New Roman",serif!important;
  color:var(--wd-ornate-tier,#f6e6c3)!important;
  -webkit-text-fill-color:var(--wd-ornate-tier,#f6e6c3)!important;
  white-space:nowrap!important;
  text-shadow:0 1px 1px #1b0807!important;
  z-index:1!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-avatar-account-bar > .wd-rating:not(.wd-rating-unrated):not([hidden])::before{
  font-size:1em!important;
  line-height:1!important;
  align-self:center!important;
}

/* The real Stats button is a transparent HIT TARGET on the printed button
   (right ~59-97% of the image), not a second visible button. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar > :is(#playerPublicStats,#opponentPublicStats):not([hidden]){
  position:absolute!important;
  inset:34% 3% auto auto!important;
  width:39%!important;
  max-width:39%!important;
  height:32%!important;
  min-height:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:8px!important;
  outline:0;
  box-shadow:none!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
  font:700 clamp(10px,1.2vw,14px)/1 Georgia,"Times New Roman",serif!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  z-index:2!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-avatar-account-bar > :is(#playerPublicStats,#opponentPublicStats):focus-visible{
  outline:2px solid #fff9cc!important;
  outline-offset:2px!important;
}
@media(max-width:699px){
  body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
  #game .game-grid .wd-avatar-account-bar > :is(#playerRatingBadge,#opponentRatingBadge):not([hidden]){
    font-size:clamp(11px,2.5vw,16px)!important;
  }
}

/* Dome Blitz: +5% visible rating frame and View Stats artwork, with the live
   rating number/star at their existing size and coordinates. Paint the approved
   PNG on its own layer so only the art scales, never the badge or player card.
   The account row keeps its exact desktop/iPad/phone dimensions. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar:has(> .wd-rating:not([hidden])){
  background:none!important;
  background-image:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar:has(> .wd-rating:not([hidden]))::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
  background:transparent url('/Dome_Blitz_Ratings_Panel_Approved_Optimized.png?v=approved-blitz-ratings-20261112') center center / 100% auto no-repeat!important;
  -webkit-mask:none!important;
  mask:none!important;
  transform:scaleY(1.05)!important;
  transform-origin:center center!important;
  pointer-events:none!important;
  z-index:0!important;
}
/* Match the real clickable hotspot to the printed View Stats control's
   5% taller artwork; keep the hotspot vertically centered at 50%. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar > :is(#playerPublicStats,#opponentPublicStats):not([hidden]){
  inset:33.2% 3% auto auto!important;
  height:33.6%!important;
}
