/* ===== Base (dark, Stake-style) ===== */
:root {
  /* WinBlip brand palette */
  --purple: #6a00ff; --magenta: #d600c9; --gold: #ffc107; --teal: #00e5ff;
  --deep: #1a0033; --charcoal: #2d114d;
  --bg: #1a0033; --bg2: #2d114d; --bg3: #3d1a66; --line: #4f2a80;
  --text: #ffffff; --muted: #c9b6ea; --green: #ffc107; --green-d: #e08a00;
  --red: #ff3d7f; --blue: #00e5ff;
  --radius: 14px; --top: 64px; --side: 220px;
  --font-head: Montserrat, system-ui, sans-serif; --font-body: Poppins, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg) fixed; color: var(--text); font: 15px/1.5 var(--font-body); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); } .gold { color: var(--gold); } .center { text-align: center; } .small { font-size: 13px; }
.hidden { display: none !important; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; text-decoration: none; color: #fff; background: var(--bg3); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: scale(.97); } .btn:disabled { opacity: .5; cursor: default; }
.btn-green { background: var(--green); color: #05220a; box-shadow: 0 4px 0 var(--green-d) inset, 0 6px 20px #00e70133; }
.btn-gold { background: var(--gold); color: #2b1d00; }
.btn-ghost { background: var(--bg3); }
.btn-sm { padding: 7px 12px; font-size: 13px; } .btn-lg { padding: 14px 26px; font-size: 17px; } .btn-block { width: 100%; }

/* ===== Top bar / nav ===== */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--bg2); box-shadow: 0 2px 12px #0006; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -.3px; }
.logo img { height: 40px; width: auto; }
.logo-mark { color: var(--green); font-size: 24px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: flex; align-items: center; gap: 6px; background: var(--bg); padding: 8px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.balance-chip.pop { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.12); box-shadow: 0 0 0 3px #f5c54255; } }
.level-chip { display: flex; flex-direction: column; gap: 3px; text-decoration: none; font-size: 12px; color: var(--muted); }
.xpbar { width: 60px; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .5s; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); font-weight: 800; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: 44px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 160px; display: flex; flex-direction: column; box-shadow: 0 10px 30px #0008; }
.user-menu .menu a, .user-menu .menu span { padding: 8px 10px; text-decoration: none; border-radius: 6px; }
.user-menu .menu a:hover { background: var(--bg3); }

.shell { display: flex; min-height: calc(100vh - var(--top)); }
.sidebar { width: var(--side); flex-shrink: 0; background: var(--bg2); padding: 14px 10px; position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: flex; flex-direction: column; gap: 2px; }
.sidebar a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.sidebar a:hover, .sidebar a.on { background: var(--bg3); color: #fff; }
.content { flex: 1; min-width: 0; padding: 20px; max-width: 1300px; margin: 0 auto; width: 100%; }
.bottomnav { display: none; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .content { padding: 12px 12px 104px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--bg2); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); text-decoration: none; }
  .bottomnav span { font-size: 20px; }
  .level-chip { display: none; }
  .logo { font-size: 17px; }
}

/* ===== Lobby ===== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 220px; padding: 28px; border-radius: 14px;
  background: radial-gradient(circle at 85% 40%, #1e6b3c 0, transparent 45%), linear-gradient(120deg, #133042, #1a2c38 60%, #2a1e4a); }
.hero h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 38px); line-height: 1.1; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.hero-art { font-size: 120px; filter: drop-shadow(0 10px 30px #00e70155); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
@media (max-width: 600px) { .hero-art { display: none; } }

.ticker { display: flex; align-items: center; gap: 12px; margin: 16px 0; background: var(--bg2); border-radius: 10px; padding: 10px 14px; overflow: hidden; }
.ticker-label { color: var(--green); font-weight: 800; font-size: 13px; white-space: nowrap; }
.ticker-track { display: flex; gap: 28px; white-space: nowrap; animation: scroll 40s linear infinite; font-size: 14px; }
.ticker-track i { color: var(--green); font-style: normal; }
@keyframes scroll { from { transform: translateX(40%); } to { transform: translateX(-100%); } }

.section-title { font-size: 20px; margin: 26px 0 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.game-tile { text-decoration: none; border-radius: 12px; overflow: hidden; background: var(--bg2); transition: transform .15s; display: block; }
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 30px #0008, 0 0 0 2px var(--frame); }
.tile-art { aspect-ratio: 1/1; display: grid; place-items: center; background: linear-gradient(135deg, var(--frame), #0f212e) center/cover; }
.tile-art[style*="url"] .tile-emoji { display: none; }
.tile-art.felt { background-color: #0d5a32; } .tile-art.wheel { background-color: #5b0f1c; } .tile-art.blue { background-color: #0d2f6e; }
.tile-emoji { font-size: 34px; letter-spacing: 2px; text-align: center; word-break: break-all; padding: 8px; text-shadow: 0 4px 10px #0008; }
.tile-info { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 12px; font-size: 14px; }
.rtp-badge { font-size: 11px; font-weight: 700; color: var(--green); background: #00e70118; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }

.ad-slot { margin: 24px 0; min-height: 90px; display: grid; place-items: center; background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; overflow: hidden; }
.site-footer { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ===== Forms / cards ===== */
.auth-card, .panel { max-width: 440px; margin: 30px auto; background: var(--bg2); border-radius: 14px; padding: 26px; }
.panel { max-width: none; margin: 0 0 16px; }
.auth-card h1 { margin-top: 0; }
label { display: block; margin: 0 0 14px; font-weight: 600; font-size: 14px; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 8px; border: 2px solid var(--line); background: var(--bg); color: #fff; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 3px; }
.alert { background: #ed416322; border: 1px solid var(--red); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.alert-ok { background: #00e70118; border-color: var(--green); }

/* ===== Toast / confetti / dialog ===== */
#toast-wrap { position: fixed; top: 72px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--bg3); padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px #000a; animation: tin .3s; font-weight: 600; text-align: center; }
.toast.gold { background: linear-gradient(90deg, #6b4d00, #a07a10); } .toast.err { background: #5c1324; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(-12px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; }
.dlg { background: var(--bg2); color: #fff; border: 0; border-radius: 14px; padding: 22px; max-width: 520px; width: 92vw; max-height: 85vh; }
.dlg::backdrop { background: #000a; }

/* ===== Slots ===== */
.slot-wrap { --frame: #f5c542; border-radius: 16px; padding: 14px; background: radial-gradient(circle at 50% 0, #2a3f6b, #0f212e 70%) center/cover; max-width: 900px; margin: 0 auto; }
.slot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.slot-head h1 { flex: 1; margin: 0; font-size: 20px; text-shadow: 0 2px 8px #000; }
.back { text-decoration: none; font-size: 28px; width: 36px; height: 36px; display: grid; place-items: center; background: #0006; border-radius: 8px; }
.icon-btn { background: #0006; border: 0; border-radius: 8px; width: 38px; height: 38px; font-size: 18px; }
.machine { position: relative; padding: 10px; border-radius: 14px; background: linear-gradient(#0009, #000c); border: 4px solid var(--frame); box-shadow: 0 0 30px color-mix(in srgb, var(--frame) 40%, transparent), inset 0 0 20px #000; }
.reels { display: grid; grid-template-columns: repeat(var(--reels), 1fr); gap: 6px; }
.reel { overflow: hidden; aspect-ratio: 1 / var(--rows); background: linear-gradient(#fff1, #fff2 50%, #fff1); border-radius: 8px; }
.strip { will-change: transform; }
.cell { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(28px, 7vw, 62px); user-select: none; }
.cell img { width: 86%; height: 86%; object-fit: contain; pointer-events: none; }
.cell.hit { animation: hit .6s ease-in-out infinite alternate; }
@keyframes hit { to { transform: scale(1.12); filter: drop-shadow(0 0 12px var(--frame)) brightness(1.25); } }
.paylines { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; }
.paylines polyline { fill: none; stroke-width: .06; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .05px #fff); stroke-dasharray: 10; stroke-dashoffset: 10; animation: draw .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.win-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center; background: #000c; padding: 12px 30px; border-radius: 14px; border: 2px solid var(--gold); transition: .25s; }
.win-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.win-banner small { display: block; color: var(--gold); font-weight: 900; letter-spacing: 2px; }
.win-banner b { font-size: 34px; font-variant-numeric: tabular-nums; }
.win-banner.big { padding: 20px 44px; background: radial-gradient(#5a3b00, #000d); animation: shake .5s 2; }
.win-banner.big b { font-size: 52px; color: var(--gold); text-shadow: 0 0 20px #f5c542aa; }
@keyframes shake { 25% { transform: translate(-52%, -50%) rotate(-2deg); } 75% { transform: translate(-48%, -50%) rotate(2deg); } }
.slot-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.bet-box { display: flex; align-items: center; gap: 8px; background: #0008; padding: 8px 10px; border-radius: 12px; text-align: center; min-width: 0; }
.bet-box small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.bet-box b { font-variant-numeric: tabular-nums; }
.round-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg3); color: #fff; font-size: 20px; font-weight: 800; }
.round-btn.auto { width: auto; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.round-btn.auto.on { background: var(--gold); color: #000; }
.spin-btn { width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; border: 0; font-weight: 900; font-size: 20px; color: #05220a; background: radial-gradient(circle at 35% 30%, #7bff7b, var(--green) 55%, #009a00); box-shadow: 0 6px 0 #007a00, 0 10px 30px #00e70166; transition: transform .1s; }
.spin-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #007a00; }
.spin-btn:disabled { filter: grayscale(.6); }
.slot-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.paytable { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.pt-row { display: flex; gap: 12px; align-items: center; background: var(--bg3); padding: 8px; border-radius: 8px; }
.pt-sym { width: 48px; height: 48px; font-size: 34px; display: grid; place-items: center; flex-shrink: 0; }
.pt-sym img { width: 48px; height: 48px; object-fit: contain; }
.pt-pays { font-size: 13px; color: var(--muted); } .pt-pays b { color: var(--gold); }
.tag { font-size: 10px; background: var(--gold); color: #000; padding: 1px 5px; border-radius: 4px; font-weight: 800; }
@media (max-width: 520px) { .spin-btn { width: 78px; height: 78px; font-size: 16px; } .round-btn { width: 32px; height: 32px; } .bet-box { padding: 6px; gap: 5px; } }

/* ===== Tables (blackjack / poker / roulette) ===== */
.table { max-width: 900px; margin: 0 auto; border-radius: 16px; padding: 14px; min-height: 70vh; display: flex; flex-direction: column; gap: 14px; }
.felt-bg { background: radial-gradient(ellipse at 50% 30%, #1a8a4c, #0b4a29 70%, #062c18); }
.blue-bg { background: radial-gradient(ellipse at 50% 20%, #1d4fb8, #0b2462 70%, #06143a); }
.table-head { display: flex; align-items: center; gap: 10px; } .table-head h1 { flex: 1; margin: 0; font-size: 20px; }
.hand-area { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hand-label { color: #ffffffcc; font-weight: 700; } .hand-label b { background: #0008; padding: 2px 9px; border-radius: 10px; margin-left: 4px; }
.hand { display: flex; justify-content: center; min-height: 128px; }
.hand .card + .card { margin-left: -38px; }
.card { width: 88px; height: 124px; border-radius: 8px; background: #fff; color: #111; position: relative; box-shadow: 0 4px 12px #0007; flex-shrink: 0; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.red { color: #d01c2f; }
.card .c-tl, .card .c-br { position: absolute; font-weight: 800; font-size: 16px; line-height: 1; text-align: center; }
.card .c-tl { top: 6px; left: 6px; } .card .c-br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.card .c-mid { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.card.back { background: repeating-linear-gradient(45deg, #b3122e 0 6px, #8c0c22 6px 12px); border: 4px solid #fff; }
.card.deal { animation: deal .35s backwards; }
@keyframes deal { from { opacity: 0; transform: translate(120px, -160px) rotate(25deg); } }
.felt-mid { position: relative; display: grid; place-items: center; min-height: 80px; }
.felt-print { width: min(100%, 400px); height: auto; opacity: .9; }
.felt-text { color: #ffffff55; font-weight: 800; letter-spacing: 2px; text-align: center; font-size: 14px; }
.result { position: absolute; font-size: 26px; font-weight: 900; padding: 8px 22px; border-radius: 12px; background: #000c; opacity: 0; transform: scale(.7); transition: .25s; text-align: center; }
.result small { display: block; font-size: 16px; color: var(--gold); }
.result.show { opacity: 1; transform: scale(1); }
.result.win { border: 2px solid var(--green); color: var(--green); } .result.lose { color: #ffb3c1; }
#vp .result { position: static; font-size: 18px; margin: 0 auto; opacity: 1; transform: none; }
.table-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; }
#play-controls { flex-direction: row; justify-content: center; }
.bet-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.table-foot { text-align: center; color: #ffffff99; font-size: 12px; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { width: 52px; height: 52px; border-radius: 50%; border: 4px dashed #fff; font-weight: 900; font-size: 13px; color: #fff; background: #555; box-shadow: 0 3px 0 #0006; transition: transform .1s; }
.chip.c10 { background: #3a7bd5; } .chip.c50 { background: #d7263d; } .chip.c100 { background: #111; } .chip.c500 { background: #8e44ad; }
.chip.c1000 { background: #e0a800; color: #000; } .chip.c5000 { background: #0fa958; } .chip.c25000 { background: #ff6b00; }
.chip.on { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 8px 14px #0008; }
.chip.img { background: none; border: 0; padding: 0; } .chip.img img { width: 100%; height: 100%; }
@media (max-width: 520px) { .card { width: 70px; height: 99px; } .hand .card + .card { margin-left: -30px; } .card .c-mid { font-size: 34px; } }

/* video poker */
.vp-pays { width: 100%; max-width: 420px; margin: 0 auto; border-collapse: collapse; font-size: 14px; background: #0006 center/cover; border-radius: 10px; overflow: hidden; }
.vp-pays td { padding: 4px 12px; color: #ffeb99; font-weight: 700; } .vp-pays td:last-child { text-align: right; }
.vp-pays tr.on { background: var(--gold); } .vp-pays tr.on td { color: #000; }
.vp-hand { gap: 8px; } .vp-hand .card + .card { margin-left: 0; }
.vp-hand .card { cursor: pointer; transition: transform .15s; }
.vp-hand .card.held { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--gold), 0 10px 20px #0009; }
.vp-hand .card.held::after { content: 'HELD'; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 900; color: #000; background: var(--gold); }
@media (max-width: 520px) { .vp-hand .card { width: 58px; height: 82px; } .vp-hand { gap: 4px; } }

/* roulette */
.wheel-wrap { position: relative; width: 320px; max-width: 90vw; aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100% !important; height: 100% !important; border-radius: 50%; box-shadow: 0 0 0 8px #3b2611, 0 0 0 11px #c9a24a, 0 14px 40px #000a; }
.wheel-pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 22px; text-shadow: 0 2px 4px #000; }
.wheel-result { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 900; opacity: 0; transform: scale(.5); transition: .3s; border: 3px solid #fff; }
.wheel-result.show { opacity: 1; transform: scale(1); }
.wheel-result.red, .history .red { background: #d7263d; } .wheel-result.black, .history .black { background: #1b1b1f; } .wheel-result.green, .history .green { background: #0fa958; }
.history { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; min-height: 26px; }
.history span { min-width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.rl-board { display: grid; grid-template-columns: 1fr repeat(12, 1fr) 1fr; grid-template-rows: repeat(3, 44px) 38px 38px; gap: 3px; overflow-x: auto; }
.rb { position: relative; border: 1px solid #ffffff55; background: transparent; color: #fff; font-weight: 800; border-radius: 4px; font-size: 14px; padding: 0; }
.rb:hover { background: #ffffff22; }
.rb.red { background: #d7263d; } .rb.black { background: #1b1b1f; } .rb.green { background: #0fa958; }
.rb.zero { grid-column: 1; grid-row: 1 / 4; }
.rb.r1 { grid-row: 1; } .rb.r2 { grid-row: 2; } .rb.r3 { grid-row: 3; }
.rb.num.c1{grid-column:2}.rb.num.c2{grid-column:3}.rb.num.c3{grid-column:4}.rb.num.c4{grid-column:5}.rb.num.c5{grid-column:6}.rb.num.c6{grid-column:7}
.rb.num.c7{grid-column:8}.rb.num.c8{grid-column:9}.rb.num.c9{grid-column:10}.rb.num.c10{grid-column:11}.rb.num.c11{grid-column:12}.rb.num.c12{grid-column:13}
.rb.colbet { grid-column: 14; font-size: 11px; }
.rb.dz { grid-row: 4; } .rb.d1 { grid-column: 2 / 6; } .rb.d2 { grid-column: 6 / 10; } .rb.d3 { grid-column: 10 / 14; }
.rb.out { grid-row: 5; font-size: 12px; } .rb.o1{grid-column:2/4}.rb.o2{grid-column:4/6}.rb.o3{grid-column:6/8}.rb.o4{grid-column:8/10}.rb.o5{grid-column:10/12}.rb.o6{grid-column:12/14}
.rb .stake { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--gold); color: #000; font-size: 10px; min-width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed #fff; z-index: 2; }
.rb.hitbet { box-shadow: 0 0 0 3px var(--green) inset, 0 0 14px var(--green); }
@media (max-width: 600px) { .rl-board { grid-template-rows: repeat(3, 34px) 32px 32px; gap: 2px; } .rb { font-size: 11px; } .rb.out, .rb.dz { font-size: 10px; } .rb .stake { min-width: 20px; height: 20px; font-size: 9px; } }

/* ===== Rewards / store ===== */
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0; }
.streak div { background: var(--bg3); border-radius: 8px; padding: 10px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.streak div b { display: block; color: #fff; font-size: 14px; }
.streak div.done { background: #00e70122; color: var(--green); } .streak div.today { outline: 2px solid var(--gold); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pack { position: relative; background: linear-gradient(160deg, var(--bg3), var(--bg2)); border-radius: 14px; padding: 22px 16px; text-align: center; border: 2px solid transparent; }
.pack:hover { border-color: var(--green); }
.pack .coins { font-size: 26px; font-weight: 900; color: var(--gold); margin: 8px 0; }
.pack .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--red); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ad-modal .ad-slot { min-height: 250px; }
.ad-timer { font-size: 22px; font-weight: 900; text-align: center; margin: 10px 0; }

/* ===== Data tables (admin/history) ===== */
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dtable th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.dtable input, .dtable select { margin: 0; padding: 6px 8px; }
.pos { color: var(--green); } .neg { color: var(--red); }
.scroll-x { overflow-x: auto; }


/* ===================== WinBlip brand layer ===================== */
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #6a00ff55, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #d600c944, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='2'%3E%3Cpath d='M30 18c-6 8-14 12-14 19a7 7 0 0 0 14 2 7 7 0 0 0 14-2c0-7-8-11-14-19z'/%3E%3Cpath d='M90 78c6 6 12 10 12 16a6 6 0 0 1-12 1 6 6 0 0 1-12-1c0-6 6-10 12-16z' /%3E%3Cpath d='M84 20l6 9 6-9-3 12h-6z'/%3E%3Ccircle cx='30' cy='90' r='9'/%3E%3C/g%3E%3C/svg%3E"),
    var(--deep);
  background-attachment: fixed;
}
h1, h2, h3, .btn, .logo, .section-title, .spin-btn, .chip, .result, .win-banner, .tile-info b, .balance-chip b, .pack .coins, .table-head h1, .slot-head h1 {
  font-family: var(--font-head);
}
h1, h2 { font-weight: 800; letter-spacing: -.3px; }

/* glossy gold primary button (like the logo lettering) */
.btn-green, .btn-gold {
  background: linear-gradient(180deg, #fff3a6 0%, #ffd23f 22%, #ffc107 55%, #ff9800 100%);
  color: #3a0a5c; text-shadow: 0 1px 0 #fff6;
  box-shadow: 0 0 0 2px #ffe58a inset, 0 4px 0 #b85f00, 0 8px 24px #ffc10744;
  border-radius: 12px; font-weight: 800;
}
.btn-green:active, .btn-gold:active { transform: translateY(3px); box-shadow: 0 0 0 2px #ffe58a inset, 0 1px 0 #b85f00; }
.btn-ghost { background: linear-gradient(180deg, #4b1f80, #331060); box-shadow: 0 0 0 1px #7a3fd0 inset; }

/* top bar + nav */
.topbar { background: linear-gradient(90deg, #22004a, #3a0a6e 50%, #22004a); box-shadow: 0 2px 0 #6a00ff66, 0 6px 24px #000a; }
.logo img { height: 48px; filter: drop-shadow(0 2px 6px #0008); }
.balance-chip { background: #12002a; box-shadow: 0 0 0 1px #6a00ff inset; border-radius: 12px; }
.balance-chip b { color: var(--gold); }
.xpbar i { background: linear-gradient(90deg, var(--teal), var(--magenta)); }
.user-menu summary { background: linear-gradient(135deg, var(--purple), var(--magenta)); }
.sidebar { background: linear-gradient(180deg, #2d114d, #1f0840); border-right: 1px solid #4f2a80; }
.sidebar a.on { background: linear-gradient(90deg, #6a00ff, #6a00ff00); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.bottomnav { background: #22004a; border-top: 1px solid #6a00ff88; }
.bottomnav a:active { color: var(--gold); }

/* hero */
.hero {
  background:
    radial-gradient(circle at 85% 50%, #d600c955, transparent 45%),
    radial-gradient(circle at 10% 0%, #00e5ff22, transparent 40%),
    linear-gradient(120deg, #3a0a6e, #2d114d 55%, #4a0a5e);
  box-shadow: 0 0 0 1px #7a3fd0 inset, 0 20px 50px #0008;
  border-radius: 22px;
}
.hero h1 .gold, .gold { color: var(--gold); }
.hero-logo { width: min(340px, 80%); display: block; margin: -6px 0 6px -8px; filter: drop-shadow(0 8px 24px #6a00ff88); }
.hero-art { display: flex; gap: 8px; font-size: 84px; filter: drop-shadow(0 10px 30px #d600c988); }
.hero-art span { animation: float 3s ease-in-out infinite; }
.hero-art span:nth-child(2) { animation-delay: .4s; font-size: 100px; } .hero-art span:nth-child(3) { animation-delay: .8s; }
.auth-logo { display: block; width: 220px; margin: -6px auto 6px; filter: drop-shadow(0 6px 18px #6a00ff88); }
.auth-card, .panel { background: linear-gradient(160deg, #3a1466, #2d114d); box-shadow: 0 0 0 1px #5b2b99 inset, 0 16px 40px #0007; border-radius: 20px; }

/* ticker */
.ticker { background: #22004a; box-shadow: 0 0 0 1px #5b2b99 inset; border-radius: 14px; }
.ticker-label { color: var(--teal); }
.ticker-track i { color: var(--teal); }

/* tiles */
.game-tile { background: #2d114d; border-radius: 18px; box-shadow: 0 0 0 1px #5b2b99 inset; }
.game-tile:hover { box-shadow: 0 0 0 2px var(--gold), 0 14px 34px #6a00ff66; }
.tile-art { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--frame) 70%, #fff 0%), #2a0052 80%) center/cover; }
.tile-art.felt { background-color: #0d5a32; } .tile-art.wheel { background-color: #5b0f3c; } .tile-art.blue { background-color: #2a0a7e; }
.rtp-badge { color: var(--teal); background: #00e5ff1a; }
.section-title { font-weight: 800; }
.ad-slot { background: #22004a; border-color: #5b2b99; }

/* inputs */
input, select, textarea { background: #14002b; border-color: #4f2a80; border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
label.check input { accent-color: var(--gold); }

/* toasts */
.toast { background: #3d1a66; box-shadow: 0 0 0 1px #7a3fd0 inset, 0 10px 30px #000a; }
.toast.gold { background: linear-gradient(90deg, #8a4a00, #d68f00); }

/* slots */
.slot-wrap { background: radial-gradient(circle at 50% 0, #6a00ff, #2d114d 55%, #1a0033) center/cover; border-radius: 22px; box-shadow: 0 0 0 1px #7a3fd0 inset; }
.machine { background: linear-gradient(#12002acc, #000c); }
.reel { background: linear-gradient(#ffffff10, #ffffff24 50%, #ffffff10); }
.spin-btn {
  color: #3a0a5c;
  background: radial-gradient(circle at 35% 28%, #fff7c2, #ffd23f 35%, #ffc107 60%, #ff8f00);
  box-shadow: 0 0 0 4px #ffe58a inset, 0 6px 0 #b85f00, 0 10px 34px #ffc10777;
}
.spin-btn:active { box-shadow: 0 0 0 4px #ffe58a inset, 0 2px 0 #b85f00; }
.bet-box { background: #12002acc; box-shadow: 0 0 0 1px #5b2b99 inset; }
.round-btn { background: #4b1f80; }
.win-banner { border-color: var(--gold); background: #1a0033e6; }
.win-banner small { color: var(--teal); }
.win-banner.big { background: radial-gradient(#6a00ff, #1a0033ee); }

/* tables */
.felt-bg { background: radial-gradient(ellipse at 50% 25%, #8a1fff, #4a0a9e 55%, #1a0033); }
.blue-bg { background: radial-gradient(ellipse at 50% 20%, #d600c9, #5a0a7e 55%, #1a0033); }
.table { border-radius: 22px; box-shadow: 0 0 0 1px #7a3fd0 inset; }
.card.back { background: repeating-linear-gradient(45deg, #6a00ff 0 6px, #4a00b4 6px 12px); border-color: #ffc107; }
.result.win { border-color: var(--gold); color: var(--gold); }
.vp-pays tr.on { background: var(--gold); }
.chip.on { box-shadow: 0 0 0 3px var(--teal), 0 8px 14px #0008; }
.chip.c10 { background: #00b8d4; } .chip.c50 { background: #d600c9; } .chip.c100 { background: #2d114d; } .chip.c500 { background: #6a00ff; }
.wheel-wrap canvas { box-shadow: 0 0 0 8px #2d114d, 0 0 0 11px #ffc107, 0 14px 40px #000a; }
.rb.hitbet { box-shadow: 0 0 0 3px var(--gold) inset, 0 0 14px var(--gold); }

/* store / rewards */
.pack { background: linear-gradient(160deg, #4b1f80, #2d114d); box-shadow: 0 0 0 1px #6a3bb0 inset; border-radius: 18px; }
.pack:hover { border-color: var(--gold); }
.pack .badge { background: linear-gradient(90deg, var(--magenta), var(--purple)); }
.streak div { background: #22004a; }
.streak div.done { background: #00e5ff1f; color: var(--teal); }
.streak div.today { outline-color: var(--gold); }
.pos { color: #3dffa0; }
.alert-ok { background: #00e5ff14; border-color: var(--teal); }
.dlg { background: #2d114d; }
.site-footer { border-top-color: #4f2a80; }
@media (max-width: 600px) { .hero-art { display: none; } .hero { padding: 22px; min-height: 0; } }

/* square cover art: let it fill the tile edge to edge */
.tile-art[style*="url"] { background-size: cover !important; background-position: center !important; }
.game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.rb.zero.zt { grid-row: 1 / 3; grid-column: 1; } .rb.zero.zb { grid-row: 3 / 4; grid-column: 1; }

/* below-the-game area */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px auto 0; max-width: 900px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(100deg, #6a00ff, #d600c9); box-shadow: 0 10px 30px #6a00ff55; }
.promo b { display: block; font-family: var(--font-head); font-size: 17px; } .promo span { font-size: 14px; color: #f3e6ff; }
.promo .btn { flex: none; }
.game-page .section-title { max-width: 900px; margin-left: auto; margin-right: auto; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; max-width: 900px; margin: 0 auto; }
.rail-tile { flex: 0 0 132px; scroll-snap-align: start; text-decoration: none; border-radius: 14px; overflow: hidden; background: #2d114d; box-shadow: 0 0 0 1px var(--line) inset; }
.rail-tile .tile-art { display: grid; aspect-ratio: 1; background-size: cover; background-position: center; }
.rail-tile b { display: block; padding: 7px 9px; font-size: 13px; font-family: var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-tile:hover { box-shadow: 0 0 0 2px var(--gold); }
.wins-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.win-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #22004a; box-shadow: 0 0 0 1px #4f2a80 inset; font-size: 14px; }
.win-row b { color: var(--gold); font-family: var(--font-head); } .win-row i { font-style: normal; color: var(--teal); margin-left: 6px; }

/* image nav icons */
.bottomnav a { gap: 1px; font-weight: 600; }
.bottomnav img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 6px #0008); transition: transform .15s; }
.bottomnav a:active img { transform: scale(.9); }
.sidebar .nav-ico { width: 34px; height: 34px; object-fit: contain; margin: -6px 0; }

/* ===== Tap feedback, active nav, loading states ===== */
.bottomnav a { position: relative; -webkit-tap-highlight-color: transparent; }
.bottomnav a.on { color: #fff; }
.bottomnav a.on::before { content: ''; position: absolute; top: -6px; left: 22%; right: 22%; height: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.bottomnav a.on img { transform: translateY(-3px) scale(1.08); filter: drop-shadow(0 0 10px #ffc10788) drop-shadow(0 3px 6px #0008); }
.bottomnav a.tap img, .bottomnav a.tap span { animation: navpop .35s ease; }
@keyframes navpop { 0% { transform: scale(1); } 35% { transform: scale(.78); } 70% { transform: scale(1.15) translateY(-4px); } 100% { transform: scale(1.05) translateY(-3px); } }
.sidebar a:active, .btn:active, .game-tile:active, .rail-tile:active, .chip:active { transform: scale(.96); }
.game-tile, .rail-tile { transition: transform .12s, box-shadow .15s; }
.ripple { position: absolute; border-radius: 50%; background: #ffffff55; transform: scale(0); animation: ripple .5s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3); opacity: 0; } }
.btn, .sidebar a, .game-tile, .rail-tile { position: relative; overflow: hidden; }

/* button busy spinner */
.btn.loading { color: transparent !important; text-shadow: none; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid #3a0a5c55; border-top-color: #3a0a5c; animation: spin .7s linear infinite; }
.btn-ghost.loading::after { border-color: #ffffff44; border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page transition loader */
#page-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, #3a0a6eee, #1a0033f5); opacity: 0; pointer-events: none; transition: opacity .2s; }
#page-loader.show { opacity: 1; pointer-events: auto; }
#page-loader span { font: 700 15px var(--font-head); color: var(--muted); letter-spacing: .5px; }
.pl-chip { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; animation: plbob 1s ease-in-out infinite;
  background: conic-gradient(from 0deg, var(--gold), var(--magenta), var(--purple), var(--teal), var(--gold)); padding: 4px; box-shadow: 0 0 40px #d600c988; }
.pl-chip img { width: 100%; height: 100%; border-radius: 18px; display: block; }
@keyframes plbob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
#page-loader:not(:has(img)) .pl-chip { background: conic-gradient(var(--gold), var(--magenta), var(--purple), var(--gold)); animation: spin 1s linear infinite; border-radius: 50%; }

/* image shimmer until covers load */
.tile-art { position: relative; }
.tile-art.wait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #2d114d 20%, #4b1f80 40%, #2d114d 60%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.tile-art { transition: filter .3s; }

/* reels/cards waiting for the server */
.machine.busy::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 60px; height: 4px; margin-left: -30px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 200% 100%; animation: shimmer .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pl-chip, .tile-art.wait::after, .bottomnav a.tap img { animation: none; } }
.streak { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.streak div { min-width: 0; padding: 8px 2px; }
@media (max-width: 520px) { .streak { gap: 4px; } .streak div { font-size: 10px; } .streak div b { font-size: 11px; } }

/* No double-tap / pinch zoom: app-like feel on phones */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
button, a, .rb, .chip, .card, .cell, .reel, .machine { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input, select, textarea { font-size: 16px; } /* iPhone zooms into fields smaller than 16px */

/* ===== Slot bonus features ===== */
.fs-hud { display: none; justify-content: center; align-items: center; gap: 14px; margin: -2px 0 10px; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(90deg, #d600c9, #6a00ff); font: 700 14px var(--font-head); box-shadow: 0 0 24px #d600c988; }
.fs-hud.show { display: flex; animation: pop .4s; }
.fs-hud b { color: var(--gold); font-size: 16px; }
.fs-mult { background: var(--gold); color: #3a0a5c; padding: 2px 10px; border-radius: 20px; font-weight: 900; }
.slot-wrap.fs-on .machine { border-color: var(--magenta); box-shadow: 0 0 40px #d600c9aa, inset 0 0 20px #000; }
.slot-wrap.fs-on .spin-btn { background: radial-gradient(circle at 35% 28%, #ffd1fb, #ff4fe6 35%, #d600c9 65%, #7a00a0); color: #fff; box-shadow: 0 0 0 4px #ff9cf2 inset, 0 6px 0 #6a0080, 0 10px 34px #d600c977; }
.bonus-ov { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #3a0a6ef2, #0c0019f5); }
.bonus-ov.show { display: grid; animation: tin .3s; }
.bo-card { width: min(440px, 100%); max-height: 92vh; overflow: auto; text-align: center; padding: 22px 18px; border-radius: 24px;
  background: linear-gradient(160deg, #3d1a66, #22004a); box-shadow: 0 0 0 2px var(--gold), 0 0 60px #d600c977; }
.bo-card h2 { margin: 0 0 6px; font-size: 28px; color: var(--gold); text-shadow: 0 0 18px #ffc10766; letter-spacing: .5px; }
.bo-big { margin: 18px 0; } .bo-big b { display: block; font: 900 56px/1 var(--font-head); color: #fff; text-shadow: 0 0 24px #ffc107aa; font-variant-numeric: tabular-nums; }
.bo-big small { color: var(--muted); font-size: 15px; }
.bw-wrap { position: relative; width: min(330px, 82vw); aspect-ratio: 1; margin: 14px auto 18px; }
.bw-wrap canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 30px #000a); }
.bw-ptr { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 34px; color: var(--gold); text-shadow: 0 3px 6px #000; }
.bw-win { animation: pop .5s 2; }
.pk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; perspective: 800px; }
.pk-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .5s; }
.pk-tile span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pk-back { background: radial-gradient(circle, #6a00ff, #2d114d); box-shadow: 0 0 0 2px #7a3fd0 inset, 0 4px 10px #0008; }
.pk-back img { width: 80%; height: 80%; object-fit: contain; } .pk-back span { position: static; font-size: 30px; }
.pk-face { transform: rotateY(180deg); background: linear-gradient(160deg, #fff3a6, #ffc107 60%, #ff9800); color: #3a0a5c; font: 900 clamp(12px, 3.6vw, 16px) var(--font-head); box-shadow: 0 0 18px #ffc107aa; }
.pk-tile.open { transform: rotateY(180deg); cursor: default; }
.pk-tile.dim .pk-face { filter: grayscale(.7) brightness(.7); box-shadow: none; }
.pk-tile:not(.open):hover .pk-back { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 16px #ffc10788; }
.pk-total { font: 700 16px var(--font-head); margin-bottom: 12px; } .pk-total b { color: var(--gold); font-size: 20px; }

/* ===================== Lobby v2: rails + compact grid ===================== */
.rail-sec, .all-sec { margin: 22px 0 6px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rail-head .section-title { margin: 0; font-size: 18px; }
.rail-head .count { font: 700 12px var(--font-body); color: var(--muted); background: #ffffff14; padding: 2px 8px; border-radius: 10px; vertical-align: middle; margin-left: 4px; }
.rail-nav { display: none; gap: 6px; }
.rn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #2d114d; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; }
.rn:hover { box-shadow: 0 0 0 1px var(--gold) inset; color: var(--gold); }
@media (hover: hover) and (min-width: 700px) { .rail-nav { display: flex; } }

.rail2 { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail2::-webkit-scrollbar { display: none; }
.rail2 > .gt { flex: 0 0 clamp(112px, 29vw, 160px); scroll-snap-align: start; }
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 14px; }
@media (max-width: 520px) { .gt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } }

.gt { display: block; min-width: 0; text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent; }
.gt-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(100deg, #2d114d 20%, #4b1f80 40%, #2d114d 60%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite;
  box-shadow: 0 0 0 1px #ffffff14 inset, 0 6px 16px #0007; transition: transform .15s ease, box-shadow .15s ease; }
.gt-art.ok { animation: none; background: #2d114d; }
.gt-art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.gt-art.ok img { opacity: 1; }
.gt-emoji { font-size: 38px; }
.gt-name { display: block; margin-top: 7px; padding: 0 2px; font: 600 13px/1.25 var(--font-head); color: #e9ddff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt:hover .gt-art { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 12px 26px #6a00ff55; }
.gt:active .gt-art { transform: scale(.95); }
.gt-badge { position: absolute; top: 7px; left: 7px; padding: 2px 7px; border-radius: 8px; font: 800 10px var(--font-head); letter-spacing: .5px; color: #fff; box-shadow: 0 2px 6px #0008; }
.gt-badge.new { background: linear-gradient(90deg, #00b8d4, #00e5ff); color: #062a33; }
.gt-badge.hot { background: linear-gradient(90deg, #ff3d7f, #d600c9); }
.game-page .rail-sec { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ===================== Slot controls: fixed layout, spin never moves ===================== */
.slot-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.slot-controls > .bet-box { width: 100%; max-width: 170px; justify-content: space-between; }
.slot-controls > .bet-box:first-child { justify-self: start; }
.slot-controls > .bet-box:last-child { justify-self: end; }
.bet-box > div { flex: 1 1 0; min-width: 0; text-align: center; }
.bet-box b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.spin-btn { justify-self: center; }
@media (max-width: 400px) { .slot-controls { gap: 6px; } .bet-box b { font-size: 14px; } }
/* rails: show a peek of the next cover so people know they can swipe */
.rail2 > .gt { flex-basis: clamp(100px, 27vw, 156px); }
/* tighter bet/win boxes on phones so 4-5 digit values fit */
@media (max-width: 520px) {
  .slot-controls { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 8px; }
  .spin-btn { width: 80px; height: 80px; font-size: 16px; }
  .bet-box { gap: 4px; padding: 6px 6px; }
  .bet-box .round-btn { width: 30px; height: 30px; font-size: 18px; flex: none; }
  .round-btn.auto { padding: 0 8px; font-size: 11px; height: 30px; }
  .bet-box b { font-size: 14px; }
  .bet-box small { font-size: 10px; }
}
/* AUTO keeps its own width on phones */
.bet-box .round-btn.auto { width: auto; min-width: 54px; padding: 0 10px; flex: none; }
@media (max-width: 520px) { .bet-box .round-btn.auto { min-width: 46px; padding: 0 7px; font-size: 11px; } }

/* Live wins ticker: names scroll inside their own window, never over the label */
.ticker { position: relative; overflow: hidden; gap: 0; padding: 0; }
.ticker-label { position: relative; z-index: 2; flex: none; padding: 10px 14px; background: #22004a; box-shadow: 8px 0 12px -4px #22004a; }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.ticker-track { width: max-content; }
/* seamless marquee: content is duplicated and slides exactly one copy's width */
.ticker-track { animation: tickerloop var(--dur, 30s) linear infinite; gap: 0; }
.ticker-track .tick { padding-right: 28px; }
@keyframes tickerloop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ===================== Jackpots ===================== */
.jp-banner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.jp-card { position: relative; overflow: hidden; padding: 10px 8px; border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, #3d1a66, #22004a); box-shadow: 0 0 0 1px #6a3bb0 inset; }
.jp-card small { display: block; font: 800 11px var(--font-head); letter-spacing: 1px; color: var(--muted); }
.jp-card b { display: block; font: 900 clamp(14px, 4.2vw, 20px)/1.2 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-card.top { grid-column: 1 / -1; padding: 14px 10px; background: radial-gradient(circle at 50% -20%, #ffd23f55, transparent 60%), linear-gradient(120deg, #6a00ff, #d600c9);
  box-shadow: 0 0 0 2px var(--gold), 0 0 34px #d600c977; }
.jp-card.top small { color: #ffe9a6; font-size: 12px; letter-spacing: 2px; }
.jp-card.top b { font-size: clamp(30px, 9vw, 46px); color: var(--gold); text-shadow: 0 0 20px #ffc10799, 0 3px 0 #8a4a00; }
.jp-card.top::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, #ffffff40 50%, transparent 70%); transform: translateX(-100%); animation: jpshine 3.5s ease-in-out infinite; }
@keyframes jpshine { 60%, 100% { transform: translateX(100%); } }
.jp-card.major b { color: #ff7ce8; } .jp-card.minor b { color: var(--teal); } .jp-card.mini b { color: #b9ff6b; }
.jp-recent { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); padding: 2px 4px; }
.jp-recent small { font-weight: 700; color: #ffe9a6; } .jp-recent em { font-style: normal; color: #fff; font-weight: 700; }
.jp-bump { animation: jpbump .5s ease; }
@keyframes jpbump { 40% { transform: scale(1.08); filter: brightness(1.4); } }

.jp-strip { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; }
.jp-game { flex: none; padding: 6px 12px; border-radius: 12px; text-align: center; background: linear-gradient(120deg, #6a00ff, #d600c9); box-shadow: 0 0 0 2px var(--gold); }
.jp-game small { display: block; font: 800 9px var(--font-head); letter-spacing: 1.5px; color: #ffe9a6; }
.jp-game b { display: block; font: 900 17px var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.jp-mini-row { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.jp-pill { min-width: 0; padding: 4px 2px; border-radius: 9px; text-align: center; background: #12002acc; box-shadow: 0 0 0 1px #4f2a80 inset; }
.jp-pill i { display: block; font: 700 9px var(--font-head); font-style: normal; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.jp-pill b { display: block; font: 800 12px var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-pill.grand b { color: var(--gold); } .jp-pill.major b { color: #ff7ce8; } .jp-pill.minor b { color: var(--teal); } .jp-pill.mini b { color: #b9ff6b; }
@media (max-width: 380px) { .jp-game { padding: 5px 8px; } .jp-game b { font-size: 15px; } }

.gt-jp { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 8px; text-align: center;
  font: 800 11px var(--font-head); color: var(--gold); background: #12002ad9; box-shadow: 0 0 0 1px #ffc10766 inset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.jp-hit small { display: block; font: 800 13px var(--font-head); letter-spacing: 2px; color: #ffe9a6; margin-bottom: 4px; }
.jp-hit h2 { font-size: clamp(24px, 7vw, 32px); }
.jp-hit .bo-big b { color: var(--gold); font-size: clamp(40px, 12vw, 60px); }
.bo-card:has(.jp-hit) { box-shadow: 0 0 0 3px var(--gold), 0 0 90px #ffc107aa; background: radial-gradient(circle at 50% 0, #6a00ff, #22004a 70%); }
@media (prefers-reduced-motion: reduce) { .jp-card.top::after, .jp-bump { animation: none; } }

/* ---- Rewards: invite friends + home-screen app */
.invite-note { background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(250,204,21,.15)); border: 1px solid rgba(250,204,21,.4); border-radius: 14px; padding: 12px 14px; margin: 8px 0 14px; }
.ref-link { display: flex; gap: 8px; margin: 12px 0; }
.ref-link input { flex: 1; min-width: 0; font-size: 14px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: center; }
.ref-stats div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 4px; }
.ref-stats b { display: block; font-size: 20px; }
.ref-stats span { font-size: 12px; opacity: .7; }
.app-steps { margin: 10px 0 0; padding-left: 22px; line-height: 1.7; }
.ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 12px; line-height: 16px; }
.app-panel .done-msg { display: none; }
.app-panel.claimed .done-msg { display: block; }
.app-panel.claimed .todo-msg { display: none; }

[hidden] { display: none !important; }

/* ---- Notifications */
.user-menu summary { position: relative; }
.notif-dot { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font: 700 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px #1a0033; }
.notif-count { background: #ef4444; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; margin-left: 4px; }
.push-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.push-row h2 { margin: 0 0 4px; }
.push-row p { margin: 0; }
.push-daily { margin-top: 14px; }
.notif-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.notif { display: block; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; }
.notif.new { border-color: rgba(250,204,21,.55); background: rgba(250,204,21,.08); }
.notif-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.notif-top span { font-size: 12px; white-space: nowrap; }
.notif p { margin: 6px 0 0; opacity: .85; line-height: 1.45; }
.push-nudge { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.push-nudge-ico { font-size: 28px; }
.push-nudge-go { margin-left: auto; font-size: 28px; opacity: .6; }

/* ---- Anti-bot honeypot (hidden from people, visible to bots) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 8px 0 14px; }

/* ---- Bonus wheel art layers (assets/skins/wheel/) */
.bw-wrap.has-rim canvas { position: absolute; inset: 7.5%; width: 85%; height: 85%; filter: none; }
.bw-wrap.has-rim { filter: drop-shadow(0 12px 30px #000b); }
.bw-rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.bw-hub { position: absolute; left: 39%; top: 39%; width: 22%; height: 22%; z-index: 2; pointer-events: none; filter: drop-shadow(0 4px 8px #0009); }
.bw-ptr-img { position: absolute; left: 50%; top: -5%; width: 12%; transform: translateX(-50%); z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 6px #000a); }
.bw-wrap.spinning .bw-rim { animation: bwBulbs .35s steps(2) infinite; }
@keyframes bwBulbs { 0% { filter: brightness(1); } 100% { filter: brightness(1.35) saturate(1.2); } }
.bw-btn-art { background: none !important; border-style: solid; border-color: transparent; border-width: 0 34px; border-image: var(--art) 0 118 fill / 0 34px / 0 stretch;
  color: #5a1d00 !important; text-shadow: 0 1px 0 #fff8; height: 68px; box-shadow: none !important; font-weight: 900; letter-spacing: .5px; }
.bw-btn-art:disabled { opacity: 1; filter: saturate(.7) brightness(.9); }
.bo-card.bw-card-art { background: linear-gradient(#0c001966, #0c0019aa), var(--bg) center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .bw-wrap.spinning .bw-rim { animation: none; } }

/* ---- Promo codes */
.code-form { display: flex; gap: 8px; margin-top: 10px; }
.code-form input { flex: 1; min-width: 0; font: 800 18px/1 Montserrat, system-ui; letter-spacing: 2px; text-transform: uppercase; text-align: center; }
.code-form input::placeholder { letter-spacing: 1px; font-weight: 600; opacity: .5; }

/* ---- Chip art: value printed on the blank center */
.chip.img { position: relative; width: 58px; height: 58px; filter: drop-shadow(0 3px 3px #0008); box-shadow: none; }
.chip.img.on { box-shadow: 0 0 0 3px var(--gold), 0 0 18px #ffc107aa; filter: drop-shadow(0 8px 10px #0009); }
.chip.img img { position: absolute; inset: 0; pointer-events: none; }
.chip-val { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; font: 900 15px/1 Montserrat, system-ui; color: #fff;
  -webkit-text-stroke: 3px #1a0033cc; paint-order: stroke fill; text-shadow: 0 2px 3px #0009; letter-spacing: -.3px; }
.chip.c1000 .chip-val { color: #fff7d6; -webkit-text-stroke-color: #5a3600; }
.rb .stake.art { background: center / cover no-repeat; border: 0; color: #fff; font-weight: 900; -webkit-text-stroke: 2px #1a0033; paint-order: stroke fill; filter: drop-shadow(0 2px 2px #000a); min-width: 30px; height: 30px; }
@media (max-width: 600px) { .chip.img { width: 50px; height: 50px; } .chip-val { font-size: 13px; } .rb .stake.art { min-width: 24px; height: 24px; font-size: 9px; } }

/* ---- Roulette art: rim image replaces the CSS ring */
.wheel-wrap.has-rim canvas { box-shadow: none; border-radius: 0; filter: drop-shadow(0 14px 30px #000b); }
.wheel-wrap.has-rim .wheel-pointer { top: 4%; font-size: 22px; filter: drop-shadow(0 2px 3px #000); }
@media (max-width: 600px) { .chips { gap: 5px; } .chip.img { width: 46px; height: 46px; } .chip-val { font-size: 12px; } }

/* ---- Tall table-game tiles (3:4) */
.rail2 > .gt.tall { flex-basis: clamp(120px, 31vw, 180px); }
.gt.tall .gt-art { aspect-ratio: 3 / 4; }

/* ---- Baccarat */
.bac-road { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 22px; margin: 2px auto 10px; max-width: 360px; }
.bead { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 800 10px var(--font-head); font-style: normal; color: #fff; box-shadow: inset 0 -2px 0 #0004; }
.bead.P { background: #2f6bff; } .bead.B { background: #e0263c; } .bead.T { background: #12a557; }
.bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bac-side { text-align: center; padding: 8px 4px 10px; border-radius: 16px; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; min-width: 0; }
.bac-side.p .hand-label { color: #8fb1ff; } .bac-side.b .hand-label { color: #ff8f9c; }
.bac-side.won { border-color: var(--gold); box-shadow: 0 0 24px #ffc10766, inset 0 0 18px #ffc10722; }
.bac-hand { min-height: 96px; justify-content: center; }
.bac-hand .card { width: 54px; height: 76px; }
.bac-hand.hand .card + .card { margin-left: -18px; }
.bac-hand.hand .card:nth-child(3) { margin-left: 6px; transform: rotate(90deg); }
.bac .result { position: relative; display: table; margin: 6px auto; }
.bac .result:not(.show) { visibility: hidden; }
.bac-spots { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; margin: 10px 0 14px; }
.bac-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 22px; border-radius: 16px; cursor: pointer;
  border: 2px solid; background: #0005; color: #fff; font-family: var(--font-head); -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.bac-spot:active { transform: scale(.96); }
.bac-spot.p { border-color: #2f6bff; background: linear-gradient(#2f6bff33, #2f6bff11); }
.bac-spot.b { border-color: #e0263c; background: linear-gradient(#e0263c33, #e0263c11); }
.bac-spot.t { border-color: #12a557; background: linear-gradient(#12a55733, #12a55711); }
.bs-name { font-weight: 900; font-size: 16px; letter-spacing: .5px; }
.bs-pay { font-size: 12px; opacity: .8; }
.bac-spot .stake { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); display: none; min-width: 34px; height: 34px; padding: 0 4px;
  border-radius: 50%; background: var(--gold) center / cover no-repeat; color: #1a0033; font: 900 11px/34px var(--font-head); text-align: center; box-shadow: 0 3px 6px #0009; }
.bac-spot .stake.on { display: block; }
.bac-spot .stake.art { color: #fff; -webkit-text-stroke: 2px #1a0033; paint-order: stroke fill; background-color: transparent; box-shadow: none; filter: drop-shadow(0 3px 3px #000a); }
@media (min-width: 700px) { .bac-hand .card { width: 70px; height: 98px; } .bac-hand { min-height: 120px; } }

/* ---- Icon art (assets/skins/global/icon-*.webp, btn-spin.webp) */
.icon-btn.art { background: none; padding: 0; width: 42px; height: 42px; position: relative; filter: drop-shadow(0 3px 4px #0009); transition: transform .1s, filter .2s; }
.icon-btn.art:active { transform: scale(.9); }
.icon-btn.art img { width: 100%; height: 100%; display: block; }
.icon-btn.art.off { filter: grayscale(.85) brightness(.7); }
.icon-btn.art.off::after { content: ''; position: absolute; left: 50%; top: 8%; width: 4px; height: 84%; border-radius: 2px; background: #ff3d5a; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 2px #1a0033; }
.spin-btn.art { background: var(--art) center / contain no-repeat !important; box-shadow: none !important; color: #5a1d00; text-shadow: 0 1px 0 #fff9; filter: drop-shadow(0 8px 14px #000a) drop-shadow(0 0 16px #ffc10766); }
.spin-btn.art:active { transform: scale(.94); box-shadow: none; }
.spin-btn.art:disabled { filter: grayscale(.5) brightness(.85); }
.promo-ico { width: 30px; height: 30px; vertical-align: -8px; margin-right: 2px; filter: drop-shadow(0 2px 3px #0008); }
.h1-ico { width: 44px; height: 44px; vertical-align: -10px; }

/* ---- Pay table panel art: stretch to fit, keep rows inside the gold frame */
.vp-pays.art { border-collapse: separate; border-spacing: 0; border-style: solid; border-color: transparent; border-width: 24px 30px; border-radius: 0; overflow: visible;
  background: var(--art) center / 100% 100% no-repeat; background-origin: border-box; filter: drop-shadow(0 8px 18px #0009); }
.vp-pays.art td { padding: 3px 6px; }
.vp-pays.art tr.on td { background: var(--gold); }
.vp-pays.art tr.on td:first-child { border-radius: 6px 0 0 6px; } .vp-pays.art tr.on td:last-child { border-radius: 0 6px 6px 0; }
/* Bet line readable over any table art */
.table .bet-line { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 14px; border-radius: 999px; background: #120022cc; box-shadow: 0 2px 10px #0008; }

/* ---- Coin icon art */
.coin-ico { width: 1.25em; height: 1.25em; vertical-align: -.25em; filter: drop-shadow(0 1px 2px #0008); }
.balance-chip .coin-ico { width: 26px; height: 26px; vertical-align: middle; }

/* ---- Baccarat art: felt print + plaque betting spots */
.bac-mid { position: relative; display: grid; place-items: center; min-height: 64px; margin: 4px 0; }
.bac-mid .felt-print { width: min(100%, 380px); height: auto; opacity: .95; }
.bac .bac-mid .result { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%) scale(.7); white-space: nowrap; }
.bac .bac-mid .result.show { transform: translate(-50%, -50%) scale(1); }
.bac-spot.art { border: 0; background: var(--art) center / 100% 100% no-repeat; padding: 18px 6px 24px; filter: drop-shadow(0 6px 10px #0009); }
.bac-spot.art .bs-name { text-shadow: 0 2px 4px #000c; }
.bac-spot.art .bs-pay { opacity: .9; text-shadow: 0 1px 3px #000c; }
.bac-mid .felt-print { transition: opacity .3s; }
.bac-mid:has(.result.show) .felt-print { opacity: .2; }
