Valley map: progressive disclosure of choices

The idle map shows only the key moments (the entrance, the three directions, the scream, the
bully fight, the wounded cadet, the hour's walk, the tree, the valley centre, the meadow and the
shadow). Clicking one reveals the choices made there as places on the map and as chips in the
panel (each a further place to start from, with a way back), plus the best route to every
dragon. A picked dragon shows only the places on its routes; opening a choice adds the others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
ekcSchiano
2026-11-02 21:02:42 +00:00
co-authored by Claude Opus 5.5
parent 83bc19521e
commit 0b025af0f0
13 changed files with 64 additions and 27 deletions
+5 -1
View File
@@ -343,6 +343,10 @@ footer { border-top-color: var(--line); }
.ex-place { cursor: pointer; }
.ex-place:hover text, .ex-place:focus-visible text { text-decoration: underline; fill-opacity: 1; }
.ex-place:focus { outline: none; }
.ex-here { display: grid; gap: 6px; margin: 10px 0 4px; justify-items: start; }
.ex-here-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--ink); font-size: .85rem; }
.ex-chip:hover, .ex-chip:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ex-from { display: grid; gap: 6px; margin: 12px 0; }
.ex-from-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px 10px 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--raised) 85%, #000); color: var(--ink); text-align: left; overflow: hidden; }
.ex-from-row svg { width: 44px; height: 36px; }
@@ -441,7 +445,7 @@ a { color: var(--accent); text-underline-offset: 2px; }
<section id="valley-sec" aria-labelledby="h-valley" class="explorer">
<div class="ex-shell deco" id="ex-shell">
<div class="ex-map-wrap"><svg id="ex-map" viewBox="0 0 1000 790" role="application" aria-label="Map of the threshing valley. Choose a dragon to see the routes to it."></svg>
<div class="ex-hint" id="ex-hint">Pick a dragon, or a place to start from</div>
<div class="ex-hint" id="ex-hint">Pick a dragon, or a key moment</div>
<div class="ex-tip" id="ex-tip" hidden></div>
</div>
<aside class="ex-panel" id="ex-panel" aria-live="polite"></aside>