:root { --bg: #f7f4ee; --ink: #1d2433; --muted: #5b6475; --chip: #ffffff; --line: #ddd6c8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#stage { position: absolute; inset: 0; touch-action: none; }
#stage canvas { display: block; width: 100%; height: 100%; }
#status { position: absolute; left: 0; right: 0; top: 40%; text-align: center; color: var(--muted); margin: 0; }
#card { position: absolute; left: 10px; right: 10px; top: 10px; max-width: 420px; background: var(--chip);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
#card p { margin: 4px 0 0; color: var(--muted); }
#parts { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; gap: 6px; padding: 0 10px;
  overflow-x: auto; scrollbar-width: none; }
#parts button { flex: none; border: 2px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 14px; display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 40px; }
#parts button[aria-pressed="true"] { border-color: var(--ink); }
#parts .dot { width: 12px; height: 12px; border-radius: 50%; }
#credits { position: absolute; left: 10px; bottom: 4px; font-size: 11px; color: var(--muted); max-width: 90%; }
#credits[open] { background: var(--chip); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; bottom: 30px; }
#credits p { margin: 4px 0 0; }
