"use client"; import { useEffect } from "react"; import Link from "next/link"; import { RefreshCw, TriangleAlert } from "lucide-react"; import { Button } from "@/components/ui"; import { SpinzaWordmark } from "@/components/brand/logo"; /** Route-level error boundary. Keeps the brand, offers a retry, reassures about progress. */ export default function ErrorPage({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) { useEffect(() => { console.error(error); }, [error]); return (

Something went wrong.

An unexpected error interrupted this screen. Your credits, streak and progress are safe on the server — try again or head back to the lobby.

{error.digest ?

Reference {error.digest}

: null}

Virtual credits only. No deposits. No withdrawals. No cash value. 18+.

); }