/* Signed-in Word Dome homepage only — November 3, 2026.
   Replace the stitched 3-row / 5-column enlarged player-panel graphic with
   ONE seamless vector. Keep its approved top/left/width/height, .9 scale and
   shared vertical offset from the existing responsive layout CSS unchanged.
   The navy center and gold rim are drawn continuously, without a sliced PNG
   or another composited panel. Account elements stay live and on top. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
  background:transparent url('/home-avatar-frame-clean.svg?v=clean-home-corners-20261108')
    center / 100% 100% no-repeat!important;
  border:0!important;
  box-shadow:none!important;
}
/* The old PNG also provided the unselected golden A. Preserve that exact
   artwork with a single cropped image INSIDE the existing avatar placeholder,
   not an overlaid panel image. The selected portrait uses its existing CSS. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden])
#lobby.card > .avatar-section #avatarPreview.avatar-placeholder{
  visibility:visible!important;
  /* Keep a small clear gap above the 20%-enlarged live avatar button. */
  top:calc(var(--wd-regal-height) * .008)!important;
  background-color:#001647!important;
  background-image:url('/Word_Dome_Player_Profile_Transparent_Background.png?v=profile-20261031')!important;
  background-size:760% 265%!important;
  background-position:85.5% 23.4%!important;
  background-repeat:no-repeat!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  font-size:0!important;
  scale:1.20!important;
  transform-origin:center center!important;
  pointer-events:none!important;
}
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden])
#lobby.card > .avatar-section #avatarPreview.avatar-placeholder::before,
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden])
#lobby.card > .avatar-section #avatarPreview.avatar-placeholder::after{
  content:none!important;
  display:none!important;
}


/* November 8 desktop homepage clearance restoration.
   The signed-in avatar frame and its interactive contents previously sat
   against the Grand Hall plaque. Lift the COMPLETE avatar profile 14px
   as one group, and lift the trophy equally to retain their contact point.
   Do not move the baked-in Grand Hall artwork, door hit area, right menus,
   avatar controls relative to their frame, or any game-room UI. */
@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-avatar-panel-rise:calc(var(--wd-regal-height) * .16072635 + var(--wd-avatar-logo-pair-rise) + 14px);
 }
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden])
 main > header.brand.brand-art > img.wd-approved-arch-logo{
  translate:0 calc(-90.775% - 13dvh - var(--wd-avatar-logo-pair-rise) - var(--wd-home-avatar-height-lift) - 14px)!important;
 }
}

/* November 8 iPad landscape/portrait clearance.
   The equivalent 14px desktop fix above excludes touch iPads, leaving the
   profile's lower gold rim over the background's Grand Hall title plaque.
   Raise the entire profile group and trophy by identical amounts. Keep the
   artwork, actual Grand Hall sign, doors, menus and desktop rules untouched. */
@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-avatar-panel-rise:calc(var(--wd-regal-height) * .16072635 + var(--wd-avatar-logo-pair-rise) + 14px);
 }
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden])
 main > header.brand.brand-art > img.wd-approved-arch-logo{
  translate:0 calc(-90.775% - 13dvh - var(--wd-avatar-logo-pair-rise) - var(--wd-ipad-scene-lift) - var(--wd-home-avatar-height-lift) - 14px)!important;
 }
}
