/* Signed-in Word Dome home profile only, 2026-11-02.
   Raise the verified Royal Member plate by the height of its visible banner
   (approximately one quarter of its existing .30-profile-width slot).
   Do not move the decorative frame, trophy, entrance, wallpaper or menus. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
  --wd-royal-plate-visible-height:calc(var(--wd-regal-width) * .30 * .25);
  translate:0 calc(-1 * var(--wd-avatar-panel-rise) - var(--wd-royal-plate-visible-height))!important;
}

/* Enlarge only live user NAME lettering by 20%. Keep the previously approved
   identity-row anchor, account value and rating location intact. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
  font-size:clamp(15.6px,2.4vw,37.2px)!important;
}
@media (min-width:1151px) and (hover:hover) and (pointer:fine){
  html:not(.wd-home-flow-test)
  body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
    font-size:clamp(13.2px,2.04vw,31.62px)!important;
  }
}
@media (min-width:700px) and (max-width:1400px) and (hover:none) and (pointer:coarse){
  html:not(.wd-home-flow-test)
  body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
    font-size:clamp(13.2px,2.04vw,31.62px)!important;
  }
}
@media (max-width:480px){
  html:not(.wd-home-flow-test)
  body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
    font-size:clamp(13.2px,3.96vw,19.2px)!important;
  }
}

/* The oval is painted into the panel PNG and would otherwise remain small.
   Draw the equivalent navy/gold badge over it with the genuine live rating,
   and scale the ENTIRE oval and text 1.20 around its approved center. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #lobbyPlayerRating:not([hidden]){
  box-sizing:border-box!important;
  background:linear-gradient(180deg,#174fa7 0%,#062765 49%,#061844 100%)!important;
  border:2px solid #e8b44b!important;
  border-radius:100px!important;
  box-shadow:inset 0 1px 2px #fff3b080,inset 0 -1px 3px #020b32,0 1px 4px #0007!important;
  scale:1.20!important;
  transform-origin:center center!important;
}

/* Scale the real selected portrait 20% around its existing visual center.
   Include an enlarged gold frame, retaining the original photo/colors and
   button logic. Unselected avatar placeholders remain artwork-controlled. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview:not(.avatar-placeholder){
  box-sizing:border-box!important;
  border:2px solid #f4be47!important;
  outline:1px solid #ffe9a1!important;
  box-shadow:0 1px 4px #0008!important;
  scale:1.20!important;
  transform-origin:center center!important;
}

/* The old Choose Your Avatar plaque is baked into the background PNG.
   Paint a faithful larger control directly on top, preserving the existing
   accessible live button and its original click handler. Exactly 1.20 scale. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #chooseAvatar{
  box-sizing:border-box!important;
  background:linear-gradient(180deg,#2663b4 0%,#05245b 47%,#06133d 100%)!important;
  border:2px solid #e8b44b!important;
  border-radius:100px!important;
  box-shadow:inset 0 1px 2px #fff0a56b,0 2px 4px #0008!important;
  color:#ffe5a0!important;
  -webkit-text-fill-color:#ffe5a0!important;
  text-shadow:0 1px 2px #020e2b!important;
  font:800 clamp(8px,1.0vw,12px)/1.05 Georgia,serif!important;
  white-space:nowrap!important;
  scale:1.20!important;
  transform-origin:center center!important;
}
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #chooseAvatar:hover{
  filter:brightness(1.12)!important;
}
