/* ==========================================================================
   lobby.css · Lobby «1A» (UI-Geruest Nr. 10, 04.10.2026, Claude, Kuerzel c1)
   Vorlage: geprueft klickbarer Prototyp claude/arbeit/v11/lobby/prototyp (css/lobby.css, lobby_tokens.css). Aus den
   Container-Abfragen des Prototyps sind Media-Abfragen geworden:
     < 760 px              eine Spalte: Saal -> Partie -> Ranglisten, Handlung klebt unten
     >= 760 px             zwei Zonen: Saal | Konsole (360 px; ab 1100 px 400 px), Handlung unten in der Konsole
     >= 1240 px            dazu die Serien-Tafel an der Saalwand
     quer, <= 540 px hoch  Saal | Konsole (330 px), Ranglisten ueber den Pokal-Knopf im Kopf
   Auch fuer Ranglisten-Blatt (rl-), Revanche (rv-), Rueckmeldung (rm-) und Einfuehrung (ef-).
   Regeln wie THEMING.md §3: nur --c-*, --g-*, --saal-*, --figur-* (raum_tokens.css), Ebene-1- und Struktur-Tokens;
   kein [data-theme], kein Theme-Name, keine Rohfarben. Die Look-Unterschiede des Prototyps (lobby_tokens.css) kommen
   aus vorhandenen Tokens: freier Platz rund wie die Bueste (--g-figur-radius), Motiv-Rand wie das Objektbild
   (--g-bild-rand). Kleinste Schrift 14 px, Tippziele >= 44 px (Hauptknopf --touch-main).
   ========================================================================== */

/* ---------------------------------------------------------------- Rahmen in der App */
.app:has(> .app__haupt > .lb) { max-width: none; }
.app__haupt > .bildschirm.lb { min-height: 100vh; min-height: 100dvh; }
.lb {
  --lb-kopf-h: 56px;
  --lb-ich-h: min(232px, 29vh);
  --lb-sitz-h: 56px;
  --lb-konsole-w: 360px;
  --lb-podest: color-mix(in oklab, var(--saal-boden) 72%, var(--c-shadow));
  --lb-leer-radius: var(--g-figur-radius);
  --lb-motiv-rand: var(--g-bild-rand);
  --lb-gutter: var(--gutter, 16px);
  display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-text);
  overflow-x: clip;
}
.lb[hidden] { display: none !important; }
.lb .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lb h1, .lb h2, .lb h3, .lb p, .lb ul, .lb ol, .lb dl, .lb dd, .lb figure { margin: 0; }
.lb ul, .lb ol { padding: 0; list-style: none; }
.lb svg { display: block; }

/* ---------------------------------------------------------------- Kopf */
.lb-kopf { position: sticky; top: 0; z-index: 20; flex: none; background: var(--c-bg); border-bottom: var(--border-w) solid var(--c-line); }
.lb-kopf__zeile { display: flex; align-items: center; gap: 10px 14px; min-height: var(--lb-kopf-h); padding: 0 var(--lb-gutter); }
.lb-marke { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.lb-marke .sym { width: 22px; height: 22px; color: var(--c-accent-line); }
.lb-marke__wort { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 20px; letter-spacing: .01em; white-space: nowrap; }
/* Marke je Look (Go-Live, d2): Show-Logo als Hintergrund (Tokens --g-logo, --g-marke-h, --g-marke-bild aus raum_tokens.css);
   Hammer und Wort bleiben im Fluss und fuer Screenreader, werden im Look Spielshow nur durchsichtig */
.lb-marke { min-width: calc(var(--g-marke-h, 0px) * 3.75); min-height: var(--g-marke-h, 0px); background: var(--g-logo, none) left center / contain no-repeat; }
.lb-marke > * { opacity: var(--g-marke-bild, 1); }
.lb-kopf__titel { padding-left: 14px; border-left: var(--border-w) solid var(--c-line); font-size: var(--fs-body); font-weight: var(--fw-strong); color: var(--c-muted); white-space: nowrap; }
.lb-kopf__titel:focus { outline: none; }
.lb-kopf__titel:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.lb-code {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px 3px 3px 12px;
  border: var(--border-w) solid var(--g-rand); border-radius: var(--radius-btn); background: var(--c-surface); color: var(--c-text);
  cursor: pointer; font: inherit; font-size: var(--fs-small); white-space: nowrap;
}
.lb-code__wort { color: var(--c-muted); }
.lb-code__code { font-family: var(--font-num); font-size: 20px; font-weight: var(--fw-heavy); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lb-code__einladen { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: max(0px, calc(var(--radius-btn) - 2px)); background: var(--g-cta-a); color: var(--g-on-cta-a); font-weight: var(--fw-heavy); }
.lb-code__einladen .sym { width: 20px; height: 20px; }
.lb-ikon {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: var(--border-w) solid var(--g-rand); border-radius: var(--radius-btn); background: transparent; color: var(--c-text); cursor: pointer;
}
.lb-ikon .sym { width: 22px; height: 22px; }
.lb-kopf__pokal { display: none; }
@media (max-width: 759.98px) {
  .lb-kopf__titel, .lb-code__wort, .lb-code__einladenwort { display: none; }
  .lb-kopf__zeile { gap: 8px; }
  .lb-code { gap: 8px; padding-left: 10px; }
  .lb-code__einladen { padding: 4px 8px; }
}

/* ---------------------------------------------------------------- Raster */
.lb-raster { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "saal" "konsole" "handlung"; flex: 1 0 auto; }
.lb-saal { grid-area: saal; min-width: 0; }
.lb-konsole { grid-area: konsole; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px var(--lb-gutter) 18px; }
.lb-handlung {
  grid-area: handlung; position: sticky; bottom: 0; z-index: 15; min-width: 0;
  display: flex; flex-direction: column; gap: 6px; padding: 10px var(--lb-gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--c-surface); border-top: var(--border-w) solid var(--c-line); box-shadow: var(--shadow-raised);
}
@media (min-width: 760px) {
  .app:has(> .app__haupt > .lb) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; }
  .app:has(> .app__haupt > .lb) > .app__haupt { flex: 1 1 auto; min-height: 0; }
  .app__haupt > .bildschirm.lb { height: 100%; min-height: 0; }
  /* Hoehe der eigenen Figur folgt der Saalhoehe (Kopf, Schild, Knopf und Sitzreihe muessen darunter Platz haben) */
  .lb { --lb-ich-h: clamp(150px, calc(100vh - 56px - 395px), 330px); --lb-sitz-h: 76px; overflow: hidden; }
  .lb-raster { grid-template-columns: minmax(0, 1fr) var(--lb-konsole-w); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "saal konsole" "saal handlung"; flex: 1 1 auto; min-height: 0; }
  .lb-konsole { overflow-y: auto; border-left: var(--border-w) solid var(--c-line); }
  .lb-handlung { position: static; border-left: var(--border-w) solid var(--c-line); box-shadow: none; }
  .lb[data-n="10"] { --lb-ich-h: clamp(130px, calc(100vh - 56px - 470px), 220px); --lb-sitz-h: 52px; }
  .lb[data-n="6"] { --lb-ich-h: clamp(150px, calc(100vh - 56px - 400px), 300px); }
  .lb[data-n="10"] .lb-sitz { width: 104px; padding: 6px 4px; }
}
@media (min-width: 1100px) { .lb { --lb-konsole-w: 400px; } }

/* ---------------------------------------------------------------- Saal */
.lb-saal {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: end; gap: 12px;
  padding: 12px var(--lb-gutter) 16px; color: var(--saal-text); background: var(--saal-wand);
}
.lb-kulisse { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lb-kulisse__wand {
  position: absolute; inset: 0 0 24% 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--saal-paneel-breite) - 1px), var(--saal-fuge) calc(var(--saal-paneel-breite) - 1px) var(--saal-paneel-breite)),
    linear-gradient(transparent 0 66%, var(--saal-fuge) 66% calc(66% + 2px), var(--saal-lambris) calc(66% + 2px) 100%),
    linear-gradient(var(--saal-paneel), var(--saal-wand));
  background-position: center top;
}
.lb-kulisse__licht { position: absolute; left: 12%; right: 12%; top: -20%; bottom: 10%; background: radial-gradient(closest-side, var(--saal-licht), transparent); }
.lb-kulisse__boden {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(var(--saal-boden), color-mix(in oklab, var(--saal-boden) 84%, var(--c-shadow)));
  border-top: var(--border-w) solid var(--saal-fuge); border-radius: var(--saal-boden-radius);
}
.lb-saal__oben { justify-self: stretch; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.lb-saal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.lb-saal__kopf {
  display: inline-flex; flex-wrap: wrap; gap: 0 8px; padding: 3px 12px;
  border: var(--border-w) solid var(--c-line); border-radius: var(--radius-chip); background: var(--c-surface); color: var(--c-text);
  font-size: var(--fs-hint); font-weight: 700; line-height: 1.5;
}
.lb-saal__punkt { color: var(--c-muted); }
.lb-band {
  position: relative; z-index: 3; max-width: 100%; padding: 4px 14px;
  border: var(--border-w) solid var(--c-primary); border-radius: var(--radius-chip);
  background: var(--c-primary-bg); color: var(--c-text); font-size: var(--fs-small); font-weight: 700; text-align: center;
  box-shadow: var(--shadow-card); animation: lb-band-rein var(--motion-reveal, .3s) var(--ease-reveal, ease-out);
}
.lb-band[data-sichtbar="nein"] { display: none; }
@keyframes lb-band-rein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Saal-Reaktionen (Saal-Einbau): nur der Reagieren-Knopf; die Szene selbst ist hier ausgeblendet */
.lb-reaktionen { flex: none; position: relative; z-index: 4; }
.lb-reaktionen .saalhuelle, .lb-reaktionen .saalhuelle__szene { position: static; }
.lb-reaktionen .saal { height: auto; overflow: visible; contain: none; }
.lb-reaktionen .saal__szene, .lb-reaktionen .saal__fx { display: none; }
.lb-reaktionen .saal__aktionen { position: static; }

/* Eigene Figur: gross in der Mitte, auf einem Podest */
.lb-ich { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; max-width: 100%; }
.lb-ich__buehne { position: relative; display: flex; justify-content: center; }
.lb-ich__buehne::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -10px; height: 26px; border-radius: 50%; background: var(--lb-podest); }
.lb-ich__figur { display: block; overflow: hidden; border: 3px solid var(--figur-ring); border-radius: var(--g-figur-radius); background: var(--figur-grund-hell); box-shadow: var(--shadow-card); }
.lb-ich__figur svg { width: auto; height: var(--lb-ich-h); max-width: 100%; }
/* Gemalte Bueste (e5, 04.10.2026): Seit d1 traegt sie die weitere viewBox BUESTE_RAHMEN 10 -1 111 111 (Platz fuer die erhobene
   Kelle, figur_gemalt.js). In der Lobby bleibt die Kelle unten, der Platz rechts und oben bliebe leer: Kopf 5 % links der Mitte,
   Figur rund 10 % kleiner (Browser-Messung belege_e5). Ausgleich nur hier: das SVG 111/100 so gross wie der Rahmen, nach oben
   und rechts verschoben; der Rahmen (Hoehe --lb-ich-h) zeigt genau den Bueste-Ausschnitt 10 4 100 100 wie vor d1, Rahmenmass
   und Layout bleiben gleich. Vektor-Bueste (ohne .figur--gemalt, viewBox 10 4 100 100) unveraendert. */
.lb-ich__figur svg.figur--gemalt {
  height: calc(var(--lb-ich-h) * 1.11);
  max-width: none;
  margin: calc(var(--lb-ich-h) * -0.05) calc(var(--lb-ich-h) * -0.11) calc(var(--lb-ich-h) * -0.06) 0;
}
.lb-ich__schild {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 6px 14px;
  border: var(--border-w) solid var(--c-edge); border-radius: var(--radius-btn); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-card);
}
.lb-ich__name { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.lb-ich__namewort { font-family: var(--g-titel-font); font-weight: var(--g-titel-gewicht); font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.lb-ich__du { font-size: var(--fs-small); color: var(--c-muted); }
.lb-ich__stift { display: none; }
.lb-ich__gestalten { gap: 6px; }

/* v11 n1 (Abschlussbericht z1, 6.9): Bei 1280–1366 px ueberdeckte die Sitzreihe («Platz frei») den Knopf «Figur gestalten».
   --lb-ich-h rechnet mit einem 56 px hohen Kopf und einer niedrigen Sitzreihe; seit der Arena-Kopfleiste (P19) und dem Freiplatz-
   Text mit «Freunde einladen» (P04) bleibt der eigenen Figur weniger Hoehe, ihre Zeile (minmax(0, 1fr)) lief in die Sitzreihe ueber.
   Jetzt ist .lb-ich ein Groessen-Container ueber die ganze Zeile: die Figur ist hoechstens so hoch, wie die Zeile nach Schild,
   Knopf, Abstaenden und Podest (128 px) noch laesst, und nie hoeher als bisher (--lb-ich-max). Niedriges Querformat unveraendert. */
@media (min-width: 760px) and (min-height: 541px) {
  .lb-ich { align-self: stretch; justify-self: stretch; justify-content: center; container-type: size; --lb-ich-max: var(--lb-ich-h); }
  .lb-ich > .lb-ich__buehne { --lb-ich-h: min(var(--lb-ich-max), max(96px, calc(100cqh - 128px))); }
}

/* Die anderen: Sitzreihe vorne im Saal (feste Sitzreihenfolge) */
.lb-reihe { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 8px; width: calc(100% + 2 * var(--lb-gutter)); margin: 0 calc(-1 * var(--lb-gutter)); padding: 4px var(--lb-gutter) 6px; overflow-x: auto; scroll-snap-type: x proximity; }
.lb-reihe:empty { display: none; }
.lb-sitz {
  flex: none; width: 108px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px;
  border: var(--border-w) solid var(--c-line); border-radius: var(--radius-card); background: var(--c-surface); color: var(--c-text); text-align: center;
}
.lb-sitz__bild { display: grid; place-items: center; min-height: var(--lb-sitz-h); }
.lb-sitz__figur { display: block; overflow: hidden; border-radius: var(--g-figur-radius); background: var(--figur-grund-hell); box-shadow: inset 0 0 0 var(--border-w) var(--figur-ring); }
.lb-sitz__figur svg { width: auto; height: var(--lb-sitz-h); }
/* Gemalte Bueste klein (g3, 04.10.2026): Sitze und Figurwahl zeigen wie die grosse Figur (e5) genau den Bueste-Ausschnitt
   10 4 100 100 statt des weiteren Rahmens BUESTE_RAHMEN 10 -1 111 111 (Kelle unten, Platz rechts und oben bliebe leer: Kopf
   5 % links, Figur 10 % kleiner; Browser-Messung belege_g3). Nur beim Malen: 111/100 groesser um die Mitte der Unterkante und
   5.5 % nach rechts, 6 % nach unten zurueck; Masse und Layout bleiben, der Rahmen (overflow: hidden) schneidet den Rest ab.
   Uebungsbots 3 % hoeher, damit das Bot-Schild unten links ganz sichtbar bleibt. Dieselben Werte in raum.css (Figurenleiste).
   Vektor-Bueste (ohne .figur--gemalt, viewBox 10 4 100 100) unveraendert. */
.lb-sitz__figur svg.figur--gemalt, .lb-figurwahl__bild svg.figur--gemalt { transform-origin: 50% 100%; translate: 5.5% 6%; scale: 1.11; }
.lb-sitz__figur svg.figur--gemalt.figur--bot { translate: 5.5% 3%; }
.lb-sitz__bild--leer { width: var(--lb-sitz-h); height: var(--lb-sitz-h); border: 2px dashed var(--c-muted); border-radius: var(--lb-leer-radius); color: var(--c-muted); }
.lb-sitz__bild--leer .sym { width: 26px; height: 26px; }
.lb-sitz__botzeichen { font-family: var(--font-num); font-weight: var(--fw-heavy); font-size: 22px; }
.lb-sitz__name { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; font-size: var(--fs-small); font-weight: 700; line-height: 1.25; }
.lb-sitz__namewort { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-sitz__krone { width: 16px; height: 16px; color: var(--c-accent-line); flex: none; }
.lb-sitz__neben { font-size: var(--fs-hint); color: var(--c-muted); line-height: 1.25; }
.lb-sitz[data-art="frei"], .lb-sitz[data-art="bot"] { border-style: dashed; border-color: var(--c-muted); }
.lb-sitz[data-art="kommt"] { animation: lb-sitz-rein var(--motion-slow, .4s) var(--ease-reveal, ease-out); border-color: var(--c-primary); }
.lb-sitz[data-bereit="weg"] .lb-sitz__figur { opacity: .55; }
@keyframes lb-sitz-rein { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@media (min-width: 760px) {
  .lb-reihe { flex-wrap: wrap; width: 100%; margin: 0; padding: 0; overflow: visible; gap: 10px 12px; }
  .lb-sitz { width: 120px; }
}

/* Sprechblase am Platz (Schnell-Chat, Emote, Wurf): Auktionshaus ruhige Zeile, Spielshow Blase (Tokens --g-blase-*) */
.lb-blase {
  max-width: 100%; margin: 0; padding: var(--g-blase-pad); border: var(--border-w) solid var(--g-blase-rand); border-radius: var(--radius-card);
  background: var(--g-blase-bg); color: var(--g-blase-farbe); box-shadow: var(--g-blase-schatten);
  font-size: var(--fs-hint); font-style: var(--g-blase-stil); font-weight: var(--g-blase-gewicht); line-height: 1.3; text-align: center; overflow-wrap: anywhere;
}
.lb-blase--ich { position: absolute; z-index: 3; top: 6px; left: 50%; transform: translateX(-50%); max-width: min(320px, 80%); padding: 4px 12px; background: var(--c-surface); color: var(--c-text); border-color: var(--c-edge); box-shadow: var(--shadow-card); }

/* Status-Chips: Zustand immer als Wort und Symbol, nie nur Farbe */
.lb-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 7px; border: var(--border-w) solid var(--c-line); border-radius: var(--radius-chip); background: var(--c-surface); color: var(--c-muted); font-size: var(--fs-hint); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.lb-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lb-chip .sym { width: 16px; height: 16px; }
.lb-chip[data-art="bereit"] { border-color: var(--c-good); background: var(--c-good-bg); color: var(--c-good); font-weight: 700; }
.lb-chip[data-art="wartet"] { border-style: dashed; }
.lb-chip[data-art="kommt"] { border-color: var(--c-primary); background: var(--c-primary-bg); color: var(--c-primary); }
.lb-chip[data-art="leitung"] { border-color: var(--c-accent-line); color: var(--c-text); font-weight: 700; }
.lb-chip[data-art="weg"] { border-color: var(--c-warn); color: var(--c-warn); }
.lb-chip[data-art="bot"] { white-space: normal; text-align: center; }

/* Serien-Tafel an der Saalwand (nur breite Saal-Flaeche; sonst steht die Serie in den Ranglisten) */
.lb-tafelplatz { display: contents; }
.lb-tafel { display: none; }
@media (min-width: 1240px) {
  .lb-tafel {
    position: absolute; z-index: 2; left: 28px; top: 50%; transform: translateY(-62%);
    display: flex; flex-direction: column; gap: 2px; width: 212px; padding: 10px 12px 12px;
    border: var(--border-w-strong) solid var(--lb-motiv-rand); border-radius: var(--radius-card);
    background: var(--c-board-bg); color: var(--c-board-fg); box-shadow: var(--shadow-card);
    font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer;
  }
  .lb-tafel__titel { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: var(--g-titel-font); font-weight: var(--g-titel-gewicht); font-size: 17px; }
  .lb-tafel__titel .sym { width: 18px; height: 18px; }
  .lb-tafel__zeile { display: grid; grid-template-columns: 1.4em minmax(0, 1fr) auto 2.2em; gap: 6px; padding: 2px 0; border-top: var(--border-w) solid color-mix(in oklab, var(--c-board-fg) 25%, transparent); }
  .lb-tafel__zeile[data-ich] { font-weight: 800; }
  .lb-tafel__zeile--kopf { border-top: 0; font-size: var(--fs-hint); font-weight: 700; }
  .lb-tafel__zeile > :nth-child(n+3) { text-align: right; }
  .lb-tafel__platz, .lb-tafel__wert { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; }
  .lb-tafel__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Start: kurzer Uebergang, danach Los 1 */
.lb-startband {
  position: absolute; z-index: 5; left: var(--lb-gutter); right: var(--lb-gutter); top: 42%;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 18px;
  border: var(--border-w-strong) solid var(--c-primary); border-radius: var(--radius-card); background: var(--c-surface); color: var(--c-text);
  box-shadow: var(--shadow-card); font-weight: 700; text-align: center;
}
.lb-startband[hidden] { display: none; }
.lb-startband__balken { display: block; height: 6px; border-radius: var(--radius-bar); background: linear-gradient(90deg, var(--c-primary) 0 40%, var(--c-track) 40% 100%); background-size: 250% 100%; animation: lb-balken calc(var(--motion-slow, .4s) * 3) linear infinite; }
@keyframes lb-balken { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------------------------------------------------------- Konsole: Karten */
.lb-karte { display: flex; flex-direction: column; gap: 10px; flex: none; padding: 14px 16px; border: var(--border-w) solid var(--c-edge); border-radius: var(--radius-card); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-card); }
.lb-partie__kopf { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 12px; }
.lb-motiv { display: grid; place-items: center; width: 68px; height: 68px; border: var(--border-w) solid var(--lb-motiv-rand); border-radius: var(--radius-card); background: var(--c-bg); color: var(--c-text); }
.lb-motiv--raster { grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 4px; }
.lb-motiv__svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-motiv__svg--klein { width: 26px; height: 26px; stroke-width: 3.2; }
.lb-motiv__fein { stroke-width: 1.4; opacity: .7; }
.lb-partie__zeile { font-family: var(--g-titel-font); font-weight: var(--g-titel-gewicht); font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.lb-gewinnen { font-size: var(--fs-small); line-height: 1.4; }
.lb-gewinnen__titel { font-weight: 700; }
.lb-budget { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; padding-top: 10px; border-top: var(--border-w) solid var(--c-line); }
.lb-budget__label { font-size: var(--fs-small); color: var(--c-muted); }
.lb-budget__zahl { justify-self: end; font-family: var(--font-num); font-size: 22px; font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-budget__hinweis { grid-column: 1 / -1; justify-self: start; padding: 1px 8px; border-radius: var(--radius-chip); background: var(--c-track); color: var(--c-text); font-size: var(--fs-hint); font-weight: 700; }
.lb-budget--ohne { display: block; font-size: var(--fs-small); line-height: 1.4; }
.lb-budget--ohne .lb-budget__label { color: var(--c-text); font-weight: 700; }
.lb-budget__neben { font-size: var(--fs-hint); color: var(--c-muted); }
.lb-einsatz { display: flex; gap: 8px; padding: 8px 10px; border-left: 4px solid var(--c-secondary); border-radius: var(--radius-card); background: var(--c-secondary-bg); color: var(--c-text); font-size: var(--fs-small); line-height: 1.35; }
.lb-einsatz > .sym { flex: none; width: 20px; height: 20px; }
.lb-einsatz > span { display: flex; flex-direction: column; }
.lb-einsatz__neben { font-size: var(--fs-hint); color: var(--c-muted); }
.lb-daten { font-size: var(--fs-hint); line-height: 1.4; color: var(--c-muted); }
.lb-daten b { color: var(--c-text); }
.lb-knopfreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.lb-risiko:empty { display: none; }
.lb-verlassen { align-self: center; }

/* ---------------------------------------------------------------- Knoepfe */
.lb-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch-min); padding: 8px 16px; margin: 0;
  border: var(--border-w-strong) solid var(--c-btn-edge); border-radius: var(--radius-btn); box-shadow: var(--shadow-card);
  background: var(--c-surface); color: var(--c-text);
  font: inherit; font-size: var(--fs-btn); font-weight: var(--fw-strong); line-height: 1.15; text-align: center; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
.lb-knopf .sym { width: 20px; height: 20px; flex: none; }
.lb-knopf:active:not([aria-disabled="true"]) { transform: translate(var(--press-shift), var(--press-shift)); box-shadow: var(--shadow-press); }
.lb-knopf:focus-visible, .lb-link:focus-visible, .lb-ikon:focus-visible, .lb-code:focus-visible, .lb-tafel:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.lb-knopf--haupt { width: 100%; min-height: var(--touch-main); }
.lb-knopf--a { background: var(--g-cta-a); color: var(--g-on-cta-a); }
.lb-knopf[aria-disabled="true"] { cursor: default; }
.lb-knopf--haupt[aria-disabled="true"] { background: var(--c-track); color: var(--c-muted); box-shadow: none; }
.lb-knopf--haupt[data-bereit="ja"] { background: var(--c-good-bg); color: var(--c-good); border-color: var(--c-good); }
.lb-knopf--rand { border-color: var(--g-rand); border-width: var(--border-w); background: transparent; color: var(--c-text); font-size: var(--fs-small); box-shadow: none; }
.lb-knopf--rand[aria-disabled="true"] { color: var(--c-muted); border-style: dashed; }
.lb-knopf--klein { min-height: 44px; padding: 6px 12px; border-width: var(--border-w); border-color: var(--g-rand); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-small); box-shadow: none; }
.lb-knopf--mini { min-height: 44px; padding: 4px 10px; border-width: var(--border-w); border-color: var(--g-rand); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-hint); box-shadow: none; }
.lb-knopf--zu { flex: none; width: 44px; padding: 0; }
.lb-knopf--breit { width: 100%; justify-content: flex-start; }
.lb-knopf__text { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.lb-knopf__grund { font-size: var(--fs-hint); font-weight: 600; opacity: .92; }
.lb-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 2px; border: 0; background: none; color: var(--c-primary); font: inherit; font-weight: 700; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lb-link .sym { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Handlung */
.lb-handlung__status { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.35; }
.lb-handlung__status:empty { display: none; }
.lb-handlung__zurueck { align-self: center; }
.lb-handlung__einsatz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-small); }
.lb-fehler { display: flex; align-items: flex-start; gap: 6px; color: var(--c-bad); font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }
.lb-fehler:empty { display: none; }
.lb-fehler .sym { flex: none; width: 18px; height: 18px; margin-top: 1px; }

/* ---------------------------------------------------------------- Ranglisten (Karte und Blatt) */
.rl__kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rl__titel { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body); font-weight: var(--fw-heavy); }
.rl__titel .sym { width: 20px; height: 20px; color: var(--c-accent-line); }
.rl-reiter { flex: none; display: flex; gap: 2px; border-bottom: var(--border-w) solid var(--c-line); overflow-x: auto; scrollbar-width: none; }
.rl-reiter__tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--c-muted); font: inherit; font-size: var(--fs-small); font-weight: 700; cursor: pointer; white-space: nowrap; }
.rl-reiter__tab[aria-selected="true"] { color: var(--c-text); border-bottom-color: var(--c-primary); }
.rl-reiter__tab:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: -2px; }
.rl-beta { display: inline-block; padding: 0 6px; border: var(--border-w) solid var(--c-secondary); border-radius: var(--radius-chip); color: var(--c-text); background: var(--c-secondary-bg); font-size: var(--fs-hint); font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.rl__panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rl__panel:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.rl__panel > * { flex-shrink: 0; }
.rl-titel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-size: var(--fs-small); font-weight: 700; }
.rl-titel__neben { font-weight: 400; color: var(--c-muted); font-size: var(--fs-hint); }
.rl-liste { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rl-zeile { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 44px; padding: 2px 2px 2px 8px; border-bottom: var(--border-w) solid var(--c-line); font-size: var(--fs-small); }
.rl-zeile__platz { font-family: var(--font-num); font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; }
.rl-zeile__name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; line-height: 1.25; }
.rl-zeile__namewort, .rl-zeile__zusatz { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-zeile__zusatz { font-size: var(--fs-hint); font-weight: 400; color: var(--c-muted); }
.rl-zeile__wert { font-family: var(--font-num); font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-zeile__menue { border-color: transparent; color: var(--c-muted); }
.rl-zeile[data-ich] { border-radius: var(--radius-card); background: var(--c-spot); color: var(--c-on-spot); box-shadow: inset var(--spot-bar-w, 4px) 0 0 var(--c-primary); border-bottom-color: transparent; }
.rl-zeile[data-ich] .rl-zeile__zusatz { color: inherit; opacity: .85; }
.rl-zeile[data-art="schatten"] { background: transparent; color: var(--c-text); border: var(--border-w) dashed var(--c-muted); box-shadow: none; }
.rl-zeile[data-art="gegangen"] { color: var(--c-muted); }
.rl-zeile--kopf { min-height: 28px; color: var(--c-muted); font-size: var(--fs-hint); font-weight: 700; }
.rl-zeile--kopf .rl-zeile__wert { font-family: inherit; font-weight: 700; }
.rl-liste--eigen { margin-top: 2px; }
.rl__panel:not(.rl__panel--voll) .rl-zeile { min-height: 36px; }
.rl-leer, .rl-fuss { font-size: var(--fs-hint); line-height: 1.4; color: var(--c-muted); }
.rl-fuss--privat { display: flex; align-items: center; gap: 6px; }
.rl-fuss--privat .sym { width: 16px; height: 16px; flex: none; }
.rl-fuss--geld { color: var(--c-text); font-weight: 600; }
.rl-hinweis { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--radius-card); background: var(--c-track); color: var(--c-text); font-size: var(--fs-small); line-height: 1.35; }
.rl-hinweis > .sym { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.rl-hinweis > span { flex: 1 1 12em; }
.rl-hinweis--aktion { align-items: center; flex-wrap: wrap; }
.rl-kz-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rl-kz { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 10px; border: var(--border-w) solid var(--c-line); border-radius: var(--radius-card); background: var(--c-bg); }
.rl-kz__label { font-size: var(--fs-hint); font-weight: 700; color: var(--c-muted); }
.rl-kz__wert { font-family: var(--font-num); font-size: 22px; font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; line-height: 1.15; }
.rl-kz__neben { font-size: var(--fs-hint); color: var(--c-muted); line-height: 1.3; overflow-wrap: anywhere; }
.rl-filterblock { display: flex; flex-direction: column; gap: 8px; }
.rl-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rl-filter__titel { padding: 0; font-size: var(--fs-hint); font-weight: 700; color: var(--c-muted); }
.rl-filter__chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 699.98px) {
  .rl-filter__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--lb-gutter, 16px)); padding: 0 var(--lb-gutter, 16px) 2px; }
}

/* Auswahl-Chips (Filter, Einstellungen, Rueckmeldung) */
.lb-chipwahl { position: relative; display: inline-flex; flex: none; }
.lb-chipwahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lb-chipwahl span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 14px; border: var(--border-w) solid var(--g-rand); border-radius: var(--radius-chip); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }
.lb-chipwahl input:checked + span { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); font-weight: 700; }
.lb-chipwahl input:focus-visible + span { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.lb-chipwahl.ist-aus span { border-style: dashed; color: var(--c-muted); }
.lb-chipwahl input:disabled { cursor: default; }

/* ---------------------------------------------------------------- Querformat (niedrig) */
@media (orientation: landscape) and (max-height: 540px) {
  .app:has(> .app__haupt > .lb) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; }
  .app:has(> .app__haupt > .lb) > .app__haupt { flex: 1 1 auto; min-height: 0; }
  .app__haupt > .bildschirm.lb { height: 100%; min-height: 0; }
  .lb { --lb-kopf-h: 44px; --lb-ich-h: min(160px, 40vh); --lb-sitz-h: 40px; --lb-konsole-w: 330px; overflow: hidden; }
  .lb[data-n="10"] { --lb-ich-h: min(150px, 38vh); --lb-sitz-h: 36px; }
  .lb[data-n="6"] { --lb-ich-h: min(160px, 40vh); }
  .lb-raster { grid-template-columns: minmax(0, 1fr) var(--lb-konsole-w); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "saal konsole" "saal handlung"; flex: 1 1 auto; min-height: 0; }
  .lb-konsole { overflow-y: auto; border-left: var(--border-w) solid var(--c-line); gap: 8px; padding: 8px 10px 10px; }
  .lb-handlung { position: static; border-left: var(--border-w) solid var(--c-line); box-shadow: none; gap: 4px; padding: 6px 10px; }
  .lb-marke__wort { font-size: 18px; }
  .lb-kopf__pokal { display: inline-grid; }
  .lb-code__einladen { min-height: 34px; }
  .lb-saal { padding: 8px 12px; gap: 6px; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-saal__oben { position: absolute; z-index: 3; top: 8px; left: 12px; right: 12px; }
  .lb-ich { gap: 6px; }
  .lb-ich__namewort { font-size: 18px; }
  .lb-ich__gestalten { display: none; }
  .lb-ich__stift { display: inline-grid; border-color: var(--g-rand); }
  .lb-ich__schild { padding: 2px 4px 2px 10px; }
  .lb-reihe { flex-wrap: nowrap; width: calc(100% + 24px); margin: 0 -12px; padding: 2px 12px; overflow-x: auto; justify-content: safe center; gap: 6px; }
  .lb-sitz { position: relative; width: auto; min-width: 84px; max-width: 150px; flex-direction: row; gap: 6px; padding: 4px 8px 4px 4px; text-align: left; }
  .lb-sitz > .lb-chip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lb-sitz > .lb-knopf--mini, .lb-sitz > .lb-sitz__neben { display: none; }
  .lb-sitz[data-art="frei"] { cursor: default; }
  .lb-sitz__name { font-size: var(--fs-hint); }
  .lb-sitz[data-bereit="bereit"] .lb-sitz__name::after, .lb-sitz[data-bereit="leitung"] .lb-sitz__name::after { content: " \2713"; color: var(--c-good); }
  .lb-karte { gap: 6px; padding: 10px 12px; }
  .lb-partie__kopf { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .lb-motiv { width: 48px; height: 48px; }
  .lb-motiv__svg { width: 36px; height: 36px; }
  .lb-motiv__svg--klein { width: 18px; height: 18px; }
  .lb-partie__zeile { font-size: 17px; }
  .lb-gewinnen { font-size: var(--fs-hint); }
  .lb-budget { padding-top: 6px; }
  .lb-budget__zahl { font-size: 18px; }
  .lb-konsole > .rl { display: none; }
  .lb-handlung__status { font-size: var(--fs-hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb-knopf--haupt { min-height: 52px; }
}

/* ---------------------------------------------------------------- Blaetter (Dialoge im Aufbau der App) */
.lb-blatt .lb-blatt__karte { display: flex; flex-direction: column; gap: 0; overflow: hidden; max-height: calc(100% - var(--space-4, 24px)); padding-left: 0; padding-right: 0; }
.lb-blatt .blatt__griff { flex: none; margin-bottom: 4px; }
.lb-blatt__kopf { flex: none; padding: 4px var(--gutter, 16px) 10px calc(var(--gutter, 16px) + 4px); margin: 0 !important; border-bottom: var(--border-w) solid var(--c-line); }
.lb-blatt .blatt__titel:focus, .lb-blatt .blatt__titel:focus-visible { outline: none; }   /* Fokus auf dem Titel (tabindex -1, nicht in der Tab-Folge): kein Ring, der wie eine Auswahl wirkt */
.lb-blatt__inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 14px calc(var(--gutter, 16px) + 4px) 18px; }
.lb-blatt__inhalt > * { flex-shrink: 0; }
.lb-blatt__inhalt h3 { margin: 0 0 6px; font-size: var(--fs-hint); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: var(--g-kicker-case); color: var(--c-muted); }
.lb-blatt__inhalt h3.rl-titel { margin: 0; color: var(--c-text); font-size: var(--fs-small); letter-spacing: 0; text-transform: none; }
.lb-blatt__inhalt p { margin: 0; line-height: 1.45; }
.lb-blatt__inhalt ul, .lb-blatt__inhalt ol, .rv ul, .rv ol { margin: 0; padding: 0; list-style: none; }
.lb-blatt__inhalt section > p + p { margin-top: 8px; }
.lb-blatt__fuss { flex: none; padding: 12px calc(var(--gutter, 16px) + 4px) max(14px, env(safe-area-inset-bottom)); border-top: var(--border-w) solid var(--c-line); background: var(--c-surface); }
.lb-blatt__fuss[hidden] { display: none; }
.lb-blatt--rl .lb-blatt__inhalt { gap: 12px; }
@media (min-width: 700px) { .lb-blatt .lb-blatt__karte { max-width: 560px; } }

.lb-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: var(--fs-small); }
.lb-dl dt { color: var(--c-muted); font-weight: 700; }
.lb-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .lb-dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; } .lb-dl dd { margin-bottom: 8px; } }
.lb-marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lb-aufklapp summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; list-style: none; }
.lb-aufklapp summary::-webkit-details-marker { display: none; }
.lb-aufklapp summary::before { content: "\25B8"; color: var(--c-muted); }
.lb-aufklapp[open] summary::before { content: "\25BE"; }
.lb-aufklapp__inhalt { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-small); }
.lb-hinweis { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-small); color: var(--c-muted); line-height: 1.4; }
.lb-hinweis > .sym { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lb-hinweis--rahmen { padding: 8px 10px; border-left: 4px solid var(--c-primary); border-radius: var(--radius-card); background: var(--c-primary-bg); color: var(--c-text); }
.lb-hinweis--warn { padding: 8px 10px; border-left: 4px solid var(--c-warn); border-radius: var(--radius-card); background: var(--c-warn-bg); color: var(--c-text); }
/* v12.2 F (C5-01): Hinweis «zu wenige freie Karten» mit Knopf; der Knopf steht unter dem Text, buendig damit */
.lb-hinweis--frei { flex-wrap: wrap; }
.lb-hinweis--frei > span { flex: 1 1 0; min-width: 0; }
.lb-hinweis--frei > .lb-link { flex: 1 0 100%; text-align: left; padding-left: 26px; }
.lb-wahl { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lb-wahl__titel { padding: 0; font-size: var(--fs-small); font-weight: 700; }
.lb-wahl__optionen { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-wahl--liste .lb-wahl__optionen { flex-direction: column; gap: 0; }
.lb-wahl__hinweis { font-size: var(--fs-hint); color: var(--c-muted); line-height: 1.4; }
.lb-radiozeile, .lb-schalter { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-small); cursor: pointer; }
.lb-radiozeile input, .lb-schalter input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--c-primary); }
.lb-radiozeile.ist-aus { color: var(--c-muted); }
.lb-zaehler { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lb-zaehler__zahl { min-width: 2ch; text-align: center; font-family: var(--font-num); font-size: 22px; }
.lb-grosscode { font-family: var(--font-num); font-size: 44px; font-weight: var(--fw-heavy); letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.lb-linkzeile { padding: 8px 10px; border-radius: var(--radius-card); background: var(--c-track); font-family: var(--font-num); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lb-figurwahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lb-figurwahl__knopf { display: grid; place-items: center; min-height: 76px; padding: 4px; border: var(--border-w-strong) solid var(--c-line); border-radius: var(--radius-card); background: var(--c-bg); cursor: pointer; }
.lb-figurwahl__knopf:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.lb-figurwahl__bild { display: block; overflow: hidden; border-radius: var(--g-figur-radius); background: var(--figur-grund-hell); }
.lb-figurwahl__bild svg { width: 100%; max-width: 76px; height: auto; }
/* h1 (04.10.2026): Inline-SVG sass auf der Grundlinie, der Rahmen war 7 px hoeher als die Figur (im Look Spielshow ein Streifen
   unter der Bueste). Als Block ist der Rahmen genau so hoch wie das SVG (Messung belege_h1, vorher/nachher). */
.lb-figurwahl__bild > svg { display: block; }
.lb-beta-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--c-muted); }
.lb-blatt .lb-hinweis--rahmen .sym { width: 20px; height: 20px; flex: none; }

/* Querformat (niedrig): Blaetter kompakter, Filter als wischbare Zeile */
@media (orientation: landscape) and (max-height: 540px) {
  .lb-blatt .blatt__griff { display: none; }
  .lb-blatt__kopf { padding-top: 6px; padding-bottom: 6px; }
  .lb-blatt .blatt__titel { font-size: 20px; }
  .lb-blatt__inhalt { gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  .lb-blatt__fuss { display: grid; grid-template-columns: 1fr 1fr; padding-top: 8px; padding-bottom: 8px; }
  .lb-blatt__fuss .lb-knopf--haupt { min-height: 48px; }
  .rl-filterblock { gap: 4px; }
  .rl-filter__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* ---------------------------------------------------------------- Revanche (Ende-Bildschirm) */
/* Sitzt im Ende-Bildschirm an der Stelle des bisherigen Revanche-Knopfs (Handlungszone), darum ohne eigenen Kartenrahmen */
.rv { display: flex; flex-direction: column; gap: 6px; color: var(--c-text); }
.rv__titel { margin: 0; font-size: var(--fs-hint); font-weight: 700; letter-spacing: var(--label-tracking); text-transform: var(--g-kicker-case); color: var(--c-muted); line-height: 1.3; }
.rv__inhalt { display: flex; flex-direction: column; gap: 8px; }
.rv__status { margin: 0; font-weight: 700; font-size: var(--fs-small); }
.rv__satz { margin: 0; font-size: var(--fs-hint); color: var(--c-muted); line-height: 1.4; }
.rv__ranglisten .sym { color: var(--c-accent-line); }

/* ---------------------------------------------------------------- Rueckmeldung */
.rm-knopf .sym { width: 20px; height: 20px; }
.rm-label { font-size: var(--fs-small); font-weight: 700; }
.rm-feld { width: 100%; min-height: 120px; padding: 10px 12px; border: var(--border-w-strong) solid var(--c-line); border-radius: var(--radius-card); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: var(--fs-body); line-height: 1.4; resize: vertical; }
.rm-feld:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.rm-blatt .lb-blatt__inhalt > .rm-feld { margin-top: -8px; }
.rm-zaehler { margin-top: -8px !important; font-size: var(--fs-hint); color: var(--c-muted); text-align: right; font-variant-numeric: tabular-nums; }
.rm-danke { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-body); }
.rm-danke .sym { flex: none; width: 22px; height: 22px; color: var(--c-good); }

/* ---------------------------------------------------------------- Einfuehrung */
.ef-blatt .lb-blatt__inhalt { align-items: center; text-align: center; }
.ef-schritt { color: var(--c-muted); }
.ef-bild { display: grid; place-items: center; width: 112px; height: 112px; border: var(--border-w) solid var(--g-bild-rand); border-radius: var(--g-figur-radius); background: var(--figur-grund-hell); color: var(--c-text); }
.ef-bild__svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ef-titel { margin: 0 !important; font-family: var(--g-titel-font) !important; font-weight: var(--g-titel-gewicht) !important; font-size: var(--fs-title) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--c-text) !important; }
.ef-titel:focus { outline: none; }
.ef-text { max-width: 34em; font-size: var(--fs-body); }
.ef-geld { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-small); color: var(--c-muted); text-align: left; }
.ef-geld .sym { flex: none; width: 18px; height: 18px; }
.ef-punkte { display: flex; gap: 6px; }
.ef-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); }
.ef-punkt.ist-da { background: var(--c-primary); }

@media (prefers-reduced-motion: reduce) {
  .lb-band, .lb-sitz[data-art="kommt"], .lb-startband__balken { animation: none; }
}
:root[data-motion="reduce"] .lb-band, :root[data-motion="reduce"] .lb-sitz[data-art="kommt"], :root[data-motion="reduce"] .lb-startband__balken { animation: none; }

/* rc42 (x5): Einfuehrung im Querformat / bei geringer Hoehe (812 x 375, 740 x 360): Bild klein links neben Titel und Text,
   Erklaertext und Geldhinweis ohne Scrollen sichtbar. */
@media (orientation: landscape) and (max-height: 540px), (max-height: 480px) {
  .ef-blatt .lb-blatt__inhalt { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-auto-rows: auto; column-gap: 14px; row-gap: 6px; align-items: start; justify-items: start; text-align: left; padding-top: 8px; padding-bottom: 10px; }
  .ef-blatt .lb-blatt__inhalt > * { grid-column: 2; }
  .ef-blatt .ef-bild { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 64px; }
  .ef-blatt .ef-bild__svg { width: 42px; height: 42px; }
  .ef-blatt .ef-titel { font-size: var(--fs-body) !important; }
  .ef-blatt .ef-text { font-size: var(--fs-small); line-height: 1.4; }
  .ef-blatt .lb-blatt__fuss { display: flex; flex-direction: row-reverse; gap: 10px; padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .ef-blatt .lb-blatt__fuss > .lb-knopf { flex: 1 1 0; min-height: 44px; }
  .ef-blatt .lb-blatt__kopf { padding-bottom: 6px; }
}

/* ---------------------------------------------------------------- UX Paket A (06.10.2026, Kuerzel ua) */
/* U16: Kopf des oeffentlichen Tischs kuerzt sich statt ueberzulaufen; unter 760 px nur «Oeffentlich» und das Einladen-Symbol;
   der Hilfe-Knopf bleibt immer sichtbar (flex: none) */
.lb-code--oeffentlich { cursor: default; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.lb-code--oeffentlich > strong, .lb-code__liste { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb-code__liste { color: var(--c-muted); }
.lb-code__kurz { display: none; }
.lb-code__freunde { flex: none; gap: 6px; }
.lb-code__freunde .sym { width: 20px; height: 20px; }
.lb-kopf__hilfe, .lb-kopf__pokal { flex: none; }
@media (max-width: 759.98px) {
  .lb-code__lang, .lb-code__liste, .lb-code__freundewort { display: none; }
  .lb-code__kurz { display: inline; }
  .lb-code--oeffentlich { gap: 4px; padding: 3px 3px 3px 10px; }
  .lb-code__freunde { min-width: 44px; justify-content: center; padding: 4px; }
}
@media (max-width: 359.98px) {
  .lb-kopf__zeile { gap: 6px; padding: 0 12px; }
  .lb-marke { gap: 6px; }
  .lb-marke__wort { font-size: 17px; }
  .lb-code--oeffentlich { padding-left: 8px; }
}
/* U16: «Freunde einladen» im freien Platz am oeffentlichen Tisch */
.lb-sitz[data-art="frei"] > .lb-knopf--mini { margin-top: 4px; }
/* U18: Weg zum Ueben, solange man allein am oeffentlichen Tisch sitzt */
.lb-handlung__ueben { align-self: center; text-align: center; }

/* v11 w1 (09.10.2026, Nutzerentscheid P04): Countdown der Warteschlange im Warteraum (screens/lobby.js .lb-warte, ohne Live-Region,
   nicht gekuerzt) und kurze Meldungen ueber jedem Bildschirm (lib/lobby_access.js): Uebung beginnt, Gegner gefunden (ca. 3 s). */
.lb-handlung__status.lb-warte { color: var(--c-text); font-weight: var(--fw-strong); white-space: normal; }
/* v11 z1 (P04-Korrektur): Angebot «Waehrend du wartest: gegen einen Uebungsbot spielen?» mit «Ja, ueben» / «Nein, weiter warten» */
.lb-angebot { display: grid; gap: 6px; padding: 10px 12px; border: var(--border-w) solid var(--c-accent-line); border-radius: var(--radius-btn); background: var(--c-surface); color: var(--c-text); }
.lb-angebot__frage { margin: 0; font-weight: var(--fw-heavy); line-height: 1.35; }
.lb-angebot__text { margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.lb-angebot__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.lb-angebot__knoepfe .lb-knopf { min-width: 0; }
.ws-meldung {
  position: fixed; z-index: 120; left: 50%; top: calc(var(--play-controls-height, 48px) + 12px); transform: translateX(-50%);
  box-sizing: border-box; width: min(560px, calc(100vw - 24px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px;
  padding: 14px 8px 18px 16px; overflow: hidden; border: var(--border-w) solid var(--c-accent-line); border-radius: var(--radius-btn);
  background: var(--c-surface); color: var(--c-text); box-shadow: 0 14px 30px -14px var(--c-shadow);
}
.ws-meldung[data-art="gegner"] { border-width: 2px; }
.ws-meldung__titel { grid-column: 1; margin: 0; font-size: 18px; font-weight: var(--fw-heavy); line-height: 1.3; }
.ws-meldung__text { grid-column: 1; margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.ws-meldung__zu { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-btn); background: transparent; color: inherit; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.ws-meldung__zu:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: 2px; }
.ws-meldung__balken { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c-accent-line); transform-origin: left center; animation: ws-balken 3s linear forwards; }
.ws-meldung[data-art="start"] .ws-meldung__balken { animation-duration: 5s; }
@keyframes ws-balken { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ws-meldung__balken { animation: none; } }

/* ==========================================================================
   v12.2 Paket K2 (14.10.2026): E6 QR-Code im Blatt «Einladen», E21 «Nicht mehr»-Knopf am Platz, E14 Auffuellen-Schalter,
   E12 automatischer Start mit «Noch nicht», E7 Satz zum neuen Takt. Kein Inline-Stil, Tippziele >= 44 px.
   ========================================================================== */
.lb-qr { display: grid; justify-items: center; gap: 6px; margin: 4px 0 8px; }
.lb-qr__svg { display: block; width: min(200px, 60vw); height: auto; border-radius: 8px; image-rendering: pixelated; }   /* weisser Grund und Ruhezone stecken im SVG */
.lb-sitz { position: relative; }
.lb-sitz__mehr { position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-muted, currentColor); font: 700 18px/1 var(--font-ui, sans-serif); cursor: pointer; }
.lb-sitz__mehr:focus-visible { outline: 3px solid var(--c-focus, currentColor); outline-offset: -3px; }
@media (hover: hover) { .lb-sitz__mehr:hover { color: var(--c-text, currentColor); } }
.lb-auffuellen { display: grid; gap: 4px; }
.lb-auffuellen__schalter { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.lb-auffuellen__schalter input { flex: none; width: 22px; height: 22px; margin: 0; }
.lb-autostart { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lb-auto { font-weight: 700; }
.lb-taktsatz { margin: 0; }

/* v12.2 Kuerzel N4 (15.10.2026): «Sammlung» am Platz einer anderen Person (nur wenn sie ihre Sammlung zeigt, screens/sammlung.js);
   Trefferflaeche 44 px ueber ::after; im niedrigen Querformat (Plaetze als Zeile) nur das Kartensymbol, der Name steht im aria-label */
.lb-sitz__sammlung { position: relative; display: inline-flex; align-items: center; gap: 3px; max-width: 100%; min-height: 32px; padding: 0 6px; border: var(--border-w) solid var(--c-line); border-radius: 999px;
  background: transparent; color: var(--c-text); font: 700 12px/1 var(--font-ui, sans-serif); cursor: pointer; }
.lb-sitz__sammlung > .sym { flex: none; width: 14px; height: 14px; }
.lb-sitz__sammlung > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sitz__sammlung::after { content: ''; position: absolute; inset: -6px -2px; }
.lb-sitz__sammlung:focus-visible { outline: 3px solid var(--c-focus, currentColor); outline-offset: 2px; }
@media (hover: hover) { .lb-sitz__sammlung:hover { border-color: var(--c-primary, currentColor); } }
@media (orientation: landscape) and (max-height: 540px) {
  .lb-sitz__sammlung { flex: none; justify-content: center; min-width: 36px; min-height: 36px; padding: 0; }
  .lb-sitz__sammlung > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lb-sitz__sammlung::after { inset: -4px; }
}
