Pen-and-ink art direction with stipple shading

- Cream paper, hand-drawn ink borders, engraving-era type
  (IM Fell English SC, EB Garamond)
- Stipple shadows from a seamless, randomly dotted tile (fixed seed)
- Trust badges are ink stars; Sentry and Elder marked by nameplate
- Smokey's crow art unchanged

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UQnSw4RRWp8uqpj3nsnnXF
This commit is contained in:
SmokeyandClaude Opus 5.5 committed 2026-10-27 11:58:32 -06:00
1 parent a89157803b
commit 1008683b1b
6 files changed
+127 -118

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
The animator builds `crows.riv` against this file, and the web code drives it from the events in `EVENTS.md`. Both sides build against this file, so change it first and then the code. Each animation exists only because an `EVENTS.md` event fires it. The animator builds `crows.riv` against this file, and the web code drives it from the events in `EVENTS.md`. Both sides build against this file, so change it first and then the code. Each animation exists only because an `EVENTS.md` event fires it.
Style: Duolingo-like. Chunky, expressive crows with big squash-and-stretch reactions and readable silhouettes at 96 pixels. The approve and reject buttons stay in HTML for v1 (see "Why buttons stay in HTML"). Style: Duolingo-like behavior, pen-and-ink look: cream paper, ink linework, stipple shading (see `ui/src/style.css`). Smokey's crow art (`art/crow.svg`) is the character; keep its silhouette. Chunky, expressive crows with big squash-and-stretch reactions and readable silhouettes at 96 pixels. The approve and reject buttons stay in HTML for v1 (see "Why buttons stay in HTML").
## Rive approach: data binding, not inputs ## Rive approach: data binding, not inputs
+5 -5
View File
@@ -6,7 +6,7 @@
<title>So Many Crows</title> <title>So Many Crows</title>
<link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@600;800;900&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,500;0,700;1,500&family=IM+Fell+English+SC&display=swap" rel="stylesheet" />
</head> </head>
<body> <body>
<header class="top"> <header class="top">
@@ -16,19 +16,19 @@
<main> <main>
<section class="perch" id="perch" aria-label="The flock"></section> <section class="perch" id="perch" aria-label="The flock"></section>
<p class="banner" id="banner" role="status" hidden></p> <p class="banner inked" id="banner" role="status" hidden></p>
<form class="composer" id="composer"> <form class="composer" id="composer">
<label for="list">Your todo list, one item per line</label> <label for="list">Your todo list, one item per line</label>
<textarea id="list" rows="5" placeholder="- [ ] What is the difference between a crow and a raven&#10;- [ ] Draft a tagline for So Many Crows"></textarea> <div class="field inked"><textarea id="list" rows="5" placeholder="- [ ] What is the difference between a crow and a raven&#10;- [ ] Draft a tagline for So Many Crows"></textarea></div>
<button class="btn btn-go" id="send" type="submit">Send the flock</button> <button class="btn btn-go inked" id="send" type="submit">Send the flock</button>
</form> </form>
<ol class="cards" id="cards" aria-live="polite"></ol> <ol class="cards" id="cards" aria-live="polite"></ol>
<p class="meter" id="meter" hidden></p> <p class="meter" id="meter" hidden></p>
</main> </main>
<div class="toast" id="toast" role="alert" hidden></div> <div class="toast inked" id="toast" role="alert" hidden></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html> </html>
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

+8 -2
View File
@@ -23,6 +23,9 @@ const ART = `
<path class="jaw" d="M193.912 193.978 C232.197 241.52 277.265 249.977 300.252 250.431 C277.193 225.895 274.197 220.917 228.645 169.687 Z"/> <path class="jaw" d="M193.912 193.978 C232.197 241.52 277.265 249.977 300.252 250.431 C277.193 225.895 274.197 220.917 228.645 169.687 Z"/>
</g>`; </g>`;
// Trust badge: a pen-and-ink star. Outline at "regular", inked in at "trusted".
const STAR = `<path d="M12 1.8 L14.9 8.6 L22.2 9.2 L16.6 14 L18.3 21.2 L12 17.4 L5.7 21.2 L7.4 14 L1.8 9.2 L9.1 8.6 Z"/>`;
const REACTION_MS: Record<Reaction, number> = { cheer: 800, sulk: 800, levelUp: 2000, levelDown: 1000, prank: 2500 }; const REACTION_MS: Record<Reaction, number> = { cheer: 800, sulk: 800, levelUp: 2000, levelDown: 1000, prank: 2500 };
export function svgCrow(name: string, role: Role): CrowView { export function svgCrow(name: string, role: Role): CrowView {
@@ -38,8 +41,11 @@ export function svgCrow(name: string, role: Role): CrowView {
body.className = "crow-body"; body.className = "crow-body";
body.append(svg); body.append(svg);
const badge = document.createElement("span"); const badge = document.createElementNS(NS, "svg");
badge.className = "badge"; badge.setAttribute("class", "badge");
badge.setAttribute("viewBox", "0 0 24 24");
badge.setAttribute("aria-hidden", "true");
badge.innerHTML = STAR;
const cap = document.createElement("figcaption"); const cap = document.createElement("figcaption");
cap.textContent = name; cap.textContent = name;
el.append(body, badge, cap); el.append(body, badge, cap);
+3 -3
View File
@@ -57,7 +57,7 @@ function el<K extends keyof HTMLElementTagNameMap>(tag: K, cls?: string, text?:
} }
function addCard(itemId: string, text: string) { function addCard(itemId: string, text: string) {
const li = el("li", "card"); const li = el("li", "card inked");
li.dataset.state = "waiting"; li.dataset.state = "waiting";
const head = el("div", "card-head"); const head = el("div", "card-head");
head.append(el("span", "dot"), el("p", "text", text)); head.append(el("span", "dot"), el("p", "text", text));
@@ -75,8 +75,8 @@ function ask(itemId: string, target: "triage" | "output") {
card.el.dataset.state = "asking"; card.el.dataset.state = "asking";
card.actions.replaceChildren(); card.actions.replaceChildren();
const q = el("p", "question", target === "triage" ? "Approve the Sentry's plan?" : "Accept this answer?"); const q = el("p", "question", target === "triage" ? "Approve the Sentry's plan?" : "Accept this answer?");
const yes = el("button", "btn btn-go", target === "triage" ? "Fly it" : "Looks good"); const yes = el("button", "btn btn-go inked", target === "triage" ? "Fly it" : "Looks good");
const no = el("button", "btn btn-no", target === "triage" ? "Not like that" : "Not right"); const no = el("button", "btn btn-no inked", target === "triage" ? "Not like that" : "Not right");
const err = el("p", "err"); const err = el("p", "err");
for (const [b, approve] of [[yes, true], [no, false]] as const) { for (const [b, approve] of [[yes, true], [no, false]] as const) {
b.type = "button"; b.type = "button";
+110 -107
View File
@@ -1,100 +1,113 @@
/* Art direction: pen and ink on cream.
Thin, slightly wobbly ink lines; shading is stipple (dots), dense near
the edge and fading out. Color stays out of the way: the crows bring it. */
:root { :root {
--bg: #f6fbf7; color-scheme: light;
--surface: #ffffff; --paper: #f4eedf;
--ink: #1d2721; --card: #f9f5ea;
--muted: #5d6b63; --ink: #1c1915;
--line: #dfe9e2; --muted: #5f574b;
--mint: #b7e4c7; --red: #9b2f22;
--go: #2f9e5b; --pen: 1.75px solid var(--ink);
--go-edge: #1f7642; /* Hand-drawn box: unequal corner radii make the line read as inked by hand. */
--no: #ffffff; --wobble: 255px 14px 225px 14px / 14px 225px 14px 255px;
--no-ink: #c2363b; /* Stipple: a seamless tile of randomly placed dots (generated, fixed seed), so it reads hand-dotted, not halftone. */
--no-edge: #e3c6c7; --stipple: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'64\' height=\'64\' fill=\'%231c1915\'%3E%3Ccircle cx=\'20.7\' cy=\'9.7\' r=\'0.7\'/%3E%3Ccircle cx=\'4.6\' cy=\'34.3\' r=\'1.0\'/%3E%3Ccircle cx=\'37.3\' cy=\'58.2\' r=\'0.85\'/%3E%3Ccircle cx=\'2.4\' cy=\'27.8\' r=\'0.7\'/%3E%3Ccircle cx=\'15.4\' cy=\'35.3\' r=\'0.7\'/%3E%3Ccircle cx=\'52.9\' cy=\'7.9\' r=\'0.85\'/%3E%3Ccircle cx=\'40.4\' cy=\'37.3\' r=\'0.7\'/%3E%3Ccircle cx=\'36.9\' cy=\'25.4\' r=\'0.85\'/%3E%3Ccircle cx=\'3.0\' cy=\'54.9\' r=\'1.0\'/%3E%3Ccircle cx=\'26.8\' cy=\'34.6\' r=\'1.0\'/%3E%3Ccircle cx=\'35.9\' cy=\'43.6\' r=\'0.7\'/%3E%3Ccircle cx=\'37.2\' cy=\'40.9\' r=\'1.0\'/%3E%3Ccircle cx=\'6.2\' cy=\'45.6\' r=\'0.7\'/%3E%3Ccircle cx=\'39.6\' cy=\'31.8\' r=\'1.15\'/%3E%3Ccircle cx=\'49.7\' cy=\'29.8\' r=\'1.15\'/%3E%3Ccircle cx=\'23.1\' cy=\'15.9\' r=\'0.85\'/%3E%3Ccircle cx=\'44.7\' cy=\'15.6\' r=\'1.0\'/%3E%3Ccircle cx=\'33.6\' cy=\'56.0\' r=\'1.15\'/%3E%3Ccircle cx=\'18.4\' cy=\'-1.3\' r=\'0.7\'/%3E%3Ccircle cx=\'18.4\' cy=\'62.7\' r=\'0.7\'/%3E%3Ccircle cx=\'32.8\' cy=\'10.6\' r=\'1.0\'/%3E%3Ccircle cx=\'9.7\' cy=\'31.3\' r=\'0.7\'/%3E%3Ccircle cx=\'61.6\' cy=\'5.0\' r=\'1.0\'/%3E%3Ccircle cx=\'21.8\' cy=\'22.4\' r=\'1.15\'/%3E%3Ccircle cx=\'37.1\' cy=\'29.2\' r=\'0.7\'/%3E%3Ccircle cx=\'60.5\' cy=\'30.3\' r=\'0.7\'/%3E%3Ccircle cx=\'3.9\' cy=\'44.9\' r=\'1.15\'/%3E%3Ccircle cx=\'18.2\' cy=\'24.7\' r=\'1.0\'/%3E%3Ccircle cx=\'1.4\' cy=\'29.5\' r=\'0.85\'/%3E%3Ccircle cx=\'65.4\' cy=\'29.5\' r=\'0.85\'/%3E%3Ccircle cx=\'39.1\' cy=\'31.6\' r=\'0.85\'/%3E%3Ccircle cx=\'49.2\' cy=\'8.3\' r=\'0.85\'/%3E%3Ccircle cx=\'25.5\' cy=\'58.7\' r=\'1.15\'/%3E%3Ccircle cx=\'5.2\' cy=\'28.7\' r=\'1.0\'/%3E%3Ccircle cx=\'56.5\' cy=\'52.4\' r=\'1.0\'/%3E%3Ccircle cx=\'45.2\' cy=\'-0.9\' r=\'1.15\'/%3E%3Ccircle cx=\'45.2\' cy=\'63.1\' r=\'1.15\'/%3E%3Ccircle cx=\'61.3\' cy=\'9.7\' r=\'0.85\'/%3E%3Ccircle cx=\'9.7\' cy=\'42.1\' r=\'0.7\'/%3E%3Ccircle cx=\'31.0\' cy=\'37.7\' r=\'1.0\'/%3E%3Ccircle cx=\'18.0\' cy=\'9.3\' r=\'1.0\'/%3E%3Ccircle cx=\'39.0\' cy=\'20.4\' r=\'0.85\'/%3E%3Ccircle cx=\'44.2\' cy=\'33.0\' r=\'0.7\'/%3E%3Ccircle cx=\'29.2\' cy=\'55.7\' r=\'1.15\'/%3E%3Ccircle cx=\'25.5\' cy=\'25.2\' r=\'1.15\'/%3E%3Ccircle cx=\'40.6\' cy=\'4.0\' r=\'0.7\'/%3E%3Ccircle cx=\'-1.0\' cy=\'28.2\' r=\'0.7\'/%3E%3Ccircle cx=\'63.0\' cy=\'28.2\' r=\'0.7\'/%3E%3Ccircle cx=\'21.8\' cy=\'3.4\' r=\'0.7\'/%3E%3Ccircle cx=\'36.3\' cy=\'34.3\' r=\'1.0\'/%3E%3Ccircle cx=\'39.3\' cy=\'4.5\' r=\'0.85\'/%3E%3Ccircle cx=\'39.3\' cy=\'9.5\' r=\'1.0\'/%3E%3Ccircle cx=\'61.1\' cy=\'38.5\' r=\'1.15\'/%3E%3Ccircle cx=\'7.9\' cy=\'54.3\' r=\'1.15\'/%3E%3Ccircle cx=\'30.7\' cy=\'20.0\' r=\'0.85\'/%3E%3Ccircle cx=\'6.5\' cy=\'21.9\' r=\'1.0\'/%3E%3Ccircle cx=\'30.6\' cy=\'44.3\' r=\'0.7\'/%3E%3Ccircle cx=\'13.1\' cy=\'60.9\' r=\'1.0\'/%3E%3Ccircle cx=\'9.4\' cy=\'34.8\' r=\'0.7\'/%3E%3Ccircle cx=\'48.5\' cy=\'19.1\' r=\'0.7\'/%3E%3Ccircle cx=\'44.6\' cy=\'16.7\' r=\'1.0\'/%3E%3Ccircle cx=\'58.1\' cy=\'22.8\' r=\'0.85\'/%3E%3Ccircle cx=\'34.1\' cy=\'49.9\' r=\'1.0\'/%3E%3Ccircle cx=\'40.7\' cy=\'39.2\' r=\'0.85\'/%3E%3Ccircle cx=\'51.6\' cy=\'52.4\' r=\'0.85\'/%3E%3Ccircle cx=\'12.8\' cy=\'31.5\' r=\'0.7\'/%3E%3Ccircle cx=\'-0.7\' cy=\'50.6\' r=\'1.15\'/%3E%3Ccircle cx=\'63.3\' cy=\'50.6\' r=\'1.15\'/%3E%3Ccircle cx=\'16.6\' cy=\'44.3\' r=\'1.0\'/%3E%3Ccircle cx=\'28.6\' cy=\'60.0\' r=\'1.0\'/%3E%3Ccircle cx=\'61.1\' cy=\'23.3\' r=\'0.85\'/%3E%3Ccircle cx=\'6.5\' cy=\'30.1\' r=\'1.0\'/%3E%3Ccircle cx=\'13.1\' cy=\'39.9\' r=\'0.7\'/%3E%3Ccircle cx=\'30.7\' cy=\'41.8\' r=\'0.7\'/%3E%3Ccircle cx=\'53.4\' cy=\'7.7\' r=\'1.15\'/%3E%3Ccircle cx=\'50.1\' cy=\'48.0\' r=\'1.15\'/%3E%3Ccircle cx=\'56.9\' cy=\'27.8\' r=\'1.0\'/%3E%3Ccircle cx=\'5.6\' cy=\'60.6\' r=\'1.15\'/%3E%3Ccircle cx=\'29.6\' cy=\'47.6\' r=\'0.7\'/%3E%3Ccircle cx=\'46.4\' cy=\'10.9\' r=\'0.85\'/%3E%3Ccircle cx=\'1.8\' cy=\'37.8\' r=\'1.15\'/%3E%3Ccircle cx=\'65.8\' cy=\'37.8\' r=\'1.15\'/%3E%3Ccircle cx=\'51.6\' cy=\'9.4\' r=\'1.15\'/%3E%3Ccircle cx=\'42.1\' cy=\'22.4\' r=\'0.85\'/%3E%3Ccircle cx=\'1.4\' cy=\'51.2\' r=\'0.7\'/%3E%3Ccircle cx=\'65.4\' cy=\'51.2\' r=\'0.7\'/%3E%3Ccircle cx=\'33.7\' cy=\'59.8\' r=\'1.15\'/%3E%3Ccircle cx=\'-0.9\' cy=\'12.5\' r=\'0.85\'/%3E%3Ccircle cx=\'63.1\' cy=\'12.5\' r=\'0.85\'/%3E%3Ccircle cx=\'1.8\' cy=\'13.6\' r=\'0.85\'/%3E%3Ccircle cx=\'65.8\' cy=\'13.6\' r=\'0.85\'/%3E%3Ccircle cx=\'48.9\' cy=\'20.9\' r=\'1.15\'/%3E%3Ccircle cx=\'53.4\' cy=\'3.9\' r=\'1.0\'/%3E%3Ccircle cx=\'57.5\' cy=\'42.4\' r=\'1.15\'/%3E%3Ccircle cx=\'52.9\' cy=\'56.2\' r=\'0.85\'/%3E%3Ccircle cx=\'34.0\' cy=\'33.5\' r=\'0.7\'/%3E%3Ccircle cx=\'55.9\' cy=\'49.7\' r=\'0.7\'/%3E%3Ccircle cx=\'49.7\' cy=\'9.6\' r=\'0.85\'/%3E%3Ccircle cx=\'30.3\' cy=\'46.4\' r=\'0.7\'/%3E%3Ccircle cx=\'20.9\' cy=\'33.2\' r=\'1.15\'/%3E%3Ccircle cx=\'50.2\' cy=\'6.8\' r=\'0.7\'/%3E%3Ccircle cx=\'15.9\' cy=\'17.7\' r=\'0.7\'/%3E%3Ccircle cx=\'32.5\' cy=\'36.0\' r=\'0.7\'/%3E%3Ccircle cx=Line truncated
--sentry: #ffe08a; --display: "IM Fell English SC", Georgia, serif;
--elder: #d6dde6; --body: "EB Garamond", Georgia, serif;
--bronze: #c98a4b;
--gold: #f2b705;
--shadow: 0 2px 0 var(--line);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #121714;
--surface: #1b221e;
--ink: #eef4f0;
--muted: #9fb0a6;
--line: #2c3731;
--no: #1b221e;
--no-edge: #4a2c2e;
--no-ink: #ff8a8e;
}
.crow .bird { fill: #0b0d0c; }
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
body { body {
margin: 0; margin: 0;
background: var(--bg); background: var(--paper);
color: var(--ink); color: var(--ink);
font: 600 16px/1.45 Nunito, system-ui, sans-serif; font: 500 18px/1.45 var(--body);
} }
main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; } main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
.top { /* Shared recipe: a hand-inked panel with a stippled shadow behind it.
display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; ::before is the paper and the pen line; ::after is the dot shading. */
max-width: 680px; margin: 0 auto; padding: 20px 16px 8px; .inked { position: relative; isolation: isolate; background: none; border: 0; }
} .inked::before, .inked::after { content: ""; position: absolute; border-radius: var(--wobble); pointer-events: none; }
.top h1 { margin: 0; font-weight: 900; font-size: 26px; letter-spacing: -0.5px; } .inked::before { inset: 0; z-index: -1; background: var(--card); border: var(--pen); }
.who { color: var(--muted); font-size: 14px; } .inked::after {
.who input { inset: 7px -7px -7px 7px; z-index: -2; background: var(--stipple);
margin-left: 6px; width: 140px; padding: 6px 10px; font: inherit; color: var(--ink); -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000 90%);
background: var(--surface); border: 2px solid var(--line); border-radius: 12px; mask-image: linear-gradient(135deg, transparent 30%, #000 90%);
} }
/* ---------- buttons: chunky, pressable ---------- */ /* ---------- header ---------- */
.btn { .top {
font: 800 16px/1 Nunito, system-ui, sans-serif; letter-spacing: 0.3px; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between;
padding: 14px 20px; border-radius: 16px; border: 2px solid transparent; cursor: pointer; max-width: 680px; margin: 0 auto; padding: 22px 16px 10px;
transition: transform 80ms, box-shadow 80ms;
} }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: none; } .top h1 { margin: 0; font: 400 34px/1 var(--display); position: relative; }
.top h1::after {
content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px; background: var(--stipple);
-webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.who { color: var(--muted); font-style: italic; }
.who input {
margin-left: 6px; width: 140px; padding: 2px 4px; font: 500 18px var(--body); color: var(--ink);
background: transparent; border: 0; border-bottom: var(--pen);
}
.who input:focus { outline: none; border-bottom-style: dashed; }
/* ---------- buttons ---------- */
.btn {
font: 400 18px/1 var(--display); letter-spacing: 0.5px; padding: 14px 20px; cursor: pointer;
color: var(--ink); transition: transform 70ms;
}
.btn::after { inset: 5px -5px -5px 5px; }
.btn:active:not(:disabled) { transform: translate(4px, 4px); }
.btn:active:not(:disabled)::after { opacity: 0; }
.btn:disabled { opacity: 0.5; cursor: default; } .btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; } .btn:focus-visible { outline: 1.5px dashed var(--ink); outline-offset: 6px; }
.btn-go { background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-edge); } .btn-go { color: var(--paper); }
.btn-no { background: var(--no); color: var(--no-ink); border-color: var(--no-edge); box-shadow: 0 4px 0 var(--no-edge); } .btn-go::before { background: var(--ink); }
.btn-no { color: var(--red); }
/* ---------- composer ---------- */ /* ---------- composer ---------- */
.composer { display: grid; gap: 10px; margin: 8px 0 24px; } .composer { display: grid; gap: 10px; margin: 8px 0 28px; }
.composer label { font-weight: 800; } .composer label { font-style: italic; color: var(--muted); }
.composer .field { padding: 2px; }
.composer textarea { .composer textarea {
width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); resize: vertical; display: block; width: 100%; padding: 12px 14px; font: 500 18px/1.4 var(--body); color: var(--ink);
background: var(--surface); border: 2px solid var(--line); border-radius: 16px; resize: vertical; background: transparent; border: 0;
} }
.composer textarea:focus { outline: none; border-color: var(--go); } .composer textarea:focus { outline: none; }
.composer .field:focus-within::before { border-style: dashed; }
/* ---------- the perch ---------- */ /* ---------- the perch: an inked branch with stippled underside ---------- */
.perch { .perch {
display: flex; flex-wrap: wrap; gap: 8px 4px; justify-content: center; align-items: flex-end; position: relative; display: flex; flex-wrap: wrap; gap: 10px 6px; justify-content: center; align-items: flex-end;
min-height: 132px; padding: 16px 8px 8px; margin: 8px 0 16px; min-height: 140px; padding: 16px 8px 12px; margin: 8px 0 22px; border-bottom: 2px solid var(--ink);
border-bottom: 6px solid #6b4f3a; border-radius: 0 0 4px 4px; }
.perch::after {
content: ""; position: absolute; left: 4%; right: 4%; bottom: -12px; height: 10px; background: var(--stipple);
-webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
} }
.crow { margin: 0; width: 84px; display: grid; justify-items: center; position: relative; } .crow { margin: 0; width: 84px; display: grid; justify-items: center; position: relative; }
.crow.role-sentry { order: -1; } .crow.role-sentry { order: -1; }
.crow.role-elder { order: 99; } .crow.role-elder { order: 99; }
.crow-body { width: 72px; height: 66px; } .crow-body { width: 72px; height: 66px; }
.crow svg { width: 100%; height: 100%; overflow: visible; } .crow svg { width: 100%; height: 100%; overflow: visible; }
.crow .disc { fill: var(--mint); } .crow .disc { fill: #b7e4c7; }
.crow.role-sentry .disc { fill: var(--sentry); } .crow.role-sentry .disc { fill: #ffe08a; }
.crow.role-elder .disc { fill: var(--elder); } .crow.role-elder .disc { fill: #d6dde6; }
.crow .bird { fill: #000; } .crow .bird { fill: #000; }
.crow .jaw { transform-origin: 211px 182px; transition: transform 150ms; } .crow .jaw { transform-origin: 211px 182px; transition: transform 150ms; }
.crow figcaption { font-size: 13px; font-weight: 800; color: var(--muted); } .crow figcaption { margin-top: 2px; font: 400 15px/1.2 var(--display); }
.crow.role-sentry figcaption, .crow.role-elder figcaption { font-style: italic; text-decoration: underline; text-underline-offset: 3px; }
.badge { .badge {
position: absolute; top: 0; right: 8px; width: 18px; height: 18px; border-radius: 50%; position: absolute; top: -4px; right: 4px; width: 22px; height: 22px;
border: 3px solid var(--bg); opacity: 0; transform: scale(0.4); transition: 150ms; fill: var(--card); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
opacity: 0; transform: scale(0.4); transition: 150ms;
} }
.crow[data-trust="1"] .badge { opacity: 1; transform: none; background: var(--bronze); } .crow[data-trust="1"] .badge { opacity: 1; transform: rotate(-12deg); }
.crow[data-trust="2"] .badge { opacity: 1; transform: none; background: var(--gold); animation: shimmer 2.4s infinite; } .crow[data-trust="2"] .badge { opacity: 1; transform: rotate(-12deg); fill: var(--ink); animation: twinkle 2.4s infinite; }
/* Body layer: poses */ /* Body layer: poses */
.pose-perched .crow-body { animation: breathe 3.2s ease-in-out infinite; } .pose-perched .crow-body { animation: breathe 3.2s ease-in-out infinite; }
@@ -102,11 +115,11 @@ main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
.pose-flying .jaw { transform: rotate(-10deg); } .pose-flying .jaw { transform: rotate(-10deg); }
.pose-waiting .crow-body { animation: tilt 1.4s ease-in-out infinite; } .pose-waiting .crow-body { animation: tilt 1.4s ease-in-out infinite; }
.pose-waiting::after { .pose-waiting::after {
content: "?"; position: absolute; top: -6px; left: 6px; font-weight: 900; font-size: 18px; color: var(--go); content: "?"; position: absolute; top: -12px; left: 4px; font: 400 26px/1 var(--display);
animation: pop 1.4s ease-in-out infinite; animation: pop 1.4s ease-in-out infinite;
} }
.pose-grounded .crow-body { transform: rotate(-18deg) translateY(6px); filter: grayscale(1) opacity(0.6); } .pose-grounded .crow-body { transform: rotate(-18deg) translateY(6px); opacity: 0.5; }
.pose-grounded::after { content: "✦ ✦"; position: absolute; top: -4px; font-size: 12px; color: var(--gold); animation: spin 1.6s linear infinite; } .pose-grounded::after { content: "✕ ✕"; position: absolute; top: -6px; font-size: 12px; animation: spin 1.6s linear infinite; }
/* Reaction layer: one-shots on top */ /* Reaction layer: one-shots on top */
.r-cheer .crow-body { animation: hop 0.8s ease-out; } .r-cheer .crow-body { animation: hop 0.8s ease-out; }
@@ -115,8 +128,7 @@ main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
.r-levelUp .crow-body { animation: levelup 2s ease-out; } .r-levelUp .crow-body { animation: levelup 2s ease-out; }
.r-levelUp .jaw { transform: rotate(16deg); } .r-levelUp .jaw { transform: rotate(16deg); }
.r-levelUp::before { .r-levelUp::before {
content: "★"; position: absolute; top: -18px; font-size: 22px; color: var(--gold); content: "✦"; position: absolute; top: -22px; font-size: 26px; animation: rise 2s ease-out forwards;
animation: rise 2s ease-out forwards;
} }
.r-levelDown .crow-body { animation: shrug 1s ease-out; } .r-levelDown .crow-body { animation: shrug 1s ease-out; }
.r-prank .crow-body { animation: prank 2.5s ease-in-out; } .r-prank .crow-body { animation: prank 2.5s ease-in-out; }
@@ -126,7 +138,7 @@ main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
@keyframes tilt { 50% { transform: rotate(8deg); } } @keyframes tilt { 50% { transform: rotate(8deg); } }
@keyframes pop { 50% { transform: translateY(-4px); } } @keyframes pop { 50% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 50% { box-shadow: 0 0 10px var(--gold); } } @keyframes twinkle { 50% { transform: rotate(-12deg) scale(1.15); } }
@keyframes hop { 30% { transform: translateY(-22px) scale(0.95, 1.08); } 60% { transform: translateY(0) scale(1.08, 0.92); } } @keyframes hop { 30% { transform: translateY(-22px) scale(0.95, 1.08); } 60% { transform: translateY(0) scale(1.08, 0.92); } }
@keyframes droop { 40%, 70% { transform: translateY(6px) rotate(-6deg) scale(1, 0.94); } } @keyframes droop { 40%, 70% { transform: translateY(6px) rotate(-6deg) scale(1, 0.94); } }
@keyframes levelup { 20% { transform: scale(1.25) rotate(0); } 60% { transform: scale(1.25) rotate(360deg); } } @keyframes levelup { 20% { transform: scale(1.25) rotate(0); } 60% { transform: scale(1.25) rotate(360deg); } }
@@ -139,52 +151,43 @@ main { max-width: 680px; margin: 0 auto; padding: 0 16px 64px; }
} }
/* ---------- cards ---------- */ /* ---------- cards ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; } .cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.card { .card { padding: 14px 18px; }
background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px;
box-shadow: var(--shadow);
}
.card-head { display: flex; gap: 10px; align-items: flex-start; } .card-head { display: flex; gap: 10px; align-items: flex-start; }
.card .text { margin: 0; font-weight: 800; } .card .text { margin: 0; font-weight: 700; }
.dot { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--line); } .dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
.card[data-state="flying"] .dot { background: var(--mint); animation: pop 0.8s infinite; } .card[data-state="flying"] .dot { background: var(--stipple); animation: pop 0.8s infinite; }
.card[data-state="asking"] { border-color: var(--go); } .card[data-state="asking"] .dot { background: var(--ink); animation: pop 1.2s infinite; }
.card[data-state="asking"] .dot { background: var(--go); } .card[data-state="asking"]::after { -webkit-mask-image: none; mask-image: none; }
.card[data-state="done"] .dot { background: var(--go); } .card[data-state="done"] .dot { background: var(--ink); }
.card[data-state="rejected"] .dot, .card[data-state="skipped"] .dot { background: var(--no-ink); } .card[data-state="rejected"] .dot, .card[data-state="skipped"] .dot { border-style: dashed; }
.card[data-state="skipped"] .text { text-decoration: line-through; color: var(--muted); } .card[data-state="skipped"] .text { text-decoration: line-through; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 24px; } .chips { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0 24px; }
.chips:empty { display: none; } .chips:empty { display: none; }
.chip { .chip { font: 400 15px/1.3 var(--display); border-bottom: 1.5px solid var(--ink); }
font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; .chip.mode-murder { border-bottom-width: 3px; }
padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); color: var(--muted); .chip.mode-split { border-bottom-style: double; border-bottom-width: 4px; }
} .chip.crows { font: italic 500 15px/1.3 var(--body); color: var(--muted); border-bottom: 0; }
.chip.mode-murder { border-color: #1d2721; color: var(--ink); } .reason { margin: 6px 0 0 24px; color: var(--muted); font-style: italic; }
.chip.mode-split { border-color: var(--mint); } .subtasks { margin: 6px 0 0 24px; padding-left: 18px; }
.reason { margin: 6px 0 0 24px; color: var(--muted); font-size: 14px; }
.subtasks { margin: 6px 0 0 24px; padding-left: 18px; font-size: 14px; }
.subtasks:empty { display: none; } .subtasks:empty { display: none; }
.answer { .answer {
margin: 10px 0 0 24px; padding: 10px 12px; border-left: 4px solid var(--mint); background: var(--bg); margin: 12px 0 0 24px; padding: 4px 0 4px 14px; border-left: 1.5px solid var(--ink);
border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; white-space: pre-wrap; overflow-wrap: anywhere;
} }
.actions:empty { display: none; } .actions:empty { display: none; }
.actions { margin: 12px 0 0 24px; } .actions { margin: 14px 0 6px 24px; }
.question { margin: 0 0 10px; font-weight: 800; } .question { margin: 0 0 12px; font: 400 19px/1.3 var(--display); }
.buttons { display: flex; gap: 10px; } .buttons { display: flex; gap: 14px; }
.buttons .btn { flex: 1; } .buttons .btn { flex: 1; }
.note { margin: 0; font-size: 14px; color: var(--muted); } .note { margin: 0; color: var(--muted); font-style: italic; }
.err { margin: 8px 0 0; font-size: 14px; color: var(--no-ink); } .err { margin: 8px 0 0; color: var(--red); }
.err:empty { display: none; } .err:empty { display: none; }
.banner { .banner { margin: 0 0 20px; padding: 10px 16px; font: 400 18px/1.3 var(--display); text-align: center; }
margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--sentry); color: #3d3000; .meter { margin: 22px 0 0; text-align: center; color: var(--muted); font-style: italic; }
font-weight: 800; text-align: center;
}
.meter { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.toast { .toast {
position: fixed; left: 16px; right: 16px; bottom: 20px; max-width: 520px; margin: 0 auto; position: fixed; left: 16px; right: 16px; bottom: 20px; max-width: 520px; margin: 0 auto;
padding: 14px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 800; text-align: center; padding: 14px 18px; font: 400 18px/1.35 var(--display); text-align: center;
box-shadow: 0 6px 24px rgb(0 0 0 / 0.25);
} }