{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "boss-bar",
  "title": "Boss Bar",
  "description": "A boss HP bar is drained by hits, then 'DEFEATED' slams in beneath 'The old workflow'.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "files": [
    {
      "path": "registry/remocn/boss-bar/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/ChakraPetch\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\n\nconst { fontFamily: chakra } = loadFont(\"normal\", {\n  weights: [\"500\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: chakraItalic } = loadFont(\"italic\", {\n  weights: [\"500\"],\n  subsets: [\"latin\"],\n});\nconst manrope = loadManrope(\"normal\", {\n  weights: [\"600\"],\n  subsets: [\"latin\"],\n});\n\nconst REMOCN_R_PATH =\n  \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\n/** Full logo as on remocn.dev: R mark (0.76em tall, baseline-aligned) + \"emocn\" in Manrope 600. */\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        alignItems: \"baseline\",\n        color,\n        fontFamily: manrope.fontFamily,\n        fontWeight: 600,\n        fontSize,\n        letterSpacing: \"-0.025em\",\n        lineHeight: 1,\n      }}\n    >\n      <svg\n        viewBox=\"0 0 124.06 134.26\"\n        style={{ height: \"0.76em\", width: \"auto\" }}\n        aria-hidden\n      >\n        <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n      </svg>\n      <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n    </div>\n  );\n}\n\nexport interface BossHit {\n  /** The move name, slammed in at the centre. */\n  label: string;\n  /** HP taken off the bar. The boss's max HP is the sum of all hits. */\n  damage: number;\n}\n\nexport interface BossBarProps {\n  /** Boss name over the bar. */\n  boss?: string;\n  /** Hits in order; the last one takes the bar to zero. */\n  hits?: BossHit[];\n  /** Word slammed in when the bar breaks. */\n  defeated?: string;\n  /** The small \"BOSS\" tag and the hit slash. */\n  accent?: string;\n  theme?: \"dark\" | \"light\";\n  speed?: number;\n}\n\n// Beat sheet (30fps, speed 1):\n//   0–20   the bar frame wipes in from the left and the fill charges to full,\n//          the boss name and HP readout slide in above it\n//  25–30   \"Captions\" slams in at the centre; 30 is the hit: the bar chunks down,\n//          a white damage segment trails and drains, \"-820\" pops off the cut\n//  51–56   \"Transitions\", same hit; 77–82 \"Templates\" takes the bar to zero\n//  86–88   the empty bar flashes white; 88 it shatters into fragments\n//  90–96   \"DEFEATED\" slams in with the gradient; 96 is the impact frame\n//          (one inverted frame) with a heavy shake; the rise glow lifts\n// 100–112  the boss name glides down to sit over the word; logo at 114; poster\nconst INTRO = 20;\nconst FIRST_HIT = 30;\nconst HIT_GAP = 26;\nconst SLAM_LEN = 5;\nconst TRAIL_HOLD = 7;\nconst TRAIL_DRAIN = 10;\nconst FLASH_DELAY = 4;\nconst SHATTER_DELAY = 6;\nconst DEFEAT_DELAY = 8;\nconst DEFEAT_LEN = 6;\n\nconst SLAM = Easing.bezier(0.12, 0.9, 0.25, 1);\nconst OUT = Easing.bezier(0.22, 1, 0.36, 1);\nconst INOUT = Easing.bezier(0.65, 0, 0.25, 1);\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\n// gradients.sh \"rise\": bg #030306, [#fff1e2, #ff8a3d, #a3301a, #2a0d0a].\nconst RISE = [\"#FFF1E2\", \"#FF8A3D\", \"#A3301A\", \"#2A0D0A\"] as const;\n\nconst THEMES = {\n  dark: {\n    stage: \"#070608\",\n    ink: \"#F3F2EF\",\n    dim: \"#86858C\",\n    track: \"#19181C\",\n    frame: \"rgba(243, 242, 239, 0.28)\",\n    tick: \"rgba(7, 6, 8, 0.55)\",\n    trail: \"#FFFFFF\",\n    shard: \"#FFFFFF\",\n    word: `linear-gradient(176deg, ${RISE[0]} 8%, ${RISE[1]} 48%, #D9482A 78%, ${RISE[2]} 100%)`,\n    glow: 0.85,\n  },\n  light: {\n    stage: \"#F5F4F0\",\n    ink: \"#121214\",\n    dim: \"#7E7D77\",\n    track: \"#DEDCD5\",\n    frame: \"rgba(18, 18, 20, 0.22)\",\n    tick: \"rgba(245, 244, 240, 0.6)\",\n    trail: \"#FFFFFF\",\n    shard: \"#121214\",\n    word: `linear-gradient(176deg, ${RISE[1]} 4%, #E0552C 40%, ${RISE[2]} 78%, #5A1A10 100%)`,\n    glow: 0.4,\n  },\n} as const;\n\nfunction ramp(t: number, from: number, len: number) {\n  return interpolate(t, [from, from + len], [0, 1], CLAMP);\n}\n\nfunction hash(n: number) {\n  const s = Math.sin(n * 127.1 + 311.7) * 43758.5453;\n  return s - Math.floor(s);\n}\n\n/** Decaying, frame-stepped shake. */\nfunction shake(t: number, at: number, len: number, amp: number) {\n  const d = Math.floor(t - at);\n  if (d < 0 || d >= len) return { x: 0, y: 0 };\n  const k = (1 - d / len) ** 2;\n  return {\n    x: amp * k * Math.sin(d * 2.4 + 0.6),\n    y: amp * 0.6 * k * Math.cos(d * 3.1 + 0.3),\n  };\n}\n\nfunction fmt(n: number) {\n  return Math.max(0, Math.round(n)).toLocaleString(\"en-US\");\n}\n\n// Shatter pieces: the bar is cut into columns on slanted lines, each column\n// split once more along a jagged midline.\nconst COLS = 11;\n\nexport function BossBar({\n  boss = \"THE OLD WORKFLOW\",\n  hits = [\n    { label: \"Captions\", damage: 820 },\n    { label: \"Transitions\", damage: 1140 },\n    { label: \"Templates\", damage: 1040 },\n  ],\n  defeated = \"DEFEATED\",\n  accent = \"#3B5BFD\",\n  theme = \"dark\",\n  speed = 1,\n}: BossBarProps) {\n  const t = useCurrentFrame() * speed;\n  const { width: W, height: H } = useVideoConfig();\n  const c = THEMES[theme];\n  const u = Math.min(W / 1280, H / 720);\n\n  const maxHp = hits.reduce((a, h) => a + h.damage, 0) || 1;\n  const hitAt = hits.map((_, i) => FIRST_HIT + i * HIT_GAP);\n  const lastHit = hitAt[hitAt.length - 1] ?? FIRST_HIT;\n  const flashAt = lastHit + FLASH_DELAY;\n  const shatterAt = lastHit + SHATTER_DELAY;\n  const defeatAt = lastHit + DEFEAT_DELAY;\n  const defeatHit = defeatAt + DEFEAT_LEN;\n  const glideAt = defeatHit + 4;\n  const logoAt = defeatHit + 18;\n\n  // HP after each hit, and where we are now.\n  const hpAfter: number[] = [];\n  hits.forEach((h, i) => {\n    hpAfter.push((i === 0 ? maxHp : hpAfter[i - 1]) - h.damage);\n  });\n  const landed = hitAt.filter((h) => t >= h).length;\n  const hp = landed === 0 ? maxHp : hpAfter[landed - 1];\n  const prevHp = landed <= 1 ? maxHp : hpAfter[landed - 2];\n  const sinceHit = landed === 0 ? -1 : t - hitAt[landed - 1];\n  // White trail: holds at the old HP, then drains to the new one.\n  const trailHp =\n    landed === 0\n      ? maxHp\n      : interpolate(\n          sinceHit,\n          [TRAIL_HOLD, TRAIL_HOLD + TRAIL_DRAIN],\n          [prevHp, hp],\n          { ...CLAMP, easing: INOUT },\n        );\n\n  // ── Bar geometry ──────────────────────────────────────────────────────────\n  const barX = 0.11 * W;\n  const barW = 0.78 * W;\n  const barY = 0.205 * H;\n  const barH = 30 * u;\n  const frameIn = OUT(ramp(t, 0, 10));\n  const charge = INOUT(ramp(t, 6, INTRO - 6));\n  const fillFrac = (t < FIRST_HIT ? charge : 1) * (hp / maxHp);\n  const trailFrac = t < FIRST_HIT ? fillFrac : trailHp / maxHp;\n  const barShake = landed > 0 ? shake(t, hitAt[landed - 1], 7, 8 * u) : null;\n  const flashing = t >= flashAt && t < shatterAt;\n  const broken = t >= shatterAt;\n\n  // ── Camera ────────────────────────────────────────────────────────────────\n  const camHits = hitAt.map((h, i) =>\n    shake(t, h, 8, (i === hits.length - 1 ? 9 : 5) * u),\n  );\n  const camDefeat = shake(t, defeatHit, 14, 20 * u);\n  const camX = camHits.reduce((a, s) => a + s.x, 0) + camDefeat.x;\n  const camY = camHits.reduce((a, s) => a + s.y, 0) + camDefeat.y;\n  const inverted = t >= defeatHit && t < defeatHit + speed;\n\n  // ── Defeat ────────────────────────────────────────────────────────────────\n  const defeatP = SLAM(ramp(t, defeatAt, DEFEAT_LEN));\n  const defeatFs = 210 * u;\n  const defeatY = 0.5 * H;\n  const glide = INOUT(ramp(t, glideAt, 12));\n  const settle = interpolate(t, [defeatHit, defeatHit + 70], [1, 1.03], CLAMP);\n  const glowP = OUT(ramp(t, defeatHit, 18));\n  const logoP = OUT(ramp(t, logoAt, 10));\n\n  // Boss name: above the bar, then glides to sit over the defeat word.\n  const nameIn = OUT(ramp(t, 4, 10));\n  const nameFs = interpolate(glide, [0, 1], [26, 34]) * u;\n  const nameX0 = barX;\n  const nameY0 = barY - 46 * u;\n  const nameY1 = defeatY - defeatFs * 0.62;\n\n  const hitWordFs = 128 * u;\n\n  // Shatter fragments.\n  const cutTop: number[] = [];\n  const cutBot: number[] = [];\n  const mid: number[] = [];\n  for (let i = 0; i <= COLS; i++) {\n    const edge = i === 0 || i === COLS;\n    const base = i / COLS;\n    const j = edge ? 0 : (hash(i + 3) - 0.5) * 0.05;\n    const lean = edge ? 0 : (hash(i + 17) - 0.5) * 0.045;\n    cutTop.push(base + j + lean);\n    cutBot.push(base + j - lean);\n    mid.push(0.32 + 0.36 * hash(i + 41));\n  }\n  const dt = t - shatterAt;\n  const fragments: {\n    k: number;\n    d: string;\n    fill: string;\n    x: number;\n    y: number;\n    r: number;\n  }[] = [];\n  if (broken && dt < 40) {\n    for (let i = 0; i < COLS; i++) {\n      for (let half = 0; half < 2; half++) {\n        const k = i * 2 + half;\n        const xt0 = cutTop[i] * barW;\n        const xt1 = cutTop[i + 1] * barW;\n        const xb0 = cutBot[i] * barW;\n        const xb1 = cutBot[i + 1] * barW;\n        const xm0 = (xt0 + xb0) / 2;\n        const xm1 = (xt1 + xb1) / 2;\n        const ym0 = mid[i] * barH;\n        const ym1 = mid[i + 1] * barH;\n        const pts =\n          half === 0\n            ? [\n                [xt0, 0],\n                [xt1, 0],\n                [xm1, ym1],\n                [xm0, ym0],\n              ]\n            : [\n                [xm0, ym0],\n                [xm1, ym1],\n                [xb1, barH],\n                [xb0, barH],\n              ];\n        const cx = pts.reduce((a, p) => a + p[0], 0) / 4;\n        const cy = pts.reduce((a, p) => a + p[1], 0) / 4;\n        const rel = (cx - barW / 2) / barW;\n        const vx = (rel * 34 + (hash(k + 7) - 0.5) * 10) * u;\n        const vy = (-(2 + hash(k + 13) * 6) + (half === 0 ? -2 : 2)) * u;\n        const g = 0.9 * u;\n        const px = vx * dt;\n        const py = vy * dt + 0.5 * g * dt * dt;\n        const rot = (hash(k + 29) - 0.5) * 14 * dt;\n        const d = `M${pts.map((p) => `${p[0] - cx} ${p[1] - cy}`).join(\" L\")} Z`;\n        const fill =\n          hash(k + 61) < 0.55\n            ? c.shard\n            : [RISE[1], \"#E0552C\", RISE[0]][Math.floor(hash(k + 71) * 3)];\n        fragments.push({\n          k,\n          d,\n          fill,\n          x: barX + cx + px,\n          y: barY + cy + py,\n          r: rot,\n        });\n      }\n    }\n  }\n  const fragOp = 1 - ramp(dt, 8, 12);\n\n  return (\n    <AbsoluteFill style={{ background: c.stage, overflow: \"hidden\" }}>\n      <div\n        style={{\n          position: \"absolute\",\n          inset: 0,\n          background: c.stage,\n          filter: inverted ? \"invert(1)\" : undefined,\n        }}\n      >\n        {/* The rise glow: lifts from the bottom once the boss is down. */}\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            opacity: glowP * c.glow,\n            background: [\n              `radial-gradient(60% 46% at 50% ${interpolate(glowP, [0, 1], [118, 104])}%, ${RISE[1]}cc 0%, ${RISE[2]}80 38%, transparent 72%)`,\n              `radial-gradient(90% 30% at 50% 108%, ${RISE[0]}99 0%, transparent 60%)`,\n            ].join(\", \"),\n          }}\n        />\n\n        <div\n          style={{\n            position: \"absolute\",\n            inset: 0,\n            transform: `translate(${camX}px, ${camY}px) scale(${settle})`,\n          }}\n        >\n          {/* Boss tag + name. */}\n          <div\n            style={{\n              position: \"absolute\",\n              left: interpolate(glide, [0, 1], [nameX0, 0]),\n              width: interpolate(glide, [0, 1], [barW, W]),\n              top: interpolate(glide, [0, 1], [nameY0, nameY1]) - nameFs / 2,\n              display: \"flex\",\n              alignItems: \"center\",\n              justifyContent: glide > 0.5 ? \"center\" : \"flex-start\",\n              gap: 14 * u,\n              opacity: nameIn,\n              transform: `translateX(${(1 - nameIn) * -30 * u}px)`,\n            }}\n          >\n            <div\n              style={{\n                fontFamily: chakra,\n                fontWeight: 500,\n                fontSize: 15 * u,\n                letterSpacing: \"0.16em\",\n                color: \"#FFFFFF\",\n                background: accent,\n                padding: `${5 * u}px ${9 * u}px ${4 * u}px`,\n                lineHeight: 1,\n                transform: \"skewX(-12deg)\",\n                opacity: 1 - glide,\n                width: interpolate(glide, [0, 1], [62 * u, 0]),\n                overflow: \"hidden\",\n                whiteSpace: \"nowrap\",\n                display: glide > 0.98 ? \"none\" : \"block\",\n              }}\n            >\n              BOSS\n            </div>\n            <div\n              style={{\n                fontFamily: chakra,\n                fontWeight: 500,\n                fontSize: nameFs,\n                letterSpacing: \"0.1em\",\n                lineHeight: 1,\n                color: c.ink,\n                whiteSpace: \"nowrap\",\n              }}\n            >\n              {boss}\n            </div>\n          </div>\n\n          {/* HP readout. */}\n          <div\n            style={{\n              position: \"absolute\",\n              left: barX,\n              width: barW,\n              top: nameY0 - 10 * u,\n              display: \"flex\",\n              justifyContent: \"flex-end\",\n              fontFamily: chakra,\n              fontWeight: 500,\n              fontSize: 18 * u,\n              letterSpacing: \"0.04em\",\n              fontVariantNumeric: \"tabular-nums\",\n              color: c.dim,\n              opacity: OUT(ramp(t, 8, 8)) * (1 - ramp(t, shatterAt, 4)),\n            }}\n          >\n            <span style={{ color: c.ink }}>\n              {fmt(t < FIRST_HIT ? charge * maxHp : hp)}\n            </span>\n            <span>&nbsp;/ {fmt(maxHp)} HP</span>\n          </div>\n\n          {/* The bar. */}\n          {!broken ? (\n            <div\n              style={{\n                position: \"absolute\",\n                left: barX,\n                top: barY,\n                width: barW,\n                height: barH,\n                clipPath: `inset(0 ${(1 - frameIn) * 100}% 0 0)`,\n                transform: barShake\n                  ? `translate(${barShake.x}px, ${barShake.y}px)`\n                  : undefined,\n                background: flashing ? \"#FFFFFF\" : c.track,\n                boxShadow: `0 0 0 ${2 * u}px ${c.frame}`,\n              }}\n            >\n              {/* Damage trail. */}\n              <div\n                style={{\n                  position: \"absolute\",\n                  left: 0,\n                  top: 0,\n                  bottom: 0,\n                  width: `${trailFrac * 100}%`,\n                  background: c.trail,\n                }}\n              />\n              {/* Fill. */}\n              <div\n                style={{\n                  position: \"absolute\",\n                  left: 0,\n                  top: 0,\n                  bottom: 0,\n                  width: `${fillFrac * 100}%`,\n                  backgroundImage: `linear-gradient(180deg, rgba(255, 241, 226, 0.4) 0%, rgba(255, 241, 226, 0) 34%), linear-gradient(90deg, #5E1A0E 0%, ${RISE[2]} 28%, #E0552C 62%, ${RISE[1]} 86%, #FFC08A 100%)`,\n                  backgroundSize: `${barW}px 100%`,\n                  // Flash the fill white for two frames on each hit.\n                  filter:\n                    sinceHit >= 0 && sinceHit < 2\n                      ? \"brightness(2.4)\"\n                      : undefined,\n                }}\n              />\n              {/* Chunk ticks. */}\n              {Array.from({ length: 9 }, (_, k) => (\n                <div\n                  key={`tick-${(k + 1) * 10}`}\n                  style={{\n                    position: \"absolute\",\n                    top: 0,\n                    bottom: 0,\n                    left: `${(k + 1) * 10}%`,\n                    width: 3 * u,\n                    background: flashing ? \"transparent\" : c.tick,\n                  }}\n                />\n              ))}\n            </div>\n          ) : null}\n\n          {/* Shatter. */}\n          {fragments.length > 0 ? (\n            <svg\n              width={W}\n              height={H}\n              style={{ position: \"absolute\", inset: 0, overflow: \"visible\" }}\n              aria-hidden\n            >\n              <g opacity={fragOp}>\n                {fragments.map((f) => (\n                  <path\n                    key={f.k}\n                    d={f.d}\n                    fill={f.fill}\n                    transform={`translate(${f.x} ${f.y}) rotate(${f.r})`}\n                  />\n                ))}\n              </g>\n            </svg>\n          ) : null}\n\n          {/* Damage numbers pop off the cut. */}\n          {hits.map((h, i) => {\n            const d = t - hitAt[i];\n            if (d < 0 || d > 26) return null;\n            const before = i === 0 ? maxHp : hpAfter[i - 1];\n            const x = barX + (barW * (before + hpAfter[i])) / 2 / maxHp;\n            const pop = SLAM(ramp(d, 0, 4));\n            const isLast = i === hits.length - 1;\n            const out = isLast ? ramp(t, shatterAt - 2, 5) : ramp(d, 16, 8);\n            const fs = (isLast ? 64 : 54) * u;\n            return (\n              <div\n                key={`dmg-${h.label}`}\n                style={{\n                  position: \"absolute\",\n                  left: x - 200 * u,\n                  width: 400 * u,\n                  top: barY + barH + 18 * u,\n                  display: \"flex\",\n                  justifyContent: \"center\",\n                  transform: `translateY(${(-10 * pop - 22 * out) * u}px) scale(${interpolate(pop, [0, 1], [1.6, 1])})`,\n                  opacity: ramp(d, 0, 2) * (1 - out),\n                  fontFamily: chakraItalic,\n                  fontStyle: \"italic\",\n                  fontWeight: 500,\n                  fontSize: fs,\n                  lineHeight: 1,\n                  letterSpacing: \"-0.01em\",\n                  fontVariantNumeric: \"tabular-nums\",\n                  color: c.ink,\n                  whiteSpace: \"nowrap\",\n                }}\n              >\n                −{fmt(h.damage)}\n              </div>\n            );\n          })}\n\n          {/* Hit words: slam in at the centre, cut by a slash on impact. */}\n          {hits.map((h, i) => {\n            const at = hitAt[i];\n            const start = at - SLAM_LEN;\n            const end =\n              i < hits.length - 1 ? hitAt[i + 1] - SLAM_LEN : defeatAt - 3;\n            if (t < start || t > end + 4) return null;\n            const p = SLAM(ramp(t, start, SLAM_LEN));\n            const out = ramp(t, end - 1, 4);\n            const sd = t - at;\n            const slash = sd >= 0 && sd < 7;\n            const reach = OUT(ramp(sd, 0, 3));\n            const fade = ramp(sd, 2, 5);\n            const wordY = 0.56 * H;\n            return (\n              <div key={`hit-${h.label}`}>\n                {[3, 0].map((lag) => {\n                  const pp = SLAM(ramp(t - lag, start, SLAM_LEN));\n                  if (lag > 0 && t > at + lag) return null;\n                  return (\n                    <div\n                      key={lag}\n                      style={{\n                        position: \"absolute\",\n                        left: 0,\n                        width: W,\n                        top: wordY - hitWordFs * 0.6,\n                        height: hitWordFs * 1.2,\n                        display: \"flex\",\n                        alignItems: \"center\",\n                        justifyContent: \"center\",\n                        transform: `translateX(${(1 - (lag ? pp : p)) * 120 * u - out * 60 * u}px) scale(${interpolate(lag ? pp : p, [0, 1], [1.6, 1])})`,\n                        opacity:\n                          ramp(t - lag, start, 2) *\n                          (1 - out) *\n                          (lag ? 0.22 : 1),\n                        fontFamily: chakraItalic,\n                        fontStyle: \"italic\",\n                        fontWeight: 500,\n                        fontSize: hitWordFs,\n                        lineHeight: 1,\n                        letterSpacing: \"-0.02em\",\n                        color: c.ink,\n                        whiteSpace: \"nowrap\",\n                      }}\n                    >\n                      {h.label}\n                    </div>\n                  );\n                })}\n                {slash ? (\n                  <svg\n                    width={W}\n                    height={H}\n                    style={{ position: \"absolute\", inset: 0 }}\n                    aria-hidden\n                  >\n                    <g\n                      transform={`translate(${W / 2} ${wordY}) rotate(-16)`}\n                      opacity={1 - fade}\n                    >\n                      <path\n                        d={`M${-0.42 * W * reach} 0 L0 ${-5 * u} L${0.42 * W * reach} 0 L0 ${5 * u} Z`}\n                        fill={theme === \"dark\" ? \"#FFFFFF\" : accent}\n                      />\n                      <path\n                        d={`M${-0.3 * W * reach} ${26 * u} L0 ${24 * u} L${0.3 * W * reach} ${26 * u} L0 ${28 * u} Z`}\n                        fill={RISE[1]}\n                      />\n                    </g>\n                  </svg>\n                ) : null}\n              </div>\n            );\n          })}\n\n          {/* DEFEATED. */}\n          {t >= defeatAt\n            ? [4, 2, 0].map((lag) => {\n                const pp = SLAM(ramp(t - lag, defeatAt, DEFEAT_LEN));\n                if (lag > 0 && t > defeatHit + lag) return null;\n                return (\n                  <div\n                    key={`def-${lag}`}\n                    style={{\n                      position: \"absolute\",\n                      left: 0,\n                      width: W,\n                      top: defeatY - defeatFs * 0.6,\n                      height: defeatFs * 1.2,\n                      display: \"flex\",\n                      alignItems: \"center\",\n                      justifyContent: \"center\",\n                      transform: `scale(${interpolate(lag ? pp : defeatP, [0, 1], [2.4, 1])})`,\n                      opacity:\n                        ramp(t - lag, defeatAt, 2) *\n                        (lag ? 0.18 / (lag / 2) : 1),\n                    }}\n                  >\n                    <div\n                      style={{\n                        fontFamily: chakraItalic,\n                        fontStyle: \"italic\",\n                        fontWeight: 500,\n                        fontSize: defeatFs,\n                        lineHeight: 1,\n                        letterSpacing: \"-0.03em\",\n                        paddingRight: 0.06 * defeatFs,\n                        whiteSpace: \"nowrap\",\n                        backgroundImage: c.word,\n                        WebkitBackgroundClip: \"text\",\n                        backgroundClip: \"text\",\n                        color: \"transparent\",\n                      }}\n                    >\n                      {defeated}\n                    </div>\n                  </div>\n                );\n              })\n            : null}\n        </div>\n\n        {/* Logo. */}\n        <div\n          style={{\n            position: \"absolute\",\n            left: 0,\n            width: W,\n            top: 0.8 * H,\n            display: \"flex\",\n            justifyContent: \"center\",\n            opacity: logoP,\n            transform: `translateY(${(1 - logoP) * 16 * u}px)`,\n          }}\n        >\n          <RemocnLogo fontSize={34 * u} color={c.ink} />\n        </div>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/boss-bar.tsx"
    }
  ],
  "type": "registry:component"
}
