<!-- RUBY-BACKUP · part 464 -->
;color:#ffd700;font-weight:bold;margin-bottom:15px;letter-spacing:2px;">NOT GUILTY</div>'
    + '<div style="font-size:18px;font-style:italic;line-height:1.8;max-width:600px;">'
    + 'The militant court steps back.<br>'
    + 'The news goes silent, then erupts.<br>'
    + 'The Continuum stands down.<br><br>'
    + 'You were never guilty.<br>'
    + 'This is your time to shine.'
    + '</div>'
    + '<button onclick="this.parentElement.remove()" style="margin-top:30px;padding:15px 40px;background:transparent;border:3px solid #ffd700;color:#ffd700;font-size:18px;border-radius:8px;cursor:pointer;">Shine</button>';
  document.body.appendChild(div);
  unlockAchievement('Survived the Server Flare');
  earnPay(200, 'flare case cleared');
  grantFlareEndorsements();
  codeStatus('NOT GUILTY — your time to shine');
  setTimeout(function(){ courtStranger(); }, 6000);
};
function startFlareCase(){
  FLARE_CASE.active = true;
  FLARE_CASE.stage = 0;
  showFlareStage();
}
function showFlareStage(){
  var stages = [
    {
      text: 'You walk to the spaceport that night to pick up your Apex Runner. Two officers step from the shadows.',
      officer: 'HALT. Where were you on the night of the continuum server flare?'
    },
    {
      text: 'You answer. They shake their heads.',
      officer: 'No matter what you say — that is a lie. You are wrong. Nothing you say can convince us otherwise.'
    },
    {
      text: 'One officer holds up a picture. It is you. Your hands are on the server core. You DID have it at that time.',
      officer: 'Explain this. You cannot. The picture does not lie.'
    },
    {
      text: 'They grill you hard. Hours pass. The questions circle.',
      officer: 'You wanted the most modified jet. You needed the server core to power it. Admit it.'
    },
    {
      text: 'But you remember — the flare was an accident. You touched the core trying to STOP it, not cause it.',
      officer: '...',
      final: true
    }
  ];
  var s = stages[FLARE_CASE.stage];
  if(!s){
    endFlareCase();
    return;
  }
  var div = document.createElement('div');
  var existing = document.getElementById('quest-hud');
  if(existing) existing.remove();
  div.id = 'quest-hud';
  div.style.cssText = 'position:fixed;top:15%;left:50%;transform:translateX(-50%);z-index:9999;background:rgba(15,5,25,0.97);border:3px solid #ff3333;border-radius:12px;padding:20px 30px;color:#fff;font-family:Georgia,serif;max-width:85%;text-align:center;';
  div.innerHTML = '<div style="color:#ff6666;font-weight:bold;font-size:20px;margin-bottom:12px;">🌐 THE CONTINUUM SERVER FLARE</div>'
    + '<div style="font-size:14px;color:#888;margin-bottom:12px;">That night at the spaceport</div>'
    + '<div style="font-style:italic;font-size:16px;line-height:1.6;margin-bottom:12px;">'+s.text+'</div>'
    + '<div style="font-weight:bold;font-size:17px;color:#ffaaaa;margin-bottom:15px;">"'+s.officer+'"</div>'
    + (s.final
      ? '<button onclick="endFlareCase()" style="padding:10px 25px;background:#662222;color:#fff;border:1px solid #ff6666;border-radius:6px;cursor:pointer;">Tell the Truth</button>'
      : '<button onclick="flareNext()" style="padding:10px 25px;background:#442222;color:#fff;border:1px solid #ff6666;border-radius:6px;cursor:pointer;">Endure</button>');
  document.body.appendChild(div);
}
function flareNext(){
  FLARE_CASE.stage++;
  showFlareStage();
}
function endFlareCase(){
  FLARE_CASE.active = false;
  var div = document.getElementById('quest-hud');
  if(div){
    div.innerHTML = '<div style="color:#ffd700;font-weight:bold;font-size:22px;margin-bottom:15px;">🌐 VERDICT</div>'
      + '<div style="font-style:italic;font-size:16px;line-height:1.7;">'
      + 'You tell them: "I touched the core to STOP the flare."<br><br>'
      + 'Silence.<br><br>'
      + 'The senior officer nods slowly.<br>'
      + '"...We know. But we had to grill you hard.<br>'
      + 'The Apex Runner is yours. You earned it."<br><br>'
      + '<span style="color:#ffd700;">You were never guilty. Only tested.</span>'
      + '</div>'
      + '<div style="margin-top:20px;"><button onclick="document.getElementById(\'quest-hud\').remove()" style="padding:10px 25px;background:#664422;color:#fff;border:1px solid #ffd700;border-radius:6px;cursor:pointer;">Take Your Jet</button></div>';
  }
  unlockAchievement('Survived the Server Flare');
  earnPay(200, 'flare case cleared');
}
function courtCase(){
  var c = COURT_CASES[Math.floor(Math.random()*COURT_CASES.length)];
  var div = document.createElement('div');
  var existing = document.getElementById('quest-hud');
  if(existing) existing.remove();
  div.id = 'quest-hud';
  div.style.cssText = 'position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:9999;background:rgba(30,10,10,0.95);border:3px solid #ff4444;border-radius:10px;padding:15px 25px;color:#fff;font-family:Georgia,serif;text-align:center;max-width:85%;';
  div.innerHTML = '<div style="color:#ff6666;font-we