/* bustabusta — Client. Dieselbe Identität wie das Kurvenlabor:
   Phosphor-Amber auf Blau-Schiefer, IBM Plex. Dunkel zuerst, weil es ein
   Spiel ist; hell bleibt möglich, weil alles über Token läuft. */

:root {
  --c-ground:  15  21  28;
  --c-panel:   22  30  40;
  --c-sunken:  11  16  22;
  --c-line:    40  52  66;
  --c-ink:    221 228 236;
  --c-muted:  125 139 156;
  --c-accent: 245 166  35;
  --c-accent2: 86 200 216;
  --c-bust:   226  87  76;
  --c-win:    122 203 118;

  --f-ui: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --f-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --c-ground:  236 239 243; --c-panel: 255 255 255; --c-sunken: 225 230 236;
  --c-line:    205 212 221; --c-ink:    16  22  29; --c-muted:  92 103 116;
  --c-accent:  154  95   0; --c-accent2: 14 119 137; --c-bust: 179  48  37;
  --c-win:      36 130  60;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: rgb(var(--c-ground));
  color: rgb(var(--c-ink));
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
input[type=number]::-webkit-inner-spin-button { opacity: .5; }

.app {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top" "stage side";
  gap: 12px;
  padding: 12px 16px 20px;
  max-width: 1320px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "stage" "side"; }
}
/* Vice-Ansichten: Spieler liegen als Bündel auf dem Tisch — die Seitenleiste (Im Spiel, Chat) bleibt weg, die Bühne bekommt die Breite. */
.app.no-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "stage"; }
.app.no-side .side { display: none; }

/* ── Kopfzeile ─────────────────────────────────────────────────────── */
.topbar { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 0; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { font-family: var(--f-cond); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.brand-round { font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 10px; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c-muted)); }
.conn[data-state="online"] i { background: rgb(var(--c-win)); box-shadow: 0 0 0 3px rgb(var(--c-win) / .18); }
.conn[data-state="offline"] i { background: rgb(var(--c-bust)); }

.chip {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 6px 10px;
  transition: border-color .12s, color .12s;
}
.chip:hover { border-color: rgb(var(--c-accent) / .6); color: rgb(var(--c-accent)); }
.chip[aria-pressed="true"] { border-color: rgb(var(--c-accent)); color: rgb(var(--c-accent)); }
.chip:disabled { opacity: .45; cursor: default; }
.chip-wide { width: 100%; margin-top: 10px; }
.chip-accent { background: rgb(var(--c-accent)); border-color: rgb(var(--c-accent)); color: rgb(var(--c-ground)); }
.chip-accent:hover { color: rgb(var(--c-ground)); filter: brightness(1.08); }
.chip-icon { padding: 4px 6px; display: inline-flex; align-items: center; line-height: 0; }
.settings { width: min(400px, calc(100vw - 32px)); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(var(--c-line) / .6); font-size: 13.5px; }
.set-row:first-of-type { border-top: 0; }
.set-row em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: rgb(var(--c-muted)); margin-left: 6px; }
.set-row .chip { min-width: 84px; text-align: center; }
.set-row[hidden] { display: none; }
.chip-tiny { padding: 3px 7px; font-size: 10px; margin-left: 8px; vertical-align: middle; }
.chip[hidden], .acct[hidden] { display: none; }
a.chip { text-decoration: none; }
.topbar { flex-wrap: wrap; }
.langs { display: flex; gap: 4px; }
.flag { background: none; border: 1px solid transparent; border-radius: 3px; padding: 3px 4px; line-height: 0; cursor: pointer; opacity: .55; transition: opacity .12s, border-color .12s; }
.flag:hover { opacity: 1; }
.flag[aria-pressed="true"] { opacity: 1; border-color: rgb(var(--c-accent)); }
.flag svg { display: block; border-radius: 2px; }
@media (max-width: 860px) { .langs { order: 3; } }
.notice { flex-basis: 100%; padding: 8px 12px; border-radius: 3px; background: rgb(var(--c-bust) / .16); border: 1px solid rgb(var(--c-bust) / .5); color: rgb(var(--c-ink)); font-size: 13px; }
.notice[hidden] { display: none; }
.acct { display: inline-flex; gap: 6px; align-items: center; }
.who { font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-accent)); }

/* Anmelden / Konto anlegen */
.auth { border: 1px solid rgb(var(--c-line)); border-radius: 4px; background: rgb(var(--c-panel)); color: rgb(var(--c-ink)); padding: 18px 18px 14px; width: min(360px, calc(100vw - 32px)); }
.auth::backdrop { background: rgb(0 0 0 / .55); }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth h2 { font-family: var(--f-cond); font-weight: 700; font-size: 20px; margin: 0; }
.auth .field-row input { text-align: left; font-family: var(--f-ui); font-size: 14px; }
.auth-error { font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-bust)); }
.auth-error[hidden] { display: none; }
.auth-actions { display: flex; justify-content: flex-end; gap: 8px; }
.auth-switch { align-self: flex-start; background: none; border: 0; padding: 0; font-family: var(--f-ui); font-size: 12.5px; text-transform: none; letter-spacing: 0; color: rgb(var(--c-muted)); text-decoration: underline; }
.auth-switch:hover { color: rgb(var(--c-accent)); }
:focus-visible { outline: 2px solid rgb(var(--c-accent)); outline-offset: 2px; }

/* ── Bühne ─────────────────────────────────────────────────────────── */
.stage-col { grid-area: stage; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.stage {
  position: relative;
  background: rgb(var(--c-sunken));
  border: 1px solid rgb(var(--c-line));
  border-radius: 4px;
  overflow: hidden;
}
.stage canvas { display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; }
.stage canvas[hidden] { display: none; }
.hud-cap { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-mono); font-size: 11px; color: #f0f3f7; text-shadow: 0 1px 6px rgba(0,0,0,.7); pointer-events: none; }
.hud-cap[hidden] { display: none; }
.flash { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; }
@media (max-width: 620px) { .stage canvas { aspect-ratio: 4 / 3.4; } }
.stage.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 1px, 0); }
  40%, 60% { transform: translate3d(4px, -1px, 0); }
}

.readout { position: absolute; top: 14px; left: 16px; right: 16px; pointer-events: none; display: flex; flex-direction: column; gap: 4px; }
.mult {
  font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 9vw, 88px); line-height: .95; letter-spacing: -.035em;
  color: rgb(var(--c-accent));
  text-shadow: 0 2px 24px rgb(var(--c-accent) / .25), 0 1px 3px rgb(0 0 0 / .45);
  transition: color .15s;
}
.readout[data-phase="wait"] .mult { color: rgb(var(--c-muted)); text-shadow: none; }
.readout[data-phase="bust"] .mult { color: rgb(var(--c-bust)); text-shadow: 0 2px 24px rgb(var(--c-bust) / .3); }
.sub { font-family: var(--f-mono); font-size: 12.5px; color: rgb(var(--c-ink)); opacity: .85; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgb(0 0 0 / .55); }
.readout[data-phase="wait"] .mult, .readout[data-phase="wait"] .sub { display: none; }

/* Zwischen den Runden: Karte in der Mitte, Fundament darunter bleibt sichtbar. */
.wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.wait[hidden] { display: none; }
.wait > * { position: relative; }
.wait::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgb(var(--c-ground) / .55), rgb(var(--c-ground) / .15) 70%);
}
.wait-title, .wait-count, .wait-bar, .wait-hint { z-index: 1; }
.wait { flex-direction: column; gap: 8px; }
.wait-title { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--c-ink) / .85); text-shadow: 0 1px 8px rgb(var(--c-ground)); }
.wait-count { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(48px, 9vw, 84px); line-height: 1; letter-spacing: -.03em; color: rgb(var(--c-ink)); text-shadow: 0 2px 20px rgb(var(--c-ground)); }
.wait-bar { width: min(280px, 70%); height: 5px; border-radius: 3px; background: rgb(var(--c-ground) / .6); overflow: hidden; box-shadow: 0 0 0 1px rgb(var(--c-ink) / .12); }
.wait-bar i { display: block; height: 100%; width: 100%; background: rgb(var(--c-accent)); transform-origin: left; }
.wait-hint { font-family: var(--f-mono); font-size: 11.5px; color: rgb(var(--c-ink) / .8); text-shadow: 0 1px 8px rgb(var(--c-ground)); }
.wait-hint.placed { color: rgb(var(--c-accent)); }

/* Gewinn: grüner Blitz aus der Mitte plus der Betrag, kurz und deutlich. */
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 55%, rgb(var(--c-win) / .75), rgb(var(--c-win) / .25) 45%, rgb(var(--c-win) / 0) 75%);
}
.stage.win::after { animation: winflash 1s ease-out both; }
@keyframes winflash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
.win-pop {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-family: var(--f-cond); font-weight: 700; font-size: clamp(36px, 7vw, 64px); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; color: rgb(var(--c-win)); text-shadow: 0 2px 26px rgb(var(--c-win) / .6), 0 1px 2px rgb(0 0 0 / .5);
  pointer-events: none; white-space: nowrap;
}
.win-pop[hidden] { display: none; }
.win-pop.go { animation: winpop 1.1s cubic-bezier(.2,.9,.3,1) both; }
@keyframes winpop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  30% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}
.outcome {
  margin-top: 6px; align-self: flex-start;
  font-family: var(--f-mono); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums;
  padding: 6px 10px; border-radius: 3px;
  background: rgb(var(--c-panel) / .92); border: 1px solid rgb(var(--c-line));
}
.outcome.win { color: rgb(var(--c-win)); border-color: rgb(var(--c-win) / .5); }
.outcome.loss { color: rgb(var(--c-bust)); border-color: rgb(var(--c-bust) / .5); }

/* ── Einsatz ───────────────────────────────────────────────────────── */
.bet {
  background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px;
  padding: 12px; display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.2fr);
  grid-template-areas: "fields action" "foot foot";
  align-items: stretch;
}
@media (max-width: 620px) { .bet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "fields" "action" "foot"; } }
.bet-fields { grid-area: fields; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--c-muted)); }
.field-label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.field-row { display: flex; align-items: stretch; border: 1px solid rgb(var(--c-line)); border-radius: 3px; background: rgb(var(--c-sunken)); overflow: hidden; }
.field-row:focus-within { border-color: rgb(var(--c-accent)); }
.field-row input { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 8px 8px; font-family: var(--f-mono); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; outline: none; }
.field-row input:disabled { color: rgb(var(--c-muted)); }
.bet-note { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-accent)); }
.bet-note[hidden] { display: none; }
.bet.for-next .field-row { border-color: rgb(var(--c-accent) / .45); }
.mini:disabled { color: rgb(var(--c-line)); cursor: default; }
.mini { border: 0; background: rgb(var(--c-panel)); padding: 0 10px; font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-muted)); }
.mini:hover { color: rgb(var(--c-accent)); }

.action {
  grid-area: action; min-height: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgb(var(--c-line)); border-radius: 4px; background: rgb(var(--c-sunken));
  transition: background .12s, border-color .12s, transform .05s;
  user-select: none; -webkit-user-select: none;
}
.action:active:not(:disabled) { transform: scale(.985); }
.action:disabled { cursor: default; opacity: .55; }
.action-main { font-family: var(--f-cond); font-weight: 700; font-size: 22px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.action-hint { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-muted)); }
.action[data-mode="bet"] { background: rgb(var(--c-accent)); border-color: rgb(var(--c-accent)); color: rgb(var(--c-ground)); }
.action[data-mode="bet"] .action-hint { color: rgb(var(--c-ground) / .7); }
.action[data-mode="placed"] { border-color: rgb(var(--c-accent) / .6); color: rgb(var(--c-accent)); }
.action[data-mode="short"] { border-color: rgb(var(--c-bust) / .6); color: rgb(var(--c-muted)); opacity: 1; }
.action[data-mode="short"] .action-hint { color: rgb(var(--c-bust)); }
.action[data-mode="cashout"] { background: rgb(var(--c-accent2)); border-color: rgb(var(--c-accent2)); color: rgb(var(--c-ground)); animation: pulse 1.1s ease-in-out infinite; }
.action[data-mode="cashout"] .action-hint { color: rgb(var(--c-ground) / .7); }
.action[data-mode="cashed"] { border-color: rgb(var(--c-win) / .6); color: rgb(var(--c-win)); }
.action[data-mode="lost"] { border-color: rgb(var(--c-bust) / .6); color: rgb(var(--c-bust)); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgb(var(--c-accent2) / .45); } 50% { box-shadow: 0 0 0 7px rgb(var(--c-accent2) / 0); } }

.bet-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgb(var(--c-muted)); cursor: pointer; }
.check input { accent-color: rgb(var(--c-accent)); }
.balance { font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.balance b { color: rgb(var(--c-ink)); font-weight: 500; font-size: 14px; }
.balance em { font-style: normal; }

/* ── Verlauf ───────────────────────────────────────────────────────── */
.section-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-muted)); }
.history { display: flex; flex-direction: column; gap: 7px; }
.history-head { display: flex; justify-content: space-between; align-items: baseline; }
.history-note { font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { flex: 0 0 auto; font-family: var(--f-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 2px; border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-muted)); background: rgb(var(--c-panel)); }
a.pill { text-decoration: none; }
a.pill:hover { border-color: rgb(var(--c-accent)); }
.pill.t-mid { color: rgb(var(--c-accent)); border-color: rgb(var(--c-accent) / .4); }
.pill.t-hot { color: rgb(var(--c-ground)); background: rgb(var(--c-accent)); border-color: rgb(var(--c-accent)); font-weight: 600; }
.pill.t-low { color: rgb(var(--c-bust)); border-color: rgb(var(--c-bust) / .35); }
.pill.mine { outline: 1px solid rgb(var(--c-accent2)); outline-offset: 1px; }

/* ── Seite ─────────────────────────────────────────────────────────── */
.side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.players, .fair { background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px; padding: 12px; }
.fair { display: flex; flex-direction: column; gap: 9px; }
.fair-body { display: flex; flex-direction: column; gap: 8px; }
.fair.collapsed .fair-body { display: none; }
.fair.collapsed { gap: 0; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.side-count { font-family: var(--f-mono); font-size: 12px; color: rgb(var(--c-ink)); font-variant-numeric: tabular-nums; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.player-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid rgb(var(--c-line) / .6); font-size: 13px; }
.player-list li:first-child { border-top: 0; }
.player-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-list .wager, .player-list .at { font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; color: rgb(var(--c-muted)); }
.player-list li.in .at { color: rgb(var(--c-accent2)); }
.player-list li.out .at { color: rgb(var(--c-win)); }
.player-list li.lost { opacity: .55; }
.player-list li.lost .at { color: rgb(var(--c-bust)); }
.player-list li.me .name { color: rgb(var(--c-accent)); font-weight: 500; }
.player-list .empty { color: rgb(var(--c-muted)); font-size: 12.5px; padding: 6px 0; }

.fair-list { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 12.5px; }
.fair-list dt { color: rgb(var(--c-muted)); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.fair-list dd { margin: 0; min-width: 0; font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.fair-list .hash { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fair-verdict { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; padding: 8px 10px; border-radius: 3px; background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); }
.fair-verdict.ok { border-color: rgb(var(--c-win) / .5); color: rgb(var(--c-win)); }
.fair-verdict.bad { border-color: rgb(var(--c-bust) / .6); color: rgb(var(--c-bust)); }

@media (prefers-reduced-motion: reduce) {
  .action[data-mode="cashout"] { animation: none; }
  .stage.shake { animation: none; }
  .stage.win::after { animation: winflash .6s linear both; }
  .win-pop.go { animation: winpop-still 1s linear both; }
  @keyframes winpop-still { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* ── Spielerprofile: Vorschau (upop) und Dialog (uprof) ─────────────── */
.uname { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; border-bottom: 1px dotted rgb(var(--c-muted) / .6); }
.uname:hover { color: rgb(var(--c-accent)); border-bottom-color: rgb(var(--c-accent)); }
.who.uname { font-family: var(--f-mono); font-size: 12px; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; font-family: var(--f-cond); font-weight: 700; letter-spacing: .02em; color: #0b1016; background: hsl(var(--h) 55% 62%); border-radius: 3px; }
.avatar-s { width: 28px; height: 28px; font-size: 12px; }
.avatar-l { width: 56px; height: 56px; font-size: 22px; border-radius: 5px; }
.tag { display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px; border: 1px solid rgb(var(--c-line)); color: rgb(var(--c-muted)); vertical-align: middle; font-weight: 400; }
.tag-admin { color: rgb(var(--c-accent)); border-color: rgb(var(--c-accent) / .6); }
.pos { color: rgb(var(--c-win)); } .neg { color: rgb(var(--c-bust)); }
.muted { color: rgb(var(--c-muted)); } .small { font-size: 11.5px; }

.upop { position: fixed; z-index: 30; width: 260px; padding: 10px 12px; background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px; box-shadow: 0 10px 30px rgb(0 0 0 / .45); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.upop[hidden] { display: none; }
.upop-head { display: flex; align-items: center; gap: 9px; }
.upop-head b { font-family: var(--f-mono); font-size: 13px; }
.upop-stats { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; }
.upop-stats dt { color: rgb(var(--c-muted)); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.upop-stats dd { margin: 0; font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.upop-hint { font-family: var(--f-mono); font-size: 10.5px; color: rgb(var(--c-muted)); border-top: 1px solid rgb(var(--c-line)); padding-top: 6px; }

.uprof { border: 1px solid rgb(var(--c-line)); border-radius: 5px; background: rgb(var(--c-panel)); color: rgb(var(--c-ink)); padding: 22px 24px 20px; width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-sizing: border-box; overflow: auto; position: relative; }
.uprof::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(3px); }
.uprof-close { position: absolute; top: 12px; right: 12px; }
.uprof-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 60px; }
.uprof-head h2 { font-family: var(--f-mono); font-weight: 600; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.uprof-head p { margin: 2px 0 0; font-size: 13px; }
.utiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.utile { background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.utile-l { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--c-muted)); }
.utile-v { font-family: var(--f-mono); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utile-s { font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.uprof h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--c-muted)); font-weight: 500; margin: 18px 0 8px; }
.table-wrap { overflow-x: auto; }
.utable { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.utable th { text-align: left; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-muted)); font-weight: 500; padding: 5px 8px; border-bottom: 1px solid rgb(var(--c-line)); white-space: nowrap; }
.utable td { padding: 5px 8px; border-bottom: 1px solid rgb(var(--c-line) / .6); white-space: nowrap; }
.utable .num, .utable th.num { text-align: right; font-family: var(--f-mono); }
.rlink { color: rgb(var(--c-accent2)); text-decoration: none; }
.rlink:hover { text-decoration: underline; }
@media (max-width: 620px) { .uprof { padding: 16px; } .uprof-head { padding-right: 44px; } }

/* ── Strategie ──────────────────────────────────────────────────────── */
.strategy { background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.strategy.running { border-color: rgb(var(--c-accent) / .6); }
.strat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.strat-head:hover .section-label { color: rgb(var(--c-accent)); }
.strat-chevron { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.strategy.collapsed .strat-chevron { transform: rotate(-45deg) translateY(1px); }
.strat-body { display: flex; flex-direction: column; gap: 9px; }
.strategy.collapsed .strat-body { display: none; }
.strategy.collapsed { gap: 0; }
.strat-status { font-family: var(--f-mono); font-size: 11px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.strategy.running .strat-status { color: rgb(var(--c-accent)); }
.strat-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.strat-row select { flex: 1 1 160px; min-width: 0; background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 6px 8px; color: rgb(var(--c-ink)); font-family: var(--f-mono); font-size: 12px; }
.chip-stop { border-color: rgb(var(--c-bust) / .7); color: rgb(var(--c-bust)); }
.chip-stop:hover { background: rgb(var(--c-bust) / .12); color: rgb(var(--c-bust)); border-color: rgb(var(--c-bust)); }
.strat-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 10px; }
.strat-field { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-muted)); min-width: 0; }
.strat-field input, .strat-field select { background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 5px 7px; color: rgb(var(--c-ink)); font-family: var(--f-mono); font-size: 13px; text-transform: none; letter-spacing: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.strat-field input[type="checkbox"] { width: 16px; height: 16px; padding: 0; }
.strat-field input:disabled, .strat-field select:disabled { opacity: .55; }
.strat-log { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; color: rgb(var(--c-muted)); background: rgb(var(--c-sunken)); border-radius: 3px; padding: 7px 9px; min-height: 2.8em; max-height: 9em; overflow-y: auto; scrollbar-width: thin; white-space: pre-wrap; overflow-wrap: anywhere; }
.strat-log:empty::before { content: attr(data-empty); opacity: .7; }
.strat-dialog { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
.strat-dialog-in { display: flex; flex-direction: column; gap: 10px; }
.strat-dialog .strat-field input { font-family: var(--f-ui); font-size: 14px; }
#strat-code { width: 100%; min-height: 320px; resize: vertical; background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 10px; color: rgb(var(--c-ink)); font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5; tab-size: 2; box-sizing: border-box; }
#strat-code:focus { border-color: rgb(var(--c-accent)); outline: none; }
.strat-help summary { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-muted)); cursor: pointer; }
.strat-help pre { margin: 8px 0 0; padding: 10px; background: rgb(var(--c-sunken)); border-radius: 3px; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; overflow-x: auto; color: rgb(var(--c-ink)); }
.strat-perf-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.strat-perf { font-family: var(--f-mono); font-size: 11.5px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.strat-perf b { font-weight: 600; color: rgb(var(--c-ink)); }

/* ── Chat ───────────────────────────────────────────────────────────── */
.chat { background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 4px; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.chat .side-head { margin-bottom: 6px; }
.chat-list { list-style: none; margin: 0; padding: 0; height: 260px; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 3px; font-size: 13px; overflow-wrap: anywhere; }
.chat-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 7px; align-items: baseline; padding: 2px 0; }
.chat-list .ts { font-family: var(--f-mono); font-size: 10px; color: rgb(var(--c-muted)); font-variant-numeric: tabular-nums; }
.chat-list .uname { font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.chat-list li.me .uname { color: rgb(var(--c-accent)); }
.chat-list li.admin .uname { color: rgb(var(--c-accent2)); }
.chat-list .txt { grid-column: 2; }
.chat-list li.sys { color: rgb(var(--c-muted)); font-style: italic; }
.chat-list li.sys .txt { grid-column: 2 / 4; }
.chat-list .del { grid-column: 3; grid-row: 1 / 3; align-self: start; background: none; border: 0; padding: 0 2px; color: rgb(var(--c-muted)); font-size: 12px; cursor: pointer; opacity: 0; }
.chat-list li:hover .del { opacity: .8; }
.chat-list .del:hover { color: rgb(var(--c-bust)); opacity: 1; }
.chat-list .empty { color: rgb(var(--c-muted)); font-size: 12.5px; padding: 8px 0; }
.chat-form { display: flex; gap: 6px; margin-top: 8px; }
.chat-form input { flex: 1 1 0; min-width: 0; background: rgb(var(--c-sunken)); border: 1px solid rgb(var(--c-line)); border-radius: 3px; padding: 7px 9px; color: rgb(var(--c-ink)); font-family: var(--f-ui); font-size: 13px; }
.chat-form input:focus { border-color: rgb(var(--c-accent)); outline: none; }
.chat-form input:disabled { opacity: .6; }
.chat-error { font-family: var(--f-mono); font-size: 11.5px; color: rgb(var(--c-bust)); margin-top: 5px; }
.chat-error[hidden] { display: none; }

/* ── All In ─────────────────────────────────────────────────────────── */
.allin { margin-top: 6px; align-self: flex-start; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; border: 1px solid rgb(var(--c-bust) / .7); background: transparent; color: rgb(var(--c-bust)); cursor: pointer; }
.allin:hover:not(:disabled) { background: rgb(var(--c-bust)); color: #fff; }
.allin:disabled { opacity: .35; cursor: default; }
@keyframes rainbow { 0% { color: #ff4d4d; } 17% { color: #ffb03b; } 33% { color: #ffee3b; } 50% { color: #4de37a; } 67% { color: #4dc3ff; } 83% { color: #b06bff; } 100% { color: #ff4d4d; } }
.player-list li.allin .name { animation: rainbow 1.1s linear infinite; font-weight: 600; border-bottom-color: currentColor; }
.player-list li.allin.out .name, .player-list li.allin.lost .name { animation: none; }
.allin-tag { display: inline-block; margin-left: 6px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 0 5px; border-radius: 2px; background: currentColor; vertical-align: middle; }
.allin-tag::after { content: "All In"; color: rgb(var(--c-ground)); }
.allin-tag { color: inherit; font-size: 0; }
.allin-tag::after { font-size: 9px; }
@media (prefers-reduced-motion: reduce) { .player-list li.allin .name { animation: none; color: rgb(var(--c-accent)); } }
.field-row input.off { color: rgb(var(--c-muted)); text-decoration: line-through; }
.mini[aria-pressed="true"] { color: rgb(var(--c-accent)); }

/* Vice City Mint (Toms Zählmaschine): Bild-Ebenen arbeiten in Originalpixeln (1376×768) und werden per JS skaliert. */
.stage .mint { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #2a2240; }
.stage .mint[hidden] { display: none; }
@media (max-width: 620px) { .stage .mint { aspect-ratio: 4 / 3.4; } }
.mint .imgLayer { position: absolute; left: 0; top: 0; width: 1376px; height: 768px; transform-origin: 0 0; pointer-events: none; }
.mint .imgLayer .crop { position: absolute; inset: 0; background: url(/assets/mint/machine.webp) 0 0 / 1376px 768px no-repeat; }
.mint #mint-hopper { clip-path: polygon(603px 225px, 881px 225px, 881px 299px, 603px 299px); }
.mint.running #mint-hopper { animation: mintvib .09s steps(2) infinite; }
@keyframes mintvib { 0% { transform: translate(.6px, -.4px); } 100% { transform: translate(-.6px, .4px); } }
.mint #mint-stopper { clip-path: polygon(601px 662px, 624px 580px, 673px 580px, 693px 631px, 770px 631px, 789px 580px, 835px 580px, 863px 662px); }
.mint #mint-count-cover { position: absolute; left: 763px; top: 325px; width: 120px; height: 48px; background: rgb(46, 40, 51); border-radius: 3px; }
.mint #mint-screen { position: absolute; left: 591px; top: 39px; width: 292px; height: 224px; border-radius: 7px; box-shadow: inset 0 0 14px rgba(255, 79, 216, .35); }
.mint #mint-gl, .mint #mint-gl-fly { position: absolute; inset: 0; width: 100%; height: 100%; display: block; aspect-ratio: auto; }
.mint #mint-gl-fly { pointer-events: none; }
.mint .mint-labels { position: absolute; inset: 0; pointer-events: none; }
.mint .more { position: absolute; transform: translate(-50%, 0); font: 10px 'Bungee', sans-serif; color: #fff; padding: 3px 8px; border-radius: 8px; background: rgba(27, 23, 38, .8); border: 1px solid rgba(255,255,255,.4); }
@media (prefers-reduced-motion: reduce) { .mint.running #mint-hopper { animation: none; } }

/* Vice-Ansichten: kein orangenes Readout über der Szene, dafür der Chat als flüssige Blasen links neben der Maschine. */
.stage.vice .readout { display: none; }
.stage.vice .wait { display: none; }   /* der Countdown steht auf dem Display der Maschine */
.vice-chat { position: absolute; left: 12px; bottom: 12px; top: 8%; width: min(31%, 320px); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; pointer-events: none; z-index: 2; }
.vice-chat[hidden] { display: none; }
.vice-chat-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 7px; overflow: hidden; min-height: 0; }
.vice-chat-list li {
  position: relative; max-width: 88%; padding: 7px 12px 8px; font-size: 12.5px; line-height: 1.3; color: #fff; overflow-wrap: anywhere;
  background: rgba(44, 38, 60, .82);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.35);
  border-radius: 18px; border-bottom-left-radius: 5px;
  animation: plop .45s cubic-bezier(.2, 1.4, .3, 1) both;
  transform-origin: 0 100%;
}
/* iMessage-Schwanz: ein kleiner Bogen an der unteren Ecke, aus zwei Ellipsen geschnitten */
.vice-chat-list li::before { content: ""; position: absolute; left: -6px; bottom: 0; width: 14px; height: 14px; background: inherit; border-bottom-right-radius: 12px 10px; z-index: -1; }
.vice-chat-list li.me { align-self: flex-end; background: linear-gradient(160deg, #ff4fd8, #b13cff); border-color: rgba(255,255,255,.28); box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 16px rgba(255, 79, 216, .35); border-radius: 18px; border-bottom-right-radius: 5px; transform-origin: 100% 100%; }
.vice-chat-list li.me::before { left: auto; right: -6px; border-bottom-right-radius: 0; border-bottom-left-radius: 12px 10px; }
.vice-chat-list li.sys { font-size: 11px; font-style: italic; color: rgba(255,255,255,.8); padding: 5px 11px 6px; background: rgba(93, 255, 160, .16); border-radius: 14px; align-self: center; max-width: 96%; }
.vice-chat-list li.sys::before { display: none; }
.vice-chat-list .uname { font-family: 'Bungee', var(--f-mono); font-size: 9.5px; letter-spacing: .03em; color: #ffd1f4; text-shadow: 0 0 8px rgba(255, 79, 216, .8); display: block; margin-bottom: 1px; }
.vice-chat-list li.me .uname { color: rgba(255,255,255,.85); text-shadow: none; }
.vice-chat-list li.admin .uname { color: #9df6ff; text-shadow: 0 0 8px rgba(63, 245, 255, .8); }
.vice-chat-list li.old { opacity: .6; }
.vice-chat-list li.older { opacity: .32; }
@keyframes plop { 0% { transform: scale(.6) translateY(10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.vice-chat-form { display: flex; gap: 6px; pointer-events: auto; }
.vice-chat-form input {
  flex: 1; min-width: 0; padding: 8px 14px; font: inherit; font-size: 12.5px; color: #fff; border-radius: 18px;
  background: rgba(22, 18, 34, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 14px rgba(0,0,0,.35);
}
.vice-chat-form input::placeholder { color: rgba(255,255,255,.55); }
.vice-chat-form input:focus { outline: none; border-color: #ff4fd8; box-shadow: 0 0 0 2px rgba(255, 79, 216, .35), 0 4px 14px rgba(0,0,0,.35); }
.vice-chat-form button { width: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: linear-gradient(160deg, #ff4fd8, #b13cff); color: #fff; font-size: 14px; cursor: pointer; box-shadow: 0 0 14px rgba(255, 79, 216, .5); }
.vice-chat-form button:disabled { opacity: .45; cursor: default; box-shadow: none; }
@media (max-width: 620px) { .vice-chat { width: 44%; top: 30%; } .vice-chat-list li { font-size: 11px; padding: 5px 10px 6px; } }
@media (prefers-reduced-motion: reduce) { .vice-chat-list li { animation: none; } }

/* Bedienfeld auf der Maschine (Vice Mint): liegt in Bildpixeln auf dem Panel rechts neben „VICE CITY MINT". */
.mint .mint-panel {
  position: absolute; left: 536px; top: 309px; width: 400px; height: 80px; pointer-events: auto;
  display: grid; grid-template-columns: 156px 1fr 70px; grid-template-rows: 36px 1fr; gap: 5px 6px; padding: 5px 5px;
  background: linear-gradient(180deg, #3a3346, #2a2434 60%, #221c2c); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 4px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.35);
}
.mint .mint-panel[hidden] { display: none; }
.mint-display {
  grid-column: 2; grid-row: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 5px; padding: 3px 8px 0;
  background: #0b1416; border-radius: 4px; border: 1.5px solid #3ff5ff; box-shadow: inset 0 0 10px rgba(63,245,255,.25), 0 0 8px rgba(63,245,255,.35);
  color: #9df6ff; font-family: 'Nunito', var(--f-mono); text-shadow: 0 0 8px rgba(63,245,255,.8);
}
.mint-display-label { font: 900 9px 'Nunito', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.mint-display-value { font: 900 19px 'Nunito', sans-serif; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mint-display-unit { font: 800 8px 'Nunito', sans-serif; text-transform: uppercase; opacity: .8; }
.mint-panel.short .mint-display { border-color: #ff5a6a; color: #ffb3bb; text-shadow: 0 0 8px rgba(255,90,106,.9); box-shadow: inset 0 0 10px rgba(255,90,106,.3); animation: mintblink .5s steps(2) infinite; }
@keyframes mintblink { to { opacity: .55; } }
.mint-keys { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mint-keys button, .mint-action {
  font: 10px 'Bungee', sans-serif; color: #f3ecff; cursor: pointer; border-radius: 4px; padding: 0;
  border: 1px solid #14101c; border-bottom-width: 3px;
  background: linear-gradient(180deg, #5a4f70, #3b3350); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 rgba(0,0,0,.6);
  transition: transform .06s, box-shadow .06s;
}
.mint-keys button:active, .mint-action:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.mint-keys button:disabled, .mint-action:disabled { cursor: default; color: rgba(255,255,255,.35); }
.mint-keys button[data-key="max"] { color: #ffd1f4; font-size: 8px; }
.mint-action {
  grid-column: 3; grid-row: 1 / 3; font-size: 10.5px; line-height: 1.1; text-transform: uppercase; overflow-wrap: normal; padding: 0 3px;
  background: radial-gradient(circle at 50% 30%, #ff7be3, #ff4fd8 55%, #c02da0); border-color: #4a0f3c; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 0 14px rgba(255,79,216,.55), 0 1px 0 rgba(0,0,0,.6);
}
.mint-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mint-action-sub { font: 900 11px 'Nunito', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .01em; opacity: .95; }
.mint-action-sub[hidden] { display: none; }
.mint-action:disabled { background: radial-gradient(circle at 50% 30%, #7a3f6e, #5b2a52 55%, #3a1a35); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 0 rgba(0,0,0,.6); color: rgba(255,255,255,.55); text-shadow: none; }
.mint-action[data-mode="cashout"]:not(:disabled) { background: radial-gradient(circle at 50% 30%, #8ffaff, #3ff5ff 55%, #14a9b8); border-color: #0a3d44; color: #062126; text-shadow: none; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 0 16px rgba(63,245,255,.7), 0 1px 0 rgba(0,0,0,.6); animation: mintpulse .8s ease-in-out infinite alternate; }
.mint-action[data-mode="placed"], .mint-action[data-mode="cashed"] { background: radial-gradient(circle at 50% 30%, #7dffb4, #5dffa0 55%, #1f9a5a); border-color: #0c3b22; color: #06301a; text-shadow: none; }
.mint-action[data-mode="lost"] { background: radial-gradient(circle at 50% 30%, #ff8a96, #ff5a6a 55%, #9e1f2c); border-color: #3d0b12; color: #fff; }
@keyframes mintpulse { to { box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 0 26px rgba(63,245,255,1), 0 1px 0 rgba(0,0,0,.6); } }
@media (prefers-reduced-motion: reduce) { .mint-action[data-mode="cashout"]:not(:disabled), .mint-panel.short .mint-display { animation: none; } }

/* Auszahlungs-Display links im Panel (deckt den gemalten Schriftzug ab): zählt den Einsatz mit dem Multiplier hoch. */
.mint-payout {
  grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr; align-items: end; gap: 0 5px; padding: 4px 9px 5px;
  background: #0b1416; border-radius: 4px; border: 1.5px solid #3ff5ff; box-shadow: inset 0 0 12px rgba(63,245,255,.22), 0 0 8px rgba(63,245,255,.3);
  color: #9df6ff; text-shadow: 0 0 8px rgba(63,245,255,.8); transition: color .2s, border-color .2s;
}
.mint-payout .mint-display-label { grid-column: 1 / 4; align-self: start; }
.mint-payout-unit { font: 800 9px 'Nunito', sans-serif; text-transform: uppercase; opacity: .8; padding-bottom: 3px; }
.mint-payout-unit[hidden] { display: none; }
.mint-payout-value { font: 900 26px 'Nunito', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; }
.mint-payout-sub { font: 800 10px 'Nunito', sans-serif; opacity: .85; padding-bottom: 3px; white-space: nowrap; }
.mint-payout[data-state="idle"] { color: rgba(157,246,255,.45); text-shadow: none; border-color: rgba(63,245,255,.5); }
.mint-payout[data-state="cashed"] { color: #7dffb4; border-color: #5dffa0; text-shadow: 0 0 8px rgba(93,255,160,.8); box-shadow: inset 0 0 12px rgba(93,255,160,.25), 0 0 10px rgba(93,255,160,.4); }
.mint-payout[data-state="lost"] { color: #ffb3bb; border-color: #ff5a6a; text-shadow: 0 0 8px rgba(255,90,106,.8); box-shadow: inset 0 0 12px rgba(255,90,106,.25), 0 0 10px rgba(255,90,106,.4); }
