/* Signed-in Word Dome homepage: iPad-only perspective parity.
   The approved smaller PC profile and trophy were previously limited to
   (hover:hover) (pointer:fine), so touch iPads rendered both oversized.
   Match the approved perspective on iPad-sized touch viewports while keeping
   PC, phones, game rooms, sign-in, and Grand Hall completely unchanged. */
@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]){
  /* Only vertical clearance needed to keep the panel clear of the
     background's REAL double doors at the taller 4:3 iPad aspect ratio. */
  --wd-ipad-scene-lift:clamp(12px,3.5dvh,42px);
  --wd-avatar-logo-pair-rise:calc(clamp(440px,41vw,700px) * .85 * .341615 * -.019287162);
 }
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card{
  /* Reuse desktop's proportional artwork and live-content anchors. */
  --wd-regal-width:calc(clamp(440px,41vw,700px) * .85);
  --wd-regal-height:calc(var(--wd-regal-width) * .341615);
  --wd-regal-left:calc(50vw - var(--wd-regal-width) / 2);
  --wd-regal-top:calc(35dvh - 25dvh * .01017126 + .0024px - var(--wd-regal-height) * .000006 - 5dvh - var(--wd-ipad-scene-lift));
  /* Prevent the old max-850px 1410px mobile canvas from distorting portrait iPads. */
  height:100dvh!important;min-height:0!important;
 }
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) main{
  height:100dvh!important;min-height:100dvh!important;
  overflow-x:hidden!important;overflow-y:auto!important;
 }
 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{
  /* Same approved 72.25% trophy scale as desktop. Lift in tandem with panel. */
  scale:.7225!important;
  translate:0 calc(-90.775% - 13dvh - var(--wd-avatar-logo-pair-rise) - var(--wd-ipad-scene-lift))!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 .wd-home-identity-row #name{
  font-size:clamp(11px,1.7vw,26.35px)!important;
 }
 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]){
  font-size:clamp(9px,.9775vw,15.3px)!important;
 }
 /* Keep the 20%-enlarged live avatar portrait and its picker separate on iPad.
    The original 0.403 panel-height anchor lets the pill touch the photo;
    0.473 restores a clear gap within the gold profile without moving the
    image, badge, frame, trophy or entrance. Fit the live clickable button
    to its iPad-only slot instead of inheriting the global 190px minimum. */
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card > .avatar-section .avatar-pick-buttons{
  top:calc(var(--wd-regal-height) * .473)!important;
  width:calc(var(--wd-regal-width) * .30)!important;
 }
 html:not(.wd-home-flow-test)
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby.card #chooseAvatar{
  min-width:0!important;
 }
 /* The transparent doorway hotspot remains positioned from actual image
    pixels by home-celestial-entrance.js, and is not resized or moved here. */
}
