/** Words that fall as intact columns through the sidebar matrix rain. */
export const MYSTIC_WORD_DROPS = [
  'DESTROY',
  'WITCHCRAFT',
  'BLACKMAGIC',
  'BLACK MAGIC',
  'VOID',
  'CURSE',
  'BINDING',
  'SIGNAL',
  'EXECUTE',
  'POSSESS',
  'SUMMON',
  'AETHER',
] as const;

export const FORGE_RAIN_STRINGS = [
  'COMPILING', 'LINKING', 'GARBLE', 'GO BUILD', 'INJECT',
  'STEALTH', 'PERSIST', 'ENCRYPT', 'OBFUSC', 'PACKAGE',
  'WORKER', 'FORGE', 'SIGN', 'BUNDLE', 'AGENT',
  'RANDOMX', 'STRATUM', 'C2CONN', 'DEPLOY',
] as const;

export function pickMysticWord(): string {
  return MYSTIC_WORD_DROPS[Math.floor(Math.random() * MYSTIC_WORD_DROPS.length)];
}

export function wordColumnSpan(text: string): number {
  return text.length;
}
