/* r12: centered cards and fixed-center spherical worlds. */
.crew-carousel{padding-inline:var(--crew-side-space,3px);scroll-padding-inline:0}
/* The circle no longer rocks or travels: only projected surface longitude moves. */
body.performance-lite .crew-card.in-view .planet-original,
body.performance-lite .character-info-avatar .planet-original{animation:none!important;transform:none!important}
.crew-card>.crew-orbit-art{left:5%;right:auto;top:18px;width:90%;height:auto;aspect-ratio:1;transform:none;overflow:visible;border-radius:0;isolation:isolate;background:none}
.character-info-avatar>.crew-orbit-art{left:8%;right:auto;top:0;width:84%;height:auto;aspect-ratio:1;transform:none;overflow:visible;border-radius:0;isolation:isolate;background:none}
.crew-orbit-art .planet-original{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border-radius:0;transform:none!important;animation:none!important;filter:none;opacity:1!important;z-index:0}
.crew-orbit-art .planet-orbit-line{display:none}
.crew-orbit-art .planet-sun{display:none}
.crew-orbit-art .binary-light{position:absolute;z-index:2;border-radius:50%;pointer-events:none;aspect-ratio:1;animation:none;transform:none}
.crew-orbit-art .binary-light.warm{width:13%;left:0;top:0;background:radial-gradient(circle,#fffef4 0 12%,#fff7bc 25%,#f4bf4e 38%,#efa94870 50%,#efa94800 72%)}
.crew-orbit-art .binary-light.white{width:8%;left:18%;top:-2%;background:radial-gradient(circle,#fff 0 19%,#dfedff 31%,#a9cdfb77 47%,#a9cdfb00 72%)}
@media(max-width:600px){.crew-card>.crew-orbit-art{top:18px}.character-info-avatar>.crew-orbit-art{left:7%;width:86%;top:0}}
/* viewport-fit also keeps the home masthead inside notches without shifting its center. */
:root{--header-height:calc(140px + env(safe-area-inset-top,0px))}
body>.site-header{padding-top:calc(8px + env(safe-area-inset-top,0px));padding-left:max(5vw,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));padding-right:max(5vw,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
/* Load after all older crew/motion CSS. No image is hidden by this enhancement. */
body .crew-card .crew-orbit-art,
body .character-info-avatar .crew-orbit-art,
body .crew-card .crew-planet,
body .character-info-avatar .crew-planet {
  animation: none !important;
  transform: none !important;
  aspect-ratio: 1;
  overflow: visible;
}

/* Old r9 rules have !important: match their specificity and explicitly stop rocking. */
body.performance-lite .crew-card.in-view .planet-original,
body.performance-lite .character-info-avatar .planet-original,
body .crew-card .crew-orbit-art > .planet-original,
body .character-info-avatar .crew-orbit-art > .planet-original,
body .crew-card .crew-planet > .planet-original,
body .character-info-avatar .crew-planet > .planet-original {
  animation: none !important;
  transform: none !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none;
}

/* The host's existing position, width, top and left remain the placement contract. */
.wn-globe-target { isolation: isolate; }
.wn-globe-canvas {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  animation: none !important;
  transform: none !important;
  filter: none;
}
.wn-globe-canvas[hidden] { display: none !important; }

/* Small fixed glow only. Solaryn's two stars belong outside this sphere. */
.wn-globe-target > .wn-globe-canvas {
  box-shadow: 0 0 7px 1px rgb(112 180 227 / 9%);
}

/* Generic opt-in host, for integrations that do not use the existing crew wrappers. */
.wn-globe-host { position: relative; display: block; aspect-ratio: 1; }
.wn-globe-host > .planet-original {
  display: block; width: 100%; height: 100%; object-fit: contain;
  opacity: 1 !important; visibility: visible !important;
  animation: none !important; transform: none !important;
}
/* Full circles also fit short portrait dossier panels. */
.character-info-avatar{--globe-limit:336px}
.character-info-avatar>.crew-orbit-art{left:0;right:0;top:12px;width:min(86%,var(--globe-limit));margin-inline:auto;height:auto;aspect-ratio:1;transform:none!important}
@media(max-width:600px){.character-info-avatar{--globe-limit:281px}}
@media(max-width:360px){.character-info-avatar{--globe-limit:243px}}
body.performance-lite .crew-card .crew-orbit-art>.planet-original.asset-failed,
body.performance-lite .character-info-avatar .crew-orbit-art>.planet-original.asset-failed{visibility:hidden!important;opacity:0!important}
