:root {
  --casino-chrome: #121522;
  --bg: #070811;
  --bg-2: #0d0f1d;
  --panel: rgba(18, 21, 38, .82);
  --line: rgba(255, 255, 255, .09);
  --text: #f7f4ec;
  --muted: #989bb0;
  --gold: #e8c47a;
  --gold-2: #b88b3d;
  --green: #76e6a6;
  --red: #ff6b78;
  --violet: #9b7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(120, 83, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 110% 20%, rgba(232, 196, 122, .08), transparent 60%),
    var(--bg);
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .45; }
.ambient-a { width: 360px; height: 360px; background: #3b217c; top: -160px; left: -100px; }
.ambient-b { width: 320px; height: 320px; background: #5b411e; bottom: -200px; right: -100px; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--casino-chrome);
  border-bottom: 1px solid #edcc8c24;
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  max-width: 1120px; min-height: 60px; padding: 7px 22px; margin: 0 auto;
}
.top-leading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; font-size: clamp(13px, 4vw, 17px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
}
.brand b { color: var(--gold); font-weight: 800; }
.telegram-shell .brand-name { display: none; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid #e8c47a72; border-radius: 9px; color: #ffdd9b;
  background: linear-gradient(150deg, #393043, #1a1b29 70%); font-size: 18px;
}
.wallet {
  display: flex; align-items: center; flex: none; gap: 6px; padding: 4px 5px 4px 8px;
  border: 1px solid #edcc8c35; border-radius: 12px; background: #1b2031;
}
.chip-icon { color: var(--gold); }
.wallet-readout { display: grid; gap: 1px; min-width: 4ch; line-height: 1; }
.wallet-readout > span { color: #c4c6d6; font-size: 9px; }
.wallet strong { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plus {
  width: 29px; height: 29px; border: 0; border-radius: 8px;
  background: var(--gold); color: #14100a; font-weight: 800; line-height: 1;
}
.top #back { width: 32px; height: 32px; flex: none; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 50%; font-size: 24px; line-height: 1; }
main { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 8px 22px 110px; }
.screen { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero { padding: 28px 0 26px; max-width: 680px; }
.eyebrow { display: block; color: var(--gold); font-size: 10px; letter-spacing: .24em; font-weight: 800; margin-bottom: 12px; }
h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 6.2vw, 72px); line-height: .98; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 700; }
h1 i { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); font-size: 15px; max-width: 400px; line-height: 1.55; margin: 0; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-card {
  position: relative; display: flex; align-items: center; gap: 16px; text-align: left;
  min-height: 112px; padding: 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  overflow: hidden; transition: transform .2s, border-color .2s, background .2s;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(232,196,122,.4); background: linear-gradient(145deg, rgba(232,196,122,.11), rgba(255,255,255,.025)); }
.game-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -44px; top: -44px; border-radius: 50%; background: rgba(232,196,122,.08); filter: blur(10px); }
.game-art { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 17px; font-size: 30px; font-weight: 800; letter-spacing: -.06em; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); }
.roulette-card .game-art { color: var(--red); }
.slots-card .game-art { color: var(--gold); font-size: 22px; }
.blackjack-card .game-art { color: var(--violet); font-size: 34px; }
.game-copy { display: grid; gap: 4px; z-index: 1; min-width: 0; }
.game-copy b { font-family: "Playfair Display", Georgia, serif; font-size: 23px; letter-spacing: -.02em; }
.game-copy small { color: var(--muted); font-size: 11px; }
.arrow { margin-left: auto; color: var(--gold); font-size: 20px; opacity: .7; z-index: 1; }
.lobby-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.ghost-btn, .demo-badge { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 999px; padding: 10px 16px; font-size: 12px; color: var(--muted); }
.demo-badge { color: var(--gold); border-color: rgba(232,196,122,.25); background: rgba(232,196,122,.05); letter-spacing: .08em; }
.game-screen { padding-top: 12px; }
.game-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: 42px; margin: 0 0 24px; letter-spacing: -.03em; }
.roulette-wrap { position: relative; display: grid; place-items: center; min-height: 330px; }
.wheel-holder { position: relative; width: min(76vw, 340px); height: min(76vw, 340px); display: grid; place-items: center; }
#wheel { width: 100%; height: 100%; filter: drop-shadow(0 24px 38px rgba(0,0,0,.5)); transition: transform 4.8s cubic-bezier(.12,.75,.08,1); }
.wheel-pin { position: absolute; top: 6px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 24px solid var(--gold); filter: drop-shadow(0 2px 4px #000); z-index: 3; }
.result-badge { display: table; margin: 18px auto 0; padding: 10px 18px; border: 1px solid rgba(232,196,122,.25); color: var(--gold); border-radius: 999px; background: rgba(232,196,122,.055); font-size: 13px; text-align: center; min-width: 160px; }
.bet-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.bet-choice { padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); display: grid; gap: 3px; font-size: 12px; transition: .2s; }
.bet-choice small { color: var(--muted); font-size: 10px; }
.bet-choice:hover { border-color: rgba(232,196,122,.5); }
.bet-choice.red { border-color: rgba(255,107,120,.3); background: rgba(255,107,120,.075); }
.bet-choice.black { border-color: rgba(255,255,255,.16); background: rgba(0,0,0,.2); }
.stake-row { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.stake { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 12px; }
.stake.active { color: #17110a; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.slots-machine { position: relative; border: 1px solid rgba(232,196,122,.26); border-radius: 26px; padding: 18px 16px 16px; background: linear-gradient(160deg, rgba(232,196,122,.1), rgba(255,255,255,.02)); box-shadow: var(--shadow); max-width: 480px; margin: 0 auto; }
.slots-top { text-align: center; color: var(--gold); font-size: 10px; letter-spacing: .28em; font-weight: 800; margin-bottom: 14px; }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.reel { aspect-ratio: .95; display: grid; place-items: center; font-size: clamp(17px, 6vw, 33px); border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(circle at 50% 0, rgba(255,255,255,.12), rgba(0,0,0,.28)); overflow: hidden; }
.reel.win-cell { border-color: var(--gold); background-color: #3a2a12; }
@keyframes reel { 0% { transform: translateY(-8px); filter: blur(0); } 50% { transform: translateY(8px); filter: blur(1px); } 100% { transform: translateY(-8px); } }
.payline { height: 2px; margin: 10px 0 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.spin-btn { display: block; margin: 18px auto 0; }
.primary-btn { padding: 14px 30px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #f1d393, #b88838); color: #17110a; font-weight: 800; font-size: 13px; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(232,196,122,.18); }
.blackjack-table { border: 1px solid rgba(232,196,122,.18); border-radius: 26px; padding: 20px; background: radial-gradient(ellipse at 50% 0, rgba(118,230,166,.09), transparent 65%), rgba(255,255,255,.02); }
.hand-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 8px 0; }
.hand-label span { color: var(--gold); font-variant-numeric: tabular-nums; }
.hand-label.you { color: var(--green); margin-top: 20px; }
.cards { display: flex; gap: 8px; min-height: 92px; flex-wrap: wrap; }
.card { width: 62px; height: 88px; border-radius: 9px; background: #f7f1e5; color: #17110a; display: grid; place-items: center; font-family: Georgia, serif; font-size: 25px; font-weight: 700; box-shadow: 0 8px 18px rgba(0,0,0,.28); animation: deal .25s both; }
.card.red { color: #c33148; }
@keyframes deal { from { opacity: 0; transform: translateY(-10px) rotate(-4deg); } to { opacity: 1; transform: none; } }
.bj-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.history-list { display: grid; gap: 8px; }
.history-item { display: flex; justify-content: space-between; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); font-size: 12px; }
.history-item b { color: var(--gold); }
.history-item .win { color: var(--green); }
.history-item .lose { color: var(--red); }
.bottom-nav { position: fixed; z-index: 20; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(13,15,29,.88); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.bottom-nav button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 17px; font-size: 11px; }
.bottom-nav button.active { color: #17110a; background: var(--gold); font-weight: 800; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: 999px; background: #f4e7c7; color: #17110a; font-size: 12px; font-weight: 700; transition: .25s; pointer-events: none; max-width: calc(100vw - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) {
  main { padding-top: 26px; }
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-card { min-height: 190px; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .game-art { width: 72px; height: 72px; }
  .arrow { position: absolute; right: 18px; bottom: 18px; }
}
@media (max-width: 520px) {
  .top-inner { min-height: 53px; padding: 6px 16px; }
  main { padding: 4px 16px 100px; }
  .game-copy b { font-size: 20px; }
  .game-card { min-height: 104px; padding: 14px; gap: 12px; }
  .game-art { width: 54px; height: 54px; font-size: 26px; }
  .game-copy b { font-size: 18px; }
  .game-copy small { font-size: 10px; line-height: 1.25; }
  .bet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel { height: 94px; font-size: 43px; }
}

/* ---------- premium visual layer ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 34px 0 30px; max-width: none; }
.hero-copy { position: relative; z-index: 2; }
.hero-art { position: relative; flex: none; width: 280px; height: 280px; margin-right: 5%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.orb-ring { position: absolute; inset: 20px; border-radius: 50%; border: 1px solid rgba(232,196,122,.38); box-shadow: inset 0 0 0 8px rgba(232,196,122,.025), 0 0 42px rgba(232,196,122,.08); }
.orb-ring-b { inset: 45px; border-color: rgba(155,124,255,.32); transform: rotate(30deg); border-style: dashed; }
.orb-core { position: absolute; inset: 80px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 34% 26%, #3c2f84, #151126 55%, #090b14 100%); border: 1px solid rgba(232,196,122,.5); box-shadow: inset 0 0 26px rgba(0,0,0,.7), 0 0 30px rgba(155,124,255,.25); color: var(--gold); font-size: 58px; }
.floating-chip { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: repeating-conic-gradient(#d8b66e 0 12deg, #7e5e27 12deg 24deg); border: 3px solid #f0d79e; color: #17110a; font-size: 20px; box-shadow: 0 12px 20px rgba(0,0,0,.4); }
.chip-a { right: 18px; top: 62px; transform: rotate(-18deg); }
.chip-b { left: 6px; bottom: 64px; width: 36px; height: 36px; font-size: 15px; transform: rotate(18deg); opacity: .9; }
.floating-card { position: absolute; width: 66px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; background: #f6f0e4; color: #17110a; font-family: Georgia, serif; font-size: 25px; font-weight: 700; box-shadow: 0 16px 28px rgba(0,0,0,.4); }
.floating-card span { font-size: 24px; color: #a52c42; line-height: 1; }
.card-a { right: 0; bottom: 35px; transform: rotate(11deg); }
.card-b { left: 0; top: 26px; transform: rotate(-14deg); }
.hero-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(232,196,122,.12), transparent 64%); filter: blur(10px); }
.games { position: relative; }
.game-card { box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.game-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 62%); transform: translateX(-120%); transition: transform .8s; }
.game-card:hover::before { transform: translateX(120%); }
.game-art { position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 22px rgba(0,0,0,.22); }
.game-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.2), transparent 48%); }
.roulette-wrap::before { content: ""; position: absolute; width: min(84vw, 390px); height: min(84vw, 390px); border-radius: 50%; border: 1px solid rgba(232,196,122,.18); box-shadow: 0 0 80px rgba(232,196,122,.08), inset 0 0 60px rgba(155,124,255,.08); pointer-events: none; }
.slots-machine { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 26px 60px rgba(0,0,0,.32); border-color: rgba(232,196,122,.38); }
.reels { padding: 5px; border-radius: 17px; background: #080a14; box-shadow: inset 0 5px 18px #000, 0 1px 0 rgba(255,255,255,.1); }
.reel { box-shadow: inset 0 0 22px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08); }
.blackjack-table { position: relative; overflow: hidden; box-shadow: inset 0 0 80px rgba(0,0,0,.35), 0 24px 50px rgba(0,0,0,.22); }
.blackjack-table::before { content: "CASINO NIGHT · BLACKJACK"; position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: rgba(232,196,122,.12); font-size: 11px; letter-spacing: .28em; pointer-events: none; }
.card { position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,.14); background: linear-gradient(145deg,#fffaf0,#e6ddcb); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.5), transparent 65%); opacity: .45; }
.card.red { color: #b32842; }
.result-badge.win { color: var(--green); border-color: rgba(118,230,166,.35); background: rgba(118,230,166,.08); }
.result-badge.lose { color: var(--red); border-color: rgba(255,107,120,.3); background: rgba(255,107,120,.07); }
@media (max-width: 760px) {
  .hero { padding-top: 18px; }
  .hero-art { width: 150px; height: 150px; margin-right: -10px; opacity: .8; }
  .orb-ring { inset: 4px; } .orb-ring-b { inset: 22px; } .orb-core { inset: 44px; font-size: 30px; }
  .floating-card { width: 36px; height: 52px; font-size: 14px; } .floating-card span { font-size: 14px; }
  .floating-chip { width: 30px; height: 30px; font-size: 13px; }
  .chip-a { right: 3px; top: 32px; } .chip-b { left: 0; bottom: 30px; }
  .card-a { right: -2px; bottom: 12px; } .card-b { left: 0; top: 9px; }
}
@media (max-width: 520px) {
  .hero { align-items: flex-start; }
  .hero-art { width: 118px; height: 160px; margin-top: 10px; opacity: .72; }
  .hero-copy h1 { font-size: clamp(34px, 10.5vw, 52px); }
}

/* card faces */
.card { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; font-family: "DM Sans", sans-serif; }
.card .corner { display: flex; flex-direction: column; align-items: center; line-height: .9; font-size: 12px; font-weight: 800; }
.card .corner i { font-style: normal; font-size: 11px; margin-top: 2px; }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-family: Georgia, serif; font-size: 27px; opacity: .92; }
.card .corner.bottom { transform: rotate(180deg); align-self: flex-end; }

@media (max-width: 520px) {
  .hero { display: block; position: relative; padding-top: 10px; }
  .hero-copy { position: relative; z-index: 2; max-width: 100%; }
  .hero-art { position: absolute; right: -54px; top: -6px; width: 150px; height: 190px; margin: 0; opacity: .42; z-index: 0; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(32px, 9.6vw, 48px); }
  .hero-copy p { max-width: 98%; }
  .game-card { min-height: 112px; padding: 13px; gap: 10px; }
  .game-copy b { font-size: 17px; }
  .game-copy small { font-size: 9.5px; }
  .game-card .arrow { display: none; }
  .game-art { width: 50px; height: 50px; font-size: 23px; }
  .lobby-foot { margin-top: 16px; }
}
@media (max-width: 520px) { .hero-art { display: none; } }

/* Ensure card faces stay bright in dark Telegram themes. */
.card {
  background: #fffaf0;
  color: #17110a;
  border-color: rgba(0,0,0,.18);
}
.card .pip { color: inherit; }
.blackjack-table { box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.blackjack-table::before { display: none; }
html, body, .card { color-scheme: only light; }

/* Premium dark card faces (matches the table better than bright paper). */
.card {
  background: linear-gradient(150deg, #252938 0%, #151827 55%, #0d0f1a 100%);
  color: #f8f1e2;
  border: 1px solid rgba(232,196,122,.34);
  box-shadow: 0 10px 22px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
}
.card.red { color: #ff7d8c; }
.card .corner b { font-size: 13px; letter-spacing: .02em; }
.card .pip { font-size: 30px; opacity: .9; text-shadow: 0 0 18px currentColor; }


/* WebGL roulette */
.wheel3d { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wheel3d canvas { display: block; width: 100% !important; height: 100% !important; filter: drop-shadow(0 26px 44px rgba(0,0,0,.62)); }
.wheel3d.is-fallback { display: none; }
#wheel.legacy-hidden { display: none; }
.wheel-holder.wheel-fallback #wheel { display: block; }
.wheel-holder.wheel-fallback .wheel3d { display: none; }
.wheel-holder.live .wheel-pin { display: block; border-top-width: 30px; filter: drop-shadow(0 3px 5px #000) drop-shadow(0 0 12px rgba(232,196,122,.5)); }


/* live 3D table strip */
.table-strip { display: flex; align-items: center; gap: 13px; margin: 0 0 18px; padding: 12px 13px; border: 1px solid rgba(232,196,122,.24); border-radius: 18px; background: radial-gradient(circle at 0 0, rgba(155,124,255,.14), transparent 55%), rgba(255,255,255,.035); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.mini-wheel { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; border: 3px solid #e8c47a; background: repeating-conic-gradient(from -8deg, #9b2438 0 8.1deg, #10121d 8.1deg 16.2deg); box-shadow: 0 0 0 3px #20180b, 0 0 18px rgba(232,196,122,.24), inset 0 0 15px #000; transform: rotate(-13deg); }
.mini-wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -8deg, transparent 0 8.1deg, rgba(232,196,122,.65) 8.1deg 8.5deg); }
.mini-wheel::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: #0c0e19; border: 1px solid rgba(232,196,122,.55); }
.mini-wheel span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.table-strip-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.table-strip-copy .eyebrow { font-size: 9px; letter-spacing: .2em; color: var(--gold); }
.table-strip-copy strong { font-family: "Playfair Display", Georgia, serif; font-size: 23px; line-height: 1; font-weight: 700; }
.table-strip-copy small { color: var(--muted); font-size: 10px; }
.table-strip-open { flex: none; border: 1px solid rgba(232,196,122,.3); background: rgba(232,196,122,.1); color: var(--gold); border-radius: 999px; padding: 10px 12px; font: inherit; font-size: 11px; font-weight: 700; }
.table-strip-open span { font-size: 15px; margin-left: 2px; }
.table-strip-open:active { transform: scale(.97); }

/* PixiJS slot cabinet */
.slots-view { position: relative; min-height: 248px; border-radius: 17px; overflow: hidden; background: #080a14; box-shadow: inset 0 5px 18px #000, 0 1px 0 rgba(255,255,255,.1); }
.slots-pixi { position: relative; width: 100%; aspect-ratio: 360 / 264; }
.slots-pixi canvas { display: block; width: 100% !important; height: auto !important; }
.slots-pixi.is-fallback { display: none; }
.slots-machine.pixi-live .slots-fallback { display: none; }
.slots-fallback { border: 0; box-shadow: none; background: transparent; }
.slots-top span { color: rgba(255,255,255,.35); letter-spacing: .12em; }

.lobby .hero {
  position: relative; display: grid; align-items: center; min-height: 340px;
  margin-bottom: 20px; padding: 42px clamp(22px, 5vw, 58px); border-radius: 24px;
  border: 1px solid rgba(232,196,122,.32); box-shadow: var(--shadow);
  background: linear-gradient(90deg, #091410 4%, #091410e8 26%, #09141038 69%, #09141012),
    #101d17 url("night-table.webp") center 59% / cover no-repeat;
}
.lobby .hero-copy { max-width: 475px; }
.lobby .hero-copy h1 { font-size: clamp(3rem, 7vw, 5.3rem); max-width: none; }
.lobby .hero-copy p { color: #e4ded1; max-width: 32ch; margin-bottom: 22px; }
.lobby .hero-copy .primary-btn { min-height: 46px; }
.lobby .game-card { border-color: rgba(232,196,122,.18); }
.card.card-back {
  display: grid; place-items: center; font-size: 28px; color: var(--gold);
  background: repeating-linear-gradient(45deg, #1c3b2e 0 5px, #173128 5px 10px);
}
.history-item .push { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .58; cursor: default; }
.icon-btn { flex: 0 0 42px; width: 42px; height: 42px; }
@media (max-width: 520px) {
  .lobby .hero {
    align-items: end; min-height: 384px; padding: 21px 17px;
    background: linear-gradient(0deg, #091410 9%, #091410f5 29%, #09141040 66%, transparent 85%),
      #101d17 url("night-table.webp") 61% 45% / cover no-repeat;
  }
  .lobby .hero-copy h1 { font-size: clamp(2.55rem, 12vw, 4rem); line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* roulette win feedback */
@keyframes rouletteWinShake {
  0%, 100% { transform: translate3d(0,0,0) scale(1); filter: brightness(1); }
  15% { transform: translate3d(-3px,2px,0) scale(1.012); filter: brightness(1.2); }
  30% { transform: translate3d(3px,-2px,0) scale(.995); filter: brightness(1.1); }
  48% { transform: translate3d(-2px,-1px,0) scale(1.006); filter: brightness(1.08); }
  65% { transform: translate3d(2px,1px,0) scale(1); filter: brightness(1); }
}
.roulette-wrap.win-shake { animation: rouletteWinShake .6s ease-out; }


/* 3D blackjack table */
.blackjack3d { display: none; width: 100%; aspect-ratio: 360 / 250; position: relative; margin: -2px 0 8px; }
.blackjack-table.bj-live .blackjack3d { display: block; }
.blackjack-table.bj-live .cards { display: none; }
.blackjack3d canvas { display: block; width: 100% !important; height: auto !important; filter: drop-shadow(0 18px 28px rgba(0,0,0,.32)); }
.blackjack3d.bj3d-fallback { display: none; }


/* roulette win burst */
.win-burst { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: visible; }
.win-dot { position: absolute; left: 50%; top: 48%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(232,196,122,.9); animation: winBurst .85s cubic-bezier(.15,.7,.2,1) forwards; }
.win-dot:nth-child(3n) { background: #fff2bd; width: 4px; height: 4px; }
.win-dot:nth-child(4n) { background: var(--violet); box-shadow: 0 0 8px rgba(155,124,255,.8); }
@keyframes winBurst {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); opacity: 0; }
}
