.mux-signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mux-signal-canvas--profile { z-index: 0; opacity: 0.68; mask-image: linear-gradient(120deg, transparent 4%, #000 46%, #000 100%); }
.mux-signal-canvas--editor { position: fixed; z-index: 0; opacity: 0.18; }
body:has(.mux-signal-canvas--editor) #root { position: relative; z-index: 1; }

.mux-boot-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background:
    linear-gradient(rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px),
    #070809;
  background-size: 40px 40px;
  color: #f2f3f4;
  animation: mux-loader-failsafe 0s 3s forwards;
}
.mux-boot-screen::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgb(217 35 46 / 0.13), transparent 28%); content: ""; }
.mux-boot-core { position: relative; display: grid; width: 78px; height: 78px; place-items: center; }
.mux-boot-core img { position: relative; z-index: 2; border-radius: 7px; box-shadow: 0 12px 38px rgb(0 0 0 / 0.5); animation: mux-loader-mark 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.mux-boot-core i { position: absolute; inset: 3px; border: 1px solid rgb(239 63 72 / 0.25); border-radius: 50%; animation: mux-loader-ring 1.6s linear infinite; }
.mux-boot-core i:last-child { inset: 13px; border-style: dashed; border-color: rgb(255 255 255 / 0.12); animation-direction: reverse; animation-duration: 2.1s; }
.mux-boot-copy { position: relative; display: grid; justify-items: center; gap: 7px; margin-top: 8px; }
.mux-boot-copy strong { font-size: 15px; letter-spacing: -0.02em; }
.mux-boot-copy span { color: #757b84; font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: 0.15em; }
.mux-boot-track { position: relative; width: 128px; height: 1px; margin-top: 18px; overflow: hidden; background: #272b30; }
.mux-boot-track span { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ef3f48, transparent); transform: translateX(-100%); animation: mux-loader-track 850ms cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.mux-boot-screen.is-leaving { opacity: 0; transform: scale(1.015); transition: opacity 260ms ease, transform 320ms ease; pointer-events: none; }
.mux-boot-screen[hidden] { display: none; }

@keyframes mux-loader-ring { to { transform: rotate(360deg); } }
@keyframes mux-loader-mark { 50% { filter: brightness(1.18); transform: scale(1.035); } }
@keyframes mux-loader-track { to { transform: translateX(100%); } }
@keyframes mux-loader-failsafe { to { visibility: hidden; pointer-events: none; } }

@media (prefers-reduced-motion: reduce) {
  .mux-boot-core img, .mux-boot-core i, .mux-boot-track span { animation: none; }
  .mux-boot-screen { animation-delay: 0.2s; }
}
