This commit is contained in:
cay 2026-04-13 11:31:39 +01:00
parent 734dd6dcca
commit 10fcf87c90
4 changed files with 1471 additions and 21 deletions

BIN
public/images/defeat.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

BIN
public/images/victory.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

View File

@ -387,16 +387,7 @@
<span class="deck-count" id="deck-count">—</span>`;
hand.appendChild(deckSlot);
// ── Slots 24: aufgedeckte Handkarten (leer bis API lädt) ───
const handCardIds = [
"hand-card-1",
"hand-card-2",
"hand-card-3",
"hand-card-4",
"hand-card-5",
"hand-card-6",
"hand-card-7",
];
// ── Slots 17: Handkarten-Slots ─────────────
handCardIds.forEach((id) => {
const s = document.createElement("div");
s.className = "hand-slot hand-slot-card";
@ -427,16 +418,8 @@
const state = handSlotState[id];
if (!slot) return;
/* KOMPLETT RESET */
slot.innerHTML = "";
slot.style.backgroundImage = "none";
slot.style.opacity = "1";
slot.style.filter = "none";
slot.style.backgroundColor = "#0a0805";
slot.classList.remove("hand-slot-ready", "hand-slot--filled");
if (!state) {
slot.style.backgroundImage = "";
slot.style.backgroundImage = '';
slot.innerHTML = '<span class="hs-icon">🃏</span>';
slot.classList.remove("hand-slot-ready", "hand-slot--filled");
slot.draggable = false;
@ -474,9 +457,9 @@
// Kein <img>-Element → keine Flex-Höhen-Probleme, kein z-index-Konflikt.
// background-color (#0a0805) deckt transparente PNG-Bereiche solid ab.
if (card.image) {
slot.style.backgroundImage = "none";
slot.style.backgroundImage = 'none';
} else {
slot.style.backgroundImage = "none";
slot.style.backgroundImage = 'none';
}
slot.innerHTML = card.image

File diff suppressed because it is too large Load Diff