/* Minimal subset of globe-landing styling needed for background/starfield + globe framing. */

:root {
  --space: #0a0e1a;
  --globe-min: 240px;
  --globe-max: 640px;
  --globe-pref: 52vmin;
  --stars-density: 1;
  --stars-brightness: 1;
  --stars-layer-near: none;
  --stars-layer-far: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--space);
  background-image: radial-gradient(ellipse 140% 90% at 50% 120%, #1a2744 0%, var(--space) 62%);
  filter: brightness(var(--stars-brightness));
  position: relative;
  color: #e8eef8;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
}

/* Random stars (generated in JS as data-URL layers) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--stars-layer-far);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  animation: star-twinkle 7.2s ease-in-out infinite alternate;
  z-index: 0;
}

.stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--stars-layer-near);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  animation: star-twinkle 4.8s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

.stage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

.globe {
  width: clamp(var(--globe-min), var(--globe-pref), var(--globe-max));
  height: clamp(var(--globe-min), var(--globe-pref), var(--globe-max));
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 48px rgba(60, 140, 220, 0.35),
    0 0 0 1px rgba(120, 180, 255, 0.25),
    inset -10% 0 22% rgba(0, 0, 0, 0.35),
    inset 6% -4% 16% rgba(255, 255, 255, 0.12),
    0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}

.globe canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@keyframes star-twinkle {
  from {
    opacity: 0.62;
  }
  to {
    opacity: 1;
  }
}

