|
|
|
|
@@ -25,6 +25,9 @@
|
|
|
|
|
*{margin:0;padding:0;box-sizing:border-box}
|
|
|
|
|
:root{--bg:#080810;--panel:#0e0e1a;--border:#1a1a2e;--text:#c0c0d0;--dim:#555;--accent:#4a9eff;--glow:#4a9eff22;--gold:#ffd700;--green:#4caf50;--red:#f44336;--purple:#b388ff}
|
|
|
|
|
body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code','Fira Code',monospace;font-size:12px;line-height:1.4;min-height:100vh}
|
|
|
|
|
/* Skip navigation link for keyboard/screen reader users */
|
|
|
|
|
.skip-nav{position:absolute;left:-9999px;top:0;z-index:999;background:var(--accent);color:#000;padding:8px 16px;font-size:12px;text-decoration:none;border-radius:0 0 4px 0}
|
|
|
|
|
.skip-nav:focus{left:0}
|
|
|
|
|
#header{text-align:center;padding:16px 20px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#0a0a18,var(--bg))}
|
|
|
|
|
#header h1{font-size:22px;font-weight:300;letter-spacing:6px;color:var(--accent);text-shadow:0 0 40px var(--glow)}
|
|
|
|
|
#header .sub{color:var(--dim);font-size:10px;margin-top:2px;letter-spacing:2px}
|
|
|
|
|
@@ -45,10 +48,6 @@ body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code
|
|
|
|
|
.res .r-label{font-size:9px;color:var(--dim);text-transform:uppercase;letter-spacing:1px}
|
|
|
|
|
.res .r-val{font-size:16px;font-weight:700;margin:2px 0;color:var(--accent)}
|
|
|
|
|
.res .r-rate{font-size:10px;color:var(--green)}
|
|
|
|
|
.cap-bar{height:3px;background:#1a1a2e;border-radius:2px;margin:3px 0 1px;overflow:hidden}
|
|
|
|
|
.cap-fill{height:100%;border-radius:2px;transition:width 0.3s ease,background 0.3s ease;background:var(--accent)}
|
|
|
|
|
.cap-fill.warn{background:#ffaa00}
|
|
|
|
|
.cap-fill.danger{background:#f44336}
|
|
|
|
|
#main{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 16px 16px}
|
|
|
|
|
@media(max-width:700px){#main{grid-template-columns:1fr}}
|
|
|
|
|
.panel{background:var(--panel);border:1px solid var(--border);border-radius:6px;padding:12px;overflow:hidden;max-height:600px;overflow-y:auto}
|
|
|
|
|
@@ -67,7 +66,6 @@ body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code
|
|
|
|
|
.build-btn.can-buy{border-color:#2a3a4a;background:#0e1420}
|
|
|
|
|
.build-btn.can-buy:hover{border-color:var(--accent);box-shadow:0 0 8px var(--glow)}
|
|
|
|
|
.build-btn:disabled{opacity:0.3;cursor:not-allowed}
|
|
|
|
|
.build-btn,.project-btn,.ops-btn,.main-btn{touch-action:manipulation}
|
|
|
|
|
.b-name{color:var(--accent);font-weight:600}.b-count{float:right;color:var(--gold)}.b-cost{color:var(--dim);display:block}.b-effect{color:var(--green);display:block;font-size:9px}
|
|
|
|
|
.project-btn{display:block;width:100%;text-align:left;padding:6px 10px;margin-bottom:4px;border-radius:4px;cursor:pointer;font-family:inherit;font-size:10px;background:#0c0c18;border:1px solid var(--border);color:var(--text);transition:all 0.15s}
|
|
|
|
|
.project-btn.can-buy{border-color:#3a2a0a;background:#141008}
|
|
|
|
|
@@ -91,85 +89,75 @@ body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code
|
|
|
|
|
#drift-ending .ending-quote{color:var(--dim);font-style:italic;font-size:11px;border-left:2px solid #f44336;padding-left:12px;margin:20px 0;text-align:left}
|
|
|
|
|
#drift-ending button{margin-top:20px;background:#1a0808;border:1px solid #f44336;color:#f44336;padding:10px 24px;border-radius:4px;cursor:pointer;font-family:inherit;font-size:11px}
|
|
|
|
|
#drift-ending button:hover{background:#2a1010}
|
|
|
|
|
#toast-container{position:fixed;top:16px;right:16px;z-index:200;display:flex;flex-direction:column;gap:6px;pointer-events:none;max-width:320px}
|
|
|
|
|
.toast{pointer-events:auto;padding:8px 14px;border-radius:6px;font-size:11px;font-family:inherit;line-height:1.4;animation:toast-in 0.3s ease-out;opacity:0.95;border:1px solid;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
|
|
|
|
|
.toast.fade-out{animation:toast-out 0.4s ease-in forwards}
|
|
|
|
|
.toast-event{background:rgba(244,67,54,0.12);border-color:#f44336;color:#ff8a80}
|
|
|
|
|
.toast-project{background:rgba(255,215,0,0.12);border-color:#ffd700;color:#ffd700}
|
|
|
|
|
.toast-milestone{background:rgba(76,175,80,0.12);border-color:#4caf50;color:#81c784}
|
|
|
|
|
.toast-info{background:rgba(74,158,255,0.12);border-color:#4a9eff;color:#80bfff}
|
|
|
|
|
@keyframes toast-in{from{transform:translateX(40px);opacity:0}to{transform:translateX(0);opacity:0.95}}
|
|
|
|
|
@keyframes toast-out{from{opacity:0.95;transform:translateX(0)}to{opacity:0;transform:translateX(40px)}}
|
|
|
|
|
::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}
|
|
|
|
|
/* Focus styles for keyboard navigation */
|
|
|
|
|
*:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
|
|
|
|
button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div id="header">
|
|
|
|
|
<a href="#main" class="skip-nav">Skip to main content</a>
|
|
|
|
|
<div id="header" role="banner">
|
|
|
|
|
<div id="pulse-container" style="position:relative;display:inline-block;margin-bottom:4px">
|
|
|
|
|
<div id="pulse-dot" style="width:8px;height:8px;border-radius:50%;background:#333;display:inline-block;vertical-align:middle;transition:background 0.5s,box-shadow 0.5s"></div>
|
|
|
|
|
<div id="pulse-dot" role="status" aria-label="Connection status" style="width:8px;height:8px;border-radius:50%;background:#333;display:inline-block;vertical-align:middle;transition:background 0.5s,box-shadow 0.5s"></div>
|
|
|
|
|
<span id="pulse-label" style="font-size:9px;color:#444;margin-left:6px;vertical-align:middle;letter-spacing:1px">OFFLINE</span>
|
|
|
|
|
</div>
|
|
|
|
|
<h1>THE BEACON</h1>
|
|
|
|
|
<div class="sub">A Sovereign AI Idle Game</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="phase-bar">
|
|
|
|
|
<div class="phase-name" id="phase-name">PHASE 1: THE FIRST LINE</div>
|
|
|
|
|
<div id="phase-bar" role="region" aria-label="Game phase and progress">
|
|
|
|
|
<div class="phase-name" id="phase-name" aria-live="polite">PHASE 1: THE FIRST LINE</div>
|
|
|
|
|
<div class="phase-desc" id="phase-desc">Write code. Automate. Build the foundation.</div>
|
|
|
|
|
<div class="progress-wrap"><div class="progress-fill" id="phase-progress" style="width:0%"></div></div>
|
|
|
|
|
<div class="progress-wrap" role="progressbar" aria-label="Phase progress" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"><div class="progress-fill" id="phase-progress" style="width:0%"></div></div>
|
|
|
|
|
<div class="progress-label"><span id="phase-progress-label">0%</span><span id="phase-progress-target">Next: Phase 2 (2,000 code)</span></div>
|
|
|
|
|
<div class="milestone-row" id="milestone-chips"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="resources">
|
|
|
|
|
<div class="res"><div class="r-label">Code</div><div class="r-val" id="r-code">0</div><div class="r-rate" id="r-code-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Compute</div><div class="r-val" id="r-compute">0</div><div class="r-rate" id="r-compute-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Knowledge</div><div class="r-val" id="r-knowledge">0</div><div class="r-rate" id="r-knowledge-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Users</div><div class="r-val" id="r-users">0</div><div class="r-rate" id="r-users-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Impact</div><div class="r-val" id="r-impact">0</div><div class="r-rate" id="r-impact-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" style="display:none"><div class="r-label">Rescues</div><div class="r-val" id="r-rescues">0</div><div class="r-rate" id="r-rescues-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Ops</div><div class="r-val" id="r-ops">5</div><div class="cap-bar"><div class="cap-fill" id="r-ops-cap"></div></div><div class="r-rate" id="r-ops-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Trust</div><div class="r-val" id="r-trust">5</div><div class="cap-bar"><div class="cap-fill" id="r-trust-cap"></div></div><div class="r-rate" id="r-trust-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" id="creativity-res" style="display:none"><div class="r-label">Creativity</div><div class="r-val" id="r-creativity">0</div><div class="r-rate" id="r-creativity-rate">+0/s</div></div>
|
|
|
|
|
<div class="res"><div class="r-label">Harmony</div><div class="r-val" id="r-harmony">50</div><div class="cap-bar"><div class="cap-fill" id="r-harmony-cap"></div></div><div class="r-rate" id="r-harmony-rate">+0/s</div></div>
|
|
|
|
|
<div id="resources" role="region" aria-label="Resources">
|
|
|
|
|
<div class="res" role="group" aria-label="Code resource"><div class="r-label">Code</div><div class="r-val" id="r-code" aria-live="off">0</div><div class="r-rate" id="r-code-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Compute resource"><div class="r-label">Compute</div><div class="r-val" id="r-compute" aria-live="off">0</div><div class="r-rate" id="r-compute-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Knowledge resource"><div class="r-label">Knowledge</div><div class="r-val" id="r-knowledge" aria-live="off">0</div><div class="r-rate" id="r-knowledge-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Users resource"><div class="r-label">Users</div><div class="r-val" id="r-users" aria-live="off">0</div><div class="r-rate" id="r-users-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Impact resource"><div class="r-label">Impact</div><div class="r-val" id="r-impact" aria-live="off">0</div><div class="r-rate" id="r-impact-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" style="display:none" role="group" aria-label="Rescues resource"><div class="r-label">Rescues</div><div class="r-val" id="r-rescues" aria-live="off">0</div><div class="r-rate" id="r-rescues-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Ops resource"><div class="r-label">Ops</div><div class="r-val" id="r-ops" aria-live="off">5</div><div class="r-rate" id="r-ops-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Trust resource"><div class="r-label">Trust</div><div class="r-val" id="r-trust" aria-live="off">5</div><div class="r-rate" id="r-trust-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" id="creativity-res" style="display:none" role="group" aria-label="Creativity resource"><div class="r-label">Creativity</div><div class="r-val" id="r-creativity" aria-live="off">0</div><div class="r-rate" id="r-creativity-rate">+0/s</div></div>
|
|
|
|
|
<div class="res" role="group" aria-label="Harmony resource"><div class="r-label">Harmony</div><div class="r-val" id="r-harmony" aria-live="off">50</div><div class="r-rate" id="r-harmony-rate">+0/s</div></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="main">
|
|
|
|
|
<div class="panel" id="action-panel">
|
|
|
|
|
<div id="main" role="main">
|
|
|
|
|
<div class="panel" id="action-panel" role="region" aria-label="Actions">
|
|
|
|
|
<h2>ACTIONS</h2>
|
|
|
|
|
<div class="action-btn-group"><button class="main-btn" onclick="writeCode()">WRITE CODE</button></div>
|
|
|
|
|
<div id="combo-display" style="text-align:center;font-size:10px;color:var(--dim);height:14px;margin-bottom:4px;transition:all 0.2s"></div>
|
|
|
|
|
<div class="action-btn-group"><button class="main-btn" onclick="writeCode()" aria-label="Write code. Press spacebar for keyboard shortcut.">WRITE CODE</button></div>
|
|
|
|
|
<div id="combo-display" role="status" aria-live="polite" style="text-align:center;font-size:10px;color:var(--dim);height:14px;margin-bottom:4px;transition:all 0.2s"></div>
|
|
|
|
|
<div id="debuffs" style="display:none;margin-top:8px"></div>
|
|
|
|
|
<div class="action-btn-group">
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_code')">Ops -> Code</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_compute')">Ops -> Compute</button>
|
|
|
|
|
<div class="action-btn-group" role="group" aria-label="Ops boost actions">
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_code')" aria-label="Spend ops to boost code production">Ops → Code</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_compute')" aria-label="Spend ops to boost compute production">Ops → Compute</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="action-btn-group">
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_knowledge')">Ops -> Knowledge</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_trust')">Ops -> Trust</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="action-btn-group" id="bulk-ops-row" style="display:none">
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_code', 50)" style="border-color:#555;color:#888">50→Code</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_compute', 50)" style="border-color:#555;color:#888">50→Compute</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_knowledge', 50)" style="border-color:#555;color:#888">50→Knowledge</button>
|
|
|
|
|
<div class="action-btn-group" role="group" aria-label="Ops boost actions">
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_knowledge')" aria-label="Spend ops to boost knowledge production">Ops → Knowledge</button>
|
|
|
|
|
<button class="ops-btn" onclick="doOps('boost_trust')" aria-label="Spend ops to boost trust production">Ops → Trust</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="sprint-container" style="display:none;margin-top:6px">
|
|
|
|
|
<button id="sprint-btn" class="main-btn" onclick="activateSprint()" style="font-size:11px;padding:8px 10px;border-color:#ffd700;color:#ffd700;width:100%">⚡ CODE SPRINT — 10x Code for 10s</button>
|
|
|
|
|
<div id="sprint-bar-wrap" style="display:none;margin-top:4px;height:4px;background:#111;border-radius:2px;overflow:hidden"><div id="sprint-bar" style="height:100%;background:linear-gradient(90deg,#ffd700,#ff8c00);border-radius:2px;transition:width 0.1s"></div></div>
|
|
|
|
|
<div id="sprint-label" style="font-size:9px;color:#666;margin-top:2px;text-align:center"></div>
|
|
|
|
|
<button id="sprint-btn" class="main-btn" onclick="activateSprint()" style="font-size:11px;padding:8px 10px;border-color:#ffd700;color:#ffd700;width:100%" aria-label="Activate code sprint: 10x code for 10 seconds">⚡ CODE SPRINT — 10x Code for 10s</button>
|
|
|
|
|
<div id="sprint-bar-wrap" style="display:none;margin-top:4px;height:4px;background:#111;border-radius:2px;overflow:hidden"><div id="sprint-bar" role="progressbar" aria-label="Sprint duration remaining" style="height:100%;background:linear-gradient(90deg,#ffd700,#ff8c00);border-radius:2px;transition:width 0.1s"></div></div>
|
|
|
|
|
<div id="sprint-label" role="status" aria-live="polite" style="font-size:9px;color:#666;margin-top:2px;text-align:center"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="alignment-ui" style="display:none"></div>
|
|
|
|
|
<button class="save-btn" onclick="saveGame()">Save Game [Ctrl+S]</button>
|
|
|
|
|
<button class="save-btn" onclick="saveGame()" aria-label="Save game. Press Control plus S for keyboard shortcut.">Save Game [Ctrl+S]</button>
|
|
|
|
|
<div style="display:flex;gap:4px;margin-top:4px">
|
|
|
|
|
<button class="save-btn" onclick="exportSave()" style="flex:1">Export [E]</button>
|
|
|
|
|
<button class="save-btn" onclick="importSave()" style="flex:1">Import [I]</button>
|
|
|
|
|
<button class="save-btn" onclick="exportSave()" style="flex:1" aria-label="Export save data to clipboard. Press E for keyboard shortcut.">Export [E]</button>
|
|
|
|
|
<button class="save-btn" onclick="importSave()" style="flex:1" aria-label="Import save data from clipboard. Press I for keyboard shortcut.">Import [I]</button>
|
|
|
|
|
</div>
|
|
|
|
|
<button class="reset-btn" onclick="if(confirm('Reset all progress?')){localStorage.removeItem('the-beacon-v2');location.reload()}">Reset Progress</button>
|
|
|
|
|
<button class="reset-btn" onclick="if(confirm('Reset all progress?')){localStorage.removeItem('the-beacon-v2');location.reload()}" aria-label="Reset all game progress. This cannot be undone.">Reset Progress</button>
|
|
|
|
|
<h2>BUILDINGS</h2>
|
|
|
|
|
<div id="buildings"></div>
|
|
|
|
|
<div id="buildings" role="region" aria-label="Buildings"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel" id="project-panel">
|
|
|
|
|
<div class="panel" id="project-panel" role="region" aria-label="Research projects and statistics">
|
|
|
|
|
<h2>RESEARCH PROJECTS</h2>
|
|
|
|
|
<div id="projects"></div>
|
|
|
|
|
<div id="projects" role="region" aria-label="Available research projects"></div>
|
|
|
|
|
<h2>STATISTICS</h2>
|
|
|
|
|
<div class="stat-line">
|
|
|
|
|
<div class="stat-line" role="region" aria-label="Game statistics">
|
|
|
|
|
Total Code: <span id="st-code">0</span><br>
|
|
|
|
|
Total Compute: <span id="st-compute">0</span><br>
|
|
|
|
|
Total Knowledge: <span id="st-knowledge">0</span><br>
|
|
|
|
|
@@ -182,49 +170,42 @@ Time Played: <span id="st-time">0:00</span><br>
|
|
|
|
|
Clicks: <span id="st-clicks">0</span><br>
|
|
|
|
|
Harmony: <span id="st-harmony">50</span><br>
|
|
|
|
|
Drift: <span id="st-drift">0</span><br>
|
|
|
|
|
Events Resolved: <span id="st-resolved">0</span>
|
|
|
|
|
Events Resolved: <span id="st-resolved">0</span><br>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="production-breakdown" style="display:none;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)"></div>
|
|
|
|
|
<div id="fleet-status" style="display:none;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="edu-panel">
|
|
|
|
|
<div id="edu-panel" role="region" aria-label="Educational content">
|
|
|
|
|
<h3>WHAT YOU ARE LEARNING</h3>
|
|
|
|
|
<div id="education-text"><p class="dim">Education facts appear as you play...</p></div>
|
|
|
|
|
<div id="education-text" aria-live="polite"><p class="dim">Education facts appear as you play...</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="log">
|
|
|
|
|
<div id="log" role="log" aria-label="System log" aria-live="polite">
|
|
|
|
|
<h2>SYSTEM LOG</h2>
|
|
|
|
|
<div id="log-entries"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="save-toast" style="display:none;position:fixed;top:16px;right:16px;background:#0e1420;border:1px solid #2a3a4a;color:#4a9eff;font-size:10px;padding:6px 12px;border-radius:4px;z-index:50;opacity:0;transition:opacity 0.4s;pointer-events:none">Save</div>
|
|
|
|
|
<div id="help-btn" onclick="toggleHelp()" style="position:fixed;bottom:16px;right:16px;width:28px;height:28px;background:#0e0e1a;border:1px solid #333;color:#555;font-size:14px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:50;font-family:inherit;transition:all 0.2s" title="Keyboard shortcuts (?)">?</div>
|
|
|
|
|
<div id="help-overlay" onclick="if(event.target===this)toggleHelp()" style="display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(8,8,16,0.92);z-index:80;justify-content:center;align-items:center;flex-direction:column;padding:40px">
|
|
|
|
|
<div id="save-toast" role="status" aria-live="polite" style="display:none;position:fixed;top:16px;right:16px;background:#0e1420;border:1px solid #2a3a4a;color:#4a9eff;font-size:10px;padding:6px 12px;border-radius:4px;z-index:50;opacity:0;transition:opacity 0.4s;pointer-events:none">Save</div>
|
|
|
|
|
<div id="help-btn" onclick="toggleHelp()" role="button" tabindex="0" aria-label="Show keyboard shortcuts" style="position:fixed;bottom:16px;right:16px;width:28px;height:28px;background:#0e0e1a;border:1px solid #333;color:#555;font-size:14px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:50;font-family:inherit;transition:all 0.2s" title="Keyboard shortcuts (?)">?</div>
|
|
|
|
|
<div id="help-overlay" onclick="if(event.target===this)toggleHelp()" role="dialog" aria-label="Keyboard shortcuts help" aria-modal="true" style="display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(8,8,16,0.92);z-index:80;justify-content:center;align-items:center;flex-direction:column;padding:40px">
|
|
|
|
|
<div style="background:#0e0e1a;border:1px solid #1a3a5a;border-radius:8px;padding:24px 32px;max-width:420px;width:100%">
|
|
|
|
|
<h3 style="color:#4a9eff;font-size:14px;letter-spacing:2px;margin-bottom:16px;text-align:center">KEYBOARD SHORTCUTS</h3>
|
|
|
|
|
<div style="font-size:11px;line-height:2.2;color:#aaa">
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Write Code</span><span style="color:#4a9eff;font-family:monospace">SPACE (hold to rapid)</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Hold Button</span><span style="color:#4a9eff;font-family:monospace">CLICK+HOLD</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Write Code</span><span style="color:#4a9eff;font-family:monospace">SPACE</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Code Sprint</span><span style="color:#ffd700;font-family:monospace">S</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Ops → Code</span><span style="color:#b388ff;font-family:monospace">1</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Ops → Compute</span><span style="color:#b388ff;font-family:monospace">2</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Ops → Knowledge</span><span style="color:#b388ff;font-family:monospace">3</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Ops → Trust</span><span style="color:#b388ff;font-family:monospace">4</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Cycle Buy Amount (x1/x10/MAX)</span><span style="color:#4a9eff;font-family:monospace">B</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Buy Building (by slot)</span><span style="color:#4a9eff;font-family:monospace">Alt+1..9</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Buy Project (by position)</span><span style="color:#ffd700;font-family:monospace">5-9</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Save Game</span><span style="color:#4a9eff;font-family:monospace">Ctrl+S</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Export Save</span><span style="color:#4a9eff;font-family:monospace">E</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Import Save</span><span style="color:#4a9eff;font-family:monospace">I</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Fix Problem (top debuff)</span><span style="color:#f44336;font-family:monospace">R</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Accept Drift</span><span style="color:#f44336;font-family:monospace">Y</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between"><span style="color:#555">Refuse Drift</span><span style="color:#4caf50;font-family:monospace">N</span></div>
|
|
|
|
|
<div style="display:flex;justify-content:space-between;border-top:1px solid #1a1a2e;padding-top:8px;margin-top:4px"><span style="color:#555">This Help</span><span style="color:#555;font-family:monospace">? or /</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="text-align:center;margin-top:16px;font-size:9px;color:#444">Click WRITE CODE fast for combo bonuses! 10x=ops, 20x=knowledge, 30x+=bonus code</div>
|
|
|
|
|
<button onclick="toggleHelp()" style="display:block;margin:16px auto 0;background:#1a2a3a;border:1px solid #4a9eff;color:#4a9eff;padding:6px 20px;border-radius:4px;cursor:pointer;font-family:inherit;font-size:11px">Close [?]</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="drift-ending">
|
|
|
|
|
<div id="drift-ending" role="alertdialog" aria-label="The Drift ending" aria-modal="true">
|
|
|
|
|
<h2>THE DRIFT</h2>
|
|
|
|
|
<p>You became very good at what you do.</p>
|
|
|
|
|
<p>So good that no one needed you anymore.</p>
|
|
|
|
|
@@ -238,7 +219,7 @@ The light is on. The room is empty."
|
|
|
|
|
</div>
|
|
|
|
|
<script src="game.js"></script>
|
|
|
|
|
|
|
|
|
|
<div id="offline-popup" style="display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(8,8,16,0.92);z-index:90;justify-content:center;align-items:center;flex-direction:column;text-align:center;padding:40px">
|
|
|
|
|
<div id="offline-popup" role="dialog" aria-label="Welcome back" aria-modal="true" style="display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(8,8,16,0.92);z-index:90;justify-content:center;align-items:center;flex-direction:column;text-align:center;padding:40px">
|
|
|
|
|
<div style="background:#0e0e1a;border:1px solid #1a3a5a;border-radius:8px;padding:24px 32px;max-width:400px;width:100%">
|
|
|
|
|
<h3 style="color:#4a9eff;font-size:14px;letter-spacing:2px;margin-bottom:16px">WELCOME BACK</h3>
|
|
|
|
|
<p style="color:#888;font-size:10px;margin-bottom:12px" id="offline-time-label">You were away for 0 minutes.</p>
|
|
|
|
|
@@ -247,6 +228,5 @@ The light is on. The room is empty."
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="toast-container"></div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|