{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"oak-card-index-box-faq-with-tabbed-question-cards-that-rise-out-and-stand-against-the-open-lid","type":"registry:block","title":"Oak Card Index Box FAQ with Tabbed Question Cards That Rise out and Stand Against the Open Lid","description":"FAQ built as a card index box: press a tab and its ruled card rises out of the row and stands against the open lid. Free React and Tailwind code, or HTML.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/oak-card-index-box-faq-with-tabbed-question-cards-that-rise-out-and-stand-against-the-open-lid.tsx","type":"registry:component","content":"import { useEffect, useId, useRef, useState } from \"react\";\nimport { animate, motion, useMotionValue, useReducedMotion, useTransform } from \"framer-motion\";\n\n/** The name on the brass holder and one card per question. `tab` is the short word cut into the card's tab. */\nconst library = { name: \"Halewood Tool Library\", drawer: \"Questions\", note: \"Ask at the counter\" };\nconst cards = [\n  { tab: \"Joining\", q: \"How do I become a member?\", a: \"Call in on any open day with something that shows your address. We take your details, hand you a card and you can borrow that same afternoon.\" },\n  { tab: \"Hours\", q: \"When is the library open?\", a: \"Tuesday and Thursday from four until eight, and Saturday from nine until one. The shutter on Mill Lane is up whenever we are in.\" },\n  { tab: \"Loans\", q: \"How long can I keep a tool?\", a: \"A week for most things. Ladders, the tile cutter and the floor sander go out for three days because there is always a queue for them.\" },\n  { tab: \"Late\", q: \"What if I bring something back late?\", a: \"Tell us before the due date and we will extend it if nobody is waiting. After that it is fifty pence a day, which goes into the blade fund.\" },\n  { tab: \"Repairs\", q: \"What happens if a tool breaks?\", a: \"Bring it back and say what happened. Wear is ours to fix. We only ask for help with the cost when something has plainly been misused.\" },\n  { tab: \"Demos\", q: \"Can someone show me how to use it?\", a: \"Yes. A volunteer will run through any tool at the counter, and the first Saturday of each month is a hands-on morning with the kettle on.\" },\n];\n\n// Two sets of measurements in pixels: one for desks, one for phones. Everything is drawn from these.\nconst WIDE = { boxW: 560, wall: 16, boxH: 168, cardW: 468, cardH: 292, tabW: 86, tabH: 28, step: 12, lidH: 340, pad: 22, head: 62, line: 24, text: 14, ask: 15, tabText: 10.5 };\nconst SLIM = { boxW: 336, wall: 11, boxH: 122, cardW: 292, cardH: 300, tabW: 54, tabH: 28, step: 12, lidH: 350, pad: 14, head: 60, line: 21, text: 12, ask: 12.5, tabText: 8 };\ntype Dims = typeof WIDE;\nconst TOP = 64; // room above the lid for a card at the top of its flight\nconst CLEAR = 60; // how far a card overshoots so it clears the tabs before dropping behind them\nconst SEAT = 60; // how far above the rim the standing card's bottom edge sits\nconst PEEK = 22; // how much of the front card shows above the rim\n\nconst svgUrl = (body: string, w: number, h: number) => `url(\"data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' width='${w}' height='${h}'>${body}</svg>`)}\")`;\n/** Oak figure: stretched noise turned into dark streaks. fx is along the grain, fy across it. */\nconst grain = (fx: number, fy: number, seed: number, strength = 1.5) =>\n  svgUrl(`<filter id='g' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='${fx} ${fy}' numOctaves='4' seed='${seed}'/><feColorMatrix values='0 0 0 0 0.33  0 0 0 0 0.17  0 0 0 0 0.05  ${strength} 0 0 0 ${-strength * 0.42}'/></filter><rect width='600' height='400' filter='url(#g)'/>`, 600, 400);\nconst PAPER_GRAIN = svgUrl(`<filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.28  0 0 0 0 0.1  0 0 0 0.55 -0.16'/></filter><rect width='220' height='220' filter='url(#p)'/>`, 220, 220);\nconst OAK_FACE = `${grain(0.011, 0.82, 7, 2.6)}, ${grain(0.0022, 0.06, 3, 1.5)}`;\nconst OAK_LID = `${grain(0.012, 0.7, 21, 2.4)}, ${grain(0.002, 0.05, 9, 1.4)}`;\nconst OAK_UP = `${grain(0.8, 0.012, 4, 2.2)}, ${grain(0.05, 0.002, 5, 1.2)}`;\nconst BRASS = \"linear-gradient(180deg, #fff1bd 0%, #e0bb62 22%, #b98d33 55%, #8a6519 78%, #d9b660 100%)\";\nconst TONES = [\"#f4ebd7\", \"#f1e6cf\", \"#f5edda\", \"#efe3ca\", \"#f3e9d3\", \"#f0e5cd\"];\nconst JITTER = [\n  { x: -1, r: 0.25 },\n  { x: 2, r: -0.3 },\n  { x: 0, r: 0.15 },\n  { x: -2, r: -0.2 },\n  { x: 1, r: 0.3 },\n  { x: -1, r: -0.15 },\n];\n/** A card dropped on its edge: one firm landing and one small hop. */\nconst landing = (t: number) => (t < 0.62 ? (t / 0.62) * (t / 0.62) : 1 - 0.09 * Math.sin(((t - 0.62) / 0.38) * Math.PI));\n\nfunction IndexCard({ i, d, rimY, active, reduce, onPick, uid }: { i: number; d: Dims; rimY: number; active: boolean; reduce: boolean; onPick: () => void; uid: string }) {\n  const item = cards[i];\n  const rowTop = rimY - PEEK - i * d.step;\n  const rise = rowTop - (rimY - SEAT - d.cardH);\n  const y = useMotionValue(active ? -rise : 0);\n  const rotate = useTransform(y, [0, -rise * 0.5, -rise], [JITTER[i].r, -0.9, 0]);\n  const [behind, setBehind] = useState(active);\n  const [out, setOut] = useState(active);\n  const was = useRef({ active, behind: active, greeted: false });\n\n  useEffect(() => {\n    const put = (b: boolean) => {\n      was.current.behind = b;\n      setBehind(b);\n    };\n    if (was.current.active === active || reduce) {\n      // nothing was pressed (first paint, or the frame changed size): sit where it belongs\n      was.current.active = active;\n      y.set(active ? -rise : 0);\n      put(active);\n      setOut(active);\n      if (active || reduce || was.current.greeted) return;\n      // once, on arrival, a finger runs along the tabs\n      was.current.greeted = true;\n      const hop = animate(y, [0, -9, 0], { duration: 0.5, delay: 0.75 + i * 0.11, ease: \"easeInOut\" });\n      return () => hop.stop();\n    }\n    was.current.active = active;\n    let live = true;\n    let run = animate(y, y.get(), { duration: 0 });\n    const home = () => {\n      run = animate(y, 0, { type: \"spring\", stiffness: 210, damping: 25 });\n      run.then(() => live && setOut(false));\n    };\n    if (active) {\n      setOut(true);\n      run = animate(y, -(rise + CLEAR), { duration: 0.44, ease: [0.3, 0, 0.12, 1] });\n      run.then(() => {\n        if (!live) return;\n        put(true);\n        run = animate(y, -rise, { duration: 0.42, ease: landing });\n      });\n    } else if (was.current.behind) {\n      run = animate(y, -(rise + CLEAR), { duration: 0.24, ease: [0.4, 0, 0.5, 1] });\n      run.then(() => {\n        if (!live) return;\n        put(false);\n        home();\n      });\n    } else home();\n    return () => {\n      live = false;\n      run.stop();\n    };\n  }, [active, reduce, rise, y]);\n\n  const tabLeft = (i * (d.cardW - d.tabW)) / (cards.length - 1);\n  const paper = TONES[i % TONES.length];\n  return (\n    <motion.div className=\"absolute\" style={{ left: (d.boxW + 48 - d.cardW) / 2 + JITTER[i].x, top: rowTop, width: d.cardW, height: d.cardH, y, rotate, zIndex: behind ? 1 : 30 - i, transformOrigin: \"50% 100%\" }}>\n      {/* the tab is the control: it is cut from the same sheet as the card */}\n      <h3 className=\"absolute m-0\" style={{ left: tabLeft, top: -d.tabH, width: d.tabW, height: d.tabH + 14 }}>\n        <button\n          type=\"button\"\n          id={`${uid}-q${i}`}\n          aria-expanded={active}\n          aria-controls={`${uid}-a${i}`}\n          onClick={onPick}\n          className=\"group relative block h-full w-full cursor-pointer rounded-t-[7px] outline-none focus-visible:ring-2 focus-visible:ring-[#1f4f8f] focus-visible:ring-offset-2 focus-visible:ring-offset-[#f4ebd7]\"\n        >\n          <span aria-hidden=\"true\" className=\"absolute inset-x-0 top-0 rounded-t-[7px]\" style={{ height: d.tabH + 1, background: paper, backgroundImage: `linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 60%), ${PAPER_GRAIN}`, boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.9), inset 1px 0 0 rgba(120,90,40,0.16), inset -1px 0 0 rgba(120,90,40,0.2), 0 -1px 2px rgba(60,35,10,0.18)\" }} />\n          <span aria-hidden=\"true\" className={`absolute inset-x-0 top-0 grid place-items-center font-mono font-bold uppercase tracking-[0.08em] transition-colors ${active ? \"text-[#b3301f]\" : \"text-[#3b3128] group-hover:text-[#b3301f]\"}`} style={{ height: d.tabH, fontSize: d.tabText }}>\n            {item.tab}\n          </span>\n          <span className=\"sr-only\">{item.q}</span>\n        </button>\n      </h3>\n\n      <div className=\"absolute inset-0 overflow-hidden rounded-[3px]\" style={{ background: paper, backgroundImage: `linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0) 30%, rgba(120,84,30,0.07)), ${PAPER_GRAIN}`, boxShadow: \"inset 0 1px 0 rgba(255,255,255,0.95), inset 0 0 0 1px rgba(120,90,40,0.14), 0 -2px 3px rgba(50,28,6,0.2), 0 10px 18px rgba(50,28,6,0.28)\" }}>\n        {/* printed rules: one red, the rest blue */}\n        <div aria-hidden=\"true\" className=\"absolute inset-x-0\" style={{ top: d.head, height: 1.5, background: \"#c9483a\", opacity: 0.75 }} />\n        <div aria-hidden=\"true\" className=\"absolute inset-x-0 bottom-0\" style={{ top: d.head + 10, backgroundImage: `repeating-linear-gradient(180deg, rgba(70,112,165,0) 0 ${d.line - 1}px, rgba(70,112,165,0.38) ${d.line - 1}px ${d.line}px)` }} />\n        <div id={`${uid}-a${i}`} role=\"region\" aria-labelledby={`${uid}-q${i}`} className=\"absolute inset-0 font-mono text-[#2a2420]\" style={{ padding: `0 ${d.pad}px`, visibility: out ? \"visible\" : \"hidden\" }}>\n          <div className=\"flex items-end justify-between gap-3\" style={{ height: d.head - 7 }}>\n            <p className=\"m-0 font-bold leading-[1.25]\" style={{ fontSize: d.ask }}>\n              {item.q}\n            </p>\n            <p aria-hidden=\"true\" className=\"m-0 shrink-0 font-bold tracking-[0.1em] text-[#b3301f]\" style={{ fontSize: d.tabText }}>\n              {String(i + 1).padStart(2, \"0\")}/{String(cards.length).padStart(2, \"0\")}\n            </p>\n          </div>\n          <p className=\"m-0\" style={{ marginTop: 17, fontSize: d.text, lineHeight: `${d.line}px` }}>\n            {item.a}\n          </p>\n        </div>\n        <span aria-hidden=\"true\" className=\"absolute grid place-items-center rounded-[2px] font-mono font-bold uppercase tracking-[0.14em] text-[#7a2a55]\" style={{ left: d.pad, bottom: 66, height: 26, padding: \"0 8px\", fontSize: d.tabText - 1, border: \"1.5px solid #7a2a55\", boxShadow: \"inset 0 0 0 1.5px rgba(255,255,255,0), inset 0 0 0 3px rgba(122,42,85,0.55)\", opacity: 0.5, transform: \"rotate(-4deg)\", visibility: out ? \"visible\" : \"hidden\" }}>\n          Halewood T.L.\n        </span>\n        {/* the hole for the drawer rod */}\n        <span aria-hidden=\"true\" className=\"absolute left-1/2 h-[13px] w-[13px] -translate-x-1/2 rounded-full\" style={{ bottom: 72, background: \"#5a3d1d\", boxShadow: \"inset 0 2px 3px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.7)\" }} />\n      </div>\n    </motion.div>\n  );\n}\n\nexport default function OakCardIndexFaq() {\n  const reduce = !!useReducedMotion();\n  const uid = useId();\n  const wrapRef = useRef<HTMLDivElement>(null);\n  const [slim, setSlim] = useState(false);\n  const [scale, setScale] = useState(1);\n  const [open, setOpen] = useState(0);\n  const idle = useRef({ touched: false, paused: false });\n\n  const d = slim ? SLIM : WIDE;\n  const back = cards.length * d.step + 12; // how far up the screen the box runs from its front rim to its hinge\n  const rimY = TOP + d.lidH + back;\n  const W = d.boxW + 48;\n  const H = rimY + d.boxH + 44;\n  const x0 = 24;\n\n  useEffect(() => {\n    const wrap = wrapRef.current;\n    if (!wrap) return;\n    const measure = () => {\n      const w = wrap.clientWidth;\n      const narrow = w < 640;\n      setSlim(narrow);\n      setScale(Math.min(1, w / ((narrow ? SLIM : WIDE).boxW + 20)));\n    };\n    measure();\n    const ro = new ResizeObserver(measure);\n    ro.observe(wrap);\n    return () => ro.disconnect();\n  }, []);\n\n  // until someone touches it, the box leafs through its own cards\n  useEffect(() => {\n    if (reduce) return;\n    const s = idle.current;\n    const t = window.setInterval(() => {\n      if (s.touched || s.paused || document.hidden) return;\n      setOpen((v) => (v + 1) % cards.length);\n    }, 3600);\n    return () => window.clearInterval(t);\n  }, [reduce]);\n\n  const pick = (i: number) => {\n    idle.current.touched = true;\n    setOpen((v) => (v === i ? -1 : i));\n  };\n  const frame = d.wall;\n  const fingers = [0, 1, 2, 3, 4];\n\n  return (\n    <section className=\"relative overflow-hidden bg-[#e4dfd3]\">\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"radial-gradient(70% 62% at 46% 34%, #f6f3ea 0%, #e6e1d5 52%, #cfc9ba 100%)\" }} />\n      <div\n        ref={wrapRef}\n        onPointerEnter={() => (idle.current.paused = true)}\n        onPointerLeave={() => (idle.current.paused = false)}\n        onFocus={() => (idle.current.paused = true)}\n        onBlur={() => (idle.current.paused = false)}\n        className=\"relative mx-auto w-full max-w-[1100px]\"\n        style={{ height: Math.round(H * scale) + (slim ? 96 : 64) }}\n      >\n        <h2 className=\"sr-only\">{library.name}: questions and answers</h2>\n        <div className=\"absolute left-1/2 top-0\" style={{ width: W, height: H, transformOrigin: \"50% 0\", transform: `translateX(-50%) scale(${scale})` }}>\n          {/* what the box does to the table and the wall behind it */}\n          <div aria-hidden=\"true\" className=\"absolute rounded-[50%]\" style={{ left: x0 - 30, top: rimY + d.boxH - 26, width: d.boxW + 90, height: 64, background: \"rgba(40,28,12,0.5)\", filter: \"blur(22px)\" }} />\n          <div aria-hidden=\"true\" className=\"absolute\" style={{ left: x0 + 18, top: TOP + 26, width: d.boxW + 12, height: d.lidH + back, background: \"rgba(60,44,22,0.3)\", filter: \"blur(26px)\" }} />\n\n          {/* the lid, standing open: a shallow tray seen from inside */}\n          <div aria-hidden=\"true\" className=\"absolute overflow-hidden rounded-t-[7px]\" style={{ left: x0, top: TOP, width: d.boxW, height: d.lidH, background: \"#b98749\", backgroundImage: OAK_LID, backgroundSize: \"100% 100%, 100% 100%\", boxShadow: \"inset 0 0 0 1px rgba(60,32,8,0.5)\" }}>\n            <div className=\"absolute\" style={{ inset: frame, background: \"#9a6a33\", backgroundImage: `linear-gradient(180deg, rgba(30,14,0,0.5), rgba(30,14,0,0.08) 22%, rgba(30,14,0,0) 60%, rgba(30,14,0,0.25)), linear-gradient(90deg, rgba(30,14,0,0.34), rgba(30,14,0,0) 9%, rgba(30,14,0,0) 93%, rgba(30,14,0,0.2)), ${OAK_FACE}`, backgroundSize: \"auto, auto, 100% 100%, 100% 100%\", boxShadow: \"inset 0 0 0 1px rgba(40,20,4,0.7)\" }} />\n            {/* mitred frame: each rail catches the light differently */}\n            <div className=\"absolute inset-x-0 top-0\" style={{ height: frame, clipPath: `polygon(0 0, 100% 0, calc(100% - ${frame}px) 100%, ${frame}px 100%)`, background: \"linear-gradient(180deg, rgba(255,236,190,0.7), rgba(255,226,170,0.2))\" }} />\n            <div className=\"absolute inset-y-0 left-0\" style={{ width: frame, clipPath: `polygon(0 0, 100% ${frame}px, 100% 100%, 0 100%)`, background: \"linear-gradient(90deg, rgba(255,232,180,0.38), rgba(255,226,170,0.05))\" }} />\n            <div className=\"absolute inset-y-0 right-0\" style={{ width: frame, clipPath: `polygon(0 ${frame}px, 100% 0, 100% 100%, 0 100%)`, background: \"linear-gradient(90deg, rgba(40,18,0,0.12), rgba(40,18,0,0.36))\" }} />\n          </div>\n\n          {/* inside the box, with the tops of its side walls running back to the hinge */}\n          <div aria-hidden=\"true\" className=\"absolute\" style={{ left: x0, top: rimY - back, width: d.boxW, height: back + 8, background: \"linear-gradient(180deg, #2a1a0b, #170d05)\" }} />\n          {[0, 1].map((side) => (\n            <div key={side} aria-hidden=\"true\" className=\"absolute\" style={{ left: side ? x0 + d.boxW - frame : x0, top: rimY - back, width: frame, height: back, background: \"#d6ab6c\", backgroundImage: `linear-gradient(180deg, rgba(60,30,4,0.35), rgba(255,240,205,0.3) 30%, rgba(255,240,205,0.45)), ${OAK_UP}`, backgroundSize: \"auto, 100% 100%, 100% 100%\", boxShadow: \"inset 0 2px 0 rgba(40,20,4,0.6), inset 0 0 0 1px rgba(60,32,8,0.4)\" }}>\n              <span className=\"absolute inset-x-[2px] top-[-5px] block h-[10px] rounded-[2px]\" style={{ background: BRASS, boxShadow: \"0 1px 2px rgba(0,0,0,0.5), inset 0 0 0 0.5px rgba(80,50,0,0.7)\" }} />\n            </div>\n          ))}\n\n          {/* cards are taller than the box is deep on screen, so they are cut off where its floor would be */}\n          <div className=\"absolute inset-x-0 top-0 overflow-hidden\" style={{ height: rimY + d.boxH - 8 }}>\n            {cards.map((_, i) => (\n              <IndexCard key={i} i={i} d={d} rimY={rimY} active={open === i} reduce={reduce} onPick={() => pick(i)} uid={uid} />\n            ))}\n          </div>\n\n          {/* the front of the box: rim, oak face, finger joints, brass holder */}\n          <div aria-hidden=\"true\" className=\"absolute\" style={{ left: x0, top: rimY - 7, width: d.boxW, height: d.boxH + 7, zIndex: 40 }}>\n            <div className=\"absolute inset-x-0 top-0 h-[8px] rounded-t-[2px]\" style={{ background: \"#dcb478\", backgroundImage: `linear-gradient(180deg, rgba(255,244,214,0.75), rgba(255,236,196,0.2)), ${OAK_FACE}`, backgroundSize: \"auto, 100% 100%, 100% 100%\", boxShadow: \"0 -3px 5px rgba(0,0,0,0.35)\" }} />\n            <div className=\"absolute inset-x-0 bottom-0 overflow-hidden rounded-b-[5px]\" style={{ top: 7, background: \"#c2924f\", backgroundImage: `linear-gradient(180deg, rgba(255,238,198,0.5) 0, rgba(255,238,198,0.12) 5px, rgba(255,232,186,0) 34%, rgba(46,22,2,0.14) 74%, rgba(46,22,2,0.42) 100%), linear-gradient(90deg, rgba(255,236,196,0.2), rgba(255,236,196,0) 22%, rgba(40,18,0,0) 80%, rgba(40,18,0,0.2)), ${OAK_FACE}`, backgroundSize: \"auto, auto, 100% 100%, 100% 100%\", boxShadow: \"inset 0 0 0 1px rgba(64,34,8,0.55), inset 0 -2px 0 rgba(30,12,0,0.4), inset 0 2px 0 rgba(255,240,205,0.45), inset 2px 0 0 rgba(255,236,196,0.18), inset -2px 0 0 rgba(30,12,0,0.2), inset 0 0 50px rgba(60,28,0,0.22)\" }}>\n              {[0, 1].map((side) =>\n                fingers.map((f) =>\n                  f % 2 === 0 ? (\n                    <span key={`${side}-${f}`} className=\"absolute block\" style={{ [side ? \"right\" : \"left\"]: 0, top: `${f * 20}%`, height: \"20%\", width: frame, background: \"#8a5b29\", backgroundImage: \"repeating-linear-gradient(90deg, rgba(40,18,0,0.28) 0 1px, rgba(255,220,160,0.1) 1px 3px), linear-gradient(180deg, rgba(255,230,180,0.25), rgba(0,0,0,0.22))\", boxShadow: \"inset 0 0 0 1px rgba(50,24,2,0.6)\" }} />\n                  ) : null,\n                ),\n              )}\n              {/* brass label holder with a finger pull */}\n              <div className=\"absolute left-1/2 -translate-x-1/2\" style={{ top: slim ? \"20%\" : \"23%\", width: slim ? 132 : 176 }}>\n                <div className=\"relative rounded-[3px] p-[7px]\" style={{ background: BRASS, boxShadow: \"0 3px 5px rgba(30,12,0,0.55), 0 1px 0 rgba(255,246,210,0.5) inset, 0 0 0 0.5px rgba(70,44,0,0.9)\" }}>\n                  <div className=\"rounded-[1px] px-2 py-[6px] text-center font-mono uppercase text-[#2a2420]\" style={{ background: \"#f3ead4\", backgroundImage: PAPER_GRAIN, boxShadow: \"inset 0 2px 4px rgba(50,28,0,0.55), inset 0 0 0 0.5px rgba(50,28,0,0.6)\" }}>\n                    <span className=\"block font-bold tracking-[0.22em]\" style={{ fontSize: slim ? 10 : 12.5 }}>\n                      {library.drawer}\n                    </span>\n                    <span className=\"block tracking-[0.12em] text-[#6b5a44]\" style={{ fontSize: slim ? 6.5 : 7.5 }}>\n                      {library.note}\n                    </span>\n                  </div>\n                  {[\n                    { left: 1.5, top: 1.5 },\n                    { right: 1.5, top: 1.5 },\n                    { left: 1.5, bottom: 1.5 },\n                    { right: 1.5, bottom: 1.5 },\n                  ].map((p, k) => (\n                    <span key={k} className=\"absolute block h-[4px] w-[4px] rounded-full\" style={{ ...p, background: \"radial-gradient(circle at 35% 30%, #fff3c4, #8a6519 70%)\", boxShadow: \"0 0 0 0.5px rgba(60,36,0,0.8)\" }} />\n                  ))}\n                </div>\n                <div className=\"mx-auto h-[15px] w-[46%] rounded-b-[14px]\" style={{ background: \"linear-gradient(180deg, #7a5814 0%, #c9a24a 28%, #fff0b8 58%, #b58a30 100%)\", boxShadow: \"0 4px 5px rgba(30,12,0,0.5), inset 0 0 0 0.5px rgba(70,44,0,0.9)\" }} />\n              </div>\n            </div>\n          </div>\n        </div>\n\n        <p className=\"absolute bottom-5 left-5 m-0 font-mono text-[11px] uppercase leading-relaxed tracking-[0.18em] text-[#5b5445] sm:bottom-7 sm:left-8\">\n          <span className=\"text-[#231d15]\">{library.name}</span>\n          <span className=\"block\">Press a tab to pull its card</span>\n        </p>\n      </div>\n    </section>\n  );\n}\n"}]}
