/* Small, silent story beats stay inside the decorative sky. */
.amber-space-event{position:absolute;inset:0;pointer-events:none;overflow:hidden;contain:strict}
.amber-space-event .space-actor{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}
.space-event-rocket{width:174px;height:49px;background:url('/static/amber-rocket.svg?v=life27') center/contain no-repeat;transform:translate(-96.875%,-50%)}
.space-event-meteor{width:110px;height:3px;transform:translate(-100%,-50%);background:linear-gradient(90deg,transparent,#ffb67160,#ffdbb8);border-radius:50%}
.space-event-meteor:after{content:'';position:absolute;right:-5px;top:-4px;width:11px;height:11px;border-radius:43%;background:radial-gradient(circle at 30% 25%,#fff1cc,#d08348 36%,#5c4040 74%);box-shadow:0 0 9px #ec9e6377}
.space-burst{position:absolute;width:1px;height:1px;pointer-events:none}
.space-burst-core,.space-burst-smoke,.space-burst-ring,.space-burst-spark{position:absolute;left:0;top:0;pointer-events:none}
.space-burst-core{width:48px;height:48px;border-radius:50%;background:radial-gradient(circle,#ffedc3 0,#ffcf78 16%,#e7834480 38%,#b5471922 65%,transparent 74%);transform:translate(-50%,-50%)}
.space-burst-ring{width:30px;height:30px;border:1px solid #ffe5bba6;border-radius:50%;transform:translate(-50%,-50%)}
.space-burst-smoke{width:65px;height:65px;border-radius:50%;background:radial-gradient(circle,#8d798944,#665e7333 32%,transparent 68%);transform:translate(-50%,-50%)}
.space-burst-spark{width:3px;height:2px;border-radius:40%;background:#ffd091;box-shadow:0 0 3px #e99f6199}

.amber-eye-overlay{position:absolute;pointer-events:none!important;z-index:5;overflow:visible;contain:layout style}
.amber-eye-overlay .amber-lids{transform-box:fill-box;transform-origin:center top}
/* A feathered mouth patch leaves the original silhouette, eyes and feet intact. */
:is(.amber-idle-smiling,.amber-smiling):not(.amber-roaming)>img:not(.amber-smile-face){visibility:visible!important}
:is(.amber-idle-smiling,.amber-smiling)>.amber-smile-face{visibility:visible!important}
:is(.amber-hero-character,.amber-companion-trigger,.lab-art)>.amber-smile-face{pointer-events:none!important;filter:none!important;mask-image:radial-gradient(ellipse 10% 6.5% at 49.5% 50.5%,#000 63%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 10% 6.5% at 49.5% 50.5%,#000 63%,transparent 100%)}
.amber-hero-character>img.amber-smile-face{height:auto}
.lab-art>.amber-smile-face{position:absolute;visibility:hidden}
.amber-roaming>.amber-eye-overlay,.amber-roaming>.amber-smile-face{visibility:hidden!important}
@media(max-width:760px){.space-event-rocket{width:142px;height:40px}.space-event-meteor{width:76px}.space-burst-core{width:36px;height:36px}.space-burst-smoke{width:50px;height:50px}}
@media(prefers-reduced-motion:reduce){.amber-space-event,.amber-eye-overlay{display:none!important}}

/* All traffic starts beyond its clipping edge, with no mid-screen fade or teleport. */
.amber-cosmos>.cosmos-rocket,.auth-body .amber-cosmos>.cosmos-rocket,.amber-orbit-traffic>.cosmos-rocket{left:0;top:0;opacity:0;animation:none;width:174px;height:49px;will-change:transform}
.amber-cosmos>.rocket-distant{width:108px;height:31px;filter:brightness(.78)}
.amber-orbit-traffic>.cosmos-rocket{width:138px;height:39px}
@media(max-width:760px){.amber-cosmos>.cosmos-rocket,.auth-body .amber-cosmos>.cosmos-rocket{width:142px;height:40px}.amber-cosmos>.rocket-distant{width:90px;height:26px}}

/* Flight coordinates represent the visible nose, not a rotating layout box. */
.amber-space-event .space-actor{width:0;height:0;transform-origin:0 0}
/* Expressions belong to the resting character; no face can remain during travel. */
:is(#amber-hero-character,#amber-companion-trigger,.lab-art):is(.amber-roaming,[aria-busy="true"])>:is(.amber-smile-face,.amber-eye-overlay){display:none!important;visibility:hidden!important;opacity:0!important}
