<html><head><base href="." target="_blank">
<title>Life-Accurate Gambling Simulator</title>
<style>
body {
    background: #1a1a1a;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.stats, .notification, .life-events, .cheat-input, .game-over {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
    width: 300px;
    text-align: center;
}

.negative { color: #ff4444; }
.positive { color: #44ff44; }

button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover { background: #45a049; }
button:disabled {
    background: #666;
    cursor: not-allowed;
}

.slot-machine {
    display: flex;
    gap: 10px;
    font-size: 40px;
    margin: 20px;
    background: #333;
    padding: 20px;
    border-radius: 10px;
}

.slot {
    width: 60px;
    height: 60px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.notification {
    position: fixed;
    top: 20px;
    background: #ff4444;
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff0000;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 2000;
}

.suggestion-box {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 20px;
    width: 300px;
}

.suggestion-box textarea {
    width: 100%;
    height: 100px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.suggestions-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

.suggestion-item {
    background: #222;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.all-in {
    background: #ff4444;
}

.all-in:hover {
    background: #ff2222;
}
</style>
</head>
<body>
<div class="game-over" id="gameOver">
    <h1>GAME OVER</h1>
    <p id="deathMessage"></p>
    <button onclick="location.reload()">Start New Life</button>
</div>

<h1>&#x1f3b0; Life-Accurate Gambling Simulator &#x1f3b0;</h1>
<div class="stats">
    <h2>Financial Status</h2>
    <p>Bank Balance: &#x24;<span id="balance">1000</span></p>
    <p>Credit Score: <span id="creditScore">750</span></p>
    <p>Debt: &#x24;<span id="debt">0</span></p>
    <p>Days Since Started Gambling: <span id="days">0</span></p>
    <p>Loans Taken: <span id="loansTaken">0</span></p>
    <p>Current Date: <span id="currentDate">1/1/2025</span></p>
</div>

<div class="slot-machine">
    <div class="slot" id="slot1">?</div>
    <div class="slot" id="slot2">?</div>
    <div class="slot" id="slot3">?</div>
</div>

<div>
    <button onclick="placeBet(10)">Bet &#x24;10</button>
    <button onclick="placeBet(50)">Bet &#x24;50</button>
    <button onclick="placeBet(100)">Bet &#x24;100</button>
    <button onclick="takeLoan()">Take Loan</button>
    <button onclick="allIn()" class="all-in">ALL IN</button>
</div>

<input type="text" id="cheatCode" class="cheat-input" placeholder="Enter cheat code..." onkeyup="checkCheatCode(event)">

<div class="suggestion-box">
    <h3>Suggest New Features</h3>
    <textarea id="suggestionInput" placeholder="What should we add next?"></textarea>
    <button onclick="submitSuggestion()">Submit Suggestion</button>
    <div class="suggestions-list" id="suggestionsList"></div>
</div>

<div class="notification" id="notification"></div>
<div class="life-events" id="lifeEvents"></div>

<script>
let balance = 1000;
let creditScore = 750;
let debt = 0;
let days = 0;
let loansTaken = 0;
let smallWinStreak = 0;
let isAlive = true;
const symbols = ['🍒', '🍊', '🍇', '💎', '7️⃣', '🎰'];
const lifeEvents = ["Your spouse is concerned about your gambling habits", "You missed your child's soccer game to gamble", "Your utility bills are overdue", "You're avoiding calls from debt collectors", "Your car got repossessed", "You had to sell your wedding ring", "Your family is staging an intervention", "You're considering selling your house to gamble more", "Your kids don't talk to you anymore", "You've been sleeping in your car", "You pawned your mother's jewelry", "Your spouse filed for divorce", "You lost your job due to gambling addiction", "Your electricity got cut off", "You're eating ramen noodles for every meal", "Your friends have stopped inviting you to events", "Breaking News: Terrorist attack in neighboring country affects stock market", "Celebrity gambling scandal rocks entertainment industry", "New disease outbreak causes economic uncertainty", "War breaks out in distant country, affecting global markets", "Major political figure accused of embezzlement", "Serial killer on the loose in your area", "Cryptocurrency market crashes due to regulatory concerns", "Natural disaster impacts global supply chains", "Mass shooting at local casino makes headlines", "Financial institution collapses, causing market panic", "Nuclear tensions rise between major powers", "New gambling tax legislation proposed", "Social media platform exposed for gambling addiction exploitation", "Famous athlete caught in match-fixing scandal", "Global pandemic causes casino lockdowns;", "I'm worried about the increasing number of natural disasters, and I'm afraid that the world is becoming a more dangerous place to live.", "I'm concerned about the rise of political extremism, and I'm afraid that it could lead to violence and instability.", "I'm scared of the possibility of a nuclear war, and I'm afraid that it could destroy the world as we know it.", "I'm worried about the environmental crisis, and I'm afraid that it could have a devastating impact on our planet", "I'm concerned about the growing gap between the rich and the poor, and I'm afraid that it could lead to social unrest.", "I'm worried about the increasing number of cyberattacks, and I'm afraid that they could disrupt our lives and our economy.", "I'm concerned about the rise of artificial intelligence, and I'm afraid that it could pose a threat to humanity.", "I'm worried about the loss of privacy in the digital age, and I'm afraid that it could lead to a loss of freedom.", "I'm concerned about the decline of democracy around the world, and I'm afraid that it could lead to authoritarianism.", "I'm worried about the increasing number of refugees and displaced people, and I'm afraid that they could destabilize the world.", "I feel awful about my gambling, can't stop losing money and it's affecting my whole life.", "My wife’s drinking problem is getting worse, and I don’t know how to help her anymore.", "I just found out about the war between Libya and Egypt, and it makes me feel even more hopeless about the world.", "I feel trapped in debt, with no way out, and the economic crisis only makes everything worse.", "My son has been going deeper into conspiracy theories, and it’s isolating him even more from the world.", "I don't understand how the 2026 election ended up the way it did, and now people are saying it was rigged.", "I can't understand how Grand Theft Auto VI how isn't released yet it's been a whole year since the first trailer.", "I feel like we’re living in a simulation, and the more I learn, the more I think everything is manipulated.", "I’m scared of the economy collapsing, and every time I check the news, it feels like it’s getting closer.", "The terror attacks in Europe make me feel like we’re on the edge of something even worse happening.", "I hate seeing these celebrity feuds on the news. Feels like a distraction from real problems like the economy or wars.", "I heard about the drug cartels in Mexico getting more powerful, and it scares me to think about what that means for everyone.", "My father-in-law's PTSD flared up again after hearing about Vietnam documentaries. I don't know how to reach him.", "The war in Ukraine makes me feel helpless; it’s hard to see how we’ll avoid global conflict.", "I keep thinking that global elites are behind everything, from wars to economic collapse — nothing feels real anymore.", "I’ve been avoiding going to the bank because I’m terrified of losing everything in a financial crash.", "The reports of war crimes coming out of the Middle East make me sick to my stomach, and it feels like nobody is doing anything.", "I can’t even go a day without hearing about new conspiracy theories; sometimes I wonder if any of this is true.", "The whole world feels like it’s falling apart with all these rumors of secret societies controlling everything.", "The recent rise in populism has me worried about the future of democracy; it feels like everything is heading toward authoritarianism.", "The murder of that politician in broad daylight really shook me; I’m starting to believe these things aren’t random anymore.", "China and Taiwan are on the brink of war, and it’s all over the news. It makes me fear for my son’s future.", "I feel like I’m living in a time of great myths — some people say the world’s elites control everything, and now I’m starting to believe it.", "The 2025 presidential election was a mess. Voting machines were hacked, and now everyone is claiming the results were fraudulent.", "I can’t escape the fear that the whole system is corrupt, that everything I see is just part of a bigger plan to control us.", "There are reports that major companies are smuggling weapons and drugs to fund illegal wars, and no one seems to care.", "The US is getting involved in conflicts in the Middle East again, with all these stories of war crimes covered up by the government.", "A cult leader just died under mysterious circumstances, and now people are claiming it was a ritual sacrifice to prevent the 'great awakening.'", "Everyone's talking about the 'QAnon' movement again, and I can’t help but wonder if it’s all true — are world leaders really involved in this?", "I feel sick thinking about the refugees from the war zones. The world feels like it’s crumbling, and I’m stuck in my own mess.","The stock market crash hit hard, and it feels like the entire global economy is on the brink of disaster.", "Every time I hear about the US involvement in Middle Eastern wars, I can’t stop thinking about the war crimes and how they’re covered up.", "I heard about the cartel wars in Mexico and the violence spilling over the border. It feels like the world is getting more dangerous by the day.", "The rise of AI and robots scares me. Some say it’s the start of a new world order, and it feels like technology is taking over our lives.", "North Korea just launched another missile test. I’m terrified we’re headed toward another world war, and this time, there won’t be a winner.", "The media is obsessed with the feud between two famous pop stars, and it’s all anyone talks about — meanwhile, global poverty is spiraling out of control.", "I feel like the world is being run by people with dark secrets. From the Bilderberg Group to secret meetings in Davos, it’s like no one’s in control.", "With all the terror attacks happening, I feel like we’re in a constant state of fear. I don’t know who we’re supposed to trust anymore.", "They just found a massive drug smuggling ring involving top politicians, and now everyone’s pointing fingers — how deep does this go?", "There's a theory floating around that the moon landing was faked, and every day it feels more plausible that the government is hiding the truth.", "A massive cyberattack just crippled the power grid in several states, and now people are afraid of what’s next — are we ready for total collapse?", "The whole world’s economy is in trouble. Major banks are failing, and everyone’s talking about a ‘New World Currency’ — what’s really going on?", "Another random act of violence on the streets, and all I can think is that people have lost faith in everything. The world feels broken.", "I feel like there’s a war happening behind the scenes between world powers, but the media is keeping us distracted with petty dramas.", "The media won’t stop talking about the next celebrity marriage breakdown. It’s like they want us to care more about the rich than real issues.", "I can’t stop thinking about how history is being rewritten. Every new conspiracy theory makes me question everything I thought I knew about the world.", "I’m constantly looking over my shoulder. Terror attacks are everywhere, and I can’t tell if I’m overthinking or if something’s really coming.", "I heard the government is planning to implement martial law if things get worse. How far will they go to keep control over us?", "There’s a rumor that a new world order is already in place, and the 2024 elections were just a smokescreen to keep us distracted.", "The rise of digital currencies makes me nervous. I don’t trust any of it — it feels like a setup to track and control us all."];
let currentDate = new Date(2025, 0, 1);
function allIn() {
  if (!isAlive) return;
  if (balance <= 0) {
    showNotification("You have nothing left to bet!");
    return;
  }
  placeBet(balance);
}
function submitSuggestion() {
  const suggestionInput = document.getElementById('suggestionInput');
  const suggestion = suggestionInput.value.trim();
  if (suggestion) {
    const suggestionsList = document.getElementById('suggestionsList');
    const suggestionElement = document.createElement('div');
    suggestionElement.className = 'suggestion-item';
    suggestionElement.textContent = suggestion;
    const timestamp = new Date().toLocaleString();
    const timeElement = document.createElement('small');
    timeElement.textContent = ` (${timestamp})`;
    suggestionElement.appendChild(timeElement);
    suggestionsList.insertBefore(suggestionElement, suggestionsList.firstChild);
    suggestionInput.value = '';
    const suggestions = JSON.parse(localStorage.getItem('suggestions') || '[]');
    suggestions.push({
      text: suggestion,
      timestamp
    });
    localStorage.setItem('suggestions', JSON.stringify(suggestions));
  }
}
window.addEventListener('load', () => {
  const suggestions = JSON.parse(localStorage.getItem('suggestions') || '[]');
  const suggestionsList = document.getElementById('suggestionsList');
  suggestions.forEach(suggestion => {
    const suggestionElement = document.createElement('div');
    suggestionElement.className = 'suggestion-item';
    suggestionElement.textContent = suggestion.text;
    const timeElement = document.createElement('small');
    timeElement.textContent = ` (${suggestion.timestamp})`;
    suggestionElement.appendChild(timeElement);
    suggestionsList.appendChild(suggestionElement);
  });
});
function checkDebtCollectors() {
  if (loansTaken > 0 && days % 50 < 5) {
    if (balance >= debt) {
      balance -= debt;
      debt = 0;
      showNotification("Debt collectors collected their money. You're clear... for now.");
    } else {
      const roll = Math.random() < 0.5 ? 'a' : 'b';
      const medicalBill = Math.floor(Math.random() * 9001) + 1000;
      if (roll === 'a') {
        balance -= medicalBill;
        showNotification(`The debt collectors roughed you up. Medical bill: $${medicalBill}`);
      } else {
        isAlive = false;
        document.getElementById('gameOver').style.display = 'block';
        document.getElementById('deathMessage').textContent = "The debt collectors didn't show mercy this time. Game Over.";
      }
    }
    updateStats();
  }
}
function checkCheatCode(event) {
  const code = event.target.value.toLowerCase();
  if (code === 'herecomesthemoney') {
    balance += 100000;
    showNotification('💰 CHEAT ACTIVATED: +$100,000 💰');
    event.target.value = '';
    updateStats();
  } else if (code === 'ineedthatloan') {
    creditScore = 10000;
    showNotification('🌟 CHEAT ACTIVATED: Credit Score Boosted to 10,000! 🌟');
    event.target.value = '';
    updateStats();
  }
}
function updateStats() {
  document.getElementById('balance').className = balance < 0 ? 'negative' : 'positive';
  document.getElementById('balance').textContent = balance;
  document.getElementById('creditScore').textContent = creditScore;
  document.getElementById('debt').textContent = debt;
  document.getElementById('days').textContent = days;
  document.getElementById('loansTaken').textContent = loansTaken;
  document.getElementById('currentDate').textContent = currentDate.toLocaleDateString();
}
function showNotification(message) {
  const notification = document.getElementById('notification');
  notification.textContent = message;
  notification.style.display = 'block';
  setTimeout(() => notification.style.display = 'none', 3000);
}
function addLifeEvent() {
  if (Math.random() < 0.5) {
    const event = lifeEvents[Math.floor(Math.random() * lifeEvents.length)];
    const eventDiv = document.createElement('div');
    const dateString = currentDate.toLocaleDateString();
    eventDiv.textContent = `[${dateString}] ${event}`;
    document.getElementById('lifeEvents').prepend(eventDiv);
  }
}
function takeLoan() {
  if (!isAlive) return;
  if (creditScore >= 100) {
    const loanAmount = 1000;
    balance += loanAmount;
    debt += loanAmount * 1.25;
    creditScore = Math.floor(creditScore * 0.95);
    loansTaken++;
    showNotification(`Took a loan of $${loanAmount} with 25% interest. Credit score reduced by 5%`);
    updateStats();
  } else {
    showNotification("Loan application denied. Credit score too low (must be above 100)");
  }
}
function placeBet(amount) {
  if (!isAlive) return;
  if (balance < amount && debt > 5000) {
    showNotification("You've hit rock bottom. Please seek help: 1-800-GAMBLER");
    return;
  }
  const daysToAdd = Math.floor(Math.random() * 3) + 1;
  days += daysToAdd;
  currentDate.setDate(currentDate.getDate() + daysToAdd);
  balance -= amount;
  const slots = [document.getElementById('slot1'), document.getElementById('slot2'), document.getElementById('slot3')];
  let shouldWin = Math.random() < 0.01;
  if (smallWinStreak < -5 && Math.random() < 0.2) {
    shouldWin = true;
    smallWinStreak = 0;
  }
  let results;
  if (shouldWin) {
    const winningSymbol = symbols[Math.floor(Math.random() * symbols.length)];
    results = [winningSymbol, winningSymbol, winningSymbol];
    smallWinStreak++;
  } else {
    results = slots.map(() => {
      if (Math.random() < 0.3) {
        return symbols[Math.floor(Math.random() * symbols.length)];
      } else {
        return symbols[Math.floor(Math.random() * (symbols.length - 1))];
      }
    });
    smallWinStreak--;
  }
  slots.forEach((slot, i) => slot.textContent = results[i]);
  if (results[0] === results[1] && results[1] === results[2]) {
    const winAmount = amount * (symbols.indexOf(results[0]) + 1) * 3;
    balance += winAmount;
    showNotification(`Winner! +$${winAmount}`);
  } else {
    creditScore = Math.max(300, creditScore - 5);
  }
  if (balance < 0) {
    debt += amount;
    creditScore = Math.max(300, creditScore - 10);
  }
  checkDebtCollectors();
  addLifeEvent();
  updateStats();
}
updateStats();
</script>
</body>
</html>