        <header class="page-heading"><p class="eyebrow">CENTRO DE OPERACIONES</p><h1>Decisiones y logros</h1><p>Responde a sucesos del universo y consulta los hitos permanentes de tu imperio.</p></header>
        <section aria-labelledby="events-title"><h2 id="events-title" class="section-title">Eventos narrativos</h2>{% set open_events = events|selectattr('resolved','equalto',0)|list %}{% if open_events %}<div class="event-grid">{% for event in open_events %}<article class="event-card"><p class="eyebrow">DECISIÓN PENDIENTE</p><h3>{{ event.title }}</h3><p>{{ event.body }}</p><div class="choice-list">{% for choice in event.choices_json|from_json %}<form method="post" action="{{ url_for('event_action') }}"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="event_id" value="{{ event.id }}"><input type="hidden" name="choice" value="{{ choice.key }}"><button class="choice-button" type="submit"><strong>{{ choice.label }}</strong><span>{{ choice.description }}</span></button></form>{% endfor %}</div></article>{% endfor %}</div>{% else %}<p class="empty-state">No hay decisiones pendientes. Los nuevos eventos se anunciarán sin interrumpir la navegación.</p>{% endif %}</section>
        <section aria-labelledby="achievements-title"><h2 id="achievements-title" class="section-title">Logros desbloqueados</h2><div class="achievement-grid">{% for key, definition in ACHIEVEMENTS.items() %}{% set unlocked_keys = achievements|map(attribute='achievement_key')|list %}<article class="achievement {% if key in unlocked_keys %}unlocked{% endif %}"><span aria-hidden="true">{{ '◆' if key in unlocked_keys else '◇' }}</span><div><h3>{{ definition[0] }}</h3><p>{{ definition[1] }}</p><small>{{ 'Desbloqueado' if key in unlocked_keys else 'Pendiente' }}</small></div></article>{% endfor %}</div></section>
        {% set history = events|selectattr('resolved','equalto',1)|list %}{% if history %}<details class="panel event-history"><summary>Historial de eventos resueltos</summary><ol>{% for event in history %}<li><strong>{{ event.title }}</strong>: {{ event.result_text }}</li>{% endfor %}</ol></details>{% endif %}
