/* Word Dome approved signed-in homepage: player identity / one Grand Hall entrance /
   existing right-hand Leaderboards, Friend Requests and retractable Options.
   Scoped to the avatar lobby only. All live controls and account/game handlers remain. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){
 --wd-home-gold:#f4ca66;
 --wd-home-violet:#28103c;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) main{
 height:100dvh!important;min-height:0!important;overflow:hidden!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card{
 --wd-home-profile-layout:1;
 display:block!important;position:absolute!important;
 inset:0!important;left:0!important;right:auto!important;top:0!important;
 width:100vw!important;max-width:none!important;height:100dvh!important;
 min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;
 transform:none!important;translate:none!important;scale:1!important;zoom:1!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 overflow:visible!important;text-align:left!important;isolation:isolate!important;
}
/* Decorative purple-and-gold identity panel: never blocks user interactions. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
 content:''!important;display:block!important;position:absolute!important;
 z-index:0!important;pointer-events:none!important;
 top:13dvh!important;left:2.3vw!important;bottom:auto!important;right:auto!important;
 width:clamp(280px,24vw,380px)!important;height:65dvh!important;
 border:3px solid #f7d274!important;border-radius:20px!important;
 background:linear-gradient(148deg,#270d39f5 0%,#150b2ef5 60%,#290e3ff2 100%)!important;
 box-shadow:inset 0 0 0 2px #643c1b,inset 0 0 0 6px #e5af4b55,0 10px 28px #0009!important;
 transform:none!important;clip-path:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::after{
 content:none!important;display:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art{
 position:absolute!important;top:2dvh!important;left:50%!important;
 right:auto!important;width:min(37vw,510px)!important;height:25dvh!important;
 max-width:none!important;max-height:none!important;
 display:block!important;
 margin:0!important;transform:translateX(-50%)!important;translate:none!important;
 scale:1!important;zoom:1!important;z-index:6!important;
}
/* Earlier homepage designs hid these two logos using visibility only.
   In the current header's grid layout they still occupied two rows and pushed
   the REAL Word Dome trophy underneath the Grand Hall door. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art > :is(img.wd-current-logo,img.wd-new-home-logo){
 display:none!important;visibility:hidden!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art > img.wd-approved-arch-logo{
 display:block!important;visibility:visible!important;opacity:1!important;
 width:100%!important;height:100%!important;
 transform:none!important;translate:none!important;scale:1!important;
 object-fit:contain!important;object-position:center center!important;
}
/* Existing editable-name display and live rating are reanchored, not replaced with mock data. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row{
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;
 position:absolute!important;z-index:3!important;
 top:40dvh!important;left:2.3vw!important;right:auto!important;
 width:clamp(280px,24vw,380px)!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0 14px!important;background:transparent!important;
 transform:none!important;translate:none!important;scale:1!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
 position:relative!important;inset:auto!important;top:auto!important;left:auto!important;
 display:block!important;width:100%!important;max-width:100%!important;
 height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;transform:none!important;translate:none!important;scale:1!important;
 text-align:center!important;color:#ffe8ad!important;-webkit-text-fill-color:#ffe8ad!important;
 font:900 clamp(21px,2vw,30px)/40px Georgia,serif!important;
 text-shadow:0 2px 4px #000d!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #lobbyPlayerRating:not([hidden]){
 display:flex!important;position:relative!important;inset:auto!important;
 align-items:center!important;justify-content:center!important;
 min-width:130px!important;max-width:95%!important;height:34px!important;min-height:34px!important;
 margin:0 auto!important;padding:2px 12px!important;
 transform:none!important;translate:none!important;scale:1!important;
 border:2px solid #e6bf63!important;border-radius:11px!important;
 color:white!important;-webkit-text-fill-color:white!important;
 font-size:clamp(14px,1.1vw,17px)!important;text-align:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section{
 position:absolute!important;z-index:4!important;
 top:17dvh!important;left:2.3vw!important;right:auto!important;
 width:clamp(280px,24vw,380px)!important;height:55dvh!important;
 display:block!important;margin:0!important;padding:0!important;
 transform:none!important;translate:none!important;scale:1!important;
 overflow:visible!important;text-align:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-section-title{
 display:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview{
 position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 display:block!important;width:clamp(125px,11vw,165px)!important;height:clamp(125px,11vw,165px)!important;
 min-width:125px!important;min-height:125px!important;max-width:165px!important;max-height:165px!important;
 flex:none!important;aspect-ratio:1!important;
 margin:0 auto!important;padding:0!important;
 border:5px solid #f6cf73!important;border-radius:50%!important;
 box-shadow:0 0 0 3px #6e3911,0 7px 17px #0009!important;
 transform:none!important;translate:none!important;scale:1!important;
 overflow:hidden!important;object-fit:cover!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
 display:flex!important;position:absolute!important;z-index:3!important;
 top:50dvh!important;left:2.3vw!important;right:auto!important;
 width:clamp(280px,24vw,380px)!important;height:11dvh!important;min-height:72px!important;
 margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;
 transform:none!important;translate:none!important;scale:1!important;
 background:none!important;border:0!important;box-shadow:none!important;
 pointer-events:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdRoyalMemberPreview > img{
 display:block!important;width:100%!important;height:100%!important;
 object-fit:contain!important;transform:none!important;translate:none!important;scale:1!important;
}
/* Membership is conditional: non-Royal users get no misleading crest. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview[hidden]{
 display:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-pick-buttons{
 position:absolute!important;top:46dvh!important;left:50%!important;right:auto!important;
 width:88%!important;height:auto!important;min-height:0!important;
 display:flex!important;justify-content:center!important;
 margin:0!important;padding:0!important;
 transform:translateX(-50%)!important;translate:none!important;scale:1!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #chooseAvatar{
 position:relative!important;inset:auto!important;display:block!important;
 box-sizing:border-box!important;width:100%!important;max-width:300px!important;
 min-height:44px!important;height:48px!important;margin:0!important;padding:8px 14px!important;
 border:2px solid #eec568!important;border-radius:11px!important;
 background:linear-gradient(#683b92,#371453 55%,#240b40)!important;
 color:#ffeab3!important;-webkit-text-fill-color:#ffeab3!important;
 font:800 clamp(13px,1.1vw,17px)/1.2 Georgia,serif!important;
 box-shadow:inset 0 1px 0 #fff6,0 4px 12px #0009!important;
 text-align:center!important;text-shadow:0 1px 3px #000!important;
}
/* Keep the original Play Computer / Level / Goal / Timer choices usable. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line{
 position:absolute!important;z-index:5!important;
 top:80dvh!important;left:2.3vw!important;right:auto!important;bottom:auto!important;
 display:grid!important;grid-template-columns:1.25fr 1fr 1fr 1fr!important;
 align-items:stretch!important;gap:3px!important;
 width:clamp(280px,24vw,380px)!important;max-width:100%!important;
 height:66px!important;min-height:66px!important;
 margin:0!important;padding:2px!important;
 background:linear-gradient(#1d1745,#0c1233)!important;border:2px solid #dcac53!important;
 border-radius:10px!important;box-shadow:0 5px 18px #0009!important;
 transform:none!important;translate:none!important;scale:1!important;zoom:1!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line > :is(button,label){
 display:flex!important;position:relative!important;align-items:center!important;
 justify-content:center!important;flex-direction:column!important;
 box-sizing:border-box!important;min-width:0!important;min-height:60px!important;height:60px!important;
 margin:0!important;padding:4px 2px!important;border:1px solid #c99b48!important;
 border-radius:7px!important;background:#2c1551!important;
 color:#fbe5b0!important;font:700 clamp(9px,.72vw,12px)/1.1 Georgia,serif!important;
 text-align:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line #computer{
 background:linear-gradient(#58378a,#2f1550)!important;color:#ffdf83!important;
 font-size:clamp(10px,.9vw,13px)!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line select{
 position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;
 height:25px!important;min-height:25px!important;margin:3px 0 0!important;
 padding:1px!important;border:1px solid #ba8a37!important;border-radius:4px!important;
 background:#100e30!important;color:#fff!important;font:700 11px Georgia,serif!important;
}
/* One large animated entrance: all four game doors remain inside the Grand Hall. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdGrandEntrance{
 position:absolute!important;left:50%!important;right:auto!important;top:28dvh!important;
 width:min(43vw,660px)!important;max-width:none!important;height:auto!important;
 aspect-ratio:1448/1086!important;
 padding:0!important;margin:0!important;zoom:1!important;
 transform:translateX(-50%)!important;translate:none!important;scale:1!important;
 z-index:5!important;
}
/* The approved entrance PNG already displays ENTER THE GRAND HALL.
   Remove the redundant CSS banner, keeping the artwork and clickable door. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdGrandEntrance::before{
 content:none!important;display:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdGrandEntrance::after{
 content:none!important;display:none!important;
}
/* The former home avatar arch decoration is replaced by the left profile panel. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalGoldDivider,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .mode-title,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #royalMembershipHome{
 display:none!important;
}
/* Signed-in account actions live in the retractable Options menu; keep the
   underlying account elements in the DOM for logout/session logic. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]):has(#accountLogout:not([hidden])) #accountBar{
 visibility:hidden!important;pointer-events:none!important;
}
/* Restrained medium-screen proportions leave the existing right-hand menu free. */
@media (min-width:851px) and (max-width:1150px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]),
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line{
  left:1.5vw!important;width:29vw!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdGrandEntrance{
  width:38vw!important;top:33dvh!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art{
  width:36vw!important;
 }
}
/* Narrow touch layouts: keep the full background and scroll to the working
   Grand Hall after the avatar. The existing 3 right-side shortcuts stay intact. */
@media (max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){
  height:auto!important;min-height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) main{
  height:1410px!important;min-height:1410px!important;overflow:visible!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card{
  height:1410px!important;min-height:1410px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art{
  top:157px!important;left:50%!important;width:min(240px,62vw)!important;height:128px!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
  top:300px!important;left:50%!important;bottom:auto!important;
  width:min(360px,calc(100vw - 26px))!important;height:440px!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section{
  top:322px!important;left:50%!important;width:min(350px,calc(100vw - 30px))!important;height:410px!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview{
  width:136px!important;height:136px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row{
  top:476px!important;left:50%!important;width:min(350px,calc(100vw - 30px))!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
  top:573px!important;left:50%!important;width:min(350px,calc(100vw - 30px))!important;height:75px!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-pick-buttons{
  top:340px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .computer-launch-row.wd-home-controls-one-line{
  top:755px!important;left:50%!important;width:min(370px,calc(100vw - 26px))!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdGrandEntrance{
  top:886px!important;left:50%!important;width:min(570px,94vw)!important;
  margin:0!important;transform:translateX(-50%)!important;
 }

}


/* === Approved homepage avatar selector plate (Oct 30) =====================
   No jewels: clean gold and royal-purple border. Use the existing *live*
   account name, player rating, avatar preview/picker, and conditional crest.
   This is an adjustment to the LEFT profile only; the Grand Hall entrance,
   background and three right-side shortcuts retain their exact positions. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
 top:13dvh!important;left:2.3vw!important;
 width:clamp(280px,24vw,380px)!important;height:340px!important;
 border:3px solid #eac16a!important;border-radius:14px!important;
 background:linear-gradient(155deg,#29103df7,#180b2eed 55%,#2c1040f5)!important;
 box-shadow:inset 0 0 0 2px #79421d,0 10px 28px #000a!important;
}
/* A reserved, empty gold-edged crest well for players without Royal access.
   Actual Royal credentials are rendered only by the existing conditional
   #wdRoyalMemberPreview element; don't fake membership for non-members. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::after{
 content:''!important;display:block!important;position:absolute!important;
 z-index:1!important;pointer-events:none!important;
 top:calc(13dvh + 110px)!important;
 left:calc(2.3vw + clamp(280px,24vw,380px) - 142px)!important;
 right:auto!important;bottom:auto!important;
 box-sizing:border-box!important;width:124px!important;height:120px!important;
 border:2px solid #d6a84f!important;border-radius:10px!important;
 background:linear-gradient(155deg,#351448,#230d39)!important;
 box-shadow:inset 0 0 0 1px #683d29,0 2px 8px #0008!important;
 transform:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row{
 top:calc(13dvh + 14px)!important;left:2.3vw!important;
 width:clamp(280px,24vw,380px)!important;
 display:flex!important;flex-direction:column!important;gap:1px!important;
 align-items:center!important;padding:0 10px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #name{
 width:90%!important;max-width:90%!important;
 height:40px!important;min-height:40px!important;
 margin:0 auto!important;text-align:center!important;
 font:900 clamp(24px,2.15vw,32px)/40px Georgia,serif!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card .wd-home-identity-row #lobbyPlayerRating:not([hidden]){
 min-height:32px!important;height:32px!important;
 margin:0 auto!important;
 font-size:clamp(14px,1.13vw,17px)!important;
}
/* Avatar picture on the left, framed by a round, jewel-free gold ring. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section{
 top:calc(13dvh + 108px)!important;
 left:calc(2.3vw + 12px)!important;
 width:clamp(136px,11.6vw,178px)!important;height:208px!important;
 text-align:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview{
 box-sizing:border-box!important;
 width:clamp(124px,10.3vw,148px)!important;height:clamp(124px,10.3vw,148px)!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 margin:0 auto!important;padding:0!important;
 border:5px solid #f0c467!important;border-radius:50%!important;
 background-clip:padding-box!important;
 box-shadow:0 0 0 2px #713e19,0 7px 13px #0009!important;
 transform:none!important;object-fit:cover!important;overflow:hidden!important;
}
/* The existing button retains the actual avatar-modal click handler. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-pick-buttons{
 top:153px!important;left:50%!important;
 width:100%!important;min-height:43px!important;
 transform:translateX(-50%)!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #chooseAvatar{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;max-width:none!important;min-height:43px!important;height:45px!important;
 padding:7px 5px!important;white-space:nowrap!important;
 border-radius:8px!important;
 font:800 clamp(11px,.92vw,15px)/1.1 Georgia,serif!important;
}
/* Reserved position matches the gold crest well without enlarging artwork or
   changing the Royal eligibility logic from the account service. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
 top:calc(13dvh + 114px)!important;
 left:calc(2.3vw + clamp(280px,24vw,380px) - 138px)!important;
 width:116px!important;height:112px!important;min-height:0!important;
 padding:2px!important;align-items:center!important;justify-content:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #wdRoyalMemberPreview > img{
 max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
/* Medium PCs have narrower left-side real estate; no overlap with the door. */
@media (min-width:851px) and (max-width:1150px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row{
  left:1.5vw!important;width:29vw!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::after{
  left:calc(1.5vw + 29vw - 112px)!important;width:100px!important;height:112px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section{
  left:calc(1.5vw + 6px)!important;width:clamp(127px,13.2vw,150px)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview{
  width:118px!important;height:118px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
  left:calc(1.5vw + 29vw - 109px)!important;width:94px!important;height:104px!important;
 }
}
@media (max-width:850px){
 /* Keep the existing scrollable mobile lobby and central Grand Hall below. */
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
  top:300px!important;left:50%!important;
  width:min(360px,calc(100vw - 26px))!important;height:340px!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::after{
  top:415px!important;left:calc(50% + 24px)!important;
  width:116px!important;height:114px!important;transform:none!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .wd-home-identity-row{
  top:319px!important;left:50%!important;
  width:min(350px,calc(100vw - 30px))!important;
  transform:translateX(-50%)!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section{
  top:415px!important;left:max(16px,calc(50% - 168px))!important;
  width:clamp(126px,38vw,154px)!important;height:205px!important;
  transform:none!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview{
  width:126px!important;height:126px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-pick-buttons{
  top:150px!important;width:100%!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > #wdRoyalMemberPreview:not([hidden]){
  top:417px!important;left:calc(50% + 27px)!important;
  width:110px!important;height:110px!important;
  transform:none!important;
 }
}

/* The account's unselected avatar retains the original approved placeholder,
   but only until a live avatar is selected. CSS class scoping avoids leaving an
   old !important background stuck over a newly selected portrait. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section #avatarPreview.avatar-placeholder{
 background-image:url('/New%20Avatar%20square.png?v=20261019')!important;
 background-size:100% 100%!important;
 background-position:center!important;
 background-repeat:no-repeat!important;
}
