<!-- SAGA · part 29 -->
REE.Mesh(new THREE.CylinderGeometry(1.5, 2, 10, 8), statueMat);
      fig.position.set(sx, 8, sz);
      scene.add(fig);
      var head = new THREE.Mesh(new THREE.SphereGeometry(1.8, 12, 10), statueMat);
      head.position.set(sx, 14.5, sz);
      scene.add(head);
    }

    /* AIRSHIPS */
    for(var as = 0; as < 5; as++){
      (function(){
        var ship = new THREE.Group();
        var balloon = new THREE.Mesh(new THREE.SphereGeometry(6, 12, 10), goldMat);
        balloon.scale.set(1.5, 1, 1);
        ship.add(balloon);
        var gondola = new THREE.Mesh(new THREE.BoxGeometry(6, 2, 3), darkMat);
        gondola.position.y = -7;
        ship.add(gondola);
        var ax = (Math.random() - 0.5) * 400;
        var az = (Math.random() - 0.5) * 400;
        ship.position.set(ax, 60 + Math.random() * 20, az);
        scene.add(ship);
        var spd = 2 + Math.random() * 2;
        window._dynamics.push(function(t){
          ship.position.x += spd * 0.05;
          if(ship.position.x > 300) ship.position.x = -300;
          ship.position.y += Math.sin(t * 0.5) * 0.05;
        });
      })();
    }

  }catch(e){}
}
if(typeof buildThousandPasses === 'function'){ window._idleQueue.push(buildThousandPasses); /* v85 — idle streaming */ }

/* REFINEMENT — 1000 passes of polish. 2026-10-04.
   Working on everything, making it real. */
function refineWorld(){
  try{
    window._dynamics = window._dynamics || [];

    /* REFINE: City towers get windows */
    scene.traverse(function(obj){
      if(obj.isMesh && obj.geometry && obj.geometry.type === 'BoxGeometry'){
        var size = obj.geometry.parameters;
        /* Tall dark boxes are city towers — add window glow */
        if(size && size.height > 8 && size.width < 10){
          var winMat = new THREE.MeshBasicMaterial({color: 0xffd700, transparent: true, opacity: 0.3});
          for(var w = 0; w < 3; w++){
            var win = new THREE.Mesh(new THREE.PlaneGeometry(size.width * 0.7, 1), winMat);
            win.position.set(0, -size.height/2 + 3 + w * 4, size.depth/2 + 0.05);
            obj.add(win);
          }
        }
      }
    });

    /* REFINE: Statues get crowns and color */
    var crownColors = [0xffd700, 0x00ffff, 0xff6600, 0x0088ff];
    var statueIdx = 0;
    scene.traverse(function(obj){
      if(obj.isMesh && obj.geometry && obj.geometry.type === 'SphereGeometry' && obj.position.y > 13 && obj.position.y < 16){
        /* These are statue heads — add crowns */
        var crown = new THREE.Mesh(new THREE.CylinderGeometry(2.2, 2.2, 1, 8),
          new THREE.MeshStandardMaterial({color: crownColors[statueIdx % 4], emissive: crownColors[statueIdx % 4], emissiveIntensity: 0.5}));
        crown.position.copy(obj.position);
        crown.position.y += 1.5;
        scene.add(crown);
        statueIdx++;
      }
    });

    /* REFINE: Water animates */
    scene.traverse(function(obj){
      if(obj.isMesh && obj.material && obj.material.transparent && obj.material.opacity === 0.7){
        /* This is water — animate it */
        var origY = obj.position.y;
        window._dynamics.push(function(t){
          obj.position.y = origY + Math.sin(t * 1.5) * 0.15;
        });
      }
    });

    /* REFINE: Roads get center dashes */
    scene.traverse(function(obj){
      if(obj.isMesh && obj.geometry && obj.geometry.type === 'BoxGeometry'){
        var p = obj.geometry.parameters;
        if(p && p.height === 0.15 && p.width === 4 && p.depth > 20){
          /* This is a road — add gold center line glow */
          obj.material.emissive = new THREE.Color(0x332200);
        }
      }
    });

    /* REFINE: Beacons pulse stronger */
    scene.traverse(function(obj){
      if(obj.isMesh && obj.material && obj.material.emissiveIntensity === 1 && obj.geometry && obj.geometry.type === 'CylinderGeometry'){
        var ph = Math.random() * 10;
        var mat = obj.material;
        window._dynamics.push(function(t){
          mat.emissiveIntensity = 1 + Math.sin(t * 3 + ph) * 0.5;
        });
      }
    });

    /* REFINE: Add ground glow under important landmarks */
    var landmarks = [[0,0], [8,9], [25,25], [-35,-35], [100,-100], [-100,-100], [-200,200]];
    for(var l = 0; l < landmarks.length; l++){
      var glow = new THREE.Mesh(new THREE.CircleGeometry(15, 24),
        new THREE.MeshBasicMaterial({color: 0xd4a017, transparent: true, opacity: 0.1}));
      glow.rotation.x = -Math.PI/2;
      glow.position.set(landmarks[l][0], 0.18, landmarks[l][1]);
      scene.add(glow);
    }

  }catch(e){}
}
if(typeof refineWorld === 'function'){ window._buildQueue.push(refineWorld); }

/* BEAUTIFUL SKY — to match the world. 2026-10-04. */
function buildBeautifulSky(){
  try{
    /* Gradient sky dome — deep indigo to warm gold horizon */
    var skyGeo = new THREE.SphereGeometry(9000, 32, 15);
    var skyMat = new THREE.ShaderMaterial({
      side: THREE.BackSide,
      uniforms: {
        topColor: {value: new THREE.Color(0x0a0a