/** The three standard difficulties, in the order the panel lists them: hardest first. */ export const LEVELS = [ { key: 'expert', label: 'Expert' }, { key: 'intermediate', label: 'Intermediate' }, { key: 'beginner', label: 'Beginner' }, ] as const; export type Level = (typeof LEVELS)[number]['key']; export const isLevel = (value: string | undefined): value is Level => !!value && LEVELS.some((l) => l.key === value); export type Replay = { file: string; level: Level; time: number; played: string; lost: boolean };