ata = JSON.parse(battleDataStr);
                        window.BattleTimelineGenerator.showBattleTimeline(eventData);
                    } catch (e) {
                        console.error('Failed to parse battle data:', e);
                    }
                }
            } else {
                document.getElementById('battle-flow').innerHTML = '<div style="text-align: center; padding: 20px; width: 80%; max-width: 500px; background-color: rgba(255,0,0,0.05); border-radius: 10px; font-size: 16px; col