.ae-globe-host {
  min-height: 100%;
}

.ae-globe-section,
.ae-globe-section * {
  box-sizing: border-box;
}

.ae-globe-section {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  color: #d2d6d8;
  background: #050505;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  isolation: isolate;
}

.ae-globe-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(0, 119, 151, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 119, 151, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
}

.ae-globe-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, #ffffff 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, #ffffff 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, #ffffff 0 1px, transparent 1px);
  background-size: 31px 37px, 43px 41px, 53px 59px;
}

.ae-globe-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.42) 58%, #050505 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.15), #050505);
}

.ae-globe-halo {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ae-globe-halo-outer {
  width: 34.375rem;
  height: 34.375rem;
  opacity: 0.5;
  background: #050f14;
}

.ae-globe-halo-inner {
  width: 31.25rem;
  height: 31.25rem;
  opacity: 0.6;
  filter: blur(10px);
  background: #081215;
}

.ae-globe-halo-core {
  width: 25rem;
  height: 25rem;
  opacity: 0.4;
  filter: blur(50px);
  background: #0a1518;
}

.ae-globe-stage {
  position: relative;
  z-index: 3;
  width: min(100%, 42rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ae-globe-container {
  position: relative;
  z-index: 2;
  width: 18rem;
  height: 18rem;
  flex: 0 0 auto;
}

.ae-globe-canvas-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.85;
  filter: blur(44px);
  background: linear-gradient(90deg, rgba(0, 119, 151, 0.3), rgba(0, 89, 112, 0.3));
}

.ae-globe-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(0, 119, 151, 0.5);
  border-radius: 50%;
  transform: rotate(var(--ae-globe-roll, 0rad));
  transform-origin: 50% 50%;
  transition: border-color 220ms ease, opacity 220ms ease;
  will-change: transform;
}

.ae-globe-section[data-ae-state="loaded"] .ae-globe-canvas {
  border-color: transparent;
}

.ae-globe-section[data-ae-state="fallback"] .ae-globe-canvas {
  opacity: 0;
}

.ae-globe-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  transition: opacity 220ms ease;
}

.ae-globe-status-copy {
  max-width: 13rem;
  color: #007797;
  font-size: 0.75rem;
  line-height: 1.45;
}

.ae-globe-status-copy p {
  margin: 0;
}

.ae-globe-status-copy p + p {
  margin-top: 0.35rem;
  color: #ffb070;
}

.ae-globe-section[data-ae-state="loading"] .ae-globe-status-copy {
  animation: ae-globe-pulse 1.4s ease-in-out infinite;
}

.ae-globe-section[data-ae-state="loaded"] .ae-globe-status {
  opacity: 0;
  pointer-events: none;
}

.ae-globe-static {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ae-globe-section[data-ae-state="fallback"] .ae-globe-static {
  opacity: 0.75;
}

.ae-globe-static-sphere {
  position: relative;
  width: 9rem;
  height: 9rem;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #007797, #003244);
  box-shadow:
    0 0 28px rgba(0, 119, 151, 0.35),
    inset -20px -16px 36px rgba(0, 0, 0, 0.35);
}

.ae-globe-static-line,
.ae-globe-static-dot {
  position: absolute;
  display: block;
}

.ae-globe-static-line {
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.ae-globe-static-line-a {
  top: 38%;
}

.ae-globe-static-line-b {
  top: 50%;
}

.ae-globe-static-line-c {
  top: 62%;
}

.ae-globe-static-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #f7fbfb;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

.ae-globe-static-dot-a {
  top: 28%;
  left: 58%;
}

.ae-globe-static-dot-b {
  top: 52%;
  left: 35%;
}

.ae-globe-static-dot-c {
  top: 66%;
  left: 62%;
}

.ae-globe-solar-storm {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ae-globe-section[data-ae-state="loaded"][data-ae-solar-storm="on"][data-ae-phase="normal"] .ae-globe-solar-storm {
  opacity: 1;
}

.ae-globe-solar-impact-run {
  opacity: 1;
}

.ae-globe-solar-source,
.ae-globe-solar-beam,
.ae-globe-solar-source-pulse,
.ae-globe-solar-impact {
  position: absolute;
  display: block;
  pointer-events: none;
}

.ae-globe-solar-source {
  top: var(--ae-solar-source-y, 0);
  left: var(--ae-solar-source-x, 0);
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 243, 182, 0.72) 0 3%, rgba(255, 172, 67, 0.25) 15%, rgba(255, 121, 24, 0.12) 34%, rgba(255, 126, 0, 0.05) 49%, transparent 64%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}

.ae-globe-solar-storm-run .ae-globe-solar-source {
  animation: ae-solar-source var(--ae-solar-impact-duration, 6500ms) ease-in-out forwards;
}

.ae-globe-solar-beam {
  top: var(--ae-solar-source-y, 0);
  left: var(--ae-solar-source-x, 0);
  width: var(--ae-solar-beam-length, 42rem);
  height: var(--ae-solar-beam-width, 9rem);
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 155, 39, 0.25), rgba(255, 185, 82, 0.14), rgba(255, 126, 0, 0.03), transparent);
  clip-path: polygon(0 38%, 100% 48%, 100% 58%, 0 62%);
  filter: blur(4px);
  transform: rotate(var(--ae-solar-beam-angle, 0.6rad)) translateY(-50%);
  transform-origin: left center;
}

.ae-globe-solar-storm-run .ae-globe-solar-beam {
  animation: ae-solar-beam var(--ae-solar-impact-duration, 6500ms) ease-out forwards;
}

.ae-globe-solar-source-pulse {
  top: var(--ae-solar-source-y, 0);
  left: var(--ae-solar-source-x, 0);
  width: var(--ae-solar-source-pulse-size, 50rem);
  height: var(--ae-solar-source-pulse-size, 50rem);
  border: 2px solid rgba(255, 198, 111, 0.44);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.8px);
  transform: translate(-50%, -50%) scale(0.02);
  box-shadow:
    0 0 12px rgba(255, 126, 0, 0.18),
    inset 0 0 12px rgba(255, 126, 0, 0.08);
}

.ae-globe-solar-storm-run .ae-globe-solar-source-pulse {
  animation: ae-solar-source-pulse var(--ae-solar-impact-duration, 6500ms) cubic-bezier(0.16, 0.75, 0.18, 1) forwards;
}

.ae-globe-solar-impact {
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1px rgba(255, 172, 74, 0),
    0 0 0 rgba(255, 126, 0, 0);
}

.ae-globe-solar-impact.ae-globe-solar-impact-run {
  animation: ae-solar-impact 1.8s ease-out forwards;
}

.ae-globe-uap {
  position: absolute;
  top: 0.5rem;
  left: 0.25rem;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
}

.ae-globe-uap-run {
  animation: ae-uap-fade-in-out var(--ae-alternate-phase-duration, 10500ms) ease-out forwards;
}

.ae-globe-uap-body {
  position: relative;
  width: 0.875rem;
  height: 0.1875rem;
  overflow: visible;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 119, 151, 0.7), rgba(0, 168, 204, 0.7));
  box-shadow: 0 0 5px rgba(0, 119, 151, 0.4);
}

.ae-globe-uap-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(0, 119, 151, 0.7), transparent);
}

.ae-globe-uap-dome,
.ae-globe-uap-glow,
.ae-globe-uap-beam {
  position: absolute;
  display: block;
  left: 50%;
  transform: translateX(-50%);
}

.ae-globe-uap-dome {
  top: 0;
  width: 0.25rem;
  height: 1px;
  border-radius: 999px;
  background: rgba(0, 119, 151, 0.6);
  transform: translate(-50%, -25%);
}

.ae-globe-uap-glow {
  inset: 0;
  border-radius: inherit;
  filter: blur(1px);
  background: rgba(0, 119, 151, 0.3);
}

.ae-globe-uap-beam {
  top: 90%;
  width: 0;
  height: 0;
  border-left: 1.5px solid transparent;
  border-right: 1.5px solid transparent;
  border-bottom: 3px solid rgba(0, 119, 151, 0.1);
  filter: blur(0.5px);
}

.ae-globe-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 31.25rem);
  margin-top: 1.5rem;
  text-align: center;
}

.ae-globe-title-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.625rem 3.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.56);
  backdrop-filter: blur(12px);
}

.ae-globe-title {
  margin: 0;
  color: #a7adb2;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ae-globe-title-accent {
  color: #007797;
}

.ae-globe-title-muted {
  color: #a7adb2;
}

.ae-globe-definition {
  max-width: 31.25rem;
  margin: 0 auto;
  color: #a7adb2;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.ae-globe-definition p {
  margin: 0;
}

.ae-globe-lexicon {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #a7adb2;
  line-height: 1.4;
}

.ae-globe-pronunciation {
  font-style: italic;
}

.ae-globe-part {
  font-weight: 600;
}

@keyframes ae-globe-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ae-solar-source {
  0% {
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0;
  }

  12% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  56% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }

  78% {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 0.82;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
}

@keyframes ae-solar-beam {
  0% {
    transform: rotate(var(--ae-solar-beam-angle, 0.6rad)) translateY(-50%) scaleX(0.15);
    opacity: 0;
  }

  22% {
    opacity: 0.14;
  }

  68% {
    transform: rotate(var(--ae-solar-beam-angle, 0.6rad)) translateY(-50%) scaleX(1);
    opacity: 0.44;
  }

  100% {
    transform: rotate(var(--ae-solar-beam-angle, 0.6rad)) translateY(-50%) scaleX(1);
    opacity: 0;
  }
}

@keyframes ae-solar-source-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.03);
    opacity: 0;
  }

  16% {
    opacity: 0.45;
  }

  72% {
    opacity: 0.33;
  }

  96% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.08;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0;
  }
}

@keyframes ae-solar-impact {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.42);
    box-shadow:
      0 0 0 1px rgba(255, 230, 160, 0.68),
      0 0 18px rgba(255, 126, 0, 0.65),
      inset 0 0 20px rgba(255, 126, 0, 0.12);
  }

  42% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.86);
    box-shadow:
      0 0 0 2px rgba(255, 172, 74, 0.48),
      0 0 32px rgba(255, 126, 0, 0.45),
      inset 0 0 28px rgba(255, 178, 92, 0.16);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
    box-shadow:
      0 0 0 12px rgba(255, 172, 74, 0),
      0 0 50px rgba(255, 126, 0, 0),
      inset 0 0 32px rgba(255, 178, 92, 0);
  }
}

@keyframes ae-uap-fade-in-out {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 0.8;
  }

  75% {
    opacity: 0.8;
  }

  95%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .ae-globe-section {
    min-height: 94svh;
    padding: 2rem 1rem;
  }

  .ae-globe-halo-outer {
    width: 25rem;
    height: 25rem;
  }

  .ae-globe-halo-inner {
    width: 22rem;
    height: 22rem;
  }

  .ae-globe-halo-core {
    width: 18rem;
    height: 18rem;
  }

  .ae-globe-container {
    width: 16rem;
    height: 16rem;
  }

  .ae-globe-title-shell {
    width: min(100%, 22rem);
    padding: 0.625rem 1.5rem;
  }

  .ae-globe-title {
    font-size: 1.25rem;
  }

  .ae-globe-definition {
    font-size: 0.95rem;
  }

  .ae-globe-lexicon {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .ae-globe-container {
    width: 14rem;
    height: 14rem;
  }

  .ae-globe-title-shell {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-globe-section *,
  .ae-globe-section *::before,
  .ae-globe-section *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .ae-globe-solar-storm,
  .ae-globe-uap {
    display: none;
  }
}
