/* max-hub – TryCasino „Tiefenschiefer & Erz“ (siehe max-base.css)
   Eingeloggter Spieler-Hub (#heroLoggedIn): Spielerkopf mit Level, „Dein Guthaben“ als
   Zählwerk, „Dein nächster Zug“ mit Empfehlungen, Statistik + letzte Runden. Alles unter
   body.tc-redesign.tc-max #siteMain #heroLoggedIn (ID-Kette schlägt account.css (2,1,0)!).
   Nie display!important auf JS-geschaltete Elemente (#heroLoggedIn, #resumeBtn, #dashBotBtn,
   #dashPlayerLevelBadge) – dafür gilt [hidden]/Inline-Style.
   Layout: Desktop linke Spalte = ein Panel (.mxh-col: Guthaben + Statistik), rechts „Dein nächster Zug“.
   ≤1080px: .mxh-col wird display:contents → Reihenfolge Kopf, Guthaben, nächster Zug, Statistik.
   Wartezustand: #heroLoggedIn[hidden] ist nur über html.is-logged-in-cached sichtbar (vor /api/session). */

/* ------------------------------------------------------------ Raster */
body.tc-redesign.tc-max #siteMain #heroLoggedIn {
  --h-pad: clamp(18px, 2.3vw, 32px);
  --h-gap: 22px;
  --h-ink-dark: #0a1020;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important;
  grid-template-areas: "head head" "wallet next";
  gap: 18px var(--h-gap) !important;
  align-items: stretch !important;
  width: 100%;
  max-width: var(--mx-container) !important;
  flex: 1 1 100%;
  margin: 0 auto !important;
  padding: 6px 0 4px !important;
  color: var(--mx-text);
  font-family: var(--mx-font-body);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn::before,
body.tc-redesign.tc-max #siteMain #heroLoggedIn::after { content: none !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-src, #dashPlayerKicker) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ------------------------------------------------------------ Spielerkopf
   Gleiche Spalten wie der Hub: Level-Leiste steht bündig über „Dein nächster Zug“. */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head {
  grid-area: head;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 16px var(--h-gap);
  min-width: 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding-left: 2px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #2a3656, var(--mx-raised)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 0 #0b1222, 0 16px 30px -16px rgba(0, 0, 0, .8) !important;
  cursor: pointer;
  transition: transform var(--mx-fast) var(--mx-ease), box-shadow var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn:hover { transform: translateY(-1px); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 0 #0b1222 !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerAvatar {
  display: block;
  width: 62px !important;
  height: 62px !important;
  border-radius: 12px !important;
  border: 0 !important;
  image-rendering: pixelated;
  background: #0b1222;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-avatar-dot {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mx-emerald);
  border: 3px solid var(--mx-bg);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-greet {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerName {
  margin: 4px 0 10px !important;
  max-width: 100%;
  font-family: var(--mx-font-display) !important;
  font-size: clamp(38px, 4.2vw, 56px) !important;
  font-weight: 800 !important;
  line-height: .92 !important;
  letter-spacing: 0 !important;
  color: var(--mx-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashPlayerRoleBadge, #dashPlayerLevelBadge, #mxhRank) {
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 0 !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-family: var(--mx-font-body) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1 !important;
  white-space: nowrap;
  animation: none !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerRoleBadge {
  display: inline-flex;
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid var(--mx-line-soft) !important;
  color: var(--mx-text-2) !important;
  box-shadow: none !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerRoleBadge.badge-inhaber {
  background: rgba(255, 201, 60, .12) !important;
  border-color: rgba(255, 201, 60, .38) !important;
  color: var(--mx-gold-hi) !important;
}
/* Reines „Spieler“-Abzeichen sagt nichts aus (jeder ist Spieler) – max-hub.js markiert es. */
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerRoleBadge[data-mxh-role="player"] { display: none; }
/* Level-Abzeichen: Hintergrundfarbe kommt inline aus renderAccount, nur Schrift/Form hier. */
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerLevelBadge {
  border: 0 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .22) !important;
  cursor: pointer;
  transform: none !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerLevelBadge[data-mxh-ink="dark"] { color: var(--h-ink-dark) !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhRank:not([hidden]) {
  display: inline-flex;
  border: 1px solid rgba(255, 201, 60, .28) !important;
  background: rgba(255, 201, 60, .07) !important;
  color: var(--mx-text) !important;
  cursor: pointer;
  transition: background-color var(--mx-fast) var(--mx-ease), border-color var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhRank:hover { background: rgba(255, 201, 60, .14) !important; border-color: rgba(255, 201, 60, .5) !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhRank svg { width: 15px; height: 15px; color: var(--mx-gold); flex: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhRank b { color: var(--mx-gold-hi); font-weight: 800; }

/* Level-Fortschritt: Erfahrungsleiste wie im Spiel (Smaragd, Segmente) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-bottom: 4px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp:not(.is-ready) { visibility: hidden; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level {
  font-size: 13px;
  font-weight: 600;
  color: var(--mx-text-2);
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level b {
  margin-left: 2px;
  font-family: var(--mx-font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--mx-emerald);
  text-shadow: 0 2px 0 #06301f, 0 0 18px rgba(46, 229, 157, .3);
  font-variant-numeric: tabular-nums;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--mx-text);
}
/* Das Level-Abzeichen trägt den Titel schon – eine Bezeichnung reicht */
body.tc-redesign.tc-max #siteMain #heroLoggedIn.mxh-has-lvbadge .mxh-xp-title { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-pct {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--mx-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-bar {
  position: relative;
  height: 12px;
  border-radius: 4px;
  background: #070c18;
  box-shadow: inset 0 0 0 1px #223050, inset 0 2px 3px rgba(0, 0, 0, .6);
  overflow: hidden;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #8dffc9 0%, var(--mx-emerald) 45%, var(--mx-emerald-lo) 100%);
  box-shadow: 0 0 12px rgba(46, 229, 157, .45);
}
/* Segment-Kerben über der ganzen Leiste */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), rgba(4, 8, 18, .75) calc(5% - 2px) 5%);
  pointer-events: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-note {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-note b { color: var(--mx-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Linke Spalte (Desktop: ein Panel) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-col {
  grid-area: wallet;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 201, 60, .16);
  border-radius: var(--mx-r-xl);
  background:
    radial-gradient(90% 46% at 0% 0%, rgba(255, 186, 60, .14), transparent 62%),
    radial-gradient(60% 40% at 100% 100%, rgba(91, 231, 240, .05), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 24%),
    var(--mx-surface);
  box-shadow: var(--mx-bevel), var(--mx-shadow);
  overflow: hidden;
}

/* ------------------------------------------------------------ Dein Guthaben */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet {
  grid-area: wallet;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--h-pad) var(--h-pad) 0;
  container: mxhwallet / inline-size;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Panel-Titel = gleiche Stufe wie die Abschnittstitel in den Dialogen (.mxo-h3: Anzeigeschrift 25 px, ohne Symbol) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-wallet-title, .mxh-next-title) {
  display: block;
  margin: 0 !important;
  font-family: var(--mx-font-display) !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--mx-text) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mx-emerald);
}

/* Das Zählwerk */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amount {
  --bmax: clamp(64px, 18cqi, 128px);
  position: relative;
  container-type: inline-size;
  margin: 20px 0 0;
  min-height: 64px;
}
/* Rückfall ohne max-hub.js: #balance selbst groß zeigen */
body.tc-redesign.tc-max #siteMain #heroLoggedIn #balance {
  display: block;
  font-family: var(--mx-font-display) !important;
  font-size: clamp(56px, 7vw, 108px) !important;
  font-weight: 800 !important;
  line-height: .9 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
  color: var(--mx-gold) !important;
  -webkit-text-fill-color: currentColor !important;
  overflow-wrap: anywhere;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #balance em { font-style: normal; font-size: .36em; margin-left: .12em; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn.mxh-ready #balance {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance {
  --w: 4.6;
  --fit: 1;
  --max: var(--bmax);
  --reserve: 0px;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .1em;
  max-width: 100%;
  font-size: calc(min(var(--max), (100cqi - var(--reserve)) / var(--w)) * var(--fit));
  line-height: .86;
  white-space: nowrap;
}
/* Breite Karte: rechts Platz für den Gewinn-Chip lassen */
@container (min-width: 560px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance { --reserve: 150px; }
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance-num {
  position: relative;
  display: inline-block;
  font-family: var(--mx-font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .005em;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-bn, .mxh-bn-hi, .mxh-bn-lo) {
  display: block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-bn {
  color: var(--mx-gold);
  background-image: linear-gradient(180deg, #fff1c2 0%, var(--mx-gold-hi) 22%, var(--mx-gold) 58%, #e39a17 100%);
  filter: drop-shadow(0 0 28px rgba(255, 190, 50, .22)) drop-shadow(0 3px 0 rgba(90, 52, 0, .55));
}
/* Smaragd-Schicht für den Gewinn-Blitz (echtes Element, damit der Übergang beim Zählen nicht neu startet) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-bn-hi {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #e6fff5 0%, #8dffc9 26%, var(--mx-emerald) 60%, #11b877 100%);
  filter: drop-shadow(0 0 26px rgba(46, 229, 157, .35));
  opacity: 0;
  pointer-events: none;
}
/* Einsatz: kurz Eisen statt Gold (abgedunkelter Stahlton – gedimmtes Gold wirkt sonst oliv) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-bn-lo {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #dfe6f3 0%, #aab6cf 38%, #7d8aa8 72%, #5d6a88 100%);
  filter: drop-shadow(0 3px 0 rgba(8, 12, 24, .7));
  opacity: 0;
  pointer-events: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance.is-up .mxh-bn-hi,
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance.is-down .mxh-bn-lo { opacity: 1; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance.is-up .mxh-bn { filter: drop-shadow(0 3px 0 rgba(3, 60, 38, .6)); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance.is-down .mxh-bn { filter: drop-shadow(0 3px 0 rgba(8, 12, 24, .6)); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance-cur {
  font-size: .36em;
  line-height: 1;
  transform: translateY(-.08em);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-delta {
  position: absolute;
  left: 100%;
  top: 6px;
  margin-left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46, 229, 157, .14);
  border: 1px solid rgba(46, 229, 157, .4);
  color: var(--mx-emerald);
  font: 800 15px/1 var(--mx-font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-delta.is-shown { opacity: 1; }
/* Wenn rechts kein Platz ist, steht der Chip in der Hinweiszeile unter der Zahl – der Hinweis
   tritt dafür kurz zurück (max-hub.js setzt data-mxh-delta), damit sich keine Texte überlagern */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-delta.is-inside {
  left: 0;
  right: auto;
  top: 100%;
  margin: 11px 0 0;
  padding: 4px 10px;
  font-size: 14px;
  background: #0b2a22;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet[data-mxh-delta] :is(#stakedNote, .mxh-low-note) { visibility: hidden; }

body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#stakedNote, .mxh-low-note) {
  margin: 14px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--mx-text-2) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet:has(#resumeBtn:not([hidden])) #stakedNote {
  color: var(--mx-gold-hi) !important;
  font-weight: 600 !important;
}
/* Zu wenig für eine Runde: eigener Hinweis statt „Sofort einsatzbereit“ (#stakedNote bleibt im DOM) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet[data-mxh-lownote] #stakedNote {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-low-note {
  color: var(--mx-gold-hi) !important;
  font-weight: 600 !important;
}

/* Aktionen */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
/* Block-Knöpfe gegen style.css/account.css/experience.css (bis (2,1,0)!) neu setzen */
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn, #depositBtn, #payoutBtn, #dashInviteFriendsBtn, #dashBotBtn) {
  min-height: 54px;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, var(--b-hi), var(--b-bg)) !important;
  color: var(--b-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: var(--mx-font-body) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 var(--b-edge) 0 var(--b-lo),
    0 calc(var(--b-edge) + 10px) 22px -10px rgba(0, 0, 0, .7) !important;
  transform: translateY(0) !important;
  animation: none !important;
  width: auto;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn, #depositBtn, #payoutBtn, #dashInviteFriendsBtn, #dashBotBtn):hover {
  transform: translateY(-1px) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn, #depositBtn, #payoutBtn, #dashInviteFriendsBtn, #dashBotBtn):active {
  transform: translateY(calc(var(--b-edge) - 1px)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 0 var(--b-lo), 0 4px 10px -6px rgba(0, 0, 0, .7) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashInviteFriendsBtn, #dashBotBtn) {
  min-height: 44px;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#depositBtn, #payoutBtn) svg { width: 20px; height: 20px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashInviteFriendsBtn svg { color: var(--mx-amethyst); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-invite-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 2px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 60, .42);
  background: rgba(255, 201, 60, .12);
  color: var(--mx-gold-hi);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
/* Offene Runde = wichtigste Aktion: volle Breite, Einzahlen und Auszahlen treten zurück */
body.tc-redesign.tc-max #siteMain #heroLoggedIn #resumeBtn { grid-column: 1 / -1; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #resumeBtn:not([hidden]) ~ :is(#depositBtn, #payoutBtn),
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet[data-mxh-low] #payoutBtn {
  --b-bg: var(--mx-raised); --b-hi: #26334f; --b-lo: #0b1222; --b-ink: var(--mx-text);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #resumeBtn:not([hidden]) ~ #depositBtn svg { color: var(--mx-gold); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn:not([hidden]) ~ #payoutBtn, .mxh-wallet[data-mxh-low] #payoutBtn) svg { color: var(--mx-emerald); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-resume-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--mx-redstone);
  box-shadow: 0 0 0 3px rgba(255, 77, 94, .28);
}

/* ------------------------------------------------------------ Statistik + letzte Runden */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-history {
  grid-area: history;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 var(--h-pad) var(--h-pad);
  container: mxhhist / inline-size;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, .78fr) minmax(0, 1fr) minmax(0, 1fr);
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat {
  min-width: 0;
  padding: 2px 14px;
  border-left: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:first-child { padding-left: 0; border-left: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dt {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mx-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0;
  font-family: var(--mx-font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--mx-text);
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd > .mxh-val { white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-cur {
  margin-left: .14em;
  font-size: .46em;
  font-style: normal;
  vertical-align: .14em;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd small {
  font-family: var(--mx-font-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mx-diamond);
}

/* Letzte Runden */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-rounds:not([hidden]) {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-rounds-title {
  margin: 0 0 12px !important;
  font-family: var(--mx-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--mx-text) !important;
}
/* Kontoauszug: eine Zeile je Runde, Haarlinien statt Kästen */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-rounds-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 58px minmax(96px, auto);
  grid-template-areas: "img txt stake mult net";
  align-items: center;
  column-gap: 14px;
  min-height: 56px;
  padding: 9px 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round + .mxh-round { border-top: 1px solid var(--mx-line-soft); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-img {
  grid-area: img;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--mx-raised);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-txt { grid-area: txt; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-txt strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mx-text);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-txt span { font-size: 12.5px; line-height: 1.3; color: var(--mx-text-2); white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-stake {
  grid-area: stake;
  font-size: 13px;
  color: var(--mx-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-mult {
  grid-area: mult;
  justify-self: end;
  font-size: 13px;
  font-weight: 700;
  color: var(--mx-text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round.is-win .mxh-round-mult { color: var(--mx-diamond); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-net {
  grid-area: net;
  justify-self: end;
  font-family: var(--mx-font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--mx-text-2);
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round.is-win .mxh-round-net { color: var(--mx-emerald); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round.is-loss .mxh-round-net { color: #ff6b79; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-rounds-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--mx-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-rounds-empty p { margin: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--mx-line-soft) !important;
  border-radius: 14px !important;
  background: var(--mx-raised) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 0 #0b1222 !important;
  color: var(--mx-text) !important;
  font-family: var(--mx-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter:hover { border-color: rgba(255, 201, 60, .45) !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1222;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px 0 12px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter-lbl > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter .mxh-move-go { flex: none; width: 16px; height: 16px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter:hover .mxh-move-go { color: var(--mx-gold); }

/* ------------------------------------------------------------ Dein nächster Zug */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next {
  grid-area: next;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: var(--h-pad);
  border: 1px solid var(--mx-line-soft);
  border-radius: var(--mx-r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--mx-surface);
  box-shadow: var(--mx-bevel), var(--mx-shadow);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 24px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next-sub { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--mx-text-2); }

/* Platzhalter, bis Bewertungen und Verlauf da sind (feste Höhe = Karte + drei Zeilen, kein Springen) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next.is-loading .mxh-moves,
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden] .mxh-next .mxh-moves { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel { display: grid; gap: 8px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel i {
  display: block;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--mx-line-soft);
  background: rgba(255, 255, 255, .025);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel .mxh-skel-card {
  height: 320px;
  margin-bottom: 8px;
  border-radius: var(--mx-r-lg);
  background: linear-gradient(180deg, #1a2542, var(--mx-raised));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 0 #0b1222;
}

/* Hauptempfehlung */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-primary:empty { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard {
  --ore: var(--mx-gold);
  --card: 27, 38, 68;
  position: relative;
  display: flex;
  min-height: 320px;
  border-radius: var(--mx-r-lg);
  border: 1px solid color-mix(in srgb, var(--ore) 30%, transparent);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ore) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #1d2946, var(--mx-raised));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 0 #0b1222, 0 18px 32px -20px rgba(0, 0, 0, .8);
  overflow: hidden;
  isolation: isolate;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-art {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* Kräftiger Verlauf in Kartenfarbe über dem Bild: Text steht nie auf hellem Spielbild */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--card)) 0%, rgba(var(--card), .94) 26%, rgba(var(--card), .62) 50%, rgba(var(--card), 0) 82%),
    linear-gradient(180deg, transparent 52%, rgba(10, 16, 32, .6));
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 20px 20px 22px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard.has-art .mxh-pcard-body { width: min(100%, 58%); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mx-tag { --tag: var(--ore); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-tag-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--mx-redstone);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-title {
  margin: 4px 0 0 !important;
  font-family: var(--mx-font-display) !important;
  font-size: clamp(26px, 2.3vw, 32px) !important;
  font-weight: 800 !important;
  line-height: .98 !important;
  color: var(--mx-text) !important;
  text-wrap: balance;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-text {
  margin: 0;
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard.has-art :is(.mxh-pcard-text, .mxh-meter-lbl) { color: #c3cde2; text-shadow: 0 1px 6px rgba(10, 16, 32, .9); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-text b { color: var(--mx-text); font-weight: 700; font-variant-numeric: tabular-nums; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
/* Meter: Balken, Beschriftung darunter */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 300px;
  margin-top: 2px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-meter-bar {
  position: relative;
  height: 8px;
  border-radius: 3px;
  background: #070c18;
  box-shadow: inset 0 0 0 1px #223050;
  overflow: hidden;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-meter-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, var(--mx-gold-hi), var(--mx-gold) 60%, var(--mx-gold-lo));
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-meter-lbl {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mx-text-2);
  font-variant-numeric: tabular-nums;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-steps {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 6px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--mx-line-soft);
  list-style: none;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-steps li { display: flex; align-items: center; gap: 10px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 201, 60, .14);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
  color: var(--mx-gold-hi);
  font-family: var(--mx-font-display);
  font-size: 15px;
  font-weight: 800;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-slot { width: 100%; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-slot:empty { display: none; }
/* Textlink (offene Runde: die goldene Hauptaktion steht schon im Guthaben) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 4px 0 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--mx-gold-hi) !important;
  font-family: var(--mx-font-body) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 224, 138, .45);
  text-underline-offset: 4px;
  cursor: pointer;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-link:hover { text-decoration-color: currentColor; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-link .mxh-move-go { width: 16px; height: 16px; color: currentColor; }

/* Weitere Empfehlungen */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-moves {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-item { margin: 0; padding: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move {
  --ore: var(--mx-gold);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin: 0 !important;
  padding: 10px 12px 10px 10px !important;
  border: 1px solid var(--mx-line-soft) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .025) !important;
  box-shadow: none !important;
  color: var(--mx-text) !important;
  font-family: var(--mx-font-body) !important;
  text-align: left;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transform: none !important;
  transition: background-color var(--mx-fast) var(--mx-ease), border-color var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move:hover {
  border-color: color-mix(in srgb, var(--ore) 45%, transparent) !important;
  background: color-mix(in srgb, var(--ore) 7%, rgba(255, 255, 255, .02)) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--ore) 15%, transparent);
  color: var(--ore);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .25);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-ico svg { width: 20px; height: 20px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--mx-text);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.3;
  color: var(--mx-text-2);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-val {
  font-size: 13px;
  font-weight: 800;
  /* Beträge immer Gold (Gold = Geld), unabhängig von der Erzfarbe der Zeile */
  color: color-mix(in srgb, var(--mx-gold) 70%, #fff);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-val:empty { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-go {
  width: 18px;
  height: 18px;
  color: var(--mx-text-3);
  transition: transform var(--mx-fast) var(--mx-ease), color var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move:hover .mxh-move-go { color: var(--ore); transform: translateX(2px); }

/* Aufladen per /pay (#stepBoxDashDeposit) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mxh-pay { margin-top: 4px; padding-top: 0; border-top: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mxh-pay-head { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head { display: flex; flex-direction: column; gap: 3px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head strong { font-size: 15px; font-weight: 700; color: var(--mx-text); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head span { font-size: 13px; line-height: 1.45; color: var(--mx-text-2); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0 !important;
  padding: 6px 6px 6px 14px !important;
  border: 1px solid var(--mx-line) !important;
  border-radius: 12px !important;
  background: #080d1a !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45) !important;
  cursor: pointer;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopy:hover { border-color: rgba(255, 201, 60, .45) !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayText {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--mx-gold-hi) !important;
  letter-spacing: 0 !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #26334f, var(--mx-raised)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 #0b1222 !important;
  color: var(--mx-text) !important;
  font-family: var(--mx-font-body) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn svg { width: 16px; height: 16px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn.copied {
  background: linear-gradient(180deg, #4ff0b1, #19c985) !important;
  color: var(--mx-emerald-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--mx-emerald-lo) !important;
}
/* Im Aufladen-Zustand ist Kopieren die Hauptaktion */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard #dashPayCopyBtn:not(.copied) {
  background: linear-gradient(180deg, #ffd766, #f6b21f) !important;
  color: var(--mx-gold-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 var(--mx-gold-lo) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .chip-dash {
  min-height: 38px;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 1px solid var(--mx-line-soft) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .035) !important;
  box-shadow: none !important;
  color: var(--mx-text-2) !important;
  font-family: var(--mx-font-body) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color var(--mx-fast) var(--mx-ease), border-color var(--mx-fast) var(--mx-ease), color var(--mx-fast) var(--mx-ease);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .chip-dash:hover { border-color: var(--mx-text-3) !important; color: var(--mx-text) !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .chip-dash.active {
  border-color: rgba(255, 201, 60, .55) !important;
  background: rgba(255, 201, 60, .13) !important;
  color: var(--mx-gold-hi) !important;
}

/* ------------------------------------------------------------ Wartezustand vor /api/session
   (#heroLoggedIn[hidden] ist nur über html.is-logged-in-cached sichtbar). Kein „0,00“, kein falsches Abzeichen. */
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden] :is(#dashPlayerRoleBadge, #dashPlayerLevelBadge, #mxhRank, .mxh-live) { visibility: hidden; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden] .mxh-amount { min-height: calc(var(--bmax) * .86); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden]:not(.mxh-cached) :is(#balance, .mxh-balance) { visibility: hidden; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden]:not(.mxh-cached) .mxh-amount::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4%;
  width: min(68%, 440px);
  height: 86%;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 201, 60, .1), rgba(255, 201, 60, .04));
}
/* Zuletzt gesehenes Guthaben dieses Kontos in Eisen, bis der Server es bestätigt (dann wird es Gold) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn[hidden].mxh-cached .mxh-bn-lo { opacity: 1; }

/* Platzhalter für „Deine letzten Runden“, solange der Verlauf lädt */
body.tc-redesign.tc-max #siteMain #heroLoggedIn:is([hidden], .mxh-hist-wait) .mxh-history::after {
  content: "";
  display: block;
  height: 324px;
  margin-top: 22px;
  border-top: 1px solid var(--mx-line-soft);
  background:
    linear-gradient(rgba(255, 255, 255, .045), rgba(255, 255, 255, .045)) 0 20px / 150px 12px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, .03) 8px 48px, transparent 48px 56px) 0 44px / 100% 280px no-repeat;
}

/* ------------------------------------------------------------ Kennzahlen je Panelbreite */
@container mxhhist (max-width: 660px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:nth-child(4) { padding-left: 0; border-left: 0; }
}
@container mxhhist (max-width: 440px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat,
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:nth-child(4) { padding: 0 0 0 14px; border-left: 1px solid var(--mx-line-soft); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:last-child { grid-column: 1 / -1; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--mx-line-soft); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd { font-size: 24px; }
}

/* ------------------------------------------------------------ Breakpoints */
@media (max-width: 1080px) {
  /* Einspaltig: Guthaben, nächster Zug, dann Statistik (je eigenes Panel) */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "head" "wallet" "next" "history";
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-col { display: contents; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-wallet, .mxh-history) {
    padding: var(--h-pad);
    border-radius: var(--mx-r-xl);
    box-shadow: var(--mx-bevel), var(--mx-shadow);
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet {
    border: 1px solid rgba(255, 201, 60, .16);
    background:
      radial-gradient(90% 70% at 0% 0%, rgba(255, 186, 60, .14), transparent 62%),
      linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 38%),
      var(--mx-surface);
    overflow: hidden;
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-history {
    border: 1px solid var(--mx-line-soft);
    background: var(--mx-surface);
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats { margin-top: 16px; padding-top: 0; border-top: 0; }
  /* Eigenes Panel → sichtbare Überschrift wie „Dein Guthaben“ */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhStatsTitle {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    font-family: var(--mx-font-display) !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: var(--mx-text) !important;
  }
}
@media (max-width: 720px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn { gap: 14px !important; padding-top: 0 !important; }
  /* Kopf verdichten: Avatar 50, Name 30, Level als eine Zeile mit Leiste */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-id { gap: 12px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn { width: 50px; height: 50px; border-radius: 13px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerAvatar { width: 40px !important; height: 40px !important; border-radius: 8px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-avatar-dot { width: 13px; height: 13px; border-width: 2px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-greet { font-size: 12.5px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerName { font-size: 30px !important; margin: 2px 0 6px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-badges { min-height: 24px; gap: 5px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashPlayerRoleBadge, #dashPlayerLevelBadge, #mxhRank) { height: 24px; padding: 0 9px !important; font-size: 12px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp:not([hidden]) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "lvl bar pct" "note note note";
    align-items: center;
    gap: 6px 12px;
    padding: 0;
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-top { display: contents; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level { grid-area: lvl; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level b { font-size: 22px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-title { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-pct { grid-area: pct; margin: 0; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-bar { grid-area: bar; height: 10px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-note { grid-area: note; font-size: 12.5px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-next { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-wallet, .mxh-history, .mxh-next) { border-radius: 18px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amount { --bmax: 96px; margin-top: 14px; }
  /* Zahl endet vor dem schwebenden Chat-Knopf (rechts unten) */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-balance { --reserve: 40px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#stakedNote, .mxh-low-note) { margin-top: 10px !important; font-size: 13px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions { gap: 10px; margin-top: 16px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn, #depositBtn, #payoutBtn) { padding: 0 12px !important; font-size: 16px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub { gap: 8px; margin-top: 10px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub > * { flex: 1 1 auto; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "img txt net" "img txt mult";
    row-gap: 4px;
    column-gap: 12px;
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-stake { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-mult { font-size: 12px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-mult { align-self: start; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-net { align-self: end; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-mult:empty { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round:has(.mxh-round-mult:empty) .mxh-round-net { grid-row: 1 / span 2; align-self: center; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round-net { font-size: 21px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-round:nth-child(n+5) { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn:is([hidden], .mxh-hist-wait) .mxh-history::after { height: 268px; background-size: 150px 12px, 100% 224px; }
  /* Mobil: Spielbild als Streifen oben, Text darunter voll lesbar */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard { flex-direction: column; min-height: 0; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel .mxh-skel-card { height: 330px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-art {
    position: relative;
    inset: auto;
    height: 118px;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent);
    mask-image: linear-gradient(180deg, #000 45%, transparent);
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-art::after { content: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard.has-art .mxh-pcard-body { width: 100%; margin-top: -46px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-body { padding: 18px 16px 20px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move { min-height: 60px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-val { display: none; }
  /* Touch-Ziele ≥ 44 px */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amts { gap: 8px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.chip-dash, #dashPayCopyBtn) { min-height: 44px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopy { padding-top: 4px !important; padding-bottom: 4px !important; }
}
@media (max-width: 520px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starters { grid-template-columns: minmax(0, 1fr); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter { flex-direction: row; align-items: center; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter img { width: 88px; flex: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-starter-lbl { flex: 1; min-width: 0; min-height: 50px; }
  /* Befehl bleibt ganz lesbar: Kopieren nur als Symbol (Text bleibt für Screenreader) */
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn { min-width: 44px; justify-content: center; padding: 0 10px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn:not(.copied) .mxh-cmd-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn svg { width: 18px; height: 18px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopy { padding-left: 12px !important; }
}
@media (max-width: 380px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ Bewegung (nur Antwort auf Änderungen) */
@keyframes mxhDeltaRise {
  0% { opacity: 0; transform: translateY(10px) scale(.92); }
  14% { opacity: 1; transform: translateY(0) scale(1); }
  72% { opacity: 1; transform: translateY(-4px) scale(1); }
  100% { opacity: 0; transform: translateY(-16px) scale(.98); }
}
/* Roter Puls als Ring-Ebene (transform/opacity, siehe mxLiveRing in max-base.css) statt box-shadow – kein Neuzeichnen des Heros. */
@keyframes mxhRedPulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
@media all {
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-xp-bar > i {
    transition: width 900ms var(--mx-ease);
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-meter-bar i {
    transition: width 700ms var(--mx-ease);
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-bn-hi {
    transition: opacity 900ms var(--mx-ease);
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-bn-lo {
    transition: opacity 420ms var(--mx-ease);
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-balance.is-up .mxh-bn-hi,
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-balance.is-down .mxh-bn-lo {
    transition-duration: 120ms;
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn .mxh-delta.is-shown {
    opacity: 0;
    animation-name: mxhDeltaRise;
    animation-duration: 1900ms;
    animation-timing-function: var(--mx-ease);
    animation-fill-mode: both;
  }
  body.tc-redesign.tc-max:not(.tc-reduced-motion) #siteMain #heroLoggedIn :is(#resumeBtn:not([hidden]) .mxh-resume-dot, .mxh-tag-dot)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgb(255, 77, 94);
    pointer-events: none;
    animation: mxhRedPulse 1.8s ease-out infinite;
    will-change: transform, opacity;
  }
}
@media not all {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn *,
  body.tc-redesign.tc-max #siteMain #heroLoggedIn *::after { transition: none !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn:hover,
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move:hover .mxh-move-go { transform: none; }
}

/* ============================================================ Kompakt-Hub
   Kopf + „Dein Guthaben“ + „Dein nächster Zug“ auf 1440×900 höchstens ~460 px hoch, damit die
   Lobby früh sichtbar ist. Überschreibt die Maße oben (gleiche Spezifität, später im Code) –
   auch die Breakpoint-Regeln (≤1080: .mxh-col bleibt ein Panel, Statistik ist ein Streifen darin).
   Kein Gesamteinsatz: Stat „Einsatz gesamt“ und „Noch X Einsatz bis Level“ entfallen,
   „Deine letzten Runden“ blendet max-hub.js aus. */
body.tc-redesign.tc-max #siteMain #heroLoggedIn {
  --h-pad: 18px;
  --h-gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas: "head head" "wallet next";
  gap: 12px var(--h-gap) !important;
  padding: 0 !important;
}
/* Kopf: Avatar, Name, Rang und Level-Leiste in einer Zeile */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px var(--h-gap);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-id { gap: 12px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn {
  width: 48px;
  height: 48px;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 0 #0b1222, 0 10px 20px -12px rgba(0, 0, 0, .8) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerAvatar { width: 40px !important; height: 40px !important; border-radius: 8px !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-avatar-dot { right: -3px; bottom: -2px; width: 12px; height: 12px; border-width: 2px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-who { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-greet { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerName {
  margin: 0 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-badges { min-height: 0; gap: 6px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashPlayerRoleBadge, #dashPlayerLevelBadge, #mxhRank) {
  height: 24px;
  padding: 0 9px !important;
  font-size: 12px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp:not([hidden]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-top { display: contents; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level { order: 1; font-size: 12.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-level b { font-size: 20px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-title { order: 2; flex: 0 1 auto; font-size: 13.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-bar { order: 3; flex: 1 1 auto; min-width: 80px; height: 10px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-pct { order: 4; margin-left: 0; font-size: 12.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-xp-note { display: none; }

/* Linke Karte: Guthaben + Kennzahlen-Streifen (auch ≤1080 ein Panel) */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-col { grid-area: wallet; display: flex; border-radius: var(--mx-r-lg); }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-wallet, .mxh-history) {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet { padding: 16px var(--h-pad) 0; overflow: visible; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-wallet-title, .mxh-next-title) { font-size: 19px !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-live { font-size: 12px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amount { --bmax: 64px; margin: 10px 0 0; min-height: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #balance { font-size: 56px !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-delta { top: 2px; padding: 5px 9px; font-size: 13.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#stakedNote, .mxh-low-note) {
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions { gap: 8px; margin-top: 12px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#resumeBtn, #depositBtn, #payoutBtn) {
  --b-edge: 3px;
  min-height: 44px;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#depositBtn, #payoutBtn) svg { width: 18px; height: 18px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub { gap: 8px; margin-top: 8px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashInviteFriendsBtn, #dashBotBtn) {
  --b-edge: 2px;
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(#dashInviteFriendsBtn, #dashBotBtn) svg { width: 16px; height: 16px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-invite-tag { height: 20px; padding: 0 6px; font-size: 11.5px; }
/* Kennzahlen unten bündig, wenn „Dein nächster Zug“ höher ist */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-history { margin-top: auto; padding: 0 var(--h-pad) 14px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #mxhStatsTitle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:nth-child(n) {
  grid-column: auto;
  padding: 0 12px;
  border-top: 0;
  border-left: 1px solid var(--mx-line-soft);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:first-child { padding-left: 0; border-left: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dt { margin: 0 0 4px; font-size: 11.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd { font-size: 19px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd small { font-size: 11.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn:is([hidden], .mxh-hist-wait) .mxh-history::after { content: none; }

/* Rechte Karte: eine kompakte Hauptempfehlung, höchstens zwei Zeilen, Aufladen als eine Zeile */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next {
  gap: 10px;
  padding: 16px var(--h-pad);
  border-radius: var(--mx-r-lg);
  container: mxhnext / inline-size;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next-head { min-height: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel { gap: 6px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel i { height: 48px; border-radius: 12px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel .mxh-skel-card { height: 92px; margin-bottom: 4px; border-radius: 14px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-skel .mxh-skel-row:nth-child(4) { display: none; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 14px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-ico {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ore) 15%, #0b1222);
  color: var(--ore);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ore) 36%, transparent), 0 2px 0 rgba(0, 0, 0, .35);
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-ico svg { width: 24px; height: 24px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-ico img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-body {
  grid-column: 2;
  grid-row: 1;
  gap: 3px;
  width: auto;
  min-width: 0;
  padding: 0;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mx-tag { min-height: 0; padding: 2px 8px; font-size: 11px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-title { margin: 2px 0 0 !important; font-size: 20px !important; line-height: 1.05 !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-text {
  display: -webkit-box;
  max-width: none;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-meter { flex-direction: row; align-items: center; gap: 8px; max-width: 300px; margin-top: 2px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-meter-bar { flex: 1 1 auto; height: 6px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-meter-lbl { font-size: 12px; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-cta { grid-column: 3; grid-row: 1; margin: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-slot { grid-column: 1 / -1; grid-row: 2; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-link { min-height: 40px; font-size: 14px !important; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-moves { gap: 6px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move {
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 48px;
  padding: 6px 10px 6px 8px !important;
  border-radius: 12px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-ico { width: 32px; height: 32px; border-radius: 9px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-ico svg { width: 17px; height: 17px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt { flex-direction: row; align-items: baseline; gap: 8px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt strong { flex: none; font-size: 14px; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt span { min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-val { font-size: 12.5px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-go { width: 16px; height: 16px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head head" "cmd amts";
  gap: 6px 8px;
  margin-top: 0;
  padding-top: 10px;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mxh-pay { grid-template-areas: "cmd amts"; padding-top: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head { grid-area: head; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head strong { flex: none; font-size: 13px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head span { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopy {
  grid-area: cmd;
  min-width: 0;
  min-height: 40px;
  padding: 3px 3px 3px 12px !important;
  border-radius: 10px !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayText { min-width: 0; overflow: hidden; font-size: 13px !important; text-overflow: ellipsis; white-space: nowrap; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPayCopyBtn { min-height: 32px; padding: 0 10px !important; font-size: 12.5px !important; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amts { grid-area: amts; display: flex; gap: 4px; }
body.tc-redesign.tc-max #siteMain #heroLoggedIn .chip-dash { min-height: 40px; padding: 0 9px !important; border-radius: 9px !important; font-size: 12.5px !important; }

/* Schmale rechte Karte: Knopf unter den Text, Beträge unter den Befehl */
@container mxhnext (max-width: 520px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "cmd" "amts"; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard .mxh-pay { grid-template-areas: "cmd" "amts"; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container mxhnext (max-width: 440px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-ico { width: 44px; height: 44px; align-self: start; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-cta { grid-column: 1 / -1; grid-row: 2; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-cta .mx-btn { width: 100%; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pcard-slot { grid-row: 3; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-pay-head span { display: none; }
}
/* Mittlere Breiten: „Dein nächster Zug“ etwas breiter, damit Knopf und Befehl in einer Zeile bleiben */
@media (min-width: 900px) and (max-width: 1179px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn,
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important; }
}
@media (max-width: 899px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "head" "wallet" "next";
    gap: 10px !important;
  }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body.tc-redesign.tc-max #siteMain #heroLoggedIn { --h-pad: 14px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #playerDashProfileBtn { width: 44px; height: 44px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerAvatar { width: 36px !important; height: 36px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn #dashPlayerName { font-size: 24px !important; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.mxh-col, .mxh-next) { border-radius: 16px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-wallet { padding-top: 14px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-amount { --bmax: 52px; margin-top: 8px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-history { padding-bottom: 12px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stats { margin-top: 12px; padding-top: 10px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:nth-child(n) { padding: 0 8px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat:first-child { padding-left: 0; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dt { font-size: 10.5px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd { font-size: 16px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-stat dd small { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub:has(#dashBotBtn:not([hidden])) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-actions-sub:has(#dashBotBtn:not([hidden])) .mxh-invite-tag { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-next { padding: 14px var(--h-pad); }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move { min-height: 48px; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-move-txt span { display: none; }
  body.tc-redesign.tc-max #siteMain #heroLoggedIn :is(.chip-dash, #dashPayCopyBtn) { min-height: 44px; }
}

/* Tagesbremse im Hub (js/max-hub.js renderDailyNote): ruhiger Hinweis, gesperrt in Gold */
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-daily-note {
  margin: 8px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--mx-text-2) !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-daily-note.is-blocked {
  color: var(--mx-gold-hi) !important;
  font-weight: 600 !important;
}
body.tc-redesign.tc-max #siteMain #heroLoggedIn .mxh-daily-note[hidden] { display: none !important; }
