/* E125a — gemeinsamer Kartentisch der Kartenspiele (Blackjack, Bunt!, Spite & Malice, Mau+).
   Grundton wie E124: ein Akzent, keine Verläufe, kein Schein, nichts pulst
   dauerhaft. Die Karten selbst sind Inhalt — sie dürfen gezeichnet sein. */

/* ── Französisches Blatt (karten.js → LWKarten.franz) ─────────────────── */
.card.fk {
    container-type: inline-size;
    background: #fbfaf6; color: #1b1f27;
    /* Prozent statt cqw: cqw meint den Container DARÜBER, nicht die Karte selbst */
    border-radius: 8% / 5.5%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .34);
    font-weight: 700; overflow: hidden;
}
.card.fk.red { color: #d0383d; }
.fk-ecke {
    position: absolute; left: 6cqw; top: 5cqw; display: flex; flex-direction: column; align-items: center;
    line-height: .95; font-variant-numeric: tabular-nums;
}
.fk-ecke b { font-size: 21cqw; font-weight: 700; letter-spacing: -.06em; }
.fk-ecke i { font-style: normal; font-size: 17cqw; margin-top: 1cqw; }
.fk-ecke.unten { left: auto; top: auto; right: 6cqw; bottom: 5cqw; transform: rotate(180deg); }
.fk-mitte { position: absolute; inset: 0; }
.fk-feld { position: absolute; left: 36%; right: 36%; top: 16%; bottom: 16%; }
.card.fk.zehn .fk-ecke b { letter-spacing: -.14em; font-size: 18cqw; margin-left: -1cqw; }
.fk-feld i {
    position: absolute; font-style: normal; font-size: 18cqw; line-height: 1;
    transform: translate(-50%, -50%);
}
.fk-feld i.kopf { transform: translate(-50%, -50%) rotate(180deg); }
.fk-ass-z { position: absolute; inset: 0; display: grid; place-items: center; font-size: 52cqw; line-height: 1; }
.fk-rahmen {
    position: absolute; left: 24%; right: 24%; top: 16%; bottom: 16%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw;
    border: 1px solid color-mix(in srgb, currentColor 38%, transparent); border-radius: 4cqw;
    background: color-mix(in srgb, currentColor 6%, transparent);
}
.fk-rahmen b { font: 600 40cqw/1 Georgia, "Times New Roman", serif; }
.fk-rahmen i { font-style: normal; font-size: 22cqw; line-height: 1; }
.fk-eins { display: none; }

/* Schmal (Gegnerplätze, Handy): Eckzeichen + ein Symbol — das Muster wäre Krümel. */
@container (max-width: 63px) {
    .fk-mitte, .fk-ecke.unten { display: none; }
    .fk-ecke b { font-size: 30cqw; }
    .fk-ecke i { font-size: 24cqw; }
    .fk-eins {
        /* mittig unten: in einem Fächer deckt die Nachbarkarte die rechte Hälfte */
        display: block; position: absolute; left: 50%; bottom: 8cqw; transform: translateX(-38%);
        font-size: 50cqw; line-height: 1;
    }
}

/* Rücken: flach, mit feinem Gitter wie gedruckt (Bild, kein Verlauf). */
.card.back.fk-ruecken, .card.back {
    background-color: #263049;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0L8 8M8 0L0 8' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
    box-shadow: inset 0 0 0 4px #263049, inset 0 0 0 5px rgba(255, 255, 255, .16), 0 0 0 1px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .34);
}

/* Bewegung: einmalig, nie dauerhaft. */
.card.kommt { animation: fk-kommt .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes fk-kommt { from { transform: translateY(-28px) rotate(-5deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.card.dreht { animation: fk-dreht .36s ease-out both; }
@keyframes fk-dreht { from { transform: rotateY(90deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .card.kommt, .card.dreht { animation: none; } }

/* ── Endtabelle: Platz als Zahl, Sieger im Akzent (vorher Pokal, Medaillen, Gold) ── */
.overlay .trophy { display: none; }
.scores .rk {
    font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
    text-align: right; padding-right: 4px;
}
.scores tr.w td { color: var(--text); font-weight: 700; }
.scores tr.w .rk { color: var(--accent); }
.scores td { border-bottom: 1px solid var(--linie); }
.scores tr:last-child td { border-bottom: 0; }

/* ── „Du bist dran" an der eigenen Hand: Akzent-Rand, ruhig ── */
.hand-wrap.myturn {
    border-radius: 16px; animation: none;
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent);
}

/* Ansage-Knopf („Mau!", „Letzte Karte!"): fällig = Akzent, ohne Puls */
.call-btn.due {
    color: #fff; background: var(--accent-flaeche); border-color: var(--accent);
    animation: none; box-shadow: none;
}
