/* ==================================================================
   Vice City Bust — Toms v2-Oberfläche (Liquid Glass) plus Szene.
   Basis: cash-machine-v2/css/style.css + ui.css; Klassen, die mit dem
   Rest des Projekts kollidieren würden, sind umbenannt (.tbrand, .tfield, .pav).
   ================================================================== */
:root {
  --pink: #ff4fd8; --cyan: #3ff5ff; --red: #ff5a6a; --green: #5dffa0;
  --font-money: 'Squada One', 'Nunito', sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --text: #fff; --text-2: rgba(255, 255, 255, .74); --text-3: rgba(255, 255, 255, .5);
  --hair: rgba(255, 255, 255, .09); --fill-1: rgba(255, 255, 255, .07); --fill-2: rgba(255, 255, 255, .12); --fill-3: rgba(255, 255, 255, .2);
  --accent: #ff4fd8; --accent-2: #3ff5ff; --green: #4ce08a; --red: #ff5d6c; --gold: #ffc34d; --ios-green: #34c759;
  --gap: 10px; --bar-h: 58px; --sb-w: 68px;
  --spring: cubic-bezier(.2, .9, .25, 1.15); --ease: cubic-bezier(.25, .8, .25, 1);
  /* Profil-Popover und Dialoge aus dem Hauptspiel */
  --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: 255 79 216; --c-accent2: 63 245 255; --c-bust: 255 90 106; --c-win: 93 255 160;
  --f-ui: "Inter", system-ui, sans-serif; --f-cond: "Inter", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #2a2240; }
body { font-family: var(--font-ui); color: var(--text); -webkit-font-smoothing: antialiased; }

#stage { position: fixed; inset: 0; overflow: hidden; }
#stage button { font-family: inherit; }
#stage.sb-open { --sb-w: 224px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Szene: Bild-Ebenen in Bildpixeln (1376×774), per JS skaliert ---------- */
#world { position: absolute; inset: 0; transform-origin: 50% 46%; will-change: transform, filter; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter .9s ease; }
.imgLayer { position: absolute; left: 0; top: 0; width: 1376px; height: 774px; transform-origin: 0 0; pointer-events: none; }
#vs-ext { position: absolute; left: -320px; top: -160px; width: 2016px; height: 1154px; background: url(/assets/vice/scene-ext.webp) 0 0 / 2016px 1154px no-repeat; }
#vs-base { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.imgLayer .crop { position: absolute; inset: 0; background: url(/assets/vice/machine.webp) 0 0 / 1376px 774px no-repeat; }
/* Pinker Halter liegt nur beim Zählen vor den Scheinen; beim Bust fliegt das Geld davor */
#vs-fg { visibility: hidden; }
#stage.running #vs-fg { visibility: visible; }
#vs-hopper { clip-path: polygon(568px 299px, 818px 299px, 818px 363px, 568px 363px); }
#stage.running #vs-hopper { animation: vib .09s steps(2) infinite; }
@keyframes vib { 0% { transform: translate(.6px, -.4px); } 100% { transform: translate(-.6px, .4px); } }
#vs-stopper { clip-path: polygon(565px 677px, 588px 606px, 633px 606px, 653px 651px, 717px 651px, 737px 606px, 779px 606px, 800px 677px); }
#vs-screen { position: absolute; left: 558px; top: 135px; width: 256px; height: 203px; border-radius: 6px; box-shadow: inset 0 0 14px rgba(255, 79, 216, .35); }
#vs-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#vs-labels { position: absolute; inset: 0; pointer-events: none; }
.more { position: absolute; transform: translate(-50%, -100%); 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); }

/* ---------- Geldbeträge ---------- */
.money { font-family: var(--font-money) !important; font-weight: 400 !important; letter-spacing: .03em; font-variant-numeric: normal; -webkit-text-stroke: .045em currentColor; paint-order: stroke fill; }
#balance.money { font-size: 21px; line-height: 1; }
.wallet-hero b.money { font-size: 56px; letter-spacing: .02em; }
.kpi b.money { font-size: 24px; }
.val.money, .ptable .money { font-size: 1.12em; }

/* ---------- Bet-Panel im Display der Maschine ---------- */
#betPanel {
  position: absolute; left: 507px; top: 375px; width: 366px; height: 66px;
  background: #07060a; border-radius: 6px; pointer-events: auto;
  box-shadow: inset 0 0 12px rgba(255, 79, 216, .3);
  display: grid; grid-template-columns: 1fr 1fr 102px; grid-template-rows: auto auto 1fr;
  column-gap: 6px; row-gap: 2px; padding: 5px 6px 4px;
  font-family: 'Nunito', sans-serif; color: #fff;
}
#betPanel[hidden] { display: none; }
.bp-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-label { font: 800 8.5px/1 'Nunito', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #a79fc2; }
.bp-input { display: flex; align-items: center; height: 26px; padding: 0 2px 0 7px; gap: 3px; background: #17141f; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.bp-input:focus-within { border-color: var(--cyan); box-shadow: 0 0 6px rgba(63, 245, 255, .45); }
.bp-input.error { border-color: var(--red); box-shadow: 0 0 8px rgba(255, 90, 106, .6); animation: bpShake .4s; }
@keyframes bpShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.bp-input input { flex: 1; min-width: 0; width: 40px; background: none; border: 0; outline: 0; padding: 0; color: #fff; font: 900 15px 'Nunito', sans-serif; font-variant-numeric: tabular-nums; }
.bp-input input:disabled { color: #8a82a8; }
.bp-affix { color: #8a82a8; font: 900 11px 'Nunito', sans-serif; }
.bp-off { height: 16px; padding: 0 5px; margin-right: 1px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #a79fc2; font: 800 7.5px/1 'Nunito', sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; flex: none; }
.bp-off.on { color: #3ff5ff; border-color: rgba(63,245,255,.45); }
.bp-off:disabled { opacity: .35; cursor: default; }
.bp-input input.off { color: #8a82a8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bp-step { display: flex; flex-direction: column; }
.bp-step button { width: 15px; height: 12px; padding: 0; border: 0; background: none; color: #8a82a8; font-size: 8px; line-height: 1; cursor: pointer; }
.bp-step button:hover:not(:disabled) { color: #fff; }
.bp-step button:disabled { opacity: .35; cursor: default; }
.bp-info { grid-column: 1 / 3; display: flex; justify-content: space-between; align-items: center; font: 700 8.5px 'Nunito', sans-serif; color: #8f88ab; }
.bp-info b { color: #e6e0f5; font-weight: 900; }
.bp-info b.money { font-size: 10.5px; }
#wager.money { font-size: 19px; }
#betBtn .bb-sub.money { font-size: 17px; line-height: 1; }
#betBtn.lost .bb-sub.money { font-size: 14px; }
#betBtn.won .bb-text.money { font-size: 20px; line-height: 1; }
#betBtn {
  grid-column: 3; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid transparent; border-radius: 8px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #ff72e2, #d91f98);
  box-shadow: 0 0 14px rgba(255, 79, 216, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .1s, filter .15s, background .2s;
}
#betBtn:hover { filter: brightness(1.1); }
#betBtn:active { transform: scale(.96); }
#betBtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bb-main { display: flex; align-items: center; gap: 6px; font: 17px/1 'Bungee', sans-serif; letter-spacing: .04em; }
.bb-coin { width: 21px; height: 21px; border-radius: 50%; flex: none; background: #fff; color: #d91f98; font: 900 15px/21px 'Nunito', sans-serif; text-align: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.bb-sub { font: 800 8.5px/1 'Nunito', sans-serif; letter-spacing: .05em; opacity: .9; white-space: nowrap; }
.bb-sub:empty { display: none; }
#betBtn.cashout { background: linear-gradient(180deg, #7dffc9, #14b884); color: #04281b; box-shadow: 0 0 16px rgba(93, 255, 160, .85), inset 0 1px 0 rgba(255,255,255,.5); }
#betBtn.cashout .bb-coin { color: #14b884; }
#betBtn.cashout .bb-main { font-size: 13px; }
#betBtn.cashout .bb-sub { font: 900 13px/1 'Nunito', sans-serif; }
#betBtn.placed, #betBtn.queued, #betBtn.placing { background: #0d0b14; border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 8px rgba(63, 245, 255, .45); }
#betBtn.placed, #betBtn.placing { cursor: default; }
#betBtn.login { background: #0d0b14; border-color: var(--pink); color: #ffd1f4; box-shadow: 0 0 8px rgba(255, 79, 216, .45); }
#betBtn.placed .bb-main, #betBtn.queued .bb-main, #betBtn.won .bb-main, #betBtn.lost .bb-main, #betBtn.login .bb-main, #betBtn.placing .bb-main { font-size: 12px; }
#betBtn.won { background: #0c211a; border-color: #5dffa0; color: #5dffa0; box-shadow: 0 0 8px rgba(93, 255, 160, .4); }
#betBtn.lost { background: #240c12; border-color: var(--red); color: #ffb3bb; box-shadow: 0 0 8px rgba(255, 90, 106, .4); }
#betBtn.placed .bb-coin, #betBtn.queued .bb-coin, #betBtn.won .bb-coin, #betBtn.lost .bb-coin, #betBtn.login .bb-coin, #betBtn.placing .bb-coin { display: none; }

/* ---------- Glas-Material ---------- */
.glass {
  position: absolute; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04) 70%), rgba(28, 20, 50, .36);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 50px -14px rgba(10, 4, 30, .6), 0 2px 8px rgba(10, 4, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -1px 0 rgba(255, 255, 255, .07), inset 0 0 24px rgba(255, 255, 255, .04);
}
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.3px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .16) 18%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .2) 84%, rgba(255, 255, 255, .5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; background: radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%); }
.glass > * { position: relative; z-index: 1; }

#scrim { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; background: rgba(14, 8, 30, .22); -webkit-backdrop-filter: blur(0px) saturate(1); backdrop-filter: blur(0px) saturate(1); transition: opacity .35s var(--ease), backdrop-filter .45s var(--ease), -webkit-backdrop-filter .45s var(--ease); }
.blurred #scrim { opacity: 1; pointer-events: auto; -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); }

/* ---------- Buttons ---------- */
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; border: 0; background: var(--fill-1); color: var(--text); cursor: pointer; transition: background .2s, transform .15s var(--spring); }
.icon-btn:hover { background: var(--fill-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.round { width: 34px; height: 34px; border-radius: 50%; }
.icon-btn.round svg { width: 18px; height: 18px; }
:is(.icon-btn, .nav-item, .btn, .btn-accent, .profile-btn, .seg button, .flag):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: var(--fill-2); color: var(--text); font: 600 15px var(--font-ui); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: background .2s, transform .15s var(--spring), opacity .2s; text-decoration: none; }
.btn:hover { background: var(--fill-3); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #ff74e3, #de2aa0); border-color: transparent; box-shadow: 0 6px 20px -6px rgba(255, 79, 216, .8), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.danger { color: #ffb1b9; }
.btn.block { width: 100%; }

/* ---------- Headbar ---------- */
#topbar { top: var(--gap); left: var(--gap); right: var(--gap); height: var(--bar-h); z-index: 40; border-radius: 22px; display: flex; align-items: center; gap: 12px; padding: 0 9px; }
.tbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 4px 8px 4px 2px; border-radius: 14px; }
.brand-coin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 17px/1 'Bungee', sans-serif; color: #fff; background: radial-gradient(circle at 30% 25%, #ffb3f0, #ff4fd8 45%, #9b2bff 100%); box-shadow: 0 0 14px rgba(255, 79, 216, .7), inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(60, 0, 80, .4); }
.brand-word { display: block; height: 26px; width: auto; filter: drop-shadow(0 0 10px rgba(255, 79, 216, .55)) drop-shadow(0 2px 2px rgba(20, 5, 40, .5)); }
.status-pill { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--fill-1); border: 1px solid rgba(255, 255, 255, .1); font: 600 14px var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.status-pill[data-phase="running"]::before { background: var(--green); box-shadow: 0 0 10px var(--green); animation: none; }
.status-pill[data-phase="bust"] { color: #ffc2c8; }
.status-pill[data-phase="bust"]::before { background: var(--red); box-shadow: 0 0 10px var(--red); animation: none; }
.status-pill[data-phase="off"] { color: var(--text-3); }
.status-pill[data-phase="off"]::before { background: var(--text-3); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.online { display: flex; align-items: center; gap: 7px; font: 500 13px var(--font-ui); color: var(--text-2); padding: 0 6px; font-variant-numeric: tabular-nums; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.online[data-state="offline"] i { background: var(--red); box-shadow: 0 0 8px var(--red); }
.balance-pill { display: flex; flex-direction: column; justify-content: center; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--fill-1); border: 1px solid rgba(255, 255, 255, .08); line-height: 1.1; }
.bal-label { font: 600 10px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
#balance { font: 700 16px var(--font-ui); font-variant-numeric: tabular-nums; transition: color .3s; }
#balance.up { color: var(--green); } #balance.down { color: #ffb1b9; }
.btn-accent { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 12px; border-radius: 14px; border: 0; cursor: pointer; background: linear-gradient(180deg, #ff74e3, #de2aa0); color: #fff; font: 700 14px var(--font-ui); box-shadow: 0 6px 18px -6px rgba(255, 79, 216, .9), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform .15s var(--spring), filter .2s; }
.btn-accent svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-accent:active { transform: scale(.95); }
.profile-btn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 5px; border-radius: 14px; border: 0; background: var(--fill-1); color: var(--text); cursor: pointer; font: 600 14px var(--font-ui); }
.profile-btn:hover { background: var(--fill-2); }
.pav { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, #ffe08a, #ffac33); color: #3b2300; font: 800 12px var(--font-ui); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7); }
.pav.guest { background: var(--fill-3); color: var(--text-2); }
.profile-btn .chev { width: 16px; height: 16px; color: var(--text-3); }

/* ---------- Sidebar ---------- */
#sidebar { top: calc(var(--gap) * 2 + var(--bar-h)); left: var(--gap); width: var(--sb-w); bottom: var(--gap); z-index: 40; border-radius: 24px; padding: 8px; display: flex; flex-direction: column; gap: 3px; overflow: hidden auto; scrollbar-width: none; transition: width .42s var(--spring); }
.nav-item { position: relative; display: flex; align-items: center; gap: 14px; flex: none; height: 50px; padding: 0 15px; border-radius: 16px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; text-align: left; white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--spring); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { background: var(--fill-1); color: var(--text); }
.nav-item:active { transform: scale(.95); }
.nav-item.active { color: var(--text); background: rgba(255, 255, 255, .17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px -6px rgba(0, 0, 0, .4); }
.nav-item .label { font: 600 15px var(--font-ui); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); }
.sb-open .nav-item .label { opacity: 1; transform: none; transition-delay: .06s; }
.nav-sep { height: 1px; margin: auto 10px 6px; background: var(--hair); flex: none; }
.badge { position: absolute; top: 7px; left: 31px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--font-ui); text-align: center; box-shadow: 0 0 10px rgba(255, 79, 216, .7); }
.badge:empty { display: none; }
.badge.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 11px; left: 33px; font-size: 0; }
.badge.dot:not(.on) { display: none; }
.badge.soft { background: var(--fill-3); box-shadow: none; }
.sb-open .badge { left: auto; right: 12px; top: 50%; transform: translateY(-50%); }
.sb-open .badge.dot { left: auto; right: 16px; top: 50%; }

/* ---------- Panel (Sheet) ---------- */
#sheet { top: calc(var(--gap) * 2 + var(--bar-h)); bottom: var(--gap); left: calc(var(--gap) * 2 + var(--sb-w)); width: min(430px, calc(100% - var(--sb-w) - var(--gap) * 4)); z-index: 30; border-radius: 28px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-18px) scale(.97); transform-origin: left center; transition: opacity .28s var(--ease), transform .45s var(--spring), left .42s var(--spring), visibility 0s .45s; }
.sheet-open #sheet { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 22px; flex: none; }
.sheet-head h2 { margin: 0; font: 700 26px/1.1 var(--font-ui); letter-spacing: -.02em; }
#sheetBody { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
#sheetBody.flush { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
.section-title { margin: 18px 6px 8px; font: 600 12px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.section-title:first-child { margin-top: 4px; }
.group { background: var(--fill-1); border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; font: 500 15px var(--font-ui); }
.row + .row { border-top: 1px solid var(--hair); }
.row .sub { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.row .val { font-weight: 650; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.pos { color: var(--green); } .neg { color: var(--red); } .gold { color: var(--gold); }
.note { margin: 10px 6px 0; font: 400 13px/1.45 var(--font-ui); color: var(--text-3); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--fill-1); border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 12px; }
.kpi span { display: block; font: 600 11px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.kpi b { display: block; margin-top: 5px; font: 700 20px var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ptable { font: 500 14px var(--font-ui); font-variant-numeric: tabular-nums; }
.ptable .tr { display: grid; grid-template-columns: 1fr 64px 76px 76px; align-items: center; gap: 6px; height: 40px; padding: 0 14px; }
.ptable .tr + .tr { border-top: 1px solid var(--hair); }
.ptable .th { height: 34px; font: 600 11.5px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ptable .tr > :not(:first-child) { text-align: right; }
.ptable .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ptable .tr.cashed .name, .ptable .tr.cashed .at, .ptable .tr.cashed .profit { color: var(--green); }
.ptable .tr.lost .profit { color: var(--red); }
.ptable .tr.me { background: rgba(255, 195, 77, .1); }
.ptable .tr.me .name { color: var(--gold); }
.pfoot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 2px 4px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.msg { font: 400 14.5px/1.4 var(--font-ui); padding: 5px 10px; border-radius: 12px; }
.msg time { color: var(--text-3); font-size: 12px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.msg b { font-weight: 650; margin-right: 4px; }
.msg.sys { color: var(--text-2); background: var(--fill-1); font-size: 13px; text-align: center; margin: 4px 0; }
.msg.mine { background: rgba(255, 195, 77, .1); }
.chat-form { display: flex; gap: 8px; padding: 8px 2px 0; flex: none; }
.tfield { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .22); color: var(--text); font: 500 15px var(--font-ui); outline: none; transition: border-color .2s, box-shadow .2s; }
.tfield::placeholder { color: var(--text-3); }
.tfield:focus { border-color: rgba(63, 245, 255, .6); box-shadow: 0 0 0 4px rgba(63, 245, 255, .15); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(180deg, #ff74e3, #de2aa0); box-shadow: 0 6px 18px -6px rgba(255, 79, 216, .9); }
.send:disabled { opacity: .4; cursor: default; }
.send svg { width: 19px; height: 19px; }
.xchip { display: inline-grid; place-items: center; min-width: 64px; height: 30px; padding: 0 10px; border-radius: 10px; font: 700 14px var(--font-ui); font-variant-numeric: tabular-nums; }
.xchip.lo { color: #ff8c97; background: rgba(255, 93, 108, .15); }
.xchip.hi { color: #6cf0a2; background: rgba(76, 224, 138, .15); }
.xchip.mega { color: #ffd98a; background: rgba(255, 195, 77, .18); }
.rlink { color: var(--accent-2); text-decoration: none; font-size: 12.5px; }
.rlink:hover { text-decoration: underline; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 14px 14px 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #ff74e3, #7b5cff); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); transition: height .5s var(--spring); }
.bar em { font: 700 12px var(--font-ui); font-style: normal; color: var(--text-2); }
.bars-foot { display: flex; gap: 8px; padding: 6px 14px 12px; }
.bars-foot span { flex: 1; text-align: center; font: 600 11px var(--font-ui); color: var(--text-3); }
.rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill-2); font: 700 13px var(--font-ui); flex: none; }
.rank.r1 { background: linear-gradient(145deg, #ffe08a, #ffac33); color: #3b2300; }
.rank.r2 { background: linear-gradient(145deg, #f1f4f8, #b8c0cc); color: #2a2f38; }
.rank.r3 { background: linear-gradient(145deg, #f5c29a, #c77b45); color: #3a1c07; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.wallet-hero { text-align: center; padding: 22px 12px 18px; }
.wallet-hero span { font: 600 12px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.wallet-hero b { display: block; margin-top: 6px; font: 700 44px var(--font-ui); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chips-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 120, 128, .36); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .3s var(--spring), width .2s; }
.switch input:checked + span { background: var(--ios-green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
details.faq + details.faq { border-top: 1px solid var(--hair); }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font: 600 15px var(--font-ui); cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--spring); }
details.faq[open] summary svg { transform: rotate(180deg); }
details.faq p { margin: 0; padding: 0 16px 14px; font: 400 14px/1.5 var(--font-ui); color: var(--text-2); }
kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 7px; background: var(--fill-2); border: 1px solid rgba(255,255,255,.15); font: 600 12px var(--font-ui); text-align: center; }
.langs { display: flex; gap: 6px; }
.flag { background: var(--fill-1); border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; 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: var(--accent); }
.flag svg { display: block; border-radius: 2px; width: 26px; height: 18px; stroke: none; }

/* ---------- Chat (Liquid Glass, oben rechts) ---------- */
#chatbox { top: calc(var(--gap) * 2 + var(--bar-h)); right: var(--gap); width: 300px; height: min(380px, 46vh); z-index: 18; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; transition: height .45s var(--spring), opacity .25s; }
#chatbox:not(.open) { height: 56px; }
.cb-head { display: flex; align-items: center; gap: 10px; flex: none; height: 56px; padding: 0 14px 0 10px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; font-family: var(--font-ui); }
.cb-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; flex: none; background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.cb-icon svg { width: 18px; height: 18px; }
.cb-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cb-title { font: 650 15px var(--font-ui); letter-spacing: -.01em; }
.cb-online { display: flex; align-items: center; gap: 6px; font: 500 12px var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cb-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.cb-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); font: 700 11.5px/20px var(--font-ui); text-align: center; box-shadow: 0 0 10px rgba(255,79,216,.7); }
.cb-badge:empty { display: none; }
.cb-chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .35s var(--spring); transform: rotate(180deg); }
#chatbox:not(.open) .cb-chev { transform: none; }
.cb-msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 12px 8px; scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent 0, #000 16px, #000 100%); mask-image: linear-gradient(transparent 0, #000 16px, #000 100%); }
.cb-msgs::-webkit-scrollbar { display: none; }
.bub { position: relative; align-self: flex-start; max-width: 86%; padding: 7px 12px 8px; border-radius: 18px 18px 18px 6px; font: 500 14px/1.3 var(--font-ui); overflow-wrap: anywhere; isolation: isolate; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08)); -webkit-backdrop-filter: blur(10px) saturate(1.8); backdrop-filter: blur(10px) saturate(1.8); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(20,5,40,.22); animation: bubIn .45s var(--spring) both; }
.bub b { display: block; font: 650 12px/1.2 var(--font-ui); margin-bottom: 2px; }
.bub b.uname { border-bottom: 0; }
.bub.mine { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, rgba(255,130,225,.7), rgba(222,42,160,.6)); border-color: rgba(255,200,240,.4); }
.bub.sys { align-self: center; max-width: 96%; padding: 4px 12px; border-radius: 12px; font: 600 12px/1.3 var(--font-ui); color: var(--text-2); background: rgba(10,4,24,.28); text-align: center; box-shadow: none; }
.bub.empty { align-self: center; color: var(--text-3); background: none; border: 0; box-shadow: none; }
@keyframes bubIn { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.cb-input { display: flex; gap: 8px; padding: 6px 10px 10px; flex: none; }
.cb-input input { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: #fff; font: 500 14px var(--font-ui); outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); transition: border-color .2s, box-shadow .2s; }
.cb-input input::placeholder { color: var(--text-3); }
.cb-input input:focus { border-color: rgba(63,245,255,.6); box-shadow: 0 0 0 3px rgba(63,245,255,.15); }
.cb-input button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; flex: none; background: linear-gradient(180deg, #ff74e3, #de2aa0); box-shadow: 0 4px 12px rgba(255,79,216,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.cb-input button:disabled { opacity: .4; cursor: default; }
.cb-input button svg { width: 17px; height: 17px; }
@media (max-width: 760px) { #chatbox { display: none; } }

/* ---------- Auscash-Moment ---------- */
#cashFx { position: absolute; inset: 0; z-index: 16; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.cashfx #cashFx { opacity: 1; transition: opacity .15s ease; }
.cf-tint { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(70, 255, 150, .05), rgba(20, 200, 110, .22) 100%); box-shadow: inset 0 0 120px rgba(60, 255, 150, .28); }
.cashfx #world { filter: saturate(1.08) brightness(1.04); transition: filter .2s; }
.cf-band { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .2vh; padding: 2.2vh 0 2.6vh; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(3,20,10,.5) 20%, rgba(3,20,10,.5) 80%, rgba(0,0,0,0)); }
.cf-band img { height: clamp(34px, 6.2vh, 70px); width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.cf-amt { font-size: clamp(64px, 13vh, 150px) !important; line-height: .95; letter-spacing: .02em !important; color: #7dffb3; -webkit-text-stroke: .07em #04150b !important; paint-order: stroke fill; text-shadow: 0 .06em 0 #0b3d22, 0 0 .35em rgba(80, 255, 160, .55); font-variant-numeric: tabular-nums; }
.cf-sub { font: 700 clamp(13px, 1.9vh, 18px) var(--font-ui); color: #d9ffe8; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cashfx .cf-band { animation: cfBand .3s ease-out both; }
.cashfx .cf-band img { animation: cfPop .5s cubic-bezier(.18, 1.4, .4, 1) both; }
.cashfx .cf-amt { animation: cfPop .55s .08s cubic-bezier(.18, 1.35, .4, 1) both; }
.cashfx .cf-sub { animation: cfBand .4s .35s ease-out both; }
@keyframes cfBand { from { opacity: 0; } }
@keyframes cfPop { from { opacity: 0; transform: scale(1.5); } }
.slowmo #cashFx, .wasted #cashFx { opacity: 0 !important; }

/* ---------- WASTED (Bust wie in GTA V) ---------- */
.slowmo #world { transform: scale(1.045); filter: saturate(.6) contrast(1.06) brightness(.95); }
.wasted #world { transform: scale(1.09); filter: grayscale(1) contrast(1.3) brightness(1.08); transition: transform 5s cubic-bezier(.1, .5, .3, 1), filter .08s linear; }
.wasted-out #world { transition: transform 1.2s ease, filter 1.1s ease; }
#wastedFx { position: absolute; inset: 0; z-index: 17; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.slowmo #wastedFx { opacity: 1; }
.wf-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%); opacity: .5; transition: opacity .6s; }
.wasted .wf-vignette { opacity: 1; }
.wf-flash { position: absolute; inset: 0; background: #fff; opacity: 0; mix-blend-mode: screen; }
.wasted .wf-flash { animation: wfFlash .9s ease-out both; }
@keyframes wfFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
.wf-band { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: .6vh; padding: 2.2vh 0 2.4vh; opacity: 0; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.68) 16%, rgba(0,0,0,.68) 84%, rgba(0,0,0,0)); }
.wf-x { display: flex; align-items: baseline; gap: .6em; }
.wf-x span { font: 800 clamp(12px, 1.8vh, 17px) var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.wf-x b { font-size: clamp(34px, 6.5vh, 76px) !important; line-height: 1; color: #fff; -webkit-text-stroke: .07em #140406 !important; paint-order: stroke fill; text-shadow: 0 .05em 0 #5a141d, 0 0 .3em rgba(224, 72, 90, .6); }
.wasted .wf-x { animation: wfText .55s .12s cubic-bezier(.18, 1.35, .4, 1) both; }
.wf-band img { height: clamp(54px, 9.5vh, 120px); width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.wasted .wf-band { animation: wfBand .35s ease-out both; }
.wasted .wf-band img { animation: wfText .55s cubic-bezier(.18, 1.35, .4, 1) both; }
@keyframes wfBand { from { opacity: 0; } to { opacity: 1; } }
@keyframes wfText { from { opacity: 0; transform: scale(1.45); } to { opacity: 1; transform: none; } }
.wasted-out .wf-band { animation: none; opacity: 0; transition: opacity .5s; }
@media (prefers-reduced-motion: reduce) { .slowmo #world, .wasted #world { transform: none; } .wasted .wf-flash { animation: none; } }

/* ---------- Toasts ---------- */
#toasts { position: absolute; top: calc(var(--gap) * 2 + var(--bar-h)); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; font: 600 14px var(--font-ui); white-space: nowrap; animation: toastIn .5s var(--spring) both; }
.toast.out { animation: toastOut .3s var(--ease) both; }
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-ui); background: var(--fill-3); }
.toast.win .ti { background: var(--green); color: #05361a; }
.toast.error .ti { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* ---------- Anmelde-Dialog ---------- */
dialog.auth { border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(28, 20, 50, .92); color: var(--text); padding: 22px 22px 18px; width: min(380px, calc(100vw - 32px)); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
dialog.auth::backdrop { background: rgba(10, 4, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.auth form { display: flex; flex-direction: column; gap: 12px; }
dialog.auth h2 { font: 700 24px var(--font-ui); letter-spacing: -.02em; }
.afield { display: flex; flex-direction: column; gap: 5px; }
.afield-label { font: 600 12px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.afield input { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); color: var(--text); font: 500 15px var(--font-ui); outline: none; }
.afield input:focus { border-color: rgba(63,245,255,.6); box-shadow: 0 0 0 4px rgba(63,245,255,.15); }
.auth-error { font: 500 13px var(--font-ui); color: #ffb1b9; }
.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: 500 13px var(--font-ui); color: var(--text-3); text-decoration: underline; cursor: pointer; }
.auth-switch:hover { color: var(--text); }

/* ---------- Spielerprofile (Vorschau + Dialog aus dem Hauptspiel) ---------- */
.uname { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; border-bottom: 1px dotted rgba(255,255,255,.4); }
.uname:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.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); }
.small { font-size: 11.5px; }
.upop { position: fixed; z-index: 60; width: 260px; padding: 10px 12px; background: rgb(var(--c-panel)); border: 1px solid rgb(var(--c-line)); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .45); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; color: rgb(var(--c-ink)); }
.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: 20px; 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); 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: 10px; 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); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: var(--fill-2); color: var(--text); font: 600 13px var(--font-ui); cursor: pointer; }
.chip:hover { background: var(--fill-3); }

/* ---------- Mittlere Breiten / Mobil ---------- */
@media (max-width: 1180px) { .online { display: none; } .status-pill { position: static; transform: none; margin: 0 auto; } .top-right { margin-left: 0; } }
@media (max-width: 980px) { .brand-word, .profile-name { display: none; } }
@media (max-width: 760px) {
  :root { --bar-h: 52px; --gap: 8px; }
  #stage.sb-open { --sb-w: 68px; }
  #menuBtn, .online, .bal-label, .profile-name, .profile-btn .chev, .btn-accent span, .brand-word { display: none; }
  #topbar { gap: 8px; }
  .status-pill { display: none; }
  .top-right { margin-left: auto; gap: 8px; }
  #balance { font-size: 15px; }
  .btn-accent { padding: 0 11px; }
  .balance-pill { height: 38px; padding: 0 10px; }
  #sidebar { top: auto; bottom: var(--gap); left: var(--gap); right: var(--gap); width: auto; height: 66px; max-height: none; flex-direction: row; padding: 6px; border-radius: 26px; overflow-x: auto; scrollbar-width: none; }
  #sidebar::-webkit-scrollbar { display: none; }
  .nav-item { flex-direction: column; justify-content: center; gap: 3px; min-width: 64px; height: 54px; padding: 0 6px; }
  .nav-item .label { opacity: 1; transform: none; font-size: 10.5px; }
  .nav-sep { display: none; }
  .badge, .sb-open .badge { top: 4px; left: calc(50% + 6px); right: auto; transform: none; }
  .badge.dot, .sb-open .badge.dot { top: 6px; left: calc(50% + 8px); right: auto; }
  #sheet { top: auto; left: var(--gap); right: var(--gap); width: auto; height: min(74%, 640px); bottom: calc(66px + var(--gap) * 2); border-radius: 28px; transform: translateY(24px) scale(.98); transform-origin: bottom center; }
  #toasts { top: calc(var(--gap) * 2 + var(--bar-h)); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { #sheet, #sidebar, .nav-item .label, #scrim { transition-duration: .01s !important; } }
