<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scoundrel</title>
<link rel="stylesheet" href="style.css">
<style>
#error-log {
display: none;
position: fixed;
top: 0; left: 0; right: 0;
background: #e74c3c;
color: white;
padding: 20px;
z-index: 1000;
white-space: pre-wrap;
font-family: monospace;
}
</style>
</head>
<body>
<div id="error-log"></div>
<div id="app"></div>
<script>
window.onerror = function(message, source, lineno, colno, error) {
const errorLog = document.getElementById('error-log');
errorLog.style.display = 'block';
errorLog.textContent += `Error: ${message}\nAt: ${source}:${lineno}:${colno}\n\n`;
};
</script>
<!-- Main Game Script -->
<script type="module" src="./main.js"></script>
</body>
</html>