.starship-cursor {
  --ship-angle: -45deg;
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-80px, -80px, 0) rotate(var(--ship-angle));
  transform-origin: 50% 50%;
  transition: opacity 220ms ease;
  filter: drop-shadow(0 5px 12px rgba(23, 185, 231, .34));
  will-change: transform;
}

.galaxy-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .52;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 34%, #000 100%);
}

.starship-cursor.is-visible { opacity: .92; }

.ship-shell {
  position: absolute;
  top: 4px;
  left: 13px;
  width: 17px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 58% 58% 30% 30%;
  background: linear-gradient(90deg, #8ca0ad, #f4f8fa 48%, #778c99);
  box-shadow: inset -3px 0 5px rgba(2, 13, 22, .28);
}

.ship-shell::before,
.ship-shell::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 9px;
  height: 12px;
  background: #718795;
}

.ship-shell::before { left: -7px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.ship-shell::after { right: -7px; clip-path: polygon(0 0, 100% 100%, 0 100%); }

.ship-shell i {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #17b9e7;
  box-shadow: 0 0 6px rgba(23, 185, 231, .9);
}

.ship-shell b {
  position: absolute;
  right: 3px;
  bottom: 8px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: rgba(6, 19, 31, .45);
}

.ship-flame {
  position: absolute;
  top: 32px;
  left: 17px;
  width: 9px;
  height: 18px;
  border-radius: 50% 50% 70% 70%;
  background: linear-gradient(#effcff, #17b9e7 34%, rgba(99, 226, 111, .05));
  filter: blur(.2px);
  transform-origin: top;
  animation: ship-thrust 160ms ease-in-out infinite alternate;
}

@keyframes ship-thrust {
  from { transform: scaleY(.72); opacity: .68; }
  to { transform: scaleY(1.08); opacity: 1; }
}

@media (hover: none), (pointer: coarse) {
  .starship-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .starship-cursor { display: none; }
  .galaxy-field { opacity: .3; }
}
