@property --hole { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
#appLoader { display: contents; background: inherit; }
#appLoader[hidden] { display: none; }
#appLoader .backdrop { position: fixed; inset: 0; z-index: 100; background: inherit; --hole: 0%; -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 0.5%)); mask: radial-gradient(circle at 50% 50%, transparent var(--hole), #000 calc(var(--hole) + 0.5%)); }
#appLoader.leaving .backdrop { animation: iris 1s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes iris { to { --hole: 100%; } }
#appLoader .headsetWrap { --s: 0.72; position: fixed; z-index: 101; left: 50%; top: 50%; width: 300px; height: 190px; transform: translate(-50%, -50%) scale(var(--s)); transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.8s ease; }
@media (min-width: 640px) { #appLoader .headsetWrap { --s: 1; } }
#appLoader.leaving .headsetWrap { transform: translate(-50%, -50%) scale(calc(var(--s) * 14)); opacity: 0; }
#appLoader .headset { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 8px rgb(120 170 255 / 0.45)); }
#appLoader .headset path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
#appLoader .headset .shell { stroke: rgb(169 196 255 / 0.9); stroke-width: 2.5; }
#appLoader .headset .shellFill { fill: rgb(169 196 255 / 0.05); stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; animation: fadeIn 0.8s ease 0.6s backwards; }
#appLoader .headset .rim { stroke: rgb(169 196 255 / 0.35); stroke-width: 1.5; animation-delay: 0.3s; }
#appLoader .headset .pad { stroke: rgb(169 196 255 / 0.45); stroke-width: 2; animation-delay: 0.5s; }
#appLoader .headset .strap { stroke: rgb(169 196 255 / 0.5); stroke-width: 2.5; animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
#appLoader .scan { position: absolute; inset: 0; clip-path: path("M84 22 H216 A56 56 0 0 1 272 78 V94 A56 56 0 0 1 216 150 H84 A56 56 0 0 1 28 94 V78 A56 56 0 0 1 84 22 Z"); background: linear-gradient(100deg, transparent 0%, transparent 40%, rgb(169 196 255 / 0.22) 50%, transparent 60%, transparent 100%); background-size: 250% 100%; animation: scanX 2.2s ease-in-out 1s infinite; opacity: 0.9; }
@keyframes scanX { from { background-position: 120% 0; } to { background-position: -20% 0; } }
#appLoader .lens { position: absolute; top: 51px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgb(169 196 255 / 0.35), rgb(169 196 255 / 0.04) 60%, transparent 70%); border: 2px solid rgb(169 196 255 / 0.75); box-shadow: 0 0 30px rgb(120 170 255 / 0.35), inset 0 0 18px rgb(169 196 255 / 0.25); animation: lensIn 0.6s ease 0.9s backwards, breathe 1.6s ease-in-out 1.5s infinite alternate; }
#appLoader .lens::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgb(214 228 255 / 0.95) 85%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%, #000 64%, transparent 66%); mask: radial-gradient(circle, transparent 58%, #000 60%, #000 64%, transparent 66%); animation: spin 1.3s linear infinite; }
#appLoader .lensLeft { left: 73px; }
#appLoader .lensRight { left: 157px; animation-delay: 0.9s, 1.75s; }
#appLoader .lensRight::before { animation-direction: reverse; }
@keyframes lensIn { from { opacity: 0; transform: scale(0.6); } }
@keyframes breathe { from { transform: scale(0.93); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #appLoader .lens, #appLoader .lens::before, #appLoader .scan, #appLoader .headset path { animation: none; }
  #appLoader .headset path { stroke-dashoffset: 0; }
  #appLoader.leaving .backdrop { animation: none; }
  #appLoader.leaving .headsetWrap { transform: translate(-50%, -50%) scale(var(--s)); }
  #appLoader .backdrop { transition: opacity 0.3s ease; }
  #appLoader.leaving .backdrop { opacity: 0; }
}
