/* Izzy's Arcade Locker — casino look for the Gamble tab (Version 20).
   Every Gamble game sits on its own "real" table: polished wood rail + textured felt (or a machine cabinet),
   warm overhead light, a marquee sign with chasing bulbs, casino-chip bet buttons and real-looking cards.
   #stage gets class "casino" and data-g="<game id>" (app.js). No color-mix() (Edge 92). */

/* ---------- the table: wood rail + felt + overhead light ---------- */
#stage.casino {
  --felt: #17633d; --felt2: #0c3f26; --rail1: #6e3f1c; --rail2: #4a2810; --trim: #d9b45a; --glow: rgba(255, 236, 190, .16);
  border: 18px solid transparent; border-radius: 34px; padding: clamp(14px, 2.4vw, 26px); animation: none; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--glow), transparent 60%) padding-box,
    repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px) padding-box,
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 4px) padding-box,
    radial-gradient(130% 100% at 50% 30%, var(--felt) 0%, var(--felt2) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .25)) border-box,
    repeating-linear-gradient(100deg, var(--rail1) 0 7px, var(--rail2) 7px 12px, var(--rail1) 12px 19px, #5d3415 19px 23px) border-box;
  box-shadow: 0 0 0 2px var(--trim), 0 0 0 5px #1b0e05, 0 40px 90px -30px #000, inset 0 0 70px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .08);
}
#stage.casino #area { position: relative; z-index: 1; }
#stage.casino .status { color: #fff6e0; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); font-weight: 700; }
#stage.casino .gamble-note { color: rgba(255, 246, 224, .5); }

/* ---------- the marquee sign with chasing bulbs ---------- */
.casino-sign { position: relative; z-index: 2; margin: -6px auto 18px; width: fit-content; max-width: 100%; padding: 6px 10px; border-radius: 16px;
  background: linear-gradient(180deg, #2a0d12, #12050a); border: 2px solid var(--trim, #d9b45a); box-shadow: 0 10px 26px -10px #000, inset 0 0 18px rgba(0, 0, 0, .8); }
.cs-face { display: flex; align-items: center; gap: 12px; padding: 4px 16px; justify-content: center; }
.cs-face b { font: 900 clamp(1.1rem, 3.2vw, 1.7rem) var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: #fff3c4; text-shadow: 0 0 6px #ffcc33, 0 0 16px rgba(255, 170, 40, .8), 0 2px 0 #7a4a00; }
.cs-ico { font-size: 1.3rem; color: #ffcc33; text-shadow: 0 0 10px #ffcc33; }
.cs-bulbs { display: flex; justify-content: space-between; gap: 4px; padding: 0 6px; height: 8px; }
.cs-bulbs i { width: 7px; height: 7px; border-radius: 50%; background: #5a3a10; box-shadow: none; animation: bulb 1.2s linear infinite; animation-delay: calc(var(--k) * -0.12s); }
.cs-bulbs.bot i { animation-direction: reverse; }
@keyframes bulb { 0%, 40% { background: #fff4c0; box-shadow: 0 0 6px #ffd56b, 0 0 12px #ffb300; } 50%, 100% { background: #6b4612; box-shadow: none; } }

/* ---------- bet bar: brass plate, wallet with a chip stack, casino-chip buttons ---------- */
#stage.casino .betbar { background: linear-gradient(180deg, #2b1d10, #1a1009); border: 1px solid #8a6a2a; box-shadow: inset 0 1px 0 rgba(255, 220, 150, .2), 0 8px 18px -10px #000; border-radius: 16px; }
#stage.casino .wallet .coin-i { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0; position: relative; top: 4px;
  background: radial-gradient(circle, #e8b923 0 38%, #b8860b 39% 46%, #e8b923 47%); box-shadow: 0 3px 0 #7a5a10, 0 6px 0 #c9971a, 0 9px 0 #7a5a10, 0 0 0 2px #fff3c4 inset; }
#stage.casino .wallet b { color: #ffe9a8; text-shadow: 0 0 10px rgba(255, 200, 60, .35); }
#stage.casino .betctl input { background: #0e0904; border: 1px solid #6b5020; color: #ffe9a8; font-family: var(--mono); border-radius: 10px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7); }
#stage.casino .betctl button { width: 44px; height: 44px; min-width: 0; border-radius: 50%; border: 0; color: #fff; font-weight: 900; font-size: .85rem; position: relative;
  background: radial-gradient(circle, var(--chip, #c0392b) 0 46%, #fff 47% 50%, var(--chip, #c0392b) 51% 64%, transparent 65%), repeating-conic-gradient(var(--chip, #c0392b) 0 20deg, #fff 20deg 30deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45), 0 6px 10px -4px #000; text-shadow: 0 1px 2px #000; transition: transform .15s; }
#stage.casino .betctl button[data-a="half"] { --chip: #2b6cb0; }
#stage.casino .betctl button[data-a="dbl"] { --chip: #2f855a; }
#stage.casino .betctl button[data-a="max"] { --chip: #1a1a1a; font-size: .72rem; }
#stage.casino .betctl button:not(:disabled):hover { transform: translateY(-3px) rotate(-8deg); }
#stage.casino .refill { background: linear-gradient(180deg, #ffe07a, #e0a800); color: #2a1a00; }

/* ---------- buttons: brass / gold ---------- */
#stage.casino .btn.primary, #stage.casino .gbtn.primary { background: linear-gradient(180deg, #ffe58a 0%, #f2b705 55%, #c98a00 100%); color: #3a2400; border: 1px solid #fff2b8;
  box-shadow: 0 4px 0 #8a5c00, 0 10px 20px -8px rgba(255, 180, 0, .7); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); font-weight: 900; letter-spacing: .03em; }
#stage.casino .btn.primary:active, #stage.casino .gbtn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5c00; }
#stage.casino .btn:not(.primary), #stage.casino .gbtn:not(.primary), #stage.casino .choices button { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 230, 170, .35); color: #fff3d6; }
#stage.casino .choices button[aria-pressed="true"] { background: linear-gradient(180deg, #ffe58a, #e0a800); color: #2a1a00; border-color: #fff2b8; }

/* ---------- real-looking cards ---------- */
#stage.casino .playcard { background: linear-gradient(160deg, #ffffff, #f4efe4); border: 1px solid #d8d0bf; box-shadow: 0 1px 0 #fff inset, 0 8px 16px -6px rgba(0, 0, 0, .65), 0 2px 3px rgba(0, 0, 0, .3); }
#stage.casino .playcard.back { background: repeating-linear-gradient(45deg, #9b1c2c 0 5px, #7d1322 5px 10px); border: 5px solid #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .65); }
#stage.casino .hand .playcard:last-child, #stage.casino .vp .playcard, #stage.casino .ce-mid .playcard:last-child { animation: deal .38s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes deal { from { transform: translate(120px, -90px) rotate(18deg); opacity: 0; } }

/* ---------- win / lose reactions ---------- */
#stage.casino.won { animation: tableWin .9s ease-out; }
@keyframes tableWin { 30% { box-shadow: 0 0 0 2px var(--trim), 0 0 0 5px #1b0e05, 0 0 60px 10px rgba(255, 210, 80, .55), inset 0 0 70px rgba(0, 0, 0, .55); } }
#stage.casino.lost { animation: tableLose .45s ease-out; }
@keyframes tableLose { 20% { transform: translateX(-6px); box-shadow: 0 0 0 2px #ff4d6d, 0 0 0 5px #1b0e05, inset 0 0 90px rgba(255, 40, 60, .35); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } }
#stage.casino.bet-pop .betbar { animation: betPop .3s ease-out; }
@keyframes betPop { 40% { transform: scale(1.015); } }
.casino-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.casino-big { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .35), rgba(0, 0, 0, .75)); animation: fadeIn .25s; cursor: pointer; }
.casino-big.out { opacity: 0; transition: opacity .5s; }
.cb-in { position: relative; display: grid; justify-items: center; gap: 2px; animation: bigIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.cb-in b { font: 900 clamp(2.4rem, 9vw, 4.6rem) var(--display); letter-spacing: .06em; color: #fff3c4; text-shadow: 0 0 10px #ffcc33, 0 0 30px #ff9500, 0 5px 0 #8a4b00; }
.cb-in strong { font: 900 clamp(1.8rem, 6vw, 3rem) var(--display); color: #ffe07a; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #6b3a00; }
.cb-in strong.done { animation: bump .3s; }
.cb-in small { color: #fff3d6; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.cb-rays { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 210, 80, .35) 0 8deg, transparent 8deg 20deg); -webkit-mask-image: radial-gradient(circle, #000, transparent 65%); mask-image: radial-gradient(circle, #000, transparent 65%); animation: spin 8s linear infinite; }
.casino-big.mega .cb-in b { color: #ffe0f0; text-shadow: 0 0 10px #ff5c9d, 0 0 30px #b44dff, 0 5px 0 #5a0a40; }
@keyframes bigIn { from { transform: scale(.3); opacity: 0; } }

/* =============== each game's own room =============== */
/* Lucky Reels: red velvet slot cabinet with a chrome reel window */
#stage.casino[data-g="slots"] { --felt: #8a1022; --felt2: #3a0510; --rail1: #c9a227; --rail2: #8a6a12; --trim: #ffe07a; }
#stage.casino[data-g="slots"] .reels { background: linear-gradient(180deg, #1a1a1a, #3a3a3a 50%, #1a1a1a); border: 6px solid transparent; border-radius: 22px;
  background-clip: padding-box; box-shadow: 0 0 0 4px #d9b45a, 0 0 0 7px #4a2f00, 0 0 40px rgba(255, 200, 60, .45), inset 0 0 20px #000; }
#stage.casino[data-g="slots"] .reel { background: linear-gradient(180deg, #cfcfcf, #ffffff 25%, #ffffff 75%, #cfcfcf); box-shadow: inset 0 14px 16px -8px rgba(0, 0, 0, .55), inset 0 -14px 16px -8px rgba(0, 0, 0, .55); border-radius: 10px; }
#stage.casino[data-g="slots"] .reel.spin { filter: blur(2.5px); animation: reelShake .1s linear infinite; }
@keyframes reelShake { 50% { transform: translateY(3px); } }
/* Blackjack: classic green felt, gold print */
#stage.casino[data-g="bjtable"] { --felt: #1b7a49; --felt2: #0b4027; }
html.shot #stage.casino { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
html.shot #stage.casino #area { width: 100%; }
/* Baccarat: deep blue felt */
#stage.casino[data-g="baccarat"] { --felt: #1a4f86; --felt2: #0a2546; }
/* Card Climb: royal purple felt */
#stage.casino[data-g="cardclimb"] { --felt: #4b2a86; --felt2: #1f0f40; }
/* Video Poker: blue machine cabinet with chrome */
#stage.casino[data-g="videopoker"] { --felt: #13235a; --felt2: #050a20; --rail1: #9aa3b5; --rail2: #5c6578; --trim: #e6ecf5; }
#stage.casino[data-g="videopoker"] .vp { padding: 14px; border-radius: 16px; background: #000; box-shadow: inset 0 0 0 3px #3b4a8a, inset 0 0 30px rgba(60, 120, 255, .35); }
#stage.casino[data-g="videopoker"] .paytab { background: #0a0f2e; border: 2px solid #ffcc33; color: #ffcc33; font-family: var(--mono); }
#stage.casino[data-g="videopoker"] .paytab b { color: #fff; }
/* Roulette: the real table is drawn in the canvas (wheel + layout) */
.rl-box { width: min(960px, 100%); }
.rl-cv { width: 100%; height: auto; max-height: none; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.rl-hist { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: center; min-height: 30px; }
.rl-hist small { color: #fff3d6; margin-right: 6px; font-weight: 700; }
.rl-hist i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--body); font-style: normal; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 3px 6px rgba(0, 0, 0, .4); }
.rl-hist i:first-of-type { width: 36px; height: 36px; font-size: 1rem; }
/* Roulette: green felt, mahogany rail */
#stage.casino[data-g="roulette"] { --felt: #2b1d14; --felt2: #120b06; --rail1: #5b2412; --rail2: #3a1408; }
/* Rocket Crash: night sky over a launch pad */
#stage.casino[data-g="crash"] { --felt: #0d1a3f; --felt2: #02040f; --rail1: #3d4558; --rail2: #262c3a; --trim: #7fd3ff; --glow: rgba(120, 180, 255, .18); }
#stage.casino[data-g="crash"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 64%, #fff, transparent), radial-gradient(1.5px 1.5px at 62% 22%, #fff, transparent), radial-gradient(1px 1px at 82% 48%, #fff, transparent), radial-gradient(1px 1px at 46% 84%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 12%, #fff, transparent); opacity: .7; animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
#stage.casino[data-g="crash"] .cv { border: 2px solid #2b3d6e; box-shadow: 0 0 30px rgba(90, 150, 255, .25); }
/* Gem Mines: a stone cave; tiles are rocks, gems glow */
#stage.casino[data-g="mines"] { --felt: #3a3550; --felt2: #15121f; --rail1: #5a4b3a; --rail2: #3b3125; --trim: #9be7ff; --glow: rgba(120, 230, 255, .12); }
#stage.casino[data-g="mines"] .minegrid button { background: linear-gradient(150deg, #8b8597, #5d566e 55%, #423b52); border: 1px solid #2a2436; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 4px 8px -3px #000; border-radius: 14px; }
#stage.casino[data-g="mines"] .minegrid button.gem { background: radial-gradient(circle, #b6fff0, #2fd8b0 60%, #0f7d6a); box-shadow: 0 0 22px rgba(80, 255, 210, .7), inset 0 2px 0 rgba(255, 255, 255, .5); animation: gemPop .35s cubic-bezier(.2, 1.6, .4, 1); }
#stage.casino[data-g="mines"] .minegrid button.boom { background: radial-gradient(circle, #ffd0a0, #ff5a2a 55%, #7a1a00); box-shadow: 0 0 30px rgba(255, 90, 40, .9); animation: boom .4s; }
@keyframes gemPop { from { transform: scale(.4) rotate(-20deg); } }
@keyframes boom { 30% { transform: scale(1.3); } }
/* Peg Drop: neon arcade cabinet */
#stage.casino[data-g="pegdrop"] { --felt: #1a0b33; --felt2: #070312; --rail1: #22223a; --rail2: #121224; --trim: #ff5cd6; --glow: rgba(255, 92, 214, .14); }
#stage.casino[data-g="pegdrop"] .cv { border: 2px solid #ff5cd6; box-shadow: 0 0 24px rgba(255, 92, 214, .5), 0 0 60px rgba(92, 200, 255, .2); }
/* Coin Flip: bank vault, polished brass */
#stage.casino[data-g="coinflip"] { --felt: #23262e; --felt2: #0d0e12; --rail1: #b8862b; --rail2: #7a5615; --trim: #ffe7a0; }
#stage.casino[data-g="coinflip"] .coin3d { background: radial-gradient(circle at 35% 30%, #fff7cf, #f2c94c 38%, #c28f12 70%, #8a6100); box-shadow: 0 0 0 6px #b8860b, 0 0 0 9px #f2d27a, 0 18px 40px rgba(0, 0, 0, .6), inset 0 -8px 0 rgba(0, 0, 0, .2); color: #6b4a00; text-shadow: 0 2px 0 rgba(255, 255, 255, .5); }
/* Dice Roll + Triple Dice: dark red casino felt; ivory dice */
#stage.casino[data-g="diceroll"], #stage.casino[data-g="tripledice"] { --felt: #7a1424; --felt2: #2e0610; }
#stage.casino[data-g="tripledice"] .dice3 span { background: linear-gradient(145deg, #fffdf7, #e8e2d2); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12), 0 10px 18px -6px #000; color: #8a1424; }
#stage.casino[data-g="tripledice"] .dice3 span.m { background: linear-gradient(145deg, #c8ffd9, #3ee07a); color: #063; }
/* Prize Wheel: carnival tent stripes */
#stage.casino[data-g="prizewheel"] { --felt: #8a1d2c; --felt2: #3d0812; --trim: #ffe07a; }
#stage.casino[data-g="prizewheel"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 34px, transparent 34px 68px); }
/* Sky Tower: a tower climbing into the sunset */
#stage.casino[data-g="skytower"] { --felt: #ff8a5c; --felt2: #2a1a5e; --rail1: #6c7489; --rail2: #4a5164; --trim: #ffd6a0; --glow: rgba(255, 220, 160, .25); }
#stage.casino[data-g="skytower"] .tower { background: linear-gradient(180deg, #3d2a6b, #1a1240); border: 3px solid #8a8fb0; box-shadow: 0 20px 40px -14px #000; }
#stage.casino[data-g="skytower"] .floor button { background: linear-gradient(180deg, #2c3f78, #1b2756); border: 1px solid #4b63b0; box-shadow: inset 0 0 8px rgba(255, 220, 120, .25); }
/* Keno: lottery hall, numbers are ping-pong balls */
#stage.casino[data-g="keno"] { --felt: #1e3a8a; --felt2: #0b1640; }
#stage.casino[data-g="keno"] .kn button { border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ffffff, #dfe4f0 60%, #b8c0d6); color: #1b2440; box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
#stage.casino[data-g="keno"] .kn button.pk { background: radial-gradient(circle at 35% 30%, #fff4c2, #ffcc33 60%, #c98a00); color: #3a2400; }
#stage.casino[data-g="keno"] .kn button.dr { background: radial-gradient(circle at 35% 30%, #c9d6ff, #5b7cff 60%, #2a3fa0); color: #fff; animation: gemPop .3s; }
#stage.casino[data-g="keno"] .kn button.hit { background: radial-gradient(circle at 35% 30%, #d6ffe4, #3ee07a 60%, #0f8a45); color: #052; box-shadow: 0 0 16px rgba(62, 224, 122, .8); }
/* Scratch Cards: a lottery booth, shiny foil */
#stage.casino[data-g="scratch"] { --felt: #5a1e6e; --felt2: #220a2e; --trim: #ffd27a; }
#stage.casino[data-g="scratch"] .scratch { background: linear-gradient(135deg, #ffe07a, #ff9f43 50%, #ff5c9d); box-shadow: 0 16px 34px -12px #000, inset 0 0 0 3px rgba(255, 255, 255, .5); }
#stage.casino[data-g="scratch"] .scratch button.cov { background: linear-gradient(135deg, #d9dbe6, #a7abbd 40%, #eceef5 55%, #9a9fb3); background-size: 200% 200%; animation: foil 3s ease-in-out infinite; }
@keyframes foil { 50% { background-position: 100% 100%; } }
/* Limbo: icy blue */
#stage.casino[data-g="limbo"] { --felt: #0f5a7a; --felt2: #052433; --rail1: #9fb8c8; --rail2: #6c8798; --trim: #c8f2ff; --glow: rgba(200, 245, 255, .18); }
#stage.casino[data-g="limbo"] .bigroll { color: #e6faff; text-shadow: 0 0 20px rgba(150, 230, 255, .7); }
/* Derby Dash: the race track's green */
#stage.casino[data-g="derby"] { --felt: #2f7d32; --felt2: #12401a; --rail1: #f2f2f2; --rail2: #cfcfcf; --trim: #ffffff; }
/* Poker: the room around the table is dark wood */
#stage.casino[data-g="poker"] { --felt: #2a1a10; --felt2: #120a05; }
@media (max-width: 600px) { #stage.casino { border-width: 10px; border-radius: 24px; } .casino-sign { margin-bottom: 12px; } .cs-bulbs i:nth-child(n+16) { display: none; } }

/* ---------- Blackjack: a real half-moon casino table ---------- */
#stage.casino[data-g="bjtable"] { --felt: #23303a; --felt2: #121a20; }
.bj-box { max-width: 860px; margin: 0 auto; width: 100%; }
.bj-fit { position: relative; width: 100%; height: 600px; overflow: hidden; }
.bj-table { position: absolute; top: 0; left: 0; width: 820px; height: 600px; transform-origin: 0 0; border-radius: 26px 26px 50% 50% / 26px 26px 58% 58%;
  background: radial-gradient(ellipse at 50% 30%, #8a4f22, #5b3214 55%, #3b1f0b); box-shadow: 0 0 0 2px #1a0d04, 0 30px 50px -20px #000, inset 0 2px 0 rgba(255, 220, 160, .35), inset 0 -6px 14px rgba(0, 0, 0, .5); }
.bj-stud { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #e6b84a 35%, #8a6416 75%, #4d3708); box-shadow: 0 2px 3px rgba(0, 0, 0, .6), 0 0 0 2px #3b250c; }
.bj-pad { position: absolute; width: 46px; height: 13px; border-radius: 8px; background: linear-gradient(180deg, #2a1405, #4a2610); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 210, 150, .25); z-index: 2; }
.bj-felt { position: absolute; inset: 22px; overflow: hidden; border-radius: 6px 6px 50% 50% / 6px 6px 58.6% 58.6%;
  background: radial-gradient(ellipse at 50% 45%, #2fae64 0%, #1d8a4c 45%, #0f5c31 100%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 70px rgba(0, 0, 0, .45); }
.bj-felt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1px); background-size: 3px 3px; }
.bj-tray { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 300px; height: 60px; display: flex; gap: 3px; justify-content: center; align-items: flex-end; padding: 0 12px 8px;
  background: linear-gradient(180deg, #0d0d0d, #262626); border-radius: 0 0 12px 12px; box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .9), 0 2px 0 rgba(255, 255, 255, .12), 0 4px 8px rgba(0, 0, 0, .5); z-index: 1; }
.bj-tray i { width: 24px; height: 44px; border-radius: 4px; background: repeating-linear-gradient(180deg, var(--c) 0 3px, rgba(0, 0, 0, .35) 3px 4px), var(--c);
  box-shadow: inset 3px 0 4px rgba(255, 255, 255, .35), inset -3px 0 4px rgba(0, 0, 0, .45); }
.bj-tray i:nth-child(odd) { height: 40px; }
.bj-discard { position: absolute; left: 30px; top: 14px; width: 56px; height: 72px; border-radius: 6px; background: #1b1b1b; box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 0 0 2px #333; display: grid; place-items: center; transform: rotate(-4deg); }
.bj-discard i { width: 42px; height: 58px; border-radius: 4px; border: 3px solid #fff; background: repeating-linear-gradient(45deg, #9b1c2c 0 4px, #7d1322 4px 8px); }
.bj-limits { position: absolute; left: 98px; top: 10px; padding: 4px 8px; border-radius: 4px; background: linear-gradient(180deg, #f2f2f2, #b9b9b9); color: #111; font: 800 .68rem/1.25 Georgia, serif; box-shadow: 0 3px 6px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.bj-shoe { position: absolute; right: 30px; top: 18px; width: 84px; height: 70px; border-radius: 8px 8px 6px 6px; transform: rotate(14deg);
  background: linear-gradient(160deg, #3b3b3b, #0f0f0f); box-shadow: 0 8px 14px -4px #000, inset 0 1px 0 rgba(255, 255, 255, .2); }
.bj-shoe i { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 32px; border-radius: 4px 4px 14px 14px; background: repeating-linear-gradient(45deg, #9b1c2c 0 4px, #7d1322 4px 8px); border: 2px solid #fff; }
.bj-side { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; z-index: 4; }
.bj-dealer { top: 70px; }
.bj-you { top: 356px; }
.bj-side .bj-val { order: -1; }
.bj-hand { min-height: 122px; }
.bj-felt .bj-hand .playcard + .playcard { margin-left: -22px; }
.bj-val { min-width: 34px; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #ffe9a8; font: 800 .9rem/1.2 var(--mono); text-align: center; border: 1px solid rgba(255, 220, 140, .35); }
.bj-val:empty { visibility: hidden; }
.bj-val.bust { background: #b3122e; color: #fff; }
.bj-val.bj { background: linear-gradient(180deg, #ffe58a, #e0a800); color: #3a2400; }
.bj-print { position: absolute; left: 0; right: 0; top: 200px; text-align: center; pointer-events: none; z-index: 1; }
.bj-print b { display: block; font: 900 38px/1 Georgia, 'Times New Roman', serif; color: #f4f1e6; letter-spacing: 3px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.bj-print em { display: block; margin-top: 6px; font: 800 19px/1 Georgia, serif; font-style: normal; color: #ffd84a; letter-spacing: 2px; }
.bj-band { position: absolute; left: 0; top: 180px; width: 776px; height: 300px; pointer-events: none; z-index: 1; overflow: visible; }
.bj-band use { fill: none; }
.bj-band use.edge { stroke: #e9f2ea; stroke-width: 38px; }
.bj-band use.fill { stroke: #0c5a30; stroke-width: 33px; }
.bj-band text.band { fill: #f4f1e6; font: 900 17px Georgia, serif; letter-spacing: 2px; }
.bj-band text.rule { fill: #f4f1e6; font: 700 14px Georgia, serif; letter-spacing: 1px; opacity: .92; }
.bj-ins { position: absolute; left: 50%; top: 318px; width: 52px; height: 52px; margin-left: -26px; z-index: 2; }
.bj-cbox { position: absolute; width: 70px; height: 96px; border: 2px solid rgba(240, 248, 240, .8); border-radius: 6px; z-index: 0; }
.bj-cbox.me { width: 186px; height: 134px; top: 352px; border-color: rgba(255, 230, 160, .85); }
.bj-spot { position: absolute; left: 50%; top: 432px; width: 74px; height: 74px; margin-left: 116px; border-radius: 50%; border: 3px solid rgba(255, 230, 160, .8);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .35); display: grid; place-items: center; z-index: 3; }
.bj-spot small { position: absolute; bottom: -2px; transform: translateY(100%); font: 800 .72rem/1.4 var(--mono); color: #ffe9a8; letter-spacing: .12em; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.bj-chips { position: relative; width: 52px; height: 52px; }
.bj-chips i { position: absolute; left: 0; bottom: calc(var(--n) * 5px); width: 52px; height: 52px; border-radius: 50%; animation: chipDrop .3s ease-out both; animation-delay: calc(var(--n) * 50ms);
  background: radial-gradient(circle, var(--c) 0 40%, #fff 41% 44%, var(--c) 45% 62%, transparent 63%), repeating-conic-gradient(var(--c) 0 22deg, #fff 22deg 34deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 3px 0 rgba(0, 0, 0, .55), 0 5px 8px -2px rgba(0, 0, 0, .6); }
.bj-chips i.w { --c: #d9d9d9; } .bj-chips i.r { --c: #c0392b; } .bj-chips i.g { --c: #2f855a; } .bj-chips i.b { --c: #2a2a2a; } .bj-chips i.p { --c: #7b3fb0; } .bj-chips i.k { --c: #d69e2e; }
@keyframes chipDrop { from { transform: translateY(-40px) scale(1.15); opacity: 0; } }
html.shot .bj-chips i { animation: none; }
.bj-box .playcard em { position: absolute; right: 8px; bottom: 6px; font-size: .9rem; font-style: normal; transform: rotate(180deg); }
#stage.casino .bj-hand .playcard:last-child:not(.dealt) { animation: none; }
#stage.casino .bj-hand .playcard.dealt { animation: bjDeal .42s cubic-bezier(.2, .9, .3, 1) both; }
#stage.casino .bj-you .playcard.dealt { animation-name: bjDealYou; }
#stage.casino .bj-hand .playcard.flip { animation: bjFlip .45s ease-out both; }
@keyframes bjDeal { from { transform: translate(300px, -20px) rotate(25deg); opacity: 0; } }
@keyframes bjDealYou { from { transform: translate(300px, -300px) rotate(25deg); opacity: 0; } }
@keyframes bjFlip { 0% { transform: rotateY(90deg); } 100% { transform: none; } }
/* round casino buttons with icons */
.bj-acts { gap: 14px !important; flex-wrap: wrap; justify-content: center; }
#stage.casino .bj-act { width: 78px; height: auto; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #f3e6c4; font-weight: 800; font-size: .78rem; text-shadow: none; }
.bj-act .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2c3a44, #121a20 70%);
  box-shadow: 0 0 0 3px #c9a45a, 0 0 0 5px #3a2a10, 0 8px 14px -4px #000, inset 0 2px 6px rgba(255, 255, 255, .15); transition: transform .15s, box-shadow .15s; }
.bj-act .ic svg { width: 40px; height: 40px; }
.bj-act.primary .ic { background: radial-gradient(circle at 50% 35%, #3c7a4a, #123a1f 70%); }
.bj-act:not(:disabled):hover .ic { transform: translateY(-3px); box-shadow: 0 0 0 3px #ffe08a, 0 0 0 5px #3a2a10, 0 12px 18px -6px #000, 0 0 18px rgba(255, 210, 90, .45); }
.bj-act:disabled { opacity: .38; }
.bj-act.offer .ic { animation: insPulse 1s ease-in-out infinite; }
@keyframes insPulse { 50% { box-shadow: 0 0 0 3px #ffe08a, 0 0 0 5px #3a2a10, 0 0 24px 6px rgba(255, 210, 90, .6); } }

/* ---------- Rocket Crash: a live crash-game screen ---------- */
#stage.casino[data-g="crash"] { --felt: #17181c; --felt2: #08090b; --rail1: #2a2c31; --rail2: #1a1b1f; --trim: #e1173f; --glow: rgba(225, 23, 63, .12); }
.cr-box { width: 100%; max-width: 1080px; }
.cr-box .betbar .betctl { display: none; }
.cr-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; width: 100%; }
.cr-side { background: #1b1c20; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; max-height: 640px; color: #e8e8ea; }
.cr-tabs { display: flex; justify-content: space-between; align-items: center; background: #101114; border-radius: 99px; padding: 3px; font-size: .78rem; }
.cr-tabs b { background: #2c2d32; border-radius: 99px; padding: 5px 14px; }
.cr-tabs span { color: #8d8f96; padding-right: 10px; }
.cr-sum { display: flex; justify-content: space-between; font-size: .78rem; color: #9ea0a6; padding: 0 4px; }
.cr-sum b { color: #fff; font-size: .9rem; }
.cr-head, .cr-row { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1fr; gap: 4px; align-items: center; font-size: .74rem; padding: 0 8px; }
.cr-head { color: #7f8188; }
.cr-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; flex: 1; }
.cr-row { background: #101114; border-radius: 99px; height: 30px; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.cr-row span:first-child { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; color: #c7c8cc; }
.cr-row i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .66rem; color: #fff; }
.cr-row.won { background: #12300f; border-color: #3f8f14; }
.cr-row.won span:nth-child(3) { color: #8fd14f; font-weight: 800; }
.cr-row.won span:nth-child(4) { color: #fff; font-weight: 800; }
.cr-row.lost { opacity: .5; }
.cr-row.me { border-color: #ffcc33; }
.cr-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cr-hist { display: flex; gap: 12px; overflow: hidden; white-space: nowrap; font: 800 .8rem var(--mono); padding: 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.cr-hist .lo { color: #34b4ff; } .cr-hist .mid { color: #a35cff; } .cr-hist .hi { color: #e83ac5; }
.cr-hist span:first-child { animation: histIn .4s ease-out; }
@keyframes histIn { from { transform: translateX(-20px); opacity: 0; } }
.cr-band { background: #e69308; color: #fff; text-align: center; font-weight: 800; font-size: .72rem; letter-spacing: .14em; border-radius: 14px 14px 0 0; padding: 3px; margin-bottom: -8px; position: relative; z-index: 1; }
#stage.casino[data-g="crash"] .cr-main .cv { width: 100%; height: auto; display: block; border: 0; border-radius: 0 0 14px 14px; box-shadow: 0 10px 30px -10px #000; }
.cr-panel { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: 8px 14px; background: #1b1c20; border-radius: 14px; padding: 14px; }
.cr-amt { display: flex; align-items: center; background: #000; border-radius: 99px; padding: 4px; }
.cr-amt button { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid #5a5b60; background: transparent; color: #c9cacd; font-weight: 800; line-height: 1; padding: 0; }
.cr-amt input { flex: 1; min-width: 0; width: 60px; background: transparent; border: 0; color: #fff; font: 800 1rem var(--mono); text-align: center; -moz-appearance: textfield; }
.cr-amt input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cr-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cr-quick button { background: #141518; border: 1px solid #26272b; color: #9c9da3; border-radius: 99px; padding: 4px 0; font-weight: 700; font-size: .8rem; }
.cr-quick button:not(:disabled):hover, .cr-amt button:not(:disabled):hover { color: #fff; border-color: #777; }
.cr-amt button:disabled, .cr-amt input:disabled, .cr-quick button:disabled { opacity: .45; }
.cr-go { grid-column: 2; grid-row: 1 / span 2; min-height: 86px; border-radius: 18px; border: 1px solid #b2f2a3; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #34c014, #23930a); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 0 12px rgba(40, 169, 9, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .3); transition: transform .1s; }
.cr-go b { font-size: 1.45rem; font-weight: 800; }
.cr-go small { font-size: .92rem; font-weight: 700; opacity: .95; }
.cr-go:active { transform: scale(.98); }
.cr-go.red { background: linear-gradient(180deg, #e2102a, #b30016); border-color: #ff7171; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 0 12px rgba(203, 1, 26, .35); }
.cr-go.orange { background: linear-gradient(180deg, #f08a0c, #c86405); border-color: #ffbd71; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 0 16px rgba(240, 138, 12, .5); }
.cr-auto { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; color: #9ea0a3; font-size: .82rem; border-top: 1px solid #2a2b30; padding-top: 10px; }
.cr-sw { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cr-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-sw i { width: 34px; height: 18px; border-radius: 99px; background: #4a4b50; position: relative; transition: background .15s; }
.cr-sw i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cr-sw input:checked + i { background: #2fae10; }
.cr-sw input:checked + i::after { transform: translateX(16px); }
.cr-sw input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.cr-at { width: 72px; background: #000; border: 0; border-radius: 99px; color: #fff; text-align: center; font: 800 .9rem var(--mono); padding: 5px; }
@media (max-width: 760px) {
  .cr-wrap { grid-template-columns: 1fr; }
  .cr-side { order: 2; max-height: 300px; }
  .cr-panel { grid-template-columns: 1fr 1fr; }
}

/* ---------- Derby Dash: a real horse race ---------- */
#stage.casino[data-g="derby"] .dd-box { width: 100%; max-width: 960px; }
#stage.casino[data-g="derby"] .dd-box .cv { width: 100%; height: auto; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 14px 30px -12px #000; cursor: pointer; }
.dd-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.dd-card button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: #fff; font-weight: 800; font-size: .82rem; text-align: left; min-width: 0; }
.dd-card button b { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 3px; font-size: .85rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.dd-card button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-card button em { font-style: normal; color: #ffe27a; font-family: var(--mono); }
.dd-card button[aria-pressed="true"] { background: rgba(255, 204, 51, .25); border-color: #ffcc33; box-shadow: 0 0 0 2px #ffcc33; }
.dd-go { min-width: 200px; }
@media (max-width: 640px) { .dd-card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }html.shot .cr-hist span { animation: none; }

/* ---------- Lucky Reels: a real slot machine cabinet ---------- */
#stage.casino[data-g="slots"] { --felt: #2a0a12; --felt2: #120307; }
.sl-box { width: 100%; max-width: 560px; }
.sl-machine { position: relative; width: 100%; max-width: 470px; margin: 6px auto 0; padding: 14px 16px 0; border-radius: 34px 34px 18px 18px;
  background: linear-gradient(90deg, #6d0a18, #c3142e 18%, #e0283f 50%, #c3142e 82%, #6d0a18); border: 4px solid #d9d9d9;
  box-shadow: inset 0 0 0 3px #8a8a8a, inset 0 0 0 6px #f4f4f4, 0 24px 40px -16px #000, 0 0 40px rgba(255, 60, 80, .25); }
.sl-top { position: relative; margin: -4px -6px 10px; padding: 12px 10px 14px; border-radius: 26px 26px 10px 10px; background: linear-gradient(180deg, #2a0710, #140306); box-shadow: inset 0 0 0 3px #e9b949, inset 0 -6px 14px rgba(0, 0, 0, .6); overflow: hidden; }
.sl-bulbs { position: absolute; inset: 4px 10px auto; display: flex; justify-content: space-between; }
.sl-bulbs i { width: 8px; height: 8px; border-radius: 50%; animation: bulb 1.2s steps(1) infinite; animation-delay: calc(var(--d) * .3s); }
.sl-title { text-align: center; font: 900 2.2rem/1 Georgia, 'Times New Roman', serif; letter-spacing: .06em; color: #ffd84a; margin-top: 8px;
  text-shadow: 0 2px 0 #9a5b00, 0 4px 0 #5a3000, 0 0 18px rgba(255, 200, 60, .7); }
.sl-title span { color: #fff; font-size: 1.4rem; margin: 0 .3em; vertical-align: middle; }
.sl-glass { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(180deg, #11214f, #07102b); box-shadow: inset 0 0 0 2px #e9b949, inset 0 0 20px rgba(80, 140, 255, .35); }
.sl-pay { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; color: #fff; padding: 1px 6px; border-radius: 6px; }
.sl-pay b { color: #ffd84a; font-family: var(--mono); }
.sl-pay span { white-space: nowrap; }
.sl-pay .sl-bar, .sl-pay .sl-7 { font-size: .6rem; padding: 1px 3px; }
.sl-pay .sl-7 { font-size: .95rem; }
.sl-pay.hit { background: #ffd84a; animation: payBlink .35s steps(1) 8; }
.sl-pay.hit b, .sl-pay.hit span { color: #3a1400; }
@keyframes payBlink { 50% { background: transparent; } }
.sl-window { position: relative; display: flex; gap: 6px; padding: 10px; border-radius: 12px; background: linear-gradient(180deg, #111, #2a2a2a 50%, #111);
  box-shadow: inset 0 0 0 3px #bdbdbd, inset 0 0 0 6px #555, 0 4px 10px rgba(0, 0, 0, .5); }
.sl-reel { flex: 1; height: 252px; overflow: hidden; border-radius: 6px; background: #fff; position: relative;
  box-shadow: inset 0 0 0 1px #999; }
.sl-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 28%, transparent 72%, rgba(0, 0, 0, .55)); }
.sl-strip { will-change: transform; }
.sl-strip.blur { filter: blur(1.6px); }
.sl-cell { height: 84px; display: grid; place-items: center; font-size: 3.1rem; line-height: 1; border-bottom: 1px solid #e6e6e6; }
.sl-bar { display: inline-block; font: 900 1.25rem/1 Arial Black, Arial, sans-serif; color: #fff; background: #111; padding: 6px 8px; border-radius: 4px; border: 2px solid #ffd84a; letter-spacing: .05em; }
.sl-7 { font: 900 3.6rem/1 Georgia, serif; color: #e0142e; -webkit-text-stroke: 2px #ffd84a; text-shadow: 0 3px 0 #7a0010; }
.sl-line { position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: #ff2a3c; box-shadow: 0 0 8px #ff2a3c; opacity: .85; pointer-events: none; }
.sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #ffd84a; font-size: .9rem; font-style: normal; text-shadow: 0 0 6px #ffb000; }
.sl-arrow.l { left: -2px; } .sl-arrow.r { right: -2px; }
.sl-machine.won .sl-line { animation: lineFlash .25s steps(1) 10; }
@keyframes lineFlash { 50% { background: #ffd84a; box-shadow: 0 0 16px #ffd84a; } }
.sl-leds { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.sl-leds div { background: #0a0000; border-radius: 6px; padding: 4px 8px; box-shadow: inset 0 0 0 2px #444, inset 0 2px 8px #000; text-align: right; min-width: 0; }
.sl-leds small { display: block; text-align: left; font-size: .58rem; color: #ffb3b3; letter-spacing: .12em; font-weight: 800; }
.sl-leds b { display: block; font: 700 1.05rem/1.2 var(--mono); color: #ff3b3b; text-shadow: 0 0 6px #ff1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-machine.won .sl-leds [data-l=w] { color: #ffe14a; text-shadow: 0 0 8px #ffb000; }
.sl-deck { display: flex; justify-content: center; margin: 12px -16px 0; padding: 12px; background: linear-gradient(180deg, #d0d0d0, #8c8c8c); border-top: 3px solid #f4f4f4; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .3); }
.sl-spin { width: 92px; height: 92px; border-radius: 50%; border: 0; color: #fff; font: 900 1.15rem/1 Arial Black, Arial, sans-serif; letter-spacing: .05em; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #ff6b7d, #e0142e 55%, #8a0016); box-shadow: 0 6px 0 #5a000c, 0 10px 16px rgba(0, 0, 0, .5), inset 0 2px 4px rgba(255, 255, 255, .5), 0 0 0 5px #bdbdbd, 0 0 0 7px #666; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); transition: transform .08s, box-shadow .08s; }
.sl-spin:not(:disabled):hover { filter: brightness(1.1); }
.sl-spin:active, .sl-spin:disabled { transform: translateY(5px); box-shadow: 0 1px 0 #5a000c, 0 4px 8px rgba(0, 0, 0, .5), inset 0 2px 4px rgba(255, 255, 255, .3), 0 0 0 5px #bdbdbd, 0 0 0 7px #666; }
.sl-spin:disabled { filter: saturate(.6) brightness(.85); }
.sl-tray { margin: 0 -16px; height: 56px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #3a3a3a, #9a9a9a 30%, #cfcfcf); padding: 8px 30px 0; }
.sl-coins { position: relative; height: 34px; border-radius: 0 0 40px 40px; background: linear-gradient(180deg, #111, #2c2c2c); box-shadow: inset 0 6px 10px #000; overflow: hidden; }
.sl-coin { position: absolute; bottom: 2px; width: 22px; height: 9px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #fff4b0, #f2b705 50%, #9a6a00); box-shadow: 0 1px 0 #6b4a00; animation: coinIn .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.sl-coin:nth-child(3n) { bottom: 8px; } .sl-coin:nth-child(4n) { bottom: 13px; }
@keyframes coinIn { from { transform: translateY(-60px) rotate(40deg); opacity: 0; } }
html.shot .sl-coin { animation: none; }
.sl-lever { position: absolute; right: -34px; top: 230px; width: 30px; height: 150px; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 100%; }
.sl-lever .rod { position: absolute; left: 11px; bottom: 0; width: 8px; height: 130px; border-radius: 4px; background: linear-gradient(90deg, #8a8a8a, #fff 40%, #9a9a9a); box-shadow: 1px 0 3px rgba(0, 0, 0, .5); }
.sl-lever .knob { position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a8a, #e0142e 50%, #6a0010); box-shadow: 0 3px 6px rgba(0, 0, 0, .6); }
.sl-lever::after { content: ""; position: absolute; left: 3px; bottom: -14px; width: 24px; height: 26px; border-radius: 6px; background: linear-gradient(90deg, #777, #ddd, #777); }
.sl-lever.pull { animation: leverPull .5s ease-in-out; }
.sl-lever:disabled { cursor: default; }
@keyframes leverPull { 40% { transform: scaleY(-1); } 100% { transform: none; } }
@media (max-width: 560px) {
  .sl-machine { max-width: calc(100% - 34px); margin-left: 0; }
  .sl-title { font-size: 1.6rem; }
  .sl-glass { grid-template-columns: 1fr; }
  .sl-reel { height: 189px; }
  .sl-cell { height: 63px; font-size: 2.3rem; }
  .sl-7 { font-size: 2.6rem; }
  .sl-leds b { font-size: .85rem; }
}.sl-pay .sl-7 { -webkit-text-stroke: 0; text-shadow: none; color: #ff5a6c; font-size: 1.05rem; padding: 0 2px; }
.sl-pay.hit .sl-7 { color: #b0001a; }

/* ---------- Baccarat: a real casino table ---------- */
#stage.casino[data-g="baccarat"] { --felt: #2a1418; --felt2: #12080a; }
.bc-box { width: 100%; max-width: 860px; }
.bc-board { width: 100%; max-width: 440px; margin: 0 auto; padding: 8px 10px 10px; border-radius: 12px; background: #050505; box-shadow: inset 0 0 0 2px #333, 0 0 0 4px #1a1a1a, 0 10px 20px -8px #000; }
.bc-bh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bc-bh b { font: 900 .9rem/1 Georgia, serif; color: #ffd84a; letter-spacing: .2em; text-shadow: 0 0 8px rgba(255, 200, 60, .6); }
.bc-cnt { display: flex; gap: 10px; font: 800 .75rem var(--mono); }
.bc-cnt .p, .bc-road .p { color: #4aa3ff; } .bc-cnt .b, .bc-road .b { color: #ff4a5e; } .bc-cnt .t, .bc-road .t { color: #3ee07a; }
.bc-road { display: grid; grid-template-columns: repeat(16, minmax(0, 22px)); grid-template-rows: repeat(6, auto); justify-content: center; gap: 2px; background: #111; padding: 3px; border-radius: 4px; }
.bc-road i { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 900 .6rem/1 Arial, sans-serif; font-style: normal; background: #1c1c1c; }
.bc-road i.p { background: #1557c9; color: #fff; box-shadow: 0 0 6px rgba(60, 140, 255, .6); }
.bc-road i.b { background: #c8102e; color: #fff; box-shadow: 0 0 6px rgba(255, 60, 80, .6); }
.bc-road i.t { background: #138a3e; color: #fff; box-shadow: 0 0 6px rgba(60, 220, 120, .6); }
.bc-fit { height: 470px; margin-top: 12px; }
.bc-table { position: absolute; top: 0; left: 0; width: 820px; height: 470px; transform-origin: 0 0; border-radius: 26px 26px 50% 50% / 26px 26px 42% 42%;
  background: radial-gradient(ellipse at 50% 30%, #8a4f22, #5b3214 55%, #3b1f0b); box-shadow: 0 0 0 2px #1a0d04, 0 30px 50px -20px #000, inset 0 2px 0 rgba(255, 220, 160, .35), inset 0 -6px 14px rgba(0, 0, 0, .5); }
.bc-felt { position: absolute; inset: 22px; overflow: hidden; border-radius: 6px 6px 50% 50% / 6px 6px 40% 40%;
  background: radial-gradient(ellipse at 50% 40%, #1f7a4c 0%, #145c37 55%, #0b3d24 100%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 70px rgba(0, 0, 0, .45); }
.bc-felt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1px); background-size: 3px 3px; }
.bc-zone { position: absolute; top: 12px; width: 330px; height: 156px; border-radius: 12px; border: 2px solid; display: flex; flex-direction: column; align-items: center; padding-top: 6px; gap: 2px; transition: box-shadow .3s; }
.bc-zone.p { left: 40px; border-color: rgba(90, 160, 255, .85); background: rgba(20, 70, 160, .18); }
.bc-zone.b { right: 40px; border-color: rgba(255, 90, 100, .85); background: rgba(170, 20, 40, .18); }
.bc-zone > b { font: 900 .95rem/1 Georgia, serif; letter-spacing: .25em; }
.bc-zone.p > b { color: #9cc6ff; } .bc-zone.b > b { color: #ffb0b8; }
.bc-zone .bj-val { position: absolute; top: 4px; right: 8px; }
.bc-zone.win { box-shadow: 0 0 0 3px #ffd84a, 0 0 30px rgba(255, 216, 74, .6); }
.bc-hand { min-height: 112px; margin-top: 6px; align-items: center; justify-content: center; }
.bc-felt .bc-hand .playcard { width: 78px; height: 110px; font-size: 1.7rem; }
.bc-felt .bc-hand .playcard + .playcard { margin-left: 6px; }
.bc-felt .bc-hand .playcard.side { transform: rotate(90deg); margin-left: 22px; }
#stage.casino .bc-hand .playcard.dealt { animation: bjDeal .42s cubic-bezier(.2, .9, .3, 1) both; }
#stage.casino .bc-hand .playcard.side.dealt { animation-name: bcSide; }
@keyframes bcSide { from { transform: translate(300px, -20px) rotate(25deg); opacity: 0; } to { transform: rotate(90deg); } }
html.shot #stage.casino .bc-hand .playcard.dealt { animation: none; }
.bc-print { position: absolute; left: 0; right: 0; top: 174px; text-align: center; pointer-events: none; }
.bc-print b { display: block; font: 900 30px/1 Georgia, serif; color: #f4f1e6; letter-spacing: 6px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.bc-print em { display: block; margin-top: 4px; font: italic 600 13px Georgia, serif; color: #ffd84a; }
.bc-bets { position: absolute; left: 0; top: 0; width: 776px; height: 450px; }
.bc-arc use { fill: none; stroke-width: 40px; pointer-events: stroke; cursor: pointer; transition: stroke .15s; }
.bc-arc.t use { stroke: #1d9a50; } .bc-arc.b use { stroke: #b0182f; } .bc-arc.p use { stroke: #1a4fb0; }
.bc-arc:hover use { filter: brightness(1.25); }
.bc-arc.on use { filter: brightness(1.35); }
.bc-arc text { fill: #f4f1e6; font: 900 15px Georgia, serif; letter-spacing: 3px; pointer-events: none; }
.bc-arc.on text { fill: #ffd84a; }
.bc-chip { position: absolute; left: 222px; width: 52px; height: 52px; margin-left: -26px; pointer-events: none; }
.bc-chip[data-c="t"] { top: 230px; } .bc-chip[data-c="b"] { top: 286px; } .bc-chip[data-c="p"] { top: 339px; }
.bc-chip.ghost { opacity: .55; }
.bc-chip i { position: absolute; left: 0; width: 52px; height: 52px; border-radius: 50%; animation: chipDrop .3s ease-out both;
  background: radial-gradient(circle, #d69e2e 0 40%, #fff 41% 44%, #d69e2e 45% 62%, transparent 63%), repeating-conic-gradient(#d69e2e 0 22deg, #fff 22deg 34deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 5px 8px -2px rgba(0, 0, 0, .6); }
.bc-chip i:nth-child(1) { bottom: 0; } .bc-chip i:nth-child(2) { bottom: 5px; } .bc-chip i:nth-child(3) { bottom: 10px; }
.bc-chip span { position: absolute; right: 60px; top: 16px; white-space: nowrap; font: 800 .8rem var(--mono); color: #fff; background: rgba(0, 0, 0, .6); padding: 2px 8px; border-radius: 99px; }
html.shot #stage.casino .bc-chip i, html.shot #stage.casino .bj-chips i { animation: none; }
.bc-pick { margin-top: 4px; }
.bc-pick button[data-c="p"][aria-pressed="true"] { background: #1557c9 !important; color: #fff !important; border-color: #9cc6ff !important; }
.bc-pick button[data-c="b"][aria-pressed="true"] { background: #c8102e !important; color: #fff !important; border-color: #ffb0b8 !important; }
.bc-pick button[data-c="t"][aria-pressed="true"] { background: #138a3e !important; color: #fff !important; border-color: #9ff0bd !important; }
/* ---------- Video Poker: a real casino machine ---------- */
#stage.casino[data-g="videopoker"] { --felt: #0c1230; --felt2: #04060f; }
.vpm-box { width: 100%; max-width: 760px; }
.vpm { width: 100%; padding: 12px 14px 16px; border-radius: 22px; background: linear-gradient(90deg, #161616, #3a3a3a 12%, #2a2a2a 50%, #3a3a3a 88%, #161616);
  box-shadow: inset 0 0 0 3px #888, inset 0 0 0 6px #222, 0 24px 40px -16px #000; }
.vpm.won { box-shadow: inset 0 0 0 3px #ffd84a, inset 0 0 0 6px #222, 0 24px 40px -16px #000, 0 0 40px rgba(255, 216, 74, .35); }
.vpm-top { text-align: center; padding: 8px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(180deg, #a3001c, #4a000c); box-shadow: inset 0 0 0 2px #ffd84a, inset 0 -6px 12px rgba(0, 0, 0, .5); }
.vpm-top b { display: block; font: 900 1.6rem/1 Georgia, serif; color: #ffd84a; letter-spacing: .08em; text-shadow: 0 2px 0 #5a2a00, 0 0 14px rgba(255, 200, 60, .6); }
.vpm-top b span { font-size: 1rem; font-style: italic; color: #fff; }
.vpm-top small { color: #ffd9de; letter-spacing: .4em; font-weight: 800; font-size: .65rem; }
.vpm-bezel { padding: 10px; border-radius: 16px; background: #050505; box-shadow: inset 0 0 0 2px #444, inset 0 0 18px #000; }
.vpm-screen { position: relative; border-radius: 10px; padding: 10px 12px; background: radial-gradient(ellipse at 50% 40%, #1238c8, #0a1f8a 60%, #061263); overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); font-family: Arial, sans-serif; }
.vpm-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px); }
.vpm-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 4px 8px; border: 2px solid #ffd84a; border-radius: 4px; background: rgba(0, 0, 60, .35); }
.vpm-pay div { display: flex; justify-content: space-between; color: #ffe14a; font-weight: 900; font-size: .78rem; line-height: 1.55; padding: 0 4px; text-shadow: 0 1px 0 #000; }
.vpm-pay div.hit { background: #d0001e; color: #fff; animation: payBlink .35s steps(1) 8; }
.vpm-cards { display: flex; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.vpm-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vpm-held { height: 18px; font: 900 .95rem/1 Arial Black, Arial, sans-serif; color: #ffe14a; letter-spacing: .08em; text-shadow: 0 0 6px rgba(255, 225, 74, .7); }
.vpm .playcard { width: 96px; height: 134px; font-size: 2.4rem; cursor: pointer; border-radius: 8px; }
.vpm .playcard em { position: absolute; right: 8px; bottom: 6px; font-size: 1rem; font-style: normal; transform: rotate(180deg); }
.vpm .playcard.back { background: repeating-linear-gradient(45deg, #b0001c 0 6px, #7a0012 6px 12px); border: 5px solid #fff; }
#stage.casino .vpm .playcard.dealt { animation: vpFlip .35s ease-out both; animation-delay: calc(var(--i) * 90ms); }
@keyframes vpFlip { from { transform: rotateY(90deg); filter: brightness(.6); } }
html.shot #stage.casino .vpm .playcard.dealt { animation: none; }
.vpm-msg { text-align: center; font: 900 1.05rem/1.4 Arial Black, Arial, sans-serif; color: #fff; letter-spacing: .06em; text-shadow: 0 2px 0 #000; min-height: 1.4em; }
.vpm.won .vpm-msg { color: #ffe14a; }
.vpm-read { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-weight: 900; font-size: .85rem; color: #ff5050; letter-spacing: .04em; }
.vpm-read b { color: #ffe14a; margin-left: 6px; font-family: var(--mono); }
.vpm-panel { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, #2c2c2c, #111); box-shadow: inset 0 2px 0 #555, inset 0 -3px 6px #000; }
.vpm-holds { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.vpm-hold, .vpm-deal { height: 46px; border-radius: 6px; border: 0; font: 900 .85rem/1 Arial Black, Arial, sans-serif; letter-spacing: .06em; cursor: pointer; transition: transform .06s, box-shadow .06s, filter .15s; }
.vpm-hold { color: #3a2a00; background: linear-gradient(180deg, #fff3a8, #f2c500 55%, #b38f00); box-shadow: 0 5px 0 #6b5400, 0 7px 10px rgba(0, 0, 0, .6), inset 0 1px 0 #fff; }
.vpm-hold.on { filter: brightness(1.2); box-shadow: 0 2px 0 #6b5400, 0 0 16px rgba(255, 225, 74, .9), inset 0 1px 0 #fff; transform: translateY(3px); }
.vpm-hold:disabled { filter: grayscale(.6) brightness(.55); cursor: default; }
.vpm-deal { min-width: 110px; color: #fff; background: linear-gradient(180deg, #ff6b6b, #d0001e 55%, #7a0010); box-shadow: 0 5px 0 #4a0008, 0 7px 10px rgba(0, 0, 0, .6), inset 0 1px 0 #ffb3b3; text-shadow: 0 1px 0 #000; }
.vpm-hold:not(:disabled):active, .vpm-deal:active { transform: translateY(4px); box-shadow: 0 1px 0 #333, 0 2px 4px rgba(0, 0, 0, .6); }
@media (max-width: 560px) {
  .vpm .playcard { width: 58px; height: 82px; font-size: 1.5rem; }
  .vpm-cards { gap: 5px; }
  .vpm-pay { grid-template-columns: 1fr; }
  .vpm-pay div { font-size: .7rem; line-height: 1.4; }
  .vpm-panel { flex-direction: column; align-items: stretch; }
  .vpm-hold { font-size: .62rem; }
  .vpm-read { font-size: .7rem; }
}
/* ---------- Triple Dice: Chuck-a-luck birdcage ---------- */
#stage.casino[data-g="tripledice"] { --felt: #3a0d16; --felt2: #160408; }
.ck-box { width: 100%; max-width: 820px; }
.ck-stage { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: center; width: 100%; }
.ck-cage { position: relative; width: 240px; margin: 0 auto; }
.ck-cage svg { width: 100%; height: auto; display: block; overflow: visible; }
.ck-cage .leg { fill: url(#none); fill: #6b3a16; stroke: #2a1405; stroke-width: 1.5; }
.ck-cage .axle { fill: #c9a24a; }
.ck-cage .wire line { stroke: #d8d8d8; stroke-width: 1.6; opacity: .85; }
.ck-cage .rim { fill: none; stroke: #e6b84a; stroke-width: 5; }
.ck-cage rect.rim { fill: #e6b84a; }
.ck-spin { transform-origin: 100px 130px; transform-box: view-box; }
.ck-spin.go { animation: ckSpin 1.7s cubic-bezier(.3, .1, .3, 1); }
@keyframes ckSpin { to { transform: rotate(1080deg); } }
.ck-cage .crank { fill: #b0b0b0; transform-origin: 178px 130px; transform-box: view-box; }
.ck-cage .crank circle { fill: #8a1a1a; }
.ck-cage .crank.go { animation: ckSpin 1.7s cubic-bezier(.3, .1, .3, 1); }
.ck-dice { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 2px; align-items: flex-end; }
.ck-die { width: 38px; height: 38px; border-radius: 7px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; place-items: center;
  background: linear-gradient(145deg, #fffdf7, #e5ddca); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 4px 8px rgba(0, 0, 0, .5); transform: rotate(calc((var(--i, 1) - 1) * 9deg)); }
.ck-die i { width: 7px; height: 7px; border-radius: 50%; }
.ck-die i.on { background: radial-gradient(circle at 35% 35%, #6a6a6a, #111); }
.ck-dice .ck-die { transform: translateY(calc(var(--i) * -6px + 6px)) rotate(calc((var(--i) - 1) * 12deg)); }
.ck-die.roll { animation: ckRoll .18s linear infinite; }
@keyframes ckRoll { 50% { transform: translateY(-14px) rotate(40deg); } }
.ck-die.m { background: linear-gradient(145deg, #fff6c8, #ffd84a); box-shadow: 0 0 14px rgba(255, 216, 74, .9), 0 4px 8px rgba(0, 0, 0, .5); }
.ck-felt { padding: 16px; border-radius: 18px; background: radial-gradient(ellipse at 50% 40%, #1f7a4c, #0f4f2e); box-shadow: inset 0 0 0 3px #e6b84a, inset 0 0 0 7px #0b3a22, inset 0 0 40px rgba(0, 0, 0, .45), 0 16px 30px -12px #000; }
.ck-title { text-align: center; font: 900 1.5rem/1 Georgia, serif; letter-spacing: .14em; color: #ffd84a; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); margin-bottom: 12px; }
.ck-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ck-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .12); color: #fff; cursor: pointer; transition: background .15s, box-shadow .15s; }
.ck-spot .ck-die { width: 54px; height: 54px; padding: 6px; transform: none; }
.ck-spot .ck-die i { width: 10px; height: 10px; }
.ck-spot b { font: 900 1.1rem/1 Georgia, serif; }
.ck-spot:hover { background: rgba(255, 255, 255, .08); }
.ck-spot[aria-pressed="true"] { border-color: #ffd84a; box-shadow: 0 0 0 2px #ffd84a, 0 0 18px rgba(255, 216, 74, .4); }
.ck-spot.hit { background: rgba(255, 216, 74, .25); animation: payBlink .35s steps(1) 6; }
.ck-chip { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; }
.ck-chip i { position: absolute; left: 0; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, #c0392b 0 40%, #fff 41% 45%, #c0392b 46% 62%, transparent 63%), repeating-conic-gradient(#c0392b 0 22deg, #fff 22deg 34deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.ck-chip i:nth-child(1) { bottom: -24px; } .ck-chip i:nth-child(2) { bottom: -21px; } .ck-chip i:nth-child(3) { bottom: -18px; }
.ck-chip em { position: absolute; right: 0; top: 34px; font: 800 .65rem var(--mono); font-style: normal; background: rgba(0, 0, 0, .6); padding: 1px 5px; border-radius: 99px; white-space: nowrap; }
.ck-pays { text-align: center; margin-top: 12px; color: #f4f1e6; font: italic 700 .85rem Georgia, serif; }
@media (max-width: 640px) { .ck-stage { grid-template-columns: 1fr; } .ck-cage { width: 190px; } .ck-spot .ck-die { width: 42px; height: 42px; } .ck-spot .ck-die i { width: 8px; height: 8px; } }

/* ---------- Keno: lounge board, ball machine, paper ticket ---------- */
#stage.casino[data-g="keno"] { --felt: #14162e; --felt2: #070814; }
.kn-box { width: 100%; max-width: 860px; }
.kn-floor { display: grid; grid-template-columns: 1fr 220px; gap: 14px; width: 100%; }
.kn-board { padding: 10px; border-radius: 12px; background: #050505; box-shadow: inset 0 0 0 2px #333, 0 0 0 5px #1b1b1b, 0 12px 24px -10px #000; }
.kn-bh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kn-bh b { font: 900 1.5rem/1 Georgia, serif; color: #ffd84a; letter-spacing: .3em; text-shadow: 0 0 10px rgba(255, 200, 60, .7); }
.kn-game { font: 800 .8rem var(--mono); color: #ff5050; text-shadow: 0 0 6px #ff1a1a; }
.kn-lights { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.kn-lights span { aspect-ratio: 1.25; display: grid; place-items: center; font: 900 1rem/1 Arial, sans-serif; color: #3a3a3a; background: #141414; border-radius: 4px; box-shadow: inset 0 0 0 1px #222; transition: color .2s, background .2s; }
.kn-lights span.dr { color: #ffe14a; background: #2a2300; text-shadow: 0 0 8px #ffb000; box-shadow: inset 0 0 0 1px #6b5400, 0 0 10px rgba(255, 200, 0, .35); }
.kn-lights span.hit { color: #fff; background: #0e6b33; text-shadow: 0 0 8px #3ee07a; box-shadow: inset 0 0 0 1px #3ee07a, 0 0 14px rgba(62, 224, 122, .6); }
.kn-machine { position: relative; display: flex; flex-direction: column; align-items: center; }
.kn-dome { position: relative; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), rgba(160, 200, 255, .12) 40%, rgba(20, 40, 80, .35) 75%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), inset 0 -10px 30px rgba(0, 0, 0, .4), 0 10px 20px -8px #000; }
.kn-air i { position: absolute; left: var(--x); top: var(--y); width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.kn-floor.blowing .kn-air i { animation: knBlow var(--d) ease-in-out infinite alternate; }
@keyframes knBlow { 0% { transform: translate(0, 40px); } 50% { transform: translate(18px, -50px); } 100% { transform: translate(-22px, 10px); } }
.kn-neck { width: 26px; height: 18px; background: linear-gradient(90deg, #888, #eee, #888); }
.kn-base { width: 120px; padding: 6px; text-align: center; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #c3142e, #6d0a18); color: #fff; font: 900 .75rem/1 Arial Black, Arial, sans-serif; letter-spacing: .2em; box-shadow: inset 0 0 0 2px #e6b84a; }
.kn-rail { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 10px; min-height: 64px; padding: 6px; border-radius: 30px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.kn-ball { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 900 .72rem/1 Arial, sans-serif; font-style: normal; color: #111;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, var(--c) 31% 100%); box-shadow: inset 0 0 0 5px var(--c), 0 2px 4px rgba(0, 0, 0, .5); animation: knIn .35s cubic-bezier(.3, 1.5, .5, 1); }
.kn-ball.hit { outline: 2px solid #3ee07a; outline-offset: 1px; }
@keyframes knIn { from { transform: translateY(-50px) scale(.5); opacity: 0; } }
html.shot .kn-ball { animation: none; }
.kn-ticket { position: relative; width: 100%; max-width: 520px; margin: 14px auto 0; padding: 12px 14px 10px; background: #fbf6e8; color: #2a2a2a; border-radius: 4px; transform: rotate(-.6deg);
  box-shadow: 0 14px 24px -10px #000; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(200, 30, 60, .07) 21px 22px); }
.kn-ticket::before, .kn-ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 5px 0, transparent 4px, #fbf6e8 4.5px) 0 0 / 10px 8px repeat-x; }
.kn-ticket::before { top: -7px; transform: rotate(180deg); } .kn-ticket::after { bottom: -7px; }
.kn-th { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #c8102e; padding-bottom: 4px; margin-bottom: 8px; }
.kn-th b { font: 900 1.1rem/1 Georgia, serif; color: #c8102e; letter-spacing: .12em; }
.kn-th span { font: 800 .7rem var(--mono); color: #555; }
.kn-spots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.kn-spots button { position: relative; aspect-ratio: 1.2; border: 1px solid #d9b9b9; background: transparent; color: #c8102e; font: 700 .9rem/1 Georgia, serif; border-radius: 2px; cursor: pointer; padding: 0; }
.kn-spots button:hover { background: rgba(200, 16, 46, .06); }
.kn-spots button.pk::after { content: ""; position: absolute; inset: 2px; border: 3px solid #1a1aa0; border-radius: 50%; transform: rotate(-8deg); opacity: .85; }
.kn-spots button.pk { color: #1a1aa0; font-weight: 900; }
.kn-spots button.hit { background: rgba(62, 224, 122, .25); }
.kn-tf { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; margin-top: 8px; font: 700 .72rem var(--mono); color: #444; }
.kn-bar { display: flex; gap: 2px; justify-content: center; height: 18px; margin-top: 6px; }
.kn-bar i { background: #222; } .kn-bar i:nth-child(3n) { margin-right: 2px; }
@media (max-width: 680px) { .kn-floor { grid-template-columns: 1fr; } .kn-lights span { font-size: .8rem; } }

/* ---------- Scratch Card: a printed scratch-off ticket ---------- */
#stage.casino[data-g="scratch"] { --felt: #2a1036; --felt2: #12061a; }
.sc-box { width: 100%; max-width: 560px; }
.sc-ticket { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 10px; overflow: hidden; color: #2a1200; box-shadow: 0 20px 34px -14px #000, 0 0 0 1px rgba(0, 0, 0, .3);
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .5), transparent 30%), linear-gradient(160deg, #ffe46b, #ffb02e 45%, #ff6a3d 80%, #e6336b); }
.sc-ticket.fresh { animation: tkIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tkIn { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }
.sc-head { text-align: center; padding: 12px 10px 6px; }
.sc-head small { display: block; font: 900 .6rem/1 Arial, sans-serif; letter-spacing: .3em; color: #7a2a00; }
.sc-head b { display: block; font: 900 2.6rem/1 Georgia, serif; color: #fff; letter-spacing: .04em; text-shadow: 0 3px 0 #c22a00, 0 5px 0 #7a1200, 0 8px 14px rgba(0, 0, 0, .3); }
.sc-head b span { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-left: 6px; border-radius: 50%; background: #e6005c; color: #ffe46b; font-size: 2rem; vertical-align: middle; text-shadow: none; box-shadow: 0 0 0 3px #fff, 0 4px 0 #7a1200; }
.sc-head em { display: block; margin-top: 8px; font: 900 .72rem/1.2 Arial, sans-serif; font-style: normal; color: #5a1500; }
.sc-play { margin: 6px 14px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px #e6005c; }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-spot { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: #fff7e0; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 2px #f2c94c; }
.sc-spot .sym { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; }
.sc-spot canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; transition: opacity .3s; }
.sc-spot.open canvas { opacity: 0; pointer-events: none; }
.sc-spot.win { background: #fff1a8; box-shadow: inset 0 0 0 3px #e6005c, 0 0 14px rgba(230, 0, 92, .5); }
.sc-spot.win .sym { animation: gemPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.sc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 6px 12px; font-size: .9rem; }
.sc-legend b { margin-left: 4px; font: 900 .8rem var(--mono); color: #5a1500; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px 10px; background: rgba(255, 255, 255, .55); font: 700 .66rem var(--mono); color: #5a1500; }
.sc-bars { display: flex; gap: 1px; height: 22px; } .sc-bars i { background: #222; } .sc-bars i:nth-child(4n) { margin-right: 2px; }

/* ---------- Limbo: carnival High Striker ---------- */
#stage.casino[data-g="limbo"] { --felt: #23103a; --felt2: #0b0414; --rail1: #c9a227; --rail2: #8a6a12; }
.hs-box { width: 100%; max-width: 720px; }
.hs-rig { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: stretch; width: 100%; }
.hs-tower { position: relative; height: 520px; display: flex; flex-direction: column; align-items: center; }
.hs-bell { width: 70px; height: 52px; position: relative; z-index: 2; }
.hs-bell i { position: absolute; inset: 0; border-radius: 35px 35px 8px 8px; background: radial-gradient(circle at 35% 30%, #fff6c8, #f2c94c 45%, #9a6a00); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); transform-origin: 50% 0; }
.hs-rig.ding .hs-bell i { animation: bellRing .12s ease-in-out 8; box-shadow: 0 0 30px 10px rgba(255, 216, 74, .8); }
@keyframes bellRing { 50% { transform: rotate(10deg); } }
.hs-sign { position: absolute; top: 8px; left: calc(50% + 44px); z-index: 2; padding: 4px 8px; border-radius: 6px; background: #c8102e; color: #ffe46b; font: 900 .7rem/1.05 Georgia, serif; letter-spacing: .08em; text-align: center; transform: rotate(-6deg); box-shadow: 0 0 0 2px #ffe46b, 0 4px 8px rgba(0, 0, 0, .5); }
.hs-pole { position: relative; flex: 1; width: 64px; margin: -4px 0 0; border-radius: 6px; background: linear-gradient(90deg, #8a1a1a, #e23b3b 30%, #ff8a8a 45%, #c41e1e 70%, #6a0d0d); box-shadow: inset 0 0 0 3px #f2c94c, 0 0 0 4px #3a2a10, 0 10px 20px -8px #000; }
.hs-mark { position: absolute; left: -54px; right: -10px; height: 0; border-top: 2px solid rgba(255, 230, 160, .9); }
.hs-mark b { position: absolute; left: 0; top: -10px; font: 900 .8rem/1 var(--mono); color: #ffe9a8; text-shadow: 0 1px 2px #000; }
.hs-trail { position: absolute; left: 26px; right: 26px; bottom: 0; height: 0; border-radius: 6px; background: linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 245, 180, .85)); }
.hs-puck { position: absolute; left: 50%; bottom: 0; width: 40px; height: 22px; margin: 0 0 -11px -20px; border-radius: 6px; background: radial-gradient(circle at 40% 30%, #fff, #d9d9d9 40%, #7a7a7a); box-shadow: 0 3px 8px rgba(0, 0, 0, .6), 0 0 0 2px #333; z-index: 3; }
.hs-rig.won .hs-puck { box-shadow: 0 0 20px 6px rgba(62, 224, 122, .8), 0 0 0 2px #333; }
.hs-rig.lost .hs-puck { box-shadow: 0 0 16px 4px rgba(255, 77, 109, .8), 0 0 0 2px #333; }
.hs-flag { position: absolute; left: 100%; bottom: 50%; width: 0; height: 0; z-index: 2; transition: bottom .25s; }
.hs-flag::before { content: ""; position: absolute; left: -64px; width: 74px; border-top: 3px dashed #ff4d6d; }
.hs-flag em { position: absolute; left: 12px; top: -12px; padding: 3px 8px; background: #ff4d6d; color: #fff; font: 900 .78rem/1 var(--mono); font-style: normal; border-radius: 0 4px 4px 0; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); padding-right: 14px; }
.hs-base { position: relative; width: 180px; height: 60px; margin-top: 4px; }
.hs-pad { position: absolute; left: 50%; bottom: 0; width: 120px; height: 26px; margin-left: -60px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #555, #222); box-shadow: inset 0 3px 0 #888, 0 6px 12px -4px #000; }
.hs-pad::before { content: ""; position: absolute; left: 30px; right: 30px; top: -8px; height: 10px; border-radius: 4px; background: #c8102e; }
.hs-mallet { position: absolute; right: -8px; bottom: 30px; width: 90px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, #c99a5a, #8a5a24); transform-origin: 100% 50%; transform: rotate(-40deg); }
.hs-mallet::before { content: ""; position: absolute; left: -10px; top: -14px; width: 34px; height: 42px; border-radius: 8px; background: linear-gradient(90deg, #6b3a16, #a8662c, #6b3a16); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.hs-mallet.hit { animation: malletHit .3s ease-in; }
@keyframes malletHit { 60% { transform: rotate(8deg); } 100% { transform: rotate(-40deg); } }
.hs-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hs-read { text-align: center; padding: 14px; border-radius: 14px; background: #0a0000; box-shadow: inset 0 0 0 3px #444, 0 0 0 4px #1a1a1a; }
.hs-read small, .hs-target small { display: block; font: 800 .65rem var(--mono); letter-spacing: .2em; color: #ffb3b3; }
.hs-read b { display: block; font: 900 3.2rem/1.1 var(--mono); color: #ff3b3b; text-shadow: 0 0 14px #ff1a1a; }
.hs-rig.won .hs-read b { color: #3ee07a; text-shadow: 0 0 14px #0f8a45; }
.hs-target { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 230, 160, .3); }
.hs-target > div { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.hs-target input { flex: 1; min-width: 0; text-align: center; font: 900 1.4rem var(--mono); background: #000; color: #ffd84a; border: 0; border-radius: 10px; padding: 8px; }
.hs-target button { min-width: 42px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 230, 160, .4); background: rgba(255, 255, 255, .08); color: #ffe9a8; font-weight: 900; cursor: pointer; }
.hs-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hs-target button:disabled { opacity: .45; }
.hs-info { text-align: center; color: #ffe9a8; font-size: .9rem; line-height: 1.5; }
.hs-info b { color: #fff; }
@media (max-width: 600px) { .hs-rig { grid-template-columns: 150px 1fr; gap: 10px; } .hs-tower { height: 420px; } .hs-read b { font-size: 2rem; } .hs-base { width: 140px; } }

/* ---------- Card Climb: a Hi-Lo card table ---------- */
#stage.casino[data-g="cardclimb"] { --felt: #1d1430; --felt2: #0b0714; }
.hl-box { width: 100%; max-width: 780px; }
.hl-mat { position: relative; width: 100%; height: 360px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a6fb8, #174a85 55%, #0d2c55); box-shadow: inset 0 0 0 4px #e6b84a, inset 0 0 0 9px #0b1f3d, inset 0 0 60px rgba(0, 0, 0, .5), 0 18px 32px -14px #000; }
.hl-mat::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1px); background-size: 3px 3px; pointer-events: none; }
.hl-print { position: absolute; left: 0; right: 0; top: 16px; text-align: center; pointer-events: none; }
.hl-print b { display: block; font: 900 1.8rem/1 Georgia, serif; color: rgba(255, 255, 255, .9); letter-spacing: .3em; }
.hl-print em { font: italic 600 .8rem Georgia, serif; color: #ffd84a; }
.hl-deck { position: absolute; left: 36px; top: 96px; width: 96px; height: 134px; }
.hl-deck i { position: absolute; inset: 0; border-radius: 8px; border: 4px solid #fff; background: repeating-linear-gradient(45deg, #9b1c2c 0 5px, #7d1322 5px 10px); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); }
.hl-deck i:nth-child(1) { transform: translate(-6px, 6px); } .hl-deck i:nth-child(2) { transform: translate(-4px, 4px); } .hl-deck i:nth-child(3) { transform: translate(-2px, 2px); }
.hl-cur { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); }
.hl-cur .playcard { width: 120px; height: 168px; font-size: 3rem; border-radius: 10px; }
.hl-box .playcard em { position: absolute; right: 8px; bottom: 6px; font-size: 1rem; font-style: normal; transform: rotate(180deg); }
#stage.casino .hl-cur .playcard.dealt { animation: hlDeal .4s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes hlDeal { from { transform: translate(-260px, 20px) rotateY(90deg); } }
.hl-mat.lost .hl-cur .playcard { box-shadow: 0 0 0 4px #ff4d6d, 0 0 30px rgba(255, 77, 109, .7); }
.hl-mat.won .hl-cur .playcard { box-shadow: 0 0 0 4px #3ee07a, 0 0 30px rgba(62, 224, 122, .7); }
.hl-mult { position: absolute; right: 30px; top: 100px; text-align: center; padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 230, 160, .4); }
.hl-mult small { display: block; font: 800 .62rem var(--mono); letter-spacing: .2em; color: #ffe9a8; }
.hl-mult b { display: block; font: 900 2rem/1.1 var(--mono); color: #ffd84a; }
.hl-mult span { font: 700 .8rem var(--mono); color: #fff; }
.hl-trail { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 0; }
.hl-step { position: relative; margin-left: -18px; }
.hl-step .playcard { width: 54px; height: 76px; font-size: 1.3rem; border-radius: 6px; }
.hl-step .playcard em { display: none; }
.hl-step span { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: .75rem; font-weight: 900; text-shadow: 0 1px 2px #000; }
.hl-step.up span, .hl-step.down span { color: #3ee07a; } .hl-step.bad span { color: #ff4d6d; }
.hl-step.bad .playcard { box-shadow: 0 0 0 3px #ff4d6d; }
.hl-row { gap: 10px; }
#stage.casino .hl-call { min-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 14px; }
#stage.casino .hl-call b { font-size: 1.05rem; }
#stage.casino .hl-call small { font: 700 .72rem var(--mono); opacity: .9; }
#stage.casino .hl-call.hi { background: linear-gradient(180deg, #2fb865, #17803f) !important; border-color: #9ff0bd !important; color: #fff !important; }
#stage.casino .hl-call.lo { background: linear-gradient(180deg, #e2384f, #a3122a) !important; border-color: #ffb0b8 !important; color: #fff !important; }
#stage.casino .hl-call:disabled { opacity: .45; }
@media (max-width: 600px) { .hl-mat { height: 330px; } .hl-deck { left: 14px; transform: scale(.75); transform-origin: 0 0; } .hl-mult { right: 10px; top: 92px; padding: 6px 10px; } .hl-mult b { font-size: 1.4rem; } .hl-cur .playcard { width: 100px; height: 140px; } #stage.casino .hl-call { min-width: 120px; } }
html.shot .sc-spot canvas { transition: none; }

/* ---------- Prize Wheel: carnival money wheel ---------- */
.pw-box { width: 100%; max-width: 520px; }
#stage.casino[data-g="prizewheel"] .pw-box .cv { width: 100%; max-width: 440px; height: auto; border: 0; background: transparent; box-shadow: none; }
/* ---------- Peg Drop: wooden game-show board ---------- */
#stage.casino[data-g="pegdrop"] { --felt: #1d1430; --felt2: #0a0614; --trim: #ffd84a; }
.pd-box { width: 100%; max-width: 520px; }
#stage.casino[data-g="pegdrop"] .pd-box .cv { width: 100%; max-width: 460px; height: auto; border: 4px solid #2e1808; border-radius: 10px; box-shadow: 0 0 0 3px #c9a24a, 0 20px 40px -14px #000; }

/* ---------- Coin Flip: a real coin toss ---------- */
#stage.casino[data-g="coinflip"] { --felt: #2a1a10; --felt2: #120a05; }
.cf-box { width: 100%; max-width: 560px; }
.cf-table { position: relative; width: 100%; height: 330px; border-radius: 18px; perspective: 900px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 46px; overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%), repeating-linear-gradient(90deg, #7a4416 0 2px, #8f5422 2px 60px, #a0602a 60px 62px, #8a4e1e 62px 120px); box-shadow: inset 0 0 60px rgba(0, 0, 0, .55), 0 18px 30px -14px #000; }
.cf-shadow { position: absolute; bottom: 30px; left: 50%; width: 150px; height: 26px; margin-left: -75px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, .65), transparent 70%); opacity: .55; }
.cf-coin { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; }
.cf-face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff7cf, #f2c94c 35%, #c99410 65%, #8a6100); box-shadow: inset 0 0 0 6px #b8860b, inset 0 0 0 9px #f2d27a, inset 0 0 0 11px #8a6100, inset 0 -8px 16px rgba(0, 0, 0, .35); }
.cf-face.t { transform: rotateX(180deg); }
.cf-face svg { width: 100%; height: 100%; }
.cf-face .rim { fill: #7a5200; font: 800 7.4px Georgia, serif; letter-spacing: .6px; }
.cf-face .art { fill: #d9a520; stroke: #7a5200; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.cf-face .gem { fill: #c8102e; }
.cf-edge { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-3px); background: #8a6100; }
.cf-table.won .cf-coin { filter: drop-shadow(0 0 22px rgba(255, 216, 74, .9)); }
.cf-row { gap: 12px; }
#stage.casino .cf-call { min-width: 140px; font-size: 1.05rem; }
.cf-call b { margin-right: 4px; }
.cf-hist { display: flex; gap: 5px; justify-content: center; }
.cf-hist i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; color: #6b4a00; background: radial-gradient(circle at 35% 30%, #fff3b0, #e6b84a 60%, #9a6a00); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.cf-hist i:last-child { box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, .5); }

/* ---------- Dice Roll: percentile dice on felt ---------- */
#stage.casino[data-g="diceroll"] { --felt: #2a0d14; --felt2: #120408; }
.dr-box { width: 100%; max-width: 620px; }
.dr-felt { position: relative; width: 100%; height: 250px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: space-around; padding: 0 30px;
  background: radial-gradient(ellipse at 50% 40%, #1f7a4c, #0f4f2e); box-shadow: inset 0 0 0 4px #e6b84a, inset 0 0 0 9px #3b1f0b, inset 0 0 50px rgba(0, 0, 0, .5), 0 16px 30px -12px #000; }
.dr-print { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font: 900 1rem/1 Georgia, serif; letter-spacing: .25em; color: rgba(255, 255, 255, .7); }
.dr-dice { display: flex; gap: 20px; }
.dr-die { position: relative; width: 104px; height: 104px; }
.dr-die svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); }
.dr-die .b { fill: #b0101e; } .dr-die .t { fill: #e2283a; } .dr-die .e { fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; }
.dr-die.ones .b { fill: #e6e0d0; } .dr-die.ones .t { fill: #fffdf5; }
.dr-die b { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font: 900 1.7rem/1 Georgia, serif; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.dr-die.ones b { color: #8a1424; text-shadow: none; }
.dr-die.roll { animation: drRoll 1s cubic-bezier(.2, .8, .3, 1); }
.dr-die.ones.roll { animation-delay: .05s; }
@keyframes drRoll { 0% { transform: translate(-220px, -40px) rotate(-400deg); } 60% { transform: translate(10px, 0) rotate(20deg); } 80% { transform: translate(-4px, 0) rotate(-6deg); } }
.dr-read { text-align: center; padding: 10px 18px; border-radius: 14px; background: #0a0000; box-shadow: inset 0 0 0 3px #444; }
.dr-read small { display: block; font: 800 .6rem var(--mono); letter-spacing: .2em; color: #ffb3b3; }
.dr-read b { display: block; font: 900 2.4rem/1.1 var(--mono); color: #ff3b3b; text-shadow: 0 0 12px #ff1a1a; }
.dr-felt.won .dr-read b { color: #3ee07a; text-shadow: 0 0 12px #0f8a45; }
.dr-rail { margin-top: 6px; padding: 14px 14px 4px; border-radius: 14px; background: linear-gradient(180deg, #3b1f0b, #2a1406); box-shadow: inset 0 2px 0 rgba(255, 220, 160, .25), 0 8px 16px -8px #000; }
.dr-rail .dicebar { height: 18px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.dr-rail .dicemark { top: 8px; width: 6px; height: 32px; background: #fff; box-shadow: 0 0 8px #fff; }
.dr-rail input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 30px; margin-top: 2px; }
.dr-rail input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 8px; background: radial-gradient(circle at 35% 30%, #fff6c8, #e6b84a 45%, #7a5a00); box-shadow: 0 3px 6px rgba(0, 0, 0, .6), inset 0 0 0 2px #5a3a00; cursor: grab; }
.dr-ticks { display: flex; justify-content: space-between; font: 700 .7rem var(--mono); color: #ffe9a8; padding: 0 4px; }
@media (max-width: 560px) { .dr-felt { flex-direction: column; justify-content: center; gap: 10px; height: 300px; padding-top: 30px; } .dr-die { width: 84px; height: 84px; } .dr-die b { top: 24px; font-size: 1.4rem; } .dr-read b { font-size: 1.8rem; } }

/* ---------- Gem Mines: a real mine shaft ---------- */
#stage.casino[data-g="mines"] { --felt: #1e1a24; --felt2: #0b090e; }
.mn-shaft { position: relative; width: min(460px, 100%); padding: 34px 34px 22px; border-radius: 12px; background: radial-gradient(ellipse at 50% 40%, #3a3328, #1a1510 75%); box-shadow: inset 0 0 50px #000, 0 16px 30px -12px #000; }
.mn-beam { position: absolute; background: linear-gradient(90deg, #5a3a1a, #8a5a2a 40%, #6b4420); box-shadow: inset 0 0 0 1px #2e1808, 0 4px 8px rgba(0, 0, 0, .6); }
.mn-beam.top { left: 0; right: 0; top: 0; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #8a5a2a, #5a3a1a); }
.mn-beam.l { left: 0; top: 0; bottom: 0; width: 22px; } .mn-beam.r { right: 0; top: 0; bottom: 0; width: 22px; }
.mn-lamp { position: absolute; top: 18px; width: 16px; height: 24px; border-radius: 6px 6px 8px 8px; background: radial-gradient(circle at 50% 60%, #fff3b0, #ffb000 60%, #8a5a00); box-shadow: 0 0 18px 6px rgba(255, 190, 60, .55); animation: lamp 2.6s ease-in-out infinite; z-index: 2; }
.mn-lamp.l { left: 30px; } .mn-lamp.r { right: 30px; animation-delay: 1.1s; }
@keyframes lamp { 50% { box-shadow: 0 0 12px 3px rgba(255, 190, 60, .4); } }
#stage.casino[data-g="mines"] .minegrid { position: relative; z-index: 1; }
#stage.casino[data-g="mines"] .minegrid button { border-radius: 40% 46% 38% 50% / 46% 40% 52% 42%; border: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 35%), radial-gradient(circle at 70% 75%, rgba(0, 0, 0, .35), transparent 45%), linear-gradient(150deg, #8d8270, #5e5446 55%, #3e372d);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .35), inset 0 3px 0 rgba(255, 255, 255, .15), 0 5px 8px -3px #000; cursor: pointer; }
#stage.casino[data-g="mines"] .minegrid button:nth-child(3n) { border-radius: 50% 38% 48% 42% / 40% 52% 40% 50%; }
#stage.casino[data-g="mines"] .minegrid button:nth-child(4n+1) { border-radius: 44% 50% 40% 46% / 52% 42% 50% 40%; }
#stage.casino[data-g="mines"] .minegrid button:not(:disabled):hover { transform: translateY(-3px) rotate(-2deg); filter: brightness(1.15); }
#stage.casino[data-g="mines"] .minegrid button.gem { background: radial-gradient(circle at 50% 55%, rgba(120, 255, 220, .5), transparent 60%), linear-gradient(150deg, #4a4238, #2a241c); box-shadow: 0 0 22px rgba(80, 255, 210, .6), inset 0 0 0 2px rgba(120, 255, 220, .4); }
#stage.casino[data-g="mines"] .minegrid button.boom { background: radial-gradient(circle, #ffd0a0, #ff5a2a 55%, #7a1a00); }
#stage.casino[data-g="mines"] .minegrid button.dim { opacity: .5; }

/* ---------- Sky Tower: a real skyscraper ---------- */
#stage.casino[data-g="skytower"] { --felt: #ff9a6a; --felt2: #3a2a7e; }
.sk-city { display: flex; flex-direction: column; align-items: center; width: min(460px, 100%); margin-top: 46px; }
.sk-roof { position: relative; width: 70%; padding: 8px 0 6px; text-align: center; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #4a5068, #2e3348); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.sk-roof b { font: 900 .85rem/1 Georgia, serif; letter-spacing: .3em; color: #ffd84a; text-shadow: 0 0 8px rgba(255, 200, 60, .7); }
.sk-roof .ant { position: absolute; left: 50%; bottom: 100%; width: 4px; height: 46px; margin-left: -2px; background: linear-gradient(90deg, #888, #ddd, #888); }
.sk-roof .ant::after { content: ""; position: absolute; left: -4px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 12px 4px rgba(255, 60, 60, .7); animation: beacon 1.2s steps(1) infinite; }
@keyframes beacon { 50% { opacity: .2; } }
#stage.casino[data-g="skytower"] .sk-city .tower { width: 100%; border-radius: 0; border: 0; padding: 10px 14px; gap: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 40px), linear-gradient(180deg, #5a6280, #3a4060); box-shadow: inset 6px 0 0 #2e3348, inset -6px 0 0 #2e3348, 0 20px 40px -14px #000; }
#stage.casino[data-g="skytower"] .floor button { height: 44px; border-radius: 3px; border: 3px solid #2a2e40;
  background: linear-gradient(135deg, #8fc4ff 0%, #4a7ac8 45%, #2a4a8a 46%, #5a8ad8 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-size: 1.3rem; }
#stage.casino[data-g="skytower"] .floor.cur button { border-color: #ffd84a; box-shadow: 0 0 12px rgba(255, 216, 74, .6); }
#stage.casino[data-g="skytower"] .floor button.safe { background: linear-gradient(135deg, #fff6c8, #ffd84a); }
#stage.casino[data-g="skytower"] .floor button.trap { background: radial-gradient(circle, #ffd0a0, #ff5a2a 60%, #3a0a00); }
#stage.casino[data-g="skytower"] .fm { color: #fff; font-weight: 800; }
#stage.casino[data-g="skytower"] .floor.cur .fm { color: #ffd84a; }
.sk-lobby { width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 8px 0 0; background: linear-gradient(180deg, #2e3348, #1a1d2a); border-top: 4px solid #c9a24a; }
.sk-lobby span { font: 900 .7rem/1 Georgia, serif; letter-spacing: .3em; color: #ffd84a; padding-bottom: 14px; }
.sk-lobby .door { width: 30px; height: 40px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, #ffe9a8 49%, #2a2e40 49% 51%, #ffe9a8 51%); box-shadow: 0 0 14px rgba(255, 220, 120, .5); }
/* ---------- Poker: a real casino poker table ---------- */
#stage.casino .pk-felt { border: 20px solid #151515; background: radial-gradient(ellipse at 50% 40%, #23955f, #156b42 55%, #0c4529 100%);
  box-shadow: 0 0 0 4px #2a2a2a, 0 0 0 9px #7a4416, 0 0 0 12px #3b1f0b, inset 0 0 0 2px rgba(255, 255, 255, .06), inset 0 0 60px rgba(0, 0, 0, .55), 0 30px 60px -20px #000; }
#stage.casino .pk-felt::before { content: ""; position: absolute; inset: 14% 12%; border-radius: 50%; border: 2px solid rgba(255, 230, 160, .35); pointer-events: none; }
#stage.casino .pk-felt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .16; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1px); background-size: 3px 3px; }
#stage.casino .pk-card { background: linear-gradient(160deg, #fff, #f4efe4); border: 1px solid #d8d0bf; box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .6); }
#stage.casino .pk-card.back { background: repeating-linear-gradient(45deg, #9b1c2c 0 5px, #7d1322 5px 10px); border: 3px solid #fff; }
#stage.casino .pk-card.slot { background: rgba(0, 0, 0, .12); border: 2px solid rgba(255, 230, 160, .3); box-shadow: none; }
#stage.casino .pk-seat .plate { background: linear-gradient(180deg, #2a2a2a, #111); border: 1px solid #c9a24a; box-shadow: 0 8px 16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
#stage.casino .pk-seat .nm { color: #f3e6c4; }
#stage.casino .pk-seat.turn .plate { border-color: #ffd84a; box-shadow: 0 0 0 2px #ffd84a, 0 0 18px rgba(255, 216, 74, .5); }
#stage.casino .pk-seat .bet { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .6); }
#stage.casino .pk-seat .bet::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #c0392b 0 40%, #fff 41% 48%, #c0392b 49%); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
#stage.casino .pk-seat .dealer { width: 24px; height: 24px; background: radial-gradient(circle, #fff 0 55%, #ddd 56% 62%, #fff 63%); box-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 1px #999; font-size: .66rem; }
#stage.casino .pk-pot { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 230, 160, .35); }
#stage.casino .pk-pot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #d69e2e 0 40%, #fff 41% 48%, #d69e2e 49%); box-shadow: 0 2px 0 #7a5a00, 0 4px 0 #d69e2e, 0 5px 0 #7a5a00; }
#stage.casino .pk-raise { background: linear-gradient(180deg, #2a2a2a, #151515); border-color: #6b5020; }
/* slots: real cabinet details — top-prize sign, neon side strips, button deck */
.sl-jack { margin: -6px -8px 10px; padding: 6px 10px; text-align: center; border-radius: 12px; background: #050505; box-shadow: inset 0 0 0 2px #e6b84a, 0 0 18px rgba(255, 60, 80, .35); }
.sl-jack small { display: block; font: 800 .6rem var(--mono); letter-spacing: .18em; color: #ffb3b3; }
.sl-jack b { display: block; font: 900 1.7rem/1.1 var(--mono); color: #ff3b3b; text-shadow: 0 0 10px #ff1a1a; animation: jackGlow 1.6s ease-in-out infinite; }
@keyframes jackGlow { 50% { color: #ffe14a; text-shadow: 0 0 14px #ffb000; } }
.sl-machine::before, .sl-machine::after { content: ""; position: absolute; top: 40px; bottom: 120px; width: 6px; border-radius: 3px; background: linear-gradient(180deg, #ff2a6a, #ff9a2a, #ff2a6a); box-shadow: 0 0 14px #ff2a6a, 0 0 30px rgba(255, 60, 120, .6); animation: neon 2s linear infinite; }
.sl-machine::before { left: -10px; } .sl-machine::after { right: -10px; }
@keyframes neon { 50% { filter: hue-rotate(60deg) brightness(1.2); } }
.sl-deck { flex-direction: column; align-items: stretch; gap: 10px; }
.sl-slots { display: flex; justify-content: space-between; gap: 10px; }
.sl-slots i { flex: 1; font: 900 .55rem var(--mono); font-style: normal; letter-spacing: .15em; text-align: center; color: #2a2a2a; padding: 14px 4px 4px; border-radius: 6px; background: linear-gradient(180deg, #111 0 8px, #b5b5b5 8px); box-shadow: inset 0 0 0 1px #666; }
.sl-slots .bill { background: linear-gradient(180deg, #111 0 8px, #3ee07a 8px 10px, #b5b5b5 10px); }
.sl-btns { display: flex; justify-content: center; align-items: center; gap: 10px; }
.sl-sq { width: 62px; height: 52px; border: 0; border-radius: 8px; cursor: pointer; font: 900 .7rem/1.1 Arial Black, Arial, sans-serif; color: #3a2a00;
  background: linear-gradient(180deg, #fff6c8, #f2c500 55%, #b38f00); box-shadow: 0 5px 0 #6b5400, 0 7px 10px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; transition: transform .06s, box-shadow .06s; }
.sl-sq.max { background: linear-gradient(180deg, #c8ffd9, #3ee07a 55%, #138a3e); color: #053; box-shadow: 0 5px 0 #0b5a28, 0 7px 10px rgba(0, 0, 0, .5), inset 0 1px 0 #fff; }
.sl-sq:active { transform: translateY(4px); box-shadow: 0 1px 0 #6b5400; }
.sl-sq:disabled { filter: grayscale(.6) brightness(.6); cursor: default; }
@media (max-width: 560px) { .sl-sq { width: 50px; height: 46px; font-size: .6rem; } .sl-spin { width: 76px; height: 76px; } }
/* video poker: matched to a real casino machine (gold cabinet, 3-column paytable, court-card art) */
.vpm { background: linear-gradient(90deg, #6b5420, #c9a75a 10%, #d8bb72 50%, #c9a75a 90%, #6b5420); box-shadow: inset 0 0 0 3px #4a3a10, inset 0 0 0 5px #e8d29a, 0 24px 40px -16px #000; }
.vpm-top { background: linear-gradient(180deg, #c8102e, #5a000c); box-shadow: inset 0 0 0 3px #33ff66, inset 0 0 0 6px #111, inset 0 0 0 8px #ff4af0, 0 0 18px rgba(255, 60, 120, .4); }
.vpm-top b { color: #3aa0ff; -webkit-text-stroke: 1px #ffe14a; text-shadow: 0 3px 0 #0a1a5a, 0 0 16px rgba(80, 160, 255, .8); font-size: 1.9rem; }
.vpm-pay { grid-template-columns: 1fr; gap: 0; padding: 0; border: 2px solid #ffe14a; }
.vpm-pay > div { display: grid; grid-template-columns: 1fr 70px 110px; padding: 0; }
.vpm-pay > div > span { padding: 0 8px; }
.vpm-pay > div > span:nth-child(2) { text-align: right; border-left: 2px solid #ffe14a; }
.vpm-pay > div > span.win { text-align: right; background: #c8001c; color: #fff; border-left: 2px solid #ffe14a; }
.vpm-pay .vpm-ph { color: #fff; border-bottom: 2px solid #ffe14a; font-size: .66rem; letter-spacing: .1em; }
.vpm-pay div.hit { background: transparent; animation: none; }
.vpm-pay div.hit > span { background: #ffe14a; color: #0a1f8a; animation: payBlink .35s steps(1) 8; }
.vpm .playcard.court .art { font-size: 3.6rem; line-height: 1; font-style: normal; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.vpm .playcard.court { background: linear-gradient(160deg, #fff, #f4efe4); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 7px #d8b04a, 0 4px 10px rgba(0, 0, 0, .4); }
.vpm .playcard.court.red .art { color: #c8102e; }
.vpm .playcard.court:not(.red) .art { color: #1a3a9a; }
.vpm-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: linear-gradient(180deg, #2a2a2a, #111); }
.vpm-mid .spk { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #333 1.5px, transparent 2px) 0 0 / 6px 6px, #0a0a0a; box-shadow: inset 0 0 0 2px #444; }
.vpm-bill { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vpm-bill b { font: 900 .6rem var(--mono); letter-spacing: .2em; color: #ffe14a; }
.vpm-bill i { width: 120px; height: 10px; border-radius: 3px; background: #000; box-shadow: inset 0 0 0 2px #ff4af0, 0 0 8px rgba(255, 74, 240, .5); }
.vpm-panel { background: linear-gradient(180deg, #d8bb72, #a8863a); box-shadow: inset 0 2px 0 #f2deb0, inset 0 -3px 6px rgba(0, 0, 0, .3); }
.vpm-hold { border-radius: 4px; background: linear-gradient(180deg, #ffffff, #e6e6e6 55%, #bdbdbd); color: #222; box-shadow: 0 5px 0 #666, 0 7px 10px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; }
.vpm-hold.on { background: linear-gradient(180deg, #fff6c8, #ffe14a); box-shadow: 0 2px 0 #8a6a00, 0 0 16px rgba(255, 225, 74, .9); }
.vpm-ticket { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 0; width: 260px; padding: 8px; border-radius: 6px; background: linear-gradient(180deg, #2a2a2a, #0a0a0a); box-shadow: inset 0 0 0 2px #555; }
.vpm-ticket b { font: 900 .72rem Arial Black, Arial, sans-serif; color: #fff; letter-spacing: .06em; }
.vpm-ticket i { width: 70px; height: 6px; background: #000; border-radius: 2px; box-shadow: inset 0 0 0 1px #444; }
@media (max-width: 560px) { .vpm-pay > div { grid-template-columns: 1fr 44px 74px; } .vpm .playcard.court .art { font-size: 2.2rem; } }
/* scratch ticket: real-ticket details */
.sc-top { display: flex; align-items: stretch; gap: 8px; padding: 8px 8px 0; }
.sc-logo { display: grid; place-items: center; width: 54px; padding: 4px; border-radius: 8px; background: #fff; color: #e6005c; font: 900 .58rem/1.1 Arial Black, Arial, sans-serif; font-style: normal; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.sc-tag { flex: 1; display: grid; place-items: center; border-radius: 8px; background: #ffe14a; color: #3a1a00; font: 900 .8rem/1.1 Arial Black, Arial, sans-serif; box-shadow: inset 0 0 0 2px #fff; }
.sc-tag b { font-size: 1.3rem; display: block; }
.sc-cost { display: grid; place-items: center; min-width: 58px; padding: 4px 6px; border-radius: 8px; background: #fff; color: #222; font: 900 1.05rem/1 Arial Black, Arial, sans-serif; font-style: normal; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.sc-head b { -webkit-text-stroke: 2px #1a3a9a; text-shadow: 0 4px 0 #1a3a9a, 0 7px 0 #0a1a5a, 0 10px 14px rgba(0, 0, 0, .3); }
.sc-how { margin: 2px 14px 6px; padding: 6px 10px; border-radius: 8px; background: #ffe14a; color: #3a1a00; font: 800 .68rem/1.3 Arial, sans-serif; text-align: center; }.sc-head b { -webkit-text-stroke: 1px #1a3a9a; color: #fff; }

/* ---------- phone fixes (390px wide screens) ---------- */
.vpm, .vpm-box, .vpm-screen, .vpm-bezel, .vpm-panel, .hs-rig, .hs-side, .hs-target, .cr-wrap, .cr-main, .kn-floor, .ck-stage { box-sizing: border-box; min-width: 0; }
.vpm-box, .hs-box { max-width: 100%; }
@media (max-width: 560px) {
  .vpm { padding: 8px; border-radius: 16px; }
  .vpm-top b { font-size: 1.25rem; }
  .vpm-bezel { padding: 5px; }
  .vpm-screen { padding: 6px; }
  .vpm-pay > div { grid-template-columns: minmax(0, 1fr) 36px 64px; font-size: .62rem; }
  .vpm-pay > div > span { padding: 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .vpm .playcard { width: 54px; height: 76px; font-size: 1.35rem; border-radius: 6px; }
  .vpm .playcard small { font-size: .7rem; }
  .vpm-held { font-size: .7rem; height: 14px; }
  .vpm-holds { gap: 4px; }
  .vpm-hold, .vpm-deal { height: 40px; }
  .vpm-ticket { width: auto; }
  .vpm-mid .spk { width: 30px; height: 30px; }
  .vpm-bill i { width: 80px; }
  .hs-rig { grid-template-columns: 128px minmax(0, 1fr); gap: 8px; }
  .hs-tower { height: 400px; }
  .hs-pole { width: 46px; }
  .hs-mark { left: -40px; } .hs-mark b { font-size: .66rem; }
  .hs-sign { left: calc(50% + 26px); font-size: .55rem; }
  .hs-base { width: 120px; } .hs-pad { width: 90px; margin-left: -45px; } .hs-mallet { width: 66px; }
  .hs-read { padding: 8px; } .hs-read b { font-size: 1.7rem; }
  .hs-target { padding: 8px; } .hs-target input { font-size: 1.05rem; padding: 6px; } .hs-target button { min-width: 34px; height: 34px; }
  .hs-quick { grid-template-columns: repeat(2, 1fr); }
  .hs-info { font-size: .8rem; }
  #stage.casino .pk-seat { width: 88px; }
  #stage.casino .pk-seat .plate { padding: 3px 5px; gap: 0 4px; }
  #stage.casino .pk-seat .plate .avatar { width: 20px; height: 20px; font-size: .7rem; }
  #stage.casino .pk-seat .nm { font-size: .68rem; }
  #stage.casino .pk-seat .stk { font-size: .64rem; }
  #stage.casino .pk-card { width: 30px; height: 43px; font-size: .8rem; }
  #stage.casino .pk-seat .cards { height: 43px; }
  #stage.casino .pk-seat.me .pk-card { width: 40px; height: 57px; font-size: 1rem; }
  #stage.casino .pk-seat .dealer { top: 44px; }
  #stage.casino .pk-felt { border-width: 12px; }
}@media (max-width: 560px) { #stage.casino .pk-table { width: calc(100% - 80px); margin-left: auto; margin-right: auto; } }
.kn-floor { align-items: start; }

/* phone fit for BOTH poker tables (vs computer and online) */
@media (max-width: 560px) {
  #stage .pk-table { width: calc(100% - 80px); margin-left: auto; margin-right: auto; }
  #stage .pk-seat { width: 88px; }
  #stage .pk-seat .plate { padding: 3px 5px; gap: 0 4px; }
  #stage .pk-seat .plate .avatar { width: 20px; height: 20px; font-size: .7rem; }
  #stage .pk-seat .nm { font-size: .68rem; }
  #stage .pk-seat .stk { font-size: .64rem; }
  #stage .pk-card { width: 30px; height: 43px; font-size: .8rem; }
  #stage .pk-seat .cards { height: 43px; }
  #stage .pk-seat.me .pk-card { width: 40px; height: 57px; font-size: 1rem; }
  #stage .pk-seat.me .cards { height: 57px; }
  #stage .pk-seat .dealer { top: 44px; }
  #stage .pk-felt { border-width: 10px; }
}