/* ELIE v5.1.45 — stable home controls, Duplet Kadim Stone typography,
   and continuous multilingual START signal motion. */

/* --------------------------------------------------------------------------
   FIXED HOME CONTROL DOCK
   Passport2 + Kadim Stone remain independent from the MYRA transmission card.
   -------------------------------------------------------------------------- */
.home-screen .home-corner-dock{
  --home-corner-bottom:20px;
  position:absolute;
  z-index:78;
  right:clamp(24px,4.2vw,82px);
  bottom:var(--home-corner-bottom);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(12px,1.05vw,20px);
  width:max-content;
  max-width:calc(100% - 48px);
  pointer-events:none;
  opacity:1;
  transform:none;
  contain:layout style;
}
.home-screen .home-corner-dock>button{
  pointer-events:auto;
  flex:0 0 auto;
}

/* Neutralize every legacy left-side / MYRA-anchored passport rule. */
.home-screen .home-corner-dock .home-passport-launch,
html.phone-landscape .home-screen .home-corner-dock .home-passport-launch{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  margin:0!important;
  padding:0!important;
  width:auto!important;
  height:clamp(94px,8.06vw,146px)!important;
  min-width:0!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:drop-shadow(0 0 10px rgba(41,255,75,.16));
  opacity:0;
  transform:scale(.88)!important;
  transform-origin:50% 50%;
  transition:opacity .6s ease,transform .55s cubic-bezier(.2,.8,.2,1),filter .3s ease!important;
  cursor:pointer;
  overflow:visible!important;
  -webkit-tap-highlight-color:transparent;
}
.home-screen .home-corner-dock .home-passport-launch.is-positioned{
  opacity:1;
  transform:scale(1)!important;
}
.home-screen .home-corner-dock .home-passport-launch>img{
  display:block;
  width:auto!important;
  height:100%!important;
  max-width:clamp(116px,10.2vw,184px)!important;
  object-fit:contain!important;
  animation:none!important;
  pointer-events:none;
}
.home-screen .home-corner-dock .home-passport-launch>span{display:none!important}

/* The Kadim button now belongs to the same stable dock. */
.home-screen .home-corner-dock .kadim-stone-launch,
html.phone-landscape .home-screen .home-corner-dock .kadim-stone-launch{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  margin:0!important;
  width:clamp(94px,8.06vw,146px)!important;
  height:auto!important;
  opacity:0;
  transform:scale(.88)!important;
  transform-origin:50% 50%;
  transition:opacity .6s ease,transform .55s cubic-bezier(.2,.8,.2,1),filter .3s ease!important;
}
.home-screen .home-corner-dock .kadim-stone-launch.is-positioned{
  opacity:1;
  transform:scale(1)!important;
}

@media (hover:hover) and (pointer:fine){
  .home-screen .home-corner-dock .home-passport-launch.is-positioned:hover,
  .home-screen .home-corner-dock .home-passport-launch.is-positioned:focus-visible{
    transform:scale(1.075)!important;
    filter:drop-shadow(0 0 22px rgba(41,255,75,.52));
    outline:none;
  }
  .home-screen .home-corner-dock .kadim-stone-launch.is-positioned:hover,
  .home-screen .home-corner-dock .kadim-stone-launch.is-positioned:focus-visible{
    transform:scale(1.085)!important;
    filter:drop-shadow(0 0 22px rgba(41,255,75,.62));
  }
}
.home-screen .home-corner-dock .home-passport-launch.is-positioned:active,
.home-screen .home-corner-dock .kadim-stone-launch.is-positioned:active{
  transform:scale(.98)!important;
}

/* The retired species animation must never reappear behind the new Passport2. */
.home-screen .home-passport-species-layer,
.home-screen .home-passport-species-peek,
.home-screen .menu-species-peek-layer,
.home-screen .menu-species-peek{
  display:none!important;
  visibility:hidden!important;
  animation:none!important;
}

/* Phone-only sizing. The dock remains fixed while the MYRA card enters/exits. */
@media (orientation:landscape) and (pointer:coarse){
  .home-screen .home-corner-dock{
    right:max(10px,calc(env(safe-area-inset-right) + 8px));
    gap:clamp(7px,1.7vw,12px);
    max-width:calc(100% - max(20px,calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 18px)));
  }
  .home-screen .home-corner-dock .home-passport-launch,
  html.phone-landscape .home-screen .home-corner-dock .home-passport-launch{
    height:clamp(65px,13.65vh,94px)!important;
  }
  .home-screen .home-corner-dock .home-passport-launch>img{
    max-width:clamp(80px,19vw,122px)!important;
  }
  .home-screen .home-corner-dock .kadim-stone-launch,
  html.phone-landscape .home-screen .home-corner-dock .kadim-stone-launch{
    width:clamp(65px,13.65vh,94px)!important;
  }
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:390px){
  .home-screen .home-corner-dock .home-passport-launch,
  html.phone-landscape .home-screen .home-corner-dock .home-passport-launch{
    height:clamp(61px,14.2vh,86px)!important;
  }
  .home-screen .home-corner-dock .kadim-stone-launch,
  html.phone-landscape .home-screen .home-corner-dock .kadim-stone-launch{
    width:clamp(61px,14.2vh,86px)!important;
  }
}

/* --------------------------------------------------------------------------
   KADIM STONE — restore the supplied Duplet typography and green hierarchy.
   -------------------------------------------------------------------------- */
.kadim-stone-window,
.kadim-stone-window button,
.kadim-stone-header,
.kadim-stone-header h2,
.kadim-stone-header p,
.kadim-stone-row,
.kadim-stone-name,
.kadim-stone-location,
.kadim-stone-date,
.kadim-stone-row.is-empty button{
  font-family:"Duplet",Arial,sans-serif!important;
  font-style:normal!important;
}
.kadim-stone-header h2{
  color:#34f348!important;
  font-weight:700!important;
  letter-spacing:-.04em!important;
  text-shadow:0 0 18px rgba(52,243,72,.12)!important;
}
.kadim-stone-header p{
  color:#31dd43!important;
  font-weight:700!important;
  letter-spacing:-.022em!important;
}
.kadim-stone-row{
  color:#24bd38!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.kadim-stone-row.is-occupied,
.kadim-stone-row.is-occupied strong{
  color:#39ef4d!important;
  font-weight:700!important;
}
.kadim-stone-row.is-empty{
  color:#159928!important;
}
.kadim-stone-row.is-empty button{
  color:#020703!important;
  background:#36ef48!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.kadim-stone-row.is-empty button:hover,
.kadim-stone-row.is-empty button:focus-visible{
  background:#5cff69!important;
}

/* --------------------------------------------------------------------------
   START SIGNAL — continuous stripe movement while rollover/focus is active.
   -------------------------------------------------------------------------- */
@keyframes elieStartSignalContinuousFlow{
  from{background-position:0 50%}
  to{background-position:calc(var(--signal-stripe) + var(--signal-gap)) 50%}
}
.home-start-signal .home-start-signal-stripes{
  background-position:0 50%!important;
  will-change:background-position,filter;
}
.home-start-signal.lang-en .home-start-signal-label,
.home-start-signal.lang-tr .home-start-signal-label,
.home-start-signal.lang-es .home-start-signal-label,
.home-start-signal.lang-fr .home-start-signal-label,
.home-start-signal.lang-it .home-start-signal-label,
.home-start-signal.lang-ru .home-start-signal-label,
.home-start-signal.lang-de .home-start-signal-label,
.home-start-signal.lang-pt .home-start-signal-label,
.home-start-signal.lang-ks .home-start-signal-label{
  font-family:"Duplet",Arial,sans-serif!important;
  font-weight:700!important;
}
@media (hover:hover) and (pointer:fine){
  .home-start-signal:hover .home-start-signal-stripes,
  .home-start-signal:focus-visible .home-start-signal-stripes{
    animation:elieStartSignalContinuousFlow .72s linear infinite!important;
    transform:none!important;
    filter:brightness(1.08);
  }
}

@media (prefers-reduced-motion:reduce){
  .home-screen .home-corner-dock .home-passport-launch,
  .home-screen .home-corner-dock .kadim-stone-launch{
    transition:opacity .2s ease,filter .2s ease!important;
  }
  .home-start-signal:hover .home-start-signal-stripes,
  .home-start-signal:focus-visible .home-start-signal-stripes{
    animation:none!important;
  }
}
