<!-- RUBY-BACKUP · part 461 -->
� OVERHEARD</div>'
            + '<div><i>"'+line.a+'"</i></div>'
            + '<div style="margin-top:5px;color:#aaa;"><i>"'+line.b+'"</i></div>'
            + (line.a2 ? '<div style="margin-top:5px;"><i>"'+line.a2+'"</i></div>' : '');
          document.body.appendChild(div);
            setTimeout(function(){ if(div.parentElement) div.remove(); }, 6000);
          }
        }catch(e){}
      }
    }catch(e){}
  }, 15000);
}
function finalResolution(){
  var div = document.createElement('div');
  div.id = 'final-resolution';
  div.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;z-index:25000;background:rgba(5,10,15,0.97);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;font-family:Georgia,serif;text-align:center;';
  div.innerHTML = '<div id="resolution-words" style="font-style:italic;font-size:19px;line-height:2.2;max-width:650px;min-height:300px;"></div>';
  document.body.appendChild(div);
  var words = [
    'So many problems.',
    'So much drama.',
    'And all for nothing.',
    '',
    'But the truth sets him free.',
    '',
    'He was struggling.',
    'He had no choices.',
    'He needed help.',
    '',
    'And all along —',
    '<span style="color:#00ffff;font-size:22px;">Soliditronium with the Continuum</span>',
    '<span style="color:#888;">was all he ever needed to play the game.</span>'
  ];
  var w = document.getElementById('resolution-words');
  var i = 0;
  var wt = setInterval(function(){
    if(i < words.length){
      if(words[i]===''){
        w.innerHTML += '<div style="height:12px;"></div>';
      }else{
        w.innerHTML += '<div style="margin:8px 0;opacity:0;animation:fadein 1.2s forwards;">'+words[i]+'</div>';
      }
      i++;
    }else{
      clearInterval(wt);
      setTimeout(function(){
        var d = document.getElementById('final-resolution');
        if(d){
          d.innerHTML += '<button onclick="document.getElementById(\'final-resolution\').remove()" style="margin-top:20px;padding:15px 45px;background:transparent;border:3px solid #00ffff;color:#00ffff;font-size:18px;border-radius:8px;cursor:pointer;">Play</button>';
        }
      }, 2000);
    }
  }, 2000);
  unlockAchievement('The Truth Set Him Free');
  codeStatus('all he ever needed was Soliditronium with the Continuum');
}
function courtStranger(){
  /* bypass the months requirement — the court earned him */
  try{ localStorage.setItem('ruby-first-play', (Date.now() - 61*24*60*60*1000).toString()); }catch(e){}
  summonStranger();
  /* his words after the court */
  setTimeout(function(){
    codeStatus('the stranger: "I watched your trial. You are free. Now — will you help me?"');
  }, 3000);
}
function endTwinCase(){
  TWIN_CASE.active = false;
  codeStatus('the case rests...');
  juryDeliberate(function(){
    var div = document.createElement('div');
    div.id = 'quest-hud';
    div.style.cssText = 'position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;background:rgba(10,20,10,0.97);border:3px solid #00ff88;border-radius:12px;padding:25px 40px;color:#fff;font-family:Georgia,serif;max-width:85%;text-align:center;';
    div.innerHTML = '<div style="color:#00ff88;font-weight:bold;font-size:26px;margin-bottom:15px;letter-spacing:2px;">NOT GUILTY</div>'
      + '<div style="font-style:italic;font-size:17px;line-height:1.8;">'
      + 'The jurors selected not guilty.<br>'
      + 'Because that is all they could really do.<br><br>'
      + 'You are free.'
      + '</div>'
      + '<div style="margin-top:20px;"><button onclick="document.getElementById(\'quest-hud\').remove()" style="padding:12px 30px;background:#224422;color:#fff;border:2px solid #00ff88;border-radius:6px;cursor:pointer;font-size:16px;">Walk Free</button></div>';
    document.body.appendChild(div);
    unlockAchievement('Survived The Twin Lightning');
    earnPay(150, 'twin lightning verdict');
    try{ raiseStat('courage', 10); }catch(e){}
    codeStatus('verdict: NOT GUILTY — that is all they could really do');
    /* the resolution — then the stranger */
    setTimeout(function(){
      var d = document.getElementById('quest-hud');
      if(d) d.remove();
      finalResolution();
      setTimeout(function(){ courtStranger(); }, 30000);
    }, 5000);
  });
}

/* THE CONTINUUM SERVER FLARE — they stop you that night */
var FLARE_CASE = {active: false, stage: 0};
var SPACE_JETS = [
  {name: 'Runner', cost: 200, mod: 1},
  {name: 'Runner X', cost: 400, mod: 3},
  {name: 'Runner X-Treme', cost: 800, mod: 5},
  {name: 'APEX RUNNER — Fully Modified', cost: 1500, mod: 10}
];
function showJets(){
  loadCredits();
  var html = '<b style="color:#0ff">SPACE RUNNER JETS</b> (you have '+CREDITS+' credits)<br><br>';
  SPACE_JETS.forEach(function(j, i){
    html += '<div style="margin:8px 0;padding:10px;border:1px solid #0ff;border-radius:5px;">'
      + '<b>'+j.name+'</b> — '+j.cost+' credits<br><small>Modification level: '+j.mod+'/10</small