{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"handheld-catching-game-laid-out-in-parts-on-a-cutting-mat-that-slide-together-and-can-be-played","type":"registry:component","title":"Handheld Catching Game Laid out in Parts on a Cutting Mat That Slide Together and Can Be Played","description":"A pocket LCD game laid out in parts on a cutting mat: shell, display, buttons and screws slide together, then you can play it. Free React and HTML code.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/handheld-catching-game-laid-out-in-parts-on-a-cutting-mat-that-slide-together-and-can-be-played.tsx","type":"registry:component","content":"import { useCallback, useEffect, useRef, useState } from \"react\";\nimport type { CSSProperties, KeyboardEvent as ReactKeyboardEvent, ReactNode } from \"react\";\nimport { motion, useReducedMotion } from \"framer-motion\";\n\nconst sentence = \"A catching game for my bakery: loaves fall, the baker saves them.\";\nconst gameName = \"Loaf Catch\";\nconst TICK = 250; // milliseconds per half step; loaves fall one row every two\nconst MISSES = 3; // dropped loaves before the game starts over\nconst BLUE = \"#4F98FB\";\nconst W = 600, H = 640; // drawing size; the whole piece is scaled to fit its container\nconst FONT = '\"Inter Tight\", \"Inter\", ui-sans-serif, system-ui, sans-serif';\n\n// Where each part rests when the handheld is taken apart, as an offset from its fitted position.\nconst LAID = {\n  body: { x: 0, y: 164, r: 0 },\n  bezel: { x: -134, y: -192, r: -2 },\n  glass: { x: 146, y: -178, r: 1.5 },\n  left: { x: 139, y: -76, r: -14 },\n  right: { x: -139, y: -76, r: 12 },\n};\nconst screws = [{ x: 38, y: 198, lx: 286, ly: 262 }, { x: 548, y: 198, lx: 306, ly: 262 }, { x: 38, y: 428, lx: 286, ly: 290 }, { x: 548, y: 428, lx: 306, ly: 290 }];\n\nconst LANES = [58, 116, 174], ROWS_Y = [40, 58, 76, 94];\nconst DIGITS = [\"abcdef\", \"bc\", \"abged\", \"abgcd\", \"fgbc\", \"afgcd\", \"afgedc\", \"abc\", \"abcdefg\", \"abcdfg\"];\nconst SEG: Record<string, [number, number, number, number]> = { a: [1.6, 0, 6.8, 2.3], b: [8, 1.5, 2.3, 6.8], c: [8, 9.8, 2.3, 6.8], d: [1.6, 15.8, 6.8, 2.3], e: [-0.3, 9.8, 2.3, 6.8], f: [-0.3, 1.5, 2.3, 6.8], g: [1.6, 7.9, 6.8, 2.3] };\nconst INK = \"#171c15\";\n\ntype Loaf = { id: number; lane: number; row: number };\ntype Game = { baker: number; loaves: Loaf[]; score: number; miss: number; step: number; over: number; caught: number };\nconst fresh = (): Game => ({ baker: 1, loaves: [{ id: 1, lane: 1, row: 2 }, { id: 2, lane: 2, row: 0 }], score: 12, miss: 0, step: 0, over: 0, caught: 0 });\n\nfunction Part({ apart, at, lay, delay, z, children, className, style }: { apart: boolean; at: { x: number; y: number }; lay: { x: number; y: number; r: number }; delay: [number, number]; z: number; children?: ReactNode; className?: string; style?: CSSProperties }) {\n  const reduce = useReducedMotion();\n  return (\n    <motion.div\n      initial={false}\n      animate={apart ? { x: lay.x, y: lay.y, rotate: lay.r } : { x: 0, y: 0, rotate: 0 }}\n      transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 150, damping: 19, mass: 1, delay: apart ? delay[0] : delay[1] }}\n      style={{ left: at.x, top: at.y, zIndex: z, ...style }}\n      className={`absolute ${className || \"\"}`}\n    >\n      {children}\n    </motion.div>\n  );\n}\n\nexport default function HandheldCatchingGame() {\n  const reduce = useReducedMotion();\n  const root = useRef<HTMLDivElement>(null);\n  const [scale, setScale] = useState(1);\n  const [apart, setApart] = useState(false);\n  const [power, setPower] = useState<\"on\" | \"test\" | \"off\">(\"on\");\n  const [auto, setAuto] = useState(true);\n  const [game, setGame] = useState<Game>(fresh);\n  const [down, setDown] = useState(0);\n  const nextId = useRef(3);\n\n  useEffect(() => {\n    const el = root.current;\n    if (!el) return;\n    const fit = () => setScale(Math.min(1.15, (el.clientWidth - 24) / W));\n    fit();\n    const ro = new ResizeObserver(fit);\n    ro.observe(el);\n    return () => ro.disconnect();\n  }, []);\n\n  // Taking it apart cuts the power; fitting it back runs the all-segments test, then the game.\n  useEffect(() => {\n    if (apart) { setPower(\"off\"); return; }\n    if (reduce) { setPower(\"on\"); return; }\n    const a = window.setTimeout(() => setPower((p) => (p === \"off\" ? \"test\" : p)), 1500);\n    const b = window.setTimeout(() => setPower(\"on\"), 2300);\n    return () => { window.clearTimeout(a); window.clearTimeout(b); };\n  }, [apart, reduce]);\n\n  // The idle demo: play for a while, lay the parts out, put them back.\n  useEffect(() => {\n    if (!auto || reduce) return;\n    const ids: number[] = [];\n    const cycle = () => {\n      ids.push(window.setTimeout(() => setApart(true), 6800));\n      ids.push(window.setTimeout(() => setApart(false), 9800));\n      ids.push(window.setTimeout(cycle, 17000));\n    };\n    cycle();\n    return () => ids.forEach((id) => window.clearTimeout(id));\n  }, [auto, reduce]);\n\n  // The game clock. With reduced motion it only runs once somebody has taken the controls.\n  const running = power === \"on\" && !(reduce && auto);\n  useEffect(() => {\n    if (!running) return;\n    const id = window.setInterval(() => {\n      setGame((g) => {\n        if (g.over > 0) return g.over === 1 ? { ...fresh(), score: 0, loaves: [] } : { ...g, over: g.over - 1 };\n        let { baker, score, miss, caught } = g;\n        const step = g.step + 1;\n        if (auto) {\n          const low = [...g.loaves].sort((p, q) => q.row - p.row)[0];\n          if (low && low.lane !== baker) baker += low.lane > baker ? 1 : -1;\n        }\n        if (step % 2) return { ...g, baker, step, caught: Math.max(0, caught - 1) };\n        const loaves: Loaf[] = [];\n        for (const l of g.loaves) {\n          if (l.row < ROWS_Y.length - 1) loaves.push({ ...l, row: l.row + 1 });\n          else if (l.lane === baker) { score = (score + 1) % 1000; caught = 2; }\n          else miss += 1;\n        }\n        if (step % 6 === 0 && loaves.length < 3) {\n          const taken = loaves.filter((l) => l.row < 2).map((l) => l.lane);\n          const free = [0, 1, 2].filter((n) => !taken.includes(n));\n          loaves.push({ id: nextId.current++, lane: free[Math.floor(Math.random() * free.length)] ?? 1, row: 0 });\n        }\n        return { baker, loaves, score, miss, step, over: miss >= MISSES ? 8 : 0, caught };\n      });\n    }, TICK);\n    return () => window.clearInterval(id);\n  }, [running, auto]);\n\n  const move = useCallback((d: number) => {\n    setAuto(false);\n    if (apart) { setApart(false); return; }\n    setGame((g) => (g.over ? g : { ...g, baker: Math.max(0, Math.min(2, g.baker + d)) }));\n  }, [apart]);\n  const onKey = (e: ReactKeyboardEvent) => {\n    if (e.key !== \"ArrowLeft\" && e.key !== \"ArrowRight\") return;\n    e.preventDefault(); move(e.key === \"ArrowLeft\" ? -1 : 1);\n  };\n\n  const test = power === \"test\", off = power === \"off\";\n  const lit = (on: boolean) => (off ? 0.055 : test || on ? 0.92 : 0.055);\n  const blink = game.over > 0 && game.over % 2 === 0;\n  const score = String(game.score).padStart(3, \"0\");\n  const lift = apart ? \"0 14px 18px -6px rgba(0,0,0,0.75), 0 2px 3px rgba(0,0,0,0.6)\" : \"0 0 0 rgba(0,0,0,0), 0 0 0 rgba(0,0,0,0)\";\n  const rubber = (pressed: boolean): CSSProperties => ({ background: \"radial-gradient(circle at 36% 26%, #a3ccff 0%, #62a5fc 26%, #4F98FB 52%, #2e72d6 100%)\", boxShadow: pressed ? \"inset 0 3px 6px rgba(12,44,110,0.6), 0 1px 0 #235bb0, 0 2px 3px rgba(0,0,0,0.4)\" : \"inset 0 -5px 7px rgba(15,50,120,0.45), inset 0 2px 1px rgba(255,255,255,0.55), 0 2px 0 #2a66c2, 0 4px 0 #2358ad, 0 9px 10px rgba(0,0,0,0.45)\", transform: pressed ? \"translateY(3px)\" : \"none\" });\n  const well = \"absolute rounded-full bg-[#101318] shadow-[inset_0_4px_7px_rgba(0,0,0,0.9),0_1px_0_rgba(255,255,255,0.9)]\";\n\n  return (\n    <div ref={root} style={{ fontFamily: FONT, backgroundImage: \"radial-gradient(80% 60% at 50% 42%, rgba(79,152,251,0.10) 0%, rgba(11,13,18,0) 70%), linear-gradient(rgba(79,152,251,0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(79,152,251,0.16) 1px, transparent 1px), linear-gradient(rgba(79,152,251,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(79,152,251,0.055) 1px, transparent 1px)\", backgroundSize: \"100% 100%, 120px 120px, 120px 120px, 24px 24px, 24px 24px\", backgroundPosition: \"center, center, center, center, center\" }} className=\"flex min-h-[840px] w-full flex-col items-center justify-center overflow-hidden bg-[#0B0D12] px-3 py-8\">\n      <p className=\"mb-2 max-w-[440px] text-center text-[17px] font-extrabold leading-6 tracking-[-0.03em] text-[#F6F4EF] sm:text-[19px]\">{sentence}</p>\n\n      <div style={{ width: W * scale, height: H * scale }} className=\"relative\">\n        <div onKeyDown={onKey} style={{ width: W, height: H, transform: `scale(${scale})`, transformOrigin: \"0 0\" }} className=\"absolute left-0 top-0\">\n          {/* The shell, with the sockets the other parts fit into. */}\n          <Part apart={apart} at={{ x: 20, y: 180 }} lay={LAID.body} delay={[0.3, 0]} z={1} className=\"h-[280px] w-[560px] rounded-[46px] bg-[linear-gradient(172deg,#fefdfb_0%,#f3f0e9_50%,#e3dfd5_100%)] shadow-[inset_0_2px_0_#ffffff,inset_0_-4px_5px_rgba(60,50,30,0.12),0_2px_0_#cdc8bc,0_4px_0_#c0bbae,0_6px_0_#b3aea1,0_8px_0_#a6a195,0_40px_44px_-14px_rgba(0,0,0,0.85),0_12px_12px_-4px_rgba(0,0,0,0.6)]\">\n            <div className=\"absolute left-[150px] top-[42px] h-[196px] w-[260px] rounded-[15px] bg-[#12151b] shadow-[inset_0_4px_8px_rgba(0,0,0,0.9),0_1px_0_#ffffff]\">\n              <div className=\"absolute inset-[16px] rounded-[4px] border border-[#1d5a3a]/0 bg-[linear-gradient(135deg,#0f2a4d_0%,#0c1f3a_100%)] opacity-80\" />\n              <div className=\"absolute left-[30px] top-[30px] h-[3px] w-[90px] bg-[#4F98FB]/40\" /><div className=\"absolute left-[30px] top-[40px] h-[3px] w-[60px] bg-[#4F98FB]/30\" />\n              <div className=\"absolute bottom-[26px] right-[30px] h-[26px] w-[52px] rounded-[3px] bg-[#07090d] shadow-[inset_0_0_0_1px_rgba(255,255,255,0.12)]\" />\n              <div className=\"absolute bottom-[30px] left-[34px] h-[18px] w-[18px] rounded-full bg-[radial-gradient(circle_at_35%_30%,#d9dde3,#8a909b)]\" />\n            </div>\n            <span className={`${well} left-[33px] top-[138px] h-[84px] w-[84px]`} /><span className={`${well} left-[443px] top-[138px] h-[84px] w-[84px]`} />\n            {screws.map((s) => <span key={`${s.x}-${s.y}`} className=\"absolute h-[14px] w-[14px] rounded-full bg-[#14171c] shadow-[inset_0_2px_3px_rgba(0,0,0,0.9),0_1px_0_#ffffff]\" style={{ left: s.x - 20 - 7, top: s.y - 180 - 7 }} />)}\n            <span className=\"absolute left-[34px] top-[46px] text-[15px] font-black uppercase leading-none tracking-[-0.02em] text-[#0B0D12]\">{gameName}</span>\n            <span className=\"absolute left-[34px] top-[66px] font-mono text-[8px] font-semibold uppercase tracking-[0.22em] text-[#0B0D12]/55\">Pocket game 01</span>\n            <span className=\"absolute left-[34px] top-[236px] w-[82px] text-center font-mono text-[8px] font-semibold uppercase tracking-[0.24em] text-[#0B0D12]/55\">Left</span>\n            <span className=\"absolute left-[444px] top-[236px] w-[82px] text-center font-mono text-[8px] font-semibold uppercase tracking-[0.24em] text-[#0B0D12]/55\">Right</span>\n            <span aria-hidden=\"true\" className=\"absolute right-[40px] top-[44px] grid grid-cols-5 gap-[5px]\">{Array.from({ length: 15 }, (_, i) => <i key={i} className=\"h-[5px] w-[5px] rounded-full bg-[#0B0D12]/80 shadow-[0_1px_0_#ffffff]\" />)}</span>\n          </Part>\n\n          {/* Brushed metal bezel with the recess for the display. */}\n          <Part apart={apart} at={{ x: 170, y: 222 }} lay={LAID.bezel} delay={[0.2, 0.25]} z={2} style={{ boxShadow: `inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(0,0,0,0.35), 0 1px 0 #6d727b, ${lift}`, backgroundImage: \"repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, rgba(0,0,0,0.06) 1px 2px, rgba(255,255,255,0) 2px 3px), linear-gradient(178deg, #f1f3f5 0%, #b4bac2 46%, #dfe3e7 62%, #9ba1aa 100%)\" }} className=\"h-[196px] w-[260px] rounded-[15px] bg-[#c4c9d0] transition-shadow duration-500 motion-reduce:transition-none\">\n            <div className=\"absolute inset-[13px] rounded-[7px] bg-[#0a0c10] shadow-[inset_0_3px_6px_rgba(0,0,0,0.95),0_1px_0_rgba(255,255,255,0.85)]\" />\n          </Part>\n\n          {/* The display: every figure the game can show is printed on it once and switched on or off. */}\n          <Part apart={apart} at={{ x: 184, y: 236 }} lay={LAID.glass} delay={[0.1, 0.45]} z={3} style={{ boxShadow: `inset 0 0 0 1px rgba(0,0,0,0.35), ${lift}` }} className=\"h-[168px] w-[232px] overflow-hidden rounded-[6px] bg-[#c3cabd] transition-shadow duration-500 motion-reduce:transition-none\">\n            <svg viewBox=\"0 0 232 168\" className=\"block h-full w-full\" role=\"img\" aria-label={off ? \"Display off\" : `${gameName}. Score ${game.score}. ${game.miss} of ${MISSES} loaves dropped.`}>\n              <defs>\n                <linearGradient id=\"handheld-catching-game-lcd\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stopColor=\"#d3d9cd\" /><stop offset=\"1\" stopColor=\"#b5bdae\" /></linearGradient>\n                <filter id=\"handheld-catching-game-lift\" x=\"-10%\" y=\"-10%\" width=\"120%\" height=\"130%\"><feDropShadow dx=\"1.1\" dy=\"1.5\" stdDeviation=\"0.5\" floodColor=\"#2c3327\" floodOpacity=\"0.28\" /></filter>\n              </defs>\n              <rect width=\"232\" height=\"168\" fill=\"url(#handheld-catching-game-lcd)\" />\n              <g fill=\"none\" stroke={BLUE} strokeWidth=\"1.6\" strokeLinecap=\"round\" opacity=\"0.7\">\n                <path d=\"M8 28h216M8 161h216\" />\n                {LANES.map((x) => <path key={x} d={`M${x - 15} 28v5M${x + 15} 28v5`} />)}\n              </g>\n              <g fill={BLUE} opacity=\"0.85\" fontFamily=\"ui-monospace, SFMono-Regular, Menlo, monospace\" fontSize=\"6.5\" fontWeight=\"700\" letterSpacing=\"1.2\">\n                <text x=\"56\" y=\"18\">MISS</text><text x=\"152\" y=\"18\">SCORE</text>\n              </g>\n              <g fill={INK} stroke={INK} filter=\"url(#handheld-catching-game-lift)\" style={{ transition: \"opacity 60ms\" }}>\n                {[0, 1, 2].map((i) => <path key={i} d={`M${11 + i * 14} 9l8 8m0-8l-8 8`} strokeWidth=\"2.6\" strokeLinecap=\"round\" fill=\"none\" opacity={lit(game.miss > i)} />)}\n                {[0, 1, 2].map((d) => (\n                  <g key={d} transform={`translate(${186 + d * 13.5} 6)`} stroke=\"none\">\n                    {Object.keys(SEG).map((k) => <rect key={k} x={SEG[k][0]} y={SEG[k][1]} width={SEG[k][2]} height={SEG[k][3]} rx=\"0.9\" opacity={lit(DIGITS[Number(score[d])].includes(k))} />)}\n                  </g>\n                ))}\n                {LANES.map((x, lane) => ROWS_Y.map((y, row) => (\n                  <g key={`${lane}-${row}`} opacity={lit(game.loaves.some((l) => l.lane === lane && l.row === row) && !blink)} stroke=\"none\">\n                    <path d={`M${x - 12.5} ${y + 1.5}c0-5.5 5.6-8.6 12.5-8.6s12.5 3.1 12.5 8.6c0 3.4-2.2 5.1-4.4 5.1h-16.2c-2.2 0-4.4-1.7-4.4-5.1z`} />\n                    <path d={`M${x - 6} ${y - 4.6}l2.6 6M${x - 0.6} ${y - 5.6}l2.6 6.4M${x + 4.8} ${y - 4.8}l2.6 6`} stroke=\"#c9cfc3\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n                  </g>\n                )))}\n                {LANES.map((x, lane) => (\n                  <g key={lane} opacity={lit(game.baker === lane && !blink)} stroke=\"none\">\n                    <rect x={x - 21} y=\"110\" width=\"42\" height=\"3.8\" rx=\"1.9\" />\n                    <path d={`M${x - 8.5} 146L${x - 17} 113.5M${x + 8.5} 146L${x + 17} 113.5`} strokeWidth=\"3.4\" strokeLinecap=\"round\" stroke={INK} fill=\"none\" />\n                    <circle cx={x} cy=\"135\" r=\"6.2\" />\n                    <path d={`M${x - 6} 129.5v-5.2a3.6 3.6 0 0 1 2.2-6.4a4.4 4.4 0 0 1 7.6 0a3.6 3.6 0 0 1 2.2 6.4v5.2z`} />\n                    <path d={`M${x - 8} 143h16l3.2 15.5h-22.4z`} />\n                  </g>\n                ))}\n                {LANES.map((x, lane) => <path key={lane} d={`M${x - 26} 104l-4-5M${x + 26} 104l4-5`} strokeWidth=\"2\" strokeLinecap=\"round\" fill=\"none\" opacity={lit(game.caught > 0 && game.baker === lane)} />)}\n              </g>\n            </svg>\n            <span aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 bg-[linear-gradient(118deg,rgba(255,255,255,0.34)_0%,rgba(255,255,255,0.06)_30%,rgba(255,255,255,0)_46%,rgba(255,255,255,0)_70%,rgba(255,255,255,0.10)_100%)] shadow-[inset_0_2px_5px_rgba(0,0,0,0.3)]\" />\n          </Part>\n\n          {/* The two rubber buttons. */}\n          {([[-1, { x: 57, y: 322 }, LAID.left, \"Move the baker left\"], [1, { x: 467, y: 322 }, LAID.right, \"Move the baker right\"]] as const).map(([d, at, lay, label]) => (\n            <Part key={d} apart={apart} at={at} lay={lay} delay={[0.06, 0.62]} z={4} className=\"h-[76px] w-[76px]\">\n              <button type=\"button\" aria-label={label} onPointerDown={() => setDown(d)} onPointerUp={() => setDown(0)} onPointerLeave={() => setDown(0)} onClick={() => move(d)} style={rubber(down === d)} className=\"flex h-full w-full items-center justify-center rounded-full outline-none transition-[transform,box-shadow] duration-100 focus-visible:ring-2 focus-visible:ring-[#0B0D12] focus-visible:ring-offset-2 focus-visible:ring-offset-[#4F98FB] motion-reduce:transition-none\">\n                <svg aria-hidden=\"true\" viewBox=\"0 0 24 24\" className=\"h-7 w-7 drop-shadow-[0_1px_0_rgba(255,255,255,0.35)]\" fill=\"#0B0D12\" fillOpacity=\"0.78\"><path d={d < 0 ? \"M15.5 5.2v13.6a1 1 0 0 1-1.6.8l-8.6-6.8a1 1 0 0 1 0-1.6l8.6-6.8a1 1 0 0 1 1.6.8z\" : \"M8.5 5.2v13.6a1 1 0 0 0 1.6.8l8.6-6.8a1 1 0 0 0 0-1.6l-8.6-6.8a1 1 0 0 0-1.6.8z\"} /></svg>\n              </button>\n            </Part>\n          ))}\n\n          {/* Four screws, turned in last. */}\n          {screws.map((s, i) => (\n            <Part key={i} apart={apart} at={{ x: s.x - 7, y: s.y - 7 }} lay={{ x: s.lx - s.x, y: s.ly - s.y, r: -540 }} delay={[i * 0.04, 0.85 + i * 0.07]} z={5} style={{ boxShadow: apart ? \"0 3px 4px rgba(0,0,0,0.7)\" : \"0 0 0 rgba(0,0,0,0)\" }} className=\"h-[14px] w-[14px] rounded-full bg-[radial-gradient(circle_at_35%_28%,#f4f5f7_0%,#a9aeb7_50%,#5d626c_100%)] transition-shadow duration-500 motion-reduce:transition-none\">\n              <span className=\"absolute left-1/2 top-1/2 h-[1.6px] w-[8px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#23262c]\" /><span className=\"absolute left-1/2 top-1/2 h-[8px] w-[1.6px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#23262c]\" />\n            </Part>\n          ))}\n        </div>\n      </div>\n\n      <p aria-live=\"polite\" className=\"sr-only\">{apart ? \"The handheld is laid out in parts.\" : game.over ? `Three loaves dropped. Final score ${game.score}.` : \"\"}</p>\n      <div className=\"mt-2 flex flex-col items-center gap-3\">\n        <button type=\"button\" aria-pressed={apart} onClick={() => { setAuto(false); setApart((a) => !a); }} className=\"flex h-10 items-center gap-2 rounded-full bg-[#F6F4EF] px-5 text-[13px] font-bold tracking-[-0.01em] text-[#0B0D12] shadow-[inset_0_-2px_0_rgba(11,13,18,0.14),0_10px_18px_-8px_rgba(0,0,0,0.8)] outline-none transition-colors duration-200 hover:bg-white focus-visible:ring-2 focus-visible:ring-[#4F98FB] focus-visible:ring-offset-2 focus-visible:ring-offset-[#0B0D12] motion-reduce:transition-none\">\n          <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" className=\"h-3.5 w-3.5\" fill=\"none\" stroke={BLUE} strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><path d={apart ? \"M2.5 8h4M13.5 8h-4M6.5 5.5v5M9.5 5.5v5\" : \"M6 8H2.5m0 0L4.5 6m-2 2l2 2M10 8h3.5m0 0l-2-2m2 2l-2 2\"} /></svg>\n          {apart ? \"Put it together\" : \"Take it apart\"}\n        </button>\n        <span className=\"text-center font-mono text-[10px] font-semibold uppercase leading-4 tracking-[0.18em] text-[#F6F4EF]/60\">Tap the blue buttons or use the arrow keys</span>\n      </div>\n    </div>\n  );\n}\n"}]}
