/* ==========================================================================
   max-tables – Live-Tische („Tiefenschiefer & Erz“)
   Lobby „Gemeinsam spielen“: Gruppen .tb-fam mit Tischkarten .tb-tile in #tableLobby. Tisch: Dialog #tableOverlay (Blatt aus max-overlays.css),
   Inhalt .tb-room aus js/live-tables.js (Endertisch, Pot-Runde) und js/live-cards.js (Blackjack, Poker).
   Zustände über Klassen/data-Attribute; Bewegung nur transform/opacity (Rad und Uhr setzt das Skript je Bild).
   Kein CSS-filter auf dem Rad (SVG in gedrehtem HTML-Kasten). Prozente nur für den eigenen Anteil am Topf (Pot-Runde),
   nie für Gebühren oder den Anteil des Hauses.
   ========================================================================== */

/* ------------------------------------------------------------ Lobby „Gemeinsam spielen“: Gruppen und Tischkarten
   Jede Zeile ist voll: live-tables.js rechnet je Gruppe aus, wie viele Karten in eine Zeile gehören (--tb-c5 … --tb-c3 für
   höchstens 5, 4 oder 3 je Zeile; fünf Karten bei höchstens vier → 3 + 2), die Karten der letzten Zeile wachsen in die Breite.
   So bleibt nie eine einzelne Karte oder ein leerer Platz übrig. Ab 1200 px stehen die ersten beiden Gruppen nebeneinander,
   ihre Breite im Verhältnis der Kartenzahl (--tb-pair) – alle Karten gleich breit, beide Gruppen gleich hoch. */
body.tc-redesign.tc-max .tb-lobby { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
body.tc-redesign.tc-max .tb-lobby-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed var(--mx-line); border-radius: var(--mx-r-lg); color: var(--mx-text-2); font-size: 15px; }
body.tc-redesign.tc-max .tb-fam {
  --fam: var(--mx-emerald);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--mx-line-soft);
  border-radius: var(--mx-r-xl);
  background:
    radial-gradient(380px 180px at 0% 0%, color-mix(in srgb, var(--fam) 13%, transparent), transparent 72%),
    var(--mx-surface);
  box-shadow: var(--mx-bevel), var(--mx-shadow);
}
body.tc-redesign.tc-max .tb-fam[data-fam="poker"] { --fam: var(--mx-redstone); }
body.tc-redesign.tc-max .tb-fam[data-fam="pot"] { --fam: var(--mx-gold); }
body.tc-redesign.tc-max .tb-fam[data-fam="bank"] { --fam: var(--mx-diamond); }
body.tc-redesign.tc-max .tb-fam-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; }
body.tc-redesign.tc-max .tb-fam-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--mx-r-lg); background: color-mix(in srgb, var(--fam) 16%, var(--mx-raised)); box-shadow: var(--mx-bevel); }
body.tc-redesign.tc-max .tb-fam-art img { display: block; width: 38px; height: 38px; image-rendering: pixelated; }
body.tc-redesign.tc-max .tb-fam-title { font-family: var(--mx-font-display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-fam-title small { margin-left: 6px; font-family: var(--mx-font-body); font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--fam) 70%, #fff); }
body.tc-redesign.tc-max .tb-fam-text p { margin: 5px 0 0; max-width: 68ch; font-size: 14px; line-height: 1.45; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-fam-meta { display: grid; gap: 6px; justify-items: end; }
body.tc-redesign.tc-max .tb-fam-badge { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--fam) 16%, transparent); color: color-mix(in srgb, var(--fam) 72%, #fff); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
body.tc-redesign.tc-max .tb-fam-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mx-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-fam-live.is-on { color: var(--mx-emerald); font-weight: 600; }
body.tc-redesign.tc-max .tb-fam-live.is-on .tb-dot { background: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-fam-tables { --cols: var(--tb-c5, 4); --gap: 10px; display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--gap); min-width: 0; }

body.tc-redesign.tc-max .tb-tile {
  --tile: var(--mx-emerald);
  --lvl: var(--tile);
  container: tbtile / inline-size;
  position: relative;
  /* genau --cols Karten je Zeile (0,5 px Luft gegen Rundung); die letzte Zeile füllt sich über flex-grow */
  flex: 1 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) - .5px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 186px;
  padding: 14px 14px 12px 16px;
  overflow: hidden;
  border: 1px solid var(--mx-line-soft);
  border-radius: var(--mx-r-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--lvl) 15%, var(--mx-raised)) 0%, var(--mx-raised) 58%);
  box-shadow: var(--mx-bevel);
  color: var(--mx-text);
  font-family: var(--mx-font-body);
  text-align: left;
  cursor: pointer;
  transition: transform var(--mx-mid) var(--mx-ease), border-color var(--mx-mid) var(--mx-ease);
}
body.tc-redesign.tc-max .tb-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lvl); }
body.tc-redesign.tc-max .tb-tile[data-kind="roulette"] { --tile: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-tile[data-kind="blackjack"] { --tile: var(--mx-diamond); }
body.tc-redesign.tc-max .tb-tile[data-kind="pot"] { --tile: var(--mx-gold); }
body.tc-redesign.tc-max .tb-tile[data-kind="poker"] { --tile: var(--mx-redstone); }
/* Stufen wie die Erze: Kupfer → Eisen → Gold → Diamant → Smaragd → Netherit */
body.tc-redesign.tc-max .tb-tile[data-level="kupfer"] { --lvl: #d98a4e; }
body.tc-redesign.tc-max .tb-tile[data-level="eisen"] { --lvl: #cdd6e4; }
body.tc-redesign.tc-max .tb-tile[data-level="gold"] { --lvl: var(--mx-gold); }
body.tc-redesign.tc-max .tb-tile[data-level="diamant"] { --lvl: var(--mx-diamond); }
body.tc-redesign.tc-max .tb-tile[data-level="smaragd"] { --lvl: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-tile[data-level="netherit"] { --lvl: var(--mx-amethyst); }
body.tc-redesign.tc-max .tb-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--lvl) 60%, transparent); }
body.tc-redesign.tc-max .tb-tile:focus-visible { outline: 2px solid var(--lvl); outline-offset: 2px; }
body.tc-redesign.tc-max .tb-tile.is-mine { border-color: color-mix(in srgb, var(--lvl) 75%, transparent); }
body.tc-redesign.tc-max .tb-tile-art { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; opacity: .9; }
body.tc-redesign.tc-max .tb-tile-art img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
body.tc-redesign.tc-max .tb-tile-tag { display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 40px); overflow: hidden; white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--lvl) 72%, #fff); }
body.tc-redesign.tc-max .tb-ore { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--lvl); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .28), inset 2px 2px 0 rgba(255, 255, 255, .28); }
body.tc-redesign.tc-max .tb-tile strong { max-width: calc(100% - 40px); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-tile-line { font-size: 13px; line-height: 1.35; color: var(--mx-text-2); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-tile-stake { display: grid; gap: 1px; margin-top: auto; padding-top: 8px; }
body.tc-redesign.tc-max .tb-tile-stake i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--mx-text-3); }
body.tc-redesign.tc-max .tb-tile-stake b { font-family: var(--mx-font-display); font-size: 21px; font-weight: 800; line-height: 1.05; color: var(--mx-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Fuß: Plätze, darunter der Knopf über die ganze Breite – steht in jeder Karte an derselben Stelle */
body.tc-redesign.tc-max .tb-tile-foot { display: grid; gap: 9px; width: 100%; padding-top: 8px; }
body.tc-redesign.tc-max .tb-tile-people { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mx-text-2); white-space: nowrap; }
body.tc-redesign.tc-max .tb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mx-text-3); }
body.tc-redesign.tc-max .tb-tile[data-live="true"] .tb-dot { background: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-tile[data-live="true"] .tb-tile-people { color: var(--mx-emerald); font-weight: 600; }
body.tc-redesign.tc-max .tb-tile-cta {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--lvl) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lvl) 38%, transparent);
  color: color-mix(in srgb, var(--lvl) 70%, #fff);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--mx-mid) var(--mx-ease), color var(--mx-mid) var(--mx-ease);
}
body.tc-redesign.tc-max .tb-tile:hover .tb-tile-cta { background: var(--lvl); color: #10131c; }
body.tc-redesign.tc-max .tb-tile.is-mine .tb-tile-cta { background: var(--lvl); color: #10131c; }
/* Tisch-Art in Wartung: gestrichelte Karte, Hinweis der Leitung statt der Werbezeile; gesperrt (ich sitze dort nicht und
   bin nicht ausgenommen) trägt der Knopf „In Wartung“ in Rot und hebt sich nicht mehr an */
body.tc-redesign.tc-max .tb-tile.is-maint { border-style: dashed; }
body.tc-redesign.tc-max .tb-tile.is-maint .tb-tile-art,
body.tc-redesign.tc-max .tb-tile.is-maint .tb-tile-stake { opacity: .45; }
body.tc-redesign.tc-max .tb-tile.is-maint .tb-tile-line { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #ffb3bb; }
body.tc-redesign.tc-max .tb-tile.is-maint[aria-disabled="true"]:hover { transform: none; border-color: var(--mx-line-soft); }
body.tc-redesign.tc-max .tb-tile.is-maint[aria-disabled="true"] .tb-tile-cta { background: rgba(255, 77, 94, .14); box-shadow: inset 0 0 0 1px rgba(255, 77, 94, .34); color: #ffb3bb; }
body.tc-redesign.tc-max .tb-fam-live.is-maint { color: #ffb3bb; font-weight: 600; }
body.tc-redesign.tc-max .tb-fam-live.is-maint .tb-dot { background: #ff4d5e; }
/* Schmale Karte (viele in einer Zeile): ohne Bild, die Zeile gehört Name und Betrag */
@container tbtile (max-width: 205px) {
  body.tc-redesign.tc-max .tb-tile-art { display: none; }
  body.tc-redesign.tc-max .tb-tile-tag,
  body.tc-redesign.tc-max .tb-tile strong { max-width: 100%; }
  body.tc-redesign.tc-max .tb-tile strong { font-size: 16px; }
  body.tc-redesign.tc-max .tb-tile-stake b { font-size: 19px; }
}
@container tbtile (max-width: 168px) {
  body.tc-redesign.tc-max .tb-tile-stake b { font-size: 17px; }
  body.tc-redesign.tc-max .tb-tile-people { font-size: 12px; }
}
@media (min-width: 1200px) {
  body.tc-redesign.tc-max .tb-lobby.has-pair { grid-template-columns: var(--tb-pair, 1fr 1fr); }
  body.tc-redesign.tc-max .tb-lobby.has-pair .tb-fam.is-wide { grid-column: 1 / -1; }
  body.tc-redesign.tc-max .tb-lobby.has-pair .tb-fam:not(.is-wide) .tb-fam-tables { --gap: 8px; }
  body.tc-redesign.tc-max .tb-lobby.has-pair .tb-fam:not(.is-wide) .tb-tile { padding: 14px 12px 12px 14px; }
}
@media (max-width: 979px) {
  body.tc-redesign.tc-max .tb-fam-tables { --cols: var(--tb-c4, 4); }
}
@media (max-width: 759px) {
  body.tc-redesign.tc-max .tb-fam { padding: 16px 14px; }
  body.tc-redesign.tc-max .tb-fam-head { grid-template-columns: auto minmax(0, 1fr); }
  body.tc-redesign.tc-max .tb-fam-art { width: 46px; height: 46px; }
  body.tc-redesign.tc-max .tb-fam-art img { width: 34px; height: 34px; }
  body.tc-redesign.tc-max .tb-fam-title { font-size: 25px; }
  body.tc-redesign.tc-max .tb-fam-meta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; justify-items: start; align-items: center; }
  body.tc-redesign.tc-max .tb-fam-tables { --cols: var(--tb-c3, 3); --gap: 8px; }
}
/* Handy: eine Karte je Zeile, quer gebaut – links Name und Info, rechts der Einsatz, unten Plätze und Knopf */
@media (max-width: 599px) {
  body.tc-redesign.tc-max .tb-fam-tables { --cols: 1; }
  body.tc-redesign.tc-max .tb-tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 3px 12px;
    min-height: 0;
    padding: 12px 12px 12px 15px;
  }
  body.tc-redesign.tc-max .tb-tile-art { display: none; }
  body.tc-redesign.tc-max .tb-tile-tag,
  body.tc-redesign.tc-max .tb-tile strong,
  body.tc-redesign.tc-max .tb-tile-line { grid-column: 1; max-width: 100%; }
  body.tc-redesign.tc-max .tb-tile strong { font-size: 16.5px; }
  body.tc-redesign.tc-max .tb-tile-stake { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-items: end; margin: 0; padding: 0; text-align: right; }
  body.tc-redesign.tc-max .tb-tile-stake b { font-size: 19px; }
  body.tc-redesign.tc-max .tb-tile-foot { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 7px; }
  body.tc-redesign.tc-max .tb-tile-cta { min-height: 32px; padding: 0 14px; }
}

/* ------------------------------------------------------------ Dialog */
body.tc-redesign.tc-max #tableOverlay.overlay { --ov: var(--mx-emerald); --mxo-w: 1160px; padding: 16px !important; }
body.tc-redesign.tc-max #tableOverlay.overlay > .mxo-sheet { max-height: calc(100dvh - 32px) !important; }
body.tc-redesign.tc-max #tableOverlay.overlay .mxo-head { padding: 20px 84px 12px 24px !important; }
body.tc-redesign.tc-max #tableOverlay.overlay .mxo-body { gap: 14px; padding-top: 4px !important; }
body.tc-redesign.tc-max .tb-loading { margin: 0; padding: 60px 0; text-align: center; color: var(--mx-text-2); font-size: 15px; }
body.tc-redesign.tc-max .tb-room { display: grid; gap: 14px; min-width: 0; }
body.tc-redesign.tc-max .tb-room.is-busy .tb-controls { opacity: .6; pointer-events: none; }
body.tc-redesign.tc-max .tb-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 280px) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--mx-r-md);
  background: var(--mxo-well, #0d1528);
}
body.tc-redesign.tc-max .tb-phase { min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--mx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-timer { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
body.tc-redesign.tc-max .tb-timer i { display: block; width: 100%; height: 100%; border-radius: 4px; background: var(--mx-emerald); transform-origin: left center; }
body.tc-redesign.tc-max .tb-timer.is-low i { background: var(--mx-redstone); }
body.tc-redesign.tc-max .tb-timer.is-off { opacity: 0; }
body.tc-redesign.tc-max .tb-balance { font-size: 13.5px; color: var(--mx-text-2); white-space: nowrap; }
body.tc-redesign.tc-max .tb-balance b { color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; }
/* Läuft keine Uhr, gehört ihr Platz dem Text – lange Ergebniszeilen („… gewinnt 3,80 mit Full House (Damen über Zweien)“)
   wurden sonst abgeschnitten. Am Handy steht die Uhr in einer eigenen Zeile, dort bleibt alles, wie es ist. */
@media (min-width: 761px) {
  body.tc-redesign.tc-max .tb-bar:has(> .tb-timer.is-off) { grid-template-columns: minmax(0, 1fr) auto; }
  body.tc-redesign.tc-max .tb-bar:has(> .tb-timer.is-off) > .tb-timer { display: none; }
}
body.tc-redesign.tc-max .tb-blocked { margin: 0; padding: 10px 14px; border-radius: var(--mx-r-md); background: rgba(255, 77, 94, .12); color: #ffb3bb; font-size: 14.5px; }
body.tc-redesign.tc-max .tb-blocked b { font-weight: 700; color: #ffd0d5; }
body.tc-redesign.tc-max .tb-blocked i { font-style: normal; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
body.tc-redesign.tc-max .tb-main.has-side { grid-template-columns: minmax(0, 1fr) 232px; }
body.tc-redesign.tc-max .tb-stage { min-width: 0; padding: 16px; border: 1px solid var(--mx-line-soft); border-radius: var(--mx-r-lg); background: radial-gradient(700px 300px at 50% 0%, rgba(46, 229, 157, .07), transparent 70%), var(--mxo-well, #0d1528); }
body.tc-redesign.tc-max .tb-side { min-width: 0; padding: 14px; border: 1px solid var(--mx-line-soft); border-radius: var(--mx-r-lg); background: var(--mxo-block, #18223b); }
body.tc-redesign.tc-max .tb-side-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max :is(.tb-people, .tb-log, .tb-pot-players, .tb-pot-history) { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
body.tc-redesign.tc-max .tb-people li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 8px; background: var(--mxo-well, #0d1528); font-size: 13.5px; }
body.tc-redesign.tc-max .tb-people li.is-me { box-shadow: inset 2px 0 0 var(--mx-gold); }
body.tc-redesign.tc-max .tb-people b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-people i { font-style: normal; color: var(--mx-text-2); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max :is(.tb-people, .tb-log, .tb-pot-players) li.is-empty { display: block; background: none; color: var(--mxo-hint, #8a96b0); font-size: 13.5px; padding: 4px 0; }
body.tc-redesign.tc-max .tb-room em.is-win, body.tc-redesign.tc-max .tb-room b.is-win { font-style: normal; color: var(--mx-emerald); font-weight: 700; }
body.tc-redesign.tc-max .tb-room em.is-lose { font-style: normal; color: var(--mx-text-3); }
body.tc-redesign.tc-max .tb-log { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
body.tc-redesign.tc-max .tb-log li { padding: 5px 0; border-top: 1px solid var(--mx-line-soft); font-size: 13px; line-height: 1.4; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-log li:first-child { border-top: 0; }

/* Bedienleiste */
body.tc-redesign.tc-max .tb-controls { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--mx-line-soft); border-radius: var(--mx-r-lg); background: var(--mxo-block, #18223b); }
body.tc-redesign.tc-max .tb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
body.tc-redesign.tc-max .tb-row--play > .mx-btn { flex: 1 1 150px; }
body.tc-redesign.tc-max .tb-row--meta { padding-top: 10px; border-top: 1px solid var(--mx-line-soft); }
body.tc-redesign.tc-max .tb-row--meta .tb-leave { margin-left: auto; }
body.tc-redesign.tc-max .tb-info { flex: 1 1 200px; font-size: 14.5px; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-info b { color: var(--mx-text); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
body.tc-redesign.tc-max .tb-chip {
  min-width: 52px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--mx-raised);
  box-shadow: inset 0 0 0 1.5px var(--mx-line), inset 0 0 0 4px rgba(255, 255, 255, .03);
  color: var(--mx-text-2);
  font: 700 14px/1 var(--mx-font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
body.tc-redesign.tc-max .tb-chip:hover { color: var(--mx-text); }
body.tc-redesign.tc-max .tb-chip.is-active { background: rgba(255, 201, 60, .16); box-shadow: inset 0 0 0 2px var(--mx-gold); color: var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-amount { display: inline-grid; grid-template-columns: auto 120px auto; align-items: center; gap: 8px; font-size: 14px; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-amount input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--mx-line);
  border-radius: var(--mx-r-md);
  background: var(--mxo-well, #0d1528);
  color: var(--mx-text);
  font: 700 16px/1 var(--mx-font-body);
  font-variant-numeric: tabular-nums;
}
body.tc-redesign.tc-max .tb-amount input:focus { outline: 2px solid var(--mx-gold); outline-offset: 1px; }
body.tc-redesign.tc-max .tb-amount i { font-style: normal; color: var(--mx-gold); }
body.tc-redesign.tc-max .tb-raise { display: flex; flex: 2 1 320px; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
body.tc-redesign.tc-max .tb-raise input[type="range"] { flex: 1 1 160px; min-width: 120px; height: 32px; accent-color: var(--mx-gold); }
body.tc-redesign.tc-max .tb-raise .mx-btn { flex: 1 1 170px; }

/* ------------------------------------------------------------ Spielkarten */
body.tc-redesign.tc-max .tb-pc {
  --pc: #a78bfa;
  position: relative;
  display: inline-grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  width: 46px;
  height: 64px;
  padding: 5px 4px 6px;
  border-radius: 7px;
  background: linear-gradient(180deg, #fdfdff, #e4e8f2);
  box-shadow: 0 2px 0 #9aa3b8, 0 8px 14px -8px rgba(0, 0, 0, .8);
  flex: none;
}
body.tc-redesign.tc-max .tb-pc b { justify-self: start; padding-left: 2px; color: #161c2e; font: 800 17px/1 var(--mx-font-body); }
body.tc-redesign.tc-max .tb-pc svg { width: 24px; height: 24px; }
body.tc-redesign.tc-max .tb-pc svg path { fill: var(--pc); stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
body.tc-redesign.tc-max .tb-pc.is-back { background: repeating-linear-gradient(45deg, #5b3fd0 0 6px, #4a31b5 6px 12px); box-shadow: inset 0 0 0 3px #e8e4ff, 0 2px 0 #2b1c73, 0 8px 14px -8px rgba(0, 0, 0, .8); }
body.tc-redesign.tc-max .tb-pc.is-slot { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
body.tc-redesign.tc-max .tb-hand { display: flex; align-items: center; justify-content: center; min-height: 64px; }
body.tc-redesign.tc-max .tb-hand .tb-pc + .tb-pc { margin-left: -16px; }
body.tc-redesign.tc-max .tb-hand-wait { font-size: 13px; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-value { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 999px; background: #0a1020; color: var(--mx-text); font: 800 14px/1 var(--mx-font-body); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-nameplate { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mxo-hint, #8a96b0); }

/* ------------------------------------------------------------ Endertisch */
body.tc-redesign.tc-max .tb-rl { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
body.tc-redesign.tc-max .tb-rl-left { display: grid; gap: 12px; justify-items: center; min-width: 0; }
body.tc-redesign.tc-max .tb-rl-wheelbox { position: relative; width: min(100%, 290px); aspect-ratio: 1; }
body.tc-redesign.tc-max .tb-rl-rotor { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
body.tc-redesign.tc-max .tb-rl-rotor svg { display: block; width: 100%; height: 100%; }
body.tc-redesign.tc-max .tb-rl-num { fill: #fff; font: 800 13px var(--mx-font-body); }
body.tc-redesign.tc-max .tb-rl-pointer { position: absolute; z-index: 2; top: -4px; left: 50%; width: 0; height: 0; margin-left: -11px; border: 11px solid transparent; border-top: 20px solid var(--mx-gold-hi); border-bottom: 0; }
body.tc-redesign.tc-max .tb-rl-hub { position: absolute; z-index: 1; inset: 28%; display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 50%; background: #0f1730; box-shadow: inset 0 0 0 2px #caa23a; text-align: center; }
body.tc-redesign.tc-max .tb-rl-hub b { font-family: var(--mx-font-display); font-size: 46px; font-weight: 800; line-height: .9; color: var(--mx-text); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-rl-hub i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-rl-hub.is-rot b { color: #ff7a88; }
body.tc-redesign.tc-max .tb-rl-hub.is-gruen b { color: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-rl-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
body.tc-redesign.tc-max .tb-rl-history li { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #1a2137; color: #fff; font: 700 13px/1 var(--mx-font-body); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-rl-history li.is-rot { background: #d23a4b; }
body.tc-redesign.tc-max .tb-rl-history li.is-gruen { background: #12a66f; }
body.tc-redesign.tc-max .tb-rl-history li.is-last { box-shadow: 0 0 0 2px var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-rl-history li.is-empty { width: auto; padding: 0 10px; background: none; color: var(--mxo-hint, #8a96b0); font-weight: 500; }
body.tc-redesign.tc-max .tb-rl-board { display: grid; gap: 10px; min-width: 0; }
body.tc-redesign.tc-max .tb-rl-numbers { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
body.tc-redesign.tc-max .tb-rl-outside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
body.tc-redesign.tc-max .tb-cell {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 46px;
  padding: 4px;
  border: 0;
  border-radius: 9px;
  background: #1a2137;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff;
  font: 700 15px/1 var(--mx-font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max .tb-cell:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-cell:disabled { cursor: default; opacity: .78; }
body.tc-redesign.tc-max .tb-cell.is-rot { background: #c23344; }
body.tc-redesign.tc-max .tb-cell.is-gruen { background: #0f9463; }
body.tc-redesign.tc-max .tb-cell.is-zero { grid-column: span 8; min-height: 38px; }
body.tc-redesign.tc-max .tb-cell.is-out { min-height: 52px; background: var(--mx-raised); font-size: 14px; }
body.tc-redesign.tc-max .tb-cell.is-out.is-rot { background: linear-gradient(180deg, #c23344, #8f2231); }
body.tc-redesign.tc-max .tb-cell.is-out.is-schwarz { background: linear-gradient(180deg, #232c47, #131a2e); }
body.tc-redesign.tc-max .tb-cell em { font-style: normal; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
body.tc-redesign.tc-max .tb-cell.has-mine { box-shadow: inset 0 0 0 2px var(--mx-gold); }
body.tc-redesign.tc-max .tb-cell.is-win { box-shadow: inset 0 0 0 3px var(--mx-emerald), 0 0 0 2px rgba(46, 229, 157, .35); opacity: 1; }
body.tc-redesign.tc-max .tb-stack { position: absolute; top: -6px; right: -4px; min-width: 22px; padding: 3px 6px; border-radius: 999px; background: var(--mx-gold); color: var(--mx-gold-ink); font: 800 11px/1 var(--mx-font-body); box-shadow: 0 2px 0 var(--mx-gold-lo); }
body.tc-redesign.tc-max .tb-others { position: absolute; bottom: 2px; left: 3px; min-width: 15px; padding: 2px 4px; border-radius: 999px; background: rgba(10, 16, 32, .7); color: var(--mx-text-2); font: 700 10px/1 var(--mx-font-body); font-style: normal; }

/* ------------------------------------------------------------ Pot-Runde */
body.tc-redesign.tc-max .tb-pot { display: grid; gap: 14px; }
body.tc-redesign.tc-max .tb-pot-num { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
body.tc-redesign.tc-max .tb-pot-num b { font-family: var(--mx-font-display); font-size: clamp(48px, 8vw, 84px); font-weight: 800; line-height: .9; color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-pot-num i { font-style: normal; font-size: 16px; font-weight: 600; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-pot-track { position: relative; padding: 14px 0 6px; }
body.tc-redesign.tc-max .tb-pot-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; background: var(--mx-raised); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.tc-redesign.tc-max .tb-pot-bar i { display: block; min-width: 3px; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .35); }
body.tc-redesign.tc-max .tb-pot-bar i.is-empty { background: transparent; box-shadow: none; }
body.tc-redesign.tc-max .tb-pot-marker { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px rgba(10, 16, 32, .8); }
body.tc-redesign.tc-max .tb-pot-marker::before { content: ""; position: absolute; top: -2px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 11px solid #fff; border-bottom: 0; }
body.tc-redesign.tc-max .tb-pot-marker[hidden] { display: none; }
body.tc-redesign.tc-max .tb-pot-marker.is-set { background: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-pot-result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--mx-r-md); background: rgba(255, 201, 60, .13); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .35); }
body.tc-redesign.tc-max .tb-pot-result.is-me { background: rgba(46, 229, 157, .14); box-shadow: inset 0 0 0 1px rgba(46, 229, 157, .45); }
body.tc-redesign.tc-max .tb-pot-result > span { font-size: 28px; }
body.tc-redesign.tc-max .tb-pot-result b { display: block; font-size: 17px; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-pot-result i { font-style: normal; font-size: 13.5px; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-pot-players li { display: grid; grid-template-columns: 12px minmax(0, 150px) minmax(60px, 1fr) 62px auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--mxo-block, #18223b); font-size: 14px; }
body.tc-redesign.tc-max .tb-pot-players li.is-me { box-shadow: inset 2px 0 0 var(--mx-gold); }
body.tc-redesign.tc-max .tb-pot-players li.is-winner { box-shadow: inset 0 0 0 2px var(--mx-emerald); }
body.tc-redesign.tc-max .tb-pot-dot { width: 12px; height: 12px; border-radius: 3px; }
body.tc-redesign.tc-max .tb-pot-players b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-pot-share { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
body.tc-redesign.tc-max .tb-pot-share i { display: block; width: 100%; height: 100%; transform-origin: left center; }
body.tc-redesign.tc-max .tb-pot-players em { font-style: normal; font-weight: 700; color: var(--mx-text); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-pot-pct { text-decoration: none; font-weight: 700; color: var(--mx-gold-hi); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Pot-Runde: Gewinne dieser Runde, Hinweis auf den letzten Einsatz */
body.tc-redesign.tc-max .tb-pot-prizebox { display: grid; gap: 8px; }
body.tc-redesign.tc-max .tb-pot-prizebox .tb-side-title { margin: 0; }
body.tc-redesign.tc-max .tb-pot-prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.tc-redesign.tc-max .tb-pot-prize { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon text" "name name"; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--mx-r-md); background: var(--mxo-block, #18223b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: box-shadow .25s ease, background .25s ease; }
body.tc-redesign.tc-max .tb-pot-prize > span { grid-area: icon; font-size: 24px; line-height: 1; }
body.tc-redesign.tc-max .tb-pot-prize > div { grid-area: text; min-width: 0; }
body.tc-redesign.tc-max .tb-pot-prize i { display: block; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-pot-prize b { display: block; font-family: var(--mx-font-display); font-size: 20px; font-weight: 800; color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.tc-redesign.tc-max .tb-pot-prize u { grid-area: name; text-decoration: none; font-size: 13.5px; font-weight: 700; color: var(--mx-emerald); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tc-redesign.tc-max .tb-pot-prize u:empty { display: none; }
body.tc-redesign.tc-max .tb-pot-prize u:not(:empty) { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
body.tc-redesign.tc-max .tb-pot-prize u:not(:empty)::before { content: "→ "; color: var(--mxo-hint, #8a96b0); font-weight: 600; }
body.tc-redesign.tc-max .tb-pot-prize.is-drawn { background: rgba(46, 229, 157, .1); box-shadow: inset 0 0 0 1px rgba(46, 229, 157, .4); }
body.tc-redesign.tc-max .tb-pot-prize.is-drawn.is-me { background: rgba(255, 201, 60, .16); box-shadow: inset 0 0 0 2px var(--mx-gold); }
body.tc-redesign.tc-max .tb-pot-prize.is-empty { display: block; font-size: 13.5px; color: var(--mxo-hint, #8a96b0); background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
body.tc-redesign.tc-max .tb-pot-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 9px; background: rgba(91, 231, 240, .09); box-shadow: inset 0 0 0 1px rgba(91, 231, 240, .22); font-size: 13.5px; color: var(--mx-text-2); transition: opacity .4s ease; }
body.tc-redesign.tc-max .tb-pot-note.is-late { background: rgba(255, 201, 60, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .38); color: var(--mx-text); }
body.tc-redesign.tc-max .tb-pot-note.is-old { opacity: .45; }
body.tc-redesign.tc-max .tb-pot-players b small { font-size: 12px; font-weight: 600; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-pot-players em { text-align: right; }
body.tc-redesign.tc-max .tb-pot-won { display: block; text-decoration: none; font-size: 12.5px; font-weight: 800; color: var(--mx-emerald); }
body.tc-redesign.tc-max .tb-pot-history li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--mxo-block, #18223b); font-size: 13.5px; }
body.tc-redesign.tc-max .tb-pot-history b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--mx-text); }
body.tc-redesign.tc-max .tb-pot-history i { font-style: normal; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-pot-history em { font-style: normal; font-weight: 700; color: var(--mx-emerald); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Blackjack */
body.tc-redesign.tc-max .tb-bj { display: grid; gap: 22px; }
body.tc-redesign.tc-max .tb-bj-dealer { display: grid; justify-items: center; gap: 8px; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
body.tc-redesign.tc-max .tb-bj-seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body.tc-redesign.tc-max .tb-seat {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  min-height: 168px;
  padding: 12px 8px;
  border: 1px solid var(--mx-line-soft);
  border-radius: var(--mx-r-md);
  background: var(--mxo-block, #18223b);
  color: var(--mx-text);
  font-family: var(--mx-font-body);
  text-align: center;
}
body.tc-redesign.tc-max .tb-seat.is-free { align-content: center; border-style: dashed; background: transparent; color: var(--mx-text-2); }
body.tc-redesign.tc-max button.tb-seat.is-free { cursor: pointer; }
body.tc-redesign.tc-max button.tb-seat.is-free:hover { border-color: var(--mx-gold); color: var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-seat.is-free b { font-size: 14.5px; }
body.tc-redesign.tc-max .tb-seat.is-free i { font-style: normal; font-size: 13px; }
body.tc-redesign.tc-max .tb-seat.is-closed { opacity: .55; }
body.tc-redesign.tc-max .tb-seat.is-me { border-color: rgba(255, 201, 60, .55); }
body.tc-redesign.tc-max .tb-seat.is-turn { box-shadow: 0 0 0 2px var(--mx-emerald); }
body.tc-redesign.tc-max .tb-seat[data-state="bust"] .tb-hand { opacity: .5; }
body.tc-redesign.tc-max .tb-seat-plate { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; }
body.tc-redesign.tc-max .tb-seat-plate b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
body.tc-redesign.tc-max .tb-seat-bet { font-size: 13px; color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-seat-bet em { font-style: normal; color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-seat-result { display: grid; gap: 2px; padding: 5px 9px; border-radius: 8px; font-size: 13px; }
body.tc-redesign.tc-max .tb-seat-result.is-win { background: rgba(46, 229, 157, .15); color: #9ff3cf; }
body.tc-redesign.tc-max .tb-seat-result.is-lose { background: rgba(255, 255, 255, .06); color: var(--mx-text-2); }
body.tc-redesign.tc-max .tb-seat-result.is-tie { background: rgba(247, 201, 72, .14); color: #f6dc8c; }
body.tc-redesign.tc-max .tb-seat-result i { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-seat-note { margin: 0; font-size: 12px; line-height: 1.35; color: var(--mxo-hint, #8a96b0); }

/* ------------------------------------------------------------ Poker */
body.tc-redesign.tc-max .tb-pk { padding: 52px 70px 62px; }
body.tc-redesign.tc-max .tb-pk-table { position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 2 / 1; }
body.tc-redesign.tc-max .tb-pk-felt {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 999px;
  background: radial-gradient(closest-side, #1f8d63 0%, #146c4b 62%, #0d4d36 100%);
  box-shadow: inset 0 0 0 8px #3a2716, inset 0 0 0 11px #caa23a, 0 24px 40px -22px rgba(0, 0, 0, .9);
}
body.tc-redesign.tc-max .tb-pk-stage { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
body.tc-redesign.tc-max .tb-pk-board { display: flex; gap: 6px; }
body.tc-redesign.tc-max .tb-pk-pot { padding: 5px 12px; border-radius: 999px; background: rgba(6, 20, 14, .6); color: #e9fff5; font-size: 14px; }
body.tc-redesign.tc-max .tb-pk-pot b { color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-pk-myhand { font-size: 13px; color: rgba(255, 255, 255, .82); }
body.tc-redesign.tc-max .tb-pk-seat {
  --x: 50%;
  --y: 100%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 132px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mx-text);
  font-family: var(--mx-font-body);
  transform: translate(-50%, -50%);
}
body.tc-redesign.tc-max .tb-pk-seat[data-pos="1"] { --x: 7%; --y: 80%; }
body.tc-redesign.tc-max .tb-pk-seat[data-pos="2"] { --x: 7%; --y: 20%; }
body.tc-redesign.tc-max .tb-pk-seat[data-pos="3"] { --x: 50%; --y: 0%; }
body.tc-redesign.tc-max .tb-pk-seat[data-pos="4"] { --x: 93%; --y: 20%; }
body.tc-redesign.tc-max .tb-pk-seat[data-pos="5"] { --x: 93%; --y: 80%; }
body.tc-redesign.tc-max .tb-pk-cards { display: flex; justify-content: center; min-height: 46px; }
body.tc-redesign.tc-max .tb-pk-cards .tb-pc { width: 34px; height: 46px; padding: 3px; border-radius: 5px; }
body.tc-redesign.tc-max .tb-pk-cards .tb-pc b { font-size: 13px; }
body.tc-redesign.tc-max .tb-pk-cards .tb-pc svg { width: 16px; height: 16px; }
body.tc-redesign.tc-max .tb-pk-cards .tb-pc + .tb-pc { margin-left: -8px; }
body.tc-redesign.tc-max .tb-pk-seat.is-me .tb-pk-cards .tb-pc { width: 46px; height: 64px; padding: 5px 4px 6px; border-radius: 7px; }
body.tc-redesign.tc-max .tb-pk-seat.is-me .tb-pk-cards .tb-pc b { font-size: 17px; }
body.tc-redesign.tc-max .tb-pk-seat.is-me .tb-pk-cards .tb-pc svg { width: 24px; height: 24px; }
body.tc-redesign.tc-max .tb-pk-seat.is-me .tb-pk-cards { min-height: 64px; }
body.tc-redesign.tc-max .tb-pk-plate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 100%;
  padding: 6px 8px 7px;
  border-radius: 10px;
  background: #101830;
  box-shadow: inset 0 0 0 1px rgba(148, 170, 220, .22), 0 6px 12px -8px rgba(0, 0, 0, .9);
}
body.tc-redesign.tc-max .tb-pk-plate b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; }
body.tc-redesign.tc-max .tb-pk-plate i { font-style: normal; font-size: 12.5px; color: var(--mx-gold-hi); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-pk-seat.is-me .tb-pk-plate { box-shadow: inset 0 0 0 1.5px rgba(255, 201, 60, .6), 0 6px 12px -8px rgba(0, 0, 0, .9); }
body.tc-redesign.tc-max .tb-pk-seat.is-turn .tb-pk-plate { box-shadow: inset 0 0 0 2px var(--mx-emerald), 0 6px 12px -8px rgba(0, 0, 0, .9); }
body.tc-redesign.tc-max .tb-pk-seat.is-winner .tb-pk-plate { box-shadow: inset 0 0 0 2px var(--mx-gold-hi), 0 6px 12px -8px rgba(0, 0, 0, .9); }
body.tc-redesign.tc-max .tb-pk-seat:is(.is-folded, .is-out) :is(.tb-pk-plate, .tb-pk-cards) { opacity: .5; }
body.tc-redesign.tc-max .tb-pk-seat.is-free .tb-pk-plate { background: rgba(16, 24, 48, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
body.tc-redesign.tc-max .tb-pk-seat.is-free .tb-pk-plate i { color: var(--mx-text-2); }
body.tc-redesign.tc-max button.tb-pk-seat.is-free { cursor: pointer; }
body.tc-redesign.tc-max button.tb-pk-seat.is-free:hover .tb-pk-plate { box-shadow: inset 0 0 0 2px var(--mx-gold); }
body.tc-redesign.tc-max .tb-pk-seat.is-closed { opacity: .5; }
body.tc-redesign.tc-max .tb-pk-clock { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .1); }
body.tc-redesign.tc-max .tb-pk-clock u { display: block; width: 100%; height: 100%; background: var(--mx-emerald); transform-origin: left center; text-decoration: none; }
body.tc-redesign.tc-max .tb-pk-note { max-width: 170px; width: max-content; padding: 2px 8px; border-radius: 999px; background: rgba(10, 16, 32, .82); color: var(--mx-text-2); font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: center; }
body.tc-redesign.tc-max .tb-pk-bet { position: absolute; z-index: 1; top: -10px; right: -10px; padding: 3px 8px; border-radius: 999px; background: var(--mx-gold); color: var(--mx-gold-ink); font: 800 12px/1 var(--mx-font-body); font-variant-numeric: tabular-nums; box-shadow: 0 2px 0 var(--mx-gold-lo); }
body.tc-redesign.tc-max .tb-pk-tags { position: absolute; top: -10px; left: -8px; z-index: 1; display: flex; gap: 3px; }
body.tc-redesign.tc-max .tb-pk-tag { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: #26334f; color: var(--mx-text); font: 800 10.5px/1 var(--mx-font-body); }
body.tc-redesign.tc-max .tb-pk-tag.is-button { background: #fff; color: #161c2e; }
body.tc-redesign.tc-max .tb-pk-won { padding: 3px 9px; border-radius: 999px; background: var(--mx-emerald); color: var(--mx-emerald-ink); font: 800 12.5px/1 var(--mx-font-body); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Würfeltisch (js/live-tables.js, Art „wuerfel“)
   Würfel = .tb-die[data-face] mit neun Augen-Plätzen; beim Rollen setzt tick() Augen und transform im Bild-Takt. */
body.tc-redesign.tc-max .tb-dc { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 20px; align-items: start; }
body.tc-redesign.tc-max .tb-dc-left { display: grid; gap: 12px; width: 100%; min-width: 0; }
body.tc-redesign.tc-max .tb-dc-tray { display: grid; gap: 14px; justify-items: center; padding: 26px 12px 16px; border-radius: 16px; background: radial-gradient(260px 160px at 50% 20%, #1d7a56, #0f4a35 70%, #0b3526); box-shadow: inset 0 0 0 3px #caa23a, inset 0 0 0 6px rgba(0, 0, 0, .35), inset 0 18px 30px -18px rgba(0, 0, 0, .7); }
body.tc-redesign.tc-max .tb-dc-dice { display: flex; justify-content: center; gap: 12px; min-height: 62px; }
body.tc-redesign.tc-max .tb-die { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; flex: 0 0 auto; width: 58px; height: 58px; padding: 8px; border-radius: 12px; background: linear-gradient(145deg, #ffffff, #dfe5f2); box-shadow: inset 0 -4px 0 rgba(20, 30, 60, .18), 0 6px 0 rgba(0, 0, 0, .28); will-change: transform; }
body.tc-redesign.tc-max .tb-die i { width: 9px; height: 9px; border-radius: 50%; background: #1a2137; opacity: 0; }
body.tc-redesign.tc-max .tb-die:is([data-face="1"], [data-face="3"], [data-face="5"]) i:nth-child(5),
body.tc-redesign.tc-max .tb-die:is([data-face="2"], [data-face="3"], [data-face="4"], [data-face="5"], [data-face="6"]) i:is(:nth-child(1), :nth-child(9)),
body.tc-redesign.tc-max .tb-die:is([data-face="4"], [data-face="5"], [data-face="6"]) i:is(:nth-child(3), :nth-child(7)),
body.tc-redesign.tc-max .tb-die[data-face="6"] i:is(:nth-child(4), :nth-child(6)) { opacity: 1; }
body.tc-redesign.tc-max .tb-die[data-face="1"] i:nth-child(5) { background: #d23a4b; }
body.tc-redesign.tc-max .tb-die.is-idle { opacity: .55; }
body.tc-redesign.tc-max .tb-die.is-mini { width: 24px; height: 24px; padding: 3px; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(20, 30, 60, .18); will-change: auto; }
body.tc-redesign.tc-max .tb-die.is-mini i { width: 4px; height: 4px; }
body.tc-redesign.tc-max .tb-dc-sum { display: grid; justify-items: center; gap: 3px; min-height: 58px; text-align: center; }
body.tc-redesign.tc-max .tb-dc-sum b { font-family: var(--mx-font-display); font-size: 40px; font-weight: 800; line-height: .95; color: #fff; font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-dc-sum i { font-style: normal; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
body.tc-redesign.tc-max .tb-dc-tray.is-shown .tb-dc-sum b { animation: tbDcPop .34s cubic-bezier(.3, 1.5, .5, 1) both; }
body.tc-redesign.tc-max .tb-dc-tray.is-shown[data-kind="klein"] .tb-dc-sum b { color: #8fd8ff; }
body.tc-redesign.tc-max .tb-dc-tray.is-shown[data-kind="gross"] .tb-dc-sum b { color: var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-dc-tray.is-shown[data-kind="drilling"] .tb-dc-sum b { color: #d9b8ff; }
@keyframes tbDcPop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
body.tc-redesign.tc-max .tb-dc-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
body.tc-redesign.tc-max .tb-dc-history li { display: grid; justify-items: center; gap: 2px; min-width: 32px; padding: 4px 4px 3px; border-radius: 8px; background: #1b4f8a; color: #fff; }
body.tc-redesign.tc-max .tb-dc-history li b { font: 700 13.5px/1 var(--mx-font-body); font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max .tb-dc-history li i { font: 600 9.5px/1 var(--mx-font-body); font-style: normal; letter-spacing: .06em; opacity: .75; }
body.tc-redesign.tc-max .tb-dc-history li.is-gross { background: #8a5a10; }
body.tc-redesign.tc-max .tb-dc-history li.is-drilling { background: #6a3fb5; }
body.tc-redesign.tc-max .tb-dc-history li.is-last { box-shadow: 0 0 0 2px var(--mx-gold-hi); }
body.tc-redesign.tc-max .tb-dc-history li.is-empty { min-width: 0; padding: 4px 10px; background: none; color: var(--mxo-hint, #8a96b0); font-size: 13px; }
body.tc-redesign.tc-max .tb-dc-board { display: grid; gap: 10px; width: 100%; min-width: 0; }
body.tc-redesign.tc-max .tb-dc-main { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
body.tc-redesign.tc-max .tb-dc-group { display: grid; gap: 5px; min-width: 0; }
body.tc-redesign.tc-max .tb-dc-cap { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mxo-hint, #8a96b0); }
body.tc-redesign.tc-max .tb-dc-cap small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.tc-redesign.tc-max .tb-dc-sums { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
body.tc-redesign.tc-max .tb-dc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
body.tc-redesign.tc-max :is(.tb-dc-faces, .tb-dc-pairs) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
body.tc-redesign.tc-max .tb-dc-cell { min-height: 52px; padding: 5px 2px 4px; }
body.tc-redesign.tc-max .tb-dc-cell.is-big { min-height: 66px; font-size: 15.5px; background: var(--mx-raised); }
body.tc-redesign.tc-max .tb-dc-cell.is-big.is-klein { background: linear-gradient(180deg, #24639f, #17406b); }
body.tc-redesign.tc-max .tb-dc-cell.is-big.is-gross { background: linear-gradient(180deg, #a36a14, #6f4409); }
body.tc-redesign.tc-max .tb-dc-cell.is-big.is-drilling { background: linear-gradient(180deg, #7a4bc7, #4d2d8a); }
body.tc-redesign.tc-max .tb-dc-cell.is-sum.is-klein { background: #16365c; }
body.tc-redesign.tc-max .tb-dc-cell.is-sum.is-gross { background: #553a10; }
body.tc-redesign.tc-max .tb-dc-cell small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .7); }
body.tc-redesign.tc-max .tb-dc-label { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
body.tc-redesign.tc-max .tb-dc-cell.is-pair .tb-die.is-mini { width: 18px; height: 18px; padding: 2px; border-radius: 4px; }
body.tc-redesign.tc-max .tb-dc-cell.is-pair .tb-die.is-mini i { width: 3px; height: 3px; }
body.tc-redesign.tc-max .tb-dc-cell.is-miss { opacity: .45; }
body.tc-redesign.tc-max .tb-dc-cell.is-win { animation: tbDcWin .9s ease-in-out 2; }
body.tc-redesign.tc-max .tb-dc-cell.is-win em { color: #9ff3cf; font-weight: 800; }
@keyframes tbDcWin { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) scale(1.05); } }
@media (max-width: 1000px) {
  body.tc-redesign.tc-max .tb-dc { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 16px; }
  body.tc-redesign.tc-max .tb-dc-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* Würfel über dem Setzfeld: flache Schale, daneben die Summe */
  body.tc-redesign.tc-max .tb-dc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.tc-redesign.tc-max .tb-dc-tray { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 18px; padding: 18px 10px 14px; }
  body.tc-redesign.tc-max .tb-dc-sum { min-width: 86px; min-height: 0; }
  body.tc-redesign.tc-max .tb-die { width: 50px; height: 50px; padding: 7px; }
  body.tc-redesign.tc-max .tb-die i { width: 8px; height: 8px; }
  body.tc-redesign.tc-max .tb-dc-dice { gap: 9px; min-height: 54px; }
  body.tc-redesign.tc-max .tb-dc-history { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  body.tc-redesign.tc-max .tb-dc-history li { flex: 0 0 auto; }
  body.tc-redesign.tc-max .tb-dc-cell.is-big { min-height: 58px; font-size: 13.5px; }
  body.tc-redesign.tc-max .tb-dc-cell.is-big small { font-size: 10px; }
}
@media (max-width: 480px) {
  body.tc-redesign.tc-max .tb-dc-main { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.tc-redesign.tc-max .tb-dc-main .tb-dc-cell { grid-column: span 3; }
  body.tc-redesign.tc-max .tb-dc-main .tb-dc-cell.is-drilling { grid-column: span 6; grid-row: 3; min-height: 46px; }
  body.tc-redesign.tc-max .tb-dc-cell { min-height: 48px; font-size: 14px; }
  body.tc-redesign.tc-max .tb-dc-cell em { font-size: 10.5px; }
  body.tc-redesign.tc-max .tb-dc-tray { gap: 12px; }
  body.tc-redesign.tc-max .tb-die { width: 44px; height: 44px; padding: 6px; }
  body.tc-redesign.tc-max .tb-die i { width: 7px; height: 7px; }
  body.tc-redesign.tc-max .tb-die.is-mini { width: 22px; height: 22px; padding: 3px; }
  body.tc-redesign.tc-max .tb-die.is-mini i { width: 4px; height: 4px; }
  body.tc-redesign.tc-max .tb-dc-cell.is-pair .tb-die.is-mini { width: 15px; height: 15px; padding: 2px; }
}

/* ------------------------------------------------------------ Schmale Breiten */
@media (max-width: 1000px) {
  body.tc-redesign.tc-max .tb-main.has-side { grid-template-columns: minmax(0, 1fr); }
  body.tc-redesign.tc-max .tb-log { max-height: 150px; }
  /* Endertisch: Die Liste „Am Tisch“ steht hier unter der Bühne – das Rad bleibt neben dem Setzfeld (etwas kleiner). */
  body.tc-redesign.tc-max .tb-rl { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); gap: 16px; }
  /* Blackjack: fünf Plätze bleiben in einer Reihe (3 + 2 ließ rechts unten ein Loch) – nur enger */
  body.tc-redesign.tc-max .tb-bj-seats { gap: 8px; }
  body.tc-redesign.tc-max .tb-seat { padding: 12px 6px; }
}
@media (max-width: 760px) {
  /* Rad über dem Setzfeld. Die linke Spalte braucht eine feste Breite: Ohne sie richtete sich das Rad (Breite in %) nach der
     Liste der letzten Zahlen und schrumpfte bei kurzer Liste auf Briefmarkengröße. */
  body.tc-redesign.tc-max .tb-rl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.tc-redesign.tc-max .tb-rl-left { width: 100%; }
  body.tc-redesign.tc-max .tb-rl-board { width: 100%; }
  body.tc-redesign.tc-max .tb-rl-wheelbox { width: min(100%, 230px); }
  body.tc-redesign.tc-max #tableOverlay.overlay { padding: 0 !important; }
  body.tc-redesign.tc-max #tableOverlay.overlay > .mxo-sheet { max-height: 100dvh !important; }
  body.tc-redesign.tc-max .tb-bar { grid-template-columns: minmax(0, 1fr) auto; }
  body.tc-redesign.tc-max .tb-bar .tb-timer { grid-column: 1 / -1; grid-row: 2; }
  body.tc-redesign.tc-max .tb-phase { white-space: normal; }
  body.tc-redesign.tc-max .tb-stage { padding: 12px; }
  body.tc-redesign.tc-max .tb-rl-numbers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.tc-redesign.tc-max .tb-cell.is-zero { grid-column: span 6; }
  /* Blackjack: Plätze brechen mittig um (3 + 2, am Handy 2 + 2 + 1) – nie ein leerer Platz am Rand */
  body.tc-redesign.tc-max .tb-bj-seats { display: flex; flex-wrap: wrap; justify-content: center; }
  body.tc-redesign.tc-max .tb-seat { flex: 0 1 calc((100% - 16px) / 3); min-width: 0; min-height: 150px; }
  body.tc-redesign.tc-max .tb-pc { width: 40px; height: 56px; }
  body.tc-redesign.tc-max .tb-pot-players li { grid-template-columns: 12px minmax(0, 1fr) auto auto; }
  body.tc-redesign.tc-max .tb-pot-share { display: none; }
  body.tc-redesign.tc-max .tb-pk { padding: 46px 44px 58px; }
  body.tc-redesign.tc-max .tb-pk-table { aspect-ratio: 3 / 4; max-width: 420px; }
  body.tc-redesign.tc-max .tb-pk-felt { border-radius: 150px; }
  body.tc-redesign.tc-max .tb-pk-seat { width: 104px; }
  body.tc-redesign.tc-max .tb-pk-seat[data-pos="1"] { --x: 2%; --y: 72%; }
  body.tc-redesign.tc-max .tb-pk-seat[data-pos="2"] { --x: 2%; --y: 28%; }
  body.tc-redesign.tc-max .tb-pk-seat[data-pos="4"] { --x: 98%; --y: 28%; }
  body.tc-redesign.tc-max .tb-pk-seat[data-pos="5"] { --x: 98%; --y: 72%; }
  body.tc-redesign.tc-max .tb-pk-board { gap: 3px; }
  /* „Deine Hand“ zweizeilig und schmal: In einer Zeile lief der Text unter die Plätze links und rechts. */
  body.tc-redesign.tc-max .tb-pk-myhand { max-width: 132px; text-align: center; font-size: 12px; line-height: 1.25; }
  body.tc-redesign.tc-max .tb-pk-myhand b { display: block; }
  body.tc-redesign.tc-max .tb-pk-board .tb-pc { width: 32px; height: 46px; padding: 3px; }
  body.tc-redesign.tc-max .tb-pk-board .tb-pc b { font-size: 13px; }
  body.tc-redesign.tc-max .tb-pk-board .tb-pc svg { width: 16px; height: 16px; }
  body.tc-redesign.tc-max .tb-row--meta .tb-leave { margin-left: 0; }
  body.tc-redesign.tc-max .tb-amount { grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
}
@media (max-width: 480px) {
  body.tc-redesign.tc-max .tb-seat { flex-basis: calc((100% - 8px) / 2); }
}
