/* SmartOne Casino */
:root {
  --gold: #e0b95a;
  --gold-hi: #ffe08a;
  --gold-lo: #8a6a22;
  --ink: #f1ead7;
  --wood: #4a2c16;
  --panel: #14100a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; width: 100%; background: #040605; overflow: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; color: var(--ink); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
.muted { color: #a79f8b; }

#viewport { position: fixed; inset: 0; overflow: hidden; touch-action: none; background: radial-gradient(circle at 50% 40%, #12100c, #030403 75%); }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center center; overflow: hidden; background: #0a0d0b; box-shadow: 0 0 80px rgba(0, 0, 0, 0.8); user-select: none; }

/* ---------- Kopfleiste ---------- */
#topbar { position: absolute; left: 0; top: 0; width: 100%; height: 52px; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: linear-gradient(#1b1409, #0c0905); border-bottom: 1px solid #5a4318; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: 3px; color: #cdbb8a; font-weight: 600; width: 270px; }
.brand b { color: var(--gold-hi); font-weight: 800; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#b3202c 0 10%, #15161b 10% 20%, #b3202c 20% 30%, #15161b 30% 40%, #b3202c 40% 50%, #15161b 50% 60%, #b3202c 60% 70%, #15161b 70% 80%, #b3202c 80% 90%, #15161b 90%); border: 2px solid var(--gold); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #c9972e); }
#tabs { display: flex; gap: 6px; }
.tab { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; background: none; border: none; color: #a8987a; font-size: 16px; font-weight: 600; letter-spacing: 1px; cursor: pointer; position: relative; transition: color 0.15s; }
.tab:hover { color: #f1e3b8; }
.tab.active { color: var(--gold-hi); }
.tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #b88a1e, #ffe08a, #b88a1e); box-shadow: 0 0 12px rgba(255, 224, 138, 0.7); }
.ti { width: 16px; height: 16px; fill: currentColor; }
.ti-roul { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.ti-roul::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.top-right { display: flex; align-items: center; gap: 10px; width: 270px; justify-content: flex-end; }
.bal { display: flex; flex-direction: column; align-items: flex-end; padding: 3px 16px; border-radius: 10px; background: #0b0905; border: 1px solid #6b4f1c; min-width: 128px; transition: box-shadow 0.4s; }
.bal-label { font-size: 9px; letter-spacing: 2px; color: #a8987a; }
.bal-val { font-size: 20px; font-weight: 800; color: var(--gold-hi); font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal.up { animation: balUp 1s; }
.bal.down { animation: balDown 1s; }
@keyframes balUp { 0% { box-shadow: 0 0 0 rgba(90, 255, 140, 0); } 30% { box-shadow: 0 0 22px rgba(90, 255, 140, 0.8); } 100% { box-shadow: 0 0 0 rgba(90, 255, 140, 0); } }
@keyframes balDown { 0% { box-shadow: 0 0 0 rgba(255, 90, 90, 0); } 30% { box-shadow: 0 0 22px rgba(255, 90, 90, 0.7); } 100% { box-shadow: 0 0 0 rgba(255, 90, 90, 0); } }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #6b4f1c; background: #17110a; color: #d9c58f; font-weight: 700; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
.icon-btn:hover { background: #2a1e0e; color: var(--gold-hi); }
#btn-sound.muted { opacity: 0.45; }

#views { position: absolute; left: 0; top: 52px; right: 0; bottom: 0; }
.view { position: absolute; inset: 0; display: none; }
.view.active { display: block; animation: viewIn 0.4s ease; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 70; }
#toasts { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: rgba(10, 8, 4, 0.92); border: 1px solid #6b4f1c; color: var(--ink); padding: 8px 20px; border-radius: 20px; font-size: 14px; opacity: 0; transform: translateY(-10px); transition: 0.3s; }
.toast.in { opacity: 1; transform: none; }
.toast.warn { border-color: #d46; color: #ffc9c9; }
.float-text { position: absolute; font-size: 36px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px #000, 0 0 20px rgba(0, 0, 0, 0.6); white-space: nowrap; }
.float-text.gold { color: var(--gold-hi); }

/* ---------- Dialog ---------- */
#modal-layer { position: absolute; inset: 0; z-index: 100; pointer-events: none; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); display: grid; place-items: center; opacity: 0; transition: opacity 0.2s; pointer-events: auto; }
.modal-back.in { opacity: 1; }
.modal { width: 520px; max-height: 620px; overflow: auto; background: linear-gradient(#211709, #100b05); border: 2px solid #8a6a22; border-radius: 16px; padding: 24px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); }
.modal.wide { width: 640px; }
.modal h2 { margin: 0 0 12px; font-size: 22px; color: var(--gold-hi); letter-spacing: 1px; }
.modal h3 { margin: 0 0 10px; color: var(--gold-hi); }
.modal p { line-height: 1.5; margin: 0 0 10px; }
.modal ul { margin: 0; padding-left: 20px; line-height: 1.55; }
.modal li { margin-bottom: 4px; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.kv { width: 100%; border-collapse: collapse; margin: 8px 0; }
.kv td { padding: 6px 0; border-bottom: 1px solid #3a2d12; }
.kv td:last-child { text-align: right; color: var(--gold-hi); font-weight: 700; }
/* Anmeldung und Spielerwechsel (Profile auf diesem Gerät) */
.reg p { margin: 0 0 12px; line-height: 1.45; }
.reg-name { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #7a5a22; background: #120c06; color: #ffe7a6; font: 700 17px/1 inherit; font-family: inherit; outline: none; }
.reg-name:focus { border-color: #e7c264; box-shadow: 0 0 0 3px rgba(231, 194, 100, 0.25); }
.reg-pass { margin-top: 10px; }
.reg-ok { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid #5a4318; background: rgba(18, 12, 6, 0.7); color: #e9dfc6; font-size: 14px; line-height: 1.45; cursor: pointer; }
.reg-ok.need { border-color: #ff9a8a; box-shadow: 0 0 0 2px rgba(255, 154, 138, 0.25); }
.reg-ok a { color: #f0cb68; }
.reg-check { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #e7c264; cursor: pointer; }
.legal-links { display: flex; gap: 18px; justify-content: center; margin: 14px 0 0; font-size: 13px; }
.legal-links a { color: #d9c58f; }
.kv.rank th { text-align: left; color: #b9a571; font-size: 12px; font-weight: 600; padding-bottom: 6px; }
.kv.rank tr.me td { color: #ffe7a6; font-weight: 700; }
.reg-err { min-height: 18px; margin: 6px 0 4px !important; color: #ff9a8a; font-size: 13px; }
.pl-list p { margin: 0 0 10px; }
.pl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-pick { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #6b4422; background: linear-gradient(#2a1d10, #120b05); color: #ffe7a6; font-family: inherit; font-size: 15px; cursor: pointer; }
.pl-pick span { color: #d9c58f; font-weight: 700; }
.pl-pick.on { border-color: #e7c264; box-shadow: 0 0 0 2px rgba(231, 194, 100, 0.3); }
.pl-del { height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid #6b2a22; background: rgba(40, 10, 8, 0.7); color: #ff9a8a; font-family: inherit; cursor: pointer; }
.pl-cur { width: 70px; text-align: center; font-size: 12px; color: #b9a571; }

/* ---------- Buttons ---------- */
.btn { height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid #6b4f1c; background: linear-gradient(#3d2d13, #1c1409); color: #ffe9b0; font-weight: 700; font-size: 15px; cursor: pointer; transition: filter 0.12s, transform 0.12s; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.25); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.32; cursor: not-allowed; }
.btn.big { height: 52px; font-size: 17px; min-width: 130px; }
.btn.primary { background: linear-gradient(#f0cb68, #b88a1e); color: #2a1c00; border-color: var(--gold-hi); }
.btn.danger { background: linear-gradient(#a82c2c, #6b1414); color: #fff; border-color: #d46; }

/* ---------- Räume ---------- */
.room { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 12%, #2d2216 0%, #14100b 55%, #070605 100%); }
.room::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 2px, transparent 2px 6px); pointer-events: none; }
.cardrow { position: absolute; width: 0; height: 0; }
.dealer-body-host svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dealer-hands-host svg { width: 100%; height: 100%; display: block; overflow: visible; }

.bubble { position: absolute; z-index: 25; background: #f7f1df; color: #2a2010; padding: 9px 16px; border-radius: 16px; font-size: 15px; font-weight: 600; max-width: 260px; opacity: 0; transform: translateY(8px) scale(0.94); transition: 0.25s; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); pointer-events: none; }
.bubble.show { opacity: 1; transform: none; }
.bubble::after { content: ""; position: absolute; left: -9px; top: 18px; border: 9px solid transparent; border-right-color: #f7f1df; border-left: 0; }
.dealer-tag { position: absolute; z-index: 7; background: linear-gradient(#ecd080, #b48a24); color: #2a1c00; padding: 3px 12px; border-radius: 4px; font-size: 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); border: 1px solid #fff0b8; }
.dealer-tag b { font-size: 13px; }
.dealer-tag span { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }

/* Dealer-Animationen */
.body-g { animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.5px); } }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 5.2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
.m-open { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.talking .m-open { animation: talk 0.28s infinite alternate; }
.talking .m-closed { opacity: 0; }
@keyframes talk { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
.hand-in { transform-box: view-box; }

/* Roboter */
.r-pupil { animation: pupil 3.4s ease-in-out infinite; }
@keyframes pupil { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.led { animation: ledb 1.5s infinite; }
.led.l2 { animation-delay: 0.35s; }
.led.l3 { animation-delay: 0.7s; }
@keyframes ledb { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.r-led { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Karten (Vorderseite als Vektorgrafik, scharf bei jeder Größe) ---------- */
.card { position: absolute; left: 0; top: 0; width: 5em; height: 7em; transition: transform 0.35s ease, opacity 0.3s, filter 0.3s; }
.card .inner { position: absolute; inset: 0; }
.card .face, .card .back { position: absolute; inset: 0; border-radius: 0.42em; box-shadow: 0 0.18em 0.5em rgba(0, 0, 0, 0.55), 0 0 0 0.04em rgba(0, 0, 0, 0.4); }
.card .face { display: none; background: linear-gradient(150deg, #ffffff 0%, #f6f2e6 60%, #ece6d4 100%); color: #15151a; overflow: hidden; }
.card .face.red { color: #c4161c; }
.card .face svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card.up .face { display: block; }
.card.up .back { display: none; }
.card .back { background: radial-gradient(circle at 50% 50%, #8e1a2c 0, #4c0b18 100%); border: 0.26em solid #f6f2e6; overflow: hidden; }
.card .back::before { content: ''; position: absolute; inset: 0.1em; border-radius: 0.2em; background: repeating-linear-gradient(45deg, rgba(240, 205, 120, 0.22) 0 0.08em, transparent 0.08em 0.46em), repeating-linear-gradient(-45deg, rgba(240, 205, 120, 0.22) 0 0.08em, transparent 0.08em 0.46em); border: 0.07em solid rgba(240, 205, 120, 0.9); }
.card .back::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.5em; height: 1.5em; transform: translate(-50%, -50%) rotate(45deg); background: radial-gradient(circle, #f6d878, #9a7220); border-radius: 0.2em; box-shadow: 0 0 0 0.12em #4c0b18, 0 0 0 0.2em rgba(240, 205, 120, 0.8); }
.card.mucked { opacity: 0.28; filter: grayscale(1); }
.card.dim { opacity: 0.5; }
.card.win .face { box-shadow: 0 0 0 0.16em var(--gold-hi), 0 0 1.4em 0.3em rgba(255, 224, 138, 0.85); }

/* ---------- Chips ---------- */
.chip { position: relative; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: repeating-conic-gradient(from -11.25deg, #f3efe2 0 22.5deg, var(--c) 22.5deg 45deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(0, 0, 0, 0.4); flex: none; }
.chip::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 70%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88), inset 0 0 6px rgba(0, 0, 0, 0.45); }
.chip::after { content: attr(data-v); position: absolute; inset: 0; display: grid; place-items: center; color: var(--t); font-weight: 800; font-size: calc(var(--s) * var(--k, 0.29)); letter-spacing: -0.03em; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45); font-family: "Segoe UI", sans-serif; }
.stack { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.stack .chip { position: absolute; }
.pk-room.training .chip { filter: hue-rotate(155deg) saturate(0.85); }
.rack { display: flex; gap: 12px; align-items: center; }
.rack-chip { background: none; border: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform 0.14s, filter 0.14s, opacity 0.2s; }
.rack-chip:hover { transform: translateY(-5px); }
.rack-chip.sel { transform: translateY(-7px); }
.rack-chip.sel .chip { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 16px 3px rgba(255, 224, 138, 0.7), 0 4px 8px rgba(0, 0, 0, 0.45); }
.rack-chip.poor { opacity: 0.3; cursor: not-allowed; }
.rack-chip.off { pointer-events: none; opacity: 0.45; }

/* ---------- Leiste unten ---------- */
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 68px; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: linear-gradient(#1f1609, #0a0704); border-top: 2px solid #7a5a1e; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55); }
.bar-info { min-width: 120px; }
.lbl { display: block; font-size: 10px; letter-spacing: 2px; color: #b5a273; }
.bar-info b { font-size: 24px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.bar-mid { flex: 1; display: flex; justify-content: center; }
.panel { display: none; align-items: center; gap: 12px; }
.panel.on { display: flex; }
.bet-actions { display: none; gap: 8px; align-items: center; }
.bet-actions.on { display: flex; }
.wait-txt { color: #b5a273; font-style: italic; }
.act { width: 118px; height: 54px; border-radius: 10px; border: 1px solid #6b4f1c; background: linear-gradient(#3d2d13, #1c1409); color: #ffe9b0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: filter 0.12s, transform 0.12s; }
.act b { font-size: 17px; }
.act small { font-size: 10px; opacity: 0.65; }
.act:hover:not(:disabled) { filter: brightness(1.3); transform: translateY(-2px); }
.act:disabled { opacity: 0.3; cursor: not-allowed; }
.act[data-act="hit"] { background: linear-gradient(#2c7a46, #14412a); border-color: #5fd48a; color: #e6ffee; }
.act[data-act="stand"] { background: linear-gradient(#a82c2c, #5e1212); border-color: #e0707a; color: #ffeaea; }
.act[data-act="double"] { background: linear-gradient(#e0b13c, #8a6412); border-color: var(--gold-hi); color: #2a1c00; }
.act[data-act="split"] { background: linear-gradient(#3d6aa8, #1b3358); border-color: #8ab4f0; color: #e8f1ff; }
.ins-q { color: #ffe9b0; font-size: 16px; }

/* ---------- Gemeinsame Tisch-Elemente ---------- */
.hand-badge { position: absolute; left: 0; top: -76px; transform: translate(-50%, 0) scale(0.8); background: rgba(0, 0, 0, 0.78); color: #fff; font-weight: 800; padding: 3px 14px; border-radius: 20px; font-size: 15px; opacity: 0; transition: 0.25s; white-space: nowrap; border: 1px solid rgba(255, 255, 255, 0.25); z-index: 20; }
.hand-badge.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.hand-badge.bust, .hand-badge.lose { background: #6b1414; border-color: #ff8a80; }
.hand-badge.bj { background: linear-gradient(#f0cb68, #b88a1e); color: #2a1c00; border-color: #fff0b8; }
.hand-badge.win { background: #14572f; border-color: #5fd48a; color: #d9ffe6; }
.hand-badge.push { background: #3a4048; border-color: #aab; }
.hand-badge.result { font-size: 14px; top: -88px; }
.round-banner { position: absolute; left: 50%; top: 380px; transform: translate(-50%, 0) scale(0.8); font-size: 32px; font-weight: 800; letter-spacing: 3px; padding: 8px 36px; border-radius: 14px; opacity: 0; transition: 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); z-index: 35; pointer-events: none; white-space: nowrap; background: rgba(0, 0, 0, 0.7); border: 2px solid #aaa; text-shadow: 0 2px 8px #000; }
.round-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.round-banner.win { color: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 40px rgba(255, 224, 138, 0.4); }
.round-banner.lose { color: #ff9a90; border-color: #a33; }
.round-banner.push { color: #dfe6ea; }

/* ---------- Roulette ---------- */
.rl-dealer-body { position: absolute; left: 640px; top: 2px; width: 204px; height: 280px; z-index: 2; }
.rl-felt { position: absolute; left: 14px; top: 225px; width: 1252px; height: 420px; border-radius: 0 0 50px 50px; z-index: 3; background: radial-gradient(ellipse at 40% 30%, #1d9158 0%, #117046 55%, #0a4a2d 100%); box-shadow: 0 0 0 11px #4f2f18, 0 0 0 14px #2a190c, 0 -6px 0 11px #5d3a1e, 0 -9px 0 12px #2a190c, inset 0 0 80px rgba(0, 0, 0, 0.5); }
.rl-dealer-hands { position: absolute; left: 640px; top: 2px; width: 204px; height: 340px; z-index: 6; pointer-events: none; }
.rl-bubble { left: 424px; top: 70px; }
.rl-bubble::after { left: auto; right: -9px; border-left: 9px solid #f7f1df; border-right: 0; border-top-color: transparent; border-bottom-color: transparent; }
.rl-room .dealer-tag { left: 546px; top: 196px; }
.rl-wheel-wrap { position: absolute; left: 690px; top: 80px; width: 580px; height: 440px; z-index: 10; pointer-events: none; }
.rl-canvas { display: block; }
.rl-board-wrap { position: absolute; left: 30px; top: 296px; width: 740px; height: 270px; z-index: 8; }
.rl-board { position: relative; width: 740px; height: 270px; }
.rl-svgwrap, .rl-hl, .rl-spots, .rl-chips { position: absolute; left: 0; top: 0; width: 740px; height: 270px; }
.rl-hl, .rl-chips { pointer-events: none; }
.rl-svg { display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.board-bg { fill: #0b5a35; stroke: var(--gold); stroke-width: 3; }
.cell rect, .cell polygon { stroke: #e8e2cf; stroke-width: 1.5; }
.c-red { fill: #b3202c; } .c-black { fill: #15161b; } .c-green { fill: #0b7b3e; } .c-out { fill: rgba(0, 0, 0, 0.16); }
.num { fill: #fff; font-size: 22px; font-weight: 700; text-anchor: middle; font-family: "Segoe UI", sans-serif; pointer-events: none; }
.num.small { font-size: 13px; letter-spacing: 1.5px; }
.num.big { font-size: 32px; }
.cell.win rect, .cell.win polygon { stroke: var(--gold-hi); stroke-width: 4; animation: cellPulse 1s infinite alternate; }
@keyframes cellPulse { from { filter: brightness(1); } to { filter: brightness(1.7); } }
.spot { position: absolute; cursor: pointer; }
.rl-board.locked .spot { pointer-events: none; }
.hl-shape { fill: rgba(255, 224, 138, 0.38); stroke: var(--gold-hi) !important; stroke-width: 2.5 !important; }
.chip-holder { position: absolute; width: 0; height: 0; z-index: 5; }
.chip-holder.winner .chip { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 18px 5px rgba(255, 224, 138, 0.85); }
.rl-dolly { position: absolute; width: 28px; height: 28px; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; background: radial-gradient(circle at 35% 30%, #fff6c8, #d9a93a 55%, #7c5712); box-shadow: 0 7px 10px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(0, 0, 0, 0.3); pointer-events: none; z-index: 4; }
.rl-dolly.on { opacity: 1; }
.rl-tip { position: absolute; transform: translateX(-50%); background: rgba(0, 0, 0, 0.88); color: #ffe9b0; padding: 4px 12px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 10; transition: opacity 0.1s; }
.rl-tip.on { opacity: 1; }
.rl-side { position: absolute; left: 800px; top: 524px; width: 450px; height: 70px; z-index: 12; display: flex; gap: 22px; align-items: flex-start; }
.rl-last { flex: 1; }
.rl-hist { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; max-width: 330px; }
.hn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 13px; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.hn.red { background: #b3202c; } .hn.black { background: #15161b; } .hn.green { background: #0b7b3e; }
.hn.first { box-shadow: 0 0 14px var(--gold-hi); border-color: var(--gold-hi); }
.hn.big { width: 40px; height: 40px; font-size: 19px; }
.rl-result { min-width: 150px; }
.rl-res-val { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-top: 4px; color: #fff; font-size: 12px; }
.rl-res-val em { font-style: normal; color: #d8d1bd; }

/* ---------- Poker ---------- */
.pk-dealer-body { position: absolute; left: 561px; top: -10px; width: 158px; height: 217px; z-index: 2; }
.pk-table { position: absolute; left: 120px; top: 172px; width: 1040px; height: 372px; border-radius: 50%; z-index: 3; box-shadow: 0 0 0 14px #3a2412, 0 0 0 18px #7a5a22, 0 0 0 21px #1a0f06, 0 36px 70px rgba(0, 0, 0, 0.75); }
.pk-felt { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #1c7d4b 0%, #115c36 62%, #0a4026 100%); box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.55); transition: background 0.8s; }
.pk-felt::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; border: 2px solid rgba(240, 214, 140, 0.22); }
.pk-room.training .pk-felt { background: radial-gradient(ellipse at 50% 42%, #1b6a85 0%, #124258 62%, #0a2a3b 100%); }
.pk-room.training .pk-felt::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(0deg, rgba(127, 230, 255, 0.07) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, rgba(127, 230, 255, 0.07) 0 1px, transparent 1px 26px); }
.pk-room.training .pk-table { box-shadow: 0 0 0 14px #1f2f3a, 0 0 0 18px #4aa8c4, 0 0 0 21px #0a141a, 0 36px 70px rgba(0, 0, 0, 0.75); }
.pk-mark { position: absolute; left: 640px; top: 242px; transform: translateX(-50%); font-size: 11px; letter-spacing: 4px; z-index: 4; white-space: nowrap; color: rgba(255, 255, 255, 0.4); }
.pk-room.training .pk-mark { color: rgba(127, 230, 255, 0.7); }
.pk-room.official .pk-mark { color: rgba(240, 214, 140, 0.7); }
.pk-dealer-hands { position: absolute; left: 561px; top: -10px; width: 158px; height: 263px; z-index: 6; pointer-events: none; }
.pk-bubble { left: 740px; top: 30px; }
.pk-room .dealer-tag { left: 470px; top: 112px; }
.pk-pot { position: absolute; left: 640px; top: 272px; width: 0; z-index: 8; }
.pk-pot-chips { position: absolute; left: -92px; top: 14px; width: 0; height: 0; }
.pk-pot-label { position: absolute; left: 0; top: -2px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.5); padding: 3px 16px; border-radius: 20px; font-size: 15px; white-space: nowrap; border: 1px solid rgba(255, 224, 138, 0.35); }
.pk-pot-label b { color: var(--gold-hi); }
.pk-board { left: 640px; top: 351px; z-index: 8; }
.pk-seats { position: absolute; inset: 0; z-index: 12; }
.pk-holes { position: absolute; inset: 0; z-index: 14; pointer-events: none; }
.pk-hole { z-index: 14; }
.pk-bets { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.pk-bet { position: absolute; width: 0; height: 0; }
.bet-lbl { position: absolute; left: 0; top: 12px; transform: translateX(-50%); font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, 0.6); padding: 1px 9px; border-radius: 10px; white-space: nowrap; color: #fff; }
.pk-seat { position: absolute; width: 140px; height: 132px; transform: translate(-50%, -50%); text-align: center; }
.pk-seat.hero { height: 46px; }
.pk-seat.hero .hero-badge { display: none; }
.pk-seat.hero .plate { margin: 0 auto; width: 150px; }
.pk-seat.hero .st { font-size: 17px; }
.pk-seat.hero .act-tag { top: -22px; }
.avatar { position: relative; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); background: radial-gradient(circle at 50% 30%, #4a5570, #181c27); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6); transition: box-shadow 0.25s; }
.pk-room.training .avatar { border-color: #6fd6f0; }
.avatar .layer { position: absolute; inset: 0; transition: clip-path 1s linear; }
.avatar .layer svg { width: 100%; height: 100%; display: block; }
.avatar .layer.human { clip-path: inset(0 0 100% 0); background: radial-gradient(circle at 50% 30%, #7a6a52, #2a2218); }
.avatar.is-human .layer.human { clip-path: inset(0); }
.avatar.is-human .layer.robot { clip-path: inset(100% 0 0 0); }
.avatar .scan { position: absolute; left: 0; right: 0; top: -6px; height: 4px; background: #9ff; box-shadow: 0 0 16px 4px #7ff; opacity: 0; z-index: 3; }
.avatar.swapping .scan { animation: scan 1s linear; }
.avatar:not(.is-human).swapping .scan { animation-direction: reverse; }
@keyframes scan { 0% { top: -6px; opacity: 1; } 99% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.avatar.swapping { animation: glitch 1s steps(10); }
@keyframes glitch { 0%, 100% { filter: none; } 20% { filter: hue-rotate(90deg) saturate(2); } 40% { filter: invert(0.2); } 60% { filter: hue-rotate(-60deg); } 80% { filter: brightness(1.5); } }
.avatar.winner { box-shadow: 0 0 0 4px var(--gold-hi), 0 0 30px 8px rgba(255, 224, 138, 0.8); }
.hero-badge { width: 70px; height: 70px; margin: 7px auto; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--gold-hi); background: linear-gradient(#3b5f9a, #1b2f55); font-weight: 800; letter-spacing: 1px; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6); }
.plate { position: relative; margin: -16px auto 0; width: 122px; padding: 3px 6px 4px; background: linear-gradient(#2b1f10, #130d06); border: 1px solid #7a5a22; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); }
.pk-room.training .plate { border-color: #4aa8c4; background: linear-gradient(#17303c, #0a171e); }
.nm { font-size: 12px; color: #f1ead7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { font-size: 14px; font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.pk-room.training .st { color: #8fe9ff; }
.act-tag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); padding: 2px 11px; border-radius: 12px; font-size: 12px; font-weight: 800; background: #222; color: #fff; opacity: 0; white-space: nowrap; transition: opacity 0.2s; z-index: 6; border: 1px solid rgba(255, 255, 255, 0.25); }
.act-tag.on { opacity: 1; }
.act-tag.fold { background: #4a4f57; }
.act-tag.call, .act-tag.check { background: #1d6a3e; }
.act-tag.raise, .act-tag.bet { background: #a8741a; }
.act-tag.allin { background: #a8261f; }
.act-tag.sb, .act-tag.bb { background: #33405a; }
.pos-tag { position: absolute; left: 8px; top: 62px; font-size: 10px; font-weight: 800; background: #33405a; color: #fff; padding: 1px 6px; border-radius: 8px; z-index: 5; }
.pos-tag:empty { display: none; }
.think { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); display: none; gap: 4px; background: rgba(0, 0, 0, 0.7); padding: 5px 9px; border-radius: 12px; z-index: 7; }
.pk-seat.thinking .think { display: flex; }
.think i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dot 1s infinite; }
.think i:nth-child(2) { animation-delay: 0.15s; } .think i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.pk-seat.folded .avatar, .pk-seat.folded .plate, .pk-seat.folded .hero-badge { opacity: 0.45; }
.pk-seat.active .avatar, .pk-seat.active .hero-badge { box-shadow: 0 0 0 4px rgba(255, 224, 138, 0.9), 0 0 28px 6px rgba(255, 224, 138, 0.6); }
.pk-seat.allin .plate { border-color: #ff5a5a; }
.pk-dbtn { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e6dfc8); color: #222; font-weight: 800; display: none; place-items: center; transform: translate(-50%, -50%); z-index: 15; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55); border: 2px solid var(--gold); transition: left 0.7s ease, top 0.7s ease; font-size: 14px; }
.pk-dbtn.on { display: grid; }
.pk-handname { position: absolute; left: 640px; top: 506px; transform: translateX(-50%); z-index: 16; font-size: 13px; color: var(--gold-hi); background: rgba(0, 0, 0, 0.55); padding: 2px 14px; border-radius: 12px; border: 1px solid rgba(255, 224, 138, 0.3); }
.pk-handname:empty { display: none; }
.pk-log { position: absolute; left: 14px; top: 64px; width: 250px; z-index: 18; font-size: 12px; color: #e3dcc8; text-shadow: 0 1px 3px #000; pointer-events: none; }
.pk-log .lg { margin-bottom: 3px; }
.pk-log .lg + .lg { opacity: 0.62; }
.pk-log .lg + .lg + .lg { opacity: 0.4; }
.mode-banner { position: absolute; left: 50%; top: 190px; transform: translateX(-50%) scale(0.9); font-size: 32px; font-weight: 800; letter-spacing: 6px; padding: 10px 40px; border-radius: 12px; opacity: 0; z-index: 36; pointer-events: none; transition: 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); white-space: nowrap; }
.mode-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }
.mode-banner.training { color: #7fe6ff; border: 2px solid #7fe6ff; background: rgba(0, 30, 40, 0.85); }
.mode-banner.official { color: var(--gold-hi); border: 2px solid var(--gold); background: rgba(30, 20, 0, 0.85); }
.pk-room .round-banner { top: 420px; font-size: 34px; }

.pk-bar { height: 92px; padding: 0 18px; gap: 14px; }
.pk-left { width: 236px; display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; border: 1px solid #6b4f1c; border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; height: 34px; background: #17110a; border: none; color: #a8987a; font-weight: 700; font-size: 13px; cursor: pointer; letter-spacing: 1px; }
.seg button.on { background: linear-gradient(#f0cb68, #b88a1e); color: #2a1c00; }
.pk-room.training .seg button.on { background: linear-gradient(#8fe9ff, #3a9ab8); color: #03222c; }
.blinds { font-size: 12px; color: #b5a273; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.blinds select { background: #17110a; color: var(--ink); border: 1px solid #6b4f1c; border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.pk-center { flex: 1; display: flex; justify-content: center; align-items: center; }
.pk-actions, .pk-next, .pk-wait { display: none; }
.pk-center[data-show="actions"] .pk-actions { display: flex; }
.pk-center[data-show="next"] .pk-next { display: flex; }
.pk-center[data-show="wait"] .pk-wait { display: flex; }
.pk-actions { flex-direction: column; gap: 6px; align-items: center; }
.pk-raise { display: flex; gap: 6px; align-items: center; }
.pk-raise.off { opacity: 0.3; pointer-events: none; }
.pre { height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #6b4f1c; background: #1c1409; color: #e9d9a8; font-size: 12px; font-weight: 700; cursor: pointer; }
.pre:hover { background: #3a2b12; }
.pk-slider { width: 190px; accent-color: #e0b95a; }
.pk-amt { width: 84px; height: 28px; border-radius: 7px; border: 1px solid #6b4f1c; background: #0d0905; color: var(--gold-hi); font-weight: 700; text-align: center; font-size: 14px; }
.pk-btns { display: flex; gap: 10px; }
.pk-btns .btn { min-width: 170px; height: 46px; font-size: 16px; }
.pk-next { gap: 16px; align-items: center; }
.pk-hint { color: #ff9a90; font-size: 13px; }
.pk-wait { color: #b5a273; font-style: italic; }
.pk-right { width: 90px; text-align: right; }
.pk-right b { font-size: 24px; color: var(--gold-hi); }


/* Einstellungen: Plätze für Bots */
.set-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(138, 106, 34, 0.5); }
.set-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.set-seat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 10px; border: 1px solid #6e5420; background: rgba(0, 0, 0, 0.35); color: #e9dfc2; cursor: pointer; font-size: 13px; }
.set-seat b { color: var(--gold-hi); font-size: 13px; }
.set-seat span { font-size: 14px; }
.set-seat.free { border-style: dashed; color: #9c9378; }
.set-seat.bot { border-color: var(--gold-hi); background: rgba(255, 224, 138, 0.08); }
.set-seat.hero { opacity: 0.7; cursor: default; }
.set-seat:hover:not(:disabled) { border-color: var(--gold-hi); background: rgba(255, 224, 138, 0.14); }
.set-seat:disabled { cursor: default; }
.set-seat.player { border-color: #3dff82; background: rgba(61, 255, 130, 0.07); }

/* Chat und Handzeichen (crowd.js): Knopf mit Zähler in der Kopfleiste, Fenster rechts über dem Spiel */
.top-right { width: auto; min-width: 270px; }
#btn-chat { position: relative; }
.chat-badge { display: none; position: absolute; right: -5px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #3dff82; color: #062012; font-size: 11px; font-weight: 800; line-height: 17px; text-align: center; }
.chat-badge.on { display: block; }
.chat-panel { position: absolute; right: 12px; top: 62px; z-index: 60; width: 360px; max-height: calc(100% - 180px); display: none; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(16, 11, 6, 0.94); border: 1px solid #6e5420; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); color: #e9dfc2; }
.chat-panel.on { display: flex; }
.chat-head { display: flex; align-items: center; gap: 10px; }
.chat-head b { color: var(--gold-hi); font-size: 15px; }
.chat-online { flex: 1; font-size: 12px; color: #9c9378; }
.chat-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #6b4f1c; background: #17110a; color: #d9c58f; font-size: 18px; line-height: 1; cursor: pointer; }
.chat-list { flex: 1; min-height: 140px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; font-size: 14px; line-height: 1.35; }
.chat-msg { overflow-wrap: anywhere; }
.chat-msg.mine .chat-name { color: #3dff82; }
.chat-time { color: #7a705a; font-size: 11px; margin-right: 6px; }
.chat-name { color: var(--gold-hi); margin-right: 6px; cursor: pointer; }
.chat-msg.mine .chat-name { cursor: default; }
.chat-sys { color: #9c9378; font-style: italic; font-size: 13px; }
.chat-muted { font-size: 12px; color: #c98a5a; cursor: pointer; }
.chat-muted:empty { display: none; }
.chat-emotes { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-emotes .btn { padding: 4px 10px; font-size: 12px; min-height: 0; height: 28px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid #6e5420; background: #0c0805; color: #f1ead7; font-size: 14px; }
.chat-form .btn { height: 36px; }
.chat-note { margin: 0; font-size: 11px; color: #7a705a; }

/* Eigene Figur: Porträt im Menü, Auswahl mit Frauen und Männern */
.skin-now { display: flex; align-items: center; gap: 12px; }
.skin-now span { flex: 1; color: #e9dfc2; }
.skin-pic { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a2d18, #120c06); border: 2px solid #6e5420; }
.skin-pic.small { width: 56px; height: 56px; flex: none; }
.skin-pic svg { width: 100%; height: 100%; display: block; }
.skin-tabs { margin: 8px 0 12px; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.skin-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid #6e5420; background: rgba(0, 0, 0, 0.35); color: #e9dfc2; cursor: pointer; font-size: 14px; }
.skin-card:hover { border-color: var(--gold-hi); }
.skin-card.on { border-color: var(--gold-hi); background: rgba(255, 224, 138, 0.14); box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.5); }
.skin-card.on .skin-pic { border-color: var(--gold-hi); }

#btn-gear, #btn-fab { display: none; }
.modal, .modal * { touch-action: pan-y; }
.pk-slider, select, input { touch-action: auto; }
