.yg-cosmos-header {
  --yg-globe-size: clamp(200px, 28vw, 336px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 28px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 28px 10px;
  box-sizing: border-box;
}

.yg-cosmos-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.yg-cosmos-moon-img {
  width: var(--yg-globe-size);
  height: var(--yg-globe-size);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

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

.yg-cosmos-center h1 {
  margin: 0;
  font-family: didot-w01-italic, georgia, 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-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-cosmos-online {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #133;
  z-index: 2;
}

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

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

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

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

@media (max-width: 720px) {
  .yg-cosmos-header {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 10px 12px 8px;
  }

  .yg-cosmos-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .yg-cosmos-header {
    --yg-globe-size: clamp(120px, 36vw, 200px);
  }

  .yg-cosmos-moons {
    gap: 8px;
  }
}
