/* Game board only: center announces the game, right box shows an online room name.
   Preserve the dimensions, positions, and decorative framing of all three boxes. */
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .top-mode #modeDisplay{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  letter-spacing:.02em!important;
}
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info{
  cursor:default!important;
  min-width:0!important;
  overflow:hidden!important;
  text-align:center!important;
}
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomHeading{
  display:block!important;
  width:100%!important;
  color:#ffe089!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
}
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomName{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  color:#fff4d0!important;
  font-size:clamp(11px,1.15vw,17px)!important;
  font-weight:900!important;
  line-height:1.15!important;
  letter-spacing:0!important;
}
@media(max-width:699px){
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomHeading{
   font-size:10px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomName{
   font-size:11px!important;
 }
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .top-mode #modeDisplay{
   font-size:13px!important;
 }
}


/* Room Code: permanent top label and dynamic code on a second line.
   Strictly scoped to the right game header; preserve all box geometry. */
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:3px!important;
}
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomHeading,
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomName{
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:699px){
 body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info{
  gap:1px!important;
 }
}

/* Raise only the room-code label and generated value 15% of their box height.
   Keep the right header frame, its dimensions, and every other element fixed. */
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomHeading,
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo > .wd-room-info > #gameRoomName{
  position:relative!important;
  top:-15%!important;
}

/* Codes in both Dome Duel and Dome Blitz: use a clearly serifed uppercase I,
   leaving the existing heading, code size, placement and box art unchanged. */
body:not(.wd-gate):has(#game:not([hidden])) #gameTopInfo .wd-room-info #gameRoomName,
body:not(.wd-gate):has(#game:not([hidden])) #roomCode {
 font-family:"Courier New",Courier,monospace!important;
 text-transform:uppercase!important;
 font-variant-ligatures:none!important;
}
#gameRoomName .wd-room-code-capital-i,
#roomCode .wd-room-code-capital-i{
 display:inline-block!important;
 position:relative!important;
 font:inherit!important;
}
#gameRoomName .wd-room-code-capital-i::before,
#gameRoomName .wd-room-code-capital-i::after,
#roomCode .wd-room-code-capital-i::before,
#roomCode .wd-room-code-capital-i::after{
 content:"";
 position:absolute;
 left:12%;
 right:12%;
 height:2px;
 background:currentColor;
 pointer-events:none;
}
#gameRoomName .wd-room-code-capital-i::before,
#roomCode .wd-room-code-capital-i::before{top:.11em}
#gameRoomName .wd-room-code-capital-i::after,
#roomCode .wd-room-code-capital-i::after{bottom:.04em}
