/* CSS | astra-motion.css | Modern browsers | Composited motion shared by landing, sign-in, dashboard and Fleet. */
:root { --motion-ease: cubic-bezier(.22,1,.36,1); }
body { isolation: isolate; }
.motion-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.motion-atmosphere::before,.motion-atmosphere::after {
  content: ""; position: absolute; width: min(70vw,860px); height: min(70vw,860px); border-radius: 50%;
  background: radial-gradient(ellipse,#548bff19,transparent 67%); top: -28%; left: -12%;
  animation: none;
}
.motion-atmosphere::after { left: auto; right: -20%; top: 35%; background: radial-gradient(ellipse,#50c1b212,transparent 67%); }
:root[data-astra-motion=on] .motion-atmosphere::before { animation: motion-atmosphere 19s ease-in-out infinite alternate!important; }
:root[data-astra-motion=on] .motion-atmosphere::after { animation: motion-atmosphere 25s ease-in-out -9s infinite alternate!important; }
.intro-hero { isolation: isolate; }
.intro-hero::before,#authGate .art::before {
  content: ""; display: block; position: absolute; width: 440px; height: 440px; right: -150px; top: -170px;
  border-radius: 50%; background: radial-gradient(circle,#75aaff30,transparent 67%); pointer-events: none;
  z-index: -1;
}
:root[data-astra-motion=on] .intro-hero::before,:root[data-astra-motion=on] #authGate .art::before { animation: motion-breathe 7s ease-in-out infinite alternate!important; }
.intro-hero::after {
  content: ""; display: block; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(#80adff08 1px,transparent 1px),linear-gradient(90deg,#80adff08 1px,transparent 1px);
  background-size: 42px 42px; mask-image: linear-gradient(90deg,transparent,#000); opacity: .6;
}
#authGate .art { position: relative; isolation: isolate; overflow: hidden; }
#authGate .art::before { top: 12%; right: -90px; z-index: -1; }
:root[data-astra-motion=on] #authGate .art img.logo { animation: motion-float 6s ease-in-out infinite!important; }
:root[data-astra-motion=on] .map-orbit { animation: motion-orbit 30s linear infinite!important; }
.map-orbit::before { content: ""; position: absolute; top: 25px; left: 25px; width: 8px; height: 8px; border-radius: 50%; background: #add0ff; box-shadow: 0 0 16px #7baaffaa; }
.map-orbit::after { border-top-color: #98c3ff; border-right-color: #82b7ff60; }
:root[data-astra-motion=on] .map-core { animation: motion-core 5s ease-in-out infinite!important; }
:root[data-astra-motion=on] .map-satellite { animation: motion-float 5.5s ease-in-out infinite!important; }
:root[data-astra-motion=on] .map-bf { animation-delay: -2.5s!important; }
.live-dot,.online-dot,.dot { position: relative; }
.live-dot::after,.online-dot::after,.dot::after { content: ""; display: block; position: absolute; inset: -5px; border: 1px solid currentColor; border-radius: 50%; color: #83d5b7; pointer-events: none; }
:root[data-astra-motion=on] .live-dot::after,:root[data-astra-motion=on] .online-dot::after,:root[data-astra-motion=on] .dot::after { animation: motion-signal 3s ease-out infinite!important; }
.workspace-stat,.workspace-game,.fc-pack,.fc-machine,.metric,.bfcard,.feature,.step {
  transition: translate .28s var(--motion-ease),border-color .25s ease,background .25s ease,box-shadow .25s ease;
}
.workspace-game-logo,.fc-pack-icon,.iconbox,.stepnum { transition: rotate .35s var(--motion-ease),scale .35s var(--motion-ease); }
.design-primary,.design-secondary,.button,.btn,.fbtn,.control-btn,.act-btn,.head-refresh,#agGo {
  transition: translate .22s var(--motion-ease),scale .18s var(--motion-ease),background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.motion-button { position: relative; isolation: isolate; overflow: hidden; }
.motion-ripple { position: absolute; pointer-events: none; border-radius: 50%; background: #b9d6ff35; z-index: -1; width: var(--ripple-size); height: var(--ripple-size); left: var(--ripple-left); top: var(--ripple-top); }
.motion-button:active:not(:disabled) { scale: .97; }
.side-item,.navigation>a { transition: background .22s ease,color .22s ease,translate .25s var(--motion-ease); }
.trackstats-tabs button,.view-tabs button,.segmented button { transition: color .2s ease,background .2s ease,border-color .2s ease; }
.workspace-plan-meter i { transition: width .65s var(--motion-ease); }
:root[data-astra-motion=on] dialog[open] { animation: motion-dialog .32s var(--motion-ease)!important; }
:root[data-astra-motion=on] dialog[open]::backdrop { animation: motion-backdrop .25s ease-out!important; }
:root[data-astra-motion=on] dialog.drawer[open] { animation-name: motion-drawer!important; }
:root[data-astra-motion=on] .toast.show,:root[data-astra-motion=on] .toast.is-visible { animation: motion-toast .3s var(--motion-ease)!important; }
:root[data-astra-motion=on] .hero>div:first-child { animation: motion-rise .8s var(--motion-ease) both!important; }
:root[data-astra-motion=on] .hero .preview { animation: motion-rise 1s var(--motion-ease) .12s backwards,motion-float 7s ease-in-out 1.2s infinite!important; }
.hero h1 span { background: linear-gradient(100deg,#8ab7ff 5%,#daebff 42%,#85b5ff 80%); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: #a6c8ff; }
:root[data-astra-motion=on] .hero h1 span { animation: motion-text 8s ease-in-out infinite alternate!important; }
.hero .preview::after { content: ""; display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(110deg,transparent 28%,#b9d6ff12 48%,transparent 68%); }
:root[data-astra-motion=on] .hero .preview::after { animation: motion-sheen 9s ease-in-out infinite!important; }
:root[data-astra-motion=on] .landing-file-icon { animation: motion-float 5s ease-in-out infinite!important; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #344b6b; border-radius: 8px; color: #9bb5d9; background: #111e30; font: 500 10px/1.3 var(--font,Inter,"Segoe UI",sans-serif); cursor: pointer; white-space: nowrap; }
.motion-toggle::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #627994; }
.motion-toggle[aria-pressed=true]::before { background: #87d6b6; box-shadow: 0 0 9px #87d6b64d; }
.motion-toggle.is-floating { position: fixed; bottom: 14px; right: 14px; z-index: 110; }
body.is-embedded .motion-toggle { display: none; }
:root[data-astra-motion=on].motion-paused :is(.motion-atmosphere, .intro-hero, #authGate .art, #authGate .art img.logo, .map-orbit, .map-core, .map-satellite, .live-dot, .online-dot, .dot, dialog, .toast, .hero > div:first-child, .hero .preview, .hero h1 span, .landing-file-icon),
:root[data-astra-motion=on].motion-paused :is(.motion-atmosphere, .intro-hero, #authGate .art, .live-dot, .online-dot, .dot, dialog, .hero .preview)::before,
:root[data-astra-motion=on].motion-paused :is(.motion-atmosphere, .intro-hero, #authGate .art, .live-dot, .online-dot, .dot, dialog, .hero .preview)::after { animation-play-state: paused!important; }
@media(hover:hover) and (pointer:fine) {
  .workspace-stat:hover,.workspace-game:hover,.fc-pack:hover,.fc-machine:hover,.metric:hover,.bfcard:hover,.feature:hover,.step:hover { translate: 0 -4px; border-color: #557dae; }
  .workspace-game:hover .workspace-game-logo,.fc-pack:hover .fc-pack-icon,.feature:hover .iconbox { rotate: -5deg; scale: 1.06; }
  .design-primary:hover,.design-secondary:hover,.button:hover,.btn:hover,.fbtn:hover,.control-btn:hover,.head-refresh:hover,#agGo:hover { translate: 0 -2px; }
  .side-item:hover,.navigation>a:hover { translate: 3px 0; }
}
@keyframes motion-atmosphere { from { transform: translate3d(-4%,0,0); opacity: .55; } to { transform: translate3d(10%,10%,0); opacity: 1; } }
@keyframes motion-breathe { from { transform: translate3d(0,0,0) scale(.9); opacity: .5; } to { transform: translate3d(-24px,24px,0) scale(1.15); opacity: 1; } }
@keyframes motion-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes motion-orbit { from { transform: rotate(-20deg); } to { transform: rotate(340deg); } }
@keyframes motion-core { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes motion-signal { 0% { transform: scale(.5); opacity: .8; } 75%,100% { transform: scale(1.5); opacity: 0; } }
@keyframes motion-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes motion-dialog { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes motion-drawer { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes motion-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes motion-toast { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes motion-text { from { background-position: 0 50%; } to { background-position: 100% 50%; } }
@keyframes motion-sheen { 0%,55%,100% { transform: translateX(-120%); } 80% { transform: translateX(120%); } }
@media(max-width:760px) {
  .motion-atmosphere::before,.motion-atmosphere::after { width: 650px; height: 650px; }
  :root[data-astra-motion=on] .hero .preview { animation: motion-rise .75s var(--motion-ease) .1s backwards!important; }
  .motion-toggle { font-size: 9px; padding: 7px 8px; }
}
html[data-astra-motion=off] *,html[data-astra-motion=off] *::before,html[data-astra-motion=off] *::after { animation: none!important; transition: none!important; }
html[data-astra-motion=off] .motion-atmosphere,html[data-astra-motion=off] .motion-ripple,html[data-astra-motion=off] .live-dot::after,html[data-astra-motion=off] .online-dot::after,html[data-astra-motion=off] .dot::after { display: none!important; }
html[data-astra-motion=off] :is(.motion-button,.workspace-stat,.workspace-game,.fc-pack,.fc-machine,.metric,.bfcard,.feature,.step,.side-item,.navigation>a) { translate: none!important; scale: none!important; rotate: none!important; }
@media(prefers-reduced-motion:reduce) {
  html:not([data-astra-motion=on]) *,html:not([data-astra-motion=on]) *::before,html:not([data-astra-motion=on]) *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  html:not([data-astra-motion=on]) .motion-atmosphere,html:not([data-astra-motion=on]) .motion-ripple { display: none!important; }
}
