/* Map the visible ribbon (rows 255–485 of the 724px PNG) into the
   previous title area, including on the compact desktop/tablet layout. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
 --wd-blitz-ribbon-top:0px;
 --wd-blitz-ribbon-height:100%;
}
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
  --wd-blitz-ribbon-top:-12px;
  --wd-blitz-ribbon-height:128px;
 }
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info::before{
 top:var(--wd-blitz-ribbon-top)!important;
 height:var(--wd-blitz-ribbon-height)!important;
 background:url("/Dome%20Blitz%20Header%2011-22-26.png") center 56.85% / 100% 188.87% no-repeat!important;
 clip-path:none!important;
 mask-image:none!important;
}
/* Dome Blitz: re-position the *baked-in* center wordmark under the
   stationary trophy without changing the approved PNG, outer gold wings,
   Goal / Room Code panels, or the header / gameplay geometry.
   A second, masked paint of the same PNG shifts only its central blue
   wordmark strip ~2vw (capped at 28px) to the left. Feathered mask edges
   avoid a hard seam where the artwork rejoins the unchanged side panels. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info::after{
 content:""!important;
 position:absolute!important;
 inset:var(--wd-blitz-ribbon-top) 0 auto 0!important;
 width:100%!important;
 height:var(--wd-blitz-ribbon-height)!important;
 background-image:url("/Dome%20Blitz%20Header%2011-22-26.png")!important;
 background-position:calc(50% - clamp(8px,2vw,28px)) 56.85%!important;
 background-size:100% 188.87%!important;
 background-repeat:no-repeat!important;
 clip-path:inset(0 34% 0 29%)!important;
 -webkit-mask-image:linear-gradient(90deg,transparent 29%,#000 31%,#000 64%,transparent 66%)!important;
 mask-image:linear-gradient(90deg,transparent 29%,#000 31%,#000 64%,transparent 66%)!important;
 pointer-events:none!important;
 z-index:1!important;
}

#blitzMatchStatus{
 display:none;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > :is(.top-goal,.wd-room-info){
 position:absolute!important;
 inset:var(--wd-blitz-ribbon-top) 0 auto!important;
 width:100%!important;
 height:var(--wd-blitz-ribbon-height)!important;
 transform:none!important;
 pointer-events:none;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > :is(.top-goal,.wd-room-info) > :is(#goalDisplay,#gameRoomName,#blitzMatchStatus){
 position:absolute!important;
 transform:translate(-50%,-50%)!important;
 width:auto!important;
 margin:0!important;
 padding:0!important;
 display:block;
 white-space:nowrap;
 line-height:1!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > .top-goal > #goalDisplay{
 left:21.4%!important;
 top:44%!important;
 font-size:clamp(12px,1.45vw,20px)!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > .wd-room-info > #gameRoomName{
 left:79.3%!important;
 top:53%!important;
 font-size:clamp(11px,1.3vw,18px)!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > .top-goal > #blitzMatchStatus{
 left:20.6%!important;
 top:60.6%!important;
 font:700 clamp(9px,1vw,14px)/1 Georgia,serif!important;
 color:#ffe5a6!important;
 -webkit-text-fill-color:#ffe5a6!important;
}
