Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
336 lines (334 loc) · 25.3 KB
/
Copy pathindex.html
File metadata and controls
336 lines (334 loc) · 25.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Hive Runner — run across the blockchain</title>
<meta name="description" content="A Hive-powered arcade runner: real live blocks, witnesses, and posts stream past you, your on-chain activity powers your run, and you compete on a weekly on-chain leaderboard." />
<style>
:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #0b0b12; color: #e8e8f0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
/* The page scrolls; the stage has its own size. (It used to be a fixed 100dvh column where the
canvas got whatever height was left — opening a card or rotating a phone shrank it to nothing.) */
:root { --stage-h: max(220px, calc(100dvh - 300px)); }
#app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 12px;
min-height: 100dvh; box-sizing: border-box; }
h1 { font-size: 16px; margin: 2px 0 0; font-weight: 600; letter-spacing: 0.3px; }
.sub { font-size: 11px; color: #8a8aa0; margin: 0; }
.sub .kick { color: #e88; font-weight: 700; letter-spacing: 0.3px; }
.linkbtn { background: none; border: none; color: #9fd3ff; font-size: 11px; cursor: pointer; padding: 0; text-decoration: underline; font-weight: 600; }
/* header brand mark */
.brandline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.brandmark svg { width: 19px; height: 17px; display: block; fill: #e31337; filter: drop-shadow(0 0 6px #e3133777); }
/* story intro overlay — branded */
.intro-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 12px;
background: radial-gradient(ellipse at 50% 28%, rgba(60,12,26,0.82), rgba(6,7,15,0.97)); }
.intro-card { position: relative; overflow-x: hidden; overflow-y: auto; max-height: calc(100dvh - 24px); box-sizing: border-box;
max-width: 472px; text-align: center; padding: 30px 30px 26px;
border: 1px solid #4a2a3c; border-radius: 18px;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23e31337' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l11 6.35 11-6.35V17.9l-11-6.35L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat,
linear-gradient(160deg, #191423, #241636);
box-shadow: 0 20px 70px #000c, inset 0 0 0 1px #e3133718;
animation: introRise .42s cubic-bezier(.2,.7,.3,1) both; }
.intro-card::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
background: linear-gradient(90deg, transparent, #e31337, #ff8a3a, transparent); }
.intro-watermark { position: absolute; right: -34px; bottom: -34px; width: 190px; opacity: .05; pointer-events: none; }
.intro-watermark svg { width: 100%; fill: #e31337; }
.intro-logo { position: relative; display: flex; justify-content: center; margin-bottom: 12px; animation: introGlow 2.8s ease-in-out infinite; }
.intro-logo svg { width: 46px; height: 40px; fill: #e31337; }
.intro-kicker { position: relative; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #ff5568; font-weight: 800; }
.intro-title { position: relative; font-size: 22px; margin: 7px 0 12px; font-weight: 800; letter-spacing: .2px; color: #fff; }
.intro-rule { width: 64px; height: 2px; margin: 0 auto 16px; border-radius: 2px; background: linear-gradient(90deg, #e31337, #ff8a3a); }
.intro-card p { position: relative; font-size: 13.5px; line-height: 1.62; color: #c9c9dc; margin: 0 0 11px; }
.intro-card p b { color: #fff; font-weight: 700; }
.intro-card p b.ally { color: #7fe0ff; }
.intro-card p b.foe { color: #ff6a7a; }
.intro-creed { position: relative; margin: 16px auto 18px; max-width: 330px; padding: 9px 16px;
color: #8dff9e; font-weight: 700; font-style: italic; font-size: 14px;
border: 1px solid #2a5a3a; border-radius: 10px; background: rgba(20,48,31,0.35); }
.intro-begin { position: relative; margin-top: 4px; font-size: 15px; font-weight: 800; letter-spacing: .3px;
padding: 11px 26px; border-radius: 12px; color: #fff; border: 0; cursor: pointer;
background: linear-gradient(180deg, #ff3a4e, #c30f22);
box-shadow: 0 8px 22px #e3133766, inset 0 1px 0 #ff8a99; }
.intro-begin:hover { filter: brightness(1.08); }
@keyframes introRise { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes introGlow { 0%,100% { filter: drop-shadow(0 0 9px #e3133766); } 50% { filter: drop-shadow(0 0 22px #e31337cc); } }
.hint { font-size: 11px; color: #7a7a92; margin: 2px 0 0; }
#stage-host { position: relative; flex: 0 0 auto; width: 100%; display: flex;
align-items: center; justify-content: center; }
/* The 640px cap here was the world's LOGICAL width, so on anything wider than a
laptop the stage rendered 1:1 in the middle of a sea of background — roughly a third
of a 1900px screen. Height is now the only limit. */
#stage-host canvas { display: block; aspect-ratio: 4 / 3; height: auto;
width: min(100%, calc(var(--stage-h) * 4 / 3)); border-radius: 12px;
box-shadow: 0 6px 30px #0008; touch-action: none; }
/* ── Wide screens: stage on the left, everything else beside it ───────────────────
Stacked in one centred column, three rows of chrome sat ABOVE the canvas and pushed
it down the page while both sides stayed empty. Moving the account row, controls and
cards into a sidebar gives the stage its width and its height back. Nothing is
removed — it moves. Rows are assigned explicitly rather than left to auto-flow, so
the order cannot drift if the markup changes.
Below 1100px none of this applies and the original single column is used unchanged. */
@media (min-width: 1100px) {
:root { --stage-h: max(320px, calc(100dvh - 128px)); }
#app { display: grid; align-content: start;
grid-template-columns: minmax(0, 1fr) 340px;
column-gap: 20px; row-gap: 8px;
max-width: 1800px; margin: 0 auto; padding: 10px 20px; }
.brandline { grid-column: 1 / -1; grid-row: 1; }
.sub { grid-column: 1 / -1; grid-row: 2; }
#stage-host { grid-column: 1; grid-row: 3 / span 6; align-self: start; }
.hive-bar { grid-column: 2; grid-row: 3; flex-wrap: wrap; justify-content: flex-start; }
.ctrl-row { grid-column: 2; grid-row: 4; }
.mode-row { grid-column: 2; grid-row: 5; flex-wrap: wrap; }
#quests { grid-column: 2; grid-row: 6; }
#wardrobe { grid-column: 2; grid-row: 7; }
#contest { grid-column: 2; grid-row: 8; }
.hint { grid-column: 1 / -1; grid-row: 9; text-align: center; }
#panel { grid-column: 2; grid-row: 10; }
/* the sidebar fills its column rather than sitting at a centred content width */
.hive-bar, .ctrl-row, .mode-row, #quests, #wardrobe, #contest {
width: 100%; max-width: none; box-sizing: border-box; margin: 0; }
/* the cards can breathe now that they are not competing with the stage for height */
#wardrobe-grid { max-height: 320px; }
}
/* Short landscape screens (a rotated phone): while a run is live, hide everything but the
controls and give the game the whole viewport. */
@media (orientation: landscape) and (max-height: 520px) {
body.playing { --stage-h: calc(100dvh - 58px); }
body.playing h1, body.playing .sub, body.playing .hive-bar, body.playing .mode-row,
body.playing #quests, body.playing #wardrobe, body.playing #contest, body.playing .hint { display: none; }
body.playing #app { padding-top: 4px; gap: 4px; }
}
#playagain { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%);
display: none; z-index: 20; background: #5ad; color: #04121a; border: 0; border-radius: 10px;
padding: 12px 24px; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 20px #0008; }
#panel { display: none; /* dev-only; shown via ?dev=1 */ width: 360px; max-width: 92vw;
background: #15151f; border: 1px solid #262633; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
#panel h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #7a7a92;
margin: 0 0 8px; }
.row { display: flex; justify-content: space-between; padding: 3px 0; }
.row b { color: #fff; }
.muted { color: #8a8aa0; }
.controls { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
label { font-size: 12px; color: #b6b6c8; display: flex; gap: 6px; align-items: center; }
input[type="range"] { accent-color: #5ad; }
button { background: #5ad; color: #04121a; border: 0; border-radius: 8px; padding: 7px 12px;
font-weight: 700; cursor: pointer; }
button.ghost { background: #23232f; color: #cfe; }
select { background: #23232f; color: #cfe; border: 1px solid #333; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.hive-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #b6b6c8; }
.hive-bar input { background: #15151f; border: 1px solid #333; border-radius: 8px; color: #e8e8f0; padding: 6px 8px; width: 160px; }
#hive-status { font-size: 12px; color: #8a8aa0; }
#energy { font-size: 12px; font-weight: 800; color: #ffd76a; background: #2a2410; border: 1px solid #5a4a12; padding: 4px 9px; border-radius: 999px; cursor: help; }
button:disabled { opacity: .45; cursor: default; }
.ctrl-row { display: flex; gap: 8px; }
.ctrl-row button { padding: 6px 18px; font-size: 14px; }
.mode-row { display: flex; gap: 6px; align-items: center; }
.modebtn { background: #23232f; color: #b6b6c8; border: 1px solid #33334a; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer; }
#mode-ranked.active { background: #14301f; color: #8dff9e; border-color: #2a5; }
#mode-free.active { background: #2a1440; color: #d9b6ff; border-color: #7a4aa0; }
#mode-note { font-size: 11px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); top: 16px; background: #10261c; color: #8dff9e; border: 1px solid #2a5; padding: 9px 16px; border-radius: 10px; font-size: 13px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .3s; }
#toast.show { opacity: 1; }
/* post-coin pickup: a clickable "you found a Hive post" toast (purple, matches the post-coins) */
#post-toast { position: fixed; left: 50%; transform: translateX(-50%); top: 54px; display: none; align-items: center; gap: 9px;
width: min(430px, 92vw); box-sizing: border-box; background: #1b1030; color: #f2e9ff; border: 1px solid #c86bff;
padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 13px; z-index: 55; text-decoration: none;
box-shadow: 0 6px 22px #0009; opacity: 0; transition: opacity .25s; }
#post-toast.show { display: flex; opacity: 1; }
#post-toast img { width: 28px; height: 28px; border-radius: 50%; background: #322; object-fit: cover; flex: none; border: 1px solid #c86bff88; }
#post-toast .pt-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#post-toast .pt-name { font-weight: 800; color: #d9b6ff; }
#post-toast .pt-go { flex: none; font-weight: 800; color: #b98cff; font-size: 12px; }
/* weekly contest — collapsible so it never eats the game's viewport space */
#contest { width: min(460px, 94vw); background: #14141f; border: 1px solid #262633; border-radius: 10px; font-size: 12px; }
.contest-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; user-select: none; }
.contest-head .grow { flex: 1; }
.contest-head b { color: #ffd76a; }
#contest-count { color: #9fd3ff; }
#contest-caret { color: #7a7a92; transition: transform .15s; }
#contest.open #contest-caret { transform: rotate(90deg); }
#contest-body { display: none; padding: 0 10px 10px; }
#contest.open #contest-body { display: block; }
#contest-prize { color: #b6b6c8; margin: 0 0 6px; }
#contest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow-y: auto; }
.lb-row { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 7px; background: #1b1b28; }
.lb-row.me { background: #14301f; border: 1px solid #2a5; }
.lb-row.pending { background: #2a2410; border: 1px dashed #5a4a12; }
.lb-rank { width: 20px; text-align: right; color: #8a8aa0; font-weight: 700; }
.lb-row img { width: 22px; height: 22px; border-radius: 50%; background: #222; object-fit: cover; }
.lb-name { flex: 1; color: #e8e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 800; color: #8dff9e; }
#contest-note { color: #8a8aa0; margin-top: 7px; }
#contest-empty { color: #8a8aa0; padding: 6px 2px; }
/* daily quests — collapsible, mirrors the contest card */
#quests { width: min(460px, 94vw); background: #14141f; border: 1px solid #262633; border-radius: 10px; font-size: 12px; }
#quests .contest-head b { color: #9fe6b0; }
#streak-chip { font-weight: 800; color: #ffb15a; }
#quests-caret { color: #7a7a92; transition: transform .15s; }
#quests.open #quests-caret { transform: rotate(90deg); }
#quests-body { display: none; padding: 4px 10px 10px; }
#quests.open #quests-body { display: block; }
#quests-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quest { display: flex; align-items: center; gap: 8px; }
.quest .qx { width: 16px; text-align: center; }
.quest.done .qlabel { color: #8dff9e; text-decoration: line-through; }
.quest .qbar { flex: 1; height: 6px; background: #23233a; border-radius: 4px; overflow: hidden; }
.quest .qfill { height: 100%; background: #4aa3ff; }
.quest.done .qfill { background: #2ecc71; }
.quest .qnum { color: #9a9ab0; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
#quests-note { margin-top: 8px; }
/* wardrobe — collapsible cosmetics locker */
#wardrobe { width: min(460px, 94vw); background: #14141f; border: 1px solid #262633; border-radius: 10px; font-size: 12px; }
#wardrobe .contest-head b { color: #d9b6ff; }
#wardrobe-level { font-weight: 800; color: #ffd76a; }
#wardrobe-caret { color: #7a7a92; transition: transform .15s; }
#wardrobe.open #wardrobe-caret { transform: rotate(90deg); }
#wardrobe-body { display: none; padding: 6px 10px 10px; }
#wardrobe.open #wardrobe-body { display: block; }
#wardrobe-xpbar { height: 6px; background: #23233a; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
#wardrobe-xpfill { display: block; height: 100%; background: #b98cff; width: 0; }
#wardrobe-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.wtab { background: #23232f; color: #b6b6c8; border: 1px solid #33334a; border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.wtab.active { background: #3a2a55; color: #e6d6ff; border-color: #6b4a9a; }
#wardrobe-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 244px; overflow-y: auto; }
.witem { width: calc(50% - 3px); box-sizing: border-box; background: #1b1b28; border: 1px solid #2a2a3a; border-left-width: 3px; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.witem .wname { font-weight: 700; color: #e8e8f0; }
.witem .wmeta { font-size: 10px; color: #8a8aa0; }
.witem .wperk { font-size: 10px; color: #ffcf6a; font-weight: 700; }
.witem .wperk-note { color: #7a7a92; font-weight: 400; }
.witem.locked { opacity: .55; cursor: default; }
.witem.equipped { background: #14301f; }
.witem.equipped .wmeta { color: #8dff9e; }
.witem.common { border-left-color: #7a7a92; }
.witem.rare { border-left-color: #4aa3ff; }
.witem.epic { border-left-color: #b98cff; }
.witem.legendary { border-left-color: #ffd23f; }
</style>
</head>
<body>
<div id="app">
<h1 class="brandline"><span class="brandmark" aria-hidden="true"><svg viewBox="0 0 220 190"><path d="M157.27,107.26a1,1,0,0,1,.82,1.42l-46.75,80.85a1,1,0,0,1-.82.47H81.94a.94.94,0,0,1-.81-1.42l46.75-80.85a.94.94,0,0,1,.81-.47ZM129.48,84.09a1,1,0,0,1-.82-.47L81.13,1.42A.94.94,0,0,1,81.94,0h28.58a1,1,0,0,1,.82.47l47.53,82.2a.94.94,0,0,1-.81,1.42Z"/><path d="M135.13,1.42A.94.94,0,0,1,136,0h28.62a.93.93,0,0,1,.81.47l54.49,94.06a.93.93,0,0,1,0,.94l-54.49,94.06a.93.93,0,0,1-.81.47H136a.94.94,0,0,1-.82-1.42L189.34,95Zm-23.26,93.1a1,1,0,0,1,0,1L57.13,189.53a1,1,0,0,1-1.65,0L.13,95.48a1,1,0,0,1,0-1L54.87.47a1,1,0,0,1,1.65,0Z"/></svg></span><span id="game-title">Hive Runner</span></h1>
<p class="sub"><span class="kick">Keepers of the Chain</span> · a Hive <span id="archetype-label">runner</span> — deliver every block before it fades ⛓ · <button id="story-btn" class="linkbtn">📖 Story</button></p>
<div class="hive-bar">
<input id="hive-user" placeholder="your Hive @username" />
<button id="login-btn">🔑 Login</button>
<button id="hive-load" class="ghost">Load</button>
<span id="hive-status">not connected</span>
<span id="energy" title="" style="display:none"></span>
<button id="logout" class="ghost" style="display:none">logout</button>
<span id="team-row" style="display:none; gap:8px; align-items:center;">
<label>Team <select id="community-select"></select></label>
<button id="post-score" disabled>Post score</button>
</span>
</div>
<div class="ctrl-row">
<button id="start-btn">▶ Start</button>
<button id="pause-btn" class="ghost" disabled>⏸ Pause</button>
<button id="restart-scene" class="ghost" title="Rebuild the scene — preview equipped items">↻ Restart</button>
</div>
<div class="mode-row">
<button id="mode-ranked" class="modebtn active" title="Fair run — trail perks off, score counts for the weekly contest">🏆 Ranked</button>
<button id="mode-free" class="modebtn" title="Trail perks on — casual run, not eligible for the contest">✨ Free-play</button>
<span id="mode-note" class="muted"></span>
</div>
<div id="stage-host">
<button id="playagain">↻ Play again</button>
</div>
<div id="quests">
<div class="contest-head" id="quests-toggle">
<span>🎯 <b>Daily Quests</b></span>
<span id="streak-chip">🔥 0</span>
<span class="grow"></span>
<span id="quests-count" class="muted"></span>
<span id="quests-caret">▸</span>
</div>
<div id="quests-body">
<ul id="quests-list"></ul>
<div id="quests-note" class="muted"></div>
</div>
</div>
<div id="wardrobe">
<div class="contest-head" id="wardrobe-toggle">
<span>👕 <b>Wardrobe</b></span>
<span id="wardrobe-level">Lv 1</span>
<span class="grow"></span>
<span id="wardrobe-xp" class="muted"></span>
<span id="wardrobe-caret">▸</span>
</div>
<div id="wardrobe-body">
<div id="wardrobe-xpbar"><span id="wardrobe-xpfill"></span></div>
<div id="wardrobe-tabs"></div>
<div id="wardrobe-grid"></div>
</div>
</div>
<div id="contest">
<div class="contest-head" id="contest-toggle">
<span>🏆 <b>Weekly Contest</b></span>
<span id="contest-week" class="muted"></span>
<span class="grow"></span>
<span id="contest-count"></span>
<span id="contest-caret">▸</span>
</div>
<div id="contest-body">
<p id="contest-prize"></p>
<ol id="contest-list"></ol>
<div id="contest-empty">No scores yet this week — be the first! Play, then <b>Post score</b> to enter.</div>
<div id="contest-note"></div>
</div>
</div>
<p class="hint" id="hint"></p>
<div id="panel">
<h2>Hive energy (live)</h2>
<div class="row"><span class="muted">RC / mana baseline</span><b id="v-baseline">—</b></div>
<div class="row"><span class="muted">On-chain activity (24h ops)</span><b id="v-activity">—</b></div>
<div class="row"><span class="muted">Actifit steps bonus</span><b id="v-bonus">—</b></div>
<div class="row" style="border-top:1px solid #262633;margin-top:4px;padding-top:6px">
<span>Total energy <span class="muted">(cap 15)</span></span><b id="v-energy">—</b></div>
<h2 style="margin-top:12px">Effects in game</h2>
<div class="row"><span class="muted">→ Bonus lives</span><b id="v-bonuslives">—</b></div>
<div class="row"><span class="muted">→ Avatar boost (size / jump)</span><b id="v-basket">—</b></div>
<div class="row"><span class="muted">→ Score multiplier</span><b id="v-scoremult">—</b></div>
<h2 style="margin-top:12px">Hive chain (live) ⛓</h2>
<div class="row"><span class="muted">Head block</span><b id="v-block">connecting…</b></div>
<div class="row"><span class="muted">Last block</span><b id="v-ops">—</b></div>
<div class="controls" style="flex-direction:column;align-items:stretch;gap:10px">
<label style="justify-content:space-between">RC / mana %
<input id="mana-slider" type="range" min="0" max="100" step="5" value="70" />
</label>
<label style="justify-content:space-between">On-chain ops (24h)
<input id="ops-slider" type="range" min="0" max="60" step="1" value="15" />
</label>
<label style="justify-content:space-between">Actifit steps
<input id="steps-slider" type="range" min="0" max="15000" step="500" value="4000" />
</label>
<div style="display:flex;gap:8px">
<button id="apply-btn" class="ghost">Apply & restart</button>
<button id="restart-btn">Restart</button>
</div>
</div>
<p class="sub" style="margin-top:10px">Move the basket with pointer / ← →. Catch fruit, dodge rocks.
The three sliders mock generic <b>on-chain Hive signals</b> — Actifit is just one optional feeder.</p>
</div>
</div>
<div id="toast"></div>
<a id="post-toast" target="_blank" rel="noopener noreferrer"></a>
<div id="intro" class="intro-back" style="display:none">
<div class="intro-card">
<span class="intro-watermark" aria-hidden="true"><svg viewBox="0 0 220 190"><path d="M157.27,107.26a1,1,0,0,1,.82,1.42l-46.75,80.85a1,1,0,0,1-.82.47H81.94a.94.94,0,0,1-.81-1.42l46.75-80.85a.94.94,0,0,1,.81-.47ZM129.48,84.09a1,1,0,0,1-.82-.47L81.13,1.42A.94.94,0,0,1,81.94,0h28.58a1,1,0,0,1,.82.47l47.53,82.2a.94.94,0,0,1-.81,1.42Z"/><path d="M135.13,1.42A.94.94,0,0,1,136,0h28.62a.93.93,0,0,1,.81.47l54.49,94.06a.93.93,0,0,1,0,.94l-54.49,94.06a.93.93,0,0,1-.81.47H136a.94.94,0,0,1-.82-1.42L189.34,95Zm-23.26,93.1a1,1,0,0,1,0,1L57.13,189.53a1,1,0,0,1-1.65,0L.13,95.48a1,1,0,0,1,0-1L54.87.47a1,1,0,0,1,1.65,0Z"/></svg></span>
<div class="intro-logo" aria-hidden="true"><svg viewBox="0 0 220 190"><path d="M157.27,107.26a1,1,0,0,1,.82,1.42l-46.75,80.85a1,1,0,0,1-.82.47H81.94a.94.94,0,0,1-.81-1.42l46.75-80.85a.94.94,0,0,1,.81-.47ZM129.48,84.09a1,1,0,0,1-.82-.47L81.13,1.42A.94.94,0,0,1,81.94,0h28.58a1,1,0,0,1,.82.47l47.53,82.2a.94.94,0,0,1-.81,1.42Z"/><path d="M135.13,1.42A.94.94,0,0,1,136,0h28.62a.93.93,0,0,1,.81.47l54.49,94.06a.93.93,0,0,1,0,.94l-54.49,94.06a.93.93,0,0,1-.81.47H136a.94.94,0,0,1-.82-1.42L189.34,95Zm-23.26,93.1a1,1,0,0,1,0,1L57.13,189.53a1,1,0,0,1-1.65,0L.13,95.48a1,1,0,0,1,0-1L54.87.47a1,1,0,0,1,1.65,0Z"/></svg></div>
<div class="intro-kicker">Keepers of the Chain</div>
<h2 class="intro-title">You are a Courier of the Hive</h2>
<div class="intro-rule"></div>
<p>Every three seconds, the Hive seals a new <b>block</b> — a parcel of everyone's stories, votes, and memories.</p>
<p>No server carries it onward. Only the <b class="ally">Couriers</b>. Run each block to the next <b class="ally">Witness</b> before it slips into the <b class="foe">Fade</b>.</p>
<p>The <b class="foe">Monolith</b> says one machine could do your job — that people are too slow to keep their own history. Every block you deliver proves it wrong.</p>
<div class="intro-creed">Run, Courier. Keep the chain alive.</div>
<button id="intro-begin" class="intro-begin">▶ Begin delivery</button>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>