/* ==========================================================================
   sozial/sozial.css · Reagieren (Knopf, Leiste, Blatt), Würfe-Auswahl, Shop
   Stand 27.09.2026 · Claude · Grundlage SOCIAL_KONZEPT §3, §4, §5.7
   Braucht ui/tokens.css und ui/komponenten.css davor (Blatt, Knopf, Wahl).
   Nur Tokens: keine Farbwerte, kein data-theme, kein Theme-Name.
   Tippziele mindestens --touch-min (48 px), Hauptknopf --touch-main (56 px).
   ========================================================================== */

/* ---------- Reagieren-Knopf (oben rechts in der Bühne) ---------- */
.reagieren {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  place-items: center;
  width: auto;
  min-width: var(--touch-min);
  height: var(--touch-min);
  padding: 0 .75rem;
  border: 0;
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
  cursor: pointer;
}
.reagieren .sym { width: var(--k-icon-l); height: var(--k-icon-l); }
.reagieren[aria-expanded="true"] { background: var(--c-primary); color: var(--c-on-primary); box-shadow: none; }
@media (hover: hover) { .reagieren:hover { box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w-strong) var(--c-text); } }

/* ---------- Leiste beim Bieten: innerhalb des Saals, nie über der Handlungszone ---------- */
.reagieren-leiste {
  position: absolute;
  z-index: 21;
  left: var(--space-1);
  right: calc(var(--touch-min) + var(--space-2));
  top: var(--space-1);
  max-height: calc(100% - var(--space-2));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
}
.reagieren-leiste[hidden] { display: none; }
.reagieren-leiste__reihe {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.reagieren-leiste__reihe > * { scroll-snap-align: start; }
.reagieren-leiste[data-gesperrt] .reagieren-leiste__reihe:not(:first-child) { display: none; }
.reagieren-leiste[data-gesperrt] [data-emote] { display: none; }
.reagieren-leiste__grund {
  margin: 0;
  padding: 0 var(--space-2);
  color: var(--c-text);
  font: var(--fw-strong) var(--fs-hint)/var(--lh-ui) var(--font-ui);
}
.reagieren-leiste__grund:empty { display: none; }
.reagieren-feld,
.wurfwahl--kompakt .wurfwahl__ding,
.wurfwahl--kompakt .wurfwahl__ziel {
  flex: none;
  display: grid;
  place-items: center;
  min-width: var(--touch-min);
  height: var(--touch-min);
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: none;
  color: var(--c-text);
  cursor: pointer;
}
.reagieren-feld .sym { width: var(--k-icon-l); height: var(--k-icon-l); }
.reagieren-feld[aria-disabled="true"],
.wurfwahl__ding[aria-disabled="true"],
.wurfwahl__ziel[aria-disabled="true"],
.chatblatt__satz[aria-disabled="true"],
.chatblatt__emote[aria-disabled="true"] { color: var(--c-muted); background: var(--c-track); cursor: not-allowed; }
@media (hover: hover) {
  .reagieren-feld:not([aria-disabled="true"]):hover,
  .wurfwahl__ding:not([aria-disabled="true"]):hover,
  .wurfwahl__ziel:not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 var(--border-w) var(--c-edge); }
}
.reagieren-feld:focus-visible,
.wurfwahl__ding:focus-visible,
.wurfwahl__ziel:focus-visible,
.reagieren-leiste__zu:focus-visible { outline-offset: calc(var(--focus-w) * -1); }

/* ---------- Würfe-Auswahl ---------- */
.wurfwahl { display: grid; gap: var(--space-2); min-width: 0; }
.wurfwahl__status { margin: 0; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--c-muted); min-height: calc(var(--fs-small) * var(--lh-ui)); }
.wurfwahl__dinge {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: var(--space-2);
}
.wurfwahl__ding {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 72px;
  padding: var(--space-1);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
  font: var(--fw-strong) var(--fs-hint)/1.15 var(--font-ui);
  text-align: center;
  cursor: pointer;
}
.wurfwahl__svg { width: 30px; height: 30px; }
.wurfwahl__name { hyphens: manual; overflow-wrap: anywhere; max-width: 100%; }
/* i18n: Deutsch trennt über &shy; (wuerfe.js, shop.js), die anderen Sprachen tragen lang am Namen und trennen selbst */
.wurfwahl__name[lang], .shop__name[lang] { -webkit-hyphens: auto; hyphens: auto; }
.wurfwahl__ding[aria-disabled="true"] .wurfwahl__svg { opacity: .55; }
/* Abklingzeit als Füllbalken (Zeitanzeige, läuft auch bei "reduziert") */
.wurfwahl__abkling {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.wurfwahl__abkling--laeuft { animation: ww-abkling linear forwards; }
@keyframes ww-abkling { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.wurfwahl__ziele { display: grid; gap: var(--space-2); }
.wurfwahl__ziele[hidden], .wurfwahl__dinge[hidden] { display: none; }
.wurfwahl__frage { margin: 0; font: var(--fw-strong) var(--fs-body)/var(--lh-ui) var(--font-ui); }
.wurfwahl__liste { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wurfwahl__ziel {
  display: inline-grid;
  align-content: center;
  min-height: var(--touch-min);
  padding: var(--space-1) var(--space-3);
  border: var(--border-w) solid var(--c-primary);
  border-radius: var(--radius-btn);
  background: var(--c-surface);
  color: var(--c-primary);
  font: var(--fw-strong) var(--fs-body)/var(--lh-ui) var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.wurfwahl__ziel--zurueck { border-color: var(--c-muted); color: var(--c-text); }
.wurfwahl__ziel[aria-disabled="true"] { border-color: var(--c-track); }
.wurfwahl__zusatz { display: block; font-size: var(--fs-hint); font-weight: 400; color: var(--c-muted); }
.wurfwahl__leer { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }
/* kompakt (Leiste): Dinge als Symbolreihe, Namen nur für Screenreader */
.wurfwahl--kompakt { display: contents; }
.wurfwahl--kompakt .wurfwahl__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wurfwahl--kompakt .wurfwahl__dinge,
.wurfwahl--kompakt .wurfwahl__liste { display: flex; flex-wrap: nowrap; gap: 2px; }
.wurfwahl--kompakt .wurfwahl__ziele { display: flex; align-items: center; gap: 2px; }
.wurfwahl--kompakt .wurfwahl__ziele[hidden] { display: none; }
.wurfwahl--kompakt .wurfwahl__frage { flex: none; padding: 0 var(--space-1); font-size: var(--fs-hint); }
.wurfwahl--kompakt .wurfwahl__ding { position: relative; min-height: 0; box-shadow: none; }
.wurfwahl--kompakt .wurfwahl__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wurfwahl--kompakt .wurfwahl__svg { width: 28px; height: 28px; }
.wurfwahl--kompakt .wurfwahl__ziel { width: auto; padding: 0 var(--space-3); border: var(--border-w) solid var(--c-primary); color: var(--c-primary); font: var(--fw-strong) var(--fs-hint)/1.1 var(--font-ui); white-space: nowrap; }
.wurfwahl--kompakt .wurfwahl__ziel--zurueck { border-color: var(--c-muted); color: var(--c-text); }
.wurfwahl--kompakt .wurfwahl__zusatz { display: none; }

/* ---------- Blatt "Reagieren" ---------- */
.chatblatt .blatt__karte { max-height: min(78%, 620px); align-content: start; }
.chatblatt__reiter {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  scrollbar-width: thin;
}
.chatblatt__tab,
.shop__tab {
  flex: none;
  min-height: var(--touch-min);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-chip);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-edge);
  font: var(--fw-strong) var(--fs-small)/1 var(--font-ui);
  cursor: pointer;
  white-space: nowrap;
}
.chatblatt__tab[aria-selected="true"],
.shop__tab[aria-selected="true"] { background: var(--c-primary); color: var(--c-on-primary); box-shadow: none; }
/* Fokusring innen: die Reiterleiste scrollt (overflow) und hätte ihn oben abgeschnitten (QA 27.09., wie editor.css) */
.chatblatt__tab:focus-visible,
.shop__tab:focus-visible { outline-offset: calc(var(--focus-w) * -1 - 1px); }
.chatblatt__panel { display: grid; gap: var(--space-3); min-height: 0; }
.chatblatt__panel[hidden] { display: none; }
.chatblatt__grund { margin: 0; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--c-muted); }
.chatblatt__saetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: var(--space-2); }
.chatblatt__satz {
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  border: var(--border-w) solid var(--c-primary);
  border-radius: var(--radius-btn);
  background: var(--c-surface);
  color: var(--c-primary);
  font: var(--fw-strong) var(--fs-body)/var(--lh-ui) var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.chatblatt__satz[aria-disabled="true"] { border-color: var(--c-track); }
.chatblatt__emotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.chatblatt__emote {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  min-height: 72px;
  padding: var(--space-2);
  border: 0;
  border-radius: var(--radius-card);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
  font: var(--fw-strong) var(--fs-hint)/1.15 var(--font-ui);
  cursor: pointer;
}
.chatblatt__emote .sym { width: 28px; height: 28px; }
.chatblatt__unter { margin: var(--space-2) 0 0; font: var(--fw-strong) var(--fs-hint)/var(--lh-ui) var(--font-ui); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--c-muted); }
.chatblatt__protokoll { margin: 0; padding: 0 0 0 var(--space-5); display: grid; gap: 2px; font-size: var(--fs-small); line-height: var(--lh-ui); }
.chatblatt__leer { color: var(--c-muted); list-style: none; margin-left: calc(var(--space-5) * -1); }
.chatblatt__wer { font-weight: var(--fw-strong); }
.chatblatt__personen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.chatblatt__person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-line);
}
.chatblatt__name { font-weight: var(--fw-strong); min-width: 0; overflow-wrap: anywhere; }
.chatblatt__zusatz { font-weight: 400; font-size: var(--fs-hint); color: var(--c-muted); }
.chatblatt__aktionen { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chatblatt__aktionen .knopf--neben { gap: var(--space-1); font-size: var(--fs-small); }
.chatblatt__stumm[aria-pressed="true"] { background: var(--c-track); color: var(--c-text); border-color: var(--c-muted); }
.chatblatt__melden { display: grid; gap: var(--space-3); }
.chatblatt__gruende { display: grid; gap: var(--space-1); }
.chatblatt__grundwahl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: 0 var(--space-2);
  border-radius: var(--radius-field);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-line);
  cursor: pointer;
}
.chatblatt__grundwahl input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-primary); flex: none; }
.chatblatt__hinweis, .chatblatt__danke { margin: 0; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--c-muted); }
.chatblatt__danke { color: var(--c-text); font-weight: var(--fw-strong); }
.chatblatt__knoepfe { display: grid; gap: var(--space-2); }

/* Emote-Marke über dem Kopf (Effekt-Ebene des Saals) */
.emote-marke {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -28px 0 0 -14px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
}
.emote-marke .sym { width: 20px; height: 20px; }


/* ==========================================================================
   Shop
   ========================================================================== */
.shop { display: grid; gap: var(--space-3); min-width: 0; }
.shop__kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--touch-min); }
.shop__titel { margin: 0; font: var(--fw-display) var(--fs-title)/var(--lh-tight) var(--font-display); }
.shop__saldo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0 var(--space-3);
  min-height: 36px;
  border-radius: var(--radius-chip);
  background: var(--c-surface);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-edge);
  font: var(--fw-heavy) var(--fs-banner)/1 var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
}
.shop__saldo[hidden], .shop__gast[hidden] { display: none; }
.shop__gast { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; padding: var(--space-3); border-radius: var(--radius-card); background: var(--c-surface); box-shadow: inset 0 0 0 var(--border-w) var(--c-edge); font-size: var(--fs-small); line-height: var(--lh-ui); }
.shop__gast .sym { margin-top: 2px; }
.shop__vorschau {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--space-2);
  min-height: 224px;
  padding: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--c-bg);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-line);
}
.shop__figur { line-height: 0; }
.shop__marke-anprobe { margin: 0; font: var(--fw-strong) var(--fs-hint)/1 var(--font-ui); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--c-muted); }
.shop__klein { margin: 0; font-size: var(--fs-hint); line-height: var(--lh-ui); color: var(--c-muted); text-align: center; max-width: 42ch; }
.shop__titelzeile { margin: 0; }
.shop__plakette {
  display: inline-block;
  padding: 3px var(--space-2);
  border-radius: var(--radius-chip);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-edge);
  font: var(--fw-strong) var(--fs-hint)/1.2 var(--font-ui);
  text-align: center;
}
.shop__hammerbuehne {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 64px;
}
.shop__pult { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 16px; border-radius: var(--radius-card); background: var(--c-surface); box-shadow: inset 0 var(--border-w) 0 var(--c-accent-line), inset 0 0 0 var(--border-w) var(--c-edge); }
.shop__hfx { position: absolute; left: 50%; top: 18px; width: 44px; height: 44px; margin-left: -22px; }
.shop__hammersym { width: 40px; height: 40px; color: var(--c-accent-line); stroke-width: var(--icon-stroke); position: relative; }
.shop__hammerbuehne .shop__hammersym { align-self: start; margin-top: 2px; }
.shop__titelsym { width: 40px; height: 40px; color: var(--c-muted); }
.shop__reiter {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  scrollbar-width: thin;
}
.shop__panel { display: grid; gap: var(--space-2); min-width: 0; }
.shop__panel:focus { outline: none; }
.shop__hinweis { margin: 0; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--c-muted); }
.shop__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
.shop__kachel {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-1);
  min-height: 132px;
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-card);
  background: var(--c-surface);
  box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w) var(--c-edge);
  cursor: pointer;
  text-align: center;
}
.shop__kachel:has(.shop__input:checked) { box-shadow: var(--shadow-card), inset 0 0 0 var(--border-w-strong) var(--c-primary); }
.shop__kachel:has(.shop__input:focus-visible) { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-w); }
.shop__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.shop__bild { display: grid; place-items: center; width: 72px; height: 72px; line-height: 0; }
.shop__bild .shop__plakette { line-height: 1.2; max-width: 88px; }
.shop__name { font: var(--fw-strong) var(--fs-hint)/1.2 var(--font-ui); overflow-wrap: anywhere; hyphens: manual; }
.shop__marke {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: var(--fw-strong) var(--fs-hint)/1 var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--c-muted);
}
.shop__marke--besitz { color: var(--c-primary); font-family: var(--font-ui); }
/* Gemalt (e4, 04.10.2026): ruhiges Abzeichen je Kachel, nur bei gemalter Figur. Beide leise (heute sind die meisten
   Artikel nur klassisch, das Raster soll ruhig bleiben): «gemalt» mit feiner Linie und Pinsel, «nur klassisch» mit
   gestrichelter Linie und durchgestrichenem Pinsel (nicht über Farbe unterschieden). Der ganze Satz steht vor dem Kauf. */
.shop__gemalt {
  display: inline-block;                    /* Symbol fliesst mit dem Text: in schmalen Kacheln zentriert umbrechen */
  max-width: 100%;
  padding: 1px var(--space-1);
  border-radius: var(--radius-chip);
  box-shadow: inset 0 0 0 var(--border-w) var(--c-line);
  font: var(--fw-strong) var(--fs-hint)/var(--lh-ui) var(--font-ui);
  color: var(--c-muted);
  text-align: center;
}
.shop__gemalt--klassisch { box-shadow: none; outline: var(--border-w) dashed var(--c-muted); outline-offset: calc(var(--border-w) * -1); }
.shop__gemalt .sym { vertical-align: -0.2em; margin-right: 2px; }
.shop__grund--gemalt { align-items: flex-start; }
.shop__grund--gemalt .sym, .shop__gemalt-zeile .sym { flex: none; margin-top: 2px; }
.shop__gemalt-zeile { display: flex; gap: var(--space-1); align-items: flex-start; justify-content: center; }
/* P07 (v11 w3, 09.10.2026): vor dem Kauf deutlich «Nur im klassischen Stil» als eigener Block (gestrichelt wie das Abzeichen,
   nicht nur über Farbe unterschieden), Titel fett, danach der Grund */
.shop__stil {
  display: flex; gap: var(--space-1); align-items: flex-start; margin: 0;
  padding: var(--space-2); border-radius: var(--radius-card);
  outline: var(--border-w) dashed var(--c-muted); outline-offset: calc(var(--border-w) * -1);
  background: var(--c-surface); color: var(--c-text); font-size: var(--fs-small); line-height: var(--lh-ui);
}
.shop__stil .sym { flex: none; margin-top: 2px; }
.shop__stil-text { margin: 0; }
.shop__stil-titel { font-weight: var(--fw-strong); }
.shop__kachel[data-zustand="gast"] .shop__bild,
.shop__kachel[data-zustand="offen"] .shop__bild { opacity: .85; }
.shop__handlung {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0 max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--c-bg);
  box-shadow: var(--shadow-raised), 0 calc(var(--border-w) * -1) 0 var(--c-line);
}
.shop__zeile { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: 0; font: var(--fw-strong) var(--fs-banner)/var(--lh-ui) var(--font-ui); }
.shop__zeile--ruhig { font-weight: 400; font-size: var(--fs-small); color: var(--c-muted); }
.shop__preis { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; }
.shop__grund { display: flex; gap: var(--space-1); align-items: center; margin: 0; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--c-text); }
.shop__handlung .knopf--neben { gap: var(--space-1); justify-self: start; }

/* ==========================================================================
   UX-Nacht 06.10.2026 · Paket C · Konto-Schirme und Profil (screens/konto.js)
   Hier statt in bildschirme10.css (Eigentum Paket C in dieser Nacht); Selektoren mit zwei Klassen, damit sie
   unabhängig von der Ladefolge gelten. Nur Tokens.
   ========================================================================== */
/* U64: Kopf der Konto-Schirme wächst mit einem zweizeiligen Titel (wie start.css .start-seite > .losleiste), statt ihn
   oben abzuschneiden; lange Wörter («Wiederherstellungscode») mit Trennstrich nach der Sprache von <html lang> */
.b10--konto > .b10__kopf { height: auto; min-height: var(--k-kopf-h); padding-block: var(--space-1); }
.b10--konto > .b10__kopf .losleiste__titel { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* U57: allgemeine Fehler stehen beim Absende-Knopf; leer ohne Platz */
.b10__karte .b10__formfehler:empty { min-height: 0; }
.b10__karte .b10__formfehler:empty::before { content: none; }
/* U58: «Passwort anzeigen» unter dem Passwortfeld */
.b10--konto .b10__pwzeigen, .b10-profil .b10__pwzeigen { margin-top: calc(var(--space-2) * -1); }
/* U04: Rückfrage auf dem Code-Schirm, Willkommensgabe */
.b10--konto .b10__codefrage .stapel { grid-column: 1 / -1; margin-top: var(--space-2); }
.b10--konto .b10__willkommen { margin: 0; color: var(--c-muted); }
/* U63: endgültiges Löschen als Gefahr-Knopf (umrandet in Warnfarbe), nicht wie die Hauptaktion */
.knopf.knopf--gefahr { --ton: var(--c-warn); gap: var(--space-1); }
/* U71 (v11 w3, 09.10.2026): eigene Figur im Profil-Blatt mit gekauftem Rahmen (screens/konto.js profilFigur, lib/rahmen.js) */
.b10-profil__figur { display: flex; justify-content: center; }
.b10-profil__bild { display: block; width: 112px; height: 112px; border-radius: var(--radius-card); overflow: hidden; background: var(--c-surface); box-shadow: inset 0 0 0 var(--border-w) var(--c-line); }
.b10-profil__bild > svg.figur { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   v12.2 Paket K3 · Sammlung (E25), Fortschritt (E23), Einschub am Ende, Profil
   Ruhig: keine Glanz-, Seltenheits- oder Gewinnfarben, keine Animation. Fehlende Karten nur als grauer Umriss.
   ========================================================================== */
.k3-blatt .blatt__karte { max-height: min(92vh, 980px); }
.k3-blatt__inhalt { overflow-y: auto; min-height: 0; }
.k3-zaehler { font-weight: var(--fw-strong); color: var(--c-text); }
.k3-abholen { gap: var(--space-2); }
.k3-abholen .knopf { justify-self: start; }
.k3-auswahl { max-width: 100%; }
.k3-regel { display: flex; gap: var(--space-1); align-items: flex-start; font-size: var(--fs-hint); color: var(--c-muted); }
.k3-schalter { margin-top: var(--space-2); }
/* Reiter: «Was ich habe» und je Kategorie, waagrecht wischbar */
.k3-reiter { display: flex; gap: var(--space-1); overflow-x: auto; padding-bottom: var(--space-1); scrollbar-width: thin; }
.k3-reiter__knopf {
  flex: none; min-height: var(--touch-min); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-chip);
  background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-small); cursor: pointer;
  box-shadow: inset 0 0 0 var(--border-w) var(--c-line);
}
.k3-reiter__knopf[aria-selected="true"] { background: var(--c-primary-bg); box-shadow: inset 0 0 0 calc(var(--border-w) * 2) var(--c-primary); font-weight: var(--fw-strong); }
.k3-reiter__knopf:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
/* Raster der Karten */
.k3-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--space-3); }
.k3-karte { display: grid; gap: var(--space-1); min-width: 0; align-content: start; }
.k3-karte__figur { margin: 0; display: grid; gap: var(--space-1); }
.k3-karte__bild { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-card); background: var(--c-surface); box-shadow: inset 0 0 0 var(--border-w) var(--c-line); }
.k3-karte__bild--ohne { display: grid; place-items: center; color: var(--c-muted); }
.k3-karte__text { display: grid; gap: 2px; font-size: var(--fs-small); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.k3-karte__titel { color: var(--c-text); font-weight: var(--fw-strong); }
.k3-karte__kat, .k3-karte__tag { color: var(--c-muted); font-size: var(--fs-hint); }
.k3-karte .bildnachweis__kurz { font-size: var(--fs-hint); margin: 0; }
/* grauer Umriss einer fehlenden Karte (Platzhalter bis codex/sammlung_umrisse_20261014/) */
.k3-umriss {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: var(--radius-card);
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--c-muted) 8%, transparent) 10px 12px);
  box-shadow: inset 0 0 0 calc(var(--border-w) * 2) color-mix(in srgb, var(--c-muted) 45%, transparent);
  filter: grayscale(1);
}
.k3-umriss__kat { font-size: var(--fs-hint); color: var(--c-muted); padding: var(--space-1); text-align: center; }
/* Fortschritt */
.k3-teil { padding-top: var(--space-2); border-top: var(--border-w) solid var(--c-line); }
.k3-teil .etikett { display: flex; align-items: center; gap: var(--space-1); margin: 0; }
.k3-auge, .k3-schritte, .k3-abzeichen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.k3-auge__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-2); align-items: center; }
.k3-auge__kat { font-weight: var(--fw-strong); }
.k3-auge__stufe, .k3-auge__zahl { font-size: var(--fs-small); color: var(--c-muted); }
.k3-auge__zahl { grid-column: 1 / -1; }
.k3-stufe { display: inline-flex; gap: 4px; }
.k3-stufe__punkt { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 var(--border-w) var(--c-edge); }
.k3-stufe__punkt--an { background: var(--c-primary); box-shadow: none; }
.k3-klapp { justify-self: start; }
.k3-klapp[aria-expanded="true"] .sym { transform: rotate(90deg); }
.k3-schritt { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; min-height: var(--touch-min); }
.k3-schritt__haken { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; box-shadow: inset 0 0 0 var(--border-w) var(--c-edge); }
.k3-schritt--da .k3-schritt__haken { background: var(--c-good-bg); color: var(--c-good); box-shadow: none; }
.k3-schritt__lohn { font-size: var(--fs-small); color: var(--c-muted); }
.k3-abzeichen-liste { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.k3-abzeichen { display: grid; justify-items: center; text-align: center; gap: 2px; padding: var(--space-2); border-radius: var(--radius-card); background: var(--c-surface); box-shadow: inset 0 0 0 var(--border-w) var(--c-line); }
.k3-abzeichen__bild { width: 64px; height: 64px; filter: grayscale(1); opacity: .45; }
.k3-abzeichen--da .k3-abzeichen__bild { filter: none; opacity: 1; }
.k3-abzeichen__name { font-weight: var(--fw-strong); font-size: var(--fs-small); }
.k3-abzeichen__regel, .k3-abzeichen__stand { font-size: var(--fs-hint); color: var(--c-muted); }
/* Profil */
.k3-profil { gap: var(--space-2); padding-top: var(--space-2); border-top: var(--border-w) solid var(--c-line); }
.k3-profil .knopf { justify-self: start; }
/* Einschub am Ende (K1 stylt .ende-einschub): Text und leiser Knopf nebeneinander, schmal untereinander */
.k3-einschub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.k3-einschub__text { margin: 0; flex: 1 1 14rem; }
/* Personenblatt: Knopf «Sammlung» */
.chatblatt__sammlung span { white-space: nowrap; }

/* v12.2 Kuerzel Z (E25 Nachtrag 14.10. 22:30): Enthuellung der abgeholten Karte – dreht sich auf, leuchtet kurz auf (screens/sammlung.js).
   Mit «Bewegung reduzieren» (System oder Schalter data-motion) ohne Bewegung, nur der ruhige Rahmen. */
.k3-enthuellung { position: relative; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-card); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c-primary) 16%, transparent), transparent 72%); overflow: hidden; }
.k3-enthuellung__titel { margin: 0; }
.k3-enthuellung__karte { width: min(220px, 72%); grid-template-columns: minmax(0, 1fr); perspective: 900px; }
.k3-enthuellung__karte > .k3-karte { animation: k3-aufdrehen 900ms cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 50%; backface-visibility: hidden; }
.k3-enthuellung::after { content: ""; position: absolute; inset: var(--space-2); border-radius: var(--radius-card); pointer-events: none; animation: k3-aufleuchten 1100ms ease-out 450ms both; }
@keyframes k3-aufdrehen { 0% { transform: rotateY(180deg) scale(.82); opacity: 0; } 35% { opacity: 1; } 100% { transform: rotateY(0deg) scale(1); opacity: 1; } }
@keyframes k3-aufleuchten { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-primary) 55%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
@media (prefers-reduced-motion: reduce) { .k3-enthuellung__karte > .k3-karte, .k3-enthuellung::after { animation: none; } }
[data-motion="reduce"] .k3-enthuellung__karte > .k3-karte, [data-motion="reduce"] .k3-enthuellung::after, .k3-enthuellung--ruhig .k3-karte, .k3-enthuellung--ruhig::after { animation: none; }

/* v12.2 Kuerzel Z: graue Kategorie-Umrisse von Codex (CX-217, codex/sammlung_umrisse_20261014/assets/160, Pins geprueft) statt der Schraffur;
   nur Bild je Kategorie (keine Karte erkennbar), Name der Kategorie bleibt unten im Feld. */
.k3-karte--umriss[data-kategorie] .k3-umriss { place-items: end center; background-repeat: no-repeat; background-position: center 42%; background-size: 62%; }
.k3-karte--umriss[data-kategorie="autos"] .k3-umriss { background-image: url("/public/icons/umrisse/autos.webp"); }
.k3-karte--umriss[data-kategorie="dnid-taschen"] .k3-umriss { background-image: url("/public/icons/umrisse/dnid-taschen.webp"); }
.k3-karte--umriss[data-kategorie="dnid-uhren"] .k3-umriss { background-image: url("/public/icons/umrisse/dnid-uhren.webp"); }
.k3-karte--umriss[data-kategorie="kamera-kits"] .k3-umriss { background-image: url("/public/icons/umrisse/kamera-kits.webp"); }
.k3-karte--umriss[data-kategorie="kunst"] .k3-umriss { background-image: url("/public/icons/umrisse/kunst.webp"); }
.k3-karte--umriss[data-kategorie="leitz-fotoklassiker"] .k3-umriss { background-image: url("/public/icons/umrisse/leitz-fotoklassiker.webp"); }
.k3-karte--umriss[data-kategorie="pokemon"] .k3-umriss { background-image: url("/public/icons/umrisse/pokemon.webp"); }
.k3-karte--umriss[data-kategorie="taschen"] .k3-umriss { background-image: url("/public/icons/umrisse/taschen.webp"); }
.k3-karte--umriss[data-kategorie="uhren"] .k3-umriss { background-image: url("/public/icons/umrisse/uhren.webp"); }
.k3-karte--umriss[data-kategorie="villen"] .k3-umriss { background-image: url("/public/icons/umrisse/villen.webp"); }

/* ---------- v12.2 N2 (E20): Faktenblock je Teil im Shop/in der Garderobe (sozial/shop_fakten.js) ---------- */
.n2-fakten {
  margin: 0;
  display: grid;
  gap: 2px var(--space-2);
  grid-template-columns: max-content minmax(0, 1fr);
  font-size: var(--fs-hint);
  line-height: var(--lh-ui);
  color: var(--c-muted);
}
.n2-fakten__zeile { display: contents; }
.n2-fakten__label { margin: 0; font-weight: var(--fw-strong); }
.n2-fakten__wert { margin: 0; color: var(--c-text); overflow-wrap: anywhere; }
