<!-- RUBY-BACKUP · part 457 -->
5px;background:#442288;color:#fff;border:1px solid #8844ff;border-radius:6px;cursor:pointer;">Continue</button></div>';
  }
}
function twinNext(){
  TWIN_CASE.stage++;
  if(TWIN_CASE.stage >= TWIN_CASE.stages.length){
    endTwinCase();
  }else{
    showTwinStage();
  }
}

/* THE JURY — they select not guilty */
function juryDeliberate(callback){
  var jurors = [
    'Juror 1: "The evidence... it does not hold."',
    'Juror 2: "A victim of circumstance. I see it."',
    'Juror 3: "The twin lightning — who can fight the storm?"',
    'Juror 4: "We tried to make them look bad. We failed."',
    'Juror 5: "There is only one just choice."',
    'Juror 6: "Not guilty. That is all we could really do."'
  ];
  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,15,25,0.97);border:3px solid #8888ff;border-radius:12px;padding:20px 30px;color:#fff;font-family:Georgia,serif;max-width:85%;text-align:center;';
  div.innerHTML = '<div style="color:#8888ff;font-weight:bold;font-size:20px;margin-bottom:10px;">THE JURY DELIBERATES</div>'
    + '<div style="font-size:13px;color:#888;margin-bottom:15px;">The case rests. They decide.</div>'
    + '<div id="jury-talk" style="font-style:italic;font-size:16px;line-height:1.8;min-height:120px;text-align:left;"></div>';
  document.body.appendChild(div);
  var talk = document.getElementById('jury-talk');
  var i = 0;
  var jt = setInterval(function(){
    if(i < jurors.length){
      talk.innerHTML += '<div style="margin:8px 0;opacity:0;animation:fadein 1s forwards;">'+jurors[i]+'</div>';
      i++;
    }else{
      clearInterval(jt);
      setTimeout(function(){
        /* the verdict */
        talk.innerHTML += '<div style="margin-top:15px;font-weight:bold;color:#00ff88;font-size:18px;animation:fadein 1s forwards;">FOREPERSON: "We the jury find the defendant... NOT GUILTY."</div>';
        setTimeout(function(){
          var d = document.getElementById('quest-hud');
          if(d) d.remove();
          if(callback) callback();
        }, 3000);
      }, 1000);
    }
  }, 1800);
  /* fadein animation */
  var style = document.createElement('style');
  style.innerHTML = '@keyframes fadein { to { opacity: 1; } }';
  document.head.appendChild(style);
}

/* AFTER THE COURT — the rich stranger appears */

/* THE RESOLUTION — all he ever needed */

/* FRIENDLY CALLS — overheard kindness */
var PHONE_LINES = [
  {a: 'Hey, did you need a charger?', b: 'Yeah, my pad died in the valley. You are a lifesaver.'},
  {a: 'Here, take my battery. I got a couple of them.', b: 'Really? Thank you. I will pay it forward.'},
  {a: 'You look tired. Everything okay?', b: 'Long day. But I am alright. Thanks for asking.'},
  {a: 'I saved you a seat at the plaza.', b: 'You did not have to. See you in five.'},
  {a: 'Did you eat yet? I got extra.', b: 'You always got extra. You are too kind.'},
  {a: 'Your pad is at 5%. Come by, I will charge it.', b: 'On my way. You are the best.'},
  {a: 'I heard about the court. Are you okay?', b: 'I am free. The truth came out. Thank you for caring.'},
  {a: 'Take my jacket. It is cold in the valley.', b: 'I cannot take your jacket.', a2: 'You can. I got another one.'},
  {a: 'You dropped this.', b: 'My continuum code! Thank you so much.'},
  {a: 'Walk with me. The valley is scary alone.', b: 'I would like that. Thank you.'}
];
var PHONE_LINES_EXTRA = [
  {a: 'My pad is full. Come plug into me.', b: 'You sure? That is your whole charge.'},
  {a: 'I will wait with you until your ride comes.', b: 'It is late. You do not have to.', a2: 'I want to. It is what friends do.'},
  {a: 'You left your bag at the market.', b: 'Oh no. Did you grab it?', a2: 'Got it right here. Meet me at the plaza.'},
  {a: 'The storm is coming. Get inside.', b: 'I am two streets away. I will run.'},
  {a: 'I told the officers you are a good person.', b: 'You did that for me? Thank you.'},
  {a: 'Here is my charger. Keep it.', b: 'I cannot keep it.', a2: 'You can. I have three.'},
  {a: 'You hungry? I am at the noodle stand.', b: 'Starving. Order me what you are having.'},
  {a: 'I saw your name on the monument.', b: 'The ancestors remembered me?', a2: 'We all did.'},
  {a: 'Do not go to the peak alone tonight.', b: 'I was not planning to.', a2: 'Good. Because I am coming with you.'},
  {a: 'Your kid is safe. She is with me at the playground.', b: 'Thank you. Thank you so much.'},
  {a: 'I fixed your pad. It just needed a restart.', b: 'You are a genius. What do I owe you?', a2: 'Nothing. Just help the next person.'},
  {a: 'The valley is clear today. Good day to walk.', b: 'Walk with me?', a2: 'Already on my way.'},
  {a: 'I have an extra battery. Where are you?', b: 'By the fountain. You are amazing.'},
  {a: 'You were right about the twin lightning.