{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "swipe-deck",
  "title": "Swipe Deck",
  "description": "A swipe card deck lands an Its a match screen with an install prompt.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/swipe-deck/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Figtree\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport type React from \"react\";\nimport { useId } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  Img,\n  interpolate,\n  spring,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst { fontFamily } = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: serif } = loadSerif(\"normal\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\nloadSerif(\"italic\", { weights: [\"400\"], subsets: [\"latin\"] });\nconst { fontFamily: mono } = loadMono(\"normal\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\n\nexport type SwipeScene = \"captions\" | \"logos\" | \"pricing\" | \"devices\";\n\nexport interface SwipeCard {\n  title: string;\n  /** Lighter text after the title, like an age: \"v2\", \"30s\". */\n  meta?: string;\n  /** Joined into one quiet line under the title. */\n  chips?: string[];\n  scene?: SwipeScene;\n  /** Full-bleed image for the card. Falls back to the built-in scene. */\n  src?: string;\n}\n\nexport interface SwipeDeckProps {\n  /** First three get swiped (ship it, skip, super like); the fourth sits underneath. */\n  cards?: SwipeCard[];\n  matchWith?: string;\n  /** Initials on the viewer's avatar in the match modal. */\n  initials?: string;\n  /** Three lines beside the phone, one per beat. */\n  lines?: [string, string, string];\n  accent?: string;\n  speed?: number;\n  theme?: \"light\" | \"dark\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\n}\n\nconst DEFAULT_CARDS: SwipeCard[] = [\n  {\n    title: \"Kinetic captions\",\n    meta: \"v2\",\n    chips: [\"30fps\", \"Word timing\", \"TypeScript\"],\n    scene: \"captions\",\n  },\n  {\n    title: \"Logo wall\",\n    meta: \"v2\",\n    chips: [\"Any SVG\", \"Auto layout\"],\n    scene: \"logos\",\n  },\n  {\n    title: \"Pricing reveal\",\n    meta: \"v2\",\n    chips: [\"3 tiers\", \"Count-up\"],\n    scene: \"pricing\",\n  },\n  {\n    title: \"Device morph\",\n    meta: \"v2\",\n    chips: [\"Phone to laptop\", \"One prop\"],\n    scene: \"devices\",\n  },\n];\n\nconst SW = 393;\nconst SH = 852;\nconst BEZEL = 11;\nconst BW = SW + BEZEL * 2;\nconst BH = SH + BEZEL * 2;\nconst CARD_BOX = { left: 14, top: 108, w: SW - 28, h: 560 };\nconst BTN_Y = 724;\n\nconst HEAVY = { mass: 1, damping: 26, stiffness: 120 };\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst MORPH = { damping: 200 };\nconst ENTER = Easing.bezier(0.32, 0.72, 0, 1);\nconst MOVE = Easing.bezier(0.65, 0, 0.35, 1);\nconst EXIT = Easing.bezier(0.55, 0, 1, 0.45);\nconst CAMERA = Easing.bezier(0.87, 0, 0.13, 1);\n\ntype Act = { kind: \"like\" | \"nope\" | \"super\"; down: number; release: number };\nconst ACTS: Act[] = [\n  { kind: \"like\", down: 24, release: 48 },\n  { kind: \"nope\", down: 60, release: 78 },\n  { kind: \"super\", down: 92, release: 96 },\n];\nconst MATCH = 114;\nconst END = 180;\n\nconst clamp = { extrapolateLeft: \"clamp\", extrapolateRight: \"clamp\" } as const;\n\nconst P = {\n  x: \"M6 6l12 12M18 6L6 18\",\n  star: \"M12 3.2l2.6 5.5 6 .7-4.4 4.1 1.1 6L12 16.6l-5.3 2.9 1.1-6-4.4-4.1 6-.7z\",\n  heart:\n    \"M12 20.3s-7.6-4.6-9.4-9.5C1.3 7.4 3.5 4 7.1 4c2.1 0 3.7 1.1 4.9 2.9C13.2 5.1 14.8 4 16.9 4c3.6 0 5.8 3.4 4.5 6.8-1.8 4.9-9.4 9.5-9.4 9.5z\",\n  sliders: \"M4 7h9M17 7h3M4 17h3M11 17h9M15 5v4M9 15v4\",\n  play: \"M8 5.5v13l10.5-6.5z\",\n};\n\ninterface Pal {\n  screen: string;\n  text: string;\n  muted: string;\n  btn: string;\n  btnRing: string;\n  field: string;\n  copy: string;\n  frame: string;\n  scrim: string;\n  overlay: string;\n}\nconst DARK: Pal = {\n  screen: \"#0d0c0c\",\n  text: \"#f7f3f0\",\n  muted: \"rgba(247,243,240,0.6)\",\n  btn: \"#1c1a1a\",\n  btnRing: \"0 0 0 1px rgba(255,255,255,0.09)\",\n  field: \"rgba(255,255,255,0.07)\",\n  copy: \"#fbf4f1\",\n  frame:\n    \"linear-gradient(155deg,#55565c 0%,#2a2b2f 30%,#3d3e43 62%,#1f2023 100%)\",\n  scrim: \"rgba(6,2,3,0.3)\",\n  overlay: \"rgba(13,12,12,0.9)\",\n};\nconst LIGHT: Pal = {\n  screen: \"#f6f3f0\",\n  text: \"#171312\",\n  muted: \"rgba(23,19,18,0.58)\",\n  btn: \"#ffffff\",\n  btnRing:\n    \"0 0 0 1px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.06), 0 8px 18px -6px rgba(0,0,0,0.14)\",\n  field: \"rgba(0,0,0,0.05)\",\n  copy: \"#1f1716\",\n  frame:\n    \"linear-gradient(155deg,#f1f1f3 0%,#c4c4ca 30%,#e2e2e6 62%,#b3b3ba 100%)\",\n  scrim: \"rgba(248,240,238,0.3)\",\n  overlay: \"rgba(246,243,240,0.92)\",\n};\n\nfunction hash(n: number) {\n  const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;\n  return x - Math.floor(x);\n}\n\ntype Mood = \"sunset\" | \"dusk\" | \"golden\" | \"alpine\";\nconst MOODS: Record<\n  Mood,\n  { sky: string[]; sun: string; ridges: string[]; water: string; sunY: number }\n> = {\n  sunset: {\n    sky: [\"#1d2550\", \"#4c3f7c\", \"#b9677c\", \"#ee9a68\", \"#fbd393\"],\n    sun: \"#fff0c4\",\n    ridges: [\"#9a7290\", \"#6a4f74\", \"#3d2f52\", \"#1b1730\"],\n    water: \"#221c38\",\n    sunY: 0.78,\n  },\n  dusk: {\n    sky: [\"#070b1d\", \"#16224a\", \"#2f4a82\", \"#7488b8\", \"#d4b3b5\"],\n    sun: \"#ffe2c0\",\n    ridges: [\"#4d5c88\", \"#2f3b63\", \"#1b2443\", \"#0c1126\"],\n    water: \"#0d1328\",\n    sunY: 0.9,\n  },\n  golden: {\n    sky: [\"#5d8fc8\", \"#9dbfe0\", \"#efd5a8\", \"#f5b475\", \"#ee9361\"],\n    sun: \"#fff6dc\",\n    ridges: [\"#b9a19c\", \"#8b7684\", \"#5b4f66\", \"#2e2a3a\"],\n    water: \"#3a3446\",\n    sunY: 0.72,\n  },\n  alpine: {\n    sky: [\"#2a64ad\", \"#4f8bcb\", \"#8cb7e0\", \"#cfe1f0\", \"#eef3f6\"],\n    sun: \"#ffffff\",\n    ridges: [\"#a8bfd8\", \"#7894b5\", \"#48618a\", \"#233650\"],\n    water: \"#2a3f5c\",\n    sunY: 0.35,\n  },\n};\n\nconst rgb = (hex: string) =>\n  [1, 3, 5].map((i) => Number.parseInt(hex.slice(i, i + 2), 16) / 255);\nconst mix = (a: string, b: string, t: number) => {\n  const [x, y] = [rgb(a), rgb(b)];\n  return `rgb(${x.map((v, i) => Math.round((v + (y[i] - v) * t) * 255)).join(\",\")})`;\n};\n\nfunction noise1(x: number) {\n  const i = Math.floor(x);\n  const t = x - i;\n  const u = t * t * (3 - 2 * t);\n  return hash(i) * (1 - u) + hash(i + 1) * u;\n}\n\nfunction ridgePath(seed: number, base: number, amp: number, sharp: number) {\n  const pts: string[] = [];\n  for (let i = 0; i <= 80; i++) {\n    const x = (i / 80) * 400;\n    const n =\n      0.6 * (1 - Math.abs(noise1(x / 80 + seed) * 2 - 1) * sharp) +\n      0.27 * noise1(x / 26 + seed * 3.1) +\n      0.13 * noise1(x / 8 + seed * 7.3);\n    pts.push(`${x.toFixed(1)} ${(base - amp * n).toFixed(1)}`);\n  }\n  return `M0 500L${pts.join(\"L\")}L400 500Z`;\n}\n\nfunction treePath(seed: number, base: number) {\n  const pts: string[] = [];\n  for (let i = 0; i <= 200; i++) {\n    const x = i * 2;\n    const tree = noise1(x / 3.2 + seed) ** 3 * 13;\n    const swell = noise1(x / 40 + seed * 2) * 9;\n    pts.push(`${x} ${(base - 3 - swell - tree).toFixed(1)}`);\n  }\n  return `M0 500L${pts.join(\"L\")}L400 500Z`;\n}\n\nfunction Photo({\n  mood = \"sunset\",\n  seed = 1,\n  zoom = 1,\n}: {\n  mood?: Mood;\n  seed?: number;\n  zoom?: number;\n}) {\n  const id = `ph${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  const m = MOODS[mood];\n  const HZ = 300;\n  const sunX = 110 + hash(seed * 5) * 180;\n  const sunY = HZ * m.sunY;\n  const [cr, cg, cb] = rgb(m.sun);\n  const ridges = m.ridges.map((col, i) => ({\n    col,\n    top: mix(col, m.sky[3], 0.35 - i * 0.08),\n    d: ridgePath(\n      seed + i * 1.7,\n      HZ - 6 + i * 3,\n      [120, 84, 52, 30][i],\n      0.9 - i * 0.15,\n    ),\n    blur: [1.4, 0.8, 0.4, 0][i],\n  }));\n  const trees = treePath(seed * 3, HZ);\n  const land = (reflect: boolean) => (\n    <>\n      {ridges.map((r, i) => (\n        <path\n          key={r.col}\n          d={r.d}\n          fill={`url(#${id}m${i})`}\n          filter={r.blur && !reflect ? `url(#${id}r${i})` : undefined}\n        />\n      ))}\n      <path d={trees} fill={mix(m.ridges[3], \"#000000\", 0.35)} />\n    </>\n  );\n  const sky = (\n    <>\n      <rect width={400} height={HZ} fill={`url(#${id}s)`} />\n      <rect\n        width={400}\n        height={HZ}\n        filter={`url(#${id}cl)`}\n        mask={`url(#${id}cm)`}\n      />\n      <circle cx={sunX} cy={sunY} r={190} fill={`url(#${id}g)`} />\n      <circle\n        cx={sunX}\n        cy={sunY}\n        r={15}\n        fill={m.sun}\n        filter={`url(#${id}b1)`}\n      />\n    </>\n  );\n  return (\n    <svg\n      viewBox=\"0 0 400 500\"\n      preserveAspectRatio=\"xMidYMid slice\"\n      width=\"100%\"\n      height=\"100%\"\n      style={{ display: \"block\", position: \"absolute\", inset: 0 }}\n    >\n      <defs>\n        <linearGradient id={`${id}s`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          {m.sky.map((s, i) => (\n            <stop key={s} offset={i / (m.sky.length - 1)} stopColor={s} />\n          ))}\n        </linearGradient>\n        {ridges.map((r, i) => (\n          <linearGradient\n            key={r.col}\n            id={`${id}m${i}`}\n            x1=\"0\"\n            y1=\"0\"\n            x2=\"0\"\n            y2=\"1\"\n          >\n            <stop offset=\"0.55\" stopColor={r.top} />\n            <stop offset=\"0.75\" stopColor={r.col} />\n          </linearGradient>\n        ))}\n        <radialGradient id={`${id}g`}>\n          <stop offset=\"0\" stopColor={m.sun} stopOpacity={0.8} />\n          <stop offset=\"0.12\" stopColor={m.sun} stopOpacity={0.35} />\n          <stop offset=\"0.45\" stopColor={m.sun} stopOpacity={0.08} />\n          <stop offset=\"1\" stopColor={m.sun} stopOpacity={0} />\n        </radialGradient>\n        <linearGradient id={`${id}w`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor={m.water} stopOpacity={0.3} />\n          <stop offset=\"1\" stopColor={m.water} stopOpacity={0.9} />\n        </linearGradient>\n        <linearGradient id={`${id}cmg`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n          <stop offset=\"0\" stopColor=\"#fff\" stopOpacity={0.9} />\n          <stop offset=\"0.75\" stopColor=\"#fff\" stopOpacity={0.5} />\n          <stop offset=\"1\" stopColor=\"#fff\" stopOpacity={0} />\n        </linearGradient>\n        <mask id={`${id}cm`}>\n          <rect width={400} height={HZ} fill={`url(#${id}cmg)`} />\n        </mask>\n        <radialGradient id={`${id}v`} cx=\"0.5\" cy=\"0.45\" r=\"0.75\">\n          <stop offset=\"0.55\" stopColor=\"#000\" stopOpacity={0} />\n          <stop offset=\"1\" stopColor=\"#000\" stopOpacity={0.42} />\n        </radialGradient>\n        <filter id={`${id}cl`} x=\"0\" y=\"0\" width=\"1\" height=\"1\">\n          <feTurbulence\n            type=\"fractalNoise\"\n            baseFrequency=\"0.0035 0.02\"\n            numOctaves={4}\n            seed={seed}\n          />\n          <feColorMatrix\n            values={`0 0 0 0 ${cr} 0 0 0 0 ${cg} 0 0 0 0 ${cb} 2.4 0 0 0 -1.05`}\n          />\n          <feGaussianBlur stdDeviation={0.6} />\n        </filter>\n        <filter id={`${id}b1`} x=\"-1\" y=\"-1\" width=\"3\" height=\"3\">\n          <feGaussianBlur stdDeviation={2.5} />\n        </filter>\n        <filter id={`${id}gl`} x=\"-1\" y=\"-1\" width=\"3\" height=\"3\">\n          <feGaussianBlur stdDeviation=\"5 10\" />\n        </filter>\n        {ridges.map((r, i) => (\n          <filter\n            key={r.col}\n            id={`${id}r${i}`}\n            x=\"-0.1\"\n            y=\"-0.2\"\n            width=\"1.2\"\n            height=\"1.4\"\n          >\n            <feGaussianBlur stdDeviation={r.blur} />\n          </filter>\n        ))}\n        <clipPath id={`${id}c`}>\n          <rect y={HZ} width={400} height={200} />\n        </clipPath>\n        <filter id={`${id}rip`} x=\"0\" y=\"0\" width=\"1\" height=\"1\">\n          <feTurbulence\n            type=\"fractalNoise\"\n            baseFrequency=\"0.003 0.12\"\n            numOctaves={2}\n            seed={seed}\n          />\n          <feDisplacementMap\n            in=\"SourceGraphic\"\n            scale={14}\n            xChannelSelector=\"R\"\n            yChannelSelector=\"G\"\n          />\n          <feGaussianBlur stdDeviation=\"0.8 1.6\" />\n        </filter>\n        <filter id={`${id}n`} x=\"0\" y=\"0\" width=\"1\" height=\"1\">\n          <feTurbulence\n            type=\"fractalNoise\"\n            baseFrequency={0.9}\n            numOctaves={2}\n            seed={seed + 3}\n          />\n          <feColorMatrix values=\"0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.16 0\" />\n        </filter>\n      </defs>\n      <g transform={`translate(200 250) scale(${zoom}) translate(-200 -250)`}>\n        {sky}\n        {land(false)}\n        <g clipPath={`url(#${id}c)`} filter={`url(#${id}rip)`}>\n          <g transform={`translate(0 ${HZ * 2}) scale(1 -1)`}>\n            {sky}\n            {land(true)}\n          </g>\n          <rect y={HZ} width={400} height={200} fill={`url(#${id}w)`} />\n          <ellipse\n            cx={sunX}\n            cy={HZ + 70}\n            rx={9}\n            ry={70}\n            fill={m.sun}\n            opacity={0.35}\n            filter={`url(#${id}gl)`}\n          />\n        </g>\n      </g>\n      <rect\n        width={400}\n        height={500}\n        filter={`url(#${id}n)`}\n        style={{ mixBlendMode: \"overlay\" }}\n      />\n      <rect width={400} height={500} fill={`url(#${id}v)`} />\n    </svg>\n  );\n}\n\nfunction Preview({\n  scene,\n  accent,\n  t,\n}: {\n  scene: SwipeScene;\n  accent: string;\n  t: number;\n}) {\n  const fill: React.CSSProperties = { position: \"absolute\", inset: 0 };\n  if (scene === \"captions\") {\n    const words = [\"SHIP\", \"YOUR\", \"LAUNCH\", \"TODAY\"];\n    const hi = Math.floor(t / 10) % 4;\n    return (\n      <div\n        style={{\n          ...fill,\n          background: \"#0c1126\",\n        }}\n      >\n        <Photo mood=\"dusk\" seed={2} zoom={1.05 + t * 0.0008} />\n        <div\n          style={{\n            position: \"absolute\",\n            right: 30,\n            top: 150,\n            display: \"flex\",\n            flexDirection: \"column\",\n            alignItems: \"flex-end\",\n            gap: 6,\n          }}\n        >\n          {words.map((w, i) => (\n            <span\n              key={w}\n              style={{\n                fontSize: 54,\n                fontWeight: 400,\n                letterSpacing: \"-0.04em\",\n                lineHeight: \"60px\",\n                color: i === hi ? \"#111\" : \"#fff\",\n                background: i === hi ? \"#d4ff3f\" : \"transparent\",\n                textShadow: i === hi ? \"none\" : \"0 2px 16px rgba(0,0,0,0.35)\",\n                padding: \"0 10px\",\n                borderRadius: 10,\n                transform: `rotate(${i === hi ? -2 : 0}deg)`,\n              }}\n            >\n              {w}\n            </span>\n          ))}\n        </div>\n      </div>\n    );\n  }\n  if (scene === \"logos\") {\n    const names = [\n      \"Kitebase\",\n      \"Lumen\",\n      \"Fernway\",\n      \"Quarry\",\n      \"Orbitly\",\n      \"Halcyon\",\n      \"Tessel\",\n      \"Northly\",\n    ];\n    const glyphs = [\n      \"M12 3l6 9-6 9-6-9z\",\n      \"M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10z\",\n      \"M6 18C6 10 11 5 19 5c0 8-5 13-13 13z\",\n      \"M5 5h14v14H5z\",\n    ];\n    return (\n      <div\n        style={{\n          ...fill,\n          background: \"#2a64ad\",\n        }}\n      >\n        <Photo mood=\"alpine\" seed={7} zoom={1.05 + t * 0.0008} />\n        <div\n          style={{\n            position: \"absolute\",\n            left: 22,\n            right: 22,\n            top: 130,\n            display: \"grid\",\n            gridTemplateColumns: \"1fr 1fr\",\n            gap: 12,\n          }}\n        >\n          {names.map((n, i) => (\n            <div\n              key={n}\n              style={{\n                height: 58,\n                borderRadius: 16,\n                background: \"#fff\",\n                boxShadow:\n                  \"0 1px 2px rgba(10,20,40,0.12), 0 8px 24px rgba(10,20,40,0.16)\",\n                display: \"flex\",\n                alignItems: \"center\",\n                gap: 9,\n                padding: \"0 16px\",\n                fontSize: 17,\n                fontWeight: 400,\n                color: \"#141821\",\n                letterSpacing: \"-0.02em\",\n                transform: `translateY(${Math.sin(t / 12 + i) * 2}px)`,\n              }}\n            >\n              <Icon\n                d={glyphs[i % 4]}\n                size={20}\n                color={i % 2 ? accent : \"#141821\"}\n                sw={2.6}\n              />\n              {n}\n            </div>\n          ))}\n        </div>\n      </div>\n    );\n  }\n  if (scene === \"pricing\") {\n    const tiers = [\n      { n: \"Hobby\", p: \"$0\" },\n      { n: \"Pro\", p: \"$19\" },\n      { n: \"Team\", p: \"$49\" },\n    ];\n    return (\n      <div\n        style={{\n          ...fill,\n          background: \"#221c38\",\n        }}\n      >\n        <Photo mood=\"sunset\" seed={4} zoom={1.05 + t * 0.0008} />\n        <div\n          style={{\n            position: \"absolute\",\n            left: 18,\n            right: 18,\n            top: 170,\n            display: \"flex\",\n            gap: 10,\n            alignItems: \"flex-end\",\n          }}\n        >\n          {tiers.map((tr, i) => (\n            <div\n              key={tr.n}\n              style={{\n                flex: 1,\n                height: i === 1 ? 230 : 190,\n                borderRadius: 18,\n                background: i === 1 ? \"#fff\" : \"rgba(20,16,32,0.42)\",\n                backdropFilter: i === 1 ? undefined : \"blur(14px)\",\n                boxShadow:\n                  i === 1\n                    ? \"0 1px 2px rgba(0,0,0,0.12), 0 20px 50px rgba(0,0,0,0.3)\"\n                    : \"inset 0 0 0 1px rgba(255,255,255,0.14)\",\n                padding: 14,\n                boxSizing: \"border-box\",\n                color: i === 1 ? \"#111\" : \"#fff\",\n              }}\n            >\n              <div style={{ fontSize: 13, fontWeight: 400, opacity: 0.75 }}>\n                {tr.n}\n              </div>\n              <div\n                style={{\n                  fontSize: 34,\n                  fontWeight: 400,\n                  letterSpacing: \"-0.04em\",\n                  fontVariantNumeric: \"tabular-nums\",\n                  marginTop: 6,\n                }}\n              >\n                {tr.p}\n              </div>\n              {[0, 1, 2].map((k) => (\n                <div\n                  key={k}\n                  style={{\n                    height: 6,\n                    borderRadius: 3,\n                    marginTop: k ? 8 : 18,\n                    width: `${80 - k * 18}%`,\n                    background: i === 1 ? \"#e4e4ea\" : \"rgba(255,255,255,0.3)\",\n                  }}\n                />\n              ))}\n              {i === 1 && (\n                <div\n                  style={{\n                    marginTop: 22,\n                    height: 32,\n                    borderRadius: 10,\n                    background: accent,\n                  }}\n                />\n              )}\n            </div>\n          ))}\n        </div>\n      </div>\n    );\n  }\n  return (\n    <div\n      style={{\n        ...fill,\n        background: \"#3a3446\",\n      }}\n    >\n      <Photo mood=\"golden\" seed={11} zoom={1.05 + t * 0.0008} />\n      <div\n        style={{\n          position: \"absolute\",\n          left: 40,\n          top: 170,\n          width: 230,\n          height: 150,\n          borderRadius: 12,\n          background: \"#0b1120\",\n          border: \"6px solid #1f2937\",\n          boxShadow: \"0 2px 4px rgba(0,0,0,0.2), 0 24px 50px rgba(0,0,0,0.35)\",\n        }}\n      >\n        <div\n          style={{\n            margin: 10,\n            height: 70,\n            borderRadius: 6,\n            position: \"relative\",\n            overflow: \"hidden\",\n            background: accent,\n          }}\n        >\n          <Photo mood=\"dusk\" seed={5} />\n        </div>\n      </div>\n      <div\n        style={{\n          position: \"absolute\",\n          left: 230,\n          top: 210,\n          width: 100,\n          height: 200,\n          borderRadius: 22,\n          background: \"#0b1120\",\n          border: \"5px solid #1f2937\",\n          boxShadow: \"0 2px 4px rgba(0,0,0,0.2), 0 24px 50px rgba(0,0,0,0.35)\",\n        }}\n      >\n        <div\n          style={{\n            margin: 8,\n            height: 80,\n            borderRadius: 12,\n            position: \"relative\",\n            overflow: \"hidden\",\n            background: accent,\n          }}\n        >\n          <Photo mood=\"dusk\" seed={5} />\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction Icon({\n  d,\n  size = 24,\n  color,\n  sw = 1.75,\n  fill = \"none\",\n}: {\n  d: string;\n  size?: number;\n  color: string;\n  sw?: number;\n  fill?: string;\n}) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden>\n      <path\n        d={d}\n        fill={fill}\n        stroke={color}\n        strokeWidth={sw}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n      />\n    </svg>\n  );\n}\n\nfunction StatusBar({ color }: { color: string }) {\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        top: 0,\n        left: 0,\n        right: 0,\n        height: 54,\n        display: \"flex\",\n        alignItems: \"center\",\n        justifyContent: \"space-between\",\n        padding: \"6px 32px 0 52px\",\n        zIndex: 30,\n        color,\n      }}\n    >\n      <span style={{ fontSize: 17, fontWeight: 400 }}>9:41</span>\n      <div style={{ display: \"flex\", gap: 6, alignItems: \"center\" }}>\n        <svg width=\"18\" height=\"12\" viewBox=\"0 0 18 12\" aria-hidden>\n          {[0, 1, 2, 3].map((i) => (\n            <rect\n              key={i}\n              x={i * 4.6}\n              y={9 - i * 3}\n              width={3.2}\n              height={3 + i * 3}\n              rx={0.8}\n              fill={color}\n            />\n          ))}\n        </svg>\n        <div\n          style={{\n            width: 25,\n            height: 12,\n            borderRadius: 3.5,\n            border: `1px solid ${color}`,\n            padding: 1.5,\n            boxSizing: \"border-box\",\n          }}\n        >\n          <div\n            style={{\n              width: \"80%\",\n              height: \"100%\",\n              borderRadius: 2,\n              background: color,\n            }}\n          />\n        </div>\n      </div>\n    </div>\n  );\n}\n\nfunction Phone({ children, c }: { children: React.ReactNode; c: Pal }) {\n  return (\n    <div style={{ position: \"relative\", width: BW, height: BH }}>\n      {(\n        [\n          [\"left\", 150, 32],\n          [\"left\", 210, 62],\n          [\"left\", 284, 62],\n          [\"right\", 236, 98],\n        ] as const\n      ).map(([side, top, h]) => (\n        <div\n          key={`${side}${top}`}\n          style={{\n            position: \"absolute\",\n            [side]: -3,\n            top,\n            width: 4,\n            height: h,\n            borderRadius: 2,\n            background: c.frame,\n          }}\n        />\n      ))}\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          borderRadius: 68,\n          background: c.frame,\n          boxShadow:\n            \"0 50px 100px -20px rgba(0,0,0,0.5), 0 20px 40px -12px rgba(0,0,0,0.3)\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 3,\n          borderRadius: 65,\n          background: \"#050506\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: BEZEL,\n          top: BEZEL,\n          width: SW,\n          height: SH,\n          borderRadius: 57,\n          overflow: \"hidden\",\n          background: c.screen,\n        }}\n      >\n        {children}\n        <div\n          style={{\n            position: \"absolute\",\n            top: 11,\n            left: (SW - 126) / 2,\n            width: 126,\n            height: 37,\n            borderRadius: 19,\n            background: \"#000\",\n            zIndex: 40,\n          }}\n        />\n      </div>\n    </div>\n  );\n}\n\nfunction Stamp({\n  text,\n  color,\n  opacity,\n  rot,\n  style,\n}: {\n  text: string;\n  color: string;\n  opacity: number;\n  rot: number;\n  style: React.CSSProperties;\n}) {\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        boxShadow: `inset 0 0 0 2px ${color}`,\n        color,\n        borderRadius: 10,\n        padding: \"4px 14px 6px\",\n        fontFamily: serif,\n        fontSize: 40,\n        fontWeight: 400,\n        lineHeight: 1,\n        background: \"rgba(0,0,0,0.18)\",\n        opacity,\n        transform: `rotate(${rot}deg) scale(${1.1 - 0.1 * Math.min(1, opacity)})`,\n        zIndex: 6,\n        ...style,\n      }}\n    >\n      {text}\n    </div>\n  );\n}\n\nfunction DeckCard({\n  card,\n  accent,\n  t,\n  children,\n}: {\n  card: SwipeCard;\n  accent: string;\n  t: number;\n  children?: React.ReactNode;\n}) {\n  return (\n    <div\n      style={{\n        position: \"absolute\",\n        inset: 0,\n        borderRadius: 28,\n        overflow: \"hidden\",\n        background: \"#111\",\n      }}\n    >\n      {card.src ? (\n        <Img\n          src={card.src}\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            width: \"100%\",\n            height: \"100%\",\n            objectFit: \"cover\",\n          }}\n        />\n      ) : (\n        <Preview scene={card.scene ?? \"captions\"} accent={accent} t={t} />\n      )}\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background:\n            \"linear-gradient(180deg, transparent 52%, rgba(0,0,0,0.28) 64%, rgba(0,0,0,0.62) 80%, rgba(0,0,0,0.82) 100%)\",\n        }}\n      />\n      <div\n        style={{\n          position: \"absolute\",\n          left: 22,\n          right: 22,\n          bottom: 22,\n          color: \"#fff\",\n        }}\n      >\n        <div style={{ display: \"flex\", alignItems: \"baseline\", gap: 10 }}>\n          <span\n            style={{\n              fontFamily: serif,\n              fontSize: 42,\n              fontWeight: 400,\n              letterSpacing: \"-0.01em\",\n              lineHeight: 1,\n              whiteSpace: \"nowrap\",\n            }}\n          >\n            {card.title}\n          </span>\n          {card.meta && (\n            <span style={{ fontSize: 20, fontWeight: 300, opacity: 0.72 }}>\n              {card.meta}\n            </span>\n          )}\n        </div>\n        {card.chips && card.chips.length > 0 && (\n          <div\n            style={{\n              marginTop: 10,\n              fontSize: 17,\n              fontWeight: 400,\n              color: \"rgba(255,255,255,0.78)\",\n              whiteSpace: \"nowrap\",\n              overflow: \"hidden\",\n              textOverflow: \"ellipsis\",\n            }}\n          >\n            {card.chips.join(\"  ·  \")}\n          </div>\n        )}\n      </div>\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          borderRadius: 28,\n          boxShadow: \"inset 0 0 0 1px rgba(255,255,255,0.1)\",\n        }}\n      />\n      {children}\n    </div>\n  );\n}\n\ninterface Key {\n  f: number;\n  x: number;\n  y: number;\n  bend?: number;\n}\nfunction along(keys: Key[], f: number) {\n  if (f <= keys[0].f) return { x: keys[0].x, y: keys[0].y };\n  for (let i = 0; i < keys.length - 1; i++) {\n    const a = keys[i];\n    const b = keys[i + 1];\n    if (f >= b.f) continue;\n    const t = MOVE(Math.min(1, Math.max(0, (f - a.f) / (b.f - a.f))));\n    const bend = b.bend ?? 0;\n    const cx = (a.x + b.x) / 2 - (b.y - a.y) * bend;\n    const cy = (a.y + b.y) / 2 + (b.x - a.x) * bend;\n    const m = 1 - t;\n    return {\n      x: m * m * a.x + 2 * m * t * cx + t * t * b.x,\n      y: m * m * a.y + 2 * m * t * cy + t * t * b.y,\n    };\n  }\n  const last = keys[keys.length - 1];\n  return { x: last.x, y: last.y };\n}\n\nexport function SwipeDeck({\n  cards = DEFAULT_CARDS,\n  matchWith = \"remocn\",\n  initials = \"MC\",\n  lines = [\"Swipe right on what fits.\", \"Skip the rest.\", \"Install the match.\"],\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"dark\",\n  ground,\n  groundParams,\n}: SwipeDeckProps) {\n  const frame = useCurrentFrame();\n  const { fps, width, height } = useVideoConfig();\n  const f = frame * speed;\n  const dark = theme !== \"light\";\n  const c = dark ? DARK : LIGHT;\n  const tall = height > width;\n  const W = tall ? 720 : 1280;\n  const H = tall ? 1280 : 720;\n  const u = Math.min(width / W, height / H);\n  const k = tall ? (H * 0.66) / BH : (H * 0.9) / BH;\n  const phoneCx = tall ? W / 2 : W * 0.68;\n  const phoneCy = tall ? H - 40 - (BH * k) / 2 : H / 2;\n\n  const sp = (at: number, config: object = CARD) =>\n    spring({ frame: f - at, fps, config });\n  const ease = (a: number, b: number, e = ENTER) =>\n    interpolate(f, [a, b], [0, 1], { ...clamp, easing: e });\n\n  const rise = sp(0, HEAVY);\n  const cam = interpolate(f, [MATCH, END], [1, 1.035], {\n    ...clamp,\n    easing: CAMERA,\n  });\n\n  const motion = ACTS.map((a) => {\n    const dir = a.kind === \"like\" ? 1 : a.kind === \"nope\" ? -1 : 0;\n    const drag = dir\n      ? spring({\n          frame: Math.min(f, a.release) - a.down,\n          fps,\n          config: { damping: 20, stiffness: 140 },\n        })\n      : 0;\n    const fly = interpolate(\n      f,\n      [a.release, a.release + (dir ? 12 : 14)],\n      [0, 1],\n      { ...clamp, easing: EXIT },\n    );\n    const dragX = dir * 150 * Math.min(1, drag);\n    const dx = dragX + dir * 560 * fly;\n    const dy = dir ? -12 * drag + 70 * fly : -1000 * fly;\n    const stamp = dir\n      ? Math.min(1, drag * 1.6)\n      : interpolate(f, [a.release - 4, a.release + 2], [0, 1], clamp);\n    const gone = dir ? Math.max(drag * 0.3, fly) : fly;\n    return { ...a, dir, drag, fly, dx, dy, dragX, rot: dx * 0.07, stamp, gone };\n  });\n  const top = motion.findIndex((m) => m.fly < 1);\n  const topIdx = top === -1 ? ACTS.length : top;\n  const cur = motion[topIdx];\n  const likeGlow = cur?.kind === \"like\" ? cur.stamp : 0;\n  const nopeGlow = cur?.kind === \"nope\" ? cur.stamp : 0;\n  const superPress =\n    spring({ frame: f - ACTS[2].down, fps, config: CHIP }) -\n    spring({ frame: f - ACTS[2].down - 5, fps, config: CHIP });\n\n  const grab = { x: SW / 2 + 40, y: 400 };\n  const grab2 = { x: SW / 2 - 20, y: 420 };\n  const starBtn = { x: SW / 2, y: BTN_Y };\n  const touchBase = along(\n    [\n      { f: 12, x: SW * 0.82, y: 560 },\n      { f: ACTS[0].down, x: grab.x, y: grab.y, bend: 0.2 },\n      { f: ACTS[0].release + 2, x: grab.x, y: grab.y },\n      { f: ACTS[1].down, x: grab2.x, y: grab2.y, bend: -0.25 },\n      { f: ACTS[1].release + 2, x: grab2.x, y: grab2.y },\n      { f: ACTS[2].down - 1, x: starBtn.x, y: starBtn.y, bend: 0.18 },\n    ],\n    f,\n  );\n  const follow =\n    f >= ACTS[0].down && f < ACTS[0].release\n      ? { x: motion[0].dragX, y: -12 * motion[0].drag }\n      : f >= ACTS[1].down && f < ACTS[1].release\n        ? { x: motion[1].dragX, y: -12 * motion[1].drag }\n        : { x: 0, y: 0 };\n  const lift =\n    f >= ACTS[0].release && f < ACTS[1].down\n      ? 1 - ease(ACTS[0].release, ACTS[0].release + 6, EXIT)\n      : f >= ACTS[1].release && f < ACTS[2].down\n        ? 1 - ease(ACTS[1].release, ACTS[1].release + 6, EXIT)\n        : 1;\n  const tap = {\n    x: touchBase.x + follow.x * lift,\n    y: touchBase.y + follow.y * lift,\n  };\n  const tapOpacity =\n    ease(12, 20) * (1 - ease(ACTS[2].down + 6, ACTS[2].down + 14, EXIT));\n  const pressing = ACTS.some(\n    (a) => a.kind !== \"super\" && f >= a.down && f < a.release,\n  );\n  const tapScale = (pressing ? 0.86 : 1) - 0.14 * Math.max(0, superPress);\n\n  const buttons = [\n    { d: P.x, s: 60, color: \"#ff5a5f\", glow: nopeGlow, sw: 2 },\n    {\n      d: P.star,\n      s: 48,\n      color: accent,\n      glow: Math.max(0, superPress) * 1.5,\n      sw: 1.75,\n    },\n    { d: P.heart, s: 60, color: \"#2fbf71\", glow: likeGlow, sw: 1.75 },\n  ];\n\n  const m = sp(MATCH, MORPH);\n  const mTitle = ease(MATCH + 4, MATCH + 18);\n  const mAv = [sp(MATCH + 6, CARD), sp(MATCH + 9, CARD)];\n  const mHeart = sp(MATCH + 16, CHIP);\n  const mText = ease(MATCH + 18, MATCH + 32);\n  const mCta = sp(MATCH + 22, CARD);\n\n  const beats = [6, ACTS[1].down - 4, MATCH];\n  const copyLine = (i: number) => {\n    const inAt = beats[i];\n    const outAt = beats[i + 1];\n    const pin = ease(inAt, inAt + 16);\n    const pout = outAt === undefined ? 0 : ease(outAt - 8, outAt, EXIT);\n    if (pin <= 0 || pout >= 1) return null;\n    return (\n      <div\n        key={i}\n        style={{\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: 0,\n          transform: `translateY(${(1 - pin) * 60 - pout * 40}%)`,\n          opacity: pin * (1 - pout),\n          filter: `blur(${(1 - pin) * 6 + pout * 4}px)`,\n        }}\n      >\n        {i === 2 ? (\n          <>\n            {lines[i].split(\" \").slice(0, -1).join(\" \")}{\" \"}\n            <span style={{ fontFamily: serif, fontStyle: \"italic\" }}>\n              {lines[i].split(\" \").slice(-1)[0]}\n            </span>\n          </>\n        ) : (\n          lines[i]\n        )}\n      </div>\n    );\n  };\n\n  return (\n    <AbsoluteFill style={{ fontFamily, overflow: \"hidden\" }}>\n      <GshGround\n        preset={ground ?? \"garnet\"}\n        params={\n          groundParams ??\n          (dark\n            ? undefined\n            : {\n                background: \"#f6eeeb\",\n                colors: [\"#f0a8a6\", \"#fff7f2\", \"#f6c3cb\"],\n                grain: 0.05,\n              })\n        }\n        timeOffset={5}\n        timeScale={0.4}\n      />\n      <AbsoluteFill style={{ background: c.scrim }} />\n      <div\n        style={{\n          position: \"absolute\",\n          left: (width - W * u) / 2,\n          top: (height - H * u) / 2,\n          width: W,\n          height: H,\n          transformOrigin: \"0 0\",\n          transform: `scale(${u})`,\n        }}\n      >\n        <div\n          style={{\n            position: \"absolute\",\n            left: tall ? 64 : 96,\n            top: tall ? 96 : H / 2 - 84,\n            width: tall ? W - 128 : 500,\n            height: 170,\n            fontSize: tall ? 68 : 76,\n            fontWeight: 300,\n            lineHeight: 1.04,\n            letterSpacing: \"-0.04em\",\n            color: c.copy,\n            overflow: \"hidden\",\n            textWrap: \"balance\",\n          }}\n        >\n          {[0, 1, 2].map((i) => copyLine(i))}\n        </div>\n        <div\n          style={{\n            position: \"absolute\",\n            left: phoneCx - BW / 2,\n            top: phoneCy - BH / 2,\n            width: BW,\n            height: BH,\n            transform: `translateY(${(1 - rise) * H * 0.9}px) scale(${k * cam})`,\n          }}\n        >\n          <Phone c={c}>\n            <div\n              style={{\n                position: \"absolute\",\n                top: 58,\n                left: 24,\n                right: 22,\n                height: 40,\n                display: \"flex\",\n                alignItems: \"center\",\n                justifyContent: \"space-between\",\n                color: c.text,\n                zIndex: 10,\n              }}\n            >\n              <span\n                style={{\n                  fontFamily: serif,\n                  fontSize: 32,\n                  fontWeight: 400,\n                  letterSpacing: \"-0.01em\",\n                }}\n              >\n                Discover\n              </span>\n              <Icon d={P.sliders} size={24} color={c.text} />\n            </div>\n            {cards\n              .slice(0, 4)\n              .map((card, i) => ({ card, i }))\n              .reverse()\n              .map(({ card, i }) => {\n                if (i < topIdx || i > topIdx + 1) return null;\n                const mo = motion[i];\n                const behind = i > topIdx;\n                const prevGone = i > 0 ? motion[i - 1].gone : 1;\n                const sc = behind ? 0.94 + 0.06 * Math.min(1, prevGone) : 1;\n                return (\n                  <div\n                    key={card.title}\n                    style={{\n                      position: \"absolute\",\n                      left: CARD_BOX.left,\n                      top: CARD_BOX.top,\n                      width: CARD_BOX.w,\n                      height: CARD_BOX.h,\n                      transform:\n                        mo && !behind\n                          ? `translate(${mo.dx}px, ${mo.dy}px) rotate(${mo.rot}deg)`\n                          : `translateY(${(1 - Math.min(1, prevGone)) * 10}px) scale(${sc})`,\n                      transformOrigin: \"50% 110%\",\n                      borderRadius: 28,\n                      boxShadow: behind\n                        ? \"none\"\n                        : \"0 24px 50px -18px rgba(0,0,0,0.55), 0 6px 14px -6px rgba(0,0,0,0.35)\",\n                      opacity: behind ? 0.6 + 0.4 * Math.min(1, prevGone) : 1,\n                    }}\n                  >\n                    <DeckCard card={card} accent={accent} t={f}>\n                      {mo && !behind && mo.kind === \"like\" && (\n                        <Stamp\n                          text=\"Ship it\"\n                          color=\"#5fe39b\"\n                          opacity={mo.stamp}\n                          rot={-12}\n                          style={{ left: 22, top: 30 }}\n                        />\n                      )}\n                      {mo && !behind && mo.kind === \"nope\" && (\n                        <Stamp\n                          text=\"Skip\"\n                          color=\"#ff7a7e\"\n                          opacity={mo.stamp}\n                          rot={12}\n                          style={{ right: 22, top: 30 }}\n                        />\n                      )}\n                      {mo && !behind && mo.kind === \"super\" && (\n                        <Stamp\n                          text=\"Super like\"\n                          color=\"#ffffff\"\n                          opacity={mo.stamp}\n                          rot={-6}\n                          style={{ left: 70, top: 200 }}\n                        />\n                      )}\n                    </DeckCard>\n                  </div>\n                );\n              })}\n            <div\n              style={{\n                position: \"absolute\",\n                left: 0,\n                right: 0,\n                top: BTN_Y - 30,\n                height: 60,\n                display: \"flex\",\n                justifyContent: \"center\",\n                alignItems: \"center\",\n                gap: 26,\n                zIndex: 10,\n              }}\n            >\n              {buttons.map((b) => {\n                const g = Math.min(1, b.glow);\n                return (\n                  <div\n                    key={b.d}\n                    style={{\n                      width: b.s,\n                      height: b.s,\n                      borderRadius: b.s / 2,\n                      background:\n                        g > 0.02\n                          ? `color-mix(in oklab, ${b.color} ${Math.round(g * 100)}%, ${c.btn})`\n                          : c.btn,\n                      boxShadow: c.btnRing,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                      transform: `scale(${1 + 0.06 * g})`,\n                    }}\n                  >\n                    <Icon\n                      d={b.d}\n                      size={b.s * 0.44}\n                      color={g > 0.5 ? \"#fff\" : b.color}\n                      sw={b.sw}\n                    />\n                  </div>\n                );\n              })}\n            </div>\n            {f >= MATCH && (\n              <AbsoluteFill\n                style={{\n                  zIndex: 20,\n                  background: `color-mix(in oklab, ${c.overlay} ${Math.round(m * 100)}%, transparent)`,\n                  backdropFilter: `blur(${18 * m}px)`,\n                }}\n              >\n                <div\n                  style={{\n                    position: \"absolute\",\n                    left: 0,\n                    right: 0,\n                    top: 196,\n                    textAlign: \"center\",\n                    color: c.text,\n                    fontFamily: serif,\n                    fontStyle: \"italic\",\n                    fontSize: 58,\n                    fontWeight: 400,\n                    letterSpacing: \"-0.01em\",\n                    lineHeight: 1,\n                    transform: `translateY(${(1 - mTitle) * 18}px)`,\n                    opacity: mTitle,\n                    filter: `blur(${(1 - mTitle) * 6}px)`,\n                  }}\n                >\n                  It’s a match\n                </div>\n                <div\n                  style={{\n                    position: \"absolute\",\n                    left: 0,\n                    right: 0,\n                    top: 300,\n                    height: 150,\n                    display: \"flex\",\n                    justifyContent: \"center\",\n                  }}\n                >\n                  <div\n                    style={{\n                      width: 136,\n                      height: 136,\n                      borderRadius: 68,\n                      position: \"relative\",\n                      overflow: \"hidden\",\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                      color: \"#fff\",\n                      fontSize: 36,\n                      fontWeight: 300,\n                      boxShadow: `0 0 0 4px ${c.screen}, 0 18px 40px -12px rgba(0,0,0,0.5)`,\n                      transform: `translateX(${16 - (1 - mAv[0]) * 80}px) rotate(${-6 * mAv[0]}deg) scale(${0.8 + 0.2 * mAv[0]})`,\n                      opacity: Math.min(1, mAv[0] * 2),\n                    }}\n                  >\n                    <Photo mood=\"golden\" seed={3} />\n                    <span style={{ position: \"relative\" }}>{initials}</span>\n                  </div>\n                  <div\n                    style={{\n                      width: 136,\n                      height: 136,\n                      borderRadius: 68,\n                      background: accent,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                      boxShadow: `0 0 0 4px ${c.screen}, 0 18px 40px -12px rgba(0,0,0,0.5)`,\n                      transform: `translateX(${-16 + (1 - mAv[1]) * 80}px) rotate(${6 * mAv[1]}deg) scale(${0.8 + 0.2 * mAv[1]})`,\n                      opacity: Math.min(1, mAv[1] * 2),\n                    }}\n                  >\n                    <Icon d={P.play} size={46} color=\"#fff\" fill=\"#fff\" />\n                  </div>\n                  <div\n                    style={{\n                      position: \"absolute\",\n                      top: 104,\n                      left: SW / 2 - 22,\n                      width: 44,\n                      height: 44,\n                      borderRadius: 22,\n                      background: c.btn,\n                      boxShadow: c.btnRing,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                      transform: `scale(${Math.max(0, mHeart)})`,\n                    }}\n                  >\n                    <Icon\n                      d={P.heart}\n                      size={22}\n                      color=\"#ff5a5f\"\n                      fill=\"#ff5a5f\"\n                    />\n                  </div>\n                </div>\n                <div\n                  style={{\n                    position: \"absolute\",\n                    left: 30,\n                    right: 30,\n                    top: 476,\n                    textAlign: \"center\",\n                    color: c.muted,\n                    fontSize: 18,\n                    lineHeight: 1.4,\n                    opacity: mText,\n                    transform: `translateY(${(1 - mText) * 12}px)`,\n                    textWrap: \"balance\",\n                  }}\n                >\n                  You and {matchWith} liked the same 4 components.\n                </div>\n                <div\n                  style={{\n                    position: \"absolute\",\n                    left: 24,\n                    right: 24,\n                    top: 580,\n                    opacity: Math.min(1, mCta * 1.6),\n                    transform: `translateY(${(1 - mCta) * 24}px)`,\n                  }}\n                >\n                  <div\n                    style={{\n                      height: 56,\n                      borderRadius: 28,\n                      background: c.field,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      padding: \"0 6px 0 20px\",\n                      color: c.muted,\n                      fontSize: 15,\n                      fontFamily: mono,\n                    }}\n                  >\n                    <span style={{ flex: 1, whiteSpace: \"nowrap\" }}>\n                      npx shadcn add @{matchWith}/…\n                    </span>\n                    <div\n                      style={{\n                        height: 44,\n                        padding: \"0 20px\",\n                        borderRadius: 22,\n                        background: accent,\n                        color: \"#fff\",\n                        fontFamily,\n                        fontSize: 17,\n                        fontWeight: 400,\n                        display: \"flex\",\n                        alignItems: \"center\",\n                      }}\n                    >\n                      Install\n                    </div>\n                  </div>\n                  <div\n                    style={{\n                      textAlign: \"center\",\n                      color: c.text,\n                      fontSize: 17,\n                      marginTop: 22,\n                    }}\n                  >\n                    Keep swiping\n                  </div>\n                </div>\n              </AbsoluteFill>\n            )}\n            <StatusBar color={c.text} />\n            <div\n              style={{\n                position: \"absolute\",\n                left: tap.x - 22,\n                top: tap.y - 22,\n                width: 44,\n                height: 44,\n                borderRadius: 22,\n                background: \"rgba(255,255,255,0.26)\",\n                boxShadow:\n                  \"0 0 0 1.5px rgba(255,255,255,0.85), 0 4px 14px rgba(0,0,0,0.3)\",\n                opacity: tapOpacity,\n                transform: `scale(${tapScale})`,\n                zIndex: 35,\n              }}\n            />\n            <div\n              style={{\n                position: \"absolute\",\n                bottom: 8,\n                left: (SW - 136) / 2,\n                width: 136,\n                height: 5,\n                borderRadius: 3,\n                background: c.text,\n                zIndex: 36,\n              }}\n            />\n          </Phone>\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/swipe-deck.tsx"
    }
  ],
  "type": "registry:component"
}
