export const DIFFICULTIES = ["easy", "medium", "hard", "expert"] as const;
export type DifficultyKey = (typeof DIFFICULTIES)[number];
export const LEVELS_PER_DIFFICULTY = 240;

export const REWARD_POINTS: Record<DifficultyKey, number> = {
  easy: 8,
  medium: 12,
  hard: 16,
  expert: 22,
};

export const AID_PACKS = [
  {
    id: "starter",
    cost: 80,
    inventory: { hints: 3, undos: 2, replays: 0 },
  },
  {
    id: "focus",
    cost: 140,
    inventory: { hints: 6, undos: 4, replays: 0 },
  },
  {
    id: "solution",
    cost: 220,
    inventory: { hints: 5, undos: 4, replays: 1 },
  },
  {
    id: "expert",
    cost: 320,
    inventory: { hints: 10, undos: 8, replays: 2 },
  },
];

export const TOKEN_TTL = "2h";
export const REFRESH_TTL = "7d";
export const REFRESH_COOKIE_NAME = "rl_refresh";
export const MAX_FAILED_LOGINS = 5;
export const LOCK_TIME_MS = 15 * 60 * 1000;
export const RESET_TOKEN_TTL_MS = 60 * 60 * 1000;
export const EMAIL_VERIFY_TOKEN_TTL_MS = 24 * 60 * 60 * 1000;
