import { motion } from "framer-motion"; import { Check } from "lucide-react"; import type { GameColor } from "@/types"; // Real playing-card palette: deep ink colors on ivory card stock, not the // neon/glow hex used elsewhere in the UI — a genuine card doesn't glow. // `image` is an AI-rendered card face (Higgsfield) instead of a CSS-drawn one. const META: Record = { red: { hex: "#B3272E", label: "RED", suit: "♥", image: "/cards/card-red.png?v=3", }, green: { hex: "#1E7A46", label: "GREEN", suit: "♣", image: "/cards/card-green.png?v=3", }, violet: { hex: "#7B4FD1", label: "VIOLET", suit: "♦", image: "/cards/card-violet.png", }, }; export function ColorBetTile({ color, multiplier, selected, disabled, winning, onClick, }: { color: GameColor; multiplier: number; selected?: boolean; disabled?: boolean; winning?: boolean; onClick?: () => void; }) { const meta = META[color]; const lifted = selected || winning; const gold = "#C9A227"; return ( {/* the multiplier and suit index are baked into this art, matching the current fixed payouts (red 2x, violet 4x, green 2x) — if those payouts ever change, this image needs regenerating to match */} {`${meta.label} {selected && ( )} ); }