/* Units and spells page only (linked from that page alone, so other pages keep their bytes).
   "!" badge with a hover/tap note for spells the app recognises but does not support, and the Revive note. */
.unit-entry.unit-flagged{position:relative}
.unit-flagged .unit-art-area{position:relative}
.unit-flag{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;min-width:0;min-height:0;margin:0;padding:0;border:2px solid #303a32;border-radius:50%;background:#e8b04b;color:#1c1f1e;font:700 .85rem/1 inherit;cursor:help}
.unit-flag:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.unit-flag-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.unit-flag-tip{position:absolute;z-index:5;left:12px;right:12px;top:calc(100% - 6px);padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#1c201f;color:var(--text);font-size:.82rem;line-height:1.45;box-shadow:0 8px 20px rgba(0,0,0,.35);visibility:hidden;opacity:0;transition:opacity .12s}
.unit-flagged:hover .unit-flag-tip,.unit-flagged:focus-within .unit-flag-tip{visibility:visible;opacity:1}
.unit-flag-tip strong{display:inline;color:#f0c46c;font-size:inherit;font-weight:650}
.unit-info{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid #303a32;border-radius:50%;background:var(--accent);color:#1c1f1e;font:700 .8rem/1 Georgia,serif;text-decoration:none}
.unit-info:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.unit-note{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:8px;background:var(--soft);font-size:.9rem;line-height:1.55}
.unit-note p{margin:0}
.unit-note-mark{flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#1c1f1e;font:700 .78rem/1 Georgia,serif}
.unit-legend{display:inline-grid;place-items:center;width:18px;height:18px;margin:0 2px;border-radius:50%;background:#e8b04b;color:#1c1f1e;font-weight:700;font-size:.72rem;vertical-align:1px}
