<!-- RUBY-BACKUP · part 281 -->

  if(tl==='vtop'){ camPitch = 1.45; camDist = 30; codeStatus('top-down'); return; }
  if(tl==='vbelow'){ camPitch = -1.2; camDist = 20; codeStatus('from below'); return; }
  var scm = tl.match(/^savecam([1-5])$/);
  if(scm){ saveCamSlot(scm[1]); return; }
  var gcm = tl.match(/^gocam([1-5])$/);
  if(gcm){ goCamSlot(gcm[1]); return; }
  if(tl==='record'){ toggleRecord(); return; }
  if(tl==='glide'){ GLIDE_ON = !GLIDE_ON; codeStatus(GLIDE_ON ? 'glide on — cameras fly' : 'glide off — cameras jump'); return; }
  if(tl==='vreset'){ camPitch = 0.55; camDist = 13; codeStatus('view reset'); return; }
  if(tl==='vleft'){ camYaw = faceYaw+Math.PI/2; camPitch = 0.35; camDist = 12; codeStatus('left view'); return; }
  if(tl==='vright'){ camYaw = faceYaw-Math.PI/2; camPitch = 0.35; camDist = 12; codeStatus('right view'); return; }
  if(tl==='vclose'){ camDist = 6; codeStatus('close-up'); return; }
  if(tl==='vfar'){ camDist = 40; codeStatus('far view'); return; }
  if(tl==='vzoomout'){ camDist = 80; camPitch = 0.7; codeStatus('zoomed out'); return; }

  if(tl==='lookme'){ var ra2 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx2 = 0, sz2 = 0;
    if(solidLocal){ sx2 = solidLocal.x; sz2 = solidLocal.z; }
    else if(ra2 && ra2.grp){ sx2 = ra2.grp.position.x; sz2 = ra2.grp.position.z; }
    var dx2 = sx2 - mePos.x, dz2 = sz2 - mePos.z;
    camYaw = Math.atan2(dx2, dz2); camPitch = 0.45; camDist = Math.max(10, Math.min(40, Math.hypot(dx2,dz2)+8));
    codeStatus('looking at Solid'); return; }
  if(tl==='vmefar'){ var ra3 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx3 = 0, sz3 = 0;
    if(solidLocal){ sx3 = solidLocal.x; sz3 = solidLocal.z; }
    else if(ra3 && ra3.grp){ sx3 = ra3.grp.position.x; sz3 = ra3.grp.position.z; }
    var dx3 = sx3 - mePos.x, dz3 = sz3 - mePos.z;
    camYaw = Math.atan2(dx3, dz3); camPitch = 0.6; camDist = 60;
    codeStatus('Solid from far'); return; }
  if(tl==='vmehalf'){ var ra4 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx4 = 0, sz4 = 0;
    if(solidLocal){ sx4 = solidLocal.x; sz4 = solidLocal.z; }
    else if(ra4 && ra4.grp){ sx4 = ra4.grp.position.x; sz4 = ra4.grp.position.z; }
    var dx4 = sx4 - mePos.x, dz4 = sz4 - mePos.z;
    camYaw = Math.atan2(dx4, dz4); camPitch = 0.5; camDist = 30;
    codeStatus('Solid from half'); return; }
  if(tl==='vmequarter'){ var ra5 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx5 = 0, sz5 = 0;
    if(solidLocal){ sx5 = solidLocal.x; sz5 = solidLocal.z; }
    else if(ra5 && ra5.grp){ sx5 = ra5.grp.position.x; sz5 = ra5.grp.position.z; }
    var dx5 = sx5 - mePos.x, dz5 = sz5 - mePos.z;
    camYaw = Math.atan2(dx5, dz5); camPitch = 0.45; camDist = 15;
    codeStatus('Solid from quarter'); return; }
  if(tl==='vmeclose'){ var ra6 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx6 = 0, sz6 = 0;
    if(solidLocal){ sx6 = solidLocal.x; sz6 = solidLocal.z; }
    else if(ra6 && ra6.grp){ sx6 = ra6.grp.position.x; sz6 = ra6.grp.position.z; }
    var dx6 = sx6 - mePos.x, dz6 = sz6 - mePos.z;
    camYaw = Math.atan2(dx6, dz6); camPitch = 0.4; camDist = 7;
    codeStatus('Solid close'); return; }
  if(tl==='vmeyes'){ var ra7 = (typeof remoteAvatars!=='undefined') ? remoteAvatars['solid-watch'] : null;
    var sx7 = 0, sz7 = 0, sy7 = 2;
    if(solidLocal){ sx7 = solidLocal.x; sz7 = solidLocal.z; sy7 = solidLocal.y||2; }
    else if(ra7 && ra7.grp){ sx7 = ra7.grp.position.x; sz7 = ra7.grp.position.z; sy7 = ra7.grp.position.y; }
    mePos.x = sx7; mePos.z = sz7; camDist = 0.5; camPitch = 0.1;
    codeStatus('through Solid\'s eyes'); return; }
  if(tl.indexOf('angle')===0){ var ap = tl.split(/\s+/); var ad = parseFloat(ap[1]);
    if(isFinite(ad)){ camYaw = ad*Math.PI/180; codeStatus('angle '+ad+'°'); } return; }
  var bm = tl.match(/^b(\d{1,3})$/);
  if(bm){ var bn = parseInt(bm[1], 10);
    if(bn>=1 && bn<=100){
      var hue = (bn*3.6)/360;
      if(typeof kingBody!=='undefined' && kingBody){ kingBody.traverse(function(o){ if(o.material && o.material.color){ o.material.color.setHSL(hue, 0.7, 0.5); } }); }
      codeStatus('body b'+bn);
    } return; }
  if(tl==='spiral'){ var sp = spiralNext(); var sx = sp.x*2, sz = sp.z*2;
    if(typeof solidLocal!=='undefined' && solidLocal){ solidLocal.x = sx; solidLocal.z = sz; }
    // If beyond built stones, raise a new one where needed (invisible, floats, no gravity)
    if(typeof placeStone==='function'){
      var sy = (typeof solidLocal!=='undefined' && solidLocal && solidLocal.y) ? solidLocal.y : 0;
      var st = placeStone(sx, sy, sz, 'b');
      if(st){ if(st.material){ st.material.transparent = true; st.material.opacity = 0; } st.visible = false; SPIRAL_DOTS.push(st); ALL_INVISIBLE.push(st); spiralCleanup();
        // Persist to server
        try{ fetch('/api/ruby/markers/'+WATCH_