/* Phone footer: native content is authoritative. Decorative field stars remain,
   while the desktop canvas lettering, timing and idle ending stay unchanged. */
@media(max-width:700px){
 body #contact-entry{
  inset:auto;
  top:var(--mobile-footer-top,0px);left:0;
  width:100%;height:var(--mobile-footer-height,100svh);
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  gap:clamp(10px,2.2vh,20px);
  padding:calc(24px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px));
  min-height:0;overflow:auto;overscroll-behavior:contain;
 }
 body.in-rest:not(.in-contact) #contact-entry{display:flex}
 body #contact-entry .contact-portrait{
  position:relative;inset:auto;left:auto;top:auto;flex:none;
  width:58px;height:68px;margin:0;
 }
 body #contact-entry .space-intro{
  position:relative;inset:auto;flex:none;width:100%;max-width:19ch;margin:0;
  font-size:clamp(23px,6vw,28px);line-height:1.15;text-align:center;
 }
 body #contact-entry .star-invitation{
  position:relative;inset:auto;flex:none;width:100%;margin:0;
  font-size:12px;line-height:1.4;text-align:center;
 }
 body #contact-entry #hire-constellation{
  position:relative;inset:auto;flex:1 1 150px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:12px;width:100%;max-width:360px;
  height:auto;min-height:142px;max-height:250px;border-radius:8px;outline-offset:5px;
 }
 body #contact-entry .constellation-fallback{
  visibility:visible;display:block;max-width:100%;
  font-size:clamp(58px,17vw,84px);line-height:1.08;white-space:nowrap;
 }
 body #contact-entry .constellation-action{
  position:relative;inset:auto;left:auto;top:auto;transform:none;
  min-height:44px;padding:7px 12px 12px;font-size:23px;line-height:1.2;
 }
 body #contact-entry .space-footer{
  position:relative;inset:auto;flex:none;width:100%;margin:0;gap:0;
 }
 body #contact-entry .space-footer .contact-socials{
  display:flex;flex-wrap:nowrap;justify-content:space-around;align-items:center;
  gap:12px;width:100%;margin:0;
 }
 body #contact-entry .contact-socials a{
  display:inline-flex;flex-direction:column;align-items:center;gap:5px;
  min-width:44px;min-height:58px;padding:6px 0;font-size:20px!important;
  --social-draw:1!important;
 }
 body #contact-entry .social-icon{width:24px;height:24px}
 body #contact-entry .social-icon :is(path,circle,rect){stroke-dasharray:none;stroke-dashoffset:0}
}
@media(max-width:700px) and (max-height:560px){
 body #contact-entry{gap:7px;padding-top:calc(12px + env(safe-area-inset-top,0px));padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 body #contact-entry .contact-portrait{width:40px;height:46px}
 body #contact-entry .space-intro{font-size:22px}
 body #contact-entry #hire-constellation{flex-basis:112px;min-height:112px;gap:7px}
 body #contact-entry .constellation-fallback{font-size:50px}
 body #contact-entry .constellation-action{font-size:21px}
 body #contact-entry .contact-socials a{min-height:52px;font-size:18px!important}
}
