From 7690907085e49787e509324b32fa535851305ebf Mon Sep 17 00:00:00 2001 From: cay Date: Sun, 12 Apr 2026 12:10:24 +0100 Subject: [PATCH] srjrt --- public/css/1v1.css | 5 +++-- views/1v1-battlefield.ejs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/css/1v1.css b/public/css/1v1.css index 10d4178..8049316 100644 --- a/public/css/1v1.css +++ b/public/css/1v1.css @@ -727,8 +727,9 @@ body { .hand-slot.hand-slot--filled::before { display: none !important; } -/* Karten-Bild immer über dem ::before pseudo-element */ -.hand-slot img { +/* Karten-Bild über dem ::before pseudo-element + NUR für hand-slot-card (nicht für den Deck-Stapel mit position:absolute imgs) */ +.hand-slot-card img { position: relative; z-index: 1; border-radius: calc(var(--s) * 9); diff --git a/views/1v1-battlefield.ejs b/views/1v1-battlefield.ejs index 714b5b2..8325fd4 100644 --- a/views/1v1-battlefield.ejs +++ b/views/1v1-battlefield.ejs @@ -429,7 +429,7 @@ if (!state) { slot.innerHTML = '🃏'; - slot.classList.remove("hand-slot-ready"); + slot.classList.remove("hand-slot-ready", "hand-slot--filled"); slot.draggable = false; delete slot.dataset.cardSlotId; return; @@ -474,6 +474,7 @@ ${statsHtml}${readyBadge}`; slot.classList.toggle("hand-slot-ready", isReady); + slot.classList.add("hand-slot--filled"); // Hintergrund + ::before entfernen // Drag & Drop: nur wenn Karte bereit UND mein Zug if (isReady && isMyTurn) {