{# Sprint 6 iter 6c — gear-btn on /gameboard/my-sea/ + the gatekeeper.  #}
{# NVM-only menu (no DEL, no BYE) — gear is the "back out without      #}
{# committing" affordance. Caller passes `nvm_url` to control where    #}
{# NVM nav-backs to: my_sea landing (table hex) from gatekeeper +      #}
{# picker; falls back to /gameboard/ otherwise. Render unconditionally  #}
{# (no active-draw guard) so fresh users + post-DEL states still see it.#}
{# `<button>` not `<a class='btn'>` — `.btn` doesn't reset font-family, #}
{# so the anchor inherits body's serif font (the Brief's NVM uses       #}
{# `<button>` + reads correctly as sans-serif).                         #}
{# See [[feedback-btn-vs-anchor-font-family]].                          #}
{% if not nvm_url %}{% url 'gameboard' as nvm_url %}{% endif %}
<div id="id_my_sea_menu" style="display:none">
    <button type="button" class="btn btn-cancel" onclick="location.href='{{ nvm_url }}'">NVM</button>
    {# Spectator-only BYE (Phase B) — drops presence (status=LEFT, frees seat #}
    {# 2C, kills voice). Rendered below NVM only when the caller passes a     #}
    {# `leave_url`; the owner's pages never do, so their menu is unchanged.   #}
    {% if leave_url %}
    <form method="POST" action="{{ leave_url }}" style="display:contents">
        {% csrf_token %}
        <button type="submit" id="id_my_sea_bye_btn" class="btn btn-abandon">BYE</button>
    </form>
    {% endif %}
</div>
{% include "apps/applets/_partials/_gear.html" with menu_id="id_my_sea_menu" %}
