<!-- RUBY-BACKUP · part 214 -->
op:0;left:0;width:100%;height:100%;z-index:20000;background:rgba(15,5,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 style="font-size:14px;color:#888;letter-spacing:2px;margin-bottom:15px;">18+ ENCOUNTER</div>'
    + '<div id="door-words" style="font-style:italic;font-size:18px;line-height:2;max-width:600px;min-height:200px;"></div>'
    + '<div id="door-choices" style="margin-top:20px;"></div>';
  document.body.appendChild(div);
  var words = [
    'A woman walks into the room you are in.',
    'She looks at you.',
    'She turns and walks out the door.',
    'You follow. She is waiting outside.',
    'She looks you up and down and says:',
    '<span style="color:#ff66aa;font-size:20px;">"Hey. Do you have a girlfriend?"</span>'
  ];
  var w = document.getElementById('door-words');
  var i = 0;
  var wt = setInterval(function(){
    if(i < words.length){
      w.innerHTML += '<div style="margin:10px 0;opacity:0;animation:fadein 1s forwards;">'+words[i]+'</div>';
      i++;
    }else{
      clearInterval(wt);
      document.getElementById('door-choices').innerHTML =
        '<button onclick="doorAnswer(0)" style="margin:0 10px;padding:12px 30px;background:transparent;border:2px solid #ff66aa;color:#ff66aa;font-size:16px;border-radius:6px;cursor:pointer;">No</button>'
        + '<button onclick="doorAnswer(1)" style="margin:0 10px;padding:12px 30px;background:transparent;border:2px solid #ff66aa;color:#ff66aa;font-size:16px;border-radius:6px;cursor:pointer;">Yes</button>';
    }
  }, 1600);
}
function doorAnswer(yes){
  var w = document.getElementById('door-words');
  var ch = document.getElementById('door-choices');
  if(ch) ch.innerHTML = '';
  if(!yes){
    /* no girlfriend */
    w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;"><span style="color:#ff66aa;">"What the hell? That is a shame."</span></div>';
    setTimeout(function(){
      w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;">She hands you a code. <span style="color:#00ffff;">"Take my code. Click me later."</span></div>';
      setTimeout(function(){
        /* she gives a continuum code */
        try{
          var codes = JSON.parse(localStorage.getItem('ruby-codes')||'[]');
          codes.push('her-code-'+Date.now());
          localStorage.setItem('ruby-codes', JSON.stringify(codes));
        }catch(e){}
        unlockAchievement('Her Code');
        codeStatus('she gave you her code — click her later');
        setTimeout(function(){
          var d = document.getElementById('woman-door');
          if(d) d.remove();
        }, 3000);
      }, 2000);
    }, 2000);
  }else{
    /* yes, has girlfriend */
    w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;"><span style="color:#ff66aa;font-size:20px;">"Let us go. Come on now. Be mine."</span></div>';
    setTimeout(function(){
      w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;">She takes your hand. She walks you through a crowd.</div>';
      setTimeout(function(){
        w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;color:#888;">The crowd thickens. You look around.</div>';
        setTimeout(function(){
          w.innerHTML += '<div style="margin:12px 0;opacity:0;animation:fadein 1s forwards;color:#ff6666;">She is gone. You lost her.</div>';
          unlockAchievement('Lost Her in the Crowd');
          codeStatus('she walked you through a crowd... and you lost her');
          setTimeout(function(){
            var d = document.getElementById('woman-door');
            if(d) d.remove();
          }, 3000);
        }, 2000);
      }, 2000);
    }, 2000);
  }
}
function overhearFlirtyCall(){
  var call = generateFlirtyCall();
  var div = document.createElement('div');
  div.style.cssText = 'position:fixed;bottom:120px;left:50%;transform:translateX(-50%);z-index:9997;background:rgba(30,10,20,0.9);border:2px solid #ff66aa;border-radius:10px;padding:10px 20px;color:#fff;font-family:Arial;font-size:13px;max-width:80%;text-align:center;';
  div.innerHTML = '<div style="color:#ff66aa;font-size:11px;margin-bottom:5px;">📱 OVERHEARD (18+)</div>'
    + '<div><i>"'+call.a+'"</i></div>'
    + '<div style="margin-top:5px;color:#aaa;"><i>"'+call.b+'"</i></div>'
    + '<div style="margin-top:5px;color:#888;"><i>"'+call.c+'"</i></div>';
  document.body.appendChild(div);
  setTimeout(function(){ if(div.parentElement) div.remove(); }, 7000);
}
function overhearRandomCall(){
  var call = generateKindCall();
  var div = document.createElement('div');
  div.style.cssText = 'position:fixed;bottom:120px;left:50%;transform:translateX(-50%);z-index:9997;background:rgba(20,30,20,0.9);border:2px solid #00ff88;border-radius:10px;padding:10px 20px;color:#fff;font-family:Arial;font-size:13px;max-