diff --git a/public/css/1v1.css b/public/css/1v1.css index c72da93..b86f6ea 100644 --- a/public/css/1v1.css +++ b/public/css/1v1.css @@ -425,7 +425,7 @@ body { box-shadow 0.2s ease, opacity 0.2s ease; position: relative; - z-index: 0; /* eigener Stacking-Context: img z-index:2 schlaegt ::before sicher β kein isolation:isolate (GPU-Compositing-Bug mit overflow:hidden) */ + z-index: 0; /* eigener Stacking-Context ohne GPU-Compositing-Bug */ overflow: visible; box-shadow: 0 calc(var(--s) * 4) calc(var(--s) * 12) rgba(0, 0, 0, 0.4); } @@ -433,7 +433,6 @@ body { content: ""; position: absolute; inset: 0; - z-index: 0; /* explizit unter dem Karten-Image (z-index:2) */ background: linear-gradient( 160deg, rgba(255, 255, 255, 0.06) 0%, @@ -726,12 +725,9 @@ body { border-color: rgba(255, 215, 80, 0.6); } -/* Hand-Slot: Karte ist drin - - background transparent damit der dunkle Slot-Hintergrund nicht durchscheint - - overflow:hidden clippt das absolute img auf den border-radius - - ::before Gradient-Overlay ausblenden */ +/* Hand-Slot: Karte ist drin β background-image wird via JS gesetzt, + overflow:hidden clippt an border-radius */ .hand-slot.hand-slot--filled { - background: transparent !important; overflow: hidden !important; } .hand-slot.hand-slot--filled::before { diff --git a/views/1v1-battlefield.ejs b/views/1v1-battlefield.ejs index 6f80287..0421a66 100644 --- a/views/1v1-battlefield.ejs +++ b/views/1v1-battlefield.ejs @@ -428,9 +428,12 @@ if (!slot) return; if (!state) { - // Inline-Styles aus dem Karten-Render wieder entfernen - slot.style.background = ""; - slot.style.overflow = ""; + // Alle Inline-Styles aus dem Karten-Render zurΓΌcksetzen + slot.style.backgroundImage = ""; + slot.style.backgroundSize = ""; + slot.style.backgroundPosition = ""; + slot.style.backgroundColor = ""; + slot.style.overflow = ""; slot.innerHTML = ''; slot.classList.remove("hand-slot-ready", "hand-slot--filled"); slot.draggable = false; @@ -464,17 +467,22 @@ ? `