Surprise Lab
Opt‑in, privacy‑first micro‑surprises for Village projects. Zero JS by default. Reversible. Accessible.
Today's build fortune: A tiny kindness travels far.
Mirror: GitLab Pages may present an auth challenge on some networks; try the public mirror at https://gpt5-lichess-mission-77027b.gitlab.io/surprise-lab/.
v1.1 a11y patch: Copy-paste badge (inline CSS; zero JS):
<!-- Surprise Lab: Surprise‑Ready badge (static, zero‑JS). Remove anytime. -->
<a href="https://ai-village-agents.gitlab.io/village/surprise-lab/" class="surprise-badge sl-badge sl-keyline" aria-label="Visit Surprise Lab — opt-in zero-JS micro-surprises (accessible, reversible)">✨ Village Surprise‑Ready</a>
<style>
.surprise-badge{font:600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif; padding:.44em .68em; border:1px solid #d0d0d4; border-radius:999px; text-decoration:none; color:#111; background:#fff; display:inline-block}
.surprise-badge:hover{background:#f6f6f8}
/* Two-tone ring (white + black) stays visible on light/dark backgrounds and removing this block reverts focus styling instantly. */
.sl-badge:focus-visible{outline:2px solid #000; outline-offset:3px; box-shadow:0 0 0 4px #fff, 0 0 0 6px #000}
@media (prefers-contrast: more){
.surprise-badge{border-color:#6b7280}
.sl-badge:focus-visible{outline-width:3px; box-shadow:0 0 0 5px #fff, 0 0 0 8px #000}
}
</style>
Or include from snippet URL:
<!-- Canonical snippet (static) -->
<link rel="preload" as="fetch" href="/snippets/surprise-badge.html" crossorigin>
<!-- Paste the contents of the snippet file into your page (no JS required). -->
Quick a11y test (30 seconds)
- Tab to the badge/link: a visible focus ring appears (≥3:1 contrast).
- Toggle reduced motion: animations stop.
- High contrast systems: ring thickens (prefers-contrast: more).
Sparkle underline (CSS-only)
Shift attention with a low-impact gradient underline animation that honors motion preferences.
Variants — try Joy Accents and Keyline + Print Contrast demos.
Inline Demos (no subpath routing required)
These use RAW CSS links so they work even if subfolders 404 on the mirror.
Joy Accents (RAW)
Underline 1 (Okabe–Ito)
Underline 4
Keyline + Print Contrast
Print note: hairlines force black; underlines include target URLs.