/* ELIE v5.1.16 — exact logo-layer offsets and stable lower-left identity controls.
   This file is intentionally loaded last and changes only the requested items. */

/* Move the four animated visual layers exactly 50px upward. */
.elie-logo-assembly .elie-logo-layer.layer-ufo img{top:calc(18.2% - 50px)!important}
.elie-logo-assembly .elie-logo-layer.layer-body img{top:-50px!important}
.elie-logo-assembly .elie-logo-layer.layer-text img{top:calc(49.4% - 50px)!important}
.elie-logo-assembly .elie-logo-layer.layer-hand img{top:-50px!important}

/* Move only the rotating atom exactly 10px downward. */
.elie-logo-assembly .elie-logo-layer.layer-atom img{top:calc(80.3% + 10px)!important}

/* Share remains in the established upper-right position. */
.screen .home-share-launch{
  left:auto!important;
  right:var(--hud-right,max(2.4%,var(--safe-right)))!important;
  top:1.18%!important;
  bottom:auto!important;
}

/* Pilot Passport + MYRA are permanently restored to the lower-left. */
.home-screen .home-myra-launch{
  left:max(2.5%,calc(var(--safe-left) + 10px))!important;
  right:auto!important;
  top:auto!important;
  bottom:132px!important;
}
.home-screen .home-passport-launch{
  right:auto!important;
  bottom:auto!important;
}

@media (orientation:landscape) and (pointer:coarse){
  .home-screen .home-myra-launch{
    left:max(9px,calc(var(--safe-left) + 6px))!important;
    bottom:80px!important;
  }
}

@media (orientation:landscape) and (pointer:coarse) and (max-width:899px),
       (orientation:landscape) and (pointer:coarse) and (max-height:519px){
  .screen .home-share-launch{
    right:calc(max(3px,var(--safe-right)) + 42px)!important;
    top:calc(max(4px,var(--safe-top)) + 1px)!important;
  }
}

/* ELIE v5.1.17 — center only the locked Boss archive X inside the visible card frame. */
.bosses-screen .boss-card.archive-card-with-world.locked .lock-cross{
  left:50%!important;
  top:calc(50% + (var(--u) * 1.48))!important;
  transform:translate(-50%,-50%)!important;
}


/* ELIE v5.1.18 — Share control is 20% smaller without changing its upper-right anchor. */
@media (min-width:900px) and (min-height:520px),
       (hover:hover) and (pointer:fine){
  .site-shell{--share-width:calc(var(--u)*8.32)!important}
  .screen .home-share-launch{
    width:var(--share-width)!important;
    min-width:var(--share-width)!important;
    height:calc(var(--u)*3.68)!important;
    min-height:calc(var(--u)*3.68)!important;
    padding:calc(var(--u)*.27) calc(var(--u)*.45)!important;
    gap:calc(var(--u)*.3)!important;
  }
  .screen .home-share-launch img{width:calc(var(--u)*2.2)!important;height:calc(var(--u)*2.2)!important}
  .screen .home-share-launch span{font-size:clamp(7px,calc(var(--u)*.52),10px)!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-width:899px),
       (orientation:landscape) and (pointer:coarse) and (max-height:519px){
  .screen .home-share-launch{
    width:61px!important;
    min-width:61px!important;
    height:30px!important;
    min-height:30px!important;
    padding:2px 5px 2px 3px!important;
    gap:3px!important;
  }
  .screen .home-share-launch img{width:20px!important;height:20px!important}
  .screen .home-share-launch span{font-size:6px!important}
}

/* ELIE v5.1.19 — language selection screen only.
   Undo 50px upward offset for Body, Text, UFO and Hand on this screen,
   moving them exactly 50px downward relative to their v5.1.18 positions.
   No other page or logo layer is affected. */
.language-screen .elie-logo-assembly .elie-logo-layer.layer-ufo img{
  top:18.2%!important;
}
.language-screen .elie-logo-assembly .elie-logo-layer.layer-body img{
  top:0!important;
}
.language-screen .elie-logo-assembly .elie-logo-layer.layer-text img{
  top:49.4%!important;
}
.language-screen .elie-logo-assembly .elie-logo-layer.layer-hand img{
  top:0!important;
}

/* ELIE v5.1.21 — only the planet-selection and level-selection screens.
   Restore Body, Text, UFO and Hand 50px downward so these two logos align
   with the home-page assembly. Atom and every other screen remain untouched. */
.worlds-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-ufo img,
.levels-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-ufo img{
  top:18.2%!important;
}
.worlds-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-body img,
.levels-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-body img{
  top:0!important;
}
.worlds-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-text img,
.levels-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-text img{
  top:49.4%!important;
}
.worlds-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-hand img,
.levels-screen .v3-levelstart-logo.elie-logo-assembly .elie-logo-layer.layer-hand img{
  top:0!important;
}
