/* Spieltisch 19er Rufen – Holztisch im Querformat */

:root {
  --holz: url("bilder/holz.webp");
  --gold: #e8c46a;
  --creme: #fbf3df;
  --schatten-karte: 0 1px 2px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .35);
  /* Kartengrößen setzt tisch.js passend zum Bildschirm */
  --kh-hand: 140px; --kw-hand: 79px;
  --kh-mitte: 120px; --kw-mitte: 68px;
  --kh-klein: 52px; --kw-klein: 29px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #3a2312;
  font: 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--creme);
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}

/* ------------------------------------------------------------ Tisch */

.tisch {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 220, 160, .10) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%),
    var(--holz) center / cover, #6b3b1a;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: hidden;
}

/* ------------------------------------------------------------ Karten */

.karte {
  position: relative;
  width: var(--kw); height: var(--kh);
  background: #fff;
  border-radius: calc(var(--kw) * .09);
  padding: calc(var(--kw) * .045);
  box-shadow: var(--schatten-karte);
  flex: none;
}
.karte img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--kw) * .06);
  pointer-events: none;
}

/* Rückseite: selbst gestaltet (Rauten-Muster, Goldrahmen, Emblem „19“) */
.karte.rueck .innen {
  width: 100%; height: 100%;
  border-radius: calc(var(--kw) * .06);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 230, 160, .25) 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, rgba(232, 196, 106, .35) 0 1px, transparent 1px calc(var(--kw) * .12)),
    repeating-linear-gradient(-45deg, rgba(232, 196, 106, .35) 0 1px, transparent 1px calc(var(--kw) * .12)),
    linear-gradient(160deg, #8e2328, #5c1216);
  box-shadow: inset 0 0 0 calc(var(--kw) * .03) #5c1216, inset 0 0 0 calc(var(--kw) * .05) var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font: 700 calc(var(--kw) * .26) / 1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}
.karte.rueck .innen::after { content: "19"; }

.groesse-hand  { --kh: var(--kh-hand);  --kw: var(--kw-hand); }
.groesse-mitte { --kh: var(--kh-mitte); --kw: var(--kw-mitte); }
.groesse-klein { --kh: var(--kh-klein); --kw: var(--kw-klein); }

/* ------------------------------------------------------------ Eigene Hand (Fächer) */

.hand {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--kh-hand) * 1.15);
  pointer-events: none;
}
.hand .karte {
  position: absolute; left: 0; bottom: calc(var(--kh-hand) * -.16);
  transform-origin: 50% 120%;
  transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r));
  pointer-events: auto; cursor: pointer;
}
/* Bewegung erst, wenn die Karten an ihrem Platz liegen (sonst gleiten neue Karten von links herein) */
.hand.bereit .karte { transition: transform .18s ease, filter .18s ease; }
.hand .karte.gesperrt { filter: brightness(.55) saturate(.6); cursor: not-allowed; }
.hand .karte.gewaehlt { transform: translateX(var(--x)) translateY(calc(var(--y) - var(--kh-hand) * .28)) rotate(var(--r)); z-index: 50; }
.hand .karte.markiert { box-shadow: var(--schatten-karte), 0 0 0 3px #4fa3ff; }
@media (hover: hover) and (pointer: fine) {
  .hand .karte:not(.gesperrt):not(.gewaehlt):hover { transform: translateX(var(--x)) translateY(calc(var(--y) - var(--kh-hand) * .08)) rotate(var(--r)); }
}
.hand .karte.wackeln { animation: wackeln .35s; }
@keyframes wackeln {
  0%, 100% { margin-left: 0; } 25% { margin-left: -6px; } 75% { margin-left: 6px; }
}

/* ------------------------------------------------------------ Mitspieler */

.sitz { position: absolute; display: flex; align-items: center; gap: 6px; }
.sitz { flex-direction: column; z-index: 20; }
.sitz-oben   { top: 6px; left: 50%; transform: translateX(-50%); }
.sitz-links  { left: max(10px, env(safe-area-inset-left, 0px)); top: 40%; transform: translateY(-50%); align-items: flex-start; }
.sitz-rechts { right: max(10px, env(safe-area-inset-right, 0px)); top: 40%; transform: translateY(-50%); align-items: flex-end; }

/* Verdeckte Karten der Mitspieler: kleiner, überlappender Fächer */
.faecher { display: flex; }
.faecher .karte + .karte { margin-left: calc(var(--kw-klein) * -.72); }
.faecher .karte { box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }

/* Namensschild (Holz) */
.schild {
  position: relative;
  padding: 4px 12px; border-radius: 9px;
  background: linear-gradient(rgba(255, 255, 255, .14), rgba(0, 0, 0, .35)), var(--holz) 30% 40% / 500%;
  border: 1px solid #2a160a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(0, 0, 0, .5);
  font-weight: 650; font-size: 14px; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7);
  transition: box-shadow .25s;
}
.schild small { font-weight: 400; opacity: .85; margin-left: 6px; }
.schild .abzeichen {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px;
  background: var(--gold); color: #3a2312; font-size: 11px; font-weight: 700; text-shadow: none;
}
.am-zug .schild {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 2px var(--gold), 0 0 16px 4px rgba(232, 196, 106, .75);
  animation: leuchten 1.4s ease-in-out infinite;
}
@keyframes leuchten { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 2px var(--gold), 0 0 6px 1px rgba(232, 196, 106, .45); } }

.eigenes-schild { position: absolute; left: 10px; bottom: calc(var(--kh-hand) * .98); }

/* ------------------------------------------------------------ Mitte */

.mitte {
  position: absolute;
  left: 18%; right: 18%; top: calc(var(--kh-klein) + 40px); bottom: calc(var(--kh-hand) * .9);
}
.ansicht { position: absolute; inset: 0; display: none; }
.ansicht.aktiv { display: block; }

/* Stich */
.slot { position: absolute; }
.slot[data-rel="0"] { left: 50%; top: 50%; transform: translate(-50%, -14%) rotate(var(--dreh, 0deg)); }
.slot[data-rel="1"] { left: 50%; top: 50%; transform: translate(62%, -52%) rotate(var(--dreh, 0deg)); }
.slot[data-rel="2"] { left: 50%; top: 50%; transform: translate(-50%, -90%) rotate(var(--dreh, 0deg)); }
.slot[data-rel="3"] { left: 50%; top: 50%; transform: translate(-162%, -48%) rotate(var(--dreh, 0deg)); }

/* Ansage-Ansicht */
.tafel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, 100%); max-height: 100%; overflow: auto;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(30, 16, 6, .72);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(232, 196, 106, .35);
  text-align: center;
}
.tafel h2 { margin: 0 0 6px; font-size: 17px; color: var(--gold); font-weight: 650; }
.tafel .verlauf { font-size: 13px; opacity: .9; margin-bottom: 10px; }
.tafel .verlauf span { display: inline-block; margin: 2px 3px; padding: 1px 7px; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Holz-Button */
.holz-knopf {
  font: inherit; font-weight: 650; color: var(--creme);
  padding: 9px 16px; min-height: 42px; border-radius: 11px;
  border: 1px solid #241207;
  background: linear-gradient(rgba(255, 255, 255, .18), rgba(0, 0, 0, .32)), var(--holz) 60% 30% / 400%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .75);
  cursor: pointer;
}
.holz-knopf:active { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .5); }
.holz-knopf.leise { opacity: .85; font-weight: 500; }

/* Talon-Ansicht */
.talon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: calc(var(--kw-mitte) * .5); text-align: center; }
.talon .reihe { display: flex; gap: 6px; justify-content: center; }
.talon .beschriftung { margin-top: 6px; font-size: 12px; opacity: .9; text-shadow: 0 1px 1px #000; }

/* ------------------------------------------------------------ Info, Meldung */

.info { position: absolute; left: 10px; top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.info .schild { font-size: 13px; font-weight: 500; }

.meldung {
  position: absolute; left: 50%; bottom: calc(var(--kh-hand) * 1.0); transform: translateX(-50%);
  padding: 7px 14px; border-radius: 10px; background: rgba(20, 10, 4, .85); color: #fff;
  font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200; white-space: nowrap;
}
.meldung.sichtbar { opacity: 1; }

/* Flugebene für Animationen */
.flug { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.flug .karte { position: absolute; left: 0; top: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }

/* ------------------------------------------------------------ Hochformat-Hinweis */

.quer-hinweis { display: none; }
@media (orientation: portrait) and (max-width: 760px) {
  .quer-hinweis {
    display: flex; position: fixed; inset: 0; z-index: 1000;
    flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .7)), var(--holz) center / cover;
    font-size: 18px; text-align: center; padding: 24px;
  }
  .quer-hinweis .symbol { font-size: 54px; animation: drehen 2s ease-in-out infinite; }
  @keyframes drehen { 50% { transform: rotate(-90deg); } }
}

/* ------------------------------------------------------------ Ergänzungen fürs echte Spiel */

/* Stand oben rechts */
.stand { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); top: 8px; }
.stand .schild { font-size: 12px; font-weight: 500; line-height: 1.45; text-align: right; }
.sitz-rechts { top: 46%; }

/* Ablage: kleiner Stapel verdeckter Karten neben dem Platz */
.ablage { display: flex; min-height: 0; }
.ablage .karte { --kh: calc(var(--kh-klein) * .7); --kw: calc(var(--kw-klein) * .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.ablage .karte + .karte { margin-left: calc(var(--kw-klein) * -.55); }
.eigenes-schild { flex-direction: row; align-items: center; gap: 8px; }

/* Sprechblase */
.blase {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) scale(.6);
  padding: 6px 12px; border-radius: 14px; background: #fffdf5; color: #3a2312;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 150;
}
.blase::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #fffdf5; }
.blase.sichtbar { opacity: 1; transform: translateX(-50%) scale(1); }
.sitz-oben .blase { bottom: auto; top: calc(100% + 8px); }
.sitz-oben .blase::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #fffdf5; }
.sitz-links .blase { left: 0; transform: scale(.6); }
.sitz-links .blase.sichtbar { transform: scale(1); }
.sitz-links .blase::after { left: 20px; }
.sitz-rechts .blase { left: auto; right: 0; transform: scale(.6); }
.sitz-rechts .blase.sichtbar { transform: scale(1); }
.sitz-rechts .blase::after { left: auto; right: 20px; transform: none; }
.eigenes-schild .blase { left: 0; transform: scale(.6); }
.eigenes-schild .blase.sichtbar { transform: scale(1); }
.eigenes-schild .blase::after { left: 20px; }

/* Karte im Flug umdrehen */
.flip-huelle { position: absolute; left: 0; top: 0; width: var(--kw); height: var(--kh); perspective: 700px; }
.flip-huelle .dreher { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.flip-huelle .seite { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.flip-huelle .seite.hinten { transform: rotateY(180deg); }

/* Talon mit Titel und Knöpfen */
.talon-bereich { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.talon-bereich .talon { position: static; transform: none; }
.talon-titel { font-weight: 650; color: var(--gold); text-shadow: 0 1px 2px #000; }

/* Abrechnung */
.ergebnis { margin: 0 auto 8px; border-collapse: collapse; font-size: 13px; text-align: left; }
.ergebnis td { padding: 2px 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ergebnis td.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ergebnis.zahlungen { font-weight: 650; }

/* Ablage des oberen Mitspielers rechts neben seinem Fächer (sonst unter den Stichkarten) */
.sitz-oben .ablage { position: absolute; left: 100%; bottom: 0; margin-left: 10px; }

/* Zweits: Talonkarten der zwei Empfänger als kleine Bilder */
.talonkarten { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 2px 0 10px; }
.talonkarten-titel { align-self: center; font-size: 13px; opacity: .9; }
.talonkarte-platz { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; opacity: .95; }
.karte.talonkarte { --kh: calc(var(--kh-mitte) * .62); --kw: calc(var(--kw-mitte) * .62); }

/* Niedrige Bildschirme (Handy quer): Tafel kompakter */
@media (max-height: 440px) {
  .tafel { padding: 7px 10px; }
  .tafel h2 { font-size: 15px; margin-bottom: 4px; }
  .tafel .verlauf { margin-bottom: 6px; }
  .talonkarten { margin-bottom: 6px; }
  .karte.talonkarte { --kh: calc(var(--kh-mitte) * .5); --kw: calc(var(--kw-mitte) * .5); }
  .holz-knopf { min-height: 36px; padding: 6px 12px; }
}

/* Ziehen: Karte am Finger, Mitte als Ablageziel */
.hand .karte { touch-action: none; }
.flug .karte.gezogen { box-shadow: 0 8px 22px rgba(0, 0, 0, .55); z-index: 400; }
.mitte.ablage-ziel { outline: 3px dashed rgba(232, 196, 106, .55); outline-offset: -6px; border-radius: 18px; transition: background .15s; }
.mitte.ablage-ziel.drueber { background: rgba(232, 196, 106, .14); outline-color: var(--gold); }

/* ------------------------------------------------------------ Chat */
.stand { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 30; }
.chat-knopf, .menue-knopf { position: relative; min-height: 36px; padding: 4px 12px; font-size: 18px; }
.chat-knopf .ungelesen {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #c62828; color: #fff; font-size: 12px; line-height: 20px; text-shadow: none; box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.chat-fenster {
  position: absolute; z-index: 250;
  right: max(10px, env(safe-area-inset-right, 0px)); top: 8px; bottom: 8px; width: min(360px, 62vw);
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border-radius: 14px; background: rgba(24, 12, 4, .92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(232, 196, 106, .35);
}
.chat-fenster[hidden] { display: none; }
.chat-kopf { display: flex; justify-content: space-between; align-items: center; color: var(--gold); font-weight: 650; }
.chat-zu { background: none; border: 0; color: var(--creme); font-size: 18px; cursor: pointer; padding: 2px 6px; }
.chat-liste { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 14px; user-select: text; -webkit-user-select: text; }
.chat-nachricht { align-self: flex-start; max-width: 88%; padding: 4px 9px; border-radius: 10px; background: rgba(255, 255, 255, .1); overflow-wrap: anywhere; }
.chat-nachricht b { color: var(--gold); font-weight: 650; margin-right: 4px; }
.chat-nachricht.eigene { align-self: flex-end; background: rgba(232, 196, 106, .22); }
.chat-leer { opacity: .7; font-size: 13px; text-align: center; margin-top: 10px; }
.chat-schnell { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.chat-spruch { flex: none; font: inherit; font-size: 13px; padding: 4px 9px; border-radius: 12px; border: 1px solid rgba(232,196,106,.4); background: rgba(255,255,255,.08); color: var(--creme); cursor: pointer; }
.chat-eingabe { display: flex; gap: 6px; }
.chat-eingabe input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 7px 10px; border-radius: 9px; border: 1px solid #241207; background: #fbf3df; color: #2a160a; }
.chat-eingabe .holz-knopf { min-height: 0; padding: 6px 12px; }

/* Offene Karten der Mitspieler (Bettler ouvert): weniger Überlappung, damit man sie erkennt */
.faecher.offen .karte + .karte { margin-left: calc(var(--kw-klein) * -.42); }
/* Chat-Knopf links neben dem Stand (spart Höhe) */
.stand { flex-direction: row-reverse; align-items: flex-start; }
.chat-schnell { scrollbar-width: none; }
.chat-schnell::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------ Letzter Stich / alle Stiche */
.stich-knopf { min-height: 36px; padding: 4px 10px; font-size: 13px; }
.stich-ansicht { position: absolute; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); }
.stich-ansicht[hidden] { display: none; }
.stich-fenster {
  max-width: 94vw; max-height: 92%; overflow: auto; padding: 10px 14px; border-radius: 14px; text-align: center;
  background: rgba(24, 12, 4, .94); box-shadow: 0 8px 28px rgba(0,0,0,.6), inset 0 0 0 1px rgba(232,196,106,.35);
}
.stich-fenster h2 { margin: 0 0 8px; font-size: 16px; color: var(--gold); }
.stich-liste { display: flex; flex-direction: column; gap: 8px; }
.stich-zeile { display: flex; align-items: center; gap: 10px; justify-content: center; }
.stich-nr { width: 22px; text-align: right; opacity: .8; font-size: 13px; }
.stich-karten { display: flex; gap: 6px; }
.stich-karte { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; opacity: .92; }
.stich-karte.gewinnt { opacity: 1; }
.stich-karte.gewinnt .karte { box-shadow: var(--schatten-karte), 0 0 0 3px var(--gold); }
.stich-gewinner { min-width: 70px; text-align: left; font-weight: 650; font-size: 13px; }
.stich-hinweis { margin-top: 8px; font-size: 11px; opacity: .7; }
/* Alle Stiche: kleinere Karten, damit 12 Zeilen gut scrollen */
.stich-fenster.alle .karte { --kh: calc(var(--kh-mitte) * .55); --kw: calc(var(--kw-mitte) * .55); }

/* ------------------------------------------------------------ Abrechnung groß (über allem, „Schließen“ zeigt wieder den Tisch) */
.abrechnung-ansicht { position: absolute; inset: 0; z-index: 255; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); padding: 8px; }
.abrechnung-ansicht[hidden] { display: none; }
.abrechnung-fenster {
  width: min(760px, 100%); max-height: 100%; overflow: auto; padding: 12px 16px; border-radius: 14px; text-align: center;
  background: rgba(24, 12, 4, .96); box-shadow: 0 8px 28px rgba(0,0,0,.6), inset 0 0 0 1px rgba(232,196,106,.45);
  display: flex; flex-direction: column; gap: 10px;
}
.abrechnung-fenster h2 { margin: 0; font-size: 18px; color: var(--gold); }
/* Posten links, Zahlungen rechts (am Handy quer ist Breite da, Höhe nicht) */
.abrechnung-inhalt { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.abrechnung-inhalt .ergebnis { margin: 0; font-size: 15px; }
.abrechnung-inhalt .ergebnis td { padding: 3px 8px; }
.abrechnung-inhalt .ergebnis.zahlungen { font-size: 17px; }
.ergebnis td.plus { color: #9be27a; }
.ergebnis td.minus { color: #ff9b8a; }
.ergebnis .bereit { color: #9be27a; }
.abrechnung-warten { font-size: 14px; opacity: .9; }
.abrechnung-warten:empty { display: none; }

/* Ablegen: Tafel kompakt, alles in einer Zeile wenn möglich */
.tafel.kompakt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; }
.tafel.kompakt h2, .tafel.kompakt .verlauf, .tafel.kompakt .talonkarten { margin: 0; }
@media (max-height: 440px) {
  .tafel.kompakt h2 { font-size: 14px; }
  .tafel.kompakt .verlauf { font-size: 12px; }
  .abrechnung-fenster { padding: 8px 12px; gap: 6px; }
  .abrechnung-fenster h2 { font-size: 16px; }
  .abrechnung-inhalt .ergebnis { font-size: 13px; }
  .abrechnung-inhalt .ergebnis td { padding: 2px 6px; }
  .abrechnung-inhalt .ergebnis.zahlungen { font-size: 15px; }
}

/* Karte nur ansehen: ganz hochheben und nach vorne, auch wenn sie gerade nicht spielbar ist */
.hand .karte.angesehen { transform: translateX(var(--x)) translateY(calc(var(--y) - var(--kh-hand) * .3)) rotate(0deg); z-index: 60 !important; }
.hand .karte.gesperrt.angesehen { filter: brightness(.9); }

/* ------------------------------------------------------------ Spezial-Effekte: Sküs und Vogel abgestochen */

/* Der Sküs leuchtet golden, solange er im Stich liegt */
.slot .karte.skues-glanz { animation: skues-glanz 1.6s ease-in-out infinite; }
@keyframes skues-glanz {
  0%, 100% { box-shadow: var(--schatten-karte), 0 0 8px 2px rgba(255, 205, 80, .65); }
  50% { box-shadow: var(--schatten-karte), 0 0 22px 8px rgba(255, 225, 130, .95); }
}

.flug .effekt-dunkel, .flug .effekt-blitz { position: absolute; inset: 0; }
.effekt-dunkel { background: radial-gradient(ellipse at 50% 50%, rgba(20, 8, 0, .55), rgba(0, 0, 0, .94) 75%); }

.effekt-strahlen {
  position: absolute; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 214, 102, .85) 0deg 4deg, rgba(255, 214, 102, 0) 6deg 14deg);
  -webkit-mask-image: radial-gradient(circle, #000 6%, transparent 66%);
  mask-image: radial-gradient(circle, #000 6%, transparent 66%);
}
.effekt-strahlen.weiss { background: repeating-conic-gradient(rgba(255, 255, 255, .6) 0deg 2deg, rgba(255, 255, 255, 0) 3deg 21deg); }

/* Große Karte im Flug (Größe kommt aus --kw/--kh am Element) */
.effekt-karte { position: absolute; left: 0; top: 0; width: var(--kw); height: var(--kh); }
.effekt-innen { position: relative; width: 100%; height: 100%; }
.flug .effekt-innen > .karte { position: relative; }
.flug .effekt-karte .karte { box-shadow: 0 8px 30px rgba(0, 0, 0, .6); }

.effekt-funke { position: absolute; left: 0; top: 0; border-radius: 50%; box-shadow: 0 0 6px 2px rgba(255, 196, 70, .85); }
.effekt-welle {
  position: absolute; left: 0; top: 0; width: 80px; height: 80px; border-radius: 50%;
  border: 4px solid currentColor; box-shadow: 0 0 16px currentColor, inset 0 0 16px currentColor;
}

/* Schriftzüge */
.effekt-titel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; white-space: nowrap; line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif; font-weight: 900;
}
.effekt-titel span { display: inline-block; }
.titel-skues .zeile-0 { font-size: min(12vh, 8vw); }
.titel-skues .zeile-1 { font-size: min(27vh, 19vw); letter-spacing: .02em; }
.titel-skues .zeile-1 span {
  background: linear-gradient(180deg, #fffbe0 0%, #ffd84d 42%, #c7860f 52%, #ffe78f 78%, #fff3c4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #5c3300;
  filter: drop-shadow(0 0 14px rgba(255, 196, 50, .95)) drop-shadow(0 5px 3px rgba(0, 0, 0, .7));
}
.titel-vogel { top: 28%; }
.titel-vogel .zeile-0 { font-size: min(17vh, 11vw, calc(130vw / var(--n))); }
.titel-vogel .zeile-1 { font-size: min(10vh, 7vw); }
.titel-vogel .zeile-0 span { color: #fff; -webkit-text-stroke: 2px #7a0000; text-shadow: 0 0 18px rgba(255, 30, 30, .95), 0 4px 3px rgba(0, 0, 0, .8); }
.titel-vogel .zeile-1 span { color: #ff3b30; -webkit-text-stroke: 1.5px #fff; text-shadow: 0 0 14px rgba(255, 0, 0, .9), 0 3px 3px rgba(0, 0, 0, .9); }

/* Vogel abgestochen */
.flug .karte.effekt-sieger { box-shadow: 0 0 0 3px #ff3b30, 0 0 24px 8px rgba(255, 50, 40, .85); }
.effekt-hieb {
  position: absolute; left: 0; top: 0; height: 6px; border-radius: 3px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 25%, #fff 75%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 10px 3px rgba(255, 70, 50, .9), 0 0 24px 8px rgba(255, 30, 30, .6);
}
.haelfte-a { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.haelfte-b { clip-path: polygon(0 0, 0 100%, 100% 100%); }
.effekt-feder {
  position: absolute; left: 0; top: 0;
  width: calc(var(--kw-mitte) * .2); height: calc(var(--kw-mitte) * .64);
  margin: calc(var(--kw-mitte) * -.32) 0 0 calc(var(--kw-mitte) * -.1);
  border-radius: 80% 20% 70% 30% / 60% 60% 40% 40%;
  background:
    linear-gradient(90deg, transparent 47%, var(--kiel) 47% 53%, transparent 53%),
    repeating-linear-gradient(160deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 5px),
    var(--f);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  opacity: .95;
}
.effekt-tier {
  position: absolute; left: 0; top: 0; width: 1.2em; height: 1.2em; margin: -.6em 0 0 -.6em;
  font-size: calc(var(--kh-mitte) * .6); line-height: 1.2; text-align: center;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6));
}
