<!-- RUBY-BACKUP · part 463 -->
rval(ft); if(d) d.style.background = '#880000'; }
  }, 300);
}
function showGuiltyOrder(){
  /* assumed guilty — on the page and game interface */
  var div = document.createElement('div');
  div.id = 'guilty-order';
  div.style.cssText = 'position:fixed;bottom:0;left:0;width:100%;z-index:15000;background:rgba(100,0,0,0.92);border-top:4px solid #ff0000;color:#fff;font-family:Arial;text-align:center;padding:12px;';
  div.innerHTML = '<div style="font-size:20px;font-weight:bold;color:#ff6666;letter-spacing:3px;">ASSUMED GUILTY</div>'
    + '<div style="font-size:13px;margin-top:5px;">Subject detained at spaceport — Continuum Server Flare investigation</div>'
    + '<div style="font-size:11px;color:#aaa;margin-top:3px;">Order #FLARE-001 — All units on alert</div>';
  document.body.appendChild(div);
}
function startNewsBroadcast(){
  /* 24/7 news ticker */
  var ticker = document.createElement('div');
  ticker.id = 'news-ticker';
  ticker.style.cssText = 'position:fixed;top:35px;left:0;width:100%;z-index:14999;background:rgba(0,0,50,0.9);color:#88ccff;font-family:monospace;font-size:13px;padding:6px;overflow:hidden;white-space:nowrap;';
  document.body.appendChild(ticker);
  var idx = 0;
  LIVE_CASE.newsTimer = setInterval(function(){
    var t = document.getElementById('news-ticker');
    if(!t){ clearInterval(LIVE_CASE.newsTimer); return; }
    t.innerHTML = '<span style="color:#ff6666;font-weight:bold;">LIVE 24/7</span> — '+NEWS_HEADLINES[idx % NEWS_HEADLINES.length];
    idx++;
  }, 4000);
}
function stopLiveCase(){
  ['continuum-alert','guilty-order','news-ticker'].forEach(function(id){
    var d = document.getElementById(id);
    if(d) d.remove();
  });
  if(LIVE_CASE.newsTimer) clearInterval(LIVE_CASE.newsTimer);
  LIVE_CASE.active = false;
}
function militantCourt(){
  /* officers on the spot — not a courtroom */
  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:50%;left:50%;transform:translate(-50%,-50%);z-index:16000;background:rgba(20,5,5,0.98);border:4px solid #ff0000;border-radius:0;padding:25px 35px;color:#fff;font-family:Arial;max-width:90%;text-align:center;';
  div.innerHTML = '<div style="color:#ff0000;font-weight:bold;font-size:24px;letter-spacing:2px;margin-bottom:15px;">MILITANT COURT — ON THE SPOT</div>'
    + '<div style="font-size:14px;color:#aaa;margin-bottom:15px;">No courtroom. No delay. Here. Now.</div>'
    + '<div style="margin:15px 0;">'
    + '<div style="display:inline-block;margin:0 15px;text-align:center;">'
    + '<div style="width:60px;height:80px;background:#1a2a1a;border-radius:5px;margin:0 auto;"></div>'
    + '<div style="font-size:11px;margin-top:5px;">OFFICER KANE</div></div>'
    + '<div style="display:inline-block;margin:0 15px;text-align:center;">'
    + '<div style="width:60px;height:80px;background:#2a1a1a;border-radius:5px;margin:0 auto;"></div>'
    + '<div style="font-size:11px;margin-top:5px;">OFFICER NALU</div></div>'
    + '</div>'
    + '<div style="font-style:italic;font-size:16px;margin:15px 0;line-height:1.6;">'
    + '"We are the court. We are the law, here, now.<br>'
    + 'The Continuum watches. The news watches.<br>'
    + 'Everyone watches."'
    + '</div>'
    + '<button onclick="document.getElementById(\'quest-hud\').remove(); startFlareCase();" style="padding:12px 30px;background:#880000;color:#fff;border:2px solid #ff0000;font-size:16px;cursor:pointer;">FACE THEM</button>';
  document.body.appendChild(div);
}
/* override startFlareCase to include live elements */
var _origStartFlare = startFlareCase;
startFlareCase = function(){
  LIVE_CASE.active = true;
  activateContinuumAllSystems();
  showGuiltyOrder();
  startNewsBroadcast();
  setTimeout(function(){ militantCourt(); }, 2000);
};
/* override endFlareCase for the triumph */
var _origEndFlare = endFlareCase;
endFlareCase = function(){
  /* THEIR TIME TO SHINE — not guilty feels real */
  stopLiveCase();
  var div = document.createElement('div');
  div.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;z-index:20000;background:radial-gradient(ellipse at center, rgba(255,215,0,0.15) 0%, rgba(5,10,5,0.97) 100%);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;font-family:Georgia,serif;text-align:center;';
  /* news breaks */
  var newsFlash = document.createElement('div');
  newsFlash.style.cssText = 'position:fixed;top:35px;left:0;width:100%;z-index:20001;background:#00aa00;color:#fff;font-family:monospace;font-weight:bold;text-align:center;padding:10px;font-size:16px;';
  newsFlash.innerHTML = '🔴 BREAKING: VERDICT — NOT GUILTY';
  document.body.appendChild(newsFlash);
  setTimeout(function(){ if(newsFlash.parentElement) newsFlash.remove(); }, 8000);
  div.innerHTML = '<div style="font-size:60px;margin-bottom:20px;">☀️</div>'
    + '<div style="font-size:32px