/* ELIE v5.1.89 — mobile home alignment and touch HUD ergonomics.
   Coarse landscape only. Desktop and portrait compositions remain untouched. */
@media (orientation:landscape) and (pointer:coarse) and (max-height:520px){
  /* Endless signal sits below the mobile ELIE assembly without touching it. */
  html.phone-landscape .home-screen .home-endless,
  html.phone-landscape .home-screen .home-endless-signal{
    top:23.5%!important;
    left:4%!important;
    width:92%!important;
    height:auto!important;
    transform:none!important;
  }
  html.phone-landscape .home-cinematic.is-visible .home-endless{transform:none!important}

  /* One balanced five-instrument row: badge, MYRA, information, passport, stone. */
  html.phone-landscape .home-screen .home-lower-instruments{
    --home-instrument-band:clamp(54px,16.2vh,70px)!important;
    --home-round-size:calc(var(--home-instrument-band) * .84)!important;
    --home-passport-height:calc(var(--home-instrument-band) * .84)!important;
    --home-kadim-size:calc(var(--home-instrument-band) * .84)!important;
    --home-info-height:calc(var(--home-instrument-band) * .54)!important;
    left:max(4px,var(--safe-left,0px))!important;
    right:max(4px,var(--safe-right,0px))!important;
    bottom:max(19px,calc(var(--safe-bottom,0px) + 16px))!important;
    height:var(--home-instrument-band)!important;
    grid-template-columns:minmax(48px,.78fr) minmax(48px,.78fr) minmax(210px,3.45fr) minmax(48px,.78fr) minmax(48px,.78fr)!important;
    column-gap:clamp(3px,.7vw,7px)!important;
    align-items:center!important;
    justify-items:center!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments>*{margin:0!important;align-self:center!important;justify-self:center!important}
  html.phone-landscape .home-screen .home-lower-instruments .home-info{
    width:min(100%,390px)!important;
    height:var(--home-info-height)!important;
    max-height:var(--home-info-height)!important;
    object-fit:contain!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .home-badge-launch,
  html.phone-landscape .home-screen .home-lower-instruments .home-myra-launch,
  html.phone-landscape .home-screen .home-lower-instruments .home-passport-launch,
  html.phone-landscape .home-screen .home-lower-instruments .kadim-stone-launch{
    width:var(--home-round-size)!important;
    height:var(--home-round-size)!important;
    min-width:var(--home-round-size)!important;
    min-height:var(--home-round-size)!important;
    max-width:var(--home-round-size)!important;
    max-height:var(--home-round-size)!important;
    border-radius:50%!important;
    overflow:visible!important;
    transform:none!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .home-passport-launch{
    border:1px solid rgba(46,241,58,.54)!important;
    background:radial-gradient(circle,rgba(8,48,15,.9),rgba(0,8,2,.98) 72%)!important;
    overflow:hidden!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .home-passport-launch>img{
    width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;padding:3px!important;box-sizing:border-box!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .kadim-stone-launch,
  html.phone-landscape .home-screen .home-lower-instruments .kadim-stone-launch *{border-radius:50%!important}
  html.phone-landscape .home-screen .home-lower-instruments .kadim-stone-launch img{width:100%!important;height:100%!important;object-fit:contain!important}

  /* Keep each counter attached to its own instrument. */
  html.phone-landscape .home-screen .home-lower-instruments .home-badge-launch b{
    position:absolute!important;right:-2px!important;bottom:-2px!important;left:auto!important;top:auto!important;
    display:grid!important;place-items:center!important;z-index:8!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .home-myra-launch em{
    position:absolute!important;inset:0!important;margin:auto!important;
    width:32%!important;height:32%!important;min-width:0!important;min-height:0!important;
    display:grid!important;place-items:center!important;z-index:8!important;
    border:1px solid rgba(46,241,58,.7)!important;border-radius:50%!important;
    background:rgba(0,12,3,.96)!important;color:#2ef13a!important;
    font-size:clamp(7px,1.8vh,10px)!important;line-height:1!important;
  }
  html.phone-landscape .home-screen .home-lower-instruments .home-myra-launch.has-unread em{
    background:#2ef13a!important;color:#001704!important;
  }

  /* Site identity and copyright form one centered footer below the instrument row. */
  html.phone-landscape .home-screen .site-branding{
    position:absolute!important;left:50%!important;right:auto!important;bottom:max(1px,var(--safe-bottom,0px))!important;
    transform:translateX(-50%)!important;display:flex!important;align-items:center!important;justify-content:center!important;
    gap:5px!important;width:auto!important;height:14px!important;z-index:82!important;
  }
  html.phone-landscape .home-screen .site-branding .site-mark-link{
    position:relative!important;inset:auto!important;width:22px!important;height:auto!important;margin:0!important;
  }
  html.phone-landscape .home-screen .site-branding .site-copyright-new{
    position:relative!important;inset:auto!important;width:82px!important;height:auto!important;margin:0!important;
  }

  /* MYRA navigation trigger: compact angular telemetry module. */
  html.phone-landscape .mobile-menu-trigger{
    width:45px!important;height:40px!important;min-height:40px!important;padding:8px 9px!important;gap:4px!important;
    border:1px solid rgba(46,241,58,.86)!important;border-radius:5px 13px 5px 13px!important;
    background:linear-gradient(145deg,rgba(0,28,7,.98),rgba(0,4,1,.98))!important;
    box-shadow:inset 0 0 0 1px rgba(46,241,58,.1),inset 0 0 16px rgba(46,241,58,.07),0 0 12px rgba(0,0,0,.7)!important;
    overflow:hidden!important;
  }
  html.phone-landscape .mobile-menu-trigger::before,
  html.phone-landscape .mobile-menu-trigger::after{
    content:"";position:absolute;pointer-events:none;z-index:0;
  }
  html.phone-landscape .mobile-menu-trigger::before{
    inset:4px;border-left:1px solid rgba(46,241,58,.32);border-bottom:1px solid rgba(46,241,58,.22);border-radius:2px 9px 2px 9px;
  }
  html.phone-landscape .mobile-menu-trigger::after{
    right:4px;top:4px;width:8px;height:8px;border-top:2px solid #2ef13a;border-right:2px solid #2ef13a;
  }
  html.phone-landscape .mobile-menu-trigger span{
    position:relative;z-index:2;height:2px!important;background:#2ef13a!important;box-shadow:0 0 5px rgba(46,241,58,.36)!important;
  }
  html.phone-landscape .mobile-menu-trigger span:nth-child(1){width:78%!important;align-self:flex-start!important}
  html.phone-landscape .mobile-menu-trigger span:nth-child(2){width:100%!important;align-self:center!important}
  html.phone-landscape .mobile-menu-trigger span:nth-child(3){width:58%!important;align-self:flex-end!important}
}
