/* Only the AGE engine artifact. Its parent retains the approved layout. */
.engine-ground-glow {
  position: absolute; bottom: 7px; width: 180px; height: 42px; border-radius: 50%;
  background: radial-gradient(ellipse, #9b82ed55, #ee99e52b 48%, transparent 72%);
}
.concentric-rings {
  position: absolute; bottom: 2px; width: 265px; height: 68px;
  display: grid; place-items: center;
}
.energy-ring {
  position: absolute; width: 205px; height: 58px; border-radius: 50%;
  border: 1px solid #ffffffdb; opacity: .45;
  box-shadow: 0 0 10px #bfa1ef55, inset 0 0 8px #b9d5ff55;
}
.ring-1 { transform: scale(.55); }
.ring-2 { transform: scale(.8); }
.ring-3 { transform: scale(1.06); }
.engine-float {
  position: absolute; top: -1px; width: 146px; height: 140px;
  perspective: 650px; transform-style: preserve-3d;
}
.engine-layer {
  position: absolute; left: 33px; width: 80px; height: 80px;
  transform-style: preserve-3d;
}
.engine-layer--bottom { top: 59px; --surface: linear-gradient(135deg, #5f9dff, #6551df 65%, #9871f2); --edge: #7865df; }
.engine-layer--middle { top: 33px; --surface: linear-gradient(135deg, #ffd3fc, #ed67c9 48%, #b78bfc); --edge: #ca63c2; }
.engine-layer--top { top: 7px; --surface: linear-gradient(135deg, #fff, #fafaff 48%, #dfe7ff); --edge: #cbd5f3; }
.engine-top-aim { position: absolute; inset: 0; transform-style: preserve-3d; }
.engine-slab {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
}
.engine-face {
  position: absolute; inset: 0; border-radius: 16px; transform: translateZ(8px);
  background: var(--surface); border: 1px solid #ffffffd9;
  box-shadow: inset 0 1px 5px #ffffffd9, 0 0 12px #c3a4fd66, 8px 10px 18px #6554ad24;
  display: grid; place-items: center; overflow: hidden;
}
.engine-depth {
  position: absolute; inset: 0; border-radius: 16px;
  transform: translateZ(var(--depth)); background: var(--edge);
  border: 1px solid #ffffff70; box-shadow: 0 1px 2px #6554ad24;
}
.engine-logo { width: 60px; height: 60px; position: relative; z-index: 2; transform: rotateZ(-45deg); }
.engine-charge, .engine-energy-flash {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, #85c8ff55, transparent 35%, #ffb4f478);
  box-shadow: inset 0 0 14px #ffffffb0; opacity: .25;
}
.engine-energy-flash { opacity: 0; background: linear-gradient(135deg, #b4e6ff, #f4c4ff 50%, #ff9cda); }
.engine-native .engine-float { animation: engine-float 4.8s ease-in-out infinite alternate; }
.engine-native .engine-layer { animation: engine-layer-drift 3.6s ease-in-out infinite alternate; }
.engine-native .engine-layer--middle { animation-delay: -.9s; }
.engine-native .engine-layer--top { animation-delay: -1.7s; }
.engine-native .energy-ring { animation: engine-ripple 4.8s ease-out infinite; }
.engine-native .ring-2 { animation-delay: -1.6s; }
.engine-native .ring-3 { animation-delay: -3.2s; }
.engine-native .engine-charge { animation: engine-charge 3s ease-in-out infinite alternate; }
.engine-native .engine-top-aim { transition: transform .5s ease; }
.engine-native[data-module="tl"] .engine-top-aim { transform: rotateX(6deg) rotateY(-7deg); }
.engine-native[data-module="tr"] .engine-top-aim { transform: rotateX(6deg) rotateY(7deg); }
.engine-native[data-module="bl"] .engine-top-aim { transform: rotateX(-6deg) rotateY(-7deg); }
.engine-native[data-module="br"] .engine-top-aim { transform: rotateX(-6deg) rotateY(7deg); }
@keyframes engine-float { to { transform: translateY(-6px); } }
@keyframes engine-layer-drift { to { transform: translateY(-2px); } }
@keyframes engine-ripple { from { transform: scale(.52); opacity: .8; } to { transform: scale(1.25); opacity: 0; } }
@keyframes engine-charge { to { opacity: .65; } }
@media (max-width: 1024px) {
  /* Keep the engine centered when resizing after the desktop entrance tween. */
  .engine-artifact-stage { transform: none !important; }
  .engine-float { top: -21px; }
  .concentric-rings { bottom: -18px; }
}
.engine-native.engine-suspended * { animation-play-state: paused !important; }
