{#
History Accordion Content
Shows previous turns with actions and DM responses
#}
{% if history %}
<div class="history-list">
    {% for entry in history %}
    <div class="history-item">
        <div class="history-item-header">
            <span class="history-turn">Turn {{ entry.turn }}</span>
        </div>
        <div class="history-action">{{ entry.action }}</div>
        <div class="history-response">{{ entry.dm_response|truncate(150) }}</div>
    </div>
    {% endfor %}
</div>

<div class="history-load-more">
    <button class="btn-load-more"
            hx-get="{{ url_for('game.history_accordion', session_id=session_id) }}?offset={{ history|length }}"
            hx-target="#accordion-history"
            hx-swap="beforeend">
        Load More
    </button>
</div>
{% else %}
<div class="quest-empty">
    No history yet. Take your first action!
</div>
{% endif %}
