/* Fetzerei um Wien – Sammlung (alle Karten, Verlauf), Packerl-Fach, Einsatz */

/* fehlende Karten: sichtbar, aber ausgegraut; eigene in vollen Farben */
.kachel.fehlt .karte { filter: grayscale(.9) brightness(.62) contrast(.85); opacity: .7; }
.kachel.fehlt:hover .karte { filter: grayscale(.6) brightness(.8); opacity: .9; }
.kachel.verloren .karte { filter: grayscale(.85) brightness(.55) sepia(.25); }
.weg-marke { position: absolute; top: 6px; left: -4px; font-family: 'CW Dick', monospace; font-size: 16px; background: var(--rot); color: var(--papier);
  padding: 2px 8px 4px; transform: rotate(-8deg); box-shadow: 0 0 0 2px var(--tinte); }
/* Marken sitzen in den oberen Ecken des Bildfensters (Fenster 13..45 x 14..46 von 58x72), damit Name und Zahlen frei bleiben */
.herkunft-marke { position: absolute; top: calc(15px * var(--k, 2)); right: calc(14px * var(--k, 2)); font-size: 16px; line-height: 1; padding: 2px 4px 3px; box-shadow: 0 0 0 2px var(--tinte); }
.kachel .anzahl-marke { left: calc(14px * var(--k, 2)); bottom: auto; top: calc(15px * var(--k, 2)); padding: 1px 4px 3px; }
.herkunft-marke.tour { background: var(--gold); color: var(--tinte); }
.herkunft-marke.packerl { background: var(--blau); color: var(--papier); }
.detail .gross.fehlt .karte { filter: grayscale(.9) brightness(.7); }
.herkunft-text.tour { color: var(--gold); }
.herkunft-text.packerl { color: #9cc3ef; }

/* Verlauf */
.verlauf { display: grid; gap: 4px; margin-top: 8px; }
.verlauf-zeile { display: grid; grid-template-columns: 24px 32px 1fr auto auto; align-items: center; gap: 12px; padding: 6px 10px; text-align: left; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--papier); background: var(--tisch-2); border: 0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); min-height: 48px; }
.verlauf-zeile:hover { background: var(--tisch-3); }
.verlauf-zeile .vz { font-family: 'CW Dick', monospace; font-size: 32px; line-height: 1; }
.verlauf-zeile.plus .vz { color: var(--gold-hell); }
.verlauf-zeile.minus .vz { color: #ffb4b4; }
.verlauf-zeile.minus { background: #33201f; }
.verlauf-zeile.minus:hover { background: #422826; }
.verlauf-zeile .vname { font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verlauf-zeile .vgrund { color: var(--text-leise); }
.verlauf-zeile .vdatum { color: var(--text-leise); }
@media (max-width: 560px) {
  .verlauf-zeile { grid-template-columns: 24px 32px 1fr auto; }
  .verlauf-zeile .vgrund { grid-column: 3 / span 2; grid-row: 2; }
}
.umbenennen { display: grid; gap: 8px; }

/* Packerl-Fach */
.fach { border-top: 0; padding-top: 4px; }
.fach-reihe { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.fach-packerl { display: flex; gap: 12px; align-items: center; }
.fach-bild { position: relative; }
.fach-bild canvas { width: 66px; height: 90px; display: block; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .45)); }
.fach-bild .anzahl-marke { left: auto; right: -8px; bottom: -6px; }
.gratis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: #3b3317;
  border: 4px solid transparent; border-image: var(--rahmen-gold) 2 / 4px stretch; background-clip: padding-box; }
.preis { display: inline-flex; align-items: center; gap: 6px; font-family: 'CW Dick', monospace; color: var(--gold-hell); }
.belohnung { margin: 12px 0; text-align: center; }
.belohnung .fach-reihe { justify-content: center; }

/* Einsatz */
.einsatz-wahl { display: grid; gap: 10px; margin-bottom: 8px; }
.einsatz-kasten { padding: 10px 14px; margin: 8px 0; background: var(--tisch); text-align: center;
  border: 4px solid transparent; border-image: var(--rahmen-gold2) 2 / 4px stretch; background-clip: padding-box; }
.einsatz-karten { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0; }

/* Kartenwahl: schon im Besitz / neu */
.besitz-marke { position: absolute; top: -8px; right: -8px; font-family: 'CW Dick', monospace; font-size: 16px; line-height: 1; background: var(--tinte); color: var(--papier);
  padding: 3px 6px 5px; box-shadow: 0 0 0 2px var(--gold); z-index: 1; }
.kachel .neu-marke { z-index: 1; }

/* Mein Konto */
.kartei-seite .wer { margin: 0 0 8px; font-size: 32px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.kartei-seite .wer .link { font-size: 32px; }
.codefeld { font-family: 'CW Dick', monospace; font-size: 48px !important; letter-spacing: 8px; max-width: 280px; }
.lokal-hinweis { border: 2px dashed var(--gold); padding: 6px 10px; }
.konto-inhalt .klein { font-size: 16px; }
.konto-inhalt .gefahr summary { cursor: pointer; color: var(--text-leise); }
.rechtliches { margin-top: 24px; font-size: 16px; color: var(--text-leise); }
.rechtliches a { color: var(--text-leise); }

/* Hinweis oben */
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; font-size: 32px;
  background: var(--tisch-2); color: var(--papier); border: 4px solid transparent; border-image: var(--rahmen-gold) 2 / 4px stretch; background-clip: padding-box;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35); transition: opacity .4s steps(4); }
.toast.fehler { border-image: var(--rahmen-tinte) 2 / 4px stretch; background: #33201f; }
.toast.weg { opacity: 0; }

/* Mein Konto: vier Reiter passen auch aufs Handy (gleich breit, wenig Innenabstand) */
.kartei-seite > .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kartei-seite > .tabs .tab { padding: 4px 4px 8px; text-align: center; white-space: nowrap; }
@media (min-width: 600px) { .kartei-seite > .tabs { display: flex; gap: 8px; } .kartei-seite > .tabs .tab { padding: 4px 16px 8px; } }
