/* Neuro Home — the live Neuro (neuro-mascot.js) and the little moments around it (owner 21.11.2026).
   The live mascot is an <svg class="… nm"> that takes the place of <img src="neuro-mascot.webp">,
   so it keeps the picture's own class (.hero-neuro, .dr-neuro); the two places that styled the
   picture by tag (.welcome-neuro img, .dr-else img) get the same rules for the svg here. */
svg.nm { display: block; height: auto; aspect-ratio: 645 / 903; overflow: visible; }
.welcome-neuro > svg.nm {
  width: 100%; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5));
  transform-origin: 50% 100%; animation: neuro-breathe 4.2s ease-in-out infinite;
}
.welcome-neuro.talk > svg.nm { animation: neuro-hop .5s var(--ease-spring); }
.dr-else > svg.nm { position: absolute; right: 8px; bottom: -4px; width: 104px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .welcome-neuro > svg.nm, .welcome-neuro.talk > svg.nm { animation: none; transform: rotate(5deg); }
}

/* Money over the screen when a payment goes through. */
.nm-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* Photo taken: a white flash and a violet frame that fades. */
.nm-flash { position: absolute; inset: 0; z-index: 60; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 4px rgba(124,87,255,.95), inset 0 0 40px rgba(124,87,255,.6);
  background: rgba(255,255,255,.55); animation: nm-flash .65s ease-out forwards; }
@keyframes nm-flash { 0% { opacity: 1; } 18% { background: rgba(255,255,255,.0); } 100% { opacity: 0; background: rgba(255,255,255,0); } }

/* Pro assigned: the pro's card slides up (like a ride app); pro arrived: the avatar rings. */
.nm-slide-up { animation: nm-slide-up .6s cubic-bezier(.34,1.4,.64,1) both; }
@keyframes nm-slide-up { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.nm-ring { animation: nm-ring 1.2s ease-out 2; border-radius: 999px; }
@keyframes nm-ring { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.7); } 100% { box-shadow: 0 0 0 18px rgba(52,211,153,0); } }

/* Rating: the stars light up one by one. */
#stars span[data-star].nm-star-in { animation: nm-star-in .42s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--nm-i, 0) * 110ms); }
@keyframes nm-star-in { 0% { opacity: .25; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.22); } 100% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .nm-flash, .nm-slide-up, .nm-ring, #stars span[data-star].nm-star-in { animation: none; }
}

/* Neuro on the camera, the booked screen and the waiting screen (owner 28.11.2026: «графику Нейро не вижу»).
   Class-only rules, so the plain picture (before neuro-mascot.js upgrades it) sits in the same place. */
.cam-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cam-neuro { width: 38px; height: auto; flex: none; margin: -10px 0 -10px -4px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); pointer-events: none; }

.booked-hero { position: relative; width: 132px; margin: 0 auto 14px; }
.booked-neuro { display: block; width: 132px; height: auto; filter: drop-shadow(0 14px 18px rgba(20,8,90,.28)); pointer-events: none; }
.booked-hero .success-mark { position: absolute; right: -10px; bottom: 6px; width: 50px; height: 50px; margin: 0;
  background: #fff; border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(20,21,42,.35); }

.live-neuro { position: absolute; right: 18px; top: -84px; width: 74px; height: auto; z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(20,8,90,.3)); pointer-events: none; }
@media (max-height: 700px) { .live-neuro { width: 60px; top: -68px; } }
