-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
492 lines (455 loc) · 25.5 KB
/
Copy pathindex.html
File metadata and controls
492 lines (455 loc) · 25.5 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Hexwright — hex wargame map editor</title>
<link rel="stylesheet" href="opendesign/design-systems/hexwright-instrument/tokens/colors_and_type.css" />
<link rel="stylesheet" href="src/style.css" />
</head>
<body class="hx-ui">
<header id="status-strip" class="status-strip hx-ui">
<div class="project">
<span id="strip-project-name" class="name">Hexwright</span>
<span id="strip-project-sub" class="sub hx-data"></span>
</div>
<div id="mode-hint" class="hint"><b>Inspect</b> — click a hex to edit it<span class="hint-extra"> · <span class="kbd">Esc</span> close · edges apply the ink you tap</span></div>
<div class="right">
<span id="save-state" class="save-state hx-data">autosaved</span>
<button id="fit-view" class="btn" type="button" title="Fit to view">Fit</button>
<button id="undo" class="btn" type="button" title="Undo last action">Undo</button>
<button id="clear-select" class="btn" type="button" title="Close hex editor">Esc</button>
<div class="view-toggle seg" id="view-mode" role="radiogroup" aria-label="View mode">
<button type="button" data-mode="map" aria-checked="false">Map</button>
<button type="button" data-mode="classification" aria-checked="false">Class</button>
<button type="button" data-mode="both" class="active" aria-checked="true">Both</button>
</div>
<button id="toggle-anomaly" class="btn" type="button" title="Anomaly check">Anomalies <span class="hx-data" id="anomaly-count">0</span></button>
<span id="anomaly-status" class="anomaly-status hx-data" aria-live="polite"></span>
<div class="popover-menu">
<button id="file-btn" class="btn" type="button" aria-haspopup="menu" aria-expanded="false">File ▾</button>
<div class="popover-panel file-popover" id="file-popover">
<label class="file-btn">
<span>Map</span>
<input type="file" id="load-map" accept="image/*" hidden />
</label>
<label class="file-btn">
<span>Grid</span>
<input type="file" id="load-grid" accept=".json,application/json" hidden />
</label>
<label class="file-btn">
<span>Terrain</span>
<input type="file" id="load-terrain" accept=".json,application/json" hidden />
</label>
<label class="file-btn">
<span>Sides</span>
<input type="file" id="load-sides" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Import hexsides.json">
<span>Import sides</span>
<input type="file" id="import-sides" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Import terrain.json">
<span>Import terrain</span>
<input type="file" id="import-terrain" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Import names.json">
<span>Import names</span>
<input type="file" id="import-names" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Import a wargame-map-parser terrain classification as an editable DRAFT (all imported hexes marked unconfirmed until you touch them)">
<span>Import WMP draft</span>
<input type="file" id="import-wmp" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Import one pair-list layer file (rivers.json or rail.json — strict pair-array contract)">
<span>Import pair layer</span>
<input type="file" id="import-twu" accept=".json,application/json" hidden />
</label>
<label class="file-btn ptp-only" title="Import nodes.json (point-to-point map)">
<span>Nodes</span>
<input type="file" id="load-nodes" accept=".json,application/json" hidden />
</label>
<label class="file-btn ptp-only" title="Import edges.json">
<span>Import edges</span>
<input type="file" id="import-edges" accept=".json,application/json" hidden />
</label>
<label class="file-btn ptp-only" title="Import node-attrs.json">
<span>Import node-attrs</span>
<input type="file" id="import-attrs" accept=".json,application/json" hidden />
</label>
<label class="file-btn" title="Load palette JSON">
<span>Palette</span>
<input type="file" id="load-palette" accept=".json,application/json" hidden />
</label>
</div>
</div>
<div class="popover-menu export-menu">
<button id="export-btn" class="btn primary" type="button" aria-haspopup="menu" aria-expanded="false">Export ▾</button>
<div class="popover-panel export-popover" id="export-popover">
<button id="export-sides-file" type="button">Export hexsides.json</button>
<button id="export-sides-copy" type="button">Copy hexsides</button>
<button id="export-terrain-file" type="button">Export terrain.json</button>
<button id="export-terrain-copy" type="button">Copy terrain</button>
<button id="export-features-file" type="button">Export features.json</button>
<button id="export-features-copy" type="button">Copy features</button>
<button id="export-names-file" type="button">Export names.json</button>
<button id="export-names-copy" type="button">Copy names</button>
<button id="export-twu" type="button" class="hex-only" title="Export rivers.json + rail.json pair-list layers (strict pair-array contract)">Rivers+rail pair lists</button>
<button id="export-edges-file" type="button" class="ptp-only">Export edges.json</button>
<button id="export-edges-copy" type="button" class="ptp-only">Copy edges</button>
<button id="export-attrs-file" type="button" class="ptp-only">Export node-attrs.json</button>
<button id="export-attrs-copy" type="button" class="ptp-only">Copy node-attrs</button>
<button id="export-overlay" type="button" title="Export classification PNG">Classification PNG</button>
</div>
</div>
<button id="toggle-help" class="btn help-toggle" type="button" title="Help (?)" aria-haspopup="dialog" aria-expanded="false" aria-controls="help-overlay">?</button>
</div>
</header>
<nav id="tool-rail" class="tool-rail" role="radiogroup" aria-label="Mode">
<button id="tool-inspect" class="tool is-active" type="button" role="radio" aria-checked="true" data-mode="inspect">
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M4 4 l7 16 l2.5 -6.5 L20 11 z"/></svg></span>
<span class="lbl">Inspect</span><span class="kbd">I</span>
</button>
<button id="tool-terrain" class="tool" type="button" role="radio" aria-checked="false" data-mode="terrain">
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M12 3 l7.8 4.5 v9 L12 21 l-7.8 -4.5 v-9 z"/></svg></span>
<span class="lbl">Terrain</span><span class="kbd">B</span>
</button>
<button id="tool-edges" class="tool" type="button" role="radio" aria-checked="false" data-mode="edges">
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M5 17 L17 5 M14 5 h3 v3"/></svg></span>
<span class="lbl">Edges</span><span class="kbd">E</span>
</button>
<button id="tool-features" class="tool" type="button" role="radio" aria-checked="false" data-mode="features">
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M12 2 l2.2 6.7 H21 l-5.5 4 2.1 6.6 L12 15.8 6.4 19.3 l2.1 -6.6 L3 8.7 h6.8 z"/></svg></span>
<span class="lbl">Features</span><span class="kbd">P</span>
</button>
<button id="tool-node-features" class="tool" type="button" role="radio" aria-checked="false" data-mode="nodeFeatures" hidden>
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M12 2 l2.2 6.7 H21 l-5.5 4 2.1 6.6 L12 15.8 6.4 19.3 l2.1 -6.6 L3 8.7 h6.8 z"/></svg></span>
<span class="lbl">Features</span><span class="kbd">P</span>
</button>
<button id="tool-nudge" class="tool" type="button" role="radio" aria-checked="false" data-mode="nudge">
<span class="glyph"><svg viewBox="0 0 24 24"><path d="M12 4 v16 M4 12 h16 M12 4 l-2.5 3 M12 4 l2.5 3 M12 20 l-2.5 -3 M12 20 l2.5 -3"/></svg></span>
<span class="lbl">Nudge</span><span class="kbd">N</span>
</button>
</nav>
<aside id="brush-card" class="brush-card hx-ui" aria-label="Active brush">
<div class="head">
<span>Brush</span>
<span id="brush-mode-tag" class="mode-tag">Terrain</span>
</div>
<div id="brush-ink-list" class="ink-list"></div>
<div id="node-paint-controls" class="node-paint-controls" hidden>
<button type="button" id="node-paint-mode-toggle" class="label-toggle" aria-pressed="false" title="Paint mode — click a node applies the active feature directly, no inspector">Paint mode</button>
<div id="node-paint-value-row" class="node-paint-value-row"></div>
</div>
</aside>
<aside id="layers-panel" class="panel hx-ui" aria-label="Layers">
<div class="head">
<span class="title">Layers</span>
<span class="head-meta">Land <span id="count-land" class="hx-data">0</span></span>
</div>
<div id="ptp-layer-wrap" hidden>
<div class="layer-section-label">Point-to-point</div>
<div id="ptp-layer-meta" class="hx-data dimmed"></div>
<div id="ptp-orphan-warn" class="hx-data warn" hidden></div>
</div>
<div id="node-feature-layer-wrap" hidden>
<div class="layer-section-label">Node features</div>
<div id="node-feature-layer-rows"></div>
</div>
<div id="feature-layer-rows"></div>
<div id="point-feature-layer-wrap" hidden>
<div class="layer-section-label">Point features</div>
<div id="point-feature-layer-rows"></div>
</div>
<div id="group-layer-wrap">
<div class="layer-section-label">Groups</div>
<div id="group-layer-rows"></div>
<div id="group-edit-form" class="group-edit" hidden>
<input id="group-edit-id" type="hidden" />
<label class="field-row">
<span class="lbl">Name</span>
<input id="group-edit-name" type="text" class="field-input" placeholder="Group name" />
</label>
<label class="field-row">
<span class="lbl">Kind</span>
<input id="group-edit-kind" type="text" class="field-input" placeholder="vp, objective, …" />
</label>
<label class="field-row">
<span class="lbl">Value</span>
<input id="group-edit-value" type="text" class="field-input" placeholder="numeric or label" />
</label>
<div class="group-edit-actions">
<button type="button" id="group-edit-save" class="btn primary">Save</button>
<button type="button" id="group-edit-cancel" class="btn">Cancel</button>
</div>
</div>
<div class="group-create">
<input id="group-create-name" type="text" class="field-input" placeholder="Name" />
<input id="group-create-kind" type="text" class="field-input" placeholder="Kind" />
<input id="group-create-value" type="text" class="field-input" placeholder="Value" />
<button type="button" id="group-create-btn" class="btn primary" disabled>Create from selection</button>
</div>
<div class="group-selection-actions">
<button type="button" id="group-add-sel-btn" class="btn" disabled>Add to group</button>
<button type="button" id="group-remove-sel-btn" class="btn" disabled>Remove from group</button>
</div>
</div>
<div id="terrain-layer-wrap">
<div id="terrain-fill-row" class="layer-row">
<button type="button" id="terrain-fill-eye" class="eye" aria-label="Toggle terrain fill visibility"></button>
<button type="button" id="terrain-labels-toggle" class="label-toggle" title="Terrain labels (L)" aria-label="Toggle terrain labels" aria-pressed="false">Lbl</button>
<span class="swatch terrain-fill"></span>
<span class="name">Terrain fill</span>
<span id="terrain-fill-count" class="count hx-data">0</span>
</div>
<label class="slider-row">
<span class="lbl">
<span>Terrain fill opacity</span>
<span id="terrain-fill-opacity-value" class="val">100%</span>
</span>
<input id="terrain-fill-opacity" type="range" min="0" max="1" step="0.05" value="1" aria-label="Terrain fill opacity" />
</label>
<label class="slider-row" id="terrain-label-size-row" hidden>
<span class="lbl">
<span>Label size</span>
<span id="terrain-label-size-value" class="val">100%</span>
</span>
<input id="terrain-label-size" type="range" min="0.5" max="3" step="0.1" value="1" aria-label="Terrain label size" />
</label>
</div>
<label class="slider-row">
<span class="lbl">
<span>Hexside stroke opacity</span>
<span id="hexside-stroke-opacity-value" class="val">100%</span>
</span>
<input id="hexside-stroke-opacity" type="range" min="0" max="1" step="0.05" value="1" aria-label="Hexside stroke opacity" />
</label>
<div id="trace-layer-wrap" hidden>
<div id="trace-layer-rows"></div>
<label class="slider-row">
<span class="lbl">
<span>Trace opacity</span>
<span id="trace-opacity-value" class="val">50%</span>
</span>
<input id="trace-opacity" type="range" min="0" max="1" step="0.05" value="0.5" aria-label="Trace opacity" />
</label>
</div>
<label class="slider-row">
<span class="lbl">
<span>Map dim — boost overlays</span>
<span id="map-dim-value" class="val">0%</span>
</span>
<input id="map-dim" type="range" min="0" max="0.85" step="0.05" value="0" aria-label="Map dim" />
</label>
<div id="layer-counts" hidden></div>
</aside>
<aside id="hex-editor" class="panel hexed inspector hx-ui" hidden aria-label="Hex editor">
<div class="head">
<span class="title" id="hexed-title">Hex ----</span>
<button type="button" id="hexed-close" class="collapse hx-data" aria-label="Close hex editor">×</button>
</div>
<div class="sect" style="border-top: 0;">
<label class="field-row">
<span class="lbl">Name</span>
<input id="hexed-name" type="text" class="field-input" placeholder="Location name" />
</label>
</div>
<div class="sect">
<div class="sect-t"><span>Terrain</span><span class="hx-data" id="hexed-terrain-current"></span></div>
<div class="terr-grid" id="hexed-terrain-grid"></div>
</div>
<div class="sect">
<div class="sect-t"><span>Features</span><span class="hx-data" id="hexed-feat-count">0</span></div>
<div class="featrow" id="hexed-featrow"></div>
<div class="point-feats" id="hexed-point-feats"></div>
<div class="point-feat-add" id="hexed-point-feat-add" hidden>
<select id="hexed-add-feat-select" class="field-input" aria-label="Feature type to add"></select>
<button type="button" id="hexed-add-feat-btn" class="btn primary">Add feature</button>
</div>
</div>
<div class="sect">
<div class="sect-t"><span>Edges</span><span class="hx-data" id="hexed-edges-meta"></span></div>
<div class="hexdiagram">
<svg id="hexed-svg" width="216" height="200" viewBox="0 0 216 200" aria-hidden="true">
<polygon id="hexed-fill" points="" fill="none" />
<g id="hexed-edges"></g>
<g id="hexed-edge-labels"></g>
<text id="hexed-center-code" x="108" y="97" text-anchor="middle" fill="var(--hx-text-dim)" font-family="var(--font-data)" font-size="12"></text>
</svg>
</div>
<div class="sect-t" style="margin-top: 2px;"><span id="hexed-on-edge-label">On edge —</span></div>
<div class="edchips" id="hexed-edchips"></div>
<div class="inkgrid" id="hexed-inkgrid"></div>
</div>
<div class="foot-hint">
Click an edge on the diagram, then tap an ink to add or remove it.
Edges show every ink they carry — nothing hides until checked.
</div>
</aside>
<aside id="ptp-edge-inspector" class="panel feature-insp hx-ui" hidden aria-label="Edge inspector">
<div class="head">
<span class="title" id="ptp-edge-insp-title">Edge</span>
<button type="button" id="ptp-edge-insp-close" class="collapse hx-data" aria-label="Close edge inspector">×</button>
</div>
<div class="sect" style="border-top: 0;">
<label class="field-row" id="ptp-edge-insp-which-wrap" hidden>
<span class="lbl">Connection</span>
<select id="ptp-edge-insp-which" class="field-input"></select>
</label>
<label class="field-row">
<span class="lbl">Type</span>
<select id="ptp-edge-insp-type" class="field-input"></select>
</label>
</div>
<div class="feat-insp-actions">
<button type="button" id="ptp-edge-insp-delete" class="btn danger">Delete</button>
</div>
</aside>
<aside id="node-feature-inspector" class="panel feature-insp hx-ui" hidden aria-label="Node feature inspector">
<div class="head">
<span class="title" id="node-insp-title">Node</span>
<button type="button" id="node-insp-close" class="collapse hx-data" aria-label="Close node inspector">×</button>
</div>
<div class="sect" style="border-top: 0;">
<div id="node-insp-meta" class="hx-data dimmed node-insp-meta"></div>
<div id="node-insp-fields" class="feat-insp-attrs"></div>
</div>
<div class="feat-insp-actions">
<button type="button" id="node-insp-clear" class="btn danger">Clear all</button>
<button type="button" id="node-insp-save" class="btn primary">Save</button>
</div>
</aside>
<aside id="feature-inspector" class="panel feature-insp hx-ui" hidden aria-label="Feature inspector">
<div class="head">
<span class="title" id="feat-insp-title">Feature</span>
<button type="button" id="feat-insp-close" class="collapse hx-data" aria-label="Close feature inspector">×</button>
</div>
<div class="sect" style="border-top: 0;">
<label class="field-row">
<span class="lbl">Name</span>
<input id="feat-insp-name" type="text" class="field-input" placeholder="Optional label" />
</label>
<div id="feat-insp-attrs" class="feat-insp-attrs"></div>
</div>
<div class="feat-insp-actions">
<button type="button" id="feat-insp-delete" class="btn danger">Delete</button>
<button type="button" id="feat-insp-save" class="btn primary">Save</button>
</div>
</aside>
<main class="workspace">
<div id="canvas-wrap" class="canvas-wrap">
<canvas id="map-canvas" role="img" aria-label="Map canvas"></canvas>
</div>
</main>
<div id="status" class="status" aria-live="polite"></div>
<div id="help-overlay" class="help-overlay" hidden>
<div class="help-sheet" role="dialog" aria-modal="true" aria-labelledby="help-title">
<div class="help-sheet-head">
<h1 id="help-title">Hexwright reference</h1>
<button id="close-help" type="button" class="help-close" aria-label="Close help">×</button>
</div>
<p class="help-intro">One mode is always active. The rail shows it; the strip hints it.</p>
<div class="cols">
<div>
<h2>Modes</h2>
<div class="helprow"><span>Inspect</span><span class="keys"><span class="kbd">I</span></span></div>
<div class="helprow"><span>Terrain brush</span><span class="keys"><span class="kbd">B</span></span></div>
<div class="helprow"><span>Edge paint</span><span class="keys"><span class="kbd">E</span></span></div>
<div class="helprow"><span>Point features</span><span class="keys"><span class="kbd">P</span></span></div>
<div class="helprow"><span>Nudge map</span><span class="keys"><span class="kbd">N</span></span></div>
<div class="helprow"><span>Cycle view</span><span class="keys"><span class="kbd">V</span></span></div>
<div class="helprow"><span>Terrain labels</span><span class="keys"><span class="kbd">L</span></span></div>
<div class="helprow"><span>Close</span><span class="keys"><span class="kbd">Esc</span></span></div>
</div>
<div>
<h2>Painting</h2>
<div class="helprow"><span>Toggle edge</span><span class="keys"><span class="kbd">Click</span></span></div>
<div class="helprow"><span>Paint</span><span class="keys"><span class="kbd">Drag</span></span></div>
<div class="helprow"><span>Erase</span><span class="keys"><span class="kbd">⌥</span><span class="kbd">Drag</span></span></div>
<div class="helprow"><span>Select ink</span><span class="keys"><span class="kbd">1</span>–<span class="kbd">0</span></span></div>
<p class="section-note">Applies to the loaded ink only.</p>
</div>
<div>
<h2>Navigate</h2>
<div class="helprow"><span>Pan</span><span class="keys"><span class="kbd">Drag</span></span></div>
<div class="helprow"><span>Zoom</span><span class="keys"><span class="kbd">Wheel</span></span></div>
<div class="helprow"><span>Fit map</span><span class="keys"><span class="kbd">F</span></span></div>
</div>
<div>
<h2>Data</h2>
<div class="helprow"><span>Undo</span><span class="keys"><span class="kbd">Ctrl</span><span class="kbd">Z</span></span></div>
<div class="helprow"><span>Redo</span><span class="keys"><span class="kbd">Ctrl</span><span class="kbd">Shift</span><span class="kbd">Z</span></span></div>
<div class="helprow"><span>Autosave</span><span class="keys plain">every change</span></div>
<div class="helprow"><span>Export ▾</span><span class="keys plain">terrain / hexsides / features JSON</span></div>
</div>
</div>
<p class="help-footer hx-data">Getting loaded: use <strong>File ▾</strong> pickers, drag & drop files, or open with <code>?project=<manifest-url></code> (e.g. the bundled demo, <code>?project=demo/project.json</code>).</p>
</div>
</div>
<div id="start-screen" class="start-screen hx-ui" hidden>
<div class="start-wrap">
<div class="brand">
<h1>Hexwright</h1>
<span class="ver hx-data">v2.1 — instrument build</span>
</div>
<div class="start-grid">
<div class="start-card" id="card-new">
<span class="ic"><svg viewBox="0 0 24 24"><path d="M12 3 l7.8 4.5 v9 L12 21 l-7.8 -4.5 v-9 z"/><path d="M12 7.5 v9 M7.5 12 h9"/></svg></span>
<h2>New blank project</h2>
<p>Empty layers on a fresh grid. Calibrate from three anchor hexes or import a hexgrid.json.</p>
<div class="start-card-actions">
<button type="button" id="new-with-grid" class="btn">with a hexgrid.json</button>
<button type="button" id="new-gridless" class="btn">start gridless</button>
</div>
</div>
<div class="start-card" id="card-recent">
<span class="ic"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7 v5 l4 2.4"/></svg></span>
<h2>Open recent</h2>
<p>Autosave slots, newest first. Everything you had, exactly where you left it.</p>
<span class="meta hx-data" id="recent-meta">no autosaves yet</span>
</div>
<div class="start-card" id="card-load">
<span class="ic"><svg viewBox="0 0 24 24"><path d="M3 6 h6 l2 2.5 h10 v10.5 H3 z"/></svg></span>
<h2>Load a project</h2>
<p>A ?project= manifest or individual map / grid / terrain / sides files.</p>
<span class="meta hx-data">drag & drop works anywhere — or <a href="?project=demo/project.json">open the bundled demo map</a></span>
<div class="start-load-chooser" id="load-chooser" hidden>
<div class="load-manifest-row">
<input id="manifest-url" type="text" placeholder="local/my-game/project.json" />
<button type="button" id="manifest-load-btn" class="btn primary">Load</button>
</div>
<p class="load-or hx-data">or pick files:</p>
<div class="load-picker-btns">
<button type="button" class="btn" data-pick="load-map">Map</button>
<button type="button" class="btn" data-pick="load-grid">Grid</button>
<button type="button" class="btn" data-pick="load-terrain">Terrain</button>
<button type="button" class="btn" data-pick="load-sides">Sides</button>
</div>
</div>
</div>
</div>
<div class="recent-list" id="recent-list-wrap" hidden>
<h3>Recent</h3>
<div id="recent-list"></div>
</div>
</div>
</div>
<div id="coach-card" class="coach hx-ui" hidden>
<div class="t">Start here</div>
<p>Pick a mode on the rail — one is always active. In Edges mode, choose an ink in the Brush card; everything you draw uses that ink until you switch.</p>
<div class="actions">
<span class="dismiss" id="coach-dismiss" role="button" tabindex="0">don't show again</span>
<button type="button" class="btn primary" id="coach-got-it">Got it</button>
</div>
</div>
<div id="restore-prompt" class="restore-prompt coach hx-ui" hidden role="dialog" aria-modal="true">
<div class="t">Restore autosave?</div>
<p id="restore-prompt-msg"></p>
<div class="actions">
<button type="button" class="btn" id="restore-prompt-fresh">Start fresh</button>
<button type="button" class="btn primary" id="restore-prompt-restore">Restore</button>
</div>
</div>
<script type="module" src="src/app.js"></script>
</body>
</html>