{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cinema-marquee-sign",
  "type": "registry:component",
  "title": "Cinema Marquee Sign",
  "description": "A theater facade in 3D with a neon crown, a vertical blade sign that spells the venue, chasing bulbs and a backlit letter board whose tiles swing onto their rails for each new program. The sign tilts with the pointer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "cinematic",
    "cinematic",
    "marquee",
    "neon",
    "3d",
    "letter board",
    "theater"
  ],
  "docs": "https://hyperblur.dev/effects/cinema-marquee-sign",
  "files": [
    {
      "path": "registry/hyperblur/cinema-marquee-sign.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/cinema-marquee-sign.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface CinemaMarqueeSignProps extends React.HTMLAttributes<HTMLElement> {\n  venue?: string;\n  sets?: string[][];\n  interval?: number;\n  tilt?: boolean;\n  neon?: string;\n  bulbs?: string;\n  caption?: string;\n}\n\nconst css = `\n.hb-vc14 {\n  --hb-vc14-neon: #ff3b6b;\n  --hb-vc14-bulb: #ffd88a;\n  --hb-vc14-rx: 0deg;\n  --hb-vc14-ry: 0deg;\n  position: relative;\n  box-sizing: border-box;\n  display: grid;\n  place-items: center;\n  width: 100%;\n  height: 600px;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background:\n    radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--hb-vc14-neon) 16%, transparent), transparent 70%),\n    linear-gradient(180deg, #07060b 0%, #0e0b14 62%, #050407 62.2%, #0b0910 100%);\n  color: #fff;\n  font-family: inherit;\n  perspective: 1300px;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-vc14 *, .hb-vc14 *::before, .hb-vc14 *::after { box-sizing: border-box; }\n.hb-vc14-wall {\n  position: absolute;\n  inset: 0 0 38%;\n  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 26px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 54px);\n}\n.hb-vc14-wet {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 38%;\n  background: radial-gradient(40% 60% at 50% 0%, color-mix(in srgb, var(--hb-vc14-bulb) 22%, transparent), transparent 70%), radial-gradient(20% 50% at 20% 0%, color-mix(in srgb, var(--hb-vc14-neon) 26%, transparent), transparent 70%);\n  filter: blur(6px);\n}\n.hb-vc14-rig {\n  position: relative;\n  width: min(84cqi, 760px);\n  transform-style: preserve-3d;\n  transform: translate3d(0, -4%, 0) rotateX(var(--hb-vc14-rx)) rotateY(var(--hb-vc14-ry));\n  transition: transform .9s cubic-bezier(.2, .7, .2, 1);\n}\n.hb-vc14-idle { transform-style: preserve-3d; animation: hb-vc14-idle 9s ease-in-out infinite alternate; }\n.hb-vc14[data-hover=\"true\"] .hb-vc14-idle { animation-play-state: paused; }\n@keyframes hb-vc14-idle {\n  from { transform: rotateY(-7deg) rotateX(4deg); }\n  to { transform: rotateY(7deg) rotateX(2deg); }\n}\n.hb-vc14-crown {\n  position: relative;\n  margin: 0 auto -2px;\n  width: 64%;\n  padding: 10px 0 12px;\n  border: 2px solid #1d1822;\n  border-bottom: 0;\n  border-radius: 14px 14px 0 0;\n  background: linear-gradient(180deg, #17121d, #0d0a11);\n  text-align: center;\n  transform: translateZ(18px);\n}\n.hb-vc14-venue {\n  margin: 0;\n  color: #fff4f7;\n  font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif));\n  font-size: clamp(20px, 4.6cqi, 44px);\n  font-weight: 700;\n  letter-spacing: .3em;\n  padding-left: .3em;\n  text-shadow: 0 0 4px #fff, 0 0 12px var(--hb-vc14-neon), 0 0 30px var(--hb-vc14-neon), 0 0 60px var(--hb-vc14-neon);\n  animation: hb-vc14-neon 6s steps(1, end) infinite;\n}\n@keyframes hb-vc14-neon {\n  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }\n  20%, 63% { opacity: .55; }\n}\n.hb-vc14-box {\n  position: relative;\n  padding: clamp(12px, 2.4cqi, 22px);\n  border-radius: 12px;\n  background: linear-gradient(180deg, #1f1925, #120e17);\n  box-shadow: 0 0 0 2px #2a2231, 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -30px color-mix(in srgb, var(--hb-vc14-bulb) 50%, transparent);\n  transform: translateZ(30px);\n  transform-style: preserve-3d;\n}\n.hb-vc14-box::after {\n  content: \"\";\n  position: absolute;\n  left: 3%;\n  right: 3%;\n  top: 100%;\n  height: 70px;\n  background: linear-gradient(180deg, #2a2131, #0b090e);\n  transform-origin: top;\n  transform: rotateX(-78deg);\n  box-shadow: inset 0 10px 30px rgba(255, 216, 138, .18);\n}\n.hb-vc14-bulbs { position: absolute; display: flex; justify-content: space-between; }\n.hb-vc14-bulbs[data-edge=\"t\"], .hb-vc14-bulbs[data-edge=\"b\"] { left: 12px; right: 12px; height: 8px; }\n.hb-vc14-bulbs[data-edge=\"t\"] { top: 5px; }\n.hb-vc14-bulbs[data-edge=\"b\"] { bottom: 5px; }\n.hb-vc14-bulbs[data-edge=\"l\"], .hb-vc14-bulbs[data-edge=\"r\"] { top: 22px; bottom: 22px; width: 8px; flex-direction: column; }\n.hb-vc14-bulbs[data-edge=\"l\"] { left: 5px; }\n.hb-vc14-bulbs[data-edge=\"r\"] { right: 5px; }\n.hb-vc14-bulb {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n  background: #fff6dd;\n  box-shadow: 0 0 6px 1px var(--hb-vc14-bulb), 0 0 14px 2px color-mix(in srgb, var(--hb-vc14-bulb) 60%, transparent);\n  animation: hb-vc14-chase .9s steps(1, end) infinite;\n}\n.hb-vc14-bulb:nth-child(3n + 2) { animation-delay: -.3s; }\n.hb-vc14-bulb:nth-child(3n) { animation-delay: -.6s; }\n@keyframes hb-vc14-chase {\n  0% { opacity: 1; }\n  33.3% { opacity: .22; box-shadow: none; }\n}\n.hb-vc14-board {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: clamp(6px, 1.2cqi, 10px);\n  padding: clamp(10px, 2cqi, 18px) clamp(8px, 2cqi, 18px);\n  border-radius: 4px;\n  background: linear-gradient(180deg, #fffdf6, #f3ecdb);\n  box-shadow: inset 0 0 40px rgba(255, 230, 170, .5), inset 0 0 0 1px rgba(0, 0, 0, .1);\n  overflow: hidden;\n}\n.hb-vc14-rail {\n  position: relative;\n  display: flex;\n  justify-content: center;\n  gap: .08em;\n  width: 100%;\n  min-height: 1.36em;\n  font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif));\n  font-size: clamp(13px, 3.3cqi, 30px);\n  font-weight: 700;\n  perspective: 400px;\n}\n.hb-vc14-rail::before {\n  content: \"\";\n  position: absolute;\n  left: -20px;\n  right: -20px;\n  top: -2px;\n  height: 2px;\n  background: rgba(30, 24, 18, .25);\n}\n.hb-vc14-tile {\n  display: grid;\n  place-items: center;\n  width: .86em;\n  height: 1.3em;\n  border-radius: 2px;\n  background: #15110d;\n  color: #fff8ea;\n  line-height: 1;\n  box-shadow: 0 2px 2px rgba(0, 0, 0, .25);\n  transform-origin: 50% 0;\n  animation: hb-vc14-hang .9s cubic-bezier(.3, 1.6, .5, 1) both;\n  animation-delay: calc(var(--hb-vc14-i) * 28ms);\n}\n.hb-vc14-tile[data-space] { background: transparent; box-shadow: none; width: .42em; }\n@keyframes hb-vc14-hang {\n  0% { opacity: 0; transform: translate3d(0, -140%, 0) rotateX(70deg); }\n  45% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(-18deg); }\n  70% { transform: rotateX(8deg); }\n  100% { opacity: 1; transform: none; }\n}\n.hb-vc14-blade {\n  position: absolute;\n  left: -14%;\n  top: -22%;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 2px;\n  width: clamp(38px, 7cqi, 64px);\n  padding: 12px 0;\n  border: 2px solid #2a2231;\n  border-radius: 10px;\n  background: linear-gradient(90deg, #120e17, #1c1622);\n  transform: translateZ(60px) rotateY(24deg);\n  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);\n}\n.hb-vc14-bl {\n  color: #fff;\n  font-family: var(--font-grotesk, var(--font-sans, ui-sans-serif, system-ui, sans-serif));\n  font-size: clamp(16px, 3.4cqi, 30px);\n  font-weight: 700;\n  line-height: 1.12;\n  text-shadow: 0 0 4px #fff, 0 0 12px var(--hb-vc14-neon), 0 0 26px var(--hb-vc14-neon);\n  opacity: .3;\n  animation: hb-vc14-spell 4.2s ease-in-out infinite;\n  animation-delay: calc(var(--hb-vc14-i) * 180ms);\n}\n@keyframes hb-vc14-spell {\n  0%, 8% { opacity: .25; text-shadow: none; }\n  14%, 80% { opacity: 1; }\n  92%, 100% { opacity: .25; text-shadow: none; }\n}\n.hb-vc14-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.hb-vc14-caption {\n  position: absolute;\n  left: 50%;\n  bottom: 22px;\n  z-index: 2;\n  margin: 0;\n  color: rgba(255, 255, 255, .55);\n  font-family: var(--font-mono, ui-monospace, monospace);\n  font-size: 10.5px;\n  letter-spacing: .2em;\n  text-transform: uppercase;\n  white-space: nowrap;\n  transform: translateX(-50%);\n}\n.hb-vc14-dots { position: absolute; right: 22px; bottom: 20px; z-index: 2; display: flex; gap: 6px; }\n.hb-vc14-dot {\n  width: 22px;\n  height: 22px;\n  padding: 0;\n  border: 0;\n  background: transparent;\n  cursor: pointer;\n  display: grid;\n  place-items: center;\n}\n.hb-vc14-dot::before { content: \"\"; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .3s ease, transform .3s ease; }\n.hb-vc14-dot[aria-pressed=\"true\"]::before { background: var(--hb-vc14-bulb); transform: scale(1.3); box-shadow: 0 0 8px var(--hb-vc14-bulb); }\n.hb-vc14-dot:focus-visible { outline: 2px solid var(--hb-vc14-bulb); outline-offset: 1px; border-radius: 50%; }\n@container (max-width: 560px) {\n  .hb-vc14-blade { display: none; }\n  .hb-vc14-caption { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-vc14-idle, .hb-vc14-venue, .hb-vc14-bulb, .hb-vc14-tile, .hb-vc14-bl { animation: none; opacity: 1; }\n  .hb-vc14-rig { transition: none; transform: translate3d(0, -4%, 0); }\n}\n`;\n\nconst defaultSets = [\n  [\"Now playing\", \"Salt & Static\", \"7:15   9:40\"],\n  [\"Midnight show\", \"The Long Quiet\", \"Fri & Sat 11:45\"],\n  [\"Opening Thursday\", \"Deep Relay\", \"Tickets on sale\"],\n];\n\nexport function CinemaMarqueeSign({\n  venue = \"Orpheum\",\n  sets = defaultSets,\n  interval = 4600,\n  tilt = true,\n  neon = \"#ff3b6b\",\n  bulbs = \"#ffd88a\",\n  caption = \"Since 1928 · 412 Alder Street\",\n  className,\n  style,\n  onPointerMove,\n  onPointerLeave,\n  ...rest\n}: CinemaMarqueeSignProps) {\n  const ref = React.useRef<HTMLElement>(null);\n  const [index, setIndex] = React.useState(0);\n  const [hover, setHover] = React.useState(false);\n  const [manual, setManual] = React.useState(false);\n  const count = sets.length;\n\n  React.useEffect(() => {\n    if (count < 2 || manual) return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    const id = window.setInterval(() => setIndex((i) => (i + 1) % count), interval);\n    return () => window.clearInterval(id);\n  }, [count, interval, manual]);\n\n  const move = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerMove?.(e);\n    if (!tilt || e.pointerType === \"touch\") return;\n    const el = ref.current;\n    if (!el) return;\n    const r = el.getBoundingClientRect();\n    const x = (e.clientX - r.left) / r.width - 0.5;\n    const y = (e.clientY - r.top) / r.height - 0.5;\n    el.style.setProperty(\"--hb-vc14-ry\", `${(x * 18).toFixed(2)}deg`);\n    el.style.setProperty(\"--hb-vc14-rx\", `${(-y * 12).toFixed(2)}deg`);\n    if (!hover) setHover(true);\n  };\n\n  const leave = (e: React.PointerEvent<HTMLElement>) => {\n    onPointerLeave?.(e);\n    ref.current?.style.setProperty(\"--hb-vc14-ry\", \"0deg\");\n    ref.current?.style.setProperty(\"--hb-vc14-rx\", \"0deg\");\n    setHover(false);\n  };\n\n  const lines = sets[index % Math.max(1, count)] ?? [];\n  const bulbRow = (n: number) => Array.from({ length: n }, (_, i) => <span key={i} className=\"hb-vc14-bulb\" />);\n  const vars = { \"--hb-vc14-neon\": neon, \"--hb-vc14-bulb\": bulbs, ...style } as React.CSSProperties;\n  let tileIndex = 0;\n\n  return (\n    <section\n      ref={ref}\n      className={[\"hb-vc14\", className].filter(Boolean).join(\" \")}\n      style={vars}\n      data-hover={hover ? \"true\" : \"false\"}\n      aria-label={`${venue} marquee`}\n      onPointerMove={move}\n      onPointerLeave={leave}\n      {...rest}\n    >\n      <style href=\"hb-cinema-marquee-sign\" precedence=\"default\">{css}</style>\n      <span className=\"hb-vc14-wall\" aria-hidden=\"true\" />\n      <span className=\"hb-vc14-wet\" aria-hidden=\"true\" />\n      <div className=\"hb-vc14-rig\">\n        <div className=\"hb-vc14-idle\">\n          <div className=\"hb-vc14-blade\" aria-hidden=\"true\">\n            {venue.toUpperCase().split(\"\").map((ch, i) => (\n              <span key={i} className=\"hb-vc14-bl\" style={{ \"--hb-vc14-i\": String(i) } as React.CSSProperties}>{ch}</span>\n            ))}\n          </div>\n          <div className=\"hb-vc14-crown\">\n            <p className=\"hb-vc14-venue\">{venue.toUpperCase()}</p>\n          </div>\n          <div className=\"hb-vc14-box\">\n            <span className=\"hb-vc14-bulbs\" data-edge=\"t\" aria-hidden=\"true\">{bulbRow(30)}</span>\n            <span className=\"hb-vc14-bulbs\" data-edge=\"b\" aria-hidden=\"true\">{bulbRow(30)}</span>\n            <span className=\"hb-vc14-bulbs\" data-edge=\"l\" aria-hidden=\"true\">{bulbRow(6)}</span>\n            <span className=\"hb-vc14-bulbs\" data-edge=\"r\" aria-hidden=\"true\">{bulbRow(6)}</span>\n            <div className=\"hb-vc14-board\" aria-live=\"polite\">\n              {lines.map((line, li) => (\n                <div key={`${index}-${li}`} className=\"hb-vc14-rail\">\n                  <span className=\"hb-vc14-sr\">{line}</span>\n                  {line.toUpperCase().split(\"\").map((ch, ci) => {\n                    const i = tileIndex++;\n                    return ch === \" \" ? (\n                      <span key={ci} className=\"hb-vc14-tile\" data-space=\"\" aria-hidden=\"true\" style={{ \"--hb-vc14-i\": String(i) } as React.CSSProperties} />\n                    ) : (\n                      <span key={ci} className=\"hb-vc14-tile\" aria-hidden=\"true\" style={{ \"--hb-vc14-i\": String(i) } as React.CSSProperties}>{ch}</span>\n                    );\n                  })}\n                </div>\n              ))}\n            </div>\n          </div>\n        </div>\n      </div>\n      {caption ? <p className=\"hb-vc14-caption\">{caption}</p> : null}\n      {count > 1 ? (\n        <div className=\"hb-vc14-dots\">\n          {sets.map((s, i) => (\n            <button\n              key={i}\n              type=\"button\"\n              className=\"hb-vc14-dot\"\n              aria-label={`Show ${s[1] ?? s[0]}`}\n              aria-pressed={i === index}\n              onClick={() => {\n                setManual(true);\n                setIndex(i);\n              }}\n            />\n          ))}\n        </div>\n      ) : null}\n    </section>\n  );\n}\n"
    }
  ]
}