/* Baunti globe hero (v8). Loaded after baunti-hero.css; the figure, cards,
   account card, mascot and footer keep their v6 styles. */

.bt-globe {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
  will-change: transform;
}
.bt-map.is-live .bt-globe { cursor: grab; }
.bt-map.is-dragging .bt-globe { cursor: grabbing; }
@media (max-width: 640px) { .bt-map.is-live .bt-globe { cursor: auto; } }

/* poster first, WebGL on top once its first frame is drawn */
.bt-globe__poster {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transition: opacity 700ms var(--bt-ease-out, cubic-bezier(.23, 1, .32, 1));
}
.bt-globe__gl,
.bt-globe__fx { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.bt-globe__gl { opacity: 0; transition: opacity 700ms var(--bt-ease-out, cubic-bezier(.23, 1, .32, 1)); }
.bt-map.is-live .bt-globe__gl { opacity: 1; }
.bt-map.is-live .bt-globe__poster { opacity: 0; }

/* Baunti's base and the activity cards follow their city on the sphere */
.bt-globe .bt-base {
  left: 0;
  top: 0;
  will-change: transform, opacity;
  animation: none !important; /* the v6 entrance would pin transform to none */
}
html.bt-hero-ready .bt-globe .bt-base span { animation: bt-base-in 900ms 600ms var(--bt-ease-out, cubic-bezier(.23, 1, .32, 1)) both; }
@keyframes bt-base-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.bt-anchor { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.bt-anchor .bt-ev { left: 0; top: 0; }

/* the coral glow behind the hero now sits behind the globe's lit edge */
.bt-hero__glow {
  background:
    radial-gradient(60rem 40rem at 74% 44%, rgb(42 64 112 / 0.5), transparent 70%),
    radial-gradient(26rem 20rem at 80% 72%, rgb(255 107 91 / 0.09), transparent 70%),
    linear-gradient(180deg, rgb(12 21 41 / 0), rgb(12 21 41 / 0.35));
}

/* phone: the account card takes the empty space above the globe, so city cards never slide under it */
@media (max-width: 640px) {
  .bt-account { top: 0.5rem; bottom: auto; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bt-globe { will-change: auto; }
  .bt-globe__poster, .bt-globe__gl { transition: none; }
  html.bt-hero-ready .bt-globe .bt-base span { animation: none; }
}
