TITLE: GATEWORKS — a logic circuit lab PROMPT: Build 'GATEWORKS', a playable logic-circuit lab: a breadboard grid where you place gates (AND, OR, NOT, XOR, plus a toggle switch and a lamp), wire outputs to inputs by dragging connections, and signals propagate live with glowing wires (logic HIGH renders warm, LOW cool). A series of gentle puzzle missions (light the lamp; build an XOR from basics; make a latch) with a mission card, plus free-play sandbox with a clock generator for blinky circuits. Palette: matte charcoal board, silkscreen white labels, signal amber and cyan. Interactions: drag pieces from a tray; click ports to wire/unwrap; switches toggle with a satisfying snap; DELETE mode; auto-check missions with a celebratory lamp pulse; a truth-table inspector for any placed gate. Secretly educational, tactile, orderly. DESCRIPTION: A breadboard sandbox on matte charcoal with silkscreen grid dots: drag AND/OR/NOT/XOR gates, switches, a clock generator, and lamps from the parts rail; click an output port then an input port to run a bezier wire that glows amber when HIGH and stays steel-blue when LOW, with live recursive signal propagation (depth-limited to keep feedback loops stable). Switches toggle with a slider state; the CLOCK pulses at half-second intervals for blinky circuits. Three missions auto-check as you build — light the lamp, build XOR from AND/OR/NOT only (it inspects your circuit graph for exactly that), and wire an OR's output back into its own input to make a latch. A wire-knife mode removes connections; the truth of every part renders continuously. TECHNIQUES: recursive circuit graph evaluation with cycle depth limits, port hit-testing and click-to-wire bezier connections with glow states, draggable part bodies with pointer capture, clock square-wave via frame counter, mission verifier walking the wire graph (graph traversal for the XOR-from-basics rule, self-loop detection for the latch), lamp radial glow. INTERACTION: Click rail buttons to place parts; drag parts around; click an output port then an input port to wire them; toggle switches; enable the wire knife to cut; missions check themselves and light up when solved.