.yg-cosmos-header {
  --yg-globe-size: clamp(160px, 16vw, 230px);
  --yg-h: clamp(120px, 13vw, 190px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px 16px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 28px 10px;
  box-sizing: border-box;
  background: #fff;
  overflow: visible;
}

.yg-hcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.yg-hcol-main {
  flex: 1 1 320px;
  align-self: stretch;
  justify-content: space-between;
  min-width: 260px;
}

.yg-hcol-stop {
  align-self: flex-end;
}

.yg-hrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

.yg-himg,
.yg-header-stopit {
  width: var(--yg-h);
  height: auto;
  object-fit: contain;
  display: block;
}

.yg-hround {
  width: var(--yg-h);
  height: var(--yg-h);
  object-fit: cover;
  border-radius: 50%;
}

.yg-hbadge {
  width: calc(var(--yg-h) * 1.15);
  height: auto;
  object-fit: contain;
  display: block;
}

.yg-hlord {
  width: calc(var(--yg-h) * 1.35);
  height: auto;
  object-fit: contain;
  display: block;
}

.yg-cosmos-moons {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  overflow: visible;
}

.yg-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.yg-header-stopit {
  width: min(100%, var(--yg-globe-size));
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.yg-cosmos-moon-img {
  width: var(--yg-h);
  height: var(--yg-h);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: none;
  box-shadow: none;
}

/* Right moon ONLY — square frame, full moon, blends into white header */
.yg-cosmos-moon-img.yg-moon-square {
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
  filter: none !important;
  box-shadow: none !important;
}

.yg-cosmos-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 24px);
  min-width: 0;
  width: 100%;
}

.yg-cosmos-center {
  text-align: center;
  min-width: 0;
  padding: 0;
}

.yg-cosmos-center h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.12;
}

.yg-cosmos-sub {
  margin: 6px 0 0;
  color: #444;
  font-size: clamp(13px, 1.6vw, 16px);
}

.yg-cosmos-justice {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(15px, 2.1vw, 22px);
  line-height: 1.25;
  color: #111;
  letter-spacing: 0.01em;
}

.yg-islam-wrap {
  width: var(--yg-h);
  margin: 0;
  flex-shrink: 0;
  text-align: center;
}

.yg-islam-img {
  width: var(--yg-h);
  height: var(--yg-h);
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.yg-islam-cap {
  margin: 6px 0 0;
  font: 600 13px/1.3 system-ui, Helvetica, sans-serif;
  color: #222;
  letter-spacing: 0.02em;
}

.yg-cosmos-earth-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: var(--yg-globe-size);
  max-width: 280px;
  flex-shrink: 0;
}

.yg-header-willed {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 8px;
}

.yg-cosmos-earth-wrap {
  position: relative;
  width: var(--yg-globe-size);
  aspect-ratio: 1;
  flex-shrink: 0;
}

.yg-cosmos-earth-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.yg-earth-stats {
  margin: 8px 0 0;
  padding: 0 4px;
  text-align: center;
  font: 600 12px/1.4 system-ui, Helvetica, sans-serif;
  color: #133;
  letter-spacing: 0.01em;
}

.yg-earth-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 5px 0 0;
  padding: 0;
  font: 11px/1.3 system-ui, Helvetica, sans-serif;
  color: #555;
}

.yg-earth-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.yg-earth-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yg-earth-dot-member { background: #3b82f6; }
.yg-earth-dot-visitor { background: #22c55e; }
.yg-earth-dot-offline { background: #94a3b8; }

.yg-earth-pin {
  cursor: default;
}

.yg-earth-pin-online {
  fill: #22c55e;
}

.yg-earth-pin-offline {
  fill: #94a3b8;
}

.yg-earth-pin-dated {
  fill: #64748b;
}

.yg-earth-pin-x {
  fill: #3b82f6;
}

@media (max-width: 1100px) {
  .yg-cosmos-header {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 10px 12px 8px;
    --yg-globe-size: clamp(120px, 36vw, 200px);
  }

  .yg-cosmos-mid {
    grid-column: 1 / -1;
    order: -1;
    flex-wrap: wrap;
  }

  .yg-cosmos-moons {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 8px;
  }

  .yg-cosmos-earth-col {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(320px, 100%);
  }

  .yg-cosmos-earth-wrap {
    justify-self: center;
  }

  .yg-earth-stats {
    font-size: 11px;
  }

  .yg-auth-box {
    grid-column: 1 / -1;
    width: min(220px, 100%);
    justify-self: center;
  }

  .yg-islam-cap {
    font-size: 10px;
  }
}

.yg-cosmos-header {
  --yg-ball: clamp(168px, 14vw, 230px);
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px 12px;
  width: 100%;
  padding: 10px 12px 8px;
  box-sizing: border-box;
  background: #fff;
}
.yg-hcell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.yg-hcell-mid {
  align-self: stretch;
  justify-content: space-between;
  flex: 1 1 280px;
  min-width: 240px;
}
.yg-hcell-stop { align-self: flex-end; }
.yg-ball,
.yg-stop,
.yg-hcell-earth .yg-cosmos-earth-wrap,
.yg-hcell-moon .yg-ball {
  width: var(--yg-ball);
  height: auto;
  max-width: var(--yg-ball);
  object-fit: contain;
  display: block;
}
.yg-hcell-earth .yg-cosmos-earth-wrap {
  width: var(--yg-ball);
  height: var(--yg-ball);
}
.yg-hbadges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.yg-hbadges img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.yg-lord {
  width: clamp(140px, 12vw, 200px);
  height: auto;
  object-fit: contain;
  display: block;
}
.yg-willed {
  width: var(--yg-ball);
  height: auto;
  display: block;
}
.yg-hrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.yg-earth-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.yg-cosmos-center { text-align: center; }
.yg-cosmos-center h1 { margin: 0; font-size: clamp(18px, 1.6vw, 26px); }

/* v=31 header row — overrides earlier --yg-h sizing */
.yg-cosmos-header {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 14px;
  flex-wrap: nowrap;
  padding: 12px 16px;
  background: #fff;
}
.yg-ball {
  width: clamp(168px, 14vw, 230px) !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}
.yg-hcell-moon .yg-ball,
.yg-stop,
.yg-hcell-earth .yg-cosmos-earth-wrap {
  width: clamp(168px, 14vw, 230px) !important;
}
.yg-hcell-earth .yg-cosmos-earth-wrap {
  aspect-ratio: 1;
  position: relative;
  flex-shrink: 0;
}
.yg-hbadges { display: flex; align-items: center; gap: 6px; }
.yg-hbadges img { height: 52px !important; width: auto !important; object-fit: contain; }
.yg-lord { width: clamp(150px, 12vw, 210px); height: auto; display: block; }
.yg-willed { width: 100%; height: auto; display: block; }
.yg-earth-foot { display: flex; align-items: flex-start; gap: 8px; }
.yg-hcell { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.yg-hcell-stop { align-self: flex-end; }
.yg-hcell-mid { align-self: stretch; justify-content: space-between; }
.yg-earth-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 0;
}
.yg-cosmos-earth-svg { position: relative; z-index: 1; background: transparent; }

.yg-cosmos-header {
  --yg-ball: clamp(168px, 13vw, 220px);
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 8px 10px !important;
  width: 100%;
  padding: 8px 10px 6px;
  background: #fff;
  box-sizing: border-box;
}
.yg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
}
.yg-col-mid {
  align-self: stretch;
  justify-content: space-between;
  flex: 1 1 260px;
  min-width: 220px;
}
.yg-col-stop { align-self: flex-end; }
.yg-ball,
.yg-poof,
.yg-stop,
.yg-cheese,
.yg-islam-img,
.yg-col-earth .yg-cosmos-earth-wrap {
  width: var(--yg-ball) !important;
  max-width: var(--yg-ball) !important;
  height: auto;
  object-fit: contain;
  display: block;
}
.yg-col-earth .yg-cosmos-earth-wrap {
  height: var(--yg-ball) !important;
  position: relative;
}
.yg-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.yg-badge-row img {
  height: 46px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}
.yg-lord {
  width: clamp(130px, 11vw, 190px) !important;
  height: auto;
  object-fit: contain;
  display: block;
}
.yg-quote { width: var(--yg-ball); height: auto; display: block; }
.yg-logo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}
.yg-earth-foot { display: flex; align-items: flex-start; gap: 6px; }
.yg-cosmos-center { text-align: center; }
.yg-cosmos-center h1 { margin: 0; font-size: clamp(16px, 1.5vw, 24px); line-height: 1.15; }
.yg-cosmos-earth-svg { width: 100%; height: 100%; display: block; }


/* v39 spread */
.yg-cosmos-header {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 28px 8px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  overflow: visible !important;
}
.yg-cosmos-header .yg-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  position: static !important;
}
.yg-cosmos-header .yg-col-mid {
  flex: 1 1 auto !important;
  align-self: stretch !important;
  justify-content: space-between !important;
  min-width: 340px !important;
  padding: 0 8px !important;
}
.yg-cosmos-header .yg-col-stop {
  align-self: flex-end !important;
  justify-content: flex-end !important;
}
.yg-cosmos-header .yg-col-earth {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
}
.yg-cosmos-header img.yg-ball,
.yg-cosmos-header img.yg-poof,
.yg-cosmos-header img.yg-stop,
.yg-cosmos-header img.yg-cheese,
.yg-cosmos-header img.yg-islam-img {
  width: 176px !important;
  height: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  max-height: 176px !important;
  object-fit: contain !important;
  display: block !important;
  position: static !important;
}
.yg-cosmos-header img.yg-quote {
  width: 176px !important;
  max-width: 176px !important;
  height: auto !important;
  display: block !important;
}
.yg-cosmos-header .yg-cosmos-earth-wrap {
  width: 176px !important;
  height: 176px !important;
  min-width: 176px !important;
  max-width: 176px !important;
  position: relative !important;
  flex: 0 0 176px !important;
}
.yg-cosmos-header .yg-badge-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 176px !important;
}
.yg-cosmos-header .yg-badge-row img {
  height: 44px !important;
  width: auto !important;
  max-width: 70px !important;
  max-height: 44px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  display: block !important;
}
.yg-cosmos-header img.yg-lord {
  width: 168px !important;
  height: auto !important;
  max-width: 168px !important;
  max-height: 160px !important;
  object-fit: contain !important;
  display: block !important;
}
.yg-cosmos-header .yg-logo-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 12px !important;
}
.yg-cosmos-header .yg-earth-foot {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
}
.yg-cosmos-header .yg-cosmos-center {
  text-align: center !important;
  width: 100% !important;
}
.yg-cosmos-header .yg-cosmos-center h1 {
  margin: 0 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
.yg-cosmos-header .yg-cosmos-sub,
.yg-cosmos-header .yg-cosmos-justice {
  margin: 2px 0 !important;
  white-space: nowrap !important;
}
.yg-earth-gif {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  z-index: 0 !important;
}
.yg-cosmos-earth-svg {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}
