/* البروفيسور — Robot playground layer v3.2
   3D rendered robots travel edge-to-edge BEHIND the content
   (text can never be covered). transform/opacity only,
   pointer-events none, pauses when hidden or when his toggle is on. */

@keyframes enhRunSplash{
  0%{transform:translateX(-40vw)}
  100%{transform:translateX(120vw)}
}
@keyframes enhBotShadow{
  0%,100%{transform:scaleX(1);opacity:.30}
  50%{transform:scaleX(.82);opacity:.22}
}
@keyframes enhPeekUp{
  0%,56%{transform:translateY(118%)}
  63%,85%{transform:translateY(0)}
  92%,100%{transform:translateY(118%)}
}

/* content always above the traveling robots */
html.enh #root{position:relative;z-index:1}
html.enh .enh-content-shell{position:relative;z-index:1}

html.enh #enh-bots{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:layout style}
html.enh #enh-bots-front{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden}
html.enh #enh-bots .bot,html.enh #enh-bots-front .bot{position:absolute;will-change:transform}
html.enh #enh-bots .bot img,html.enh #enh-bots-front .bot img{display:block;filter:drop-shadow(0 10px 12px rgba(8,8,30,.35))}
html.enh #enh-bots .bot .shadow{position:absolute;bottom:-6px;left:12%;right:12%;height:9px;border-radius:50%;background:radial-gradient(closest-side,rgba(8,8,30,.4),transparent);animation:enhBotShadow .6s ease-in-out infinite}

/* Runner + chaser: lower travel lane, JS drives full crossings */
html.enh #enh-bots .bot-run{top:64%;left:0;width:72px}
html.enh #enh-bots .bot-chase{top:66%;left:0;width:52px;opacity:.95}
/* Drone: upper travel lane, JS drives full crossings */
html.enh #enh-bots .bot-fly{top:14%;left:0;width:64px}
html.enh #enh-bots .bot-fly img{filter:drop-shadow(0 6px 14px rgba(8,8,30,.5)) drop-shadow(0 0 16px rgba(150,205,255,.4))}
/* Peeker: bottom corner, front layer (no text lives there), pops up and waves */
html.enh #enh-bots-front .bot-peek{bottom:max(6px, env(safe-area-inset-bottom));inset-inline-start:4px;width:62px;transform:translateY(118%);animation:enhPeekUp 24s ease-in-out infinite;animation-delay:9s;animation-fill-mode:both}

/* Splash cameo */
html.enh .pr-splash .bot-splash{position:absolute;bottom:6vh;left:0;width:74px;animation:enhRunSplash 1.7s linear .1s both;pointer-events:none;background:none;border:none;box-shadow:none;padding:0;margin:0}
html.enh .pr-splash .bot-splash img{display:block;filter:drop-shadow(0 8px 10px rgba(8,8,30,.35));width:auto;height:auto;object-fit:contain;border-radius:0;box-shadow:none;animation:none;background:none}

/* Off state: freeze lanes */
html.enh.enh-bots-off #enh-bots .bot,html.enh.enh-bots-off #enh-bots-front .bot{animation-play-state:paused}
