/* Signed-in Word Dome homepage: increase the avatar selector frame HEIGHT only
   by precisely 15% from its top edge. Retain prior width, gold frame corners,
   and all original interior artwork. The frame's visible bottom stays fixed.
   Raise ONLY the Word Dome trophy by the exact displayed extra height, keeping
   it resting atop the profile. Grand Hall door, menu and wallpaper unchanged. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){
 /* 0.15 × old 1.071509 height factor × existing 0.90 visual scale. */
 --wd-home-avatar-height-lift:calc(clamp(440px,41vw,700px) * .341615 * .144653715);
}
@media (max-width:850px){
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){
  --wd-home-avatar-height-lift:calc(min(95vw,620px) * .341615 * .144653715);
 }
}
@media (max-width:480px){
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){
  --wd-home-avatar-height-lift:calc(96vw * .341615 * .144653715);
 }
}
@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]){
  --wd-home-avatar-height-lift:calc(clamp(440px,41vw,700px) * .85 * .341615 * .144653715);
 }
}
@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]){
  --wd-home-avatar-height-lift:calc(clamp(440px,41vw,700px) * .85 * .341615 * .144653715);
 }
}
/* Increase the frame's unscaled height by 15%. With scale:.9 around center,
   move its CSS top by 95% of the added unscaled height to keep bottom fixed.
   Its actual visible top rises 15% of the OLD visible panel height. */
html:not(.wd-home-flow-test)
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
 height:calc(var(--wd-regal-height) * 1.23223535)!important;
 top:calc(var(--wd-regal-top) - var(--wd-regal-height) * .1526900325)!important;
 background-image:url('/home-avatar-panel-height-115-wide.svg')!important;
}
@media (max-width:699px){
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card::before{
  /* Narrow phones retain their previously approved avatar box WIDTH. */
  background-image:url('/home-avatar-panel-height-115-mobile.svg')!important;
 }
}
/* Preserve existing logo scale, center, responsive placement and iPad lift.
   Adjust ONLY its existing vertical translation, never the logo image size. */
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(-98% - 8dvh - var(--wd-avatar-logo-pair-rise) - var(--wd-home-avatar-height-lift))!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]) 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))!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]) 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))!important;
 }
}
