interface Props { score: number; grade: string; size?: number; } const RADIUS = 54; const CIRC = 2 * Math.PI * RADIUS; function gradeColor(score: number): string { if (score >= 90) return '#22c55e'; // green if (score >= 75) return '#84cc16'; // lime if (score >= 55) return '#f59e0b'; // amber if (score >= 35) return '#f97316'; // orange return '#ef4444'; // red } export default function ScoreRing({ score, grade, size = 140 }: Props) { const clipped = Math.max(0, Math.min(100, score)); const offset = CIRC - (clipped / 100) * CIRC; const color = gradeColor(clipped); return (