/* roulette/roulette.css — Anordnung des Roulette-HUD über dem Canvas (Bausteine und Tokens aus kern/ui/ui.css).
   Geräte: Desktop (Standard), Handy hochkant (≤ 640 px breit, Hochformat), Handy quer (≤ 500 px hoch). */
html, body { margin: 0; height: 100%; overflow: hidden; background: #040506; }
body.rl { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
#leinwand { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* ── oben ──────────────────────────────────────────────────────────────────── */
.rl-oben-links { position: fixed; z-index: var(--ui-z-leiste); top: calc(76px + env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left));
  display: flex; align-items: stretch; gap: 10px; pointer-events: none; }
.rl-oben-links > * { pointer-events: auto; }
.rl-einsatz { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 16px 11px; min-width: 96px;
  border-radius: var(--ui-r-m); background: rgba(14, 11, 8, .74); border: 1px solid rgba(226, 194, 122, .2);
  -webkit-backdrop-filter: var(--ui-unschaerfe); backdrop-filter: var(--ui-unschaerfe); }
.rl-einsatz-label { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-3); line-height: 1.2; }
.rl-einsatz-zahl { font-weight: 500; font-size: 22px; line-height: 1.1; color: var(--ui-gold-hell); }

.rl-phase { position: fixed; z-index: calc(var(--ui-z-kopf) + 1); top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 11, 8, .78); border: 1px solid rgba(226, 194, 122, .28); box-shadow: var(--ui-schatten-2);
  -webkit-backdrop-filter: var(--ui-unschaerfe); backdrop-filter: var(--ui-unschaerfe); pointer-events: none; }
.rl-phase-text { font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--ui-ink); }
.rl-phase[data-phase="drehen"] { border-color: rgba(226, 194, 122, .55); }
.rl-phase[data-phase="drehen"] .rl-phase-text { color: var(--ui-gold-hell); }
.rl-phase .ui-frist { flex: none; }

.rl-oben-rechts { position: fixed; z-index: var(--ui-z-leiste); top: calc(76px + env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-radius: 999px;
  background: rgba(14, 11, 8, .74); border: 1px solid rgba(226, 194, 122, .2); -webkit-backdrop-filter: var(--ui-unschaerfe); backdrop-filter: var(--ui-unschaerfe); }
.rl-blasen { position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.rl-verlauf .ui-verlauf { flex-wrap: nowrap; align-items: center; gap: 6px; }
.rl-verlauf .ui-kugel:not(.ist-neu) { opacity: .92; }

/* ── unten ─────────────────────────────────────────────────────────────────── */
.rl-unten { position: fixed; z-index: var(--ui-z-leiste); left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; }
.rl-unten { transition: transform 220ms ease-out, opacity 220ms ease-out; }
@media (min-width: 641px), (orientation: landscape) {
  .rl-unten.ist-zu { transform: translate(-50%, 24px); opacity: 0; pointer-events: none; }
  /* Bildurteil R2: „Drehen“ ≥ 190 × 56 px mit 16 px Abstand, Nebenknöpfe als Ghost */
  .rl-unten .ui-aktionen-zeile .ui-knopf.rl-drehen { min-width: 190px; min-height: 56px; margin-left: 16px; font-size: 17px; }
  .rl-unten .ui-aktionen-zeile .ui-knopf:not(.rl-drehen) { background: transparent; border-color: transparent; box-shadow: none; }
}
/* Offline: kein eigener Status mehr — EIN Element „Offline · Online spielen →“ (Bildurteil R3 Nr. 6) */
.ui-status[data-zustand="offline"] { display: none; }
/* „Nichts geht mehr“: zentrierte Einblendung 1,2 s (ein 200 ms, aus 300 ms), danach Pille 18 px */
.rl-ansage { position: fixed; left: 50%; top: 46%; z-index: var(--ui-z-banner); transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  font-weight: 600; font-size: 40px; letter-spacing: .02em; color: #F3DFA8; white-space: nowrap; text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 0 28px rgba(0, 0, 0, .7); }
/* Teil 17 (Urteil R16 Nr. 3: die Ansage lag im Wurfbild über dem Kessel, Kugelanteil 0,085): kurze Einblendung 0,40 s (ein 80 ms, aus ab
   0,26 s), danach trägt die Phasen-Pille „Nichts geht mehr“ — ab 0,40 s nach dem Wurf gehört der Kessel der Kugel. ?test&ansagems=<ms> (A/B) */
.rl-ansage.ist-an { animation: rl-ansage var(--rl-ansage-dauer, .4s) linear both; }
@keyframes rl-ansage { 0% { opacity: 0; transform: translate(-50%, -46%); } 20% { opacity: 1; transform: translate(-50%, -50%); } 65% { opacity: 1; } 100% { opacity: 0; } }
html[data-bewegung="reduziert"] .rl-ansage.ist-an { animation-duration: var(--rl-ansage-dauer, .4s); animation-timing-function: steps(1, end); }
.rl-phase[data-phase="drehen"] .rl-phase-text { font-size: 18px; }
html[data-bewegung="reduziert"] .rl-unten { transition-duration: 1ms; }
.rl-unten .ui-aktionen { width: auto; padding: 10px; border-radius: 22px; }
.rl-unten .ui-aktionen-kopf { display: none; }
.rl-unten .ui-aktionen-zeile { grid-auto-columns: max-content; }
.rl-unten .ui-aktionen-zeile .ui-knopf { min-height: 52px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 641px) { .rl-unten { gap: 10px; } .rl-unten .ui-chips { gap: 6px; padding: 10px 12px 12px; } .rl-unten .ui-chip { --g: 48px; } .rl-unten .ui-aktionen-zeile .ui-knopf { padding: 0 12px; } }
.rl-unten.ist-gesperrt .ui-chips { opacity: .6; }
.rl-spielgeld { position: fixed; z-index: var(--ui-z-leiste); left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); }
.rl-spielgeld .ui-spielgeld { font-size: 13px; color: #EFE6D4; }
/* Bildurteil R3 Nr. 5: dunkel hinterlegt, damit es auch auf hellem Kessel ≥ 4,5:1 erreicht */
.rl-spielgeld { background: rgba(0, 0, 0, .72); padding: 3px 10px 4px; border-radius: 999px; }
.rl-modus { margin-bottom: 14px; display: grid; gap: 12px; }
.rl-modus-oben { align-self: center; background: rgba(14, 11, 8, .74); border: 1px solid rgba(226, 194, 122, .2); }
@media (max-width: 640px), (max-height: 500px) { .rl-modus-oben { display: none; } }

/* ── Gewinnzahl (≥ 48 px) ───────────────────────────────────────────────────── */
.rl-ergebnis { position: fixed; z-index: var(--ui-z-banner); top: auto; bottom: calc(36px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: row; align-items: center; gap: 22px; max-width: 640px; box-sizing: border-box; padding: 12px 26px 14px; border-radius: 24px;
  background: rgba(18, 13, 9, .80); border: 1px solid rgba(226, 194, 122, .45); box-shadow: var(--ui-schatten-2), 0 0 40px rgba(226, 194, 122, .12);
  -webkit-backdrop-filter: var(--ui-unschaerfe); backdrop-filter: var(--ui-unschaerfe); pointer-events: none;
  animation: rl-ein 420ms var(--ui-kurve-feder, cubic-bezier(.2, 1.4, .4, 1)) both; }
.rl-ergebnis.ist-weg { animation: rl-aus 380ms ease both; }
/* Teil 13 F (Urteil R12 Nr. 6; runde13b Impuls e − e2 ≈ 0): Lichtimpuls als ZUSTAND (ist-impuls von der Ankunft am Tableau bis
   zum Zählen der Auszahlung) — warmes Licht über die ganze Bühne, Anstieg 120 ms, zurück in 160 ms; alle Formate */
.rl-ergebnis { transition: box-shadow 160ms ease-out; }
.rl-ergebnis.ist-impuls, .rl-ergebnis.ist-boden.ist-impuls { box-shadow: inset 0 0 0 999px rgba(255, 232, 170, .36), 0 0 0 3px rgba(255, 236, 180, 1),
  0 0 60px 12px rgba(255, 226, 150, .55); transition: box-shadow 120ms ease-out; }
.rl-erg-kicker { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-ink-3); }
.rl-erg-zahl { font-weight: 600; font-size: 64px; line-height: 1; color: #fff; min-width: 1.6em; text-align: center; padding: 6px 12px 8px; border-radius: 18px; }
.rl-ergebnis[data-farbe="rot"] .rl-erg-zahl { background: radial-gradient(circle at 35% 30%, #E0485A, #A8192C 72%); }
.rl-ergebnis[data-farbe="schwarz"] .rl-erg-zahl { background: radial-gradient(circle at 35% 30%, #4A423A, #15120F 72%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.rl-ergebnis[data-farbe="gruen"] .rl-erg-zahl { background: radial-gradient(circle at 35% 30%, #1C8F5B, #07563A 72%); }
.rl-erg-farbe { font-weight: 600; font-size: 18px; color: var(--ui-ink-1, #F4EBDA); letter-spacing: .02em; }
/* Ergebnisbühne (Bildurteil R3 Nr. 2): „9 Rot | GEWINN 425 | netto +120“ */
.rl-erg-kopf { display: flex; align-items: center; gap: 12px; }
.rl-erg-text { display: flex; flex-direction: column; gap: 2px; }
.rl-erg-gewinn { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 12px; padding-left: 22px; border-left: 1px solid rgba(226, 194, 122, .35); }
.rl-erg-gewinn[hidden] { display: none; }
.rl-erg-gewinn .rl-erg-kicker { grid-column: 1 / 3; color: var(--ui-gold, #D9B76E); }
.rl-erg-betrag { font-weight: 700; font-size: 40px; line-height: 1.05; color: var(--ui-gold-hell, #F1DCA6); min-width: 3.2ch; }
.rl-erg-netto { font-weight: 600; font-size: 16px; color: var(--ui-ink-2); }
.rl-erg-netto.ist-verdeckt { visibility: hidden; }
/* Bildurteil R4 Nr. 5: große Ergebnisbühne von Anfang an (D1 ≥ 640 × 140, Betrag ≥ 56 px / 700), Inhalt mittig */
.rl-ergebnis { min-width: 640px; min-height: 140px; max-width: min(860px, calc(100vw - 32px)); justify-content: center; gap: 28px; padding: 14px 34px 16px; }
.rl-ergebnis .rl-erg-zahl { font-size: 84px; padding: 8px 16px 10px; border-radius: 22px; }
.rl-erg-farbe { font-size: 22px; }
.rl-erg-betrag { font-size: 58px; font-weight: 700; }
.rl-erg-netto { font-size: 18px; }
/* Bildurteil R4 Nr. 4 (Bodenstreifen): Chipleiste + Aktionen auf die vordere Bande (Ablage) statt in den toten Streifen */
@media (min-height: 601px) and (min-width: 641px) { .rl-unten { bottom: calc(var(--rl-boden-h, 71px) + 6px + env(safe-area-inset-bottom)); } }   /* R8 Nr. 2: Chipleiste sitzt auf der einzeiligen Leiste */   /* GPU 5: D1 0,087 / D2 0,117 bei 68 px */
@keyframes rl-ein { from { opacity: 0; transform: translateX(-50%) scale(.82); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes rl-aus { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* ── schwebende Beträge ─────────────────────────────────────────────────────── */
.rl-schwebe-ebene { position: fixed; inset: 0; pointer-events: none; z-index: var(--ui-z-ebene); }
.rl-schwebe { position: absolute; transform: translate(-50%, -50%); padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ui-gold-hell);
  background: rgba(14, 11, 8, .78); border: 1px solid rgba(226, 194, 122, .4); animation: rl-schweben 2.1s ease-out forwards; }
.rl-schwebe.ist-eigen { color: #1A1206; background: var(--ui-gold); border-color: var(--ui-gold-hell); }
.rl-schwebe { text-transform: none; letter-spacing: 0; }   /* R8 Nr. 5: einheitlich „Sie +200“ */
.rl-schwebe.ist-kurz { padding: 2px 6px; font-size: max(12px, min(15px, 1em)); }
.rl-schwebe.ist-kuerzest { padding: 1px 4px; font-size: 12px; }   /* Teil 9: nur der Betrag (Handy, ≤ 0,9 × Feld) */
.rl-schwebe.ist-kuerzest:not(.ist-eigen) { border-width: 2px; }
.rl-schwebe.ist-kompakt { padding: 1px 5px; font-size: 13px; }   /* Teil 20 (Urteil R19 Nr. 1): Kompaktform statt höher, Schrift ≥ 13 CSS */
/* Bildurteil R3 Nr. 3: Aufstieg ≤ 0,25 Zellhöhe (≤ 14 px), nie in eine fremde Zelle; Mitte am gewinnenden Einsatz */
@keyframes rl-schweben { 0% { opacity: 0; transform: translate(-50%, -50%); } 14% { opacity: 1; } 75% { opacity: 1; transform: translate(-50%, calc(-50% - 10px)); } 100% { opacity: 0; transform: translate(-50%, calc(-50% - 14px)); } }

/* ── Betrags-Plaketten über eigenen Stapeln ─────────────────────────────────── */
.rl-plaketten { position: fixed; inset: 0; pointer-events: none; z-index: calc(var(--ui-z-ebene) - 1); overflow: hidden; }
.rl-plakette { position: absolute; left: 0; top: 0; padding: 1px 7px 2px; border-radius: 999px; white-space: nowrap; will-change: transform;
  font-weight: 700; font-size: 12px; line-height: 16px; color: #1A1206; background: rgba(241, 220, 166, .94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
@media (pointer: coarse) { .rl-plakette { font-size: 10px; line-height: 13px; padding: 0 5px 1px; } }
.rl-plakette.ist-fremd { min-width: 0; width: 16px; height: 16px; padding: 0; line-height: 14px; text-align: center; font-size: 10px;
  color: #F4EBDA; background: rgba(14, 11, 8, .82); border: 2px solid; box-sizing: border-box; }
.rl-legende { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ui-ink-2); padding: 2px 4px; }
.rl-legende[hidden] { display: none; }
.rl-legende-eintrag { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rl-legende-eintrag i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid; box-sizing: border-box; }
.rl-modus .ui-segment > button { min-width: 44px; min-height: 44px; }

/* ── Tooltip-Fuß, Statistik ─────────────────────────────────────────────────── */
/* Teil 12 (Urteil R11 Nr. 6): Feld-Tooltip ≥ 14 px / 600 */
#ui-tip.rl-tip-gross { font-size: 14px; font-weight: 600; }
/* Teil 13 (Urteil R12 Nr. 5): Tooltip in der Kopfzone über dem Racetrack — Schatten nur nach oben (nicht in die Setzflächen) */
#ui-tip.rl-tip-hud { box-shadow: 0 -6px 16px -6px rgba(0, 0, 0, .55); transform: none; }
.rl-hoverkante { position: fixed; z-index: 5; pointer-events: none; box-sizing: border-box; border: 2px solid #E2C27A; border-radius: 6px;
  box-shadow: 0 0 10px rgba(241, 220, 166, .45), inset 0 0 6px rgba(241, 220, 166, .25); }
.rl-hoverkante[hidden] { display: none; }
.rl-tip-fuss { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(226, 194, 122, .18); font-size: 12px; color: var(--ui-ink-3); }
.rl-verteilung-n { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ui-ink-3); }
.rl-hk-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rl-heisskalt { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-hk { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.rl-hk-n { font-size: 12px; color: var(--ui-ink-3); }

@media (prefers-reduced-motion: reduce) { .rl-schwebe, .rl-ergebnis { animation-duration: 1ms; } }
html[data-bewegung="reduziert"] .rl-schwebe, html[data-bewegung="reduziert"] .rl-ergebnis { animation-duration: 1ms; }

/* Grundregel (Bildurteil R4 P0): Lupe/Segmentschalter nur hochkant — MUSS vor dem Hochkant-Block stehen, sonst gewinnt
   sie bei gleicher Spezifität die Kaskade und blendet die Zeile auch hochkant aus (roulette.css:194, Runde 4). */
.rl-lupe-zeile { display: none; }

/* ── Handy hochkant ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) and (orientation: portrait) {
  .rl-oben-links { top: calc(62px + env(safe-area-inset-top)); left: 8px; gap: 6px; }
  .rl-oben-links .ui-konto { min-width: 0; padding: 6px 12px 7px; }
  .rl-oben-links .ui-konto-wert { font-size: 17px; }
  .rl-oben-links .ui-konto-label, .rl-einsatz-label { font-size: 11px; }
  .rl-einsatz { min-width: 0; padding: 6px 12px 7px; gap: 2px; }
  .rl-einsatz-zahl { font-size: 17px; }
  .rl-oben-rechts { top: calc(62px + env(safe-area-inset-top)); right: 8px; padding: 4px 4px 4px 8px; gap: 4px; }
  .rl-verlauf .ui-kugel { width: 28px; height: 28px; font-size: 12px; }
  .rl-verlauf .ui-kugel.ist-neu { width: 32px; height: 32px; font-size: 13px; }
  .rl-oben-rechts .ui-knopf { --h: 44px; width: 44px; }
  /* Bildurteil R4 Nr. 1: Guthaben/Einsatz in der Kopfleiste (Titel aus), Statuszeile = Phase + letzte Zahlen in EINER
     flachen Zeile (offline 26 px; online wächst sie mit dem Frist-Ring), Statistik neben der Lupe */
  .ui-kopf .ui-kopf-titel { display: none; }
  .rl-kopf-konto { display: flex; align-items: stretch; gap: 4px; min-width: 0; flex: 0 1 auto; }
  .rl-kopf-konto .ui-konto, .rl-kopf-konto .rl-einsatz { min-width: 0; padding: 3px 8px 4px; gap: 1px; justify-content: center; }
  .rl-kopf-konto .ui-konto-wert, .rl-kopf-konto .rl-einsatz-zahl { font-size: 15px; line-height: 1.1; }
  .rl-kopf-konto .ui-konto-wert .ui-icon { width: 12px; height: 12px; }
  .rl-kopf-konto .ui-konto-label, .rl-kopf-konto .rl-einsatz-label { font-size: 11px; letter-spacing: .04em; }
  .rl-unten-zeile { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 26px; }
  .rl-unten-zeile .rl-phase { position: static; transform: none; flex: 0 1 auto; justify-content: flex-start; height: auto; min-height: 26px; padding: 0 10px; min-width: 0; gap: 6px; }
  .rl-unten-zeile .rl-phase-text { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rl-unten-zeile .rl-verlauf { margin-left: auto; min-width: 0; overflow: hidden; display: flex; justify-content: flex-end; }
  .rl-unten-zeile .rl-verlauf .ui-verlauf { gap: 4px; }
  .rl-unten-zeile .rl-verlauf .ui-kugel { width: 24px; height: 24px; font-size: 11px; }
  .rl-unten-zeile .rl-verlauf .ui-kugel.ist-neu { width: 26px; height: 26px; font-size: 12px; }
  .rl-lupe-zeile > .ui-knopf:not(.rl-lupe) { margin-left: auto; --h: 44px; width: 44px; }
  .rl-phase-text { font-size: 14px; }
  .rl-unten { left: 8px; right: 8px; transform: none; bottom: max(8px, env(safe-area-inset-bottom)); flex-direction: column; gap: 8px; }
  .rl-unten .ui-chips { width: 100%; justify-content: space-between; box-sizing: border-box; padding: 8px 10px 10px; }
  .rl-unten .ui-aktionen { width: 100%; box-sizing: border-box; padding: 8px; border-radius: 18px; }
  /* Bildurteil R3 Nr. 4: eine Zeile, Nebenknöpfe als Symbol (48 px), „Drehen“ ≥ 1,3 × so breit; Safe-Area unten */
  .rl-unten { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .rl-unten .ui-aktionen-zeile { grid-auto-flow: column; grid-template-columns: repeat(3, 48px) minmax(0, 1fr); gap: 6px; }
  .rl-unten .ui-aktionen-zeile > .ui-knopf.rl-drehen { min-width: 0; }
  .rl-unten .ui-aktionen-zeile .ui-knopf:not(.rl-drehen) .ui-knopf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rl-unten .ui-aktionen-zeile .ui-knopf { min-height: 48px; padding: 0 10px; font-size: 14px; gap: 6px; justify-content: center; }
  .rl-lupe-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
  .rl-lupe-zeile .ui-segment > button { min-height: 44px; min-width: 44px; padding: 0 12px; font-size: 14px; }
  .rl-unten.ist-zu .rl-lupe-zeile { display: none; }
  .rl-unten .ui-aktionen-zeile .ui-knopf .ui-knopf-wert { display: none; }
  .rl-unten .ui-aktionen-zeile > .ui-knopf:last-child:nth-child(odd) { grid-column: auto; }
  .rl-unten .ui-aktionen-zeile > .ui-knopf[hidden] { display: none; }
  .rl-spielgeld { display: none; }
  .rl-ergebnis { top: auto; bottom: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; gap: 12px; padding: 6px 14px 6px 12px; min-height: 84px; min-width: 350px; max-width: calc(100vw - 16px); }
  .rl-erg-gewinn { padding-left: 10px; column-gap: 8px; }
  .rl-erg-betrag { font-size: 32px; }
  .rl-erg-netto { font-size: 12px; }
  .rl-erg-farbe { font-size: 14px; }
  .rl-legende { font-size: 11px; }
  .rl-ergebnis .rl-erg-zahl { font-size: 48px; padding: 1px 10px 3px; border-radius: 14px; }
  .rl-ansage { font-size: 28px; }
  .rl-unten.ist-zu .ui-chips, .rl-unten.ist-zu .ui-aktionen { display: none; }
}

/* ── Handy quer ─────────────────────────────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .rl-oben-links { top: calc(58px + env(safe-area-inset-top)); left: 10px; gap: 6px; }
  .rl-oben-links .ui-konto, .rl-einsatz { min-width: 0; padding: 5px 10px 6px; gap: 1px; }
  .rl-oben-links .ui-konto-wert, .rl-einsatz-zahl { font-size: 16px; }
  .rl-oben-links .ui-konto-label, .rl-einsatz-label { font-size: 11px; }
  .rl-oben-rechts { top: calc(58px + env(safe-area-inset-top)); right: 10px; padding: 3px 3px 3px 8px; }
  .rl-verlauf .ui-kugel { width: 26px; height: 26px; font-size: 12px; }
  .rl-verlauf .ui-kugel.ist-neu { width: 30px; height: 30px; }
  .rl-oben-rechts .ui-knopf { --h: 44px; width: 44px; }
  .rl-phase { top: calc(8px + env(safe-area-inset-top)); height: 36px; }
  .rl-unten { bottom: max(6px, env(safe-area-inset-bottom)); gap: 8px; }
  .rl-unten .ui-chips { padding: 6px 10px 8px; gap: 4px; }
  .rl-unten .ui-aktionen { padding: 6px; }
  .rl-unten .ui-aktionen-zeile .ui-knopf { min-height: 46px; padding: 0 10px; font-size: 13px; }
  .rl-unten .ui-aktionen-zeile .ui-knopf .ui-knopf-wert { display: none; }
  .rl-spielgeld { display: none; }
  .rl-ergebnis { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); min-width: 0; min-height: 0; gap: 16px; padding: 8px 20px 10px; }
  .rl-ergebnis .rl-erg-zahl { font-size: 52px; padding: 4px 12px 6px; border-radius: 16px; }
  .rl-erg-betrag { font-size: 34px; }
  .rl-erg-farbe { font-size: 16px; }
}

/* Lupe + Segmentschalter (Nahansicht/Racetrack) nur hochkant auf dem Handy, im Daumenbereich über der Chipleiste —
   die Grundregel „aus“ steht im Hochkant-Block VORHER (Bildurteil R4 P0: hier unten gewann sie die Kaskade) */
.rl-lupe { min-width: 44px; min-height: 44px; gap: 6px; }
.rl-lupe-bereich { font-size: 12px; color: var(--ui-ink-3); }
@media (max-width: 640px) and (orientation: portrait) { .rl-lupe.ist-an { color: var(--ui-gold, #D9B76E); } }

/* Hochkant kompakt (Bildurteil R4 Nr. 1, M1k innerHeight < 700): flachere Kopfleiste und Leisten, Chipleiste ohne
   Luft — jede Zeile bleibt ≥ 44 px Touch-Ziel, das Tableau gewinnt die Höhe (Ziel Reihen ≥ 30 CSS-px). */
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  .ui-kopf { height: 50px; }
  .rl-unten { gap: 5px; bottom: max(4px, env(safe-area-inset-bottom)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .rl-unten .ui-chips { padding: 3px 8px 3px; gap: 4px; }
  .rl-unten .ui-aktionen { padding: 4px 6px; border-radius: 16px; }
  .rl-unten .ui-aktionen-zeile .ui-knopf { min-height: 44px; }
  .rl-unten-zeile, .rl-unten-zeile .rl-phase { min-height: 24px; }
}

/* ── Teil 6 (Bildurteil R5) ─────────────────────────────────────────────────── */
/* Nr. 5: Leiste an die Tableau-Goldkante angedockt (Hub per JS, quer ≥ 601 px hoch; sicherRect rechnet ihn heraus) */
@media (min-height: 601px) and (min-width: 641px) { .rl-unten { bottom: calc(max(68px, 9vh) + env(safe-area-inset-bottom) + var(--rl-hub, 0px)); } }
/* Nr. 6: Mitspieler-Kennung — Initialen-Plakette 20 × 20, 12 px/700, 3-px-Ring in Sitzfarbe; Legende 13 px mit
   10-px-Farbpunkt und Hinweis „Farbe = Mitspieler“ */
.rl-plakette.ist-fremd { width: 20px; height: 20px; padding: 0; line-height: 14px; font-size: 12px; font-weight: 700; border-width: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.rl-legende { font-size: 13px; gap: 4px 12px; align-items: center; }
.rl-legende-hinweis { color: var(--ui-ink-3); }
.rl-legende-eintrag i { width: 10px; height: 10px; border: 0; }
.rl-legende-initial { display: none; }
/* Nr. 4: „netto“ im Vollbild lesbar (Glyphenhöhe ≥ 24 px) */
@media (min-width: 641px) and (min-height: 601px) { .rl-erg-netto { font-size: 22px; } }   /* Teil 17: 30 → 22 px (Korridor 16–24) */   /* Teil 16 (Urteil R15 Nr. 6: netto D1/D2 28 px, Korridor 16–24): 38 → 30 px */   /* R6 Nr. 6: Glyphe ≥ 24 px (32 px → ≈ 22) */
/* Nr. 1: echter Segmentschalter hochkant — EIN Rahmen, Segmente nach Inhalt breit (nie „Racetra…“), aktiv als Goldfläche
   (#E2C27A auf #1A1206 ≈ 10,8:1), inaktiv #F3E7C4; Lupe ≥ 112 px; Legende als Punkt + Initiale in der Statuszeile
   (oben bleibt keine Zeile, das Tableau gewinnt ≈ 40 px Höhe) */
@media (max-width: 640px) and (orientation: portrait) {
  .rl-lupe-zeile { gap: 6px; }
  .rl-lupe-zeile .ui-segment { flex: none; grid-auto-columns: auto; gap: 0; padding: 0; border: 1px solid rgba(226, 194, 122, .55);
    border-radius: 22px; background: rgba(10, 8, 6, .62); overflow: hidden; }
  .rl-lupe-zeile .ui-segment > button { min-height: 44px; min-width: 44px; width: auto; padding: 0 12px; border-radius: 0; font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: visible; text-overflow: clip; color: #F3E7C4; background: transparent; box-shadow: none; }
  .rl-lupe-zeile .ui-segment > button[aria-checked="true"] { background: #E2C27A; color: #1A1206; font-weight: 700; }
  .rl-lupe-zeile .rl-lupe { min-width: 112px; flex: 0 0 auto; white-space: nowrap; }
  .rl-unten-zeile .rl-legende { flex: 0 1 auto; min-width: 0; padding: 0; gap: 2px 8px; flex-wrap: nowrap; overflow: hidden; font-size: 11px; }
  .rl-unten-zeile .rl-legende-hinweis, .rl-unten-zeile .rl-legende-name { display: none; }
  .rl-unten-zeile .rl-legende-eintrag { gap: 3px; }
  .rl-unten-zeile .rl-legende-initial { display: inline; font-weight: 700; color: #F4EBDA; }
}
/* GPU 6a (M1k Reihen 26 → Ziel 28): hochkant offline keine leere Pille oben rechts; M1k Leisten enger (Ziele bleiben ≥ 44 px) */
@media (max-width: 640px) and (orientation: portrait) { .rl-oben-rechts.ist-offline { display: none; } }
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  .rl-unten { gap: 3px; }
  .rl-unten .ui-chips { padding-top: 1px; padding-bottom: 1px; }
  .rl-unten-zeile, .rl-unten-zeile .rl-phase { min-height: 22px; }
}

/* ── Bodenleiste D1/D2 (Bildurteil R6 Nr. 4): „Letzte Zahlen“ als Anzeigetafel + Einsatz gesamt · Tischlimit ─────────── */
.rl-boden { display: none; }
@media (min-height: 601px) and (min-width: 641px) {
  .rl-boden { position: fixed; z-index: calc(var(--ui-z-leiste) - 1); left: 0; right: 0; bottom: 0; height: var(--rl-boden-h, 150px); box-sizing: border-box;
    display: flex; align-items: center; gap: 14px; padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); pointer-events: none;
    background: rgba(18, 13, 9, .80); border-top: 1px solid rgba(226, 194, 122, .45); transition: transform 280ms ease-out, opacity 280ms ease-out; }   /* R7 Nr. 2: L* 8–12 statt 3 */
  .rl-boden.ist-zu { transform: translateY(100%); opacity: 0; }
  .rl-boden-titel { display: flex; flex-direction: column; gap: 3px; width: 72px; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #E2C27A; }
  /* Bildurteil R8 Nr. 2: EINE Zeile, neueste links 1,2× mit Goldrahmen; Rot/Zéro im Farbton des Urteils (#B3263A/#1F7A4C),
     abgedunkelt auf 7,1:1 zu den Ziffern #F3E7C4 (#B3263A erreicht nur 5,2:1, selbst Weiß 6,4:1); Schwarz #141010 mit Goldring */
  .rl-tafel { display: flex; gap: 6px; align-items: center; align-self: center; }
  .rl-tafel-sp { display: block; }
  /* GPU 7a: die Leisten-Ränder (10–12 px) waren strukturlose Zeilen zwischen Kante, Leiste und Tafel */
  .rl-unten .ui-chips { padding-top: 6px; padding-bottom: 6px; }
  .rl-unten .ui-aktionen { padding-top: 6px; padding-bottom: 6px; }
  .rl-tafel-z { display: grid; place-items: center; width: var(--rl-tz, 46px); height: var(--rl-tz, 46px); box-sizing: border-box; border-radius: 9px;
    font-style: normal; font-weight: 700; font-size: max(18px, calc(var(--rl-tz, 46px) * .46)); line-height: 1; color: #F3E7C4; font-variant-numeric: tabular-nums;
    background: #141010; box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .5); }
  .rl-tafel-sp[data-farbe="rot"] .rl-tafel-z { background: #8F1E2E; box-shadow: inset 0 0 0 1px rgba(255, 220, 200, .22); }
  .rl-tafel-sp[data-farbe="gruen"] .rl-tafel-z { background: #165535; box-shadow: inset 0 0 0 1px rgba(200, 255, 220, .22); }
  .rl-tafel-sp.ist-neu .rl-tafel-z { width: calc(var(--rl-tz, 46px) * 1.2); height: calc(var(--rl-tz, 46px) * 1.2); font-size: max(22px, calc(var(--rl-tz, 46px) * .56));
    outline: 2px solid #E2C27A; outline-offset: 1px; }
  .rl-tafel-sp[hidden] { display: none; }
  .rl-tafel-sp.ist-einlauf { animation: rl-einlauf 400ms cubic-bezier(.2, .9, .3, 1) both; }   /* R7 Nr. 2: neue Zahl läuft ein */
  .rl-tafel-leer { align-self: center; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #CDBB93; }
  .rl-tafel-leer[hidden] { display: none; }
  .rl-boden-info { margin-left: auto; display: flex; gap: 22px; align-items: baseline; align-self: flex-start; padding-top: 9px; font-size: 16px; color: #F3E7C4; }
  .rl-oben-rechts .rl-verlauf { display: none; }   /* R8 Nr. 2: Kopf-Historie entfällt in D1/D2 (Doppelung zur Leiste) */
  .rl-boden-info b { margin-left: 10px; font-weight: 700; font-size: 20px; color: #F1DCA6; }
  .rl-boden-k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #CDBB93; }
  .rl-spielgeld { left: auto; right: max(24px, env(safe-area-inset-right)); bottom: max(7px, env(safe-area-inset-bottom)); }
  .rl-ergebnis { transition: left 600ms ease-in-out, bottom 600ms ease-in-out, box-shadow 160ms ease-out; }
  /* Bildurteil R7 Nr. 2: Bühne dockt oben an die Leiste (Unterkante = Leisten-Oberkante − 8 px), flach (≈ 76 px) — sie liegt im
     Streifen der im Ergebnis eingefahrenen Chipleiste, Tableau-Kante und Kugel im Fach bleiben frei */
  .rl-ergebnis.ist-boden { left: 50%; bottom: calc(var(--rl-boden-h, 150px) + 8px); min-height: 0; min-width: 600px; gap: 22px; padding: 6px 26px 7px; border-radius: 18px; }
  .rl-ergebnis.ist-boden .rl-erg-zahl { font-size: 54px; padding: 3px 14px 5px; border-radius: 16px; }
  .rl-ergebnis.ist-boden .rl-erg-betrag { font-size: 44px; }
  .rl-ergebnis.ist-boden .rl-erg-gewinn { row-gap: 0; }
  /* Teil 11 (Urteil R10 Nr. 3): Bühne als Höhepunkt — Betrag 44 → 72 px (≥ 1,6 ×), netto als Untertitel, Goldkante */
  .rl-ergebnis.ist-boden .rl-erg-betrag { font-size: 72px; line-height: 1; }
  .rl-ergebnis.ist-boden .rl-erg-gewinn { grid-template-columns: auto; }
  .rl-ergebnis.ist-boden .rl-erg-gewinn .rl-erg-kicker { grid-column: 1; }
  .rl-ergebnis.ist-boden .rl-erg-netto { font-size: 22px; white-space: nowrap; }
  .rl-ergebnis.ist-boden .rl-erg-einsatz { display: inline; }
  .rl-ergebnis.ist-boden.ist-gewinn { box-shadow: 0 0 0 2px rgba(226, 194, 122, .9), 0 0 28px rgba(241, 220, 166, .30); }
  /* Teil 12 (Urteil R11 Nr. 2): Gewinnzahl der Bühne 54 → 76 px (≥ 1,4 ×), Polster knapper (Höhe bleibt beim 72-px-Betrag) */
  .rl-ergebnis.ist-boden .rl-erg-zahl { font-size: 76px; padding: 0 14px 2px; }
  /* Teil 13 (Urteil R12 Nr. 6): Bühne als Höhepunkt — Betrag 72 → 104 px, netto 22 → 28 px; feste Höhe der Auszahlungs-Bühne schon
     ab e (die Szene komponiert über ihrer Oberkante → Abstand zu den Außenwetten bleibt in e2), Lichtimpuls über die ganze Fläche */
  .rl-ergebnis.ist-boden { min-height: 178px; align-items: center; }
  /* Teil 13 (Urteil R12 Nr. 6: Abstand Bühne ↔ Außenwetten ≥ 8 px — e2-Oberkante 863 lag über der Außenwetten-Unterkante 921):
     die Bühne dockt LINKS unter dem Kessel an (nur der Holzkranz liegt darunter; Fach, Kugel und Ziffern bleiben frei), neben
     statt über dem Tableau — rechts endet sie vor der Tableau-Kante (34 vw) */
  .rl-ergebnis.ist-boden { left: max(16px, env(safe-area-inset-left)); transform: none; min-width: 0; max-width: calc(34vw - 16px); }
  .rl-ergebnis.ist-boden.ist-weg { animation: rl-aus-boden 380ms ease both; }
  .rl-ergebnis.ist-boden .rl-erg-betrag { font-size: 104px; line-height: .95; }
  .rl-ergebnis.ist-boden .rl-erg-netto { font-size: 22px; }   /* Teil 17 (Urteil R16 Nr. 5: netto D1/D2 28, Korridor 16–24): 28 → 22 px */
  /* Teil 13 F: links angedockt ohne translateX(−50 %) — eigener Einblender (rl-ein schöbe die Bühne beim Erscheinen halb aus dem Bild) */
  .rl-ergebnis.ist-boden { animation-name: rl-ein-boden; }
}
@keyframes rl-ein-boden { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rl-aus-boden { to { opacity: 0; } }
@media (max-width: 640px) and (orientation: portrait) { .rl-erg-betrag { font-size: 46px; } }
/* Teil 13 F (runde13c M1k e: Verlust-Objekt 41,5 an der Bühnen-Oberkante — der 60-px-Schein lag über dem Tableau): hochkant
   Impuls ohne weiten Außenschein */
@media (max-width: 640px) and (orientation: portrait) { .rl-ergebnis.ist-impuls { box-shadow: inset 0 0 0 999px rgba(255, 232, 170, .36),
  0 0 0 2px rgba(255, 236, 180, 1); } }
.rl-erg-einsatz { display: none; }
.rl-erg-betrag.ist-puls { animation: rl-puls 750ms ease-out both; }
/* Teil 12 (Urteil R11 Nr. 2): Lichtimpuls der Gewinnzahl (Goldschein 0,9 s, danach gehaltenes Glimmen) */
.rl-erg-zahl.ist-zahlpuls { animation: rl-zahlpuls 900ms ease-out both; }
@keyframes rl-zahlpuls { 0% { box-shadow: 0 0 0 0 rgba(255, 236, 180, 0); } 35% { box-shadow: 0 0 0 3px rgba(255, 236, 180, .95), 0 0 36px 6px rgba(255, 226, 150, .75); } 100% { box-shadow: 0 0 0 2px rgba(241, 220, 166, .8), 0 0 22px 2px rgba(255, 226, 150, .38); } }
html[data-bewegung="reduziert"] .rl-erg-zahl.ist-zahlpuls { animation-duration: 1ms; }
@keyframes rl-puls { 0% { text-shadow: 0 0 0 rgba(255, 236, 180, 0); } 30% { text-shadow: 0 0 24px rgba(255, 236, 180, .95), 0 0 4px #fff; } 100% { text-shadow: 0 0 8px rgba(255, 236, 180, .35); } }
html[data-bewegung="reduziert"] .rl-erg-betrag.ist-puls { animation-duration: 1ms; }
html[data-bewegung="reduziert"] .rl-boden, html[data-bewegung="reduziert"] .rl-ergebnis { transition-duration: 1ms; }
/* Bildurteil R6 Nr. 5: Lupe-Knopf hochkant lesbar (#F3E7C4 auf #0E3B2C ≈ 11:1, Rand wie der Segmentschalter) */
@media (max-width: 640px) and (orientation: portrait) {
  .rl-lupe-zeile .rl-lupe, .rl-lupe-zeile .rl-lupe.ist-an { background: #0E3B2C; color: #F3E7C4; border: 1px solid rgba(226, 194, 122, .55); }
  .rl-lupe-zeile .rl-lupe .rl-lupe-bereich { color: #F3E7C4; }
}

/* Bildurteil R7 Nr. 2: neue Zahl als erste Kachel (400 ms, Goldrahmen über .ist-neu) */
@keyframes rl-einlauf { from { transform: translateX(-16px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
html[data-bewegung="reduziert"] .rl-tafel-sp.ist-einlauf { animation-duration: 1ms; }

/* Bildurteil R9 Nr. 1 (P1): Statuspille hochkant ohne Ellipse — Breite nach Inhalt bis B − 2 × 12 px, 13 px/600, ≥ 32 px
   hoch. Bei Platzmangel weichen Kopf-Historie (Verlauf) und Legende aus, der Status wird nie gekürzt (kurze Texte rl.hk.*) */
@media (max-width: 640px) and (orientation: portrait) {
  .rl-unten-zeile { min-height: 32px; }
  .rl-unten-zeile .rl-phase, .rl-unten-zeile .rl-phase[data-phase] { flex: 0 0 auto; min-height: 32px; height: auto; max-width: calc(100vw - 24px); box-sizing: border-box; }
  .rl-unten-zeile .rl-phase .rl-phase-text, .rl-unten-zeile .rl-phase[data-phase] .rl-phase-text { font-size: 13px; font-weight: 600; overflow: visible; text-overflow: clip; white-space: nowrap; }
  .rl-unten-zeile .rl-verlauf { flex: 1 1 0; }
  .rl-unten-zeile .rl-legende { flex: 0 1 auto; }
}
/* Bildurteil R9 Nr. 6: quer keine Kopfzeile „Auszahlung +425“, solange die Ergebnisbühne den Betrag zeigt */
.rl-phase.ist-buehne { opacity: 0; transition: opacity .2s; }
/* Bildurteil R9 Nr. 6: Etikett als deckende Pille (#141010 bei 0,85), 15 px/700 (D2 18 px/700), eigenes Etikett mit Goldrand
   statt Goldfläche (Kontrast ≥ 4,5:1 auf jedem Grund) */
.rl-schwebe, .rl-schwebe.ist-eigen { background: rgba(20, 16, 16, .85); color: var(--ui-gold-hell); font-weight: 700; }
.rl-schwebe.ist-eigen { border: 2px solid var(--ui-gold); }
@media (min-width: 2200px) { .rl-schwebe { font-size: 18px; padding: 3px 11px; } }
/* ── Teil 13 (Urteil R12 Nr. 1) ─────────────────────────────────────────────── */
/* Mitspieler-Plakette verlorener Stapel blendet im Ergebnis mit der Jeton-Abdunklung aus (der Platz-Ring war als DOM-Rand
   ungedimmt: exakt #FF6B6B 6.451 px hochkant); Gewinnstapel behalten Ring + Initiale */
.rl-plakette.ist-fremd { transition: opacity .25s ease-out; }
.rl-plakette.ist-fremd.ist-verloren { opacity: 0; }

/* ── Teil 14 (Bildurteil R13) ───────────────────────────────────────────────────────────────────────────────────────── */
/* Nr. 4: Ergebnis-Impuls als LICHT statt flacher Füllung — Verlauf + Strahlen von der Gewinnzahl aus (--rl-ix/--rl-iy aus
   oberflaeche.buehneImpuls), Außenschein, Abklingen 650 ms beim Ende (Beginn der Auszahlung); die Lichtschicht liegt unter dem Text */
.rl-ergebnis { isolation: isolate; }
.rl-ergebnis::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(circle at var(--rl-ix, 18%) var(--rl-iy, 50%), rgba(255, 246, 220, .94) 0, rgba(255, 226, 156, .72) 20%,
      rgba(255, 208, 124, .46) 46%, rgba(255, 196, 110, .22) 74%, rgba(255, 190, 100, .08) 100%);   /* Teil 16 (Urteil R15 Nr. 5): Kartenstrahlen entfernt (Sicht „Clipart“) */
  transition: opacity 650ms cubic-bezier(.2, .7, .3, 1); }
.rl-ergebnis.ist-impuls::before { opacity: 1; transition: opacity 140ms ease-out; }
.rl-ergebnis.ist-impuls, .rl-ergebnis.ist-boden.ist-impuls { box-shadow: 0 0 0 3px rgba(255, 236, 180, 1), 0 0 44px 14px rgba(255, 214, 130, .62),
  0 0 120px 36px rgba(255, 196, 110, .26); }
@media (max-width: 640px) and (orientation: portrait) {
  .rl-ergebnis.ist-impuls { box-shadow: 0 0 0 2px rgba(255, 236, 180, 1), 0 0 40px 12px rgba(255, 214, 130, .55); }
  /* Nr. 5: netto hochkant ≥ 16 px (vorher 12) */
  .rl-ergebnis .rl-erg-netto { font-size: 16px; }
}
html[data-bewegung="reduziert"] .rl-ergebnis::before { transition-duration: 1ms; }
/* Nr. 5: Handy quer (M2) — Bühne in der Kopfzone statt über den Außenwetten/Gewinnjetons (Hook −52,9 CSS) */
@media (max-height: 500px) and (orientation: landscape) {
  .rl-ergebnis { top: calc(4px + env(safe-area-inset-top)); bottom: auto; max-height: 100px; padding: 6px 18px 6px; }
}
/* Nr. 5: M1k (≤ 699 px hoch) — Bühne über der Status-/Verlaufszeile (runde13 −0,3 CSS, runde14b mit 50 px noch 4,7 CSS und 2 Stapel
   unter der Bühne); die Zeile wiederholt im Ergebnis nur die Bühne */
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  .rl-ergebnis { bottom: calc(4px + env(safe-area-inset-bottom)); }
}
/* Nr. 5: Gewinn-Etikett seitlich am Stapel mit Pin (statt über der Feld-Oberkante), ohne Aufstieg; sonst Aufstieg 6 statt 14 px */
.rl-schwebe { animation-name: rl-schweben14; }
@keyframes rl-schweben14 { 0% { opacity: 0; transform: translate(-50%, -50%); } 14% { opacity: 1; } 75% { opacity: 1; transform: translate(-50%, calc(-50% - 4px)); } 100% { opacity: 0; transform: translate(-50%, calc(-50% - 6px)); } }
.rl-schwebe.ist-pin-links, .rl-schwebe.ist-pin-rechts { animation-name: rl-pin14; }
@keyframes rl-pin14 { 0% { opacity: 0; } 14% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.rl-schwebe.ist-pin-links::after, .rl-schwebe.ist-pin-rechts::after { content: ''; position: absolute; top: 50%; width: 0; height: 0;
  border: 6px solid transparent; transform: translateY(-50%); }
.rl-schwebe.ist-pin-links::after { right: 100%; border-right-color: var(--ui-gold, #D9B76E); }
.rl-schwebe.ist-pin-rechts::after { left: 100%; border-left-color: var(--ui-gold, #D9B76E); }
/* Nr. 6: Tooltip hochkant/Touch in der Kopf- bzw. Fußzone (oberflaeche.feldTip setzt left/top) */
#ui-tip.rl-tip-kopf { transform: none; max-width: min(92vw, 420px); }
/* Teil 14 (runde14b Sicht M2 e: „GEWINNZAHL“ über den Strahlen kontrastarm): Texte der Bühne im Impuls mit dunklem Halo, heller */
.rl-ergebnis.ist-impuls .rl-erg-kicker, .rl-ergebnis.ist-impuls .rl-erg-farbe, .rl-ergebnis.ist-impuls .rl-erg-netto { color: #FFF4DC;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .7); }
/* Teil 15 (Urteil R14 Nr. 4): Handy hochkant und quer — Brutto/Netto als zwei beschriftete Zeilen („GEWINN 425“ / „netto +120“),
   netto 18 px (Korridor 16–24); die Lage hochkant setzt main.js (buehneHochkant: top in px, frei von Gewinnstapeln) */
@media (max-width: 640px) and (orientation: portrait), (max-height: 500px) and (orientation: landscape) {
  .rl-ergebnis .rl-erg-gewinn { grid-template-columns: auto auto; row-gap: 0; align-items: baseline; }
  .rl-ergebnis .rl-erg-gewinn .rl-erg-kicker { grid-column: 1; }
  .rl-ergebnis .rl-erg-betrag { grid-column: 2; line-height: 1.05; }
  .rl-ergebnis .rl-erg-netto { grid-column: 1 / 3; font-size: 18px; line-height: 1.15; white-space: nowrap; }
}
/* Teil 15 (Urteil R14 Nr. 1): hochkant im Fach-Moment Kopf-Abdunklung über dem unscharfen Kesselrand (Kopfband kopfUnten…Kranz-
   Oberkante 0,17–0,23 H; Ziel Median − Szene −6…+6) — endet vor dem Zahlenkranz, Kugel (0,30–0,42 H) unberührt */
.rl-kopf-scrim { position: fixed; left: 0; right: 0; top: 0; height: 21vh; pointer-events: none; z-index: 1; opacity: 0;
  /* Teil 16 (Urteil R15 Nr. 1: Kopfband − Szene −11, p16b1 −10,8): .30 → .12 (Hook/A-B: --rl-kopf-scrim, ?test&kopfscrim=<Deckkraft>) */
  background: linear-gradient(to bottom, rgba(7, 5, 3, var(--rl-kopf-scrim, .12)) 0%, rgba(7, 5, 3, calc(var(--rl-kopf-scrim, .12) * .87)) 45%,
    rgba(7, 5, 3, calc(var(--rl-kopf-scrim, .12) * .4)) 75%, rgba(7, 5, 3, 0) 100%);
  transition: opacity 260ms ease-out; }
@media (max-width: 640px) and (orientation: portrait) { body.rl-im-fach .rl-kopf-scrim { opacity: 1; } }
/* Nr. 6: Gewinnzahl-Karte im Fach-Moment gedämpft (Kugel bleibt der Held), voll mit der Rückkehr zum Tableau */
body.rl-im-fach .rl-ergebnis { filter: brightness(.78) saturate(.9); }
html[data-bewegung="reduziert"] .rl-kopf-scrim { transition-duration: 1ms; }
/* Teil 15 (Urteil R14 Nr. 4, p15a M2 e2: nächster Gewinnstapel 57,4, Außenwetten 151,7 CSS — Korridore 4–40 / 20–140): Bühne quer-Handy
   20 px tiefer (Zahlenraster dann ≈ 18 CSS, Korridor 12–60) */
@media (max-height: 500px) and (orientation: landscape) { .rl-ergebnis { top: calc(24px + env(safe-area-inset-top)); } }

/* Teil 16 (Mehrspieler 1b): Einladen nur an Privattischen; Bestätigung „Link kopiert“ über ALLEN Ebenen (Dialog 80, Toasts 70) */
.rl-einladen[hidden], .rl-einladen-ok[hidden] { display: none !important; }
.rl-einladen { box-shadow: inset 0 0 0 1px rgba(226, 194, 122, .55); }
.rl-einladen-ok { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 2147483000;
  padding: 10px 16px; border-radius: 12px; background: rgba(18, 13, 9, .94); border: 1px solid rgba(226, 194, 122, .6); color: #f3e6c8;
  font-size: 15px; font-weight: 600; line-height: 1.3; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); pointer-events: none;
  max-width: min(92vw, 520px); text-align: center; overflow-wrap: anywhere; }
@media (max-height: 500px) and (orientation: landscape) { .rl-einladen { margin-top: 4px; } }   /* M2: 3 px Überlappung mit der Kopfleiste (einladen e1) */
/* Teil 17 (Urteil R16 Nr. 3): Wurf hochkant — Kopf und Fußzeile treten zurück, solange die Kugel läuft (Kugel als Held).
   Teil 18 (Urteil R17 Nr. 1, Rückschritt: Deckkraft .55 senkte „Am Tisch“/„Einsatz“ auf 2,91/2,92:1, Gate auf 4 Wurfseiten rot): Texte behalten
   VOLLE Deckkraft. Zurück tritt nur, was über der Kugel-Schwelle (Kugel-p99 − 10 ≈ L* 84–86, runde17s3) lag: Hell-Tinte --ui-ink (L* 94,5 →
   #CFC6B7 L* 80) und Hellgold --ui-gold-hell (L* 88,6 → Gold L* 80) — beide bleiben über L* 72 (Summe hell) und ≥ 11:1 gegen den Kopfgrund;
   helle Akzente: Goldring des aktiven Ton-Knopfs, Pillen-Rand „Nichts geht mehr“, Historien-Chips (weiße Ziffern L* 100) über die Helligkeit
   des ganzen Chips (Ziffer und Grund gemeinsam → Kontrast bleibt), Ring des neuen Chips ohne Glimmen. Labels (--ui-ink-3, L* 65) unverändert.
   ?test&wurfhud=t17 = Teil-17-Fassung (Deckkraft .55) für das A/B im selben Lauf. */
html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .ui-kopf, html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .rl-unten-zeile { --ui-ink: #CFC6B7; --ui-gold-hell: #E2C27A; }
html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .ui-kopf-gruppe .ui-knopf--icon[aria-pressed="true"] { border-color: rgba(226, 194, 122, .4); background: rgba(226, 194, 122, .08); }
html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .rl-unten-zeile .rl-phase[data-phase="drehen"] { border-color: rgba(226, 194, 122, .28); }
html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .rl-unten-zeile .ui-kugel { filter: brightness(.76); }
html.rl-wurf-fokus:not([data-rl-wurfhud="t17"]) .rl-unten-zeile .ui-kugel.ist-neu { box-shadow: 0 0 0 2px rgba(226, 194, 122, .5); }
html.rl-wurf-fokus[data-rl-wurfhud="t17"] .ui-kopf, html.rl-wurf-fokus[data-rl-wurfhud="t17"] .rl-unten-zeile { opacity: .55; transition: opacity .3s ease; }

/* Teil 20 (Urteil R19 Nr. 5: quer-Handy-Bühne 76 CSS hoch über Titel, Ton-Knopf, Historie und Legende — Bühne ∩ Kopf 13.142 CSS²): kompakte Bühne
   (≤ 44 CSS) im freien Band RECHTS der Konto-Gruppe (runde19 M2 e/e2: Kopf-Rechtecke unter y 58 nur bei x 10–188; obere Zahlenreihe ab y 118; Gewinnstapel
   ab y ≈ 112) — y 58–102, Mitte 50 % + 90 px (M2: x ≈ 292–732), EINE Zeile „9 · Auszahlung 425 · netto +120 · Einsatz 305“ — Betrag mit Bezug (Auszahlung
   inkl. Einsatz, netto = Auszahlung − Einsatz). Nicht y 106 (erste Fassung c1693ef: läge über der oberen Zahlenreihe 118–152). ?test&buehne=t19 = Teil 19. */
@media (max-height: 500px) and (orientation: landscape) {
  html:not(.rl-buehne-t19) .rl-ergebnis { top: calc(58px + env(safe-area-inset-top)); bottom: auto; left: calc(50% + 90px); max-width: 440px; gap: 10px;
    padding: 3px 12px 3px 5px; min-height: 0; max-height: 44px; border-radius: 14px; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-zahl { font-size: 28px; padding: 1px 8px 2px; border-radius: 10px; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-text { display: none; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-gewinn { grid-template-columns: auto auto auto; column-gap: 8px; padding-left: 10px; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-gewinn .rl-erg-kicker { grid-column: auto; font-size: 11px; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-betrag { font-size: 22px; min-width: 0; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-netto { font-size: 16px; white-space: nowrap; }
  html:not(.rl-buehne-t19) .rl-ergebnis .rl-erg-einsatz { display: inline; }
}

/* Teil 21 (Urteil R20 Nr. 3: Bühne M2 über Legende/Historie ∩ Kopf 6.510 CSS², 54 CSS vom Gewinnstapel; M1k e ∩ Fußlegende 1.720 CSS²): M2 — Bühne im
   freien unteren Band (Reling, y > 1000 px), Höhe ≤ 44 CSS wie Teil 20; M1k — Bühne 44 CSS über dem Fuß (Legende y ≈ 628–648) und flacher (Zahl 44 px).
   ?test&buehne=t20 = Teil 20 (M2 Band y 58–102, M1k unten 4 px). */
@media (max-height: 500px) and (orientation: landscape) {
  html:not(.rl-buehne-t19):not(.rl-buehne-t20) .rl-ergebnis { top: auto; bottom: calc(6px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  html:not(.rl-buehne-t20) .rl-ergebnis { bottom: calc(44px + env(safe-area-inset-bottom)); padding-top: 3px; padding-bottom: 3px; }
  html:not(.rl-buehne-t20) .rl-ergebnis .rl-erg-zahl { font-size: 44px; padding: 3px 10px 5px; }
}

/* Teil 22 (Urteil R21 Nr. 1, Rückschritt zuerst): hochkant flache Bühne 56–64 CSS (Betrag 32 ≤ 36 px, Zahl 40 px, netto 16 px) — die Lage setzt main.js
   (buehneHochkant: freies Band zwischen Tableau-Unterkante inkl. Jetons + 8 und Fuß − 8, in e UND e2); M1k: Fußzeile im Ergebnis 6 CSS tiefer (Leiste zu,
   padding-bottom 0), damit das Band ≥ 56 + 16 CSS hat; M2: Bühne 30 CSS flach, ≥ 22 CSS über dem unteren Rand (Home-Leiste quer ≈ 21 CSS), Legende
   bricht vor der Historienleiste um. ?test&buehne=t21 = Teil 21. */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis { min-height: 56px; max-height: 64px; padding-top: 4px; padding-bottom: 4px; }
  /* F2: Zahl 48 px (40 px aus 8677f59 verletzte die Lesbarkeits-Pflicht ≥ 48 px — smoke r76 „M1 gewinnzahl ui >= 48px: fs 40“); 48 + 2 + 2 × 4 = 58 CSS */
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-zahl { font-size: 48px; padding: 0 10px 2px; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-betrag { font-size: 32px; line-height: 1.04; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-netto { font-size: 16px; line-height: 1.12; }
}
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-unten.ist-zu { padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis { bottom: max(22px, calc(6px + env(safe-area-inset-bottom))); max-height: 32px;
    padding-top: 1px; padding-bottom: 1px; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-zahl { font-size: 22px; padding: 0 7px 1px; border-radius: 8px; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-betrag { font-size: 19px; }
  html:not(.rl-buehne-t21) .rl-oben-links .rl-legende { max-width: calc(46vw - 200px); }
}
.rl-erg-aufschl { white-space: nowrap; }
/* Teil 22 kal22: M1k e2 61 CSS hoch im 74-CSS-Band (Fuß 6 CSS ✗) → Betrag 28 px, Polster 3 px (≈ 56 CSS); M2 Inhalt lief bei 32 CSS über (Sicht kal22B) →
   zwei Zeilen in 28–34 CSS: Zahl 20 px, Betrag 17 px, netto 12 px (≥ 11 px), Kennwort 11 px */
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis { padding-top: 3px; padding-bottom: 3px; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-betrag { font-size: 28px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis { min-height: 28px; max-height: 34px; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-zahl { font-size: 20px; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-betrag { font-size: 17px; line-height: 1.02; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-netto { font-size: 12px; line-height: 1.1; }
  html:not(.rl-buehne-t19):not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-kicker { font-size: 11px; }
}
/* Teil 22 (Sicht kal22B M1k e2: Zahl-Plakette links abgeschnitten, „netto +120 · Rot +100 · Carré +…“ lief rechts aus dem Bild): hochkant im Gewinn-Moment
   ohne „Gewinnzahl/Rot“-Text (Farbe + Zahl stehen in der Plakette, wie M2), Aufschlüsselung 12 px — Bühne ≤ 374 CSS breit, einzeilig je Zeile */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-gewinn .rl-erg-text { display: none; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-aufschl { font-size: 12px; }
}
/* Teil 22 F2 (Ursache des Überlaufs: einzeilige Zeile „netto · Eintrag · Eintrag · Eintrag“ nowrap, breiter als 100vw − 16 → mittig überlaufend, Plakette
   links und Aufschlüsselung rechts abgeschnitten): Platz über LAGE/BREITE statt Schrift — „AUSZAHLUNG“ über dem Betrag (Spalte 1), netto und darunter die
   Aufschlüsselung je Eintrag umbrechend (≤ 3 Zeilen à 12 CSS) in Spalte 2 über beide Zeilen; Bühne min(366, 100vw − 24) breit, Polster/Abstände 8–10;
   mittig mit „safe“ (nur bei Überlauf links bündig: Plakette bliebe ganz). Höhe: Plakette 48 + 2, Spalte 2 ≤ 18 + 36 → Bühne 56–62 CSS (Korridor 56–64). */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis { justify-content: safe center; gap: 10px; padding-left: 8px; padding-right: 10px;
    min-width: min(366px, calc(100vw - 24px)); }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-gewinn { grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 12px;
    padding-left: 8px; align-items: start; align-content: center; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-gewinn .rl-erg-kicker { grid-column: 1; grid-row: 1; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-betrag { grid-column: 1; grid-row: 2; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-netto { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column;
    align-items: flex-start; align-self: start; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-aufschl { display: flex; flex-wrap: wrap; column-gap: 4px; line-height: 1; margin-top: 1px; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-ae { white-space: nowrap; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis .rl-erg-ae:first-child .rl-erg-ae-tr { display: none; }
}

/* Teil 23 (Urteil R22 Nr. 1, Rückschritt zuerst: im Auszahlungs-Moment hochkant fehlte die neueste Zahl im Verlauf — `justify-content: flex-end` schob den
   Überlauf nach LINKS, also über die neueste Kachel, sobald die Status-Pille länger wurde): der Verlauf beginnt links an der Legende (Abstand = Zeilenlücke
   8 CSS) und füllt den Rest der Zeile; überzählige ÄLTERE Kacheln brechen in eine unsichtbare zweite Zeile um (nur ganze Kacheln, nie eine halbe).
   M1k: Bühne 56 statt 58 CSS (Polster 2 px), damit im 73,7-CSS-Band je Seite ≥ 8 CSS bleiben. Gewinn-Etikett abseits des Stapels: Zeiger-Linie.
   ?test&k1=t22 = Teil 22 (Verlauf, Bühnenhöhe, Etiketten). */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-k1-t22) .rl-unten-zeile .rl-verlauf { margin-left: 4px; flex: 1 1 0; justify-content: flex-start; overflow: visible; }
  /* K1-Nachtrag (Sicht kal23a M1 e2: Goldring der 9 oben/unten/links beschnitten, Kachel „stößt an die Legende“): 3 px Polster bei −3 px Rand — der
     Goldring (2 px) bleibt sichtbar, die Zeilenhöhe bleibt gleich (Band der Bühne unverändert); Lücke zur Legende 8 + 4 CSS */
  html:not(.rl-k1-t22) .rl-unten-zeile .rl-verlauf .ui-verlauf { flex-wrap: wrap; align-content: flex-start; row-gap: 14px; padding: 3px; margin: -3px;
    max-height: 32px; box-sizing: border-box; overflow: hidden; }
}
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21):not(.rl-k1-t22) .rl-ergebnis { padding-top: 2px; padding-bottom: 2px; }
}
.rl-schwebe-linie { position: absolute; height: 2px; margin-top: -1px; transform-origin: 0 50%; background: rgba(226, 194, 122, .92); border-radius: 1px;
  box-shadow: 0 0 2px rgba(0, 0, 0, .65); pointer-events: none; animation: rl-linie 2.1s ease-out forwards; }
@keyframes rl-linie { 0% { opacity: 0; } 14% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rl-schwebe-linie { animation-duration: 1ms; } }
html[data-bewegung="reduziert"] .rl-schwebe-linie { animation-duration: 1ms; }
.rl-erg-aufschl .rl-erg-ae.ist-fremd { color: var(--ui-ink-2); }
.rl-erg-aufschl .rl-erg-punkt { display: inline-block; width: 7px; height: 7px; margin: 0 4px 1px 1px; border-radius: 50%; background: var(--rl-sitz, #9AA7B8); vertical-align: middle; }
/* Teil 23 (Urteil R22 Nr. 5: „Nur Spielgeld“ lag über „TISCHLIMIT 1 – 50.000“, Wert abgeschnitten): die Info-Gruppe der Bodenleiste endet links vor dem
   Spielgeld-Hinweis (Platz 168 CSS rechts) — beide bleiben sichtbar. ?test&k5=t22 = Teil 22. */
@media (min-height: 601px) and (min-width: 641px) { html:not(.rl-k5-t22) .rl-boden-info { padding-right: 168px; } }
/* Teil 24 („·“-Fix, Urteil R23 K1/K3): fester Umbruch vor einem umbrechenden Eintrag der Aufschlüsselung, sein Trenner entfällt (oberflaeche.js zeilenanfaenge;
   ?test&k3=t23 = Teil 23 ohne Fix) — keine Zeile beginnt mit „·“ */
.rl-erg-aufschl .rl-erg-umbruch { display: block; flex-basis: 100%; width: 100%; height: 0; }
.rl-erg-aufschl .rl-erg-ae.ist-zeilenanfang > .rl-erg-ae-tr { display: none; }
/* Teil 24 K3 (Urteil R23 Nr. 3): Auszahlungs-Moment hochkant — oben „AUSZAHLUNG 425 netto +120“ in einer Zeile, darunter je Gruppe eine Zeile (eigene
   „Sie: Rot +100 · Carré +200“, je Mitspieler „● Greta: Dutzend +330 · Kolonne +160“), 13 px, Zeilen per Element ohne Umbruch (oberflaeche.js zeilenBauen).
   ?test&k3=t23 = Teil 23. */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-gewinn { grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 8px;
    row-gap: 2px; align-items: baseline; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-gewinn .rl-erg-kicker { grid-column: 1; grid-row: 1; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-betrag { grid-column: 2; grid-row: 1; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-netto { grid-column: 3; grid-row: 1; display: block; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-gewinn > .rl-erg-aufschl { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column;
    flex-wrap: nowrap; font-size: 13px; line-height: 1.2; margin-top: 0; white-space: nowrap; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-zeile { display: block; white-space: nowrap; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-zeile .rl-erg-ae-tr { display: inline; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-zeile.ist-eigen .rl-erg-zname { color: var(--ui-gold, #D9B76E); }
}
/* Teil 24 Fortsetzung (Kalibrierung kal_a873085 K3 c: Bühne M1k 64 CSS > 56–58, ↔ Jetons 4,3 / Fuß 7,0 < 8; Sicht M1 de + M1k en: „netto ragt über den
   oberen Bühnenrand, Greta-Zeile klebt am unteren Rand“ = Inhalt höher als die Bühne, max-height 64): Kopfzeile Betrag 28 px (M1k 24 px) Zeilenhöhe 1,
   Aufschlüsselung 13 px × 1,05 ohne Zeilenabstand → Inhalt ≈ 55 (M1) / 51 CSS (M1k) — Schrift der Aufschlüsselung bleibt 13 px, Zahl 48 px. */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-gewinn { row-gap: 0; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-gewinn > .rl-erg-aufschl { line-height: 1.05; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-betrag { font-size: 28px; line-height: 1; }
}
/* Teil 24 Abschluss (Vorlauf vor24_8991620, Rückschritt gegen t23: Bühne M1k 59 > 56–58, ↔ Jetons 6,7 < 8, ↔ Fuß 8,0 — die Bühne steht unten auf
   Fuß − 8 und wächst nach oben in den 8-px-Abstand): Betrag M1k 24 → 22 px (Kopfzeile Zeilenhöhe 1 ⇒ −2 CSS) → erwartet Höhe 57, ↔ Jetons ≈ 8,7.
   Aufschlüsselung bleibt 13 px, Zahl 48 px. */
@media (max-width: 640px) and (orientation: portrait) and (max-height: 699px) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3 .rl-erg-betrag { font-size: 22px; }
}
/* Teil 25 K3 (Urteil R24 Nr. 3, Bühne hochkant mit Luft): (k) Betrag und netto auf EINER Grundlinie — Kopfzeile als Flex-Zeile mit align-items: baseline
   (das Raster richtete nach oben aus: Versatz 10 / 5 CSS), Aufschlüsselung als volle Zeile darunter; (j) rechts: Kapsel hugt den Inhalt (min-width 0,
   Polster rechts 12 px statt 18–30 CSS Leerraum); (j) oben/unten auf M1 (≥ 700 px hoch): 6/3 px mehr Luft um die 48-px-Zahl (Zeichenbox 59 CSS), Höhe
   bis 74 statt 64 — M1k bleibt bei 56–64 (Halten-Korridor; mit Zahl ≥ 48 px ist (j) dort nicht erreichbar ⇒ Antrag). ?test&k3=t24 = Teil 24. */
@media (max-width: 640px) and (orientation: portrait) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 { min-width: 0; padding-right: 12px; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-gewinn { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-gewinn > .rl-erg-aufschl { flex-basis: 100%; }
  /* Auftrag 25 F2 Nr. 2 — Ursache (k) = t24 (10,0 / 5,0 CSS): netto erbt aus Teil 22 F2 `align-self: start` (Spezifität 0,4,1), und align-self eines
     Flex-Kinds schlägt align-items des Containers — netto stand oben statt auf der Grundlinie (Versatz = Oberlänge 28/22 px ↔ 16 px). Fix: alle drei
     Kopf-Kinder ausdrücklich align-self: baseline (0,7,1). ?test&k3=t24 = Teil 24 (Klasse ist-k25 fehlt). */
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-gewinn > .rl-erg-kicker,
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-gewinn > .rl-erg-betrag,
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-gewinn > .rl-erg-netto { align-self: baseline; }
}
@media (max-width: 640px) and (orientation: portrait) and (min-height: 700px) {
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 { max-height: 74px; }
  html:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 .rl-erg-kopf { margin-top: 6px; margin-bottom: 3px; }
}

/* Teil 27 K2 (Urteil R25 Nr. 2, Sicht M2 e „Farbe = Mitspieler“ auf „TIERS“, „Greta“ auf „ORPHELINS“; Hook (a) 2.986 / 3.637 CSS², (b) Pille ∩ Gewinnsegment 323 CSS²):
   Mobil quer die Legende kompakt (Punkt + Initiale, wie hochkant) als eigene Zeile UNTER Konto/Einsatz links — dort liegt keine Racetrack-Beschriftung
   (Beschriftung ab x ≈ 215 CSS, y 59–83); die Status-Pille flacher an den oberen Rand (Unterkante 30 CSS < Racetrack-Oberkante ≈ 32), Schrift unverändert.
   Keine Pose-Änderung. ?test&k2=t26 = 74f7737 (Klasse rl-k27k2 fehlt).
   Teil 27b (Auftrag 27b, ENTSCHEIDUNG 2 „K2-Rahmung halten“; vor27: M2-Zellhöhe 35/31 ↔ t26 38/34 = 0,92/0,91, kesselObenPx 54 ↔ 31): die Legendenzeile lag
   IM Fluss von .rl-oben-links (Unterkante 105 → 130) und sicherRect.oben (oberflaeche.js) zählt diese Unterkante ⇒ die Kamera passte die Szene neu ein. Jetzt
   steht die Legende ABSOLUT unter Konto/Einsatz (gleiche Lage wie f185b79, y ≈ 109–128, x ab 10): .rl-oben-links misst nur Konto/Einsatz (Unterkante 103 statt
   105 — t26 dehnte die Zeile auf die zweizeilige Legende) ⇒ Rahmung wie 74f7737. Racetrack-Beschriftung in t26-Rahmung y ≤ 84 ⇒ (a) bleibt 0; Pille 2–28
   statt 2–30 (Gewinnsegment in t26-Rahmung ab y 31,9; Schrift unverändert) ⇒ (b) bleibt 0. */
@media (max-height: 500px) and (orientation: landscape) {
  html.rl-k27k2 .rl-oben-links .rl-legende { position: absolute; left: 0; top: calc(100% + 6px); width: max-content; max-width: none; padding: 0 2px; gap: 4px 10px; flex-wrap: nowrap; }
  html.rl-k27k2 .rl-oben-links .rl-legende-hinweis, html.rl-k27k2 .rl-oben-links .rl-legende-name { display: none; }
  html.rl-k27k2 .rl-oben-links .rl-legende-initial { display: inline; }
  html.rl-k27k2 .rl-phase { top: calc(2px + env(safe-area-inset-top)); height: 26px; }
}
/* Teil 27 K4 (Urteil R25 Nr. 4, Sicht M1k e2 „zweite Zeile knapp am Panelrand“; (j) M1 3,4 / 5,0, M1k −2,4 / 0,7 CSS): M1 Kapsel innen +3 CSS oben/unten
   (Höhe bis 80 statt 74). Teil 27b (Auftrag 27b, ENTSCHEIDUNG 1; Blindpaar M1k_e2 0 : 2 gegen 74f7737): der M1k-Teil (fremde Posten als Summe in der
   eigenen Zeile) ist zurückgenommen — M1k = 74f7737. Zahl ≥ 48 px, Schrift unverändert. ?test&k4=t26 = 74f7737 (Klasse rl-k27k4 fehlt). */
@media (max-width: 640px) and (orientation: portrait) and (min-height: 700px) {
  html.rl-k27k4:not(.rl-buehne-t20):not(.rl-buehne-t21) .rl-ergebnis.ist-k3.ist-k25 { max-height: 80px; padding-top: 9px; padding-bottom: 9px; }
}
