/* NigiCasino - Las Vegas look: velvet, gold, neon and light bulbs */
@font-face { font-family: Rubik; font-weight: 400; src: url(../fonts/rubik-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: Rubik; font-weight: 400; src: url(../fonts/rubik-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-024F, U+2000-206F, U+20AA, U+20AC; font-display: swap; }
@font-face { font-family: Rubik; font-weight: 700; src: url(../fonts/rubik-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: Rubik; font-weight: 700; src: url(../fonts/rubik-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-024F, U+2000-206F, U+20AA, U+20AC; font-display: swap; }
@font-face { font-family: Rubik; font-weight: 900; src: url(../fonts/rubik-hebrew-900-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: Rubik; font-weight: 900; src: url(../fonts/rubik-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-024F, U+2000-206F, U+20AA, U+20AC; font-display: swap; }
@font-face { font-family: Cinzel; font-weight: 900; src: url(../fonts/cinzel-decorative-latin-900-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Orbitron; font-weight: 700; src: url(../fonts/orbitron-latin-700-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Bungee; font-weight: 400; src: url(../fonts/bungee-latin-400-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --gold1: #fff3b0; --gold2: #f5c542; --gold3: #b8860b; --gold4: #7a5200;
  --velvet1: #3b0a2a; --velvet2: #1a0414; --ink: #fff7ea; --muted: #d8c3a5; --line: rgba(255, 215, 128, .22);
  --neon-pink: #ff2bd6; --neon-cyan: #22e6ff; --neon-green: #3dff7a; --red: #ff3b3b;
  --gold-grad: linear-gradient(180deg, #fff6c8 0%, #f8d469 28%, #d79b1d 55%, #fbe38a 78%, #a8700c 100%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Rubik, 'Segoe UI', Arial, sans-serif; color: var(--ink); overflow-x: hidden;
  background: radial-gradient(1200px 700px at 50% -10%, #6b1146 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #2a0a4a 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 6px), linear-gradient(180deg, var(--velvet1), var(--velvet2));
  background-attachment: fixed; min-height: 100vh;
}
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .col { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: linear-gradient(180deg, rgba(20, 2, 14, .96), rgba(20, 2, 14, .82)); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); flex-wrap: wrap; }
.logo { font-family: Cinzel, serif; font-weight: 900; font-size: 26px; letter-spacing: 1px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 190, 60, .45)); cursor: pointer; white-space: nowrap; direction: ltr; }
.logo small { font-family: Bungee; font-size: 12px; letter-spacing: 3px; display: block; margin-top: -6px; color: var(--neon-pink); -webkit-text-fill-color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.pill b { font-family: Orbitron; color: var(--gold1); direction: ltr; }
.btn { border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 700; background: linear-gradient(180deg, #4b1a3b, #2b0b22); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 0 rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.2); } .btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold-grad); color: #3a2300; border-color: #ffe9a3; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn.green { background: linear-gradient(180deg, #4ade80, #15803d); color: #03200d; border-color: #86efac; }
.btn.red { background: linear-gradient(180deg, #f87171, #b91c1c); color: #fff; border-color: #fca5a5; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.lang { min-width: 44px; }

/* ---------------------------------------------------------------- the lobby */
.lobby { max-width: 1280px; margin: 0 auto; padding: 18px; }
.marquee { position: relative; border-radius: 22px; padding: 22px 26px; margin-bottom: 18px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255, 60, 170, .35), transparent 60%), linear-gradient(180deg, #2b0526, #12020f); border: 2px solid #e8b64c; box-shadow: 0 0 0 4px #5b3a00, 0 0 40px rgba(255, 170, 40, .35), inset 0 0 40px rgba(0,0,0,.6); }
.bulbs { position: absolute; inset: 6px; border-radius: 17px; pointer-events: none;
  background: radial-gradient(circle, #fff7c2 0 2.6px, #ffb300 3px, transparent 4.5px) 0 0 / 22px 22px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 8px; animation: chase 1s steps(2) infinite; filter: drop-shadow(0 0 4px #ffcc33); }
@keyframes chase { 50% { background-position: 11px 0; } }
.marquee h1 { margin: 0; font-family: Cinzel, serif; font-size: clamp(30px, 6vw, 64px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a3500) drop-shadow(0 0 18px rgba(255, 200, 60, .55)); direction: ltr; }
.marquee .sub { font-family: Bungee; letter-spacing: 4px; color: var(--neon-cyan); text-shadow: 0 0 6px var(--neon-cyan), 0 0 18px var(--neon-cyan); font-size: clamp(11px, 1.8vw, 15px); }
.jp { margin-top: 10px; display: inline-flex; flex-direction: column; align-items: center; padding: 8px 26px; border-radius: 14px; background: #050505; border: 2px solid #ff3355; box-shadow: 0 0 18px rgba(255, 40, 80, .6), inset 0 0 18px rgba(255, 0, 60, .35); }
.jp span { font-family: Bungee; font-size: 12px; letter-spacing: 3px; color: #ffd1dc; }
.jp b { font-family: Orbitron; font-size: clamp(22px, 4vw, 38px); color: #ff3b5c; text-shadow: 0 0 6px #ff1744, 0 0 16px #ff1744; direction: ltr; letter-spacing: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--gold-grad); color: #3a2300; border-color: #ffe9a3; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; border: 2px solid rgba(255, 215, 120, .5); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .18s, box-shadow .18s; isolation: isolate; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 26px var(--tc, #f5c542); outline: none; }
.tile .bg { position: absolute; inset: 0; z-index: -2; }
.tile .rays { position: absolute; inset: -40%; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.07) 0 8deg, transparent 8deg 20deg); animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.tile .em { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); font-size: 82px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)) drop-shadow(0 0 18px var(--tc, gold)); transition: transform .25s; line-height: 1; }
.tile:hover .em { transform: translateX(-50%) scale(1.1) rotate(-4deg); }
.tile .nm { position: absolute; left: 8px; right: 8px; bottom: 44px; text-align: center; font-weight: 900; font-size: 21px; line-height: 1.1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.8)); }
.tile .en { position: absolute; left: 8px; right: 8px; bottom: 26px; text-align: center; font-family: Bungee; font-size: 11px; letter-spacing: 1.5px; color: #fff; opacity: .85; text-shadow: 0 0 6px var(--tc); direction: ltr; }
.tile .tags { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; gap: 4px; justify-content: center; font-size: 10.5px; }
.tile .tags span { background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(255,255,255,.15); }
.tile .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%); transform: translateX(-120%); transition: transform .7s; pointer-events: none; }
.tile:hover .shine { transform: translateX(120%); }
.tile .ribbon { position: absolute; top: 12px; inset-inline-end: -34px; transform: rotate(45deg); background: #e11d48; color: #fff; font-family: Bungee; font-size: 10px; padding: 3px 38px; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
[dir=rtl] .tile .ribbon { transform: rotate(-45deg); }
.section-t { font-family: Bungee; letter-spacing: 2px; font-size: 15px; color: var(--gold1); margin: 22px 0 10px; text-shadow: 0 0 10px rgba(255, 200, 60, .5); }
.note { font-size: 12px; color: var(--muted); text-align: center; margin: 26px 0 10px; }

/* ---------------------------------------------------------------- the cabinet of a machine */
.cab-wrap { max-width: 1100px; margin: 0 auto; padding: 12px 12px 30px; }
.cab { position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, #fff4c4, #d6a136 18%, #7a5108 40%, #e7bc55 60%, #6b4404 85%, #f2d27c); box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 50px var(--glow, rgba(255,180,40,.25)); }
.cab-in { border-radius: 18px; background: linear-gradient(180deg, var(--ta), var(--tb)); padding: 10px; box-shadow: inset 0 0 40px rgba(0,0,0,.8); }
.topper { position: relative; text-align: center; padding: 10px 10px 12px; border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: radial-gradient(circle at 50% 120%, var(--tacc), transparent 70%), linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.6)); border: 1px solid rgba(255,255,255,.12); }
.topper .bulbs { inset: 3px; padding: 6px; background-size: 18px 18px; }
.topper h2 { margin: 0; font-weight: 900; font-size: clamp(24px, 4.6vw, 44px); line-height: 1.05; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0,0,0,.7)) drop-shadow(0 0 14px var(--tacc)); }
.topper .en { font-family: Bungee; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: 3px; color: #fff; text-shadow: 0 0 8px var(--tacc); direction: ltr; }
.topper .em { position: absolute; top: 50%; transform: translateY(-50%); font-size: clamp(30px, 5vw, 56px); filter: drop-shadow(0 0 12px var(--tacc)); }
.topper .em.l { left: 18px; } .topper .em.r { right: 18px; }
.screen { position: relative; border-radius: 12px; overflow: hidden; background: #000; border: 3px solid #1b1205; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 0 0 2px #c9952b; }
.screen canvas { display: block; width: 100%; touch-action: manipulation; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.overlay > * { pointer-events: auto; }
.banner { padding: 6px 18px; text-align: center; font-weight: 900; font-size: clamp(14px, 2.4vw, 20px); color: #fff; background: rgba(0,0,0,.55); border-top: 1px solid rgba(255,255,255,.1); min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.banner .w { color: var(--gold1); font-family: Orbitron; direction: ltr; text-shadow: 0 0 10px #ffb300; }
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.meter { background: #050505; border-radius: 10px; border: 1px solid #3a2a0a; box-shadow: inset 0 0 12px rgba(0,0,0,.9); padding: 5px 8px; text-align: center; }
.meter span { display: block; font-family: Bungee; font-size: 10px; letter-spacing: 2px; color: #fbbf24; }
.meter b { font-family: Orbitron; font-size: clamp(15px, 2.6vw, 24px); color: #ff3b3b; text-shadow: 0 0 6px #ff1a1a; direction: ltr; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter.g b { color: #3dff7a; text-shadow: 0 0 6px #00ff55; }
.meter.y b { color: #ffd84d; text-shadow: 0 0 6px #ffb300; }
.meter small { display: block; color: #a3a3a3; font-size: 11px; direction: ltr; }
.deck { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #2a2a2a, #0d0d0d); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px rgba(0,0,0,.5); }
.cbtn { min-width: 74px; height: 52px; padding: 0 12px; border-radius: 12px; border: 0; font-weight: 900; font-size: 13px; line-height: 1.05; color: #1d1300; text-transform: uppercase; letter-spacing: .5px;
  background: linear-gradient(180deg, #fff1a8, #f2b81f 50%, #b07a00); box-shadow: 0 4px 0 #5c3d00, 0 6px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .06s, box-shadow .06s, filter .15s; }
.cbtn small { display: block; font-size: 10px; opacity: .75; font-weight: 700; text-transform: none; }
.cbtn:active, .cbtn.press { transform: translateY(3px); box-shadow: 0 1px 0 #5c3d00, 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); }
.cbtn.blue { background: linear-gradient(180deg, #bfe8ff, #38a3f5 50%, #0b5aa6); box-shadow: 0 4px 0 #063461, 0 6px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.7); color: #00172e; }
.cbtn.red { background: linear-gradient(180deg, #ffc2c2, #f43f3f 50%, #a30f0f); box-shadow: 0 4px 0 #5c0505, 0 6px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); color: #fff; }
.cbtn.green { background: linear-gradient(180deg, #c8ffd8, #2fd36a 50%, #0a7a34); box-shadow: 0 4px 0 #034019, 0 6px 10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6); color: #002c10; }
.cbtn.on { filter: brightness(1.25) saturate(1.3); outline: 2px solid #fff; }
.cbtn[disabled] { filter: grayscale(.8) brightness(.6); pointer-events: none; }
.spin { width: 96px; height: 96px; border-radius: 50%; min-width: 0; font-size: 20px; font-family: Bungee; letter-spacing: 1px; background: radial-gradient(circle at 35% 30%, #d7ffe2, #27d468 38%, #08722f 75%); box-shadow: 0 6px 0 #034019, 0 10px 18px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.7), 0 0 22px rgba(60,255,120,.45); color: #002c10; }
.spin.stop { background: radial-gradient(circle at 35% 30%, #ffd9d9, #ff4545 38%, #9b0b0b 75%); box-shadow: 0 6px 0 #4d0303, 0 10px 18px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.7), 0 0 22px rgba(255,60,60,.5); color: #fff; }
.keys { margin-top: 10px; font-size: 12px; color: #d6c7a8; text-align: center; line-height: 1.9; }
.keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: linear-gradient(180deg, #fafafa, #cfcfcf); color: #111; font-family: Rubik; font-weight: 700; font-size: 11px; box-shadow: 0 2px 0 #777; margin: 0 2px; direction: ltr; }
.machine-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- the big win and coins */
.bigwin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.bigwin .txt { text-align: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.bigwin .t1 { font-family: Bungee; font-size: clamp(34px, 8vw, 86px); background: linear-gradient(180deg, #fff, #ffe36b 40%, #ff9d00 70%, #ff4d00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #6b1a00) drop-shadow(0 0 24px #ffae00); line-height: 1; }
.bigwin .t2 { font-family: Orbitron; font-size: clamp(28px, 6vw, 60px); color: #fff; text-shadow: 0 0 10px #ffcc00, 0 0 30px #ff8800, 0 3px 0 #7a3b00; direction: ltr; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.fxlayer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.flash { animation: flash .6s ease-out; } @keyframes flash { 0% { filter: brightness(2.2); } 100% { filter: none; } }
.shake { animation: shake .45s; } @keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }

/* ---------------------------------------------------------------- feature screens on the reels */
.feat { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.35), rgba(0,0,0,.85)); animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.feat.fixed { position: fixed; z-index: 70; }
.feat .card { text-align: center; padding: 20px 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(40, 10, 40, .92), rgba(10, 2, 12, .95)); border: 2px solid #f5c542; box-shadow: 0 0 40px rgba(255, 190, 40, .5); max-width: 92%; }
.feat h3 { margin: 0 0 6px; font-family: Bungee; font-size: clamp(22px, 5vw, 44px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px #ffb300); }
.feat p { margin: 4px 0 12px; font-size: clamp(14px, 2.4vw, 19px); }
.houses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.house { border-radius: 14px; padding: 12px 6px; border: 2px solid #c9952b; background: linear-gradient(180deg, #3b3b46, #15151c); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.house:hover { transform: translateY(-4px); box-shadow: 0 0 22px #f5c542; }
.house .g { font-size: clamp(30px, 6vw, 52px); }
.house b { display: block; font-size: 13px; margin: 4px 0; }
.house span { font-family: Orbitron; font-size: 12px; color: var(--gold1); }
.gems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0; }
.gem { width: clamp(52px, 11vw, 84px); aspect-ratio: 1; border-radius: 16px; border: 0; font-size: clamp(26px, 6vw, 44px); background: radial-gradient(circle at 35% 30%, #a7ffcf, #10b981 45%, #064e3b); box-shadow: 0 4px 0 #022c22, 0 0 18px rgba(16, 185, 129, .5); transition: transform .3s; display: grid; place-items: center; }
.gem.open { transform: rotateY(180deg); background: radial-gradient(circle, #2a1a00, #0a0600); box-shadow: 0 0 18px #f5c542; }
.gem.open span { transform: rotateY(180deg); font-family: Orbitron; font-size: clamp(12px, 2.4vw, 17px); color: var(--gold1); }
.gem.collect span { color: #ff6b6b; font-family: Bungee; }
.fs-hud { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; pointer-events: none; }
.fs-hud div { background: rgba(0,0,0,.7); border: 1px solid #f5c542; border-radius: 10px; padding: 3px 12px; font-family: Bungee; font-size: 13px; color: var(--gold1); white-space: nowrap; }
.fs-hud b { font-family: Orbitron; color: #fff; }

/* ---------------------------------------------------------------- cards (poker, blackjack, baccarat) */
.felt { position: relative; border-radius: 14px; min-height: 300px; padding: 16px; background: radial-gradient(ellipse at 50% 30%, #1f7a43, #0d4425 60%, #062413); box-shadow: inset 0 0 60px rgba(0,0,0,.7); overflow: hidden; }
.felt.blue { background: radial-gradient(ellipse at 50% 30%, #1d4ed8, #0b2a7a 60%, #04122f); }
.felt.red { background: radial-gradient(ellipse at 50% 30%, #9b1c1c, #4d0808 60%, #220303); }
.felt.purple { background: radial-gradient(ellipse at 50% 30%, #6d28d9, #2e1065 60%, #12062a); }
.pcard { --cw: clamp(56px, 13vw, 128px); width: var(--cw); aspect-ratio: 264 / 370; border-radius: calc(var(--cw) * .07); background: #fff url(../img/classic-hd.webp) no-repeat; background-size: 1300% 400%; box-shadow: 0 6px 14px rgba(0,0,0,.55); position: relative; transition: transform .35s; transform-style: preserve-3d; flex: none; }
.pcard.back { background: repeating-linear-gradient(45deg, #b91c1c 0 6px, #7f1d1d 6px 12px); border: calc(var(--cw) * .05) solid #fff; }
.pcard.back::after { content: '♦'; position: absolute; inset: 0; display: grid; place-items: center; color: #fde68a; font-size: calc(var(--cw) * .4); text-shadow: 0 0 8px #000; }
.pcard.deal { animation: deal .35s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes deal { from { transform: translate(40vw, -30vh) rotate(25deg); opacity: 0; } }
.pcard.held { transform: translateY(-14px); box-shadow: 0 0 0 3px #ffd84d, 0 0 22px #ffcc00; }
.pcard.win { box-shadow: 0 0 0 3px #3dff7a, 0 0 24px #3dff7a; }
.held-tag { text-align: center; font-family: Bungee; font-size: 13px; color: #ffd84d; height: 18px; text-shadow: 0 0 8px #ffaa00; }
.vp-hand, .bj-row, .bj-hands, .bac-side .bj-row { direction: ltr; }
.vp-hand { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); padding: 20px 0 6px; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.paytable { width: 100%; border-collapse: collapse; font-family: Orbitron; font-size: clamp(10px, 1.7vw, 14px); color: #ffe566; text-shadow: 0 0 4px #ff9900; background: rgba(0,0,30,.45); border-radius: 10px; overflow: hidden; direction: ltr; }
.paytable td { padding: 2px 8px; text-align: right; } .paytable td:first-child { text-align: left; font-family: Rubik; font-weight: 700; color: #fff; text-shadow: none; }
.paytable tr.hit td { background: #ffd84d; color: #000; text-shadow: none; }
.paytable td.cur { background: rgba(255, 60, 60, .35); }
.bj-row { display: flex; gap: 8px; justify-content: center; min-height: calc(clamp(56px, 13vw, 128px) * 1.4); }
.bj-row .pcard + .pcard { margin-inline-start: calc(clamp(56px, 13vw, 128px) * -.55); }
.bj-label { text-align: center; font-weight: 900; margin: 4px 0 6px; } .bj-label b { font-family: Orbitron; color: #fde047; padding: 1px 8px; background: rgba(0,0,0,.5); border-radius: 8px; direction: ltr; display: inline-block; }
.bj-hands { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.bj-hand { padding: 6px 10px 2px; border-radius: 14px; border: 2px solid transparent; }
.bj-hand.cur { border-color: #fde047; box-shadow: 0 0 18px rgba(253, 224, 71, .45); }
.res { font-family: Bungee; font-size: 15px; } .res.win, .res.blackjack { color: #3dff7a; } .res.lose, .res.bust { color: #ff6b6b; } .res.push, .res.surrender { color: #fde047; }
.chipbtn { width: 54px; height: 54px; border-radius: 50%; border: 0; font-family: Orbitron; font-size: 13px; color: #fff; background: radial-gradient(circle, var(--c) 52%, #fff 53% 60%, var(--c) 61%); box-shadow: 0 3px 0 rgba(0,0,0,.6), inset 0 0 0 3px rgba(255,255,255,.25); text-shadow: 0 1px 1px #000; transition: transform .1s; }
.chipbtn.on { transform: translateY(-6px); box-shadow: 0 0 0 3px #fde047, 0 6px 10px rgba(0,0,0,.6); }
.spot { position: relative; border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; text-align: center; cursor: pointer; transition: background .15s; }
.spot:hover { background: rgba(255,255,255,.08); }
.stack { position: absolute; bottom: -8px; inset-inline-end: -8px; min-width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: Orbitron; font-size: 12px; background: radial-gradient(circle, #e11d48 52%, #fff 53% 60%, #e11d48 61%); box-shadow: 0 3px 0 rgba(0,0,0,.6); pointer-events: none; direction: ltr; }
.bac-spots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 10px; }
.bac-spots .spot { border-radius: 18px; height: 92px; font-weight: 900; font-size: 18px; }
.bac-spots .spot small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.bac-side { text-align: center; } .bac-side h4 { margin: 0 0 6px; font-family: Bungee; letter-spacing: 2px; }

/* ---------------------------------------------------------------- roulette and keno */
.rl { display: grid; grid-template-columns: minmax(200px, 330px) 1fr; gap: 14px; align-items: center; }
.rl canvas.wheel { width: 100%; aspect-ratio: 1; }
.board { position: relative; display: grid; grid-template-columns: 1.1fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(3, minmax(34px, 1fr)) 34px 34px; gap: 0; direction: ltr; user-select: none; border: 2px solid #f5f5f5; border-radius: 8px; overflow: visible; background: rgba(0,0,0,.15); }
.board .c { display: grid; place-items: center; font-family: Orbitron; font-size: clamp(11px, 1.7vw, 16px); border: 1px solid rgba(255,255,255,.6); cursor: pointer; position: relative; color: #fff; }
.board .c.r { background: #c81e1e; } .board .c.b { background: #111; } .board .c.z { background: #0f7a3a; }
.board .c:hover { filter: brightness(1.35); }
.board .c.lit { box-shadow: inset 0 0 0 3px #fde047, 0 0 18px #fde047; z-index: 2; }
.hot { position: absolute; z-index: 3; cursor: pointer; border-radius: 50%; }
.hot:hover { background: rgba(253, 224, 71, .55); }
.bchip { position: absolute; z-index: 4; transform: translate(-50%, -50%); min-width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: Orbitron; font-size: 10px; color: #fff; pointer-events: none; background: radial-gradient(circle, var(--c, #e11d48) 52%, #fff 53% 60%, var(--c, #e11d48) 61%); box-shadow: 0 2px 0 rgba(0,0,0,.7); padding: 0 3px; }
.keno { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; direction: ltr; }
.kn { aspect-ratio: 1.25; border-radius: 9px; border: 0; font-family: Orbitron; font-size: clamp(11px, 1.9vw, 17px); font-weight: 700; color: #cfe3ff; background: linear-gradient(180deg, #1e3a8a, #0f1f4d); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); transition: transform .1s; }
.kn.pick { background: linear-gradient(180deg, #fde047, #d97706); color: #2a1400; }
.kn.drawn { background: radial-gradient(circle, #f43f5e, #9f1239); color: #fff; animation: popin .25s; }
.kn.drawn.pick { background: radial-gradient(circle, #6bff9b, #059669); color: #002a14; box-shadow: 0 0 14px #3dff7a; }
@keyframes popin { from { transform: scale(.4); } }

/* ---------------------------------------------------------------- dialogs */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); display: grid; place-items: center; padding: 14px; animation: fadein .2s; }
.modal { width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 20px; background: linear-gradient(180deg, #2c0a24, #14030f); border: 2px solid #c9952b; box-shadow: 0 0 60px rgba(255, 180, 40, .35); padding: 20px; }
.modal.wide { width: min(980px, 100%); }
.modal h3 { margin: 0 0 12px; font-size: 22px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal h4 { margin: 16px 0 6px; color: var(--gold1); }
.modal p, .modal li { line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 13px; color: var(--muted); }
.inp { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: #fff; outline: none; }
.inp:focus { border-color: #f5c542; box-shadow: 0 0 0 3px rgba(245, 197, 66, .25); }
.inp.code { font-family: Orbitron; font-size: 24px; letter-spacing: 4px; text-align: center; direction: ltr; }
.err { color: #ff8a8a; min-height: 20px; font-size: 14px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; background: #111; border: 1px solid #f5c542; color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.6); animation: fadein .2s; max-width: 92vw; text-align: center; }
.toast.bad { border-color: #ef4444; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amounts button { padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); font-family: Orbitron; font-size: 14px; direction: ltr; }
.amounts button.on { background: var(--gold-grad); color: #2a1a00; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: start; vertical-align: middle; }
.tbl th { color: var(--gold1); font-weight: 700; position: sticky; top: 0; background: #1d0617; }
.tbl .mono { font-family: Orbitron; letter-spacing: 1px; direction: ltr; unicode-bidi: isolate; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.badge.ok { background: #14532d; color: #86efac; } .badge.used { background: #3f3f46; color: #e4e4e7; } .badge.void { background: #7f1d1d; color: #fecaca; }
.ticket { margin: 10px auto; width: min(340px, 100%); padding: 16px 18px; background: repeating-linear-gradient(0deg, #fffdf4 0 22px, #f6f0dc 22px 23px); color: #222; border-radius: 4px; font-family: 'Courier New', monospace; box-shadow: 0 10px 30px rgba(0,0,0,.6); animation: print 1.2s ease-out; transform-origin: top; text-align: center; direction: ltr; }
.ticket h5 { margin: 0 0 6px; font-size: 18px; letter-spacing: 3px; } .ticket .amt { font-size: 30px; font-weight: 900; margin: 6px 0; }
.ticket .bar { height: 34px; margin: 8px 0 4px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.qr { display: grid; place-items: center; gap: 6px; padding: 10px; background: #fff; border-radius: 14px; width: max-content; margin: 8px auto; color: #111; }
.help-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.help-pay > div { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); border-radius: 10px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.08); }
.help-pay canvas { width: 52px; height: 52px; flex: none; border-radius: 8px; }
.help-pay .pp { font-family: Orbitron; font-size: 12px; line-height: 1.5; direction: ltr; }
.lines-pic { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.lines-pic svg { width: 100%; background: rgba(0,0,0,.4); border-radius: 6px; }

@media (max-width: 720px) {
  .topbar { padding: 8px 10px; gap: 8px; } .logo { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .em { font-size: 58px; } .tile .nm { font-size: 16px; }
  .meters { grid-template-columns: repeat(2, 1fr); }
  .cbtn { min-width: 62px; height: 46px; font-size: 11.5px; padding: 0 8px; }
  .spin { width: 78px; height: 78px; font-size: 16px; }
  .rl { grid-template-columns: 1fr; }
  .board { grid-template-rows: repeat(3, 30px) 28px 28px; }
  .houses { grid-template-columns: repeat(2, 1fr); }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .keys { display: none; }
  .cab-wrap { padding: 6px 4px 20px; } .cab { padding: 6px; border-radius: 18px; } .cab-in { padding: 6px; }
  .topper .em { display: none; }
}

.panel { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(0,0,0,.25); margin-bottom: 12px; }
* { scrollbar-color: #8a6a1f #1a0414; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: #1a0414; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #d4a017, #7a5200); border-radius: 10px; border: 2px solid #1a0414; }

/* ---------------------------------------------------------------- a game on one screen (no scrolling) */
.ingame-only { display: none; }
body.ingame .ingame-only { display: inline-flex; }
body.ingame { overflow: hidden; }
body.ingame .topbar { display: none; }
body.ingame .cab-wrap { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 6px 8px; max-width: 1400px; }
body.ingame .machine-bar { margin-bottom: 6px; flex: none; }
body.ingame .cab { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px; }
body.ingame .cab-in { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px; }
body.ingame .topper { flex: none; padding: 4px 10px 6px; margin-bottom: 6px; }
body.ingame .topper h2 { font-size: clamp(18px, 4vh, 40px); }
body.ingame .topper .en { font-size: clamp(9px, 1.4vh, 13px); }
body.ingame .topper .em { font-size: clamp(22px, 4.5vh, 50px); }
body.ingame .screen { flex: 1; min-height: 0; overflow: auto; }
body.ingame .screen > canvas { position: absolute; inset: 0; height: 100% !important; }
body.ingame .screen > .felt { min-height: 100%; }
body.ingame .banner { flex: none; min-height: 30px; padding: 3px 12px; font-size: clamp(13px, 2.2vh, 19px); }
body.ingame .meters { flex: none; margin: 6px 0; gap: 6px; grid-template-columns: repeat(4, 1fr); }
body.ingame .meter { padding: 2px 6px; }
body.ingame .meter b { font-size: clamp(14px, 2.8vh, 24px); }
body.ingame .meter small { font-size: 10px; }
body.ingame .deck { flex: none; padding: 6px; gap: 6px; position: relative; }
body.ingame .cbtn { height: clamp(38px, 6.2vh, 52px); min-width: clamp(56px, 7vw, 76px); font-size: clamp(10.5px, 1.6vh, 13px); padding: 0 8px; }
body.ingame .spin { width: clamp(58px, 10vh, 96px); height: clamp(58px, 10vh, 96px); min-width: 0; font-size: clamp(14px, 2.2vh, 20px); }
body.ingame .keys { flex: none; margin-top: 4px; line-height: 1.6; font-size: 11px; }
@media (max-height: 820px) { body.ingame .keys { display: none; } }
@media (max-width: 720px) { body.ingame .meters { grid-template-columns: repeat(4, 1fr); } body.ingame .meter span { font-size: 8px; letter-spacing: 1px; } body.ingame .machine-bar .btn { padding: 5px 8px; font-size: 12px; } }
body.ingame .pcard { --cw: clamp(46px, min(14vw, 16vh), 128px); }
body.ingame .bj-row { min-height: calc(clamp(46px, min(14vw, 16vh), 128px) * 1.4); }
body.ingame .bj-row .pcard + .pcard { margin-inline-start: calc(clamp(46px, min(14vw, 16vh), 128px) * -.55); }
body.ingame .paytable { font-size: clamp(9px, 1.6vh, 14px); }
body.ingame .vp-hand { padding: 10px 0 4px; }
.rl canvas.wheel { width: min(100%, 44vh); justify-self: center; }
body.ingame .board { grid-template-rows: repeat(3, clamp(24px, 5vh, 40px)) clamp(22px, 4vh, 34px) clamp(22px, 4vh, 34px); }
body.ingame .chipbtn { width: clamp(38px, 6vh, 54px); height: clamp(38px, 6vh, 54px); font-size: 12px; }
body.ingame .kn { aspect-ratio: auto; height: clamp(20px, 4.2vh, 42px); }
@media (max-width: 720px) { .rl canvas.wheel { width: min(70vw, 30vh); } }

/* auto play */
.automenu { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 6px; align-items: center; padding: 8px; border-radius: 14px; background: #111; border: 2px solid #f5c542; box-shadow: 0 8px 24px rgba(0,0,0,.7); }
.automenu b { font-family: Bungee; color: var(--gold1); margin: 0 4px; }
.automenu .cbtn { min-width: 48px; }

/* keno: what is drawn and what won */
.keno-top { margin-bottom: 8px; }
.keno-how { font-size: clamp(11px, 1.7vh, 14px); opacity: .9; margin-bottom: 4px; }
.keno-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-bottom: 6px; }
.keno-legend span { display: inline-flex; align-items: center; gap: 5px; }
.kl { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.kl.pick { background: linear-gradient(180deg, #fde047, #d97706); } .kl.drawn { background: radial-gradient(circle, #f43f5e, #9f1239); border-radius: 50%; } .kl.hit { background: radial-gradient(circle, #6bff9b, #059669); border-radius: 50%; box-shadow: 0 0 8px #3dff7a; }
.balls { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; direction: ltr; }
.ball { width: clamp(24px, 3.6vh, 32px); height: clamp(24px, 3.6vh, 32px); border-radius: 50%; display: grid; place-items: center; font-family: Orbitron; font-size: 11px; font-weight: 700; color: #fff; background: radial-gradient(circle at 35% 30%, #ff9db0, #e11d48 45%, #7f1d1d); box-shadow: 0 2px 4px rgba(0,0,0,.5); animation: popin .3s; }
.ball.hit { background: radial-gradient(circle at 35% 30%, #c8ffd8, #22c55e 45%, #065f46); box-shadow: 0 0 12px #3dff7a; color: #002a14; }
.keno-hits { font-family: Bungee; font-size: clamp(14px, 2.4vh, 20px); color: var(--gold1); margin-top: 4px; min-height: 24px; }
.keno-hits b { color: #3dff7a; font-family: Orbitron; }

/* live tables */
.bchip.other { transform: translate(-50%, -50%) scale(.7); opacity: .85; }
.live-wrap { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 6px 8px; max-width: 1400px; margin: 0 auto; }
.live-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.live-head h2 { margin: 0; font-size: clamp(18px, 3.4vh, 30px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 10px #ff2d55; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.live-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(180px, 250px); gap: 8px; }
.live-table { min-height: 0; overflow: auto; border-radius: 16px; position: relative; }
.live-side { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.seat { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.seat.me { border-color: #f5c542; } .seat.turn { box-shadow: 0 0 0 2px #3dff7a, 0 0 14px #3dff7a; }
.seat .st { margin-inline-start: auto; font-size: 12px; }
.live-bar { flex: none; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 6px; margin-top: 6px; border-radius: 14px; background: linear-gradient(180deg, #2a2a2a, #0d0d0d); }
.live-status { flex: none; text-align: center; font-weight: 900; padding: 4px; font-size: clamp(13px, 2.2vh, 18px); }
.live-status .ltr { font-family: Orbitron; color: var(--gold1); }
.bj-seats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; direction: ltr; }
.bj-seat { padding: 6px; border-radius: 12px; border: 2px solid transparent; text-align: center; min-width: 110px; }
.bj-seat.turn { border-color: #3dff7a; box-shadow: 0 0 18px rgba(61, 255, 122, .4); } .bj-seat.me { background: rgba(245, 197, 66, .08); }
.bj-seat .nm { font-weight: 900; font-size: 13px; margin-top: 2px; direction: rtl; }
.dealer-panel { border: 2px solid #f5c542; border-radius: 12px; padding: 6px 10px; background: rgba(245, 197, 66, .08); }
@media (max-width: 720px) { .live-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .live-side { max-height: 22vh; } }
body.ingame .deck { flex-wrap: nowrap; gap: 5px; }
body.ingame .deck .cbtn:not(.spin) { min-width: 0; flex: 1 1 0; max-width: 110px; padding: 0 4px; }
body.ingame .machine-bar { flex-wrap: nowrap; gap: 6px; }
body.ingame .machine-bar .btn { white-space: nowrap; }
body.ingame .machine-bar .pill { padding: 5px 10px; font-size: 13px; }
@media (max-width: 900px) { body.ingame .machine-bar .pill { display: none; } }
.live-table .pcard { --cw: clamp(40px, min(10vw, 11vh), 100px); }
.live-table .bj-row { min-height: calc(clamp(40px, min(10vw, 11vh), 100px) * 1.4); }
.live-table .bj-row .pcard + .pcard { margin-inline-start: calc(clamp(40px, min(10vw, 11vh), 100px) * -.55); }
.live-table .rl canvas.wheel { width: min(100%, 34vh); }
