
/* V16.03 — Organic, understated space travel, no bars, no concentric circles. */
#lua-starflight-v1602{display:none!important}
#lua-starflight-v1603{
 position:fixed;inset:0;z-index:9;pointer-events:none;overflow:hidden;
 opacity:0;visibility:hidden;contain:layout paint style;
 transition:opacity .3s ease,visibility 0s linear .3s;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603{
 opacity:1;visibility:visible;transition:opacity .3s ease;
}
#lua-starflight-v1603 .lua-cosmic-haze{
 position:absolute;inset:-10%;opacity:0;will-change:transform,opacity;
 background:radial-gradient(ellipse 33% 43% at 50% 50%,rgba(255,213,239,.14),rgba(163,79,171,.065) 55%,transparent 100%);
}
#lua-starflight-v1603 .lua-cosmic-curves{
 position:absolute;inset:0;width:100%;height:100%;opacity:0;
 will-change:transform,opacity;filter:drop-shadow(0 0 4px rgba(233,165,238,.22));
}
#lua-starflight-v1603 .lua-cosmic-curves path{
 fill:none;stroke:rgba(245,193,238,.45);stroke-width:.85;
 stroke-linecap:round;stroke-dasharray:2 28 1 42 2 65;
 opacity:var(--alpha);
}
#lua-starflight-v1603 .lua-cosmic-dustfield{position:absolute;inset:0}
#lua-starflight-v1603 .lua-cosmic-dust{
 position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);
 border-radius:50%;background:#f9d8f4;box-shadow:0 0 5px rgba(246,179,231,.55);
 opacity:0;will-change:transform,opacity;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-haze{
 animation:lua1603-haze 1.6s ease-in-out both;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-curves{
 animation:lua1603-curves 1.6s cubic-bezier(.22,.7,.27,1) both;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-dust{
 animation:lua1603-dust 1.5s ease-in-out var(--delay) both;
}
@keyframes lua1603-haze{
 0%,100%{opacity:0;transform:scale(.94)}
 48%{opacity:.8;transform:scale(1.08)}
}
@keyframes lua1603-curves{
 0%{opacity:0;transform:scale(.83) rotate(-1deg)}
 34%{opacity:.36}
 68%{opacity:.46}
 100%{opacity:0;transform:scale(1.3) rotate(1deg)}
}
@keyframes lua1603-dust{
 0%{opacity:0;transform:translate3d(0,0,0) scale(.45)}
 30%{opacity:.75}
 80%{opacity:.55}
 100%{opacity:0;transform:translate3d(var(--dx),var(--dy),0) scale(1.2)}
}
@media(max-width:767px),(pointer:coarse){
 #lua-starflight-v1603 .lua-cosmic-curves{display:none}
 #lua-starflight-v1603 .lua-cosmic-dust:nth-child(2n){display:none}
 #lua-starflight-v1603 .lua-cosmic-dust{box-shadow:none}
}
@media(prefers-reduced-motion:reduce){#lua-starflight-v1603{display:none!important}}

/* V16.04 — Tunnel de profondeur organique, sans anneaux ni rayons droits. */
#lua-starflight-v1603 .lua-cosmic-haze{
 background:
  radial-gradient(ellipse 24% 29% at 50% 50%,rgba(19,8,34,.18) 0%,transparent 95%),
  radial-gradient(ellipse 54% 61% at 50% 50%,transparent 15%,rgba(146,61,174,.10) 48%,rgba(238,145,219,.14) 70%,transparent 99%),
  radial-gradient(ellipse 80% 80% at 50% 50%,rgba(79,36,113,.09),transparent 85%);
}
#lua-starflight-v1603 .lua-cosmic-curves{
 filter:drop-shadow(0 0 7px rgba(236,155,239,.27));
}
#lua-starflight-v1603 .lua-cosmic-curves path{
 stroke:rgba(249,201,246,.63);
 stroke-width:1.2;
 stroke-dasharray:3 19 2 32 1 44;
}
#lua-starflight-v1603 .lua-cosmic-dust{
 background:#ffe6f8;
 box-shadow:0 0 7px rgba(246,179,231,.68);
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-curves{
 animation:lua1604-curves 1.6s cubic-bezier(.17,.7,.2,1) both;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-dust{
 animation:lua1604-dust 1.5s cubic-bezier(.2,.65,.26,1) var(--delay) both;
}
body.is-travelling:not(.is-book-page) #lua-starflight-v1603 .lua-cosmic-haze{
 animation:lua1604-haze 1.6s ease-in-out both;
}
@keyframes lua1604-curves{
 0%{opacity:0;transform:scale(.55) rotate(-1.5deg)}
 25%{opacity:.36}
 55%{opacity:.82}
 85%{opacity:.54}
 100%{opacity:0;transform:scale(1.75) rotate(1.5deg)}
}
@keyframes lua1604-dust{
 0%{opacity:0;transform:translate3d(0,0,0) scale(.3)}
 24%{opacity:.68}
 58%{opacity:1}
 100%{opacity:0;transform:translate3d(var(--dx),var(--dy),0) scale(1.8)}
}
@keyframes lua1604-haze{
 0%,100%{opacity:0;transform:scale(.82)}
 50%{opacity:1;transform:scale(1.22)}
}
@media(max-width:767px),(pointer:coarse){
 #lua-starflight-v1603 .lua-cosmic-curves{display:none}
 #lua-starflight-v1603 .lua-cosmic-dust{box-shadow:none}
 #lua-starflight-v1603 .lua-cosmic-dust:nth-child(3n){display:none}
}
