.hero-orbit-section {
  --globe-lift: clamp(38px, 6svh, 56px);
  padding-block-start: calc(var(--globe-lift) + 6px);
  overflow: clip;
}

.hero-orbit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 4vw, 56px);
  width: min(100%, 824px);
  margin: 0 auto calc(20px - var(--globe-lift));
  pointer-events: none;
  user-select: none;
}

.hero-orbit__globe {
  position: relative;
  isolation: isolate;
  width: clamp(226px, min(36vw, 54svh), 432px);
  translate: 0 calc(-1 * var(--globe-lift, 32px));
  pointer-events: auto;
}

.hero-orbit__planet {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 54% 43%, #3c255361, #26153730 58%, transparent 72%);
  filter: drop-shadow(0 0 14px #9a60ee2b);
  transition: filter 350ms ease;
}

.hero-orbit__card {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  padding: 8px 11px;
  border: 1px solid #c3a6ef36;
  border-radius: 11px;
  background: linear-gradient(125deg, #271e37f5, #16111feb);
  color: #f2e9ff;
  box-shadow: 0 8px 22px #05040bb3, inset 0 1px #f3e6ff0e;
  text-align: left;
  line-height: 1.25;
  rotate: var(--card-angle);
  animation: hero-orbit-card 5.5s ease-in-out infinite;
  transition: border-color 220ms ease, box-shadow 220ms ease, rotate 280ms ease;
}

.hero-orbit__card--strings {
  --card-angle: -7deg;
  left: -15%;
  bottom: 5%;
}

.hero-orbit__card--flow {
  --card-angle: 6deg;
  right: -15%;
  top: 7%;
  animation-delay: -2.6s;
}

.hero-orbit__card svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #cdaeff;
}

.hero-orbit__card strong,
.hero-orbit__card small {
  display: block;
  white-space: nowrap;
}

.hero-orbit__card strong {
  font-size: 12px;
  font-weight: 700;
}

.hero-orbit__card small {
  margin-top: 2px;
  color: #c2adcf;
  font-size: 10px;
}

@media (hover: hover) {
  .hero-orbit__globe:hover .hero-orbit__planet {
    filter: drop-shadow(0 0 20px #a96aff68);
  }

  .hero-orbit__globe:hover .hero-orbit__card {
    border-color: #c3a6ef75;
  }

  .hero-orbit__card:hover {
    rotate: 0deg;
    box-shadow: 0 8px 24px #05040bb3, 0 0 16px #9b62e63d;
  }
}

.hero-orbit__icon {
  display: block;
  width: clamp(48px, 11vw, 120px);
  max-width: 100%;
  height: auto;
}

.hero-orbit__icon--fivem {
  filter: drop-shadow(0 0 20px #2ee45a35);
  animation: hero-orbit-fivem 4s ease-in-out infinite;
}

.hero-orbit__icon--roblox {
  filter: drop-shadow(0 0 20px #b175ff48);
  animation: hero-orbit-roblox 4.5s ease-in-out infinite;
}

@keyframes hero-orbit-fivem {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-9deg); }
}

@keyframes hero-orbit-roblox {
  0%, 100% { transform: translateY(0) rotate(7deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}

@keyframes hero-orbit-card {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.hero-orbit__icon, .hero-orbit__card { animation-play-state: paused; }
.hero-orbit--running :is(.hero-orbit__icon, .hero-orbit__card) { animation-play-state: running; }

@media (min-height: 880px) {
  .hero-orbit-section { padding-block-end: min(5svh, 54px); }
}

@media (min-width: 641px) and (max-height: 790px) {
  .hero-orbit-section h1 { margin-block-end: 14px; }
  .hero-orbit-section h1 + p { max-width: 670px; margin-block-end: 24px; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-orbit-section { padding-block-end: 54px; }
}

@media (max-width: 640px) {
  .hero-orbit-section {
    --globe-lift: 30px;
    padding-block-end: clamp(0px, calc((100svh - 700px) / 4), 40px);
  }
  .hero-orbit { gap: clamp(8px, 2.8vw, 14px); }
  .hero-orbit__globe { width: clamp(176px, 51vw, 226px); }
  .hero-orbit__card { gap: 5px; padding: 5px 7px; border-radius: 8px; }
  .hero-orbit__card--strings { left: -10%; }
  .hero-orbit__card--flow { right: -10%; }
  .hero-orbit__card svg { width: 13px; height: 13px; }
  .hero-orbit__card strong { font-size: 9px; }
  .hero-orbit__card small { font-size: 8px; }
}

@media (max-width: 360px) {
  .hero-orbit__card--strings { left: -4%; }
  .hero-orbit__card--flow { right: -4%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orbit__icon,
  .hero-orbit__card { animation: none; }
  .hero-orbit__planet,
  .hero-orbit__card { transition: none; }
  .hero-orbit__card:hover { rotate: var(--card-angle); }
}
