/* Shared styles for the mini-games (loads after pages.css) */

.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.game-head .g-ic { font-size: 1.6rem; }
.game-head h1 { font-size: 1.35rem; font-weight: 900; }
.game-head .g-sub { font-size: 0.8rem; color: var(--muted); }

.stage {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, var(--surface2) 75%);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px;
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
  min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden; text-align: center;
}
.big-mult { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.big-mult.win { color: var(--green); }
.big-mult.lose { color: var(--red); }
.big-mult.idle { color: var(--muted); }
.stage .sub { font-size: 0.85rem; color: var(--muted); }
.payout-pill { font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; }
.payout-pill.win { background: rgba(41,196,99,0.15); color: var(--green); }
.payout-pill.lose { background: rgba(232,17,60,0.12); color: var(--red); }

/* bet bar */
.bet-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; }
.bet-row { display: flex; align-items: stretch; gap: 8px; }
.bet-input { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.bet-input span { color: var(--muted); font-weight: 700; }
.bet-input input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-size: 1.05rem; font-weight: 800; padding: 13px 8px; outline: none; }
.bet-adj { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 800; padding: 0 14px; cursor: pointer; font-size: 0.82rem; }
.bet-adj:hover { border-color: #c3ccda; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-field label { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 5px; font-weight: 700; }
.mini-field input, .mini-field select { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font-weight: 700; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--muted); font-weight: 800; cursor: pointer; font-size: 0.82rem; }
.seg button.active { border-color: var(--green); color: var(--green); background: rgba(41,196,99,0.08); }

.play-btn { width: 100%; margin-top: 14px; background: linear-gradient(180deg, var(--green), var(--green2)); color: #04120a; border: none; border-radius: 14px; padding: 16px; font-size: 1.05rem; font-weight: 900; cursor: pointer; transition: filter .12s, transform .05s; }
.play-btn:hover { filter: brightness(1.05); }
.play-btn:active { transform: scale(0.99); }
.play-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.play-btn.cashout { background: linear-gradient(180deg, #ffb648, #ff8a3d); color: #2a1500; }

.fair-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 10px; word-break: break-all; }
.fair-note b { color: #6f7a8d; }

/* ================= Casino lobby (real-site look) ================= */
.casino { padding-top: 14px; }

/* Subtle animated mesh background (GPU-friendly: 2 blurred blobs) */
.mesh-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh-bg::before, .mesh-bg::after { content: ""; position: absolute; width: 60vw; max-width: 560px; height: 60vw; max-height: 560px; border-radius: 50%; filter: blur(90px); opacity: .30; will-change: transform; }
.mesh-bg::before { background: radial-gradient(circle, #ef2f4b, transparent 62%); top: -18%; left: -14%; animation: meshA 20s ease-in-out infinite; }
.mesh-bg::after { background: radial-gradient(circle, #6d28d9, transparent 62%); bottom: -22%; right: -14%; animation: meshB 24s ease-in-out infinite; }
[data-theme="dark"] .mesh-bg::before, [data-theme="dark"] .mesh-bg::after { opacity: .42; }
@keyframes meshA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes meshB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw, -5vh) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .mesh-bg::before, .mesh-bg::after { animation: none; } }

.nav .dep-btn { display: none; }
@media (max-width: 720px) { .nav .dep-btn { display: inline-flex; } }

/* Premium wallet hero card */
.wallet-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 15px 18px 16px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(125deg, #1b1040 0%, #3a1f7a 46%, #12b76a 165%);
  box-shadow: 0 16px 40px rgba(45,25,100,.32);
}
.wallet-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(62% 120% at 86% -12%, rgba(255,255,255,.20), transparent 60%); pointer-events: none; }
.wallet-hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); animation: whShine 5.5s ease-in-out infinite; }
@keyframes whShine { 0% { left: -60%; } 40%, 100% { left: 140%; } }
.wallet-hero > * { position: relative; z-index: 1; }
.wh-top { display: flex; align-items: center; justify-content: space-between; }
.wh-user { display: flex; align-items: center; gap: 11px; }
.wh-avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #2a1560;
  background: linear-gradient(180deg, #ffd76a, #f0a500); box-shadow: 0 6px 16px rgba(240,165,0,.42); text-transform: uppercase; }
.wh-meta { display: flex; flex-direction: column; gap: 4px; }
.wh-meta .hi { font-size: .96rem; font-weight: 800; opacity: .96; }
.wh-meta .vip { align-self: flex-start; font-size: .62rem; font-weight: 900; color: #3a2400; background: linear-gradient(180deg, #ffe08a, #f5b73c); border: none; padding: 3px 10px; border-radius: 999px; }
.wallet-hero .bell { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); color: #fff; }
.wallet-hero .bell .bell-dot { box-shadow: 0 0 0 2px #2a1560; }
.wh-bal { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; gap: 10px; }
.wh-bal-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wh-lbl { font-size: .66rem; opacity: .82; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.wh-amt { font-family: Anton, Impact, sans-serif; font-size: 2.05rem; line-height: 1; letter-spacing: .5px; color: #fff; }
.wh-bonus { font-size: .68rem; opacity: .92; margin-top: 4px; }
.wh-bonus b { color: #ffe08a; }
.wh-add { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #1b1040; font-weight: 900; font-size: .82rem; padding: 11px 16px; border-radius: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.28); transition: transform .1s; }
.wh-add:active { transform: scale(.96); }

/* Greeting + VIP + bell */
.greet { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.greet-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.greet .hi { font-size: 1.05rem; font-weight: 800; }
.greet .hi b { font-weight: 900; }
.greet .vip { font-size: 0.7rem; font-weight: 900; color: #ffd54a; background: linear-gradient(180deg, rgba(255,200,60,.16), rgba(255,150,0,.08)); border: 1px solid rgba(255,200,80,.4); padding: 4px 10px; border-radius: 999px; }
.bell { position: relative; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.bell .bell-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--surface2); }
.bell .bell-dot.hidden { display: none; }

/* Jackpot */
.jackpot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, #2b1667, #4a2a8f); border: 1px solid rgba(255,200,80,.45); border-radius: 14px; padding: 11px 14px;
  box-shadow: 0 10px 26px rgba(74,42,143,.28); }
.jp-label { font-size: 0.72rem; font-weight: 900; letter-spacing: .5px; color: #ffd54a; }
.jp-amt { font-family: Anton, Impact, sans-serif; font-size: clamp(1.4rem, 6vw, 2rem); color: #ffe27a; letter-spacing: 1px; text-shadow: 0 2px 0 #7a4d00, 0 0 16px rgba(255,210,74,.5); }

/* Promo carousel */
.carousel { margin-bottom: 16px; overflow: hidden; padding-bottom: 4px; }
.car-track { display: flex; transition: transform .4s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.promo {
  position: relative; flex: 0 0 100%; display: block; border-radius: 18px; overflow: hidden; min-height: 150px;
  padding: 20px 22px; color: #fff;
  background: #2a0f45 var(--bg) right center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(90,20,140,.35); border: 1px solid rgba(255,200,90,.22);
}
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,4,32,.94) 0%, rgba(15,4,32,.55) 42%, rgba(15,4,32,0) 72%); }
.promo-txt { position: relative; z-index: 1; max-width: 68%; }
.promo-kicker { display: inline-block; font-size: 0.62rem; font-weight: 900; letter-spacing: 1px; color: #ffd54a; background: rgba(255,180,0,.15); border: 1px solid rgba(255,200,80,.4); padding: 3px 9px; border-radius: 999px; }
.promo-txt h2 { font-size: clamp(1.2rem, 5vw, 1.7rem); font-weight: 900; margin: 8px 0 2px; line-height: 1.1; }
.promo-txt h2 b { color: #ffd54a; }
.promo-txt p { font-size: 0.78rem; color: #e6d8ff; margin-bottom: 12px; }
.promo-btn { display: inline-block; background: linear-gradient(180deg, #ffd24a, #f0952e); color: #3a2400; font-weight: 900; font-size: 0.82rem; padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 0 #a85a06; }
.promo:active .promo-btn { transform: translateY(2px); box-shadow: none; }
.car-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.car-dot { width: 7px; height: 7px; border-radius: 999px; border: none; background: var(--line); cursor: pointer; transition: .2s; padding: 0; }
.car-dot.active { width: 20px; background: linear-gradient(90deg, #ffd24a, #f0952e); }

/* ---- Smart game promo banners (weighted rotation) ---- */
.gp-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; gap: 8px; }
.gp-head h3 { font-size: 1.05rem; font-weight: 900; margin: 0; }
.gp-shuffle {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface2); color: var(--muted);
  font-size: .72rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.gp-shuffle:hover { border-color: #c3ccda; color: var(--text); }
.gp-carousel { margin-bottom: 16px; overflow: hidden; padding-bottom: 4px; }
.gp-track { display: flex; transition: transform .45s cubic-bezier(.2,.7,.2,1); touch-action: pan-y; }
.gp-slide {
  position: relative; flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center;
  min-height: 156px; border-radius: 20px; overflow: hidden; padding: 18px 108px 18px 20px;
  color: #fff; text-decoration: none; isolation: isolate;
  box-shadow: 0 14px 34px rgba(29,41,74,.22); border: 1px solid rgba(255,255,255,.18);
  transition: transform .14s, box-shadow .14s;
}
.gp-slide:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(29,41,74,.28); }
.gp-slide:active { transform: scale(.985); }
.gp-slide::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(72% 130% at 100% 0%, rgba(255,255,255,.22), transparent 58%); pointer-events: none; }
.gp-slide > * { position: relative; z-index: 1; }
.gp-slide::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); animation: featShine 6s ease-in-out infinite; }
.gp-art {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 84px; height: 84px; border-radius: 16px; object-fit: cover; z-index: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.55);
}
.gp-kicker { display: inline-flex; align-self: flex-start; font-size: .58rem; font-weight: 900; letter-spacing: .7px;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.28); backdrop-filter: blur(3px); text-transform: uppercase; }
.gp-title { font-family: Anton, Impact, sans-serif; font-size: 1.75rem; letter-spacing: .5px; margin: 8px 0 2px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.32); }
.gp-sub { font-size: .74rem; opacity: .92; line-height: 1.35; margin-bottom: 6px; max-width: 92%; }
.gp-hint { font-size: .64rem; opacity: .78; font-weight: 700; margin-bottom: 10px; font-style: italic; }
.gp-cta { align-self: flex-start; display: inline-flex; background: #fff; color: #16181f; font-weight: 900; font-size: .8rem; padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.gp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gp-dot { width: 7px; height: 7px; border-radius: 999px; border: none; background: var(--line); cursor: pointer; transition: .2s; padding: 0; }
.gp-dot.active { width: 20px; background: linear-gradient(90deg, #ffd24a, #f0952e); }

.gp-aviator { background: linear-gradient(120deg, #a60c2a 0%, #ef2f4b 48%, #ff8a3d 120%); }
.gp-ustime { background: linear-gradient(120deg, #3a0818 0%, #8b2038 42%, #c98a1a 130%); }
.gp-rummy { background: linear-gradient(120deg, #46188a 0%, #6d28d9 48%, #12b76a 135%); }
.gp-teenpatti { background: linear-gradient(120deg, #1a4d2e 0%, #2d6a4f 45%, #d4a017 120%); }
.gp-andarbahar { background: linear-gradient(120deg, #0f4c5c 0%, #1b7a8c 50%, #f0952e 130%); }
.gp-dice { background: linear-gradient(120deg, #1e3a5f 0%, #3b82f6 50%, #93c5fd 130%); }
.gp-limbo { background: linear-gradient(120deg, #312e81 0%, #6366f1 48%, #a78bfa 130%); }
.gp-mines { background: linear-gradient(120deg, #14532d 0%, #22c55e 42%, #fbbf24 125%); }
.gp-plinko { background: linear-gradient(120deg, #7c2d12 0%, #ea580c 48%, #facc15 125%); }
.gp-coinflip { background: linear-gradient(120deg, #713f12 0%, #d97706 48%, #fde047 125%); }
.gp-wheel { background: linear-gradient(120deg, #581c87 0%, #a855f7 48%, #f472b6 125%); }
.gp-goldenwheel { background: linear-gradient(120deg, #422006 0%, #b45309 45%, #fde68a 125%); }
.gp-hilo { background: linear-gradient(120deg, #7f1d1d 0%, #dc2626 48%, #fca5a5 125%); }
.gp-aviator .gp-cta { color: #c81031; }
.gp-ustime .gp-cta { color: #6b1028; }
.gp-rummy .gp-cta { color: #5b21b6; }

/* Floating game nudge toast */
.gp-toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 180;
  transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.gp-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.gp-toast-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1b1040, #3a1f7a 55%, #12b76a 160%);
  border: 1px solid rgba(255,255,255,.22); box-shadow: 0 14px 36px rgba(20,10,50,.45);
}
.gp-toast-link img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.45); }
.gp-toast-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gp-toast-tag { font-size: .58rem; font-weight: 900; letter-spacing: .5px; opacity: .85; text-transform: uppercase; }
.gp-toast-txt b { font-size: .95rem; font-weight: 900; }
.gp-toast-txt span:last-child { font-size: .72rem; opacity: .88; }
.gp-toast-go { flex: 0 0 auto; font-size: .78rem; font-weight: 900; background: #fff; color: #1b1040; padding: 8px 12px; border-radius: 999px; }
.gp-toast-x {
  position: absolute; top: -8px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.55); color: #fff; font-size: .82rem; cursor: pointer; z-index: 2;
}
@media (min-width: 640px) {
  .gp-toast { left: auto; right: 16px; max-width: 380px; }
}

/* Search */
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 12px; }
.search-bar .s-ic { color: var(--muted); }
.search-bar input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 0.92rem; padding: 12px 0; font-weight: 600; }

/* Recently played rail */
.rail { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-tile { flex: 0 0 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(29,41,74,.12); }
.rail-tile img { width: 96px; height: 96px; object-fit: cover; display: block; }
.recent-head { margin-bottom: 8px; }
.hidden { display: none !important; }
.no-results { text-align: center; color: var(--muted); padding: 30px; font-weight: 700; }

/* Live wins ticker */
.ticker { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 16px; overflow: hidden; }
.ticker-ic { flex: 0 0 auto; font-size: 0.66rem; font-weight: 900; color: #cf8a00; white-space: nowrap; }
.ticker-mask { position: relative; flex: 1; overflow: hidden; height: 20px; }
.ticker-track { position: absolute; display: flex; gap: 26px; white-space: nowrap; animation: tickerScroll 40s linear infinite; will-change: transform; }
.ticker .tk { font-size: 0.76rem; color: var(--muted); }
.ticker .tk b { color: var(--text); }
.ticker .tk-amt { color: var(--green); font-weight: 800; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Category chips */
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--muted); font-weight: 800; font-size: 0.82rem; cursor: pointer; white-space: nowrap; transition: .12s; }
.cat:hover { border-color: #c3ccda; color: var(--text); }
.cat.active { background: linear-gradient(180deg, #ffd24a, #f0952e); color: #3a2400; border-color: transparent; }

/* Section header */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 10px; }
.sec-head h3 { font-size: 1.05rem; font-weight: 900; }
.sec-count { font-size: 0.76rem; color: var(--muted); font-weight: 700; }

/* Trust row */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; font-weight: 700; }

/* ---- Featured hero cards (Aviator + Rummy spotlight) ---- */
.featured { display: grid; gap: 12px; margin-bottom: 16px; }
.feat-card {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 132px; border-radius: 20px; overflow: hidden; padding: 18px 108px 18px 20px;
  color: #fff; text-decoration: none; isolation: isolate;
  box-shadow: 0 14px 34px rgba(29,41,74,.20); border: 1px solid rgba(255,255,255,.16);
  transition: transform .14s, box-shadow .14s;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(29,41,74,.26); }
.feat-card:active { transform: scale(.985); }
.feat-card.aviator { background: linear-gradient(120deg, #a60c2a 0%, #ef2f4b 48%, #ff8a3d 120%); }
.feat-card.rummy { background: linear-gradient(120deg, #46188a 0%, #6d28d9 48%, #12b76a 135%); }
.feat-card.ustime { background: linear-gradient(120deg, #3a0818 0%, #8b2038 42%, #c98a1a 130%); }
.feat-card::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 130% at 100% 0%, rgba(255,255,255,.22), transparent 58%); pointer-events: none; }
.feat-card > * { position: relative; z-index: 1; }
.feat-art {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 80px; height: 80px; border-radius: 15px; object-fit: cover; z-index: 1;
  box-shadow: 0 10px 22px rgba(0,0,0,.38); border: 2px solid rgba(255,255,255,.55);
}
.feat-badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 0.6rem; font-weight: 900; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.26); backdrop-filter: blur(3px); text-transform: uppercase; }
.feat-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: livePulse 1.5s infinite; }
.feat-title { font-family: Anton, Impact, sans-serif; font-size: 1.8rem; letter-spacing: .6px; margin: 9px 0 2px; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.32); }
.feat-sub { font-size: 0.76rem; opacity: .92; line-height: 1.35; margin-bottom: 12px; }
.feat-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #16181f; font-weight: 900; font-size: 0.82rem; padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.feat-card.aviator .feat-play { color: #c81031; }
.feat-card.rummy .feat-play { color: #5b21b6; }
.feat-card.ustime .feat-play { color: #6b1028; }
.feat-card.ustime::after { animation-delay: .8s; }
.feat-card:hover .feat-play { animation: featPulse 1.1s ease-in-out infinite; }
@keyframes featPulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* glossy light sweep across the featured cards */
.feat-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.30), transparent); transform: skewX(-18deg); animation: featShine 5s ease-in-out infinite; }
.feat-card.rummy::after { animation-delay: 1.6s; }
@keyframes featShine { 0% { left: -60%; } 42%, 100% { left: 135%; } }

/* ---- Lobby (image tiles) ---- */
.lobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.game-tile {
  position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  box-shadow: 0 6px 16px rgba(29,41,74,.10); transition: transform .14s, box-shadow .14s, border-color .14s;
}
.game-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-tile:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 26px rgba(29,41,74,.20); }
.game-tile:active { transform: scale(.98); }
.game-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 52%, rgba(8,12,28,.30)); opacity: 0; transition: opacity .2s; }
.game-tile:hover::after { opacity: 1; }
.game-tile .badge {
  position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 0.6rem; font-weight: 900; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 999px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.game-tile .badge.live { background: linear-gradient(180deg, #ff4d5e, #d81e37); }
.game-tile .badge.multi { background: linear-gradient(180deg, #ffb648, #f38712); color: #3a2400; }
.game-tile .badge.hot { background: linear-gradient(180deg, #ff8a3d, #e8113c); }
.game-tile .badge.new { background: linear-gradient(180deg, #34d399, #0e9f5b); }
/* spotlight tile — Ustime Market highlight */
.game-tile.spotlight {
  border: 2px solid #e6a817;
  box-shadow: 0 0 0 1px rgba(230,168,23,.35), 0 10px 28px rgba(139,32,56,.28);
  animation: spotGlow 2.4s ease-in-out infinite;
}
.game-tile.spotlight:hover { border-color: #ffd24a; box-shadow: 0 0 0 2px rgba(255,210,74,.45), 0 14px 32px rgba(139,32,56,.34); }
.game-tile .badge.spot { top: auto; bottom: 34px; right: 8px; background: linear-gradient(180deg, #ff8a3d, #e8113c); }
@keyframes spotGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(230,168,23,.35), 0 10px 28px rgba(139,32,56,.28); }
  50% { box-shadow: 0 0 0 3px rgba(255,210,74,.55), 0 12px 32px rgba(139,32,56,.36); }
}
@media (prefers-reduced-motion: reduce) { .game-tile.spotlight { animation: none; } }
/* rank number chip (top-left, below fav) */
.game-tile .tile-rank { position: absolute; top: 6px; left: 6px; z-index: 3; min-width: 22px; height: 22px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 900; color: #3a2400;
  background: linear-gradient(180deg, #ffd76a, #f0a500); border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.35); font-family: Anton, Impact, sans-serif; }
.game-tile .tile-rank + .fav { left: auto; right: 6px; } /* move heart to the right when ranked */
[data-theme="dark"] .game-tile:not(.loaded) { background: linear-gradient(100deg, #1a2033 30%, #232c45 50%, #1a2033 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* favorite heart */
.game-tile .fav { position: absolute; top: 6px; left: 6px; z-index: 3; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; backdrop-filter: blur(2px); transition: transform .1s; }
.game-tile .fav:active { transform: scale(.85); }
.game-tile .fav.on { color: #ff5b7f; }
/* players online */
.game-tile .tile-live { position: absolute; bottom: 6px; left: 6px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font-size: 0.6rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.5); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(2px); }
.game-tile .tile-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 5px var(--green); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
/* skeleton shimmer until image loads */
.game-tile img { opacity: 0; transition: opacity .3s; }
.game-tile.loaded img { opacity: 1; }
.game-tile:not(.loaded) { background: linear-gradient(100deg, #eef2f8 30%, #f8fafd 50%, #eef2f8 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Daily bonus modal */
.db-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(6,2,14,.8); display: none; align-items: center; justify-content: center; padding: 20px; }
.db-overlay.show { display: flex; }
.db-modal { position: relative; width: 100%; max-width: 340px; text-align: center; padding: 26px 22px 20px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #3a2159, #1c1030); border: 1px solid rgba(255,200,90,.35); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.db-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,200,60,.4), transparent 65%); pointer-events: none; }
.db-gift { font-size: 3.4rem; position: relative; animation: dbBounce 1.4s ease-in-out infinite; }
@keyframes dbBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.db-modal h2 { font-family: Anton, Impact, sans-serif; font-size: 1.6rem; margin: 4px 0 2px; color: #ffd54a; letter-spacing: 1px; }
.db-modal p { color: #d9c9f2; font-size: 0.86rem; margin-bottom: 10px; }
.db-amt { font-family: Anton, Impact, sans-serif; font-size: 2.6rem; color: #ffe27a; text-shadow: 0 2px 0 #7a4d00, 0 0 18px rgba(255,210,74,.6); margin-bottom: 14px; }
.db-claim { width: 100%; border: none; border-radius: 12px; padding: 14px; font-weight: 900; font-size: 1.02rem; cursor: pointer; background: linear-gradient(180deg, #ffd24a, #f0952e); color: #3a2400; box-shadow: 0 4px 0 #a85a06; }
.db-claim:disabled { opacity: .8; }
.db-close { display: block; margin: 10px auto 0; background: none; border: none; color: var(--muted); font-size: 0.82rem; cursor: pointer; }

/* legacy emoji cards (kept for any other page) */
.lobby-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; transition: transform .12s, border-color .12s; position: relative; overflow: hidden;
}
.lobby-card:hover { transform: translateY(-2px); border-color: var(--green); }
.lobby-card .emoji { font-size: 2rem; }
.lobby-card .nm { font-weight: 800; }
.lobby-card .tag { font-size: 0.68rem; color: var(--muted); }
.lobby-card.feat { grid-column: span 3; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; background: linear-gradient(120deg, rgba(41,196,99,0.12), transparent); }
.lobby-card.feat .emoji { font-size: 2.4rem; }
.lobby-card .live { position: absolute; top: 8px; right: 8px; font-size: 0.6rem; font-weight: 800; color: var(--green); background: rgba(41,196,99,0.15); padding: 2px 7px; border-radius: 999px; }

/* ---- 3D Dice cube ---- */
.dice3d { width: 88px; height: 88px; perspective: 640px; margin: 4px auto 2px; }
.cube { position: relative; width: 88px; height: 88px; transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.2,.85,.3,1); transform: rotateX(-24deg) rotateY(24deg); }
.cube.rolling { transition: none; }
.cube .face {
  position: absolute; width: 88px; height: 88px; border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #dfe3ea); box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 12px; gap: 3px;
}
.cube .face .pip { width: 13px; height: 13px; border-radius: 50%; background: #1a1d24; align-self: center; justify-self: center; box-shadow: inset 0 -1px 2px rgba(255,255,255,.3); }
.cube .f1 { transform: rotateY(0deg) translateZ(44px); }
.cube .f2 { transform: rotateY(90deg) translateZ(44px); }
.cube .f3 { transform: rotateY(180deg) translateZ(44px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(44px); }
.cube .f5 { transform: rotateX(90deg) translateZ(44px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(44px); }
.dice3d.win .cube .face { box-shadow: inset 0 0 0 2px var(--green); }
.dice3d.lose .cube .face { box-shadow: inset 0 0 0 2px var(--red); }

.roll-badge { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -1px; margin-top: 6px; }
.roll-badge.win { color: var(--green); }
.roll-badge.lose { color: var(--red); }
.roll-badge.idle { color: var(--muted); }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-cards .sc { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.stat-cards .sc .k { font-size: 0.66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.stat-cards .sc .v { font-size: 0.98rem; font-weight: 900; margin-top: 3px; }

.recent-rolls { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; min-height: 24px; }
.roll-chip { font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.roll-chip.win { background: rgba(41,196,99,0.15); color: var(--green); }
.roll-chip.lose { background: rgba(232,17,60,0.12); color: var(--red); }

/* ---- Dice slider ---- */
.dice-track { position: relative; height: 12px; border-radius: 999px; margin: 30px 6px 8px; background: linear-gradient(90deg, var(--red) 0%, var(--red) var(--t,50%), var(--green) var(--t,50%), var(--green) 100%); }
.dice-thumb { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 6px; background: #fff; transform: translate(-50%,-50%); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.dice-roll { position: absolute; top: -34px; transform: translateX(-50%); background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-weight: 800; font-size: 0.85rem; }
.dice-scale { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--muted); margin: 0 6px; }

/* ---- Mines grid ---- */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 340px; margin: 0 auto; }
.mine-cell { aspect-ratio: 1; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer; transition: transform .08s, background .15s; }
.mine-cell:hover:not(.open) { border-color: #c3ccda; transform: translateY(-1px); }
.mine-cell.open.gem { background: rgba(41,196,99,0.15); border-color: var(--green); }
.mine-cell.open.bomb { background: rgba(232,17,60,0.18); border-color: var(--red); }
.mine-cell.disabled { pointer-events: none; opacity: 0.5; }

/* ---- Plinko ---- */
.plinko-wrap { width: 100%; max-width: 340px; margin: 0 auto; }
.plinko-canvas { width: 100%; display: block; }
.plinko-buckets { display: flex; gap: 3px; margin-top: 6px; }
.plinko-buckets .bk { flex: 1; text-align: center; font-size: 0.6rem; font-weight: 800; padding: 5px 1px; border-radius: 6px; background: var(--surface2); color: var(--text); }
.plinko-buckets .bk.hit { background: var(--green); color: #04120a; }

/* ---- Coin ---- */
.coin { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 900; background: radial-gradient(circle at 35% 30%, #ffe27a, #e6a817); color: #6b4e00; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.coin.spin { animation: coinflip 0.7s ease-in-out; }
@keyframes coinflip { 0%{transform:rotateY(0)} 100%{transform:rotateY(1440deg)} }

/* ---- Wheel ---- */
.wheel-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.wheel-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 16px solid #fff; z-index: 2; }
.wheel-svg { transition: transform 4s cubic-bezier(.15,.9,.25,1); }

/* ---- HiLo ---- */
.card-face { width: 120px; height: 168px; border-radius: 14px; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.card-face.red { color: var(--red); }
.hilo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.hilo-btns button { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-weight: 800; cursor: pointer; }
.hilo-btns button .od { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.hilo-btns button:hover { border-color: var(--green); }

@media (max-width: 420px) {
  .lobby-grid { grid-template-columns: repeat(2, 1fr); }
  .lobby-card.feat { grid-column: span 2; }
  .big-mult { font-size: 2.4rem; }
}