{{!-- Runic attachment zone — included in armor, weapon, magic-item (talisman) sheets --}}
<fieldset class="rune-zone">
  <legend><i class="fa-solid fa-star-of-david"></i> {{localize "OATHHAMMER.Label.Runes"}}</legend>

  {{#if enrichedRunes.length}}
    <ul class="rune-list">
      {{#each enrichedRunes as |rune|}}
        <li class="rune-entry {{#if rune.isExalted}}rune-exalted{{/if}}">
          <img class="rune-img" src="{{rune.img}}" alt="{{rune.name}}" />
          <span class="rune-name">{{rune.name}}</span>
          {{#if rune.isExalted}}
            <span class="rune-badge-exalted" data-tooltip="{{localize 'OATHHAMMER.Label.Exalted'}}">✦</span>
          {{/if}}
          <span class="rune-dv" data-tooltip="{{localize 'OATHHAMMER.Label.DifficultyValue'}}">DV{{rune.difficultyValue}}</span>
          {{#if rune.duration}}
            <span class="rune-duration">{{rune.duration}}</span>
          {{/if}}
          <a class="rune-effect-toggle"
             data-action="openRune"
             data-source-uuid="{{rune.sourceUuid}}"
             data-tooltip="{{localize 'OATHHAMMER.Label.OpenRune'}}"
             data-tooltip-direction="UP">
            <i class="fa-solid fa-circle-info"></i>
          </a>
          <a class="rune-remove" data-action="removeRune" data-rune-index="{{rune.idx}}"
             data-tooltip="{{localize 'OATHHAMMER.Label.RemoveRune'}}">
            <i class="fa-solid fa-xmark"></i>
          </a>
        </li>
      {{/each}}
    </ul>
  {{/if}}

  <div class="rune-drop-zone">
    <i class="fa-solid fa-wand-sparkles"></i>
    <span>{{localize "OATHHAMMER.Label.DropRuneHint"}}</span>
  </div>
</fieldset>
