/* Hallmark · built: the project · redesign: custom · genre: playful · shape: app screen · posture: committed · job: compose music by voice while the loop plays
   nav: compact work bar (brand, project, tools; tools fold into a popover on phones) · footer: one provenance line
   pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, the cream app shell is the expected warm choice; the night stage carries the identity and the amber accent is spent only on play, voice and send
   waive 80 · the cat musicians are the product: each SVG cat is one live Strudel track, not an illustration standing in for content */
/* Hallmark · answered F4 · amber fill is spent only on play (stage), say-or-hum (rail) and the selected note length; the other flagged recipes are surface-coloured quiet buttons, and play and voice sit in separate regions */
/* Hallmark · answered F5 · the round amber mic on phones is the primary record control in the thumb zone, not a decorative coin */
/* Hallmark · answered F7 · every text field shares one field recipe on purpose (constant 1px muted edge, inset ring); the pill radius is used only on buttons (roster entries, newcomer hint, ON / OFF) */
/* Hallmark · answered F3 · the project title is a single ellipsised line; section heads take text-wrap: balance */
/* Design tokens for 喵乐间. Two papers: oat app shell, night stage. One accent (lantern amber).
   Semantic colours always travel with a shape or a word. */
:root {
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Yuanti SC", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", var(--font-body);
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Oat paper shell */
  --color-paper: oklch(96.2% 0.016 84);
  --color-paper-2: oklch(93.2% 0.022 82);
  --color-surface: oklch(98.6% 0.008 88);
  --color-rule: oklch(87% 0.02 80);
  --color-rule-strong: oklch(76% 0.025 75);
  --color-ink: oklch(26% 0.028 58);
  --color-ink-2: oklch(38% 0.03 62);
  --color-muted: oklch(49% 0.028 68);
  --color-on-fill: oklch(98.5% 0.01 85);

  /* Lantern amber: the one accent, for play, voice and send */
  --color-accent: oklch(81% 0.135 76);
  --color-accent-hover: oklch(85% 0.12 80);
  --color-accent-press: oklch(76% 0.14 72);
  --color-accent-ink: oklch(26% 0.04 60);
  --color-accent-text: oklch(50% 0.12 62);

  /* Semantics */
  --color-playing: oklch(55% 0.12 148);
  --color-playing-soft: oklch(93% 0.045 145);
  --color-pending: oklch(50% 0.1 258);
  --color-pending-soft: oklch(94% 0.025 258);
  --color-record: oklch(55% 0.19 25);
  --color-record-soft: oklch(94% 0.035 25);
  --color-error: oklch(49% 0.15 33);
  --color-error-soft: oklch(94% 0.03 40);
  --color-focus: oklch(50% 0.12 258);

  /* Night stage */
  --color-stage: oklch(27% 0.028 205);
  --color-stage-2: oklch(33% 0.03 190);
  --color-stage-ink: oklch(95% 0.03 86);
  --color-stage-muted: oklch(83% 0.035 92);
  --color-stage-rule: oklch(46% 0.03 170);
  --color-stage-glow: oklch(84% 0.12 80);
  --color-stage-playing: oklch(83% 0.13 140);
  --color-stage-pending: oklch(82% 0.08 255);
  --color-stage-track: oklch(42% 0.03 180);
  --color-stage-overlay: oklch(24% 0.025 205 / .88);
  --color-stage-hover: oklch(40% 0.03 190 / .5);
  --color-stage-selected: oklch(38% 0.04 80 / .42);
  --color-on-playing: oklch(22% 0.04 150);
  --color-playing-ink: oklch(42% 0.11 148);
  --color-record-ink: oklch(47% 0.19 25);
  --color-playing-halo: oklch(83% 0.13 140 / .38);
  --color-code-hit: oklch(45% 0.08 70);
  --color-sticker-shadow: oklch(18% 0.03 60);
  --color-shadow: oklch(22% 0.03 60 / 0.18);
  --color-scrim: oklch(20% 0.02 60 / 0.42);

  /* Space, size, shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --text-xs: 12px;
  --text-s: 13px;
  --text-m: 15px;
  --text-l: 18px;
  --text-xl: 22px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --radius-pill: 999px;
  --radius-hand: 22px 26px 20px 28px / 26px 20px 28px 22px;
  --border-sticker: 2px solid var(--color-ink);
  --target: 44px;
  --control: 40px;
  --rail: 320px;
  --shadow-1: 0 1px 2px var(--color-shadow);
  --shadow-2: 0 6px 18px var(--color-shadow);
  --shadow-sticker: 0 3px 0 var(--color-ink);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --kb: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Mobile courtyard game: the same musicians, seated in a lantern-lit garden. */
:root {
  --game-sky: #13211f;
  --game-stage: #1f3a3c;
  --game-transport: rgba(14, 27, 30, .8);
  --game-ink: #f6ecd6;
  --game-ink-dim: #cfc3a6;
  --game-amber: #f0b85a;
  --game-glow: #f5c66a;
  --game-glow-soft: rgba(245, 198, 106, .18);
  --game-green: #a8de9a;
  --game-pending: #b9c9f0;
  --game-rule: #3f5a55;
  --game-rule-soft: rgba(207, 195, 166, .18);
  --game-paper: #fdfaf3;
  --game-paper-ink: #33261a;
  --game-paper-muted: #6b5c4c;
  --game-paper-rule: #e4d9c6;
  --game-paper-rest: #efe7d8;
  --game-wood: #3a2a1d;
  --game-wood-light: #e3d3b4;
  --game-wood-dark: #120c08;
  --game-wood-rule: rgba(227, 211, 180, .5);
  --game-water: #285a62;
  --game-water-light: #2b6069;
  --game-water-ink: #bcd2ce;
  --game-water-rule: rgba(111, 176, 179, .55);
  --game-stone: #2b3533;
  --game-stone-rule: #4b5755;
  --game-red: #b8372d;
  --game-record: #2a1d1b;
  --game-record-edge: #e2685b;
  --game-record-level: #f0786a;
  --game-shadow: rgba(0, 0, 0, .25);
  --game-scrim: rgba(10, 8, 4, .5);
  --game-lantern-off: #34504b;
  --game-lantern-off-edge: #4e6a63;
  --game-lantern-past: #a8823f;
  --game-lantern-past-edge: #c99d52;
  --game-lantern-edge: #fff1cc;
  --game-group-1: #e98f5a;
  --game-group-2: #8fc4e8;
  --game-group-3: #c7a0e8;
  --game-group-4: #9fd6a4;
  --game-group-5: #f0d26a;
}
