/* ===================== Gemeinsame Spiel-UI ===================== */
.gl { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.gl-side { background: linear-gradient(180deg, var(--panel), #0d1427); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; }
.gl-stage { position: relative; min-height: 480px; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: radial-gradient(900px 500px at 50% 0%, rgba(77,163,255,.08), transparent 70%), linear-gradient(180deg, #0e1530, #090e1f); }
.gl-below { grid-column: 1 / -1; }
.bet-row { display: flex; gap: 6px; align-items: center; }
.bet-inp-wrap { position: relative; flex: 1; min-width: 0; }
.bet-inp-wrap .coin { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.bet-inp { padding-left: 38px; font-weight: 800; font-size: 15px; }
.bet-inp::-webkit-inner-spin-button { opacity: .4; }
.bet-mod { padding: 0 10px; min-width: 40px; }
.stat-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 0; }
.stat-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.big-action { height: 54px; font-size: 16px; font-weight: 900; letter-spacing: .03em; border-radius: 13px; }
.hist-strip { display: flex; gap: 6px; overflow: hidden; flex-wrap: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.hist-pill { flex: none; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; animation: pillIn .3s ease-out; }
@keyframes pillIn { from { transform: scale(.5); opacity: 0; } }
.hist-pill.win { background: rgba(47,210,122,.16); color: #6ee7a8; } .hist-pill.lose { background: rgba(255,77,94,.13); color: #ff8a95; } .hist-pill.neutral { background: var(--panel3); color: var(--muted); }
.hist-pill.red { background: #c8102e; color: #fff; } .hist-pill.black { background: #1a1d28; color: #fff; border: 1px solid #333a50; } .hist-pill.green { background: #14a050; color: #fff; }
.hist-pill.gold { background: var(--gold-grad); color: #2a1a02; } .hist-pill.blue { background: #2a6fd4; color: #fff; }
.result-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; z-index: 20; padding: 16px 30px; border-radius: 16px; text-align: center; font-weight: 900; font-size: 26px; transition: .3s cubic-bezier(.2,1.4,.4,1); backdrop-filter: blur(8px); white-space: nowrap; }
.result-banner small { display: block; font-size: 13px; font-weight: 700; opacity: .85; letter-spacing: .06em; text-transform: uppercase; }
.result-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.result-banner.win { background: rgba(10,40,24,.85); border: 2px solid var(--green); color: #7ef0b0; box-shadow: 0 0 40px rgba(47,210,122,.35); }
.result-banner.lose { background: rgba(40,10,16,.85); border: 2px solid var(--red); color: #ff9aa4; }
.result-banner.push { background: rgba(20,26,50,.88); border: 2px solid var(--blue); color: #a8d0ff; }
.result-banner.gold { background: rgba(40,28,4,.88); border: 2px solid var(--gold); color: var(--gold); box-shadow: 0 0 40px rgba(245,196,81,.35); }
.felt { background: radial-gradient(1000px 600px at 50% 30%, #13784d 0%, #0b5636 45%, #063321 100%); }
.felt::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6"><rect width="6" height="6" fill="none"/><circle cx="1" cy="1" r=".6" fill="%23000" fill-opacity=".18"/><circle cx="4" cy="4" r=".5" fill="%23fff" fill-opacity=".05"/></svg>'); }
.felt-blue { background: radial-gradient(1000px 600px at 50% 30%, #17508a 0%, #0d3460 45%, #071c38 100%); }
.felt-red { background: radial-gradient(1000px 600px at 50% 30%, #7a1a2a 0%, #4e0f1a 45%, #2a060e 100%); }
.mode-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: rgba(77,163,255,.08); border: 1px solid rgba(77,163,255,.2); font-size: 12.5px; color: #b8d8ff; }
.mode-note .ic { color: var(--blue); margin-top: 1px; }
.timer-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 6px; transition: width .25s linear; }
.phase-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: 13px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.phase-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.phase-pill.closed i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.players-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.pl-row { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.03); }
.pl-row .pl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pl-row .pl-amt { font-variant-numeric: tabular-nums; font-weight: 800; }
.pl-row.won .pl-amt { color: var(--green); } .pl-row.lost { opacity: .55; }
.bot-badge { font-size: 9.5px; font-weight: 900; letter-spacing: .06em; padding: 1px 5px; border-radius: 5px; background: rgba(77,163,255,.18); color: #8cc4ff; margin-left: 4px; vertical-align: 1px; }

@media (max-width: 1100px) { .gl { grid-template-columns: 1fr; } .gl-side { position: static; order: 2; } .gl-stage { order: 1; } }
@media (max-width: 760px) { .gl-stage { min-height: 380px; } .result-banner { font-size: 20px; padding: 12px 20px; } }

/* ===================== Dice ===================== */
.dice-stage { padding: 22px 28px 30px; display: flex; flex-direction: column; gap: 26px; min-height: 480px; }
.dice-top { min-height: 28px; }
.dice-center { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 10px 0; }
.dice-die { filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); transition: transform .3s; }
.dice-die.rolling { animation: dieRoll .35s linear infinite; }
@keyframes dieRoll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.9); } 100% { transform: rotate(360deg) scale(1); } }
.dice-num { font-size: 76px; font-weight: 900; letter-spacing: -.02em; min-width: 250px; text-align: center; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.4); transition: color .25s; }
.dice-num.win { color: var(--green); text-shadow: 0 0 40px rgba(47,210,122,.45); } .dice-num.lose { color: var(--red); }
.dice-slider { padding: 26px 10px 0; }
.dice-track { position: relative; height: 14px; border-radius: 14px; background: #0a0f1f; cursor: pointer; touch-action: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.04); }
.dice-zone { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg,#ff6b78,#c8283a); }
.dice-zone.lo { left: 0; border-radius: 14px 0 0 14px; } .dice-zone.hi { border-radius: 0 14px 14px 0; }
.dice-zone.win { background: linear-gradient(180deg,#46e690,#1fae5e); }
.dice-thumb { position: absolute; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 11px; background: linear-gradient(180deg,#fff,#d2d8e8); box-shadow: 0 6px 16px rgba(0,0,0,.5); display: grid; place-items: center; color: #1a1f2e; font-weight: 900; font-size: 14px; pointer-events: none; }
.dice-marker { position: absolute; bottom: 26px; transform: translateX(-50%); opacity: 0; transition: left .35s cubic-bezier(.2,.9,.3,1.1), opacity .2s; pointer-events: none; }
.dice-marker span { display: block; padding: 5px 10px; border-radius: 9px; font-weight: 900; font-size: 14px; background: #fff; color: #1a1f2e; position: relative; }
.dice-marker span::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.dice-marker.show { opacity: 1; } .dice-marker.win span { background: var(--green); color: #032a12; } .dice-marker.win span::after { border-top-color: var(--green); }
.dice-marker.lose span { background: var(--red); color: #fff; } .dice-marker.lose span::after { border-top-color: var(--red); }
.dice-scale { display: flex; justify-content: space-between; margin-top: 12px; color: var(--dim); font-size: 12px; font-weight: 700; }
.dice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dc { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dc small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dc b { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .dice-num { font-size: 52px; min-width: 0; } .dice-die svg { width: 56px; height: 56px; } .dice-stage { padding: 16px; } .dc b { font-size: 16px; } }

/* ===================== Plinko ===================== */
.plinko-stage { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(700px 400px at 50% 20%, rgba(255,77,154,.12), transparent 70%); min-height: 480px; }
.plinko-hist { min-height: 28px; }
.plinko-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.plinko-canvas { display: block; }
.plinko-buckets { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.pb { height: 30px; border-radius: 7px; display: grid; place-items: center; font-weight: 900; color: #2a0a0a; box-shadow: 0 4px 0 rgba(0,0,0,.35); flex: none; white-space: nowrap; overflow: hidden; }
.pb.hit { animation: bucketHit .45s ease-out; }
@keyframes bucketHit { 40% { transform: translateY(8px); filter: brightness(1.4); box-shadow: 0 0 0 rgba(0,0,0,.35), 0 0 20px rgba(255,226,138,.7); } }

/* ===================== Mines ===================== */
.mines-stage { display: grid; place-items: center; padding: 26px; min-height: 520px; background: radial-gradient(700px 400px at 50% 30%, rgba(61,240,192,.08), transparent 70%); }
.mines-stage.shake { animation: shakeX .45s; }
@keyframes shakeX { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(520px, 100%); }
.mine-tile { aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; background: linear-gradient(180deg, #2b3a6e, #1f2b55); box-shadow: 0 5px 0 #141c3a, inset 0 1px 0 rgba(255,255,255,.12); transition: transform .12s, background .2s, box-shadow .2s; position: relative; padding: 0; }
.mines-grid:not(.active) .mine-tile:not(.open) { cursor: default; opacity: .75; }
.mines-grid.active .mine-tile:not(.open):hover { transform: translateY(-3px); background: linear-gradient(180deg, #3a4b86, #2a3868); }
.mine-tile.pending { animation: pulse .6s infinite; }
.mine-tile .mt-inner { position: absolute; inset: 14%; display: grid; place-items: center; }
.mine-tile .mt-inner svg { width: 100%; height: 100%; }
.mine-tile.open { cursor: default; box-shadow: inset 0 3px 10px rgba(0,0,0,.5); animation: tileFlip .35s ease-out both; }
.mine-tile.gem { background: radial-gradient(circle, #0f3a40, #0a1c2a); }
.mine-tile.gem .mt-inner svg { filter: drop-shadow(0 0 10px rgba(42,240,192,.6)); }
.mine-tile.bomb { background: radial-gradient(circle, #3a1018, #1a060a); }
.mine-tile.bomb.hit { background: radial-gradient(circle, #ff4d5e, #6a0a14); box-shadow: 0 0 30px rgba(255,77,94,.7); }
.mine-tile.dim { opacity: .4; }
@keyframes tileFlip { from { transform: rotateY(90deg) scale(.8); } }

/* ===================== Keno ===================== */
.keno-stage { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 480px; background: radial-gradient(700px 400px at 50% 20%, rgba(255,154,61,.10), transparent 70%); }
.keno-drawn { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.kd { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: radial-gradient(circle at 35% 30%, #fff, #c9cfdc); color: #1a1f2e; animation: ballIn .3s cubic-bezier(.2,1.5,.4,1); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.kd.hit { background: radial-gradient(circle at 35% 30%, #fff6c2, #f0b83a); box-shadow: 0 0 14px rgba(245,196,81,.7); }
@keyframes ballIn { from { transform: scale(0) translateY(-20px); } }
.keno-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.keno-cell { aspect-ratio: 1.15; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #1d2748, #151d38); color: #b8bfd6; font-weight: 800; font-size: 15px; cursor: pointer; transition: .12s; padding: 0; }
.keno-cell:hover { background: linear-gradient(180deg, #2a3866, #1d2748); color: #fff; }
.keno-cell.pick { background: linear-gradient(180deg, #a06bff, #6a3bd1); color: #fff; border-color: #c4a6ff; box-shadow: 0 0 12px rgba(160,107,255,.4); }
.keno-cell.drawn { background: linear-gradient(180deg, #3a4256, #262c3d); color: #8b93b0; }
.keno-cell.hit { background: var(--gold-grad); color: #2a1a02; border-color: #fff2c2; box-shadow: 0 0 18px rgba(245,196,81,.7); animation: hitPop .35s; }
@keyframes hitPop { 50% { transform: scale(1.15); } }
.keno-pay { display: flex; flex-direction: column; gap: 5px; }
.kp-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.kp-row b { color: var(--gold); } .kp-row.on { background: rgba(47,210,122,.18); outline: 1px solid var(--green); }
@media (max-width: 760px) { .keno-board { gap: 4px; } .keno-cell { font-size: 12px; border-radius: 7px; } }

/* ===================== Hi-Lo ===================== */
.hilo-stage { padding: 26px; display: flex; flex-direction: column; gap: 22px; min-height: 480px; justify-content: center; background: radial-gradient(700px 400px at 50% 30%, rgba(77,163,255,.12), transparent 70%); }
.hilo-main { display: flex; align-items: center; justify-content: center; gap: 30px; }
.hilo-card .pcard { width: 150px; }
.hilo-btn { width: 170px; padding: 18px 12px; border-radius: 16px; border: 2px solid; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: .15s; font-weight: 800; color: #fff; }
.hilo-btn b { font-size: 15px; } .hilo-btn small { font-size: 12.5px; opacity: .85; font-weight: 700; }
.hilo-btn.hi { background: linear-gradient(180deg, rgba(47,210,122,.25), rgba(47,210,122,.08)); border-color: rgba(47,210,122,.6); }
.hilo-btn.lo { background: linear-gradient(180deg, rgba(255,77,94,.25), rgba(255,77,94,.08)); border-color: rgba(255,77,94,.6); }
.hilo-btn:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.2); }
.hilo-btn:disabled { opacity: .35; cursor: default; }
.ic.rot-up { transform: rotate(-90deg); } .ic.rot-down { transform: rotate(90deg); }
.hilo-trail { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; min-height: 100px; }
.ht-item { position: relative; flex: none; }
.ht-item span { position: absolute; bottom: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel3); border: 2px solid var(--bg2); }
.ht-item.win span { background: var(--green); color: #032a12; } .ht-item.lose span { background: var(--red); }
@media (max-width: 760px) { .hilo-main { gap: 10px; } .hilo-card .pcard { width: 100px; } .hilo-btn { width: 110px; padding: 12px 6px; } .hilo-btn b { font-size: 12px; } }

/* ===================== Glücksrad ===================== */
.wheel-stage { display: flex; flex-direction: column; align-items: center; padding: 16px; min-height: 560px; background: radial-gradient(600px 400px at 50% 50%, rgba(61,224,240,.12), transparent 70%); }
.wheel-hist { align-self: stretch; min-height: 28px; }
.wheel-wrap { position: relative; width: min(470px, 92%); aspect-ratio: 1; margin-top: 18px; }
.wheel-rot { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); will-change: transform; }
.wheel-svg { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; top: -14px; left: 50%; width: 34px; height: 44px; margin-left: -17px; background: linear-gradient(180deg, #ff4d5e, #a8102a); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); transform-origin: 50% 0; }
.wheel-pointer.bump { animation: bump .12s; }
@keyframes bump { 50% { transform: rotate(-14deg); } }
.wheel-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wb-spot { position: relative; height: 74px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, #0b1020), #0b1020); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; transition: .15s; }
.wb-spot:hover { transform: translateY(-2px); filter: brightness(1.15); }
.wb-spot.win { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(245,196,81,.6); animation: hitPop .5s 2; }
.wb-sym { font-weight: 900; font-size: 22px; line-height: 1; } .wb-pay { font-size: 11px; opacity: .8; font-weight: 800; }
.wb-stack { position: absolute; right: 4px; bottom: 4px; display: flex; align-items: center; }
.wb-chip { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.wb-amt { position: absolute; right: 0; top: -14px; font-size: 10px; font-weight: 900; background: rgba(0,0,0,.7); border-radius: 5px; padding: 0 4px; }

/* ===================== Video Poker ===================== */
.vp-stage { padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 24px; min-height: 520px; background: linear-gradient(180deg, #0d1a4a, #070d26); }
.vp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 2px solid rgba(245,196,81,.5); border-radius: 12px; overflow: hidden; background: #08103a; }
.vp-table th, .vp-table td { padding: 5px 10px; text-align: right; color: #ffe28a; font-weight: 800; font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(255,255,255,.05); }
.vp-table th:first-child, .vp-table td:first-child { text-align: left; color: #ffd24a; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.vp-table th { color: var(--muted); font-size: 11px; }
.vp-table .on { background: rgba(255,60,80,.28); color: #fff; }
.vp-table tr.win td { background: rgba(47,210,122,.3); color: #fff; animation: pulse .6s 4; }
.vp-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 118px)); justify-content: center; gap: 12px; }
.vp-slot { position: relative; cursor: pointer; padding-top: 28px; }
.vp-slot .pcard { width: 100%; transition: transform .2s; }
.vp-held { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #2a1a02; background: var(--gold-grad); padding: 3px 9px; border-radius: 6px; opacity: 0; transition: .15s; }
.vp-slot.on .vp-held { opacity: 1; }
.vp-slot.on .pcard img { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(245,196,81,.5); }
@media (max-width: 760px) { .vp-cards { gap: 6px; } .vp-table { font-size: 11px; } .vp-table th, .vp-table td { padding: 3px 5px; } }

/* ===================== Slots ===================== */
.slots { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.slot-themes { align-self: center; }
.slot-themes button { height: 40px; padding: 0 16px; }
.tab-sym { width: 24px; height: 24px; }
.machine { position: relative; width: min(800px, 100%); border-radius: 26px; padding: 16px 18px 18px; background: linear-gradient(180deg, #3a1a5a 0%, #1f0b36 40%, #14062a 100%); border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 3px #c9962b, 0 0 0 7px #2a1608, 0 0 0 9px #e8b84a, 0 30px 80px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.15); overflow: hidden; }
.machine.theme-egypt { background: linear-gradient(180deg, #1a3a6a 0%, #0f2448 40%, #07142e 100%); }
.machine-top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; }
.machine-title span { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .08em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a3a08) drop-shadow(0 0 18px rgba(245,196,81,.4)); }
.machine-lights { display: flex; gap: 10px; }
.machine-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ffe28a; box-shadow: 0 0 10px #ffd24a; animation: bulb 1s infinite alternate; }
.machine-lights i:nth-child(odd) { background: #ff4d9a; box-shadow: 0 0 10px #ff4d9a; }
@keyframes bulb { to { opacity: .25; } }
.slots.in-free .machine-lights i { animation-duration: .25s; }
.reels-frame { position: relative; padding: 10px 34px; border-radius: 16px; background: linear-gradient(180deg, #0a0414, #1a0b2e); box-shadow: inset 0 0 0 2px rgba(245,196,81,.45), inset 0 10px 30px rgba(0,0,0,.7); }
.theme-egypt .reels-frame { background: linear-gradient(180deg, #04102a, #0a1a3a); }
.reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; aspect-ratio: 5 / 2.95; }
.reel { position: relative; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #e9e2d2 0%, #fffaf0 18%, #fffaf0 82%, #e9e2d2 100%); box-shadow: inset 0 8px 14px rgba(0,0,0,.35), inset 0 -8px 14px rgba(0,0,0,.35); }
.theme-egypt .reel { background: linear-gradient(180deg, #d9c49a 0%, #f6ead0 18%, #f6ead0 82%, #d9c49a 100%); }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 18%, transparent 82%, rgba(0,0,0,.28)); }
.strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; will-change: transform; }
.sym { height: calc((100% / 3)); flex: none; display: grid; place-items: center; padding: 9%; position: relative; }
.reel .strip { height: 100%; }
.reel .strip .sym { height: 33.333%; }
.sym-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.reel.blur .sym-img { filter: blur(1.5px) drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.reel.stop { animation: reelStop .25s ease-out; }
@keyframes reelStop { 40% { transform: translateY(5px); } }
.sym.win { animation: symWin .9s ease-in-out infinite; z-index: 2; }
.sym.win::before { content: ''; position: absolute; inset: 4px; border-radius: 10px; border: 3px solid #f5c451; box-shadow: 0 0 18px rgba(245,196,81,.8), inset 0 0 18px rgba(245,196,81,.35); }
.sym.dim { opacity: .35; filter: grayscale(.5); }
@keyframes symWin { 50% { transform: scale(1.08); } }
.line-overlay { position: absolute; left: 34px; right: 34px; top: 10px; bottom: 10px; pointer-events: none; z-index: 5; }
.line-overlay svg { width: 100%; height: 100%; overflow: visible; }
.line-markers { position: absolute; inset: 10px 0; pointer-events: none; z-index: 6; }
.lm { position: absolute; width: 24px; height: 18px; margin-top: -9px; display: grid; place-items: center; font-size: 10px; font-weight: 900; border-radius: 5px; background: #2a1a40; color: #6a5a80; pointer-events: auto; cursor: help; }
.lm.on { background: var(--lc); color: #111; box-shadow: 0 0 8px var(--lc); }
.machine-info { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin-top: 12px; }
.slot-msg { font-weight: 700; color: #e0d4ff; font-size: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-win, .slot-fs { min-width: 150px; text-align: center; padding: 6px 16px; border-radius: 12px; background: #07020e; border: 2px solid rgba(245,196,81,.45); }
.slot-win small, .slot-fs small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slot-win b { font-size: 24px; color: #ffe28a; text-shadow: 0 0 14px rgba(245,196,81,.6); }
.slot-win.hit { border-color: var(--gold); box-shadow: 0 0 24px rgba(245,196,81,.5); }
.slot-fs { border-color: #ff4d9a; } .slot-fs b { font-size: 24px; color: #ff8ac4; display: block; line-height: 1.1; } .slot-fs span { font-size: 11px; color: var(--muted); font-weight: 700; }
.slot-controls { width: min(800px, 100%); display: grid; grid-template-columns: 1fr 1fr 1fr auto 1.4fr; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 20px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); }
.ctl small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; text-align: center; }
.ctl-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ctl-row b { min-width: 40px; text-align: center; font-size: 20px; }
.ctl-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel3); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.ctl-btn:hover { background: #26335c; }
.ctl-total { text-align: center; } .ctl-total b { font-size: 24px; color: var(--gold); } .ctl-total.bad b { color: var(--red); }
.ctl-opts { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ctl-opts .select { width: 130px; }
.spin-wrap { display: grid; place-items: center; }
.spin-btn { width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #2a1a02; background: radial-gradient(circle at 35% 30%, #fff6c2, #f5c451 45%, #b57f17 100%); box-shadow: 0 0 0 5px #2a1608, 0 0 0 8px #e8b84a, 0 12px 30px rgba(245,196,81,.35), inset 0 -6px 12px rgba(0,0,0,.25); transition: transform .12s, filter .15s; }
.spin-btn:hover { filter: brightness(1.08); transform: scale(1.04); }
.spin-btn:active { transform: scale(.96); }
.spin-btn.busy .ic { animation: spin .7s linear infinite; }
.spin-btn:disabled { filter: grayscale(.5) brightness(.8); }
.slot-banner { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, rgba(60,10,90,.85), rgba(10,2,20,.92)); opacity: 0; transition: opacity .3s; }
.slot-banner.in { opacity: 1; }
.sb-title { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 6vw, 56px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #6a4206); transform: scale(.7); transition: transform .4s cubic-bezier(.2,1.6,.4,1); }
.slot-banner.in .sb-title { transform: scale(1); }
.sb-sub { color: #f0e0ff; font-weight: 800; margin-top: 6px; }
.paytable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pt-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pt-img { width: 64px; height: 64px; flex: none; }
.pt-name { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.pt-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); } .pt-line b { color: var(--gold); }
.pt-note { font-size: 11px; color: #8cc4ff; margin-top: 4px; }
.pt-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pt-ln { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
.pt-ln-grid { display: grid; grid-template-columns: repeat(5, 10px); gap: 2px; }
.pt-ln-grid i { width: 10px; height: 10px; border-radius: 2px; background: var(--panel3); }
@media (max-width: 900px) {
  .slot-controls { grid-template-columns: 1fr 1fr 1fr; }
  .spin-wrap { grid-column: 1 / -1; order: -1; }
  .ctl-opts { grid-column: 1 / -1; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .machine-info { grid-template-columns: 1fr 1fr; } .slot-msg { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .machine { padding: 10px; border-radius: 18px; } .machine-title span { font-size: 20px; } .machine-lights { display: none; }
  .reels-frame { padding: 6px 22px; } .reels { gap: 4px; } .line-overlay { left: 22px; right: 22px; top: 6px; bottom: 6px; }
  .lm { width: 18px; font-size: 8px; }
  .spin-btn { width: 76px; height: 76px; } .slot-controls { padding: 12px; gap: 10px; } .ctl-row b { font-size: 16px; }
}

/* ===================== Roulette ===================== */
.rl { display: flex; flex-direction: column; gap: 16px; }
.rl-top { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 18px; align-items: stretch; }
.rl-wheel-wrap { position: relative; border-radius: var(--r-lg); padding: 16px; background: radial-gradient(circle at 50% 50%, #123d2a, #06180f 75%); border: 1px solid var(--line); display: grid; place-items: center; }
.rw { width: 100%; max-width: 380px; aspect-ratio: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.rw-svg { width: 100%; height: 100%; display: block; }
.rl-info { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel), #0d1427); border: 1px solid var(--line); min-width: 0; }
.rl-result { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; font-weight: 900; background: var(--panel3); box-shadow: inset 0 2px 0 rgba(255,255,255,.1); transition: .3s; }
.rl-result.red { background: linear-gradient(180deg, #e8203f, #9a0a1e); } .rl-result.black { background: linear-gradient(180deg, #2a2d3a, #0b0c12); } .rl-result.green { background: linear-gradient(180deg, #1fc068, #0a6a34); }
.rl-board-wrap { position: relative; border-radius: var(--r-lg); padding: 18px; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); }
.rl-board { position: relative; display: grid; grid-template-columns: .9fr repeat(12, 1fr) .9fr; grid-template-rows: repeat(3, 58px) 46px 46px; min-width: 760px; border: 2px solid rgba(255,255,255,.65); border-radius: 8px; }
.rl-board.locked { cursor: not-allowed; }
.rl-board.locked .rl-cell { pointer-events: none; }
.rl-cell { position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; user-select: none; transition: background .12s, box-shadow .12s; }
.rl-cell > span { pointer-events: none; }
.rl-cell.red > span, .rl-cell.black > span, .rl-cell.green > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.rl-cell.red > span { background: #c8102e; } .rl-cell.black > span { background: #16161c; } .rl-cell.green { background: rgba(18,160,80,.5); }
.rl-zero { border-radius: 30px 0 0 30px; } .rl-zero > span { width: 40px !important; height: 40px !important; background: #12a050; }
.rl-cell:hover, .rl-cell.hl { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px rgba(255,226,138,.8); }
.rl-cell.win { background: rgba(245,196,81,.35); box-shadow: inset 0 0 0 3px var(--gold), 0 0 24px rgba(245,196,81,.6); animation: pulse .7s 5; }
.rl-out span { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.rl-diamond { width: 30px; height: 22px; display: block; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rl-red .rl-diamond { background: #c8102e; } .rl-black .rl-diamond { background: #16161c; outline: 1px solid #fff; }
.hs { position: absolute; z-index: 3; cursor: pointer; border-radius: 4px; }
.hs:hover { background: rgba(255,226,138,.45); }
.hs-r { right: -7px; top: 20%; bottom: 20%; width: 14px; }
.hs-t { top: -7px; left: 20%; right: 20%; height: 14px; }
.hs-tr { top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 4; }
.hs-b { bottom: -7px; left: 20%; right: 20%; height: 14px; }
.hs-br { bottom: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 4; }
.hs-l { left: -7px; top: 20%; bottom: 20%; width: 14px; }
.hs-tl { top: -9px; left: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 4; }
.hs-bl { bottom: -9px; left: -9px; width: 18px; height: 18px; border-radius: 50%; z-index: 4; }
.rl-chip { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 6; pointer-events: none; animation: chipDrop .25s cubic-bezier(.2,1.5,.4,1); }
.hs .rl-chip { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.rl-chip img { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
.rl-chip b { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font-size: 10px; font-weight: 900; background: rgba(0,0,0,.75); padding: 0 4px; border-radius: 5px; white-space: nowrap; }
.rl-chip.won { filter: drop-shadow(0 0 10px var(--gold)); animation: hitPop .5s 3; } .rl-chip.lost { opacity: .35; }
@keyframes chipDrop { from { transform: translateY(-14px) scale(1.3); opacity: 0; } }
.rl-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); }
.rl-total { margin-left: auto; text-align: right; } .rl-total small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; } .rl-total b { font-size: 22px; color: var(--gold); }
.rl-spin { min-width: 170px; }
@media (max-width: 1100px) { .rl-top { grid-template-columns: 1fr; } .rw { max-width: 320px; } }
@media (max-width: 760px) { .rl-board-wrap { padding: 10px; } .rl-total { margin-left: 0; } .rl-spin { width: 100%; } }

/* ===================== Baccarat ===================== */
.bc { display: flex; flex-direction: column; gap: 16px; }
.bc-main { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bc-table { position: relative; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 24px; border: 1px solid rgba(255,255,255,.08); min-height: 430px; overflow: hidden; }
.bc-area { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bc-hand { border-radius: 16px; padding: 14px; min-height: 190px; border: 2px dashed rgba(255,255,255,.18); transition: .3s; }
.bc-area.pw .player, .bc-area.bw .banker { border-style: solid; border-color: var(--gold); box-shadow: 0 0 30px rgba(245,196,81,.35), inset 0 0 30px rgba(245,196,81,.12); }
.bc-area.tw .bc-hand { border-style: solid; border-color: var(--green); }
.bc-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); font-weight: 900; letter-spacing: .1em; font-size: 18px; margin-bottom: 12px; }
.bc-title.blue { color: #8cc4ff; } .bc-title.red { color: #ff9aa4; }
.bc-score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font); font-size: 22px; font-weight: 900; color: #fff; }
.bc-score.blue { background: linear-gradient(180deg,#4da3ff,#1d5fd0); } .bc-score.red { background: linear-gradient(180deg,#ff6b78,#c8102e); }
.bc-cards { display: flex; gap: 10px; min-height: 120px; }
.bc-cards .pcard { width: 86px; }
.bc-cards .pcard:nth-child(3) { transform: rotate(90deg) translateY(-14px); margin-left: 18px; }
.bc-spots { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr 1.6fr 1fr; gap: 10px; }
.bc-spots.locked { pointer-events: none; opacity: .85; }
.bc-spot { position: relative; height: 96px; border-radius: 14px; border: 2px solid; cursor: pointer; background: rgba(0,0,0,.2); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: .15s; }
.bc-spot:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.bc-spot.blue { border-color: rgba(77,163,255,.7); } .bc-spot.red { border-color: rgba(255,77,94,.7); } .bc-spot.green { border-color: rgba(47,210,122,.7); }
.bc-spot.big .bc-l { font-size: 18px; font-family: var(--display); letter-spacing: .1em; }
.bc-l { font-weight: 900; font-size: 12.5px; letter-spacing: .04em; } .bc-p { font-size: 12px; opacity: .75; font-weight: 700; }
.bc-spot.win { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(245,196,81,.55); background: rgba(245,196,81,.15); }
.bc-stack { position: absolute; right: 8px; bottom: 6px; display: flex; align-items: center; gap: 4px; }
.bc-chip { width: 32px; height: 32px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); animation: chipDrop .25s; }
.bc-stack b { font-size: 11px; background: rgba(0,0,0,.6); border-radius: 5px; padding: 0 5px; }
.bc-side { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "pill pill" "timer timer" "road players"; gap: 12px 18px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel), #0d1427); border: 1px solid var(--line); min-width: 0; align-items: start; }
.bc-side .bc-pill { grid-area: pill; } .bc-side .timer-bar { grid-area: timer; } .bc-road { grid-area: road; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .bc-players { grid-area: players; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bc-side.solo { grid-template-columns: 1fr; grid-template-areas: "pill" "road"; }
.bead { display: flex; align-items: flex-start; gap: 3px; overflow-x: auto; padding: 8px; border-radius: 10px; background: #f4f1e8; }
.bead-col { display: flex; flex-direction: column; gap: 3px; flex: none; }
.bead-dot { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; flex: none; }
.bead-dot.P { background: #2a6fd4; } .bead-dot.B { background: #d4283a; } .bead-dot.T { background: #1fae5e; } .bead-dot.none { background: rgba(0,0,0,.06); }
.bead-dot .pp, .bead-dot .bp { position: absolute; width: 6px; height: 6px; border-radius: 50%; border: 1px solid #fff; }
.bead-dot .pp { left: 0; bottom: 0; background: #2a6fd4; } .bead-dot .bp { right: 0; top: 0; background: #d4283a; }
.bc-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; }
@media (max-width: 1100px) { .bc-side { grid-template-columns: 1fr; grid-template-areas: "pill" "timer" "road" "players"; } }
@media (max-width: 760px) { .bc-spots { grid-template-columns: 1fr 1fr; } .bc-spot.green { grid-column: 1 / -1; } .bc-cards .pcard { width: 56px; } .bc-table { padding: 14px; } .bc-area { gap: 10px; } }

/* ===================== Crash ===================== */
.crash-stage { min-height: 520px; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 30% 100%, rgba(160,107,255,.18), transparent 70%), linear-gradient(180deg, #120a2e, #070418); }
.crash-stage.crashed { animation: shakeX .4s; }
.crash-hist { padding: 14px 16px 0; min-height: 42px; }
.crash-canvas { flex: 1; width: 100%; min-height: 440px; display: block; }
.crash-center { position: absolute; left: 0; right: 0; top: 40%; transform: translateY(-50%); text-align: center; pointer-events: none; }
.crash-mult { font-size: clamp(54px, 9vw, 96px); font-weight: 900; color: #fff; text-shadow: 0 6px 40px rgba(255,77,154,.45); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.crash-mult.hot { color: #ffe28a; text-shadow: 0 0 40px rgba(245,196,81,.6); }
.crash-mult.crashed { color: var(--red); text-shadow: 0 0 40px rgba(255,77,94,.6); }
.crash-sub { font-weight: 800; color: #d6c8ff; font-size: 15px; letter-spacing: .02em; }
.crash-players { max-height: 340px; }

/* ===================== Craps ===================== */
.cr { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.cr-stage { position: relative; display: flex; flex-direction: column; gap: 14px; }
.cr-table { position: relative; border-radius: var(--r-lg); padding: 18px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; border: 2px solid rgba(245,196,81,.35); box-shadow: inset 0 0 60px rgba(0,0,0,.4); }
.cr-left, .cr-right { display: flex; flex-direction: column; gap: 10px; position: relative; }
.cr-numbers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cr-num { position: relative; height: 64px; border: 2px solid rgba(255,255,255,.55); border-radius: 8px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 22px; font-weight: 900; }
.cr-puck, .cr-offpuck { position: absolute; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; font-family: var(--font); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.cr-puck { top: -10px; right: -8px; background: #fff; color: #111; border: 3px solid #111; opacity: 0; transform: scale(.4); transition: .3s cubic-bezier(.2,1.6,.4,1); }
.cr-num.on .cr-puck { opacity: 1; transform: none; }
.cr-num.on { background: rgba(255,255,255,.12); box-shadow: 0 0 20px rgba(255,255,255,.25); }
.cr-offpuck { right: 10px; bottom: 14px; background: #111; color: #fff; border: 3px solid #fff; }
.cr-row { display: flex; gap: 8px; } .cr-row > * { flex: 1; }
.cr-spot { position: relative; min-height: 58px; border-radius: 10px; border: 2px solid rgba(255,255,255,.55); background: rgba(0,0,0,.12); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 10px; transition: .15s; }
.cr-spot:hover { background: rgba(255,255,255,.1); }
.cr-spot.wide { min-height: 64px; }
.cr-spot.pass { border-color: #fff; } .cr-spot.pass .cr-l { font-size: 22px; letter-spacing: .14em; }
.cr-spot.field .cr-l { font-size: 20px; letter-spacing: .14em; color: #ffe28a; }
.cr-spot.red { border-color: rgba(255,90,100,.8); } .cr-spot.red .cr-l { color: #ff9aa4; }
.cr-spot.locked { opacity: .55; }
.cr-spot.off::after { content: 'AUS'; position: absolute; top: 4px; left: 6px; font-size: 9px; font-weight: 900; background: #111; color: #fff; padding: 1px 5px; border-radius: 4px; }
.cr-l { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: .06em; } .cr-s { font-size: 11px; opacity: .75; font-weight: 700; }
.cr-center-title { text-align: center; font-family: var(--display); color: #ffe28a; letter-spacing: .2em; font-weight: 900; font-size: 13px; }
.cr-stack { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.cr-chip { position: relative; width: 32px; height: 32px; animation: chipDrop .25s; }
.cr-chip img { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.cr-chip b { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); font-size: 9.5px; background: rgba(0,0,0,.75); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.cr-chip.pending { opacity: .8; } .cr-chip.pending img { outline: 2px dashed #ffe28a; border-radius: 50%; }
.cr-spot.flash-win { box-shadow: 0 0 0 3px var(--green), 0 0 26px rgba(47,210,122,.6); } .cr-spot.flash-lose { box-shadow: 0 0 0 3px var(--red); }
.cr-tray { position: relative; display: flex; align-items: center; justify-content: center; gap: 40px; height: 150px; border-radius: var(--r-lg); background: radial-gradient(600px 150px at 50% 50%, #0d5c3a, #062a1a); border: 1px solid rgba(255,255,255,.08); perspective: 700px; overflow: hidden; }
.die-wrap { width: 66px; height: 66px; transition: transform 1.1s cubic-bezier(.2,.8,.3,1); }
.cr-tray.rolling .die-wrap:first-child { animation: tossA 1.1s cubic-bezier(.2,.8,.3,1); } .cr-tray.rolling .die-wrap:nth-child(2) { animation: tossB 1.1s cubic-bezier(.2,.8,.3,1); }
@keyframes tossA { 0% { transform: translate(-260px, 40px) scale(.7); } 60% { transform: translate(10px, -30px) scale(1.1); } 100% { transform: none; } }
@keyframes tossB { 0% { transform: translate(-320px, -30px) scale(.7); } 60% { transform: translate(20px, 30px) scale(1.1); } 100% { transform: none; } }
.die3d { --dz: 33px; position: relative; width: 66px; height: 66px; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2,.8,.3,1); }
.die-face { position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(circle at 30% 25%, #ff6b78, #c8102e 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), inset 0 -6px 12px rgba(0,0,0,.3); display: grid; grid-template-columns: repeat(3, 1fr); padding: 9px; gap: 2px; backface-visibility: hidden; }
.die-face i { border-radius: 50%; margin: 3px; } .die-face i.on { background: #fff; box-shadow: inset 0 -2px 2px rgba(0,0,0,.25); }
.cr-sum { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 900; background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.2); }
.cr-tray.rolled .cr-sum { animation: hitPop .4s; border-color: var(--gold); }
.cr-side { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel), #0d1427); border: 1px solid var(--line); position: sticky; top: 0; }
.cr-status { padding: 11px 13px; border-radius: 12px; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.25); font-size: 13px; color: #ffe7a8; }
.cr-log { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.cr-log-item { font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.03); color: #c3c8de; }
.cr-log-item.good { color: #6ee7a8; background: rgba(47,210,122,.07); } .cr-log-item.bad { color: #ff8a95; background: rgba(255,77,94,.07); }
@media (max-width: 1100px) { .cr { grid-template-columns: 1fr; } .cr-side { position: static; } .cr-table { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cr-num { height: 48px; font-size: 15px; } .cr-tray { gap: 20px; } }

/* ===================== Blackjack ===================== */
.bj { display: flex; flex-direction: column; gap: 14px; }
.bj-infobar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bj-main { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.bj-table-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bj-felt { position: relative; height: 560px; border-radius: 26px 26px 50% 50% / 26px 26px 34% 34%; border: 10px solid #3a1d08; box-shadow: 0 0 0 3px #c9962b, 0 30px 60px rgba(0,0,0,.6), inset 0 0 80px rgba(0,0,0,.45); overflow: hidden; }
.bj-arc { position: absolute; left: 8%; right: 8%; top: 27%; height: 24%; pointer-events: none; opacity: .85; }
.bj-arc svg { width: 100%; height: 100%; }
.bj-dealer { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bj-dealer-label { font-family: var(--display); font-weight: 900; letter-spacing: .3em; font-size: 12px; color: rgba(255,255,255,.55); }
.bj-cards { display: flex; min-height: 20px; }
.bj-cards .pcard { width: 76px; margin-left: -30px; }
.bj-cards .pcard:first-child { margin-left: 0; }
.bj-cards.dealer .pcard { width: 84px; margin-left: -26px; }
.bj-cards .pcard-sm { width: 54px; margin-left: -26px; }
.bj-val { min-width: 34px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.bj-val.bust { background: var(--red); } .bj-val.bj { background: var(--gold-grad); color: #2a1a02; }
.bj-shoe { position: absolute; right: 26px; top: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: rgba(255,255,255,.55); font-weight: 800; }
.bj-shoe-cards { width: 54px; height: 64px; border-radius: 8px; background: linear-gradient(135deg, #3a1d08, #1a0b02); border: 2px solid #c9962b; box-shadow: inset 0 0 0 4px #14204a, 4px 4px 0 #14204a, 6px 6px 0 #c9962b; }
.bj-msg { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8; font-weight: 800; color: #fff; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 99px; font-size: 13px; white-space: nowrap; backdrop-filter: blur(4px); }
.bj-seat { position: absolute; width: 150px; margin-left: -75px; margin-top: -40px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bj-seat.empty .bj-bet { opacity: .35; }
.bj-hands { position: absolute; bottom: calc(100% - 26px); display: flex; gap: 10px; align-items: flex-end; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; transition: .2s; position: relative; }
.bj-hand.active { background: rgba(245,196,81,.12); box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(245,196,81,.4); }
.bj-res { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 900; padding: 3px 8px; border-radius: 7px; white-space: nowrap; z-index: 5; animation: pillIn .3s; }
.bj-res.win { background: var(--green); color: #032a12; } .bj-res.gold { background: var(--gold-grad); color: #2a1a02; } .bj-res.push { background: var(--blue); } .bj-res.lose { background: var(--red); }
.bj-bet { width: 66px; height: 66px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); background: rgba(0,0,0,.15); display: grid; place-items: center; cursor: default; position: relative; padding: 0; color: #fff; }
.bj-bet.clickable { cursor: pointer; border-color: #ffe28a; box-shadow: 0 0 0 4px rgba(255,226,138,.18), 0 0 20px rgba(255,226,138,.35); animation: pulse 1.6s infinite; }
.bj-bet-stack { display: grid; place-items: center; }
.bj-chip { width: 44px; height: 44px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.5)); animation: chipDrop .3s; }
.bj-bet b { position: absolute; bottom: -10px; font-size: 11px; background: rgba(0,0,0,.75); padding: 0 6px; border-radius: 6px; }
.bj-insbadge { position: absolute; top: -14px; font-size: 10px; background: var(--blue); padding: 1px 6px; border-radius: 6px; font-weight: 800; white-space: nowrap; }
.bj-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; background: rgba(0,0,0,.45); padding: 3px 9px 3px 3px; border-radius: 99px; max-width: 150px; white-space: nowrap; }
.bj-name .avatar { width: 22px; height: 22px; } .bj-name span:not(.bot-badge) { overflow: hidden; text-overflow: ellipsis; }
.bj-seat.empty .bj-name { padding: 3px 9px; }
.bj-seat.me .bj-name { background: rgba(245,196,81,.25); color: #ffe7a8; }
.bj-seat.active .bj-name { background: var(--gold-grad); color: #2a1a02; }
.bj-timer { width: 90px; height: 4px; border-radius: 4px; background: rgba(0,0,0,.4); overflow: hidden; opacity: 0; } .bj-timer.on { opacity: 1; }
.bj-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .2s linear; }
.bj-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); }
.bj-ctl-left, .bj-ctl-right { display: flex; flex-direction: column; gap: 10px; }
.bj-ctl-right { align-items: flex-end; }
.bj-ctl-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bj-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bj-act { min-width: 104px; height: 46px; font-size: 15px; }
.bj-act.hit:not(:disabled) { background: linear-gradient(180deg,#46e690,#1fae5e); color: #032a12; border-color: #6ff0aa; }
.bj-act.stand:not(:disabled) { background: linear-gradient(180deg,#ff6b78,#d6283a); color: #fff; border-color: #ff8a95; }
.bj-act.double:not(:disabled) { background: var(--gold-grad); color: #2a1a02; border-color: #ffe08a; }
.bj-act.split:not(:disabled) { background: linear-gradient(180deg,#6cb6ff,#2a7de0); color: #fff; border-color: #8cc8ff; }
.bj-act.hint { box-shadow: 0 0 0 3px #fff, 0 0 20px rgba(255,255,255,.5); }
.bj-hint { font-size: 12.5px; color: #b8d8ff; }
.bj-bethint { font-size: 13px; color: #ffe7a8; font-weight: 700; }
.bj-ins { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(77,163,255,.12); border: 1px solid rgba(77,163,255,.35); font-weight: 700; font-size: 13px; }
.bj-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.bj-chat-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; height: 150px; }
.bj-chat-msg { font-size: 12.5px; color: #c3c8de; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.03); }
.bj-chat-msg b { color: #ffe7a8; }
.bj-lobby { display: flex; flex-direction: column; gap: 10px; }
.bj-lobby-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); flex-wrap: wrap; }
.bj-lobby-art img { width: 84px; height: 52px; border-radius: 9px; object-fit: cover; }
@media (min-width: 1800px) { .bj-main { grid-template-columns: 1fr 300px; } .bj-chat-list { height: 560px; } }
@media (max-width: 900px) { .bj-controls { grid-template-columns: 1fr; } .bj-ctl-right { align-items: stretch; } }
@media (max-width: 760px) {
  .bj-felt { height: 470px; border-width: 6px; } .bj-seat { width: 96px; margin-left: -48px; }
  .bj-cards .pcard { width: 52px; margin-left: -24px; } .bj-cards.dealer .pcard { width: 58px; } .bj-cards .pcard-sm { width: 40px; margin-left: -20px; }
  .bj-bet { width: 50px; height: 50px; } .bj-chip { width: 34px; height: 34px; } .bj-name { font-size: 10.5px; max-width: 96px; } .bj-act { min-width: 72px; }
  .bj-arc { display: none; } .bj-shoe { display: none; }
}

/* ===================== Poker ===================== */
.pk { display: flex; flex-direction: column; gap: 14px; }
.pk-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.pk-setup-art { position: relative; min-height: 420px; } .pk-setup-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-setup-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pk-setup-form h2 { font-family: var(--display); font-size: 24px; } .pk-setup-form p { margin: -8px 0 0; }
.seg.wrap { flex-wrap: wrap; }
.pk-tables { display: flex; flex-direction: column; gap: 10px; }
.pk-trow { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); flex-wrap: wrap; }
.pk-trow-art { width: 96px; height: 60px; border-radius: 10px; object-fit: cover; }
.pk-trow-players { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pk-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pk-main { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.pk-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pk-table { position: relative; height: 470px; margin: 34px 60px 50px; }
.pk-felt { position: absolute; inset: 0; border-radius: 260px; background: radial-gradient(ellipse at 50% 40%, #17855a 0%, #0d5c3b 55%, #073522 100%); border: 14px solid #3a1d08; box-shadow: 0 0 0 3px #c9962b, 0 0 0 6px #1a0b02, 0 40px 80px rgba(0,0,0,.6), inset 0 0 80px rgba(0,0,0,.5); }
.pk-felt::before { content: ''; position: absolute; inset: 22px; border-radius: 240px; border: 2px solid rgba(255,255,255,.12); }
.pk-logo { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); font-family: var(--display); font-weight: 900; letter-spacing: .3em; color: rgba(255,255,255,.1); font-size: 26px; white-space: nowrap; }
.pk-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pk-street { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pk-board { display: flex; gap: 8px; }
.pk-board .pcard { width: 68px; }
.pk-slot { width: 68px; aspect-ratio: 200/280; border-radius: 7%; border: 2px dashed rgba(255,255,255,.14); }
.pk-pot { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; background: rgba(0,0,0,.35); padding: 4px 12px 4px 4px; border-radius: 99px; }
.pk-pot:empty { background: none; }
.pk-pot img { width: 26px; height: 26px; } .pk-pot b { color: var(--gold); font-variant-numeric: tabular-nums; }
.pk-seat { position: absolute; width: 150px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 5; transition: opacity .3s; }
.pk-seat.empty .pk-box { opacity: .55; background: rgba(0,0,0,.35); }
.pk-seat.folded { opacity: .45; } .pk-seat.out { opacity: .55; }
.pk-hole { display: flex; height: 64px; align-items: flex-end; margin-bottom: -12px; z-index: 1; }
.pk-hole .pcard-sm { width: 46px; } .pk-hole .pcard + .pcard { margin-left: -14px; transform: rotate(6deg); } .pk-hole .pcard:first-child { transform: rotate(-6deg); }
.pk-seat.me .pk-hole { height: 92px; } .pk-seat.me .pk-hole .pcard-sm { width: 66px; }
.pk-box { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px 6px 6px; border-radius: 14px; background: linear-gradient(180deg, rgba(20,26,50,.96), rgba(10,14,30,.96)); border: 2px solid rgba(255,255,255,.12); box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.pk-av .avatar { width: 36px; height: 36px; display: block; }
.pk-sname { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
.pk-stack { font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.pk-seat.active .pk-box { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,196,81,.25), 0 0 26px rgba(245,196,81,.45); }
.pk-seat.winner .pk-box { border-color: var(--green); box-shadow: 0 0 30px rgba(47,210,122,.6); animation: hitPop .6s 2; }
.pk-seat.me .pk-box { background: linear-gradient(180deg, rgba(60,44,10,.96), rgba(20,14,4,.96)); }
.pk-act { position: absolute; top: -6px; right: -10px; z-index: 3; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 7px; background: var(--panel3); opacity: 0; transform: scale(.6); transition: .2s; text-transform: uppercase; }
.pk-act.show { opacity: 1; transform: none; }
.pk-act.fold { background: #4a5070; } .pk-act.check { background: #2a6fd4; } .pk-act.call { background: #1fae5e; } .pk-act.raise, .pk-act.bet { background: #e07a1e; } .pk-act.allin { background: var(--red); } .pk-act.smallblind, .pk-act.bigblind { background: #6a4bd1; }
.pk-timer { width: 80%; height: 4px; border-radius: 4px; background: rgba(0,0,0,.4); margin-top: 4px; overflow: hidden; opacity: 0; } .pk-timer.on { opacity: 1; }
.pk-timer i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .2s linear; }
.pk-handname { margin-top: 4px; font-size: 11.5px; font-weight: 900; color: #7ef0b0; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.pk-bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; z-index: 4; animation: chipDrop .25s; }
.pk-bet img { width: 28px; height: 28px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); } .pk-bet b { font-size: 12px; background: rgba(0,0,0,.6); padding: 1px 7px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.pk-dealer { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #111; font-weight: 900; font-size: 13px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.5); z-index: 4; transition: left .5s, top .5s; }
.pk-bottom { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pk-myhand { font-size: 14px; min-height: 20px; }
.pk-wait { color: var(--muted); font-weight: 700; font-size: 13.5px; min-height: 18px; }
.pk-actions { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); transition: box-shadow .2s; }
.pk-actions.live { box-shadow: 0 0 0 2px rgba(245,196,81,.55), 0 0 30px rgba(245,196,81,.2); }
.pk-a { height: 52px; min-width: 130px; font-size: 15px; flex-direction: column; gap: 0; line-height: 1.1; }
.pk-a b { font-size: 13px; }
.pk-a.fold:not(:disabled) { background: linear-gradient(180deg,#5a6080,#3a3f58); }
.pk-a.call:not(:disabled) { background: linear-gradient(180deg,#46e690,#1fae5e); color: #032a12; border-color: #6ff0aa; }
.pk-a.raise:not(:disabled) { background: var(--gold-grad); color: #2a1a02; border-color: #ffe08a; }
.pk-raise { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pk-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-raise-inp { width: 110px; flex: none; }
.pk-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pk-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; top: 0; }
.pk-log { display: flex; flex-direction: column; gap: 4px; height: 180px; overflow-y: auto; }
.pk-log-item { font-size: 12.5px; color: #c3c8de; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.025); }
.pk-log-item.sep { color: var(--gold); background: rgba(245,196,81,.07); font-weight: 700; margin-top: 6px; }
.pk-log-item b { color: #ffe7a8; }
@media (min-width: 1800px) { .pk-main { grid-template-columns: 1fr 300px; } .pk-side { position: sticky; } .pk-log { height: 620px; } }
@media (max-width: 900px) { .pk-setup { grid-template-columns: 1fr; } .pk-setup-art { min-height: 180px; } .pk-actions { grid-template-columns: 1fr 1fr; } .pk-raise { grid-column: 1 / -1; order: 3; } .pk-a.raise { grid-column: 1 / -1; order: 4; } }
@media (max-width: 760px) {
  .pk-table { height: 400px; margin: 24px 6px 40px; } .pk-felt { border-width: 8px; border-radius: 160px; } .pk-seat { width: 104px; }
  .pk-board .pcard, .pk-slot { width: 42px; } .pk-board { gap: 4px; } .pk-av .avatar { width: 26px; height: 26px; } .pk-sname { font-size: 10.5px; max-width: 60px; } .pk-stack { font-size: 11px; }
  .pk-hole .pcard-sm { width: 34px; } .pk-seat.me .pk-hole .pcard-sm { width: 50px; } .pk-hole { height: 48px; } .pk-seat.me .pk-hole { height: 70px; } .pk-logo { display: none; }
}

/* ---------- Mobile Feinschliff ---------- */
@media (max-width: 760px) {
  .slot-controls { grid-template-columns: 1fr 1fr; }
  .slot-controls .ctl:nth-child(3) { grid-column: 1 / -1; }
  .ctl-row { gap: 6px; } .ctl-btn { width: 30px; height: 30px; } .ctl-row b { min-width: 30px; }
  .slot-themes button { padding: 0 10px; font-size: 13px; }
  .bj-seat { width: 84px; margin-left: -42px; }
  .bj-name { max-width: 84px; } .bj-name .avatar { display: none; } .bj-name { padding: 3px 7px; }
  .bj-hands { gap: 4px; }
  .rl-controls, .bj-controls { padding: 12px; }
  .gl-side { padding: 14px; }
  .page-head h1 { font-size: 22px; }
}

/* =====================================================================================
   HANDY-MUSTER für Spielseiten: kompakte Kopfzeile · Bühne · Einstellungen · Dock unten
   ===================================================================================== */
.gl-dock { display: none; }
.lbl-short { display: none; }
@media (max-width: 760px) {
  /* Kopfzeile in einer Zeile */
  .game-page { padding-top: 10px; }
  .game-head { flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; }
  .game-head > .icon-btn { width: 34px; height: 34px; margin-left: -6px; }
  .game-head-title { min-width: 0; flex: 1; }
  .game-head-title h1 { font-size: 18px; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game-head-sub .tag { display: none; }
  .game-head-limits { font-size: 11.5px !important; white-space: nowrap; }
  .game-head > .grow { display: none; }
  .game-head .mode-seg { order: 0; width: auto; flex: none; padding: 2px; border-radius: 10px; }
  .game-head .mode-seg button { height: 30px; padding: 0 9px; font-size: 12.5px; gap: 4px; }
  .game-head .mode-seg button .ic { width: 14px; height: 14px; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .rules-btn { width: 34px; padding: 0; flex: none; } .rules-btn .lbl { display: none; }

  /* Instant-Spiele: Bühne zuerst, dann Einstellungen, Dock klebt unten */
  .gl { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .gl-stage { order: 1; min-height: 0 !important; border-radius: 16px; }
  .gl-side { order: 2; padding: 14px; gap: 12px; border-radius: 16px; }
  .gl-dock { order: 3; }
  .gl-below { order: 4; }
  .gl.has-dock .gl-dock {
    display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; z-index: 25;
    margin: 0 -14px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 13, 26, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line2);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
  }
  .gl-dock .bet-field > label { display: none; }
  .gl-dock .bet-row .btn { height: 38px; }
  .gl-dock .bet-inp { height: 40px; }
  .gl-dock .big-action { height: 48px; font-size: 15.5px; }
  .gl-dock .big-action.hidden { display: none; }
  .page.game-page { padding-bottom: 0; }

  /* Bühnen kompakter */
  .dice-stage { padding: 16px 16px 20px; gap: 16px; }
  .dice-center { padding: 0; gap: 14px; }
  .dice-num { font-size: 46px; }
  .dice-die svg { width: 50px; height: 50px; }
  .dice-cards { display: none; }
  .dice-slider { padding-top: 22px; }
  .mines-stage { padding: 14px; min-height: 0; }
  .mines-grid { gap: 7px; }
  .mine-tile { border-radius: 11px; }
  .plinko-stage { padding: 10px; min-height: 0; }
  .keno-stage { padding: 12px; gap: 10px; min-height: 0; }
  .kd { width: 28px; height: 28px; font-size: 11px; }
  .hilo-stage { padding: 16px 12px; gap: 14px; min-height: 0; }
  .hilo-trail { min-height: 76px; }
  .wheel-stage { min-height: 0; padding: 10px 10px 16px; }
  .wheel-wrap { width: min(300px, 88%); margin-top: 8px; }
  .wheel-board { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .wb-spot { height: 58px; } .wb-sym { font-size: 18px; }
  .crash-stage { min-height: 0; }
  .crash-canvas { min-height: 270px; height: 270px; flex: none; }
  .crash-center { top: 46%; } .crash-mult { font-size: 52px; } .crash-sub { font-size: 13px; }
  .crash-hist { padding: 10px 12px 0; min-height: 34px; }
  .vp-stage { padding: 12px 10px 16px; gap: 14px; min-height: 0; }
  .vp-table th, .vp-table td { padding: 3px 6px; font-size: 10.5px; }
  .vp-table td:first-child { font-size: 10px; letter-spacing: 0; }
  .vp-slot { padding-top: 22px; } .vp-held { font-size: 9px; padding: 2px 6px; }
}

/* ---------- Handy: Tischspiele ---------- */
@media (max-width: 760px) {
  /* Blackjack */
  .bj { gap: 10px; }
  .bj-infobar { flex-wrap: nowrap; }
  .bj-infobar .tag { display: none; }
  .bj-botlabel { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
  .bj-infobar .seg button { height: 30px; padding: 0 11px; }
  .bj-table-wrap { gap: 0; }
  .bj-felt { height: 400px; border-width: 5px; border-radius: 18px 18px 46% 46% / 18px 18px 24% 24%; }
  .bj-dealer { top: 10px; } .bj-dealer-label { font-size: 10px; }
  .bj-cards.dealer .pcard { width: 54px; margin-left: -20px; }
  .bj-msg { font-size: 11.5px; padding: 4px 11px; bottom: 8px; }
  .bj-controls {
    position: sticky; bottom: 0; z-index: 25; margin: 10px -14px 0; border-radius: 0; border-width: 1px 0 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px;
    background: rgba(9, 13, 26, .97); backdrop-filter: blur(14px); box-shadow: 0 -12px 30px rgba(0,0,0,.45);
  }
  .bj-ctl-left { flex-direction: row; align-items: center; gap: 8px; }
  .bj-ctl-left .chip-rack { flex-wrap: nowrap; overflow-x: auto; flex: 1; padding: 6px 2px 2px; }
  .bj-ctl-left .chip-btn { width: 40px; height: 40px; flex: none; }
  .bj-ctl-left > .row { flex: none; flex-direction: column; gap: 4px; }
  .bj-ctl-left > .row .btn { height: 28px; padding: 0 8px; font-size: 11.5px; }
  .bj-ctl-right { flex-direction: row; align-items: center; justify-content: space-between; }
  .bj-ctl-right .btn-green { flex: 1; height: 46px; }
  .bj-ctl-right label { font-size: 11.5px !important; }
  .bj-ctl-mid { gap: 6px; }
  .bj-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
  .bj-act { min-width: 0; height: 46px; font-size: 13px; padding: 0 4px; }
  .bj-bethint { font-size: 12px; }
  /* Phasen: beim Setzen keine Aktionen, im Spiel keine Chips */
  .bj-controls.is-betting .bj-actions, .bj-controls.is-betting .bj-hint { display: none; }
  .bj-controls:not(.is-betting) .bj-ctl-left, .bj-controls:not(.is-betting) .bj-ctl-right .btn-green { display: none; }
  .bj-controls:not(.is-betting):not(.is-turn):not(.is-ins) .bj-actions { opacity: .5; }
  .bj-chat-list { height: 120px; }

  /* Poker */
  .pk { gap: 8px; }
  .pk-header { flex-wrap: nowrap; }
  .pk-headinfo { flex-wrap: nowrap; overflow: hidden; font-size: 12px; gap: 6px; }
  .pk-headinfo .tag, .pk-tname, .pk-skill { display: none; }
  .pk-table { height: 430px; margin: 26px 8px 34px; }
  .pk-felt { border-radius: 46% / 30%; }
  .pk-felt::before { border-radius: 46% / 30%; inset: 14px; }
  .pk-bottom {
    position: sticky; bottom: 0; z-index: 25; margin: 0 -14px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(9, 13, 26, .97); backdrop-filter: blur(14px); border-top: 1px solid var(--line2); box-shadow: 0 -12px 30px rgba(0,0,0,.45); gap: 6px;
  }
  .pk-myhand { font-size: 12.5px; min-height: 0; }
  .pk-wait { font-size: 12.5px; min-height: 0; }
  .pk-actions { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none !important; }
  .pk-actions:not(.live) { display: none; }
  .pk-raise { grid-column: 1 / -1; order: -1; gap: 6px; }
  .pk-presets { flex-wrap: nowrap; overflow-x: auto; gap: 5px; }
  .pk-presets .btn { flex: none; }
  .pk-a { min-width: 0; height: 48px; font-size: 14px; }
  .pk-a.raise { grid-column: auto; order: 0; }
  .pk-raise-inp { width: 92px; }
  .pk-tools { gap: 6px; } .pk-tools .btn { height: 32px; font-size: 12px; }
}

/* ---------- Roulette: senkrechtes Tableau (Handy) ---------- */
.rl-board.vertical { grid-template-columns: .78fr .78fr repeat(3, 1fr); grid-template-rows: 46px repeat(12, 40px) 40px; min-width: 0; border-radius: 10px; }
.rl-board.vertical .rl-zero { border-radius: 40px 40px 0 0; }
.rl-board.vertical .rl-cell { font-size: 14px; }
.rl-board.vertical .rl-cell.red > span, .rl-board.vertical .rl-cell.black > span { width: 30px; height: 30px; }
.rl-board.vertical .rl-zero > span { width: 32px !important; height: 32px !important; }
.rl-board.vertical .rl-out span { font-size: 11px; letter-spacing: .03em; }
.rl-board.vertical .rl-vtext span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.rl-board.vertical .rl-diamond { width: 22px; height: 30px; }
.rl-board.vertical .rl-chip { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.rl-board.vertical .hs .rl-chip { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

@media (max-width: 760px) {
  .rl { gap: 10px; }
  .rl-top { gap: 10px; }
  .rl-wheel-wrap { padding: 10px; }
  .rw { max-width: 250px; }
  .rl-info { padding: 12px; gap: 8px; }
  .rl-info .mode-note { display: none; }
  .rl-result { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; }
  .rl-board-wrap { padding: 8px; overflow: visible; }
  .rl-controls, .bc > .rl-controls {
    position: sticky; bottom: 0; z-index: 25; margin: 0 -14px; border-radius: 0; border-width: 1px 0 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px 10px;
    background: rgba(9, 13, 26, .97); backdrop-filter: blur(14px); box-shadow: 0 -12px 30px rgba(0,0,0,.45);
    display: grid; grid-template-columns: 1fr auto; align-items: center;
  }
  .rl-controls .chip-rack { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 2px; }
  .rl-controls .chip-btn { width: 40px; height: 40px; flex: none; }
  .rl-tools { flex-wrap: nowrap; }
  .rl-tools .btn { height: 34px; padding: 0 10px; }
  .rl-tools .lbl { display: none; }
  .rl-total { margin: 0; text-align: right; } .rl-total b { font-size: 18px; }
  .rl-spin, .bc .big-action { grid-column: 1 / -1; width: 100%; height: 48px; min-width: 0; }

  /* Baccarat */
  .bc { gap: 10px; }
  .bc-table { padding: 12px; gap: 12px; min-height: 0; }
  .bc-hand { padding: 10px; min-height: 150px; }
  .bc-title { font-size: 13px; margin-bottom: 8px; letter-spacing: .06em; }
  .bc-score { width: 34px; height: 34px; font-size: 17px; }
  .bc-cards { gap: 4px; min-height: 84px; }
  .bc-cards .pcard { width: 46px; }
  .bc-cards .pcard:nth-child(3) { margin-left: 6px; transform: rotate(90deg) translateY(-6px); }
  .bc-spots { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .bc-spot { height: 64px; border-radius: 11px; padding: 0 4px; }
  .bc-spot.big .bc-l { font-size: 14px; letter-spacing: .06em; }
  .bc-spot.green { grid-column: auto; } .bc-l { font-size: 10.5px; text-align: center; } .bc-p { font-size: 10.5px; }
  .bc-spot:nth-child(1) { order: 1; } .bc-spot:nth-child(5) { order: 2; } .bc-spot:nth-child(3) { order: 3; }
  .bc-spot:nth-child(2) { order: 4; grid-column: span 1; } .bc-spot:nth-child(4) { order: 5; grid-column: span 2; }
  .bc-chip { width: 24px; height: 24px; } .bc-stack b { font-size: 10px; }
  .bc-side { padding: 12px; }

  /* Craps: Würfel, Status und Würfeln-Knopf als Dock */
  .cr { display: flex; flex-direction: column; gap: 10px; }
  .cr-stage { gap: 10px; }
  .cr-table { padding: 10px; gap: 10px; }
  .cr-num { height: 40px; font-size: 13px; }
  .cr-spot { min-height: 46px; padding: 4px 8px; } .cr-spot.wide { min-height: 50px; }
  .cr-spot.pass .cr-l { font-size: 17px; } .cr-spot.field .cr-l { font-size: 16px; }
  .cr-l { font-size: 12px; } .cr-s { font-size: 10px; }
  .cr-chip { width: 26px; height: 26px; }
  .cr-tray { height: 104px; gap: 26px; }
  .die-wrap, .die3d { width: 50px; height: 50px; } .die3d { --dz: 25px; } .die-face { padding: 7px; border-radius: 9px; }
  .cr-sum { width: 44px; height: 44px; font-size: 20px; right: 12px; }
  .cr-side {
    position: sticky; bottom: 0; z-index: 25; margin: 0 -14px; border-radius: 0; border-width: 1px 0 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; top: auto;
    background: rgba(9, 13, 26, .97); backdrop-filter: blur(14px); box-shadow: 0 -12px 30px rgba(0,0,0,.45);
    display: grid; grid-template-columns: 1fr auto;
  }
  .cr-side > .field { grid-column: 1 / -1; } .cr-side > .field > label { display: none; }
  .cr-side .chip-rack { flex-wrap: nowrap; }
  .cr-side .chip-btn { width: 40px; height: 40px; }
  .cr-status { grid-column: 1 / -1; padding: 7px 10px; font-size: 12px; }
  .cr-side > div:not(.field):not(.cr-status):not(.cr-log) { display: none; }
  .cr-side > .label, .cr-side > .cr-log { display: none; }
  .cr-side .btn-green { height: 46px; grid-column: 1; }
  .cr-side > .btn-sm { height: 46px; grid-column: 2; padding: 0 10px; font-size: 0; }
  .cr-side > .btn-sm .ic { width: 18px; height: 18px; }
}
.bj-hint { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .bj-ctl-right { min-height: 0; } .bj-controls:not(.is-betting) .bj-ctl-right { justify-content: center; } }
@media (max-width: 760px) {
  .pk-table { height: 372px; margin: 26px 4px 52px; }
  .pk-seat { width: 96px; }
  .pk-box { padding: 4px 7px 4px 4px; gap: 5px; border-radius: 11px; }
  .pk-sname { max-width: 54px; }
  .pk-act { font-size: 9px; padding: 1px 6px; right: -6px; }
  .pk-bet img { width: 22px; height: 22px; } .pk-bet b { font-size: 10.5px; padding: 0 5px; }
  .pk-dealer { width: 22px; height: 22px; font-size: 11px; }
  .pk-pot { font-size: 12.5px; } .pk-pot img { width: 20px; height: 20px; }
  .pk-center { gap: 6px; } .pk-street { font-size: 9.5px; }
}
.ctl-lines > .ctl, .ctl-lb > .ctl { display: contents; }
.ctl-lines, .ctl-lb { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .slots { gap: 10px; }
  .slot-themes { width: 100%; } .slot-themes button { flex: 1; justify-content: center; }
  .machine-info { grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
  .slot-msg { grid-column: 1 / -1; padding: 7px 10px; font-size: 12.5px; }
  .slot-win, .slot-fs { min-width: 0; padding: 4px 10px; } .slot-win b, .slot-fs b { font-size: 18px; }
  .slot-controls {
    position: sticky; bottom: 0; z-index: 25; width: auto; align-self: stretch; margin: 0 -14px; border-radius: 0; border-width: 1px 0 0;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 6px 8px;
    background: rgba(9, 13, 26, .97); backdrop-filter: blur(14px); box-shadow: 0 -12px 30px rgba(0,0,0,.45);
    grid-template-columns: 1fr auto 1fr; grid-template-areas: "lines spin lb" "sum spin opts";
  }
  .ctl-lines { grid-area: lines; } .ctl-lb { grid-area: lb; } .ctl-sum { grid-area: sum; } .slot-controls .spin-wrap { grid-area: spin; order: 0; } .slot-controls .ctl-opts { grid-area: opts; }
  .slot-controls .ctl small { margin-bottom: 3px; font-size: 9.5px; }
  .ctl-sum { text-align: center; } .ctl-total b { font-size: 17px; }
  .spin-btn { width: 70px; height: 70px; box-shadow: 0 0 0 4px #2a1608, 0 0 0 6px #e8b84a, 0 8px 20px rgba(245,196,81,.3); }
  .spin-btn .ic { width: 28px; height: 28px; }
  .slot-controls .ctl-opts { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 4px; }
  .ctl-opts .row { flex-wrap: nowrap; gap: 4px; }
  .ctl-opts .btn { height: 30px; padding: 0 8px; } .ctl-opts .lbl { display: none; }
  .ctl-opts .select { width: 74px; height: 30px; font-size: 11.5px; padding: 0 6px; }
}
@media (max-width: 760px) {
  .slot-controls { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .slot-controls .ctl.ctl-sum { grid-area: sum; }
}
/* Tische passen sich der Fensterhöhe an, damit die Bedienung ohne Scrollen sichtbar bleibt */
@media (min-width: 761px) {
  .bj-felt { height: clamp(440px, calc(100vh - 330px), 560px); }
  .pk-table { height: clamp(380px, calc(100vh - 380px), 520px); }
}

/* =====================================================================================
   Feinschliff nach Design-Prüfung – Spiele
   ===================================================================================== */
/* Einsatzfeld ohne Browser-Spinner */
.bet-inp::-webkit-inner-spin-button, .bet-inp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bet-inp { -moz-appearance: textfield; appearance: textfield; }
.chip-rack { padding-top: 8px; }

/* Einheitliche Flächen und Tisch-Banden */
.gl-side, .rl-info, .bc-side { background: var(--surface); border-color: var(--line2); }
.rl-board-wrap, .bc-table, .cr-table { border: 0; box-shadow: var(--rail), inset 0 0 60px rgba(0,0,0,.4); }

/* Desktop: Seitenpanel und Bühne gleich hoch, kein toter Raum */
@media (min-width: 761px) {
  .gl { align-items: stretch; }
  .gl-stage { display: flex; flex-direction: column; min-height: clamp(460px, calc(100vh - var(--top) - 150px), 720px); }
  .gl-stage > :first-child { flex: 1; }
  .gl-side { position: static; }
  .dice-stage { justify-content: center; }
  /* Tische an die Fensterhöhe koppeln; Bedienleisten bleiben unten sichtbar */
  .bj-felt { height: clamp(420px, calc(100vh - var(--top) - 340px), 560px); }
  .pk-table { height: clamp(360px, calc(100vh - var(--top) - 430px), 470px); margin: 30px 60px 40px; }
  .bj-controls, .pk-bottom { position: sticky; bottom: 12px; z-index: 12; }
  .bj-controls { box-shadow: 0 -12px 32px rgba(0,0,0,.55); backdrop-filter: blur(10px); }
  .pk-actions { box-shadow: 0 -12px 32px rgba(0,0,0,.55); backdrop-filter: blur(10px); }
  /* Slots: Maschine passt mit Bedienung in die Höhe */
  .machine, .slot-controls { width: min(800px, 100%, calc((100vh - var(--top)) * .9)); }
  .machine-top { margin-bottom: 6px; } .machine-title span { font-size: 22px; }
  .slot-controls { position: sticky; bottom: 12px; z-index: 12; padding: 10px 18px; box-shadow: 0 -12px 32px rgba(0,0,0,.55); }
  .spin-btn { width: 76px; height: 76px; }
  .slot-themes.in-head { margin: 0; } .slot-themes.in-head button { height: 34px; padding: 0 12px; font-size: 13px; }
  .slot-themes.in-head .tab-sym { width: 20px; height: 20px; }
  /* Spielbereich als Container: Umbrüche nach tatsächlich verfügbarer Breite (Seitenleiste/Chat) */
  .game-stage { container: game / inline-size; }
}
@container game (max-width: 980px) {
  .cr { grid-template-columns: 1fr; }
  .cr-table { grid-template-columns: 1fr; }
  .cr-side { position: sticky; bottom: 12px; z-index: 12; display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 10px 16px; box-shadow: 0 -12px 32px rgba(0,0,0,.55); }
  .cr-side > .field { grid-column: 1; } .cr-side > .cr-status { grid-column: 1 / -1; order: -1; }
  .cr-side > div:not(.field):not(.cr-status), .cr-side > .label, .cr-side > .cr-log { display: none; }
  .cr-side .btn-green { grid-column: 2; grid-row: 2; } .cr-side > .btn-sm { display: none; }
  .cr-tray { height: 110px; }
  .bc-main { grid-template-columns: 1fr; }
}
@container game (max-width: 760px) {
  .gl { grid-template-columns: 280px minmax(0, 1fr); }
  .dice-num { min-width: 0; font-size: 58px; }
  .rl-board { min-width: 0; grid-template-rows: repeat(3, 50px) 42px 42px; } .rl-cell > span { width: 30px !important; height: 30px !important; } .rl-cell { font-size: 14px; }
  .bj-controls { grid-template-columns: 1fr auto; } .bj-ctl-mid { grid-column: 1 / -1; order: -1; }
}

/* Roulette: Bedienung in der Info-Spalte (Desktop), Rahmen ohne leere Kästen */
.rl-info { display: flex; flex-direction: column; }
.rl-info .rl-controls.in-info { margin-top: auto; padding: 14px 0 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.rl-info .rl-controls.in-info .chip-rack, .rl-info .rl-controls.in-info .rl-tools { grid-column: 1 / -1; }
.rl-info .rl-controls.in-info .rl-total { margin: 0; text-align: left; }
.rl-info .rl-spin { min-width: 0; }
.rl-board { border: 0; }
.rl-cell { border: 1px solid rgba(255,255,255,.5); }
.phase-pill.solo i { background: var(--gold); box-shadow: 0 0 10px rgba(245,196,81,.6); }

/* Poker: Aktion hängt an der Sitzbox, leere Sitze als dezente Kreise */
.pk-box { position: relative; }
.pk-box .pk-act { top: -10px; right: -8px; }
.pk-act.smallblind, .pk-act.bigblind { background: rgba(106,75,209,.9); font-size: 9.5px; }
.pk-txt { min-width: 0; }
.pk-seat { width: 168px; } .pk-sname { max-width: 112px; }
.pk-seat.empty .pk-box { width: 52px; height: 52px; padding: 0; border-radius: 50%; justify-content: center; border: 2px dashed rgba(255,255,255,.16); background: rgba(0,0,0,.28); opacity: 1; }
.pk-seat.empty .pk-av, .pk-seat.empty .pk-stack { display: none; }
.pk-seat.empty .pk-sname { font-size: 10.5px; color: var(--dim); max-width: none; }
.pk-headinfo { font-size: 13px; }

/* Blackjack: Handwert lesbar, Aufdruck dezent, ruhige Aktionsknöpfe mit Farbcode */
.bj-hand .bj-val { position: absolute; top: -10px; right: -12px; z-index: 6; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.bj-arc { top: 24%; height: 22%; opacity: .45; }
.bj-seat { width: 170px; margin-left: -85px; } .bj-name { max-width: 170px; }
.bj-act:not(:disabled) { background: linear-gradient(180deg, #24325e, #19233f) !important; border-color: rgba(255,255,255,.16) !important; color: #fff !important; }
.bj-act.hit:not(:disabled) { box-shadow: inset 0 -3px 0 var(--green); }
.bj-act.stand:not(:disabled) { box-shadow: inset 0 -3px 0 var(--red); }
.bj-act.double:not(:disabled) { box-shadow: inset 0 -3px 0 var(--gold); }
.bj-act.split:not(:disabled) { box-shadow: inset 0 -3px 0 var(--blue); }
.bj-act.hint { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(245,196,81,.45) !important; }
.bj-act:disabled, .pk-a:disabled { opacity: 1; background: var(--panel3) !important; border-color: var(--line2) !important; color: var(--faint) !important; box-shadow: none !important; }

/* Baccarat: Handflächen und Bead Plate ruhiger */
.bc-hand { border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.bc-cards:empty::before, .bc-cards:empty::after { content: ''; width: 86px; aspect-ratio: 200/280; border-radius: 7%; border: 1.5px solid rgba(255,255,255,.12); }
.bead { background: #0a0f1f; border: 1px solid var(--line); }
.bead-dot { aspect-ratio: 1; } .bead-dot.none { background: rgba(255,255,255,.05); }

/* Craps: gleich breite Zahlen, funktionale Labels in Manrope, Puck ohne Überlappung */
.cr-numbers { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cr-num { font-size: clamp(14px, 2.2cqi, 22px); min-width: 0; }
.cr-row .cr-l { font-family: var(--font); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.cr-offpuck { top: -10px; left: -10px; right: auto; bottom: auto; width: 30px; height: 30px; font-size: 10px; }
.cr-tray .result-banner { font-size: 20px; padding: 10px 20px; }
details.cr-props > summary { list-style: none; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; }
details.cr-props > summary::-webkit-details-marker { display: none; }
details.cr-props[open] > summary { margin-bottom: 4px; }
details.cr-props { display: flex; flex-direction: column; gap: 10px; }

/* Glücksrad: Felder ohne Lücke, Chip in der Ecke */
.wheel-board { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wb-spot { flex: 0 0 calc((100% - 24px) / 4); }
.wb-stack { top: 4px; right: 4px; bottom: auto; }
.wb-chip { width: 18px; height: 18px; }
.wb-amt { position: static; margin-left: 3px; font-size: 10px; }

/* Crash */
.crash-ph { margin: 6px 0 -6px; } .crash-ph .muted { font-size: 12px; white-space: nowrap; }
.crash-sub { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 99px; background: rgba(7,4,24,.7); backdrop-filter: blur(6px); }
.crash-center { top: 34%; }

/* =================== Handy =================== */
@media (max-width: 760px) {
  /* Ein gemeinsamer Dock-Stil (Safe-Area liegt an der unteren Navigation) */
  .gl.has-dock .gl-dock, .bj-controls, .pk-bottom, .rl-controls, .bc > .rl-controls, .cr-side, .slot-controls {
    position: sticky; bottom: 0; z-index: 25; margin: 0 -14px; border-radius: 0; border: 0; border-top: 1px solid var(--line2);
    padding: 10px 14px; background: rgba(9,13,26,.97); backdrop-filter: blur(14px); box-shadow: 0 -12px 30px rgba(0,0,0,.45);
  }
  .gl-dock .field.dock-item > label { display: none; }
  .gl-dock .stat-line.dock-item { font-size: 12.5px; padding: 0 2px; }
  .gl-dock .seg { width: 100%; } .gl-dock .seg button { flex: 1; justify-content: center; height: 36px; }
  /* Ergebnis immer im Sichtfeld */
  .result-banner { position: fixed; top: 42%; z-index: 40; max-width: calc(100vw - 32px); white-space: normal; }
  /* Kopfzeile: Titel nie abgeschnitten, 40-px-Ziele */
  .game-head .mode-seg button .ic { display: none; }
  .game-head .mode-seg button { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .game-head-title h1 { font-size: 17px; letter-spacing: .015em; }
  .game-head > .icon-btn, .rules-btn { width: 40px; height: 40px; }
  .game-head-sub .tag:not(.tag-live) { display: none; } .game-head-sub .tag { display: inline-flex !important; } .game-head-sub .tag:not(.tag-live) { display: none !important; }
  /* Chip-Leisten in Docks nicht abschneiden */
  .rl-controls .chip-rack, .bj-ctl-left .chip-rack, .cr-side .chip-rack { overflow: visible; justify-content: space-between; padding: 4px 0 0; }
  .chip-rack .chip-btn.on { transform: scale(1.06); } .chip-rack .chip-btn:hover { transform: none; }
  /* Roulette: größere Kanten-Zonen, kompakter Kopf, Kessel als Overlay beim Drehen */
  .rl-board.vertical .hs-r { right: -10px; width: 20px; } .rl-board.vertical .hs-l { left: -10px; width: 20px; }
  .rl-board.vertical .hs-t { top: -10px; height: 20px; } .rl-board.vertical .hs-b { bottom: -10px; height: 20px; }
  .rl-board.vertical :is(.hs-tr, .hs-tl, .hs-br, .hs-bl) { width: 26px; height: 26px; }
  .rl-board.vertical .hs-tr { top: -13px; right: -13px; } .rl-board.vertical .hs-tl { top: -13px; left: -13px; }
  .rl-board.vertical .hs-br { bottom: -13px; right: -13px; } .rl-board.vertical .hs-bl { bottom: -13px; left: -13px; }
  .rl-top { grid-template-columns: 132px minmax(0, 1fr); }
  .rl-wheel-wrap { padding: 6px; } .rw { max-width: 120px; }
  .rl.is-spinning .rl-wheel-wrap { position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(300px, 86vw); z-index: 45; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); border-radius: 20px; }
  .rl.is-spinning .rw { max-width: none; }
  .rl-tools .btn { height: 40px; }
  /* Blackjack-Dock als Raster: Chips, dann [Leeren][Wiederholen][Austeilen] */
  .bj-controls.is-betting { display: grid; grid-template-columns: 48px 48px 1fr; gap: 8px; }
  .bj-controls.is-betting .bj-ctl-left, .bj-controls.is-betting .bj-ctl-left > .row, .bj-controls.is-betting .bj-ctl-right { display: contents; }
  .bj-controls.is-betting .bj-ctl-left .chip-rack { grid-column: 1 / -1; }
  .bj-controls.is-betting .bj-ctl-mid { grid-column: 1 / -1; }
  .bj-controls.is-betting .bj-ctl-left > .row .btn { width: 48px; height: 48px; padding: 0; }
  .bj-controls .bj-ctl-left .btn .lbl { display: none; }
  .bj-controls.is-betting .bj-ctl-left .btn .ic { width: 18px; height: 18px; }
  .bj-controls.is-betting .bj-ctl-right .btn-green { height: 48px; }
  .bj-controls.is-betting .bj-ctl-right label { display: none; }
  .bj-name .bot-badge { display: none; }
  .bj-name { font-size: 10px; max-width: 92px; } .bj-seat { width: 92px; margin-left: -46px; }
  .bj-hand .bj-val { right: -8px; top: -8px; }
  /* Poker */
  .pk-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .pk-tools .btn { height: 40px; font-size: 12.5px; justify-content: flex-start; }
  .pk-tools > label { grid-column: 1 / -1; justify-content: center; }
  .pk-presets .btn { height: 36px; min-width: 52px; }
  .pk-seat.empty.private { display: none; }
  .pk-seat { width: 96px; } .pk-sname { max-width: 54px; }
  .pk-setup { overflow: visible; }
  .pk-setup-art { min-height: 0; height: 104px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .pk-setup-form { padding: 16px 14px; gap: 12px; } .pk-setup-form h2 { font-size: 19px; } .pk-setup-form p { font-size: 13px; }
  .pk-setup-form > .btn-lg { position: sticky; bottom: 10px; z-index: 5; box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 6px 18px rgba(245,196,81,.25); }
  /* Baccarat: S-Paar | Unentschieden | B-Paar, darunter SPIELER | BANK gleich breit */
  .bc-spots { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .bc-spot { grid-column: span 2 !important; height: 54px; }
  .bc-spot:nth-child(1) { order: 1; } .bc-spot:nth-child(3) { order: 2; } .bc-spot:nth-child(5) { order: 3; }
  .bc-spot:nth-child(2), .bc-spot:nth-child(4) { grid-column: span 3 !important; height: 64px; }
  .bc-spot:nth-child(2) { order: 4; } .bc-spot:nth-child(4) { order: 5; }
  .bc-hand { min-height: 118px; }
  .bc-cards:empty { min-height: 0; } .bc-cards:empty::before, .bc-cards:empty::after { width: 46px; }
  /* Craps: Würfelschale bleibt oben sichtbar */
  .cr-stage { display: flex; flex-direction: column; }
  .cr-tray { order: -1; position: sticky; top: 0; z-index: 12; height: 84px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
  .cr-tray .die-wrap, .cr-tray .die3d { width: 44px; height: 44px; } .cr-tray .die3d { --dz: 22px; }
  .cr-tray .result-banner { position: absolute; top: 50%; font-size: 15px; padding: 7px 14px; max-width: 70%; }
  .cr-side .btn-sm { height: 46px; }
  /* Slots */
  .line-markers .lm:not(.on) { display: none; }
  .ctl-btn { width: 40px; height: 40px; border-radius: 11px; }
  .ctl-row { gap: 4px; } .ctl-row b { min-width: 26px; font-size: 15px; }
  .slot-controls .ctl-opts .btn, .slot-controls .ctl-opts .select { height: 36px; }
  .slot-controls .spin-btn { width: 66px; height: 66px; }
  /* Glücksrad */
  .wheel-wrap { width: min(240px, 70vw); }
  .wheel-hist { min-height: 0; }
  .wheel-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .wb-spot { grid-column: span 3; height: 54px; flex: none; }
  .wb-spot:nth-child(n+5) { grid-column: span 4; }
  /* Dice: Kennzahlen kompakt statt ausgeblendet */
  .dice-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .dc { padding: 7px 9px; border-radius: 10px; }
  .dc small { font-size: 9.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dc b { font-size: 15px; white-space: nowrap; }
  .dice-stage .stat-line { display: none; }
  .gl-side > div > .stat-line:nth-child(-n+2) { display: none; }
  .crash-center { top: 42%; }
}
@media (max-width: 760px) {
  .bj-controls.is-betting .bj-ctl-mid { order: -2; }
  .bj-controls.is-betting .bj-ctl-left .chip-rack { order: -1; }
}
/* Baccarat: Bedienung direkt unter dem Tisch, Verlauf und Spieler danach */
.bc .bc-main { display: contents; }
.bc .bc-table { order: 1; } .bc > .rl-controls { order: 2; } .bc .bc-side { order: 3; }
@media (min-width: 761px) { .bc-table { min-height: 0; } .bc-hand { min-height: 170px; } .bc > .rl-controls { position: sticky; bottom: 12px; z-index: 12; box-shadow: 0 -12px 32px rgba(0,0,0,.55); } }

/* Poker: Hinweis, wenn das Guthaben nicht für den Mindest-Buy-in reicht */
.pk-buyin-hint { margin-top: 8px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; color: #ffd28a; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.22); }
.pk-buyin-hint.hidden { display: none; }
