client: remember me, SVG affinity icons, card detail popup

Remember Me (login screen):
- AES-256-CBC encrypted credential storage in user://creds.dat
- Key XOR-obfuscated across two halves; random IV stored with ciphertext
- Checkbox pre-fills email/password on next launch; unchecking clears saved creds

SVG affinity icons (web-compatible):
- Replace emoji art symbols (🔥💧⛰💨⚡✦★) with SVG TextureRect in CardWidget
- 7 new icons/affinity_*.svg — monochrome white, modulate-tinted at runtime
- ArtSymbol node changed from Label to TextureRect (stretch_mode = keep-aspect-centred)

Card detail popup (collection screen):
- Tap any card in Cards tab to see full stats + abilities overlay
- CardDetailPopup added to viewport root (avoids VBoxContainer layout conflict)
- Shows: name, affinity icon, foil badge, type/affinity/rarity, all 6 stats,
  and parsed ability list with names + descriptions
- Dismiss by tapping ✕ or the dim background overlay

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-02 07:12:26 -05:00
co-authored by Claude Happy
parent 2508fe1297
commit 3c4908eec6
15 changed files with 508 additions and 23 deletions
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect fill="white" x="3" y="7" width="15" height="2.5" rx="1.25"/>
<path fill="white" d="M18 7a3 3 0 1 1 0 6H3V10.5h15a.5.5 0 0 0 0-1H3V7h15z"/>
<rect fill="white" x="3" y="13" width="11" height="2.5" rx="1.25"/>
<path fill="white" d="M14 13a3 3 0 1 1 0 6H3V16.5h11a.5.5 0 0 0 0-1H3V13h11z"/>
</svg>

After

Width:  |  Height:  |  Size: 369 B

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M12 3a9 9 0 0 0 0 18 9.2 9.2 0 0 0 2-.22A7 7 0 0 1 9.78 6.22 9.2 9.2 0 0 0 12 3z"/>
</svg>

After

Width:  |  Height:  |  Size: 176 B

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M1.5 21L8 7l5.5 9.5 3.5-6L23 21H1.5z"/>
</svg>

After

Width:  |  Height:  |  Size: 132 B

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M12 2C9.5 5.5 7 8.5 8 13c.4 1.8 1.6 3 2.8 3.8-.6-1.6 0-3.2 1.2-4 .4 1.8 1.4 3 2.2 4.2 1-1.4 1.2-3.2.3-4.8C16.4 13.6 17 16 16 18.5c-1 2.2-3.2 3.5-4 3.5C8.5 22 5.5 19.5 5.5 16.5c0-5 4-7.5 6.5-14.5z"/>
<path fill="white" d="M12 10c-.5 2.5.5 4 2 5-.5-2 .5-3.5 1.5-4.5-.5 2 .5 4 0 6C17.5 15 18 12.5 16.5 11 18 12.5 18 15 17 17c-1 2.5-3.5 4-5 4z"/>
</svg>

After

Width:  |  Height:  |  Size: 437 B

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<circle fill="white" cx="12" cy="12" r="4.5"/>
<rect fill="white" x="10.75" y="1" width="2.5" height="3.5" rx="1.25"/>
<rect fill="white" x="10.75" y="19.5" width="2.5" height="3.5" rx="1.25"/>
<rect fill="white" x="1" y="10.75" width="3.5" height="2.5" rx="1.25"/>
<rect fill="white" x="19.5" y="10.75" width="3.5" height="2.5" rx="1.25"/>
<rect fill="white" x="10.75" y="1" width="2.5" height="3.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="10.75" y="19.5" width="2.5" height="3.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="1" y="10.75" width="3.5" height="2.5" rx="1.25" transform="rotate(45 12 12)"/>
<rect fill="white" x="19.5" y="10.75" width="3.5" height="2.5" rx="1.25" transform="rotate(45 12 12)"/>
</svg>

After

Width:  |  Height:  |  Size: 837 B

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M13.5 2L5 13.5h6.5L10 22l9-12.5H13L13.5 2z"/>
</svg>

After

Width:  |  Height:  |  Size: 138 B

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="white" d="M12 2L5.5 12.5C4 15.2 4.5 18 6.5 19.8A7 7 0 0 0 12 22a7 7 0 0 0 5.5-2.2C19.5 18 20 15.2 18.5 12.5L12 2z"/>
</svg>

After

Width:  |  Height:  |  Size: 199 B