{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"hotel-do-not-disturb-door-hanger-card-that-swings-on-a-brass-knob-and-flips-to-make-up-my-room","type":"registry:block","title":"Hotel Do Not Disturb Door Hanger Card That Swings on a Brass Knob and Flips to Make up My Room","description":"Door hanger card that swings from a brass knob as a pendulum, lifts clear when pressed and flips in 3D to its other message. Free React and HTML to copy.","dependencies":["framer-motion"],"files":[{"path":"components/we-inc/hotel-do-not-disturb-door-hanger-card-that-swings-on-a-brass-knob-and-flips-to-make-up-my-room.tsx","type":"registry:component","content":"import { useCallback, useEffect, useRef, useState } from \"react\";\nimport type { PointerEvent as ReactPointerEvent } from \"react\";\nimport { animate, motion, useMotionValue, useReducedMotion, useTransform } from \"framer-motion\";\n\n/** What is printed on the two sides of the card. */\nconst hotel = { name: \"The Aldermoor\", room: \"Room 214\" };\nconst sides = {\n  quiet: { lines: [\"Do not\", \"disturb\"], note: \"Sleeping in. Thank you for the quiet.\", said: \"Do not disturb is showing\" },\n  service: { lines: [\"Please\", \"make up\", \"my room\"], note: \"Out for the day. Fresh towels welcome.\", said: \"Please make up my room is showing\" },\n};\n\n// Design pixels, measured from the middle of the door knob.\nconst CW = 178; // card\nconst CH = 404;\nconst HOLE = 38; // radius of the hole in the card\nconst HOLE_Y = 64; // its centre, down from the top of the card\nconst NECK = 15; // radius of the knob's neck, where the card rests\nconst HEAD = 31; // radius of the knob itself, small enough to pass through the hole\nconst ROSE = 47; // the plate behind it\nconst DROP = HOLE - NECK; // how far the card must be lifted to clear the knob\nconst PIVOT_Y = HOLE_Y - DROP;\nconst KNOB_TOP = 176; // knob centre, down from the top of the scene\nconst SCENE_H = 650;\nconst GRAVITY = 30; // swing stiffness, per second squared\nconst DRAG = 1.05; // how fast the swing dies away\nconst OXBLOOD = \"#7a1c22\";\nconst CREAM = \"#efe6d1\";\nconst GREEN = \"#1d4a3c\";\n\nconst clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v));\nconst outline = `M 30 0 H ${CW - 30} A 30 30 0 0 1 ${CW} 30 V ${CH - 14} A 14 14 0 0 1 ${CW - 14} ${CH} H 14 A 14 14 0 0 1 0 ${CH - 14} V 30 A 30 30 0 0 1 30 0 Z M ${CW / 2 - HOLE} ${HOLE_Y} a ${HOLE} ${HOLE} 0 1 0 ${HOLE * 2} 0 a ${HOLE} ${HOLE} 0 1 0 ${-HOLE * 2} 0 Z`;\nconst cut = `path(evenodd, '${outline}')`;\n\nfunction Face({ which }: { which: \"quiet\" | \"service\" }) {\n  const quiet = which === \"quiet\";\n  const s = sides[which];\n  const ink = quiet ? CREAM : GREEN;\n  return (\n    <div className=\"absolute inset-0\" style={{ filter: \"drop-shadow(1px 1.6px 0 rgba(40,25,10,0.5))\", backfaceVisibility: \"hidden\", WebkitBackfaceVisibility: \"hidden\", transform: quiet ? undefined : \"rotateY(180deg)\" }}>\n      <div className=\"absolute inset-0\" style={{ clipPath: cut, background: quiet ? OXBLOOD : CREAM, color: ink }}>\n        {/* keyline */}\n        <div aria-hidden=\"true\" className=\"absolute rounded-[7px]\" style={{ left: 10, right: 10, top: HOLE_Y + HOLE + 16, bottom: 10, border: `1px solid ${ink}`, opacity: 0.75 }} />\n        <div aria-hidden=\"true\" className=\"absolute rounded-[5px]\" style={{ left: 13.5, right: 13.5, top: HOLE_Y + HOLE + 19.5, bottom: 13.5, border: `0.5px solid ${ink}`, opacity: 0.6 }} />\n\n        <div className=\"absolute inset-x-0 text-center\" style={{ top: HOLE_Y + HOLE + 40 }}>\n          <svg viewBox=\"0 0 40 40\" aria-hidden=\"true\" className=\"mx-auto h-[34px] w-[34px]\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n            {quiet ? (\n              <>\n                <path d=\"M27.5 24.5A12 12 0 0 1 15.2 8.3 12 12 0 1 0 31.7 24a12.3 12.3 0 0 1-4.2.5z\" fill=\"currentColor\" fillOpacity=\"0.18\" />\n                <path d=\"M26 7.5h5l-5 6h5M33 15.5h3.5l-3.5 4.2h3.5\" />\n              </>\n            ) : (\n              <>\n                <path d=\"M7 28.5a13 13 0 0 1 26 0z\" fill=\"currentColor\" fillOpacity=\"0.14\" />\n                <path d=\"M4.5 32h31M20 15.5v-3M17 12.5h6M11.5 26a8.6 8.6 0 0 1 5-6.3\" />\n              </>\n            )}\n          </svg>\n          <p className=\"m-0 mt-[16px] font-serif italic leading-[0.92] tracking-[-0.01em]\" style={{ fontSize: quiet ? 39 : 33 }}>\n            {s.lines.map((l) => (\n              <span key={l} className=\"block\">\n                {l}\n              </span>\n            ))}\n          </p>\n          <span aria-hidden=\"true\" className=\"mx-auto mt-[17px] block h-px w-[34px]\" style={{ background: ink, opacity: 0.7 }} />\n          <p className=\"mx-auto mb-0 mt-[15px] w-[124px] font-serif text-[11.5px] leading-[1.35]\" style={{ opacity: 0.92 }}>\n            {s.note}\n          </p>\n        </div>\n\n        <div className=\"absolute inset-x-0 bottom-[25px] text-center font-mono font-semibold uppercase leading-none\">\n          <span className=\"block text-[9px] tracking-[0.3em]\">{hotel.name}</span>\n          <span className=\"mt-[7px] block text-[7.5px] tracking-[0.34em]\" style={{ opacity: 0.8 }}>\n            {hotel.room}\n          </span>\n        </div>\n\n        {/* coated board: fibre under the varnish, then a sheen and a soft roll at the edges */}\n        <svg aria-hidden=\"true\" className=\"absolute inset-0 h-full w-full mix-blend-multiply\" style={{ opacity: quiet ? 0.55 : 0.4 }}>\n          <rect width=\"100%\" height=\"100%\" filter=\"url(#door-hanger-flip-fibre)\" />\n        </svg>\n        <div aria-hidden=\"true\" className=\"absolute inset-0\" style={{ background: \"linear-gradient(118deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.06) 22%, rgba(255,255,255,0) 40%, rgba(0,0,0,0) 66%, rgba(0,0,0,0.2) 100%)\" }} />\n        <div aria-hidden=\"true\" className=\"absolute inset-0\" style={{ borderRadius: \"30px 30px 14px 14px\", boxShadow: \"inset 0 1.5px 0 rgba(255,255,255,0.45), inset 1.5px 0 0 rgba(255,255,255,0.22), inset -1px -1.5px 1px rgba(0,0,0,0.3)\" }} />\n        {/* the cut edge of the hole */}\n        <div aria-hidden=\"true\" className=\"absolute rounded-full\" style={{ left: CW / 2 - HOLE - 2.5, top: HOLE_Y - HOLE - 2.5, width: HOLE * 2 + 5, height: HOLE * 2 + 5, border: \"2.5px solid rgba(0,0,0,0)\", borderTopColor: \"rgba(0,0,0,0.3)\", borderLeftColor: \"rgba(0,0,0,0.2)\", borderBottomColor: \"rgba(255,255,255,0.4)\", borderRightColor: \"rgba(255,255,255,0.28)\" }} />\n      </div>\n    </div>\n  );\n}\n\nexport default function DoorHangerFlipCard() {\n  const reduce = !!useReducedMotion();\n  const rootRef = useRef<HTMLElement>(null);\n  const stageRef = useRef<HTMLDivElement>(null);\n  const swingRef = useRef<HTMLButtonElement>(null);\n  const shadeRef = useRef<HTMLDivElement>(null);\n  const live = useRef({ th: 0.16, w: 0, scale: 1, drag: false, held: false, aim: 0, grab: 0, moved: 0, x: 0, y: 0, touched: false, paused: false, busy: false, gust: 2.6, clock: 0 });\n  const [quiet, setQuiet] = useState(false);\n  const [above, setAbove] = useState(false);\n  const [said, setSaid] = useState(\"\");\n\n  const flip = useMotionValue(180); // 0 shows \"do not disturb\", 180 the other side\n  const twist = useMotionValue(0);\n  const hook = useMotionValue(0);\n  const lift = useMotionValue(0);\n  const turn = useTransform([flip, twist], (v) => (v[0] as number) + (v[1] as number));\n  const grow = useTransform(lift, (v) => 1 + v * 0.1);\n  const shadeX = useTransform(lift, (v) => 11 + v * 26);\n  const shadeY = useTransform(lift, (v) => 15 + v * 34);\n  const shadeW = useTransform([flip, twist, lift], (v) => Math.max(0.05, Math.abs(Math.cos((((v[0] as number) + (v[1] as number)) * Math.PI) / 180))) * (1 + (v[2] as number) * 0.12));\n  const shadeA = useTransform(lift, (v) => 0.42 - v * 0.17);\n  const shadeNear = useTransform(lift, (v) => 0.5 * (1 - v));\n  const shadeBlur = useTransform(lift, (v) => `blur(${(8 + v * 12).toFixed(1)}px)`);\n\n  const turnOver = useCallback(\n    (to?: boolean) => {\n      const s = live.current;\n      if (s.busy) return;\n      const next = to ?? flip.get() > 90;\n      setQuiet(next);\n      const end = next ? 0 : 180;\n      if (reduce) {\n        flip.set(end);\n        return;\n      }\n      s.busy = true;\n      s.held = true;\n      // lift it clear of the knob, bring it forward, turn it, hang it back and let it swing\n      animate(hook, -DROP, { duration: 0.16, ease: \"easeOut\" }).then(() => {\n        setAbove(true);\n        animate(lift, 1, { duration: 0.2, ease: \"easeOut\" });\n        animate(flip, end, { type: \"spring\", stiffness: 120, damping: 15, mass: 0.9 });\n        window.setTimeout(() => {\n          animate(lift, 0, { duration: 0.2, ease: \"easeIn\" }).then(() => {\n            setAbove(false);\n            animate(hook, 0, { type: \"spring\", stiffness: 420, damping: 13 });\n            s.held = false;\n            s.busy = false;\n            s.w += next ? 1.5 : -1.5;\n          });\n        }, 520);\n      });\n    },\n    [flip, hook, lift, reduce],\n  );\n\n  // the pendulum, the draught that keeps it alive, and the demo that turns the card over\n  useEffect(() => {\n    const root = rootRef.current;\n    const swing = swingRef.current;\n    const shade = shadeRef.current;\n    if (!root || !swing || !shade) return;\n    const s = live.current;\n    if (reduce) {\n      s.th = 0;\n      flip.set(0);\n      setQuiet(true);\n      return;\n    }\n    let raf = 0;\n    let last = performance.now();\n    let seen = true;\n    const frame = (now: number) => {\n      raf = requestAnimationFrame(frame);\n      const dt = Math.min(0.034, (now - last) / 1000);\n      last = now;\n      if (!seen || document.hidden) return;\n      if (s.drag) {\n        const before = s.th;\n        s.th += (s.aim - s.th) * Math.min(1, dt * 20);\n        s.w = s.w * 0.6 + ((s.th - before) / Math.max(dt, 0.001)) * 0.4;\n      } else if (s.held) {\n        s.th += (0 - s.th) * Math.min(1, dt * 12);\n        s.w = 0;\n      } else {\n        s.w += (-GRAVITY * Math.sin(s.th) - DRAG * s.w) * dt;\n        s.th += s.w * dt;\n        s.gust -= dt;\n        if (s.gust < 0 && !s.paused) {\n          s.w += (Math.random() < 0.5 ? -1 : 1) * 0.42;\n          s.gust = 2.2 + Math.random() * 1.8;\n        }\n      }\n      const deg = ((-s.th * 180) / Math.PI).toFixed(3);\n      swing.style.transform = `rotate(${deg}deg)`;\n      shade.style.transform = `rotate(${deg}deg)`;\n      twist.set(s.held ? 0 : clamp(s.w * 5, -18, 18));\n      if (!s.touched && !s.paused && !s.busy) {\n        s.clock += dt;\n        if (s.clock > (flip.get() > 90 ? 0.85 : 4.2)) {\n          s.clock = flip.get() > 90 ? 0 : -1.6;\n          turnOver();\n        }\n      }\n    };\n    raf = requestAnimationFrame(frame);\n    const io = new IntersectionObserver((entries) => {\n      seen = entries[0]?.isIntersecting ?? true;\n    });\n    io.observe(root);\n    return () => {\n      cancelAnimationFrame(raf);\n      io.disconnect();\n    };\n  }, [flip, reduce, turnOver, twist]);\n\n  useEffect(() => {\n    const root = rootRef.current;\n    const stage = stageRef.current;\n    if (!root || !stage) return;\n    const measure = () => {\n      const sc = clamp(root.clientWidth / 1000, 0.82, 1.16);\n      live.current.scale = sc;\n      root.style.height = `${Math.round(SCENE_H * sc)}px`;\n      stage.style.transform = `scale(${sc.toFixed(4)})`;\n      stage.style.top = `${Math.round(KNOB_TOP * sc)}px`;\n    };\n    measure();\n    const ro = new ResizeObserver(measure);\n    ro.observe(root);\n    return () => ro.disconnect();\n  }, []);\n\n  const angleTo = (e: ReactPointerEvent) => {\n    const stage = stageRef.current;\n    if (!stage) return 0;\n    const r = stage.getBoundingClientRect();\n    return Math.atan2(e.clientX - r.left, Math.max(20, e.clientY - r.top));\n  };\n  const onDown = (e: ReactPointerEvent<HTMLButtonElement>) => {\n    const s = live.current;\n    if (e.button !== 0 || s.busy) return;\n    s.touched = true;\n    s.moved = 0;\n    s.x = e.clientX;\n    s.y = e.clientY;\n    if (reduce) return;\n    s.drag = true;\n    s.grab = angleTo(e) - s.th;\n    s.aim = s.th;\n    e.currentTarget.setPointerCapture(e.pointerId);\n  };\n  const onMove = (e: ReactPointerEvent<HTMLButtonElement>) => {\n    const s = live.current;\n    if (!s.drag) return;\n    s.moved = Math.max(s.moved, Math.hypot(e.clientX - s.x, e.clientY - s.y));\n    s.aim = clamp(angleTo(e) - s.grab, -1.15, 1.15);\n  };\n  const onUp = () => {\n    live.current.drag = false;\n  };\n\n  const brass = \"radial-gradient(circle at 33% 27%, #fff8d8 0%, #f6dc8e 7%, rgba(246,220,142,0) 27%), linear-gradient(172deg, rgba(90,55,5,0) 0%, rgba(90,55,5,0) 50%, rgba(84,50,4,0.5) 56%, rgba(84,50,4,0.12) 78%, rgba(255,226,160,0.3) 100%), radial-gradient(circle at 74% 82%, rgba(255,214,140,0.5) 0%, rgba(255,214,140,0) 26%), radial-gradient(circle at 46% 42%, #dcb052 0%, #c4942f 42%, #99691c 70%, #6c4610 88%, #47300a 100%)\";\n\n  return (\n    <section\n      ref={rootRef}\n      onPointerEnter={(e) => {\n        if (e.pointerType !== \"touch\") live.current.paused = true;\n      }}\n      onPointerLeave={() => (live.current.paused = false)}\n      className=\"relative overflow-hidden bg-[#c3c9b8]\"\n      style={{ height: SCENE_H * 1.16 }}\n    >\n      <svg aria-hidden=\"true\" width=\"0\" height=\"0\" className=\"absolute\">\n        <filter id=\"door-hanger-flip-fibre\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\">\n          <feTurbulence type=\"fractalNoise\" baseFrequency=\"0.85 0.6\" numOctaves=\"3\" seed=\"3\" />\n          <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0 0.12  0.9 0 0 0 -0.3\" />\n        </filter>\n        <filter id=\"door-hanger-flip-paint\" x=\"0\" y=\"0\" width=\"100%\" height=\"100%\">\n          <feTurbulence type=\"fractalNoise\" baseFrequency=\"0.4 0.01\" numOctaves=\"3\" seed=\"9\" />\n          <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0.16  0 0 0 0 0.2  0 0 0 0 0.12  1.3 0 0 0 -0.52\" />\n        </filter>\n      </svg>\n\n      {/* the painted door: light falling from the upper left, brush marks running with the grain */}\n      <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\" style={{ background: \"radial-gradient(90% 80% at 30% 18%, #d6dccb 0%, #c3c9b8 46%, #a4ab99 100%)\" }} />\n      <svg aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0 h-full w-full opacity-[0.17] mix-blend-multiply\">\n        <rect width=\"100%\" height=\"100%\" filter=\"url(#door-hanger-flip-paint)\" />\n      </svg>\n\n      <div ref={stageRef} className=\"absolute left-1/2 select-none\" style={{ top: KNOB_TOP, width: 0, height: 0, transformOrigin: \"0 0\" }}>\n        {/* sunk panel with its moulding */}\n        <div aria-hidden=\"true\" className=\"pointer-events-none absolute\" style={{ left: -690, top: -96, width: 510, height: 900, borderStyle: \"solid\", borderWidth: 13, borderTopColor: \"#97a08c\", borderLeftColor: \"#a2aa97\", borderBottomColor: \"#dfe4d5\", borderRightColor: \"#dce1d2\", boxShadow: \"0 0 0 1px rgba(255,255,255,0.35), -1px -1px 0 1px rgba(60,70,50,0.22)\" }}>\n          <div className=\"absolute inset-0\" style={{ background: \"linear-gradient(135deg, rgba(60,70,50,0.14), rgba(60,70,50,0) 22%)\", boxShadow: \"inset 5px 6px 9px rgba(50,60,40,0.3), inset -1px -1px 0 rgba(255,255,255,0.4)\" }} />\n        </div>\n        {/* the edge of the door, the gap, and the frame beyond it */}\n        <div aria-hidden=\"true\" className=\"pointer-events-none absolute\" style={{ left: 300, top: -400, width: 900, height: 1400, background: \"linear-gradient(90deg, #cdd3c2 0, #e1e6d8 12px, #d3d9c9 26px, #b9c0ad 30px, #d9decf 36px, #dde2d3 92px, #c2c9b6 98px, #e3e8da 104px, #d6dbcc 150px, #b4bba8 156px, #d2d8c8 164px, #d2d8c8 100%)\", boxShadow: \"-5px 0 0 #3b4034, -6.5px 0 0 rgba(255,255,255,0.5), -11px 0 9px rgba(50,60,40,0.22)\" }} />\n\n        {/* back plate of the knob */}\n        <div aria-hidden=\"true\" className=\"pointer-events-none absolute rounded-full\" style={{ left: -ROSE, top: -ROSE, width: ROSE * 2, height: ROSE * 2, background: \"conic-gradient(from 20deg, #b78930, #ecd083, #a9792a, #e2c16c, #9a6c20, #e8cb7c, #b0812c, #ecd083, #b78930)\", boxShadow: \"inset 0 2px 1.5px rgba(255,246,205,0.85), inset 0 -2.5px 3px rgba(70,40,0,0.6), 0 1px 1px rgba(40,30,0,0.6), 5px 8px 10px rgba(45,55,35,0.45), 12px 20px 26px rgba(45,55,35,0.22)\" }}>\n          <div className=\"absolute rounded-full\" style={{ inset: 13, boxShadow: \"inset 0 2px 3px rgba(60,35,0,0.7), 0 1px 0 rgba(255,244,200,0.7)\", background: \"radial-gradient(circle at 40% 30%, #b98a34, #8a611b 70%, #6b490f)\" }} />\n        </div>\n\n        {/* shadow of the card on the door */}\n        <div ref={shadeRef} aria-hidden=\"true\" className=\"pointer-events-none absolute\" style={{ left: -CW / 2, top: -PIVOT_Y, width: CW, height: CH, transformOrigin: `${CW / 2}px ${PIVOT_Y}px`, zIndex: 5 }}>\n          <motion.div className=\"absolute inset-0\" style={{ x: shadeX, y: shadeY, scaleX: shadeW, opacity: shadeA, filter: shadeBlur }}>\n            <motion.div className=\"absolute inset-0 bg-[#1e2616]\" style={{ clipPath: cut, y: hook }} />\n          </motion.div>\n          <motion.div className=\"absolute inset-0\" style={{ x: 2.5, y: 3.5, scaleX: shadeW, opacity: shadeNear, filter: \"blur(2.5px)\" }}>\n            <motion.div className=\"absolute inset-0 bg-[#1e2616]\" style={{ clipPath: cut, y: hook }} />\n          </motion.div>\n        </div>\n\n        {/* the card: one button that turns it over, and something to drag */}\n        <button\n          ref={swingRef}\n          type=\"button\"\n          aria-pressed={quiet}\n          aria-label={`Do not disturb sign for ${hotel.room}. ${quiet ? sides.quiet.said : sides.service.said}. Press to turn the card over`}\n          onPointerDown={onDown}\n          onPointerMove={onMove}\n          onPointerUp={onUp}\n          onPointerCancel={onUp}\n          onClick={() => {\n            const s = live.current;\n            s.touched = true;\n            if (s.moved < 6 && !s.busy) {\n              setSaid(flip.get() > 90 ? sides.quiet.said : sides.service.said);\n              turnOver();\n            }\n            s.moved = 0;\n          }}\n          className=\"absolute block cursor-grab touch-none appearance-none rounded-b-[16px] rounded-t-[32px] border-0 bg-transparent p-0 outline-none focus-visible:ring-4 focus-visible:ring-[#7a1c22] focus-visible:ring-offset-4 focus-visible:ring-offset-[#c3c9b8] active:cursor-grabbing\"\n          style={{ left: -CW / 2, top: -PIVOT_Y, width: CW, height: CH, transformOrigin: `${CW / 2}px ${PIVOT_Y}px`, perspective: \"1100px\", zIndex: above ? 30 : 10 }}\n        >\n          <motion.span className=\"absolute inset-0 block\" style={{ transformStyle: \"preserve-3d\", rotateY: turn, scale: grow, y: hook }}>\n            <Face which=\"quiet\" />\n            <Face which=\"service\" />\n          </motion.span>\n        </button>\n\n        {/* the knob, in front of the card while it hangs */}\n        <div aria-hidden=\"true\" className=\"pointer-events-none absolute rounded-full bg-[#1e2616]\" style={{ left: -HEAD + 7, top: -HEAD + 11, width: HEAD * 2, height: HEAD * 2, filter: \"blur(6px)\", opacity: 0.55, zIndex: 15 }} />\n        <div aria-hidden=\"true\" className=\"pointer-events-none absolute rounded-full\" style={{ left: -HEAD, top: -HEAD, width: HEAD * 2, height: HEAD * 2, background: brass, boxShadow: \"inset 0 2px 2px rgba(255,248,215,0.7), inset 0 -4px 6px rgba(60,32,0,0.55), 0 0.5px 1px rgba(30,20,0,0.8)\", zIndex: 20 }}>\n          <div className=\"absolute rounded-full\" style={{ inset: 17, background: \"radial-gradient(circle at 36% 30%, #fbe9a8 0%, #d2a441 45%, #8d6118 100%)\", boxShadow: \"0 0 0 1px rgba(70,40,0,0.55), 0 1.5px 0 1px rgba(255,240,190,0.5), inset 0 -1px 2px rgba(60,32,0,0.5)\" }} />\n          <div className=\"absolute rounded-full\" style={{ left: \"16%\", top: \"11%\", width: \"34%\", height: \"20%\", background: \"rgba(255,255,255,0.75)\", filter: \"blur(3px)\", transform: \"rotate(-32deg)\" }} />\n        </div>\n      </div>\n\n      <p className=\"pointer-events-none absolute bottom-5 left-5 font-mono text-[11px] uppercase leading-relaxed tracking-[0.18em] text-[#3d4435] sm:bottom-8 sm:left-8\">\n        <span className=\"font-semibold text-[#161a11]\">\n          {hotel.name} / {hotel.room}\n        </span>\n        <span className=\"block\">Press the card to turn it, drag to swing</span>\n      </p>\n      <p aria-live=\"polite\" className=\"sr-only\">\n        {said}\n      </p>\n    </section>\n  );\n}\n"}]}
