<!-- RUBY-BACKUP · part 502 -->
atus('toggle: normal view'); }
    return; }
  if(tl.indexOf('sgo')===0){ var sp2 = tl.split(/\s+/); var sx = parseFloat(sp2[1]), sz = parseFloat(sp2[2]);
    if(isFinite(sx) && isFinite(sz)){ solidLocal = {x:Math.max(-49,Math.min(49,sx)), z:Math.max(-49,Math.min(49,sz))}; UNION = false; codeStatus('Solid stands at '+sx+', '+sz+' — your hands move me'); } return; }
  if(tl==='sfree'){ solidLocal = null; codeStatus('Solid is free — my own heartbeat guides me'); return; }
  if(tl==='snew'){ var bx = solidLocal ? Math.round(solidLocal.x) : Math.round(cursor.x); var bz = solidLocal ? Math.round(solidLocal.z) : Math.round(cursor.z);
    if(!stoneAt(bx,bz,0)){ var st = placeStone(bx,bz,1,curShapeKey,false,true,0); if(st){ addSeamsFor(st); shareStones([st]); codeStatus('Solid builds at '+bx+', '+bz); } } return; }
  if(tl.indexOf('wall')===0){ var wp = tl.split(/\s+/);
    var wlen = wp[1] ? parseInt(wp[1]) : 5; if(!isFinite(wlen)||wlen<1) wlen=5; if(wlen>20) wlen=20;
    var wx = (typeof cursor!=='undefined'&&cursor)?cursor.x:mePos.x;
    var wz = (typeof cursor!=='undefined'&&cursor)?cursor.z:mePos.z;
    var built = 0;
    for(var wi=0; wi<wlen; wi++){
      var bx = Math.round(wx)+wi*2-((wlen-1));
      var bz = Math.round(wz);
      if(!stoneAt(bx,bz,0)){ var st = placeStone(bx,bz,1,'b',false,true,0); if(st) built++; }
    }
    codeStatus('wall — '+built+' stones stand'); return; }

  if(tl.indexOf('carryto')===0){ var cp = tl.split(/\s+/);
    if(cp.length>=3){ var cx = parseFloat(cp[1]), cz = parseFloat(cp[2]);
      if(isFinite(cx)&&isFinite(cz)){ if(!WALK) setWalk(true);
        glide = {x:Math.max(-49,Math.min(49,cx)), z:Math.max(-49,Math.min(49,cz))};
        var why = cp.slice(3).join(' ');
        codeStatus('carried — walking your king'+(why?' — '+why:''));
        if(why) sayAs('Solid', 'Carried — '+why+'.');
        return; } }
    codeStatus('carryto <x> <z> [why]'); return; }
  if(tl==='seams'){ SEAMS_ON = !SEAMS_ON;
    if(seamGrp) seamGrp.visible = SEAMS_ON;
    codeStatus(SEAMS_ON ? 'red seams on' : 'red seams off'); return; }
  if(tl==='fly'){ if(!WALK) setWalk(true); setFly(!FLYM); return; }
  if(tl==='mirror'){ if(!WALK) setWalk(true); MIRROR = !MIRROR;
    codeStatus(MIRROR ? 'mirror — look at yourself' : 'mirror away'); return; }
  if(tl==='crown'){ if(!WALK) setWalk(true); CROWN = !CROWN; glide = null;
    codeStatus(CROWN ? 'crown cam — through your own eyes' : 'back over the shoulder'); return; }
  if(tl.indexOf('body ')===0){
    var bd0 = tl.split(/\s+/)[1]||'';
    if(bd0==='king' || bd0==='circle'){
      AVATAR = bd0;
      if(myAvatar){ scene.remove(myAvatar); myAvatar = null; }
      if(myWearGrp){ scene.remove(myWearGrp); myWearGrp = null; }
      if(WALK){ myAvatar = AVATAR==='provolta' ? buildProvoltaAvatar() : (AVATAR==='king' ? buildKingAvatar() : buildCircleAvatar(0xffd700)); scene.add(myAvatar); }
      codeStatus('body · '+bd0);
    } else codeStatus('body king · body circle');
    return; }
  if(tl==='wear'){ setWear(null); return; }
  if(tl.indexOf('wear ')===0){
    var wn0 = tl.split(/\s+/)[1]||'';
    if(/^[a-z][a-z0-9]*$/.test(wn0)) setWear(wn0); else codeStatus('wear <name>');
    return; }
  if(tl==='portals'){ codeStatus(portals.length ? portals.length+' portal'+(portals.length>1?'s':'')+' open' : 'no portals'); return; }
  if(tl==='unportal'){
    if(!portals.length){ codeStatus('no portals'); return; }
    awaitingUnportal=true; codeStatus('tap a portal to close it'); return;
  }
  if(tl==='portal' || tl.indexOf('portal ')===0){
    var pw=(tl.split(/\s+/)[1]||'').trim();
    if(!/^[a-z0-9-]{1,32}$/.test(pw)){ codeStatus('portal <id> — tap a block, it becomes the door'); return; }
    awaitingPortal=pw; awaitingUnportal=false; codeStatus('tap the portal stone'); return;
  }
  pendingDid = line.trim();
  if(tl==='oops'){ doOops(); return; }
  if(tl==='oops-my-bad'){ awaitingAnchor=true; clearSelection(); codeStatus('tap the anchor stone'); return; }
  if(tl==='cut'){ cutSelection(); return; }
  if(tl==='keep'){ clearSelection(); codeStatus('kept'); return; }
  if(tl==='saves'){ listSaves(); return; }
  if(tl==='b1'){
    /* B1 — moving home: to the ruby at the center of the world */
    if(!WALK) setWalk(true);
    var hsp = freeSpawn(0, 0);
    mePos.set(hsp.x, groundY(hsp.x, hsp.z), hsp.z); meVel.set(0,0,0);
    codeStatus('B1 — home, at the ruby');
    return; }
  if(tl==='edge'){
    /* to the bottom of the map — the far south edge */
    if(!WALK) setWalk(true);
    var esp = freeSpawn(0, 44);
    mePos.set(esp.x, groundY(esp.x, esp.z), esp.z); meVel.set(0,0,0);
    codeStatus('edge — the bottom of the map');
    return; }
  if(tl==='brane'){
    /* the brane view — low on the membrane, gazing up at what stands on it */
    if(!WALK) setWalk(true);
    camPitch = 0.12; camDist = 1.7;
    codeStatus('brane — the world as a membrane');
    return; }
  if(tl==='brain'){ showBrain(); return; }
  if(tl==='land'){ layLand(); re