/* TelBet Mini App — colours from the TelBet diamond logo */
:root, :root[data-theme="dark"] {
  --bg: #17212b; --bg2: #1d2a36; --card: #223140; --card2: #2a3b4c; --line: #33485b;
  --text: #e9f2f9; --muted: #8ea3b6; --brand: #42abde; --brand2: #1d7fd0; --brand-glow: rgba(66,171,222,.35);
  --win: #22c55e; --lose: #ef4444; --gold: #f5b301; --warn: #f59e0b; --chip: #243444;
  --shadow: 0 8px 24px rgba(0,0,0,.35); --radius: 14px;
}
:root[data-theme="light"] {
  --bg: #eef4f9; --bg2: #e3ecf4; --card: #ffffff; --card2: #f3f7fb; --line: #d6e1eb;
  --text: #0f1b26; --muted: #5d7387; --brand: #1d8fd0; --brand2: #1569b0; --brand-glow: rgba(29,143,208,.25);
  --chip: #e2ebf3; --shadow: 0 6px 18px rgba(15,27,38,.12);
}
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 Vazirmatn, Vazir, Tahoma, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.win { color: var(--win); } .lose { color: var(--lose); } .gold { color: var(--gold); }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- shell */
#app { padding: 64px 12px 84px; max-width: 720px; margin: 0 auto; }
header.top { position: fixed; inset: 0 0 auto 0; height: 56px; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .logo { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 14px var(--brand-glow); }
header.top .brand { font-weight: 800; letter-spacing: .3px; direction: ltr; }
header.top .brand b { color: var(--brand); }
.balance-pill { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.balance-pill .plus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; line-height: 1; }
.balance-pill.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.12); } }
nav.tabs { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
nav.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; padding: 4px 0; position: relative; }
nav.tabs a .ic { font-size: 21px; line-height: 1; filter: grayscale(.4); transition: transform .2s; }
nav.tabs a.on { color: var(--brand); }
nav.tabs a.on .ic { filter: none; transform: translateY(-2px) scale(1.08); }
nav.tabs .badge { position: absolute; top: 0; inset-inline-end: 22%; background: var(--lose); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; }

/* ---------- cards / buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 10px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; font-weight: 800; font-size: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 11px 16px;
  background: var(--card2); color: var(--text); font-weight: 700; cursor: pointer; transition: transform .08s, filter .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 6px 18px var(--brand-glow); }
.btn.success { background: linear-gradient(135deg, #2bd46b, #15a34a); color: #fff; box-shadow: 0 6px 18px rgba(34,197,94,.3); }
.btn.danger { background: linear-gradient(135deg, #f15b5b, #c62828); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.big { padding: 15px; font-size: 17px; border-radius: 14px; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--chip); border: 1px solid transparent; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: color-mix(in srgb, var(--brand) 22%, var(--chip)); border-color: var(--brand); color: var(--brand); }
input.inp, select.inp, textarea.inp { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none; }
input.inp:focus, textarea.inp:focus { border-color: var(--brand); }
.list-item { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; color: var(--brand); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; border: 2px solid var(--brand); box-shadow: 0 0 18px var(--brand-glow); }
.progress { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7fd3ff); border-radius: 99px; transition: width .6s; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg2); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 17px; }
.stat span { font-size: 12px; color: var(--muted); }
.tabs-inline { display: flex; background: var(--bg2); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs-inline button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px 4px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 13px; }
.tabs-inline button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--chip); }
.pill.live { background: var(--lose); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- toast / modal / sheet */
#toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); animation: tin .25s; font-weight: 600; }
.toast.ok { border-color: var(--win); } .toast.err { border-color: var(--lose); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; inset: auto 0 0 0; z-index: 71; max-height: 86vh; overflow: auto; background: var(--bg2); border-radius: 20px 20px 0 0;
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); animation: sup .25s cubic-bezier(.2,.8,.2,1); max-width: 720px; margin: 0 auto; }
.sheet .grab { width: 44px; height: 5px; background: var(--line); border-radius: 9px; margin: 2px auto 12px; }
@keyframes sup { from { transform: translateY(100%); } }

/* ---------- home / lobby */
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; min-height: 140px;
  background: radial-gradient(120% 140% at 10% 0%, #1b5f8f 0%, #0d2236 55%, #081320 100%); color: #fff; box-shadow: var(--shadow); }
.hero .stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 60%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 40% 80%, #fff7, transparent), radial-gradient(1px 1px at 85% 20%, #fff9, transparent); animation: twinkle 6s infinite alternate; }
@keyframes twinkle { to { opacity: .4; } }
.hero h2 { margin: 0 0 4px; font-size: 20px; position: relative; }
.hero p { margin: 0; opacity: .85; position: relative; font-size: 13px; }
.hero .cta { position: relative; margin-top: 12px; }
.hero img.dia { position: absolute; inset-inline-end: -10px; bottom: -18px; width: 130px; opacity: .9; border-radius: 50%; filter: drop-shadow(0 0 24px #42abdeaa); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 10px; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 82%; scroll-snap-align: start; border-radius: 16px; padding: 14px; color: #fff; min-height: 92px; position: relative; overflow: hidden; }
.banner b { display: block; font-size: 16px; margin-bottom: 2px; }
.banner span { font-size: 13px; opacity: .9; }
.banner::after { content: ""; position: absolute; inset: auto -20px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ticker { margin-top: 10px; overflow: hidden; white-space: nowrap; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .track { display: inline-block; padding-inline-start: 100%; animation: marquee 30s linear infinite; direction: ltr; }
.ticker .track span { margin: 0 18px; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-100%); } }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-tile { position: relative; aspect-ratio: 1 / 1.12; border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 8px; color: #fff; box-shadow: var(--shadow); transition: transform .15s; isolation: isolate; }
.game-tile:active { transform: scale(.96); }
.game-tile .gi { position: absolute; inset: 10% 0 auto 0; text-align: center; font-size: 42px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); transition: transform .3s; }

.game-tile .gn { font-weight: 800; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.game-tile .gp { font-size: 10px; opacity: .9; display: flex; align-items: center; gap: 4px; }
.game-tile .gp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.game-tile .tag { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.35); }

/* ---------- game screen + bet panel */
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.game-head .back { width: 36px; height: 36px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; }
.game-head h2 { margin: 0; font-size: 18px; }
.stage { position: relative; background: radial-gradient(110% 90% at 50% 0%, #1d4466, #14222f 70%); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 220px; color: #fff; }
:root[data-theme="light"] .stage { background: radial-gradient(110% 90% at 50% 0%, #1d4f78, #0f2840 70%); }
.betpanel { margin-top: 10px; }
.amount-row { display: flex; gap: 6px; align-items: stretch; }
.amount-row input { flex: 1; text-align: center; font-weight: 800; font-size: 17px; direction: ltr; }
.amount-row .btn { padding: 8px 10px; min-width: 42px; }
.result-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; padding: 12px 22px; border-radius: 16px;
  font-size: 24px; font-weight: 900; background: rgba(0,0,0,.72); transition: all .35s cubic-bezier(.2,1.4,.4,1); pointer-events: none; z-index: 5; text-align: center; }
.result-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.result-banner.w { color: #4ade80; box-shadow: 0 0 40px rgba(74,222,128,.35); }
.result-banner.l { color: #f87171; }
.result-banner small { display: block; font-size: 13px; color: #fff; opacity: .8; font-weight: 600; }
.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* crash */
.crash-hist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; direction: ltr; }
.crash-hist::-webkit-scrollbar { display: none; }
.crash-hist span { flex: none; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--card); }
.crash-hist .lo { color: var(--lose); } .crash-hist .hi { color: var(--win); } .crash-hist .mega { color: var(--gold); }
.crash-stage { height: 250px; }
.crash-stage canvas { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 900; direction: ltr; pointer-events: none; text-shadow: 0 0 30px rgba(66,171,222,.5); }
.crash-mult.crashed { color: #f87171; text-shadow: 0 0 30px rgba(248,113,113,.6); }
.crash-mult small { display: block; font-size: 14px; opacity: .8; text-align: center; font-weight: 700; }
.crash-count { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 6px; background: rgba(255,255,255,.15); border-radius: 9px; overflow: hidden; }
.crash-count i { display: block; height: 100%; background: linear-gradient(90deg, #42abde, #a5e4ff); }
.bet-slots { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .bet-slots { grid-template-columns: 1fr 1fr; } }
.slot-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.slot-card .auto { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; }
.slot-card .auto input { width: 80px; text-align: center; direction: ltr; padding: 6px; }
.players { width: 100%; border-collapse: collapse; font-size: 13px; }
.players td, .players th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.players th { color: var(--muted); font-weight: 600; font-size: 12px; }
.players tr.out td { color: var(--win); }
.chatbox { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px; }
.chatmsg { background: var(--bg2); border-radius: 12px; padding: 6px 10px; max-width: 88%; }
.chatmsg b { font-size: 12px; color: var(--brand); }
.chatmsg.me { align-self: flex-end; background: color-mix(in srgb, var(--brand) 20%, var(--bg2)); }

/* cards (blackjack / hi-lo / poker) */
.pcard { width: 54px; height: 78px; border-radius: 9px; background: linear-gradient(160deg, #ffffff, #eef2f7); color: #1b2533; display: inline-flex; flex-direction: column; justify-content: space-between;
  padding: 3px 5px; font-weight: 900; box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 0 1px #d6dde6; position: relative; direction: ltr; animation: deal .35s cubic-bezier(.2,.9,.3,1.2) both; font-family: Georgia, "Times New Roman", serif; }
.pcard.red { color: #d61f2c; }
.pcard .cn { display: flex; flex-direction: column; align-items: center; width: 14px; font-size: 14px; line-height: 1; }
.pcard .cn i { font-style: normal; font-size: 10px; margin-top: 1px; }
.pcard .s { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.pcard .s .fc { position: absolute; font-size: 11px; bottom: 22%; opacity: .55; }
.pcard .r2 { transform: rotate(180deg); align-self: flex-end; }
.pcard.back { background: radial-gradient(circle at 50% 50%, #42abde 0 9px, transparent 10px), repeating-linear-gradient(45deg, #13507e 0 5px, #1b6ca8 5px 10px); box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 0 3px #fff, inset 0 0 0 5px #13507e; }
.pcard.back::after { content: "TB"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 900 10px Vazirmatn, sans-serif; }
.pcard.big { width: 96px; height: 138px; padding: 6px 8px; } .pcard.big .cn { font-size: 24px; width: 22px; } .pcard.big .cn i { font-size: 16px; } .pcard.big .s { font-size: 52px; } .pcard.big .s .fc { font-size: 18px; }
.pcard.big.back::after { font-size: 16px; }
@keyframes deal { from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.8); } }
.hand { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 80px; }

/* mines / tower */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 12px; }
.tile { aspect-ratio: 1; border-radius: 12px; border: 0; background: linear-gradient(160deg, #2b4a63, #1a2f42); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
  font-size: 26px; display: grid; place-items: center; cursor: pointer; transition: transform .15s; perspective: 400px; }
.tile:active { transform: scale(.94); }
.tile.gem { background: linear-gradient(160deg, #1fa5d8, #13608f); animation: flip .4s; }
.tile.bomb { background: linear-gradient(160deg, #e5484d, #8f1d21); animation: flip .4s, shake .4s .3s; }
.tile.dim { opacity: .45; animation: flip .4s; }
@keyframes flip { from { transform: rotateY(90deg); } }
.tower { display: flex; flex-direction: column-reverse; gap: 6px; padding: 12px; }
.floor { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; align-items: center; opacity: .55; }
.floor.cur { opacity: 1; }
.floor.done { opacity: .9; }
.floor .fm { width: 54px; font-size: 12px; font-weight: 800; color: #9fd8ff; direction: ltr; }
.door { height: 42px; border-radius: 10px; border: 0; background: linear-gradient(160deg, #6b4b2a, #3d2a17); color: #fff; font-size: 20px; cursor: pointer; }
.floor.cur .door { box-shadow: 0 0 0 2px #42abde, 0 0 14px rgba(66,171,222,.5); }
.door.safe { background: linear-gradient(160deg, #1fa5d8, #13608f); } .door.trap { background: linear-gradient(160deg, #e5484d, #8f1d21); }

/* coin / dice / slot */
.coin3d { width: 130px; height: 130px; margin: 40px auto; position: relative; transform-style: preserve-3d; }
.coin3d .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-size: 56px; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #ffe58a, #f5b301 60%, #b77b00); box-shadow: inset 0 0 0 6px #d99a00, 0 10px 30px rgba(0,0,0,.4); }
.coin3d .face.back { transform: rotateY(180deg); }
.coin3d.spin-heads { animation: coinH 1.6s cubic-bezier(.3,.1,.2,1) forwards; }
.coin3d.spin-tails { animation: coinT 1.6s cubic-bezier(.3,.1,.2,1) forwards; }
@keyframes coinH { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1080deg) translateY(-60px); } to { transform: rotateY(2160deg); } }
@keyframes coinT { from { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(1080deg) translateY(-60px); } to { transform: rotateY(2340deg); } }
.dice-scene { width: 110px; height: 110px; margin: 50px auto; perspective: 600px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.4s cubic-bezier(.2,.8,.25,1); }
.cube .f { position: absolute; inset: 0; background: #fff; border-radius: 16px; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14px; box-shadow: inset 0 0 12px rgba(0,0,0,.2); }
.cube .f i { width: 18px; height: 18px; border-radius: 50%; background: #1d2b3a; place-self: center; }
.reels { display: flex; justify-content: center; gap: 8px; padding: 30px 10px; }
.reel { width: 84px; height: 96px; overflow: hidden; border-radius: 14px; background: linear-gradient(#fff, #e8eef3 50%, #fff); box-shadow: inset 0 0 12px rgba(0,0,0,.35); position: relative; }
.reel .strip { position: absolute; left: 0; right: 0; top: 0; }
.reel .strip div { height: 96px; display: grid; place-items: center; font-size: 50px; }
.shot { height: 220px; position: relative; }
.shot .goal { position: absolute; font-size: 70px; top: 20px; left: 50%; transform: translateX(-50%); }
.shot .ball { position: absolute; font-size: 36px; bottom: 16px; left: 50%; transform: translateX(-50%); }

/* plinko / wheel / limbo / roulette */
.canvas-stage canvas { width: 100%; display: block; }
.bins { display: grid; gap: 3px; padding: 0 8px 10px; }
.bins div { text-align: center; font-size: 11px; font-weight: 800; padding: 5px 0; border-radius: 6px; color: #111; direction: ltr; transition: transform .2s; }
.bins div.hit { transform: translateY(5px) scale(1.08); box-shadow: 0 0 14px #fff8; }
.limbo-num { font-size: 64px; font-weight: 900; text-align: center; padding: 60px 0 10px; direction: ltr; transition: color .2s; }
.limbo-target { text-align: center; opacity: .8; padding-bottom: 30px; }
.wheel-wrap { position: relative; width: 260px; height: 260px; margin: 20px auto; }
.wheel-wrap canvas { width: 100%; height: 100%; }
.wheel-wrap .pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 12px solid transparent; border-top: 20px solid #fff; filter: drop-shadow(0 2px 4px #0008); z-index: 2; }
.rboard { display: grid; grid-template-columns: 34px repeat(12, 1fr); gap: 2px; direction: ltr; font-size: 11px; }
.rboard .c { position: relative; padding: 9px 0; text-align: center; border-radius: 5px; font-weight: 800; cursor: pointer; color: #fff; }
.rboard .r { background: #c62828; } .rboard .b { background: #1d2731; } .rboard .z { background: #15803d; grid-row: span 3; display: grid; place-items: center; }
.rboard .o { background: #29445c; grid-column: span 2; }
.rboard .dz { background: #29445c; grid-column: span 4; }
.chipmark { position: absolute; top: -6px; right: -4px; background: var(--gold); color: #111; border-radius: 999px; font-size: 9px; padding: 0 4px; border: 2px solid #fff; z-index: 2; }
.scratch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; position: relative; }
.scratch-grid div { aspect-ratio: 1; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 40px; }
.scratch-grid canvas { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); border-radius: 12px; touch-action: none; cursor: crosshair; }

/* poker */
.felt { background: radial-gradient(ellipse at center, #1a6b46 0%, #0f4a30 60%, #0a2f1f 100%); border-radius: 120px / 80px; padding: 18px 10px; border: 8px solid #4a2c17; box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.seat { text-align: center; color: #fff; }
.seat .nm { font-size: 13px; font-weight: 700; }
.seat.turn .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--gold); }
.board { display: flex; gap: 5px; justify-content: center; min-height: 80px; margin: 12px 0; }
.pot { text-align: center; color: #ffe58a; font-weight: 800; }

/* sports */
.match { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.match .mh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; margin-bottom: 8px; cursor: pointer; }
.match .teams .t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.match .teams .t.a { justify-content: flex-end; text-align: end; }
.match .teams img { width: 22px; height: 22px; object-fit: contain; }
.match .sc { font-weight: 900; font-size: 16px; direction: ltr; padding: 2px 8px; border-radius: 8px; background: var(--bg2); }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.odds.two { grid-template-columns: repeat(2, 1fr); }
.odd { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; text-align: center; cursor: pointer; transition: all .15s; }
.odd small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odd b { direction: ltr; display: inline-block; }
.odd.on { background: color-mix(in srgb, var(--brand) 25%, var(--bg2)); border-color: var(--brand); }
.odd.on small { color: var(--brand); }
.odd.off { opacity: .4; pointer-events: none; }
.odd.up b { color: var(--win); } .odd.down b { color: var(--lose); }
.market { margin-top: 12px; }
.market h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.slip-fab { position: fixed; bottom: 78px; inset-inline-end: 14px; z-index: 40; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  border-radius: 999px; padding: 10px 16px; font-weight: 800; box-shadow: 0 8px 22px var(--brand-glow); cursor: pointer; animation: tin .3s; }
.form-dots { display: inline-flex; gap: 3px; direction: ltr; }
.form-dots i { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; font-style: normal; display: grid; place-items: center; color: #fff; font-weight: 800; }
.form-dots .W { background: var(--win); } .form-dots .D { background: #64748b; } .form-dots .L { background: var(--lose); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
table.tbl td, table.tbl th { padding: 6px 3px; border-bottom: 1px solid var(--line); text-align: center; }
table.tbl td:nth-child(2) { text-align: start; }
table.tbl tr.me td { color: var(--brand); font-weight: 800; }

/* onboarding */
.tour-hole { position: fixed; z-index: 95; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3,8,14,.78); transition: all .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.tour-tip { position: fixed; z-index: 96; left: 14px; right: 14px; max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--brand);
  border-radius: 16px; padding: 14px; box-shadow: var(--shadow); animation: tin .3s; }
.tour-tip h4 { margin: 0 0 4px; }
.tour-dots { display: flex; gap: 5px; } .tour-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); } .tour-dots i.on { background: var(--brand); width: 18px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 60px; }
@keyframes sk { to { background-position: -200% 0; } }
.lite *, .lite *::before, .lite *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; } }

.match .mh img{width:18px;height:18px;object-fit:contain;vertical-align:-4px}
.game-head h2 img{width:26px;height:26px;object-fit:contain;vertical-align:-6px}
.game-tile .gi svg { width: 72%; height: auto; max-width: 92px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.game-tile .gi { will-change: transform; filter: none; }
.game-tile .gi { inset: 6% 0 auto 0; }
.game-head .hicon svg { width: 30px; height: 30px; vertical-align: -8px; }
.game-tile .tag { z-index: 2; }
html[lang="fa"] body { font-weight: 500; letter-spacing: 0; }
html[lang="fa"] b, html[lang="fa"] strong, html[lang="fa"] h2, html[lang="fa"] h3, html[lang="fa"] .section-title, html[lang="fa"] .gn { font-weight: 800; }
.hero .dia { position: absolute; inset-inline-end: 8px; top: 22px; width: 112px; opacity: 1; animation: float 5s ease-in-out infinite; pointer-events: none; }
.hero .dia::before { content: ""; position: absolute; inset: 18% 12%; border-radius: 50%; background: radial-gradient(circle, rgba(66,171,222,.55), transparent 70%); filter: blur(14px); }
.hero .dia svg { position: relative; width: 100%; height: auto; display: block; }
.hero h2, .hero p, .hero .cta { position: relative; z-index: 1; }
.hero .cta { padding-inline-end: 112px; flex-wrap: wrap; }

/* ===================================================== v8.1 — "alive" animations (off in lite mode) */
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 30% at 20% 20%, rgba(66,171,222,.16), transparent 70%), radial-gradient(35% 30% at 85% 70%, rgba(29,127,208,.14), transparent 70%),
              radial-gradient(30% 25% at 60% 10%, rgba(165,228,255,.08), transparent 70%);
}
@keyframes aurora { to { transform: translate(6%, -4%) rotate(8deg) scale(1.08); } }
body { background: var(--bg); isolation: isolate; }
#app.enter > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
#app.enter > *:nth-child(2) { animation-delay: .05s; } #app.enter > *:nth-child(3) { animation-delay: .1s; } #app.enter > *:nth-child(4) { animation-delay: .15s; }
#app.enter > *:nth-child(5) { animation-delay: .2s; } #app.enter > *:nth-child(6) { animation-delay: .25s; } #app.enter > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.game-tile { animation: pop .55s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pop { from { opacity: 0; transform: scale(.82) translateY(10px); } }
.game-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s + 1s); pointer-events: none; z-index: 1; }
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.game-tile .gi { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.45s); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.game-tile[data-g="roul"] .gi, .game-tile[data-g="wheelx"] .gi { animation: spinSlow 14s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.game-tile[data-g="coin"] .gi { animation: coinFlip 4s ease-in-out infinite; }
@keyframes coinFlip { 0%, 60% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }
.game-tile[data-g="crash"] .gi { animation: rocket 2.6s ease-in-out infinite; }
@keyframes rocket { 50% { transform: translate(4px, -7px) rotate(-3deg); } }
.game-tile[data-g="dice"] .gi, .game-tile[data-g="basket"] .gi { animation: hop 2.4s cubic-bezier(.3,0,.3,1) infinite; animation-delay: calc(var(--i, 0) * -.3s); }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-10px) rotate(-6deg); } 80% { transform: translateY(0) scale(1.05, .95); } }

@keyframes glowPulse { 50% { filter: drop-shadow(0 0 12px rgba(165,228,255,.65)); } }
.game-tile .tag { animation: tagPulse 2s ease-in-out infinite; }
@keyframes tagPulse { 50% { transform: scale(1.08); } }
.balance-pill .plus { position: relative; }
.balance-pill .plus::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.btn.primary, .btn.success { position: relative; overflow: hidden; }
.btn.primary.big::after, .btn.success.big::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: translateX(-150%); animation: btnShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes btnShine { 0%, 70% { transform: translateX(-150%); } 92%, 100% { transform: translateX(350%); } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: rippleA .6s ease-out forwards; pointer-events: none; z-index: 3; }
@keyframes rippleA { to { transform: scale(4); opacity: 0; } }
.game-tile, .card, .odd, .chip, .banner, .list-item, .stat, .match { position: relative; overflow: hidden; }
nav.tabs a.on .ic { animation: tabJump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes tabJump { 40% { transform: translateY(-7px) scale(1.18); } }

@keyframes heroShift { to { background-position: 100% 60%; } }
.section-title > span:first-child { display: inline-block; }
#app.enter .section-title { animation: rise .5s both; }
.toast { animation: toastIn .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.92); } }
.odd.flash-up { animation: flashUp 1.6s ease-out; } .odd.flash-down { animation: flashDown 1.6s ease-out; }
.odd.flash-up b { color: var(--win); } .odd.flash-down b { color: var(--lose); }
@keyframes flashUp { 0%, 40% { box-shadow: 0 0 0 2px var(--win), 0 0 16px rgba(34,197,94,.5); } }
@keyframes flashDown { 0%, 40% { box-shadow: 0 0 0 2px var(--lose), 0 0 16px rgba(239,68,68,.5); } }
.odd.up b::after { content: " ▲"; font-size: 9px; color: var(--win); } .odd.down b::after { content: " ▼"; font-size: 9px; color: var(--lose); }
#app.enter .match { animation: rise .45s both; }
.crash-hist span { animation: pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.stat b { display: inline-block; }
.card:active, .match:active, .banner:active { transform: scale(.985); transition: transform .1s; }
.pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 4px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.hero h2 { animation: rise .6s .1s both; }
.lite body::before, .lite .game-tile::after, .lite .btn.primary.big::after, .lite .btn.success.big::after, .lite .balance-pill .plus::after { display: none; }
.game-tile, .card, .match, .stage { contain: paint; }
.hero .dia { will-change: transform; }

/* ---- drawn game scenes (v20) ---- */
.stage.scene { min-height: 0; padding: 0; background: #0e1d2e; }
.stage.scene svg.sc { display: block; width: 100%; height: auto; }
.tile svg { width: 62%; height: 62%; pointer-events: none; }
.mines-st .tile { box-shadow: inset 0 2px 0 rgba(255,255,255,.1), inset 0 -4px 0 rgba(0,0,0,.3); }
.mines-st .tile.gem svg { animation: pop .35s ease-out; }
.mines-st .tile.bomb svg { animation: pop .3s ease-out; }
.tower-st { background: linear-gradient(180deg, #2a1b0f, #120a05); }
.tower-st .floor { padding: 4px 6px; border-radius: 12px; background: linear-gradient(90deg, rgba(246,211,139,.06), rgba(246,211,139,.02)); }
.door { display: grid; place-items: center; height: 50px; padding: 2px; background: linear-gradient(180deg, #3a2614, #22160a); box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); }
.door svg { height: 100%; width: auto; pointer-events: none; }
.door.safe svg, .door.trap svg { animation: pop .35s ease-out; }
.floor.cur .door { box-shadow: 0 0 0 2px #f6d38b; }
@keyframes pop { 0% { transform: scale(.3) rotate(-15deg); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.stage.felt { background: radial-gradient(ellipse at 50% 40%, #1f8a55, #0b3d25 75%); }
.stage.felt::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255,255,255,.12); border-radius: 14px; pointer-events: none; }
.stage.ticket { background: linear-gradient(150deg, #f5b301, #e76f51 55%, #9b2c6f); padding: 6px; }
.stage.ticket .tk-head { text-align: center; font-weight: 900; letter-spacing: 2px; color: #fff; padding: 8px 0 0; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.stage.ticket .scratch-grid { margin: 6px 8px 10px; background: rgba(255,255,255,.92); border-radius: 14px; border: 2px dashed #9b2c6f; }
.stage.ticket .scratch-grid div { background: linear-gradient(160deg, #fff, #f1f5f9); box-shadow: inset 0 0 0 1px #e2e8f0; }
.wheel-wrap canvas { border-radius: 50%; }

/* ---- new games (v21) ---- */
.stage.felt.bac, .stage.felt { color: #fff; }
.felt-arc { text-align: center; font-weight: 900; letter-spacing: 3px; font-size: 11px; color: rgba(255,230,160,.55); padding: 6px 0 10px; }
.bac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 8px 0; }
.bac-side { text-align: center; }
.bac-lbl { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 900; font-size: 13px; margin-bottom: 8px; border: 2px solid rgba(255,255,255,.3); }
.bac-lbl.p { background: rgba(59,130,246,.35); } .bac-lbl.b { background: rgba(239,68,68,.35); }
.bac-lbl b { background: #0b1520; padding: 0 7px; border-radius: 8px; margin-inline-start: 4px; }
.bac-lbl.win { border-color: #fde68a; box-shadow: 0 0 0 3px rgba(253,230,138,.35); transform: scale(1.08); transition: transform .3s; }
.bac .hand { min-height: 84px; gap: 4px; } .bac .pcard { width: 46px; height: 68px; }
.bet-spots { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; }
.spot { border: 2px dashed rgba(255,255,255,.25); border-radius: 16px; padding: 12px 6px; color: #fff; display: grid; gap: 2px; cursor: pointer; font: inherit; transition: transform .15s; }
.spot b { font-size: 15px; } .spot small { opacity: .8; font-weight: 800; }
.spot.p { background: linear-gradient(160deg, #2563eb, #1e3a8a); } .spot.b { background: linear-gradient(160deg, #dc2626, #7f1d1d); }
.spot.t { background: linear-gradient(160deg, #16a34a, #14532d); } .spot.d { background: linear-gradient(160deg, #dc2626, #7f1d1d); } .spot.g { background: linear-gradient(160deg, #f59e0b, #92400e); }
.spot.on { border: 2px solid #fde68a; transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(253,230,138,.3); }
.dt-st { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 8px; background: linear-gradient(90deg, #7f1d1d, #1b1320 50%, #78350f); }
.dt-half { text-align: center; padding: 6px; border-radius: 16px; transition: transform .3s, box-shadow .3s; }
.dt-half.win { box-shadow: 0 0 0 3px #fde68a; transform: scale(1.04); }
.dt-emb svg { width: 52px; height: 52px; } .dt-name { font-weight: 900; margin: 2px 0 8px; }
.dt-vs { font-weight: 900; font-size: 18px; color: #fde68a; background: #111; border: 2px solid #fde68a; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.keno-st { padding: 10px; background: radial-gradient(110% 90% at 50% 0%, #4c1d95, #1e1036 70%); }
.keno-top { display: flex; align-items: center; padding: 0 2px 8px; }
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; direction: ltr; }
.kn { aspect-ratio: 1; border: 0; border-radius: 9px; background: linear-gradient(160deg, #3b2a6b, #261a47); color: #c4b5fd; font: 800 14px Vazirmatn, sans-serif; position: relative; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.kn.on { background: linear-gradient(160deg, #a78bfa, #6d28d9); color: #fff; }
.kn.drawn { background: linear-gradient(160deg, #1f2937, #0b1220); color: #64748b; animation: pop .3s; }
.kn.on.drawn { background: linear-gradient(160deg, #6d28d9, #3b0764); color: #ddd6fe; }
.kn.hit { background: linear-gradient(160deg, #fde68a, #f59e0b); color: #5b3a00; animation: pop .35s; box-shadow: 0 0 0 2px #fff7d1; }
.keno-pay { display: flex; gap: 4px; margin-top: 10px; direction: ltr; overflow-x: auto; }
.kp { flex: 1; min-width: 34px; text-align: center; background: rgba(255,255,255,.07); border-radius: 8px; padding: 3px 2px; font-size: 11px; }
.kp small { display: block; opacity: .6; } .kp.z { opacity: .4; } .kp.cur { background: #f59e0b; color: #111; }
.horse-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hp { border: 2px solid transparent; border-radius: 12px; background: var(--card2); color: var(--text, #fff); padding: 6px 0; display: grid; gap: 1px; font: inherit; cursor: pointer; }
.hp b { width: 24px; height: 24px; margin: 0 auto; border-radius: 50%; background: var(--c); color: #111; display: grid; place-items: center; }
.hp small { font-size: 11px; font-weight: 800; } .hp.on { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.ck-stage { position: relative; overflow: hidden; }
.ck-cam { transform-origin: 0 0; direction: ltr; overflow: visible; }
.ck-svg { display: block; will-change: transform; }
.ck-hud { position: absolute; top: 8px; inset-inline: 8px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.ck-m { background: rgba(0,0,0,.6); padding: 4px 10px; border-radius: 10px; font-weight: 900; font-size: 18px; color: #fde68a; }
.ck-n { background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 8px; }
.lane.passed .mh circle { fill: #16a34a; stroke: #bbf7d0; }
.amb .drv { animation: drive 2s linear infinite; }
@keyframes drive { from { transform: translateY(-80px); } to { transform: translateY(360px); } }
.rps-st { padding: 16px 10px 12px; background: radial-gradient(110% 90% at 50% 0%, #0c4a6e, #0b1530 70%); }
.rps-arena { display: flex; align-items: center; justify-content: space-around; }
.rps-hand { font-size: 64px; line-height: 1; transition: transform .2s; }
.rps-hand.l { transform: scaleX(-1); } .rps-hand.l.bob { transform: scaleX(-1) translateY(-22px) rotate(-12deg); } .rps-hand.r.bob { transform: translateY(-22px) rotate(12deg); }
.rps-hand.won { animation: pop .4s; filter: drop-shadow(0 0 12px #4ade80); } .rps-hand.lost { opacity: .45; }
.rps-vs { font-weight: 900; color: #fde68a; font-size: 20px; }
.rps-res { font-weight: 900; font-size: 18px; min-height: 26px; margin-top: 8px; } .rps-res.win { color: #4ade80; } .rps-res.lose { color: #f87171; }
.rps-moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rps-moves .mv { border: 2px solid transparent; border-radius: 16px; background: linear-gradient(160deg, var(--card2), var(--card)); padding: 10px 0 6px; display: grid; gap: 2px; cursor: pointer; font: inherit; color: inherit; }
.rps-moves .mv span { font-size: 36px; line-height: 1.1; } .rps-moves .mv.on { border-color: #42abde; box-shadow: 0 0 0 3px rgba(66,171,222,.3); }
.rps-row { padding: 8px 0; border-bottom: 1px solid var(--line); gap: 8px; } .rps-row:last-child { border: 0; }
.num.up { color: #4ade80; } .num.down { color: #f87171; }
/* classic crash (crash2): white chart like the Iranian sites */
.c2-stage { background: #fff !important; border: 1px solid #d4d4d8; height: 290px; }
.c2-stage .crash-mult { color: #111; text-shadow: none; font-size: 64px; }
.c2-stage .crash-mult.crashed { color: #dc2626; text-shadow: none; }
.c2-stage .crash-mult small { color: #444; }
.c2-stage .crash-count { background: #e5e7eb; }
.c2-hist { margin-top: 8px; }
.c2-hist span { background: #f4f4f5; color: #111; } :root:not([data-theme="light"]) .c2-hist span { background: var(--card); color: inherit; }
.c2-card { background: var(--card); }
.c2-card .amount-row .inp { font-size: 20px; }
.c2-lbl { opacity: .7; margin-bottom: 4px; }
.c2-auto { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; direction: ltr; }
.c2-auto .aval { text-align: center; font-weight: 800; font-size: 18px; }
.arng { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, #22c55e var(--p, 0%), #d4d4d8 var(--p, 0%)); }
.arng::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c7c7cc); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.arng::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #e5e5ea; border: 0; }
.c2-box { display: grid; grid-template-columns: 44px 1fr; margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 260px; }
.c2-tabs.tabs-inline { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; border-radius: 0; background: var(--bg2); }
.c2-tabs button { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 !important; padding: 10px 0; }
.c2-body { padding: 10px; max-height: 360px; overflow-y: auto; }
.c2-body .chatbox { max-height: 260px; }
/* polish v21: slot / coin / limbo / plinko */
.slot-st { background: radial-gradient(120% 90% at 50% 0%, #7f1d1d, #2a0a0a 75%); border: 3px solid #d4a017; box-shadow: inset 0 0 0 3px #3b2a05; }
.slot-top { text-align: center; font-weight: 900; letter-spacing: 3px; color: #fde68a; padding-top: 12px; font-size: 13px; }
.slot-st .reels { position: relative; padding: 18px 10px 26px; }
.slot-st .reel { background: linear-gradient(#e2e8f0, #fff 30%, #fff 70%, #e2e8f0); box-shadow: inset 0 8px 10px -6px rgba(0,0,0,.5), inset 0 -8px 10px -6px rgba(0,0,0,.5), 0 0 0 3px #d4a017; }
.reel .strip div .sym { width: 64px; height: 64px; }
.payline { position: absolute; left: 6px; right: 6px; top: calc(50% - 4px); height: 2px; background: rgba(239,68,68,.65); pointer-events: none; }
.slot-lights { height: 14px; margin: 0 14px 10px; background: radial-gradient(circle, #fde68a 0 3px, transparent 4px) 0 0 / 18px 14px repeat-x; opacity: .9; }
.coin-st { background: radial-gradient(110% 90% at 50% 20%, #3b2f0a, #14110a 75%); }
.coin3d .face { background: none !important; box-shadow: none !important; border: 0 !important; }
.coin3d .face svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.limbo-st { background: radial-gradient(110% 90% at 50% 100%, #3b1f6e, #0b0a1f 70%); min-height: 250px; }
.lb-stars { position: absolute; inset: -120px 0 0; background: radial-gradient(circle, #fff 0 1px, transparent 1.5px) 0 0 / 37px 41px, radial-gradient(circle, rgba(255,255,255,.6) 0 1px, transparent 1.5px) 13px 17px / 53px 47px; opacity: .55; pointer-events: none; }
.lb-rocket { position: absolute; bottom: 14px; inset-inline-start: 18px; width: 42px; transition: transform .6s; pointer-events: none; }
.lb-rocket svg { width: 100%; display: block; } .lb-rocket .lb-flame { opacity: 0; transform-origin: 30px 74px; }
.lb-rocket.fly .lb-flame { opacity: 1; animation: flame .12s infinite alternate; }
@keyframes flame { to { transform: scaleY(.75); } }
.lb-rocket.lose svg { animation: shake .5s; opacity: .5; } .lb-rocket.win svg { filter: drop-shadow(0 0 10px #4ade80); }
.limbo-st .limbo-num, .limbo-st .limbo-target { position: relative; }
.plinko-st { background: radial-gradient(110% 80% at 50% 0%, #4a1036, #160818 75%); }
.plinko-st .bins div { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); border-radius: 7px; }
.bj-st .felt-arc { padding: 0 0 6px; }
.stage.felt .hand .pcard { box-shadow: 0 8px 16px rgba(0,0,0,.45), inset 0 0 0 1px #d6dde6; }

/* ---------- sportsbook-style shell (v22) */
#app { padding-top: 108px; }
header.top { height: 54px; background: linear-gradient(180deg, #0f1923, #142230); border-bottom: 0; }
:root[data-theme="light"] header.top { background: linear-gradient(180deg, #ffffff, #f3f7fb); }
.balance-pill { padding: 4px 4px 4px 12px; gap: 8px; background: #0b141d; border-color: #2a3d50; }
:root[data-theme="light"] .balance-pill { background: #fff; border-color: #d6e2ee; }
.balance-pill .plus { width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #15803d); }
.balance-pill .plus svg, .acc-btn svg { width: 18px; height: 18px; }
.acc-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text, #fff); cursor: pointer; }
.sitebar { position: fixed; top: 54px; inset-inline: 0; z-index: 29; height: 44px; background: #0d1620; border-bottom: 1px solid #22344a; overflow-x: auto; scrollbar-width: none; }
:root[data-theme="light"] .sitebar { background: #e7eef6; border-color: #d0dbe7; }
.sitebar::-webkit-scrollbar { display: none; }
.sb-track { display: flex; height: 100%; padding: 0 6px; gap: 2px; width: max-content; }
.sitebar a { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; position: relative; cursor: pointer; }
.sitebar a.on { color: var(--text, #fff); } :root[data-theme="light"] .sitebar a.on { color: #0b2a44; }
.sitebar a.on::after { content: ""; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.sbi { font-size: 15px; line-height: 1; } .sbi.svg svg { width: 20px; height: 20px; display: block; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; box-shadow: 0 0 0 3px rgba(239,68,68,.25); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
nav.tabs { background: #0f1923; } :root[data-theme="light"] nav.tabs { background: #fff; }
nav.tabs a .ic { filter: none; } nav.tabs a .ic svg { width: 23px; height: 23px; display: block; }
nav.tabs a.on .ic { transform: translateY(-1px); }
nav.tabs a.on::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
/* home */
.banners.slider .banner { flex: 0 0 100%; min-height: 118px; display: flex; align-items: center; padding: 16px; }
.bn-t { position: relative; z-index: 1; flex: 1; } .bn-t b { font-size: 18px; } .bn-t span { display: block; max-width: 70%; }
.bn-go { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 800; font-size: 12px; background: #fff; color: #111; padding: 4px 12px; border-radius: 999px; }
.bn-art { position: absolute; inset-inline-end: -6px; bottom: -8px; width: 112px; opacity: .95; transform: rotate(-8deg); }
.bn-art svg { width: 100%; height: auto; display: block; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
.dots i.on { width: 18px; background: var(--brand); }
.home-matches .match { margin-bottom: 8px; }
.hrow { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
.hrow::-webkit-scrollbar { display: none; }
.hrow .game-tile { flex: 0 0 31%; scroll-snap-align: start; }
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo { border-radius: 14px; padding: 10px 8px; color: #fff; display: grid; gap: 2px; cursor: pointer; min-height: 96px; align-content: start; }
.promo .pi { font-size: 22px; } .promo b { font-size: 13px; line-height: 1.3; } .promo small { font-size: 10.5px; opacity: .85; line-height: 1.35; }
.site-foot { margin: 22px -12px 0; padding: 18px 16px 6px; border-top: 1px solid var(--line); background: var(--bg2); text-align: center; }
.sf-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; direction: ltr; }
.sf-brand img { width: 28px; height: 28px; border-radius: 50%; } .sf-brand span { color: var(--brand); }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: 12px; }
.sf-links a { color: var(--muted); }
.sf-badges { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.b18 { border: 2px solid #ef4444; color: #ef4444; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 900; font-size: 10px; }
/* account */
.acc-head { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1d4f78, #0f2236); }
.acc-head h3 { margin: 0; }
.acc-bal { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.big-bal { font-size: 22px; }
.li-ic { font-size: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--card2); }
.bal-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bal-split div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px 10px; } .bal-split small { display: block; opacity: .8; } .bal-split b { font-size: 16px; }

/* ===================== match page v7 (stadium hero) ===================== */
#app { --ta: #42abde; --tb: #f59e0b; }
.mx-hero { position: relative; margin: -12px -12px 0; height: 322px; overflow: hidden; background: #06101a; color: #fff; contain: paint; }
.mx-sky { position: absolute; inset: 0; background: radial-gradient(60% 50% at 8% -5%, rgba(255,255,255,.5), transparent 60%), radial-gradient(60% 50% at 92% -5%, rgba(255,255,255,.5), transparent 60%), linear-gradient(180deg, #0b1d33 0%, #0a1726 45%, #0b1a14 100%); }
.mx-beam { position: absolute; top: -30px; width: 120px; height: 260px; background: linear-gradient(180deg, rgba(255,255,255,.2), transparent); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.mx-beam.l { left: -20px; transform: rotate(-24deg); } .mx-beam.r { right: -20px; transform: rotate(24deg); }
.mx-crowd { position: absolute; left: 0; right: 0; top: 56px; height: 40px; opacity: .35;
  background: radial-gradient(circle, #c7d2fe 0 1.3px, transparent 1.8px) 0 0 / 9px 8px, radial-gradient(circle, #fca5a5 0 1.2px, transparent 1.7px) 4px 4px / 11px 9px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); mask: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); }
.mx-pitch { position: absolute; left: -40px; right: -40px; bottom: -10px; height: 190px; transform: perspective(260px) rotateX(38deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(90deg, #1c7a3c 0 46px, #18703a 46px 92px); }
.mx-pitch::after { content: ""; position: absolute; left: 50%; top: 30%; width: 150px; height: 150px; margin-left: -75px; border: 3px solid rgba(255,255,255,.35); border-radius: 50%; }
.mx-pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.35); }
.mx-glow { position: absolute; top: 70px; width: 220px; height: 220px; opacity: .5; }
.mx-glow.a { inset-inline-start: -40px; background: radial-gradient(circle, var(--ta), transparent 65%); }
.mx-glow.b { inset-inline-end: -40px; background: radial-gradient(circle, var(--tb), transparent 65%); }
.mx-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,26,.25), rgba(6,16,26,0) 35%, rgba(6,16,26,.15) 70%, rgba(23,33,43,.92) 96%, var(--bg)); }
:root[data-theme="light"] .mx-fade { background: linear-gradient(180deg, rgba(6,16,26,.25), rgba(6,16,26,0) 35%, rgba(6,16,26,.3) 100%); }
.mx-bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.mx-ib { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(10,18,26,.55); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.mx-lg { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; background: rgba(10,18,26,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 99px; padding: 7px 10px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.mx-lg span { overflow: hidden; text-overflow: ellipsis; } .mx-lg img { width: 20px; height: 20px; object-fit: contain; }
.mx-teams { position: absolute; left: 10px; right: 10px; top: 62px; display: grid; grid-template-columns: 1fr 134px 1fr; align-items: start; z-index: 2; }
.mx-tm { text-align: center; min-width: 0; }
.mx-cr { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; padding: 4px; position: relative; }
.mx-cr.a { background: conic-gradient(from 200deg, var(--ta), #0b1520, var(--ta)); } .mx-cr.b { background: conic-gradient(from 200deg, var(--tb), #0b1520, var(--tb)); }
.mx-cr .in { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2b3d50, #0d1722 75%); display: grid; place-items: center; box-shadow: inset 0 2px 6px rgba(255,255,255,.15); }
.mx-cr img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); } .mx-ini { font-size: 34px; }
.mx-cr .fv { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 28px; height: 28px; border-radius: 50%; background: #0d1722; border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; font-size: 14px; color: #ffc83d; cursor: pointer; }
.mx-tn { margin-top: 9px; font-weight: 900; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-tr { display: inline-block; margin-top: 5px; font-size: 10.5px; background: rgba(10,18,26,.6); border-radius: 99px; padding: 3px 8px; color: #dbe4ee; }
.mx-mid { text-align: center; padding-top: 4px; }
.mx-dt { font-size: 11px; color: #dbe4ee; background: rgba(10,18,26,.6); border-radius: 10px; padding: 4px 10px; display: inline-block; line-height: 1.5; }
.mx-dt b { display: block; font-size: 15px; color: #fff; direction: ltr; }
.mx-vs { font-size: 12px; font-weight: 900; color: #ffc83d; margin: 8px 0 6px; letter-spacing: 4px; text-shadow: 0 0 10px rgba(255,200,61,.6); }
.mx-cd { display: flex; gap: 3px; justify-content: center; direction: ltr; align-items: flex-start; }
.mx-cd div { width: 38px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 4px 0 2px; }
.mx-cd b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; } .mx-cd small { display: block; font-size: 8.5px; color: #9fb1c3; }
.mx-cd span { font-weight: 900; color: #9fb1c3; padding-top: 6px; }
.mx-score { font-size: 44px; font-weight: 900; direction: ltr; letter-spacing: 2px; text-shadow: 0 4px 16px rgba(0,0,0,.6); margin-top: 6px; } .mx-score i { font-style: normal; color: #9fb1c3; margin: 0 6px; }
.mx-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(220,38,38,.9); border-radius: 99px; padding: 3px 10px; font-weight: 800; font-size: 13px; }
.mx-ht { font-size: 11px; color: #cbd5e1; margin-top: 6px; }
.mx-prob { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; }
.mx-prob .pl { display: flex; justify-content: space-between; font-size: 11px; color: #cbd5e1; margin-bottom: 6px; gap: 6px; }
.mx-prob .pl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 36%; } .mx-prob .pl b { color: #fff; font-size: 13px; }
.mx-prob .pb { display: flex; height: 9px; gap: 3px; } .mx-prob .pb i { border-radius: 99px; }
.mx-prob .a { background: var(--ta); } .mx-prob .d { background: #64748b; } .mx-prob .b { background: var(--tb); }
.mx-quick { display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 8px; margin-top: 10px; }
.odd.mx-q { border-radius: 16px; padding: 10px 6px 9px; background: linear-gradient(180deg, #22344a, #1a2838); border: 1px solid #2b3f55; position: relative; }
.odd.mx-q small { font-size: 11px; color: #b9c7d6; display: flex; align-items: center; justify-content: center; gap: 4px; }
.odd.mx-q b { font-size: 21px; color: #ffc83d; margin-top: 3px; }
.odd.mx-q.on, .mx-grid .odd.on, .odd.hm-c.on { background: linear-gradient(160deg, #1fa0e0, #1e40af); border-color: #7dd3fc; box-shadow: 0 8px 22px rgba(30,64,175,.4); }
.odd.mx-q.on b, .odd.mx-q.on small, .mx-grid .odd.on b, .mx-grid .odd.on small { color: #fff; }
.odd.mx-q.on::after { content: "✓"; position: absolute; top: 6px; inset-inline-start: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; color: #1e40af; font-size: 10px; display: grid; place-items: center; font-weight: 900; }
.odd.up b::after { content: " ▲"; font-size: 10px; color: var(--win); } .odd.down b::after { content: " ▼"; font-size: 10px; color: var(--lose); }
.mx-favm { margin-top: 8px; color: var(--muted); } .mx-favm .fv { cursor: pointer; color: #ffc83d; }
.mx-tabs { display: flex; margin: 12px 0 10px; padding: 4px; background: var(--bg2); border-radius: 16px; border: 1px solid var(--line); position: sticky; top: 104px; z-index: 5; }
.mx-tabs b { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.mx-tabs b.on { background: linear-gradient(135deg, #3bb0ea, #2453d8); color: #fff; box-shadow: 0 6px 16px rgba(36,83,216,.4); }
.mx-chips { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; } .mx-chips::-webkit-scrollbar { display: none; }
.mx-chips span { font-size: 12px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; cursor: pointer; }
.mx-chips span.on { background: #fff; color: #0b1520; font-weight: 800; border-color: #fff; }
.mx-spc { position: relative; border-radius: 18px; padding: 13px 14px; margin-bottom: 12px; overflow: hidden; color: #fff; cursor: pointer; background: linear-gradient(120deg, #7c2d12, #c2410c 55%, #f59e0b); }
.mx-spc::after { content: ""; position: absolute; inset-inline-start: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.1); }
.mx-spc .h { font-size: 11.5px; font-weight: 800; opacity: .92; }
.mx-spc .r { display: flex; align-items: center; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.mx-spc .g { flex: 1; font-size: 13.5px; font-weight: 800; line-height: 1.6; }
.mx-spc .od { background: #fff; color: #9a3412; border-radius: 12px; padding: 6px 12px; text-align: center; }
.mx-spc .od small { display: block; font-size: 10px; opacity: .7; } .mx-spc .od b { font-size: 19px; direction: ltr; display: block; }
.mk { background: var(--card); border-radius: 18px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.mk-h { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.mk-h .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; color: #fff; }
.ic1 { background: linear-gradient(135deg, #f59e0b, #b45309); } .ic2 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); } .ic3 { background: linear-gradient(135deg, #10b981, #047857); }
.ic4 { background: linear-gradient(135deg, #ef4444, #991b1b); } .ic5 { background: linear-gradient(135deg, #0ea5e9, #1e40af); }
.mk-h .g { flex: 1; } .mk-h .x { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mk-h .chev { font-style: normal; display: inline-block; transition: transform .2s; margin-inline-start: 4px; }
.mk.shut .mk-in { display: none; } .mk.shut .chev { transform: rotate(180deg); }
.mx-seg { display: flex; gap: 4px; padding: 0 12px 10px; }
.mx-seg span { flex: 1; text-align: center; font-size: 12px; padding: 6px 0; border-radius: 9px; background: var(--bg2); color: var(--muted); direction: ltr; cursor: pointer; }
.mx-seg span.on { background: #2a4258; color: #fff; font-weight: 800; }
.mx-grid { display: grid; gap: 7px; padding: 0 10px 11px; } .mx-grid.g2 { grid-template-columns: 1fr 1fr; } .mx-grid.g3 { grid-template-columns: repeat(3, 1fr); } .mx-grid.g1 { grid-template-columns: 1fr; padding: 0; }
.mx-grid .odd { border-radius: 13px; background: linear-gradient(180deg, #22344a, #1b2a3a); border: 1px solid #2a3d52; padding: 9px 6px; }
.mx-grid .odd b { font-size: 16px; color: #ffc83d; } .mx-grid .odd small { font-size: 11.5px; color: #c8d4e0; }
.mx-grid.row-o .odd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
:root[data-theme="light"] .odd.mx-q, :root[data-theme="light"] .mx-grid .odd { background: #fff; border-color: #d6e2ee; }
:root[data-theme="light"] .odd.mx-q small, :root[data-theme="light"] .mx-grid .odd small { color: #475569; }
:root[data-theme="light"] .odd.mx-q b, :root[data-theme="light"] .mx-grid .odd b { color: #b45309; }
.hm { padding: 0 10px 12px; }
.hm-r { display: grid; grid-template-columns: 26px repeat(4, 1fr); gap: 5px; margin-bottom: 5px; direction: ltr; }
.hm-r.top span { font-size: 10.5px; color: var(--muted); text-align: center; } .hm-r .lb { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.odd.hm-c { border-radius: 10px; padding: 5px 0 4px; border: 1px solid rgba(255,255,255,.06); background: rgba(66,171,222, calc(.06 + var(--k) * .5)); }
.odd.hm-c small { color: #e2e8f0; font-weight: 700; font-size: 11px; } .odd.hm-c b { font-size: 12.5px; color: #fff; }
.hm-ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; direction: ltr; gap: 6px; }
.mx-sc { background: var(--card); border-radius: 18px; padding: 14px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.05); }
.mx-sc h3 { margin: 0 0 12px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.mx-sc h3 .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff; }
.fr { display: flex; align-items: center; gap: 8px; padding: 9px 0; } .fr + .fr { border-top: 1px solid var(--line); }
.fr .nm { flex: 1; font-weight: 800; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-fd { display: flex; gap: 5px; direction: ltr; } .mx-fd div { text-align: center; }
.mx-fd i { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.mx-fd small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.mx-fd .W { background: linear-gradient(180deg, #22c55e, #15803d); } .mx-fd .D { background: linear-gradient(180deg, #94a3b8, #64748b); } .mx-fd .L { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.vh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; } .vh div { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; }
.cmp { display: grid; grid-template-columns: 38px 1fr 78px 1fr 38px; align-items: center; gap: 6px; margin-bottom: 11px; direction: ltr; }
.cmp .v { font-weight: 900; font-size: 13.5px; text-align: center; } .cmp .v.best { color: #ffc83d; }
.cmp .lab { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.cmp .bl, .cmp .br { height: 8px; background: var(--bg); border-radius: 99px; display: flex; overflow: hidden; }
.cmp .bl { justify-content: flex-end; } .cmp .bl i { background: var(--tb); border-radius: 99px; } .cmp .br i { background: var(--ta); border-radius: 99px; }
.h2 { display: flex; align-items: center; gap: 14px; } .h2 .ring { width: 96px; height: 96px; flex: none; }
.h2 .ls { flex: 1; display: grid; gap: 8px; font-size: 12.5px; } .h2 .ls div { display: flex; align-items: center; gap: 7px; }
.h2 .ls i { width: 11px; height: 11px; border-radius: 4px; } .h2 .ls b { margin-inline-start: auto; font-size: 14px; }
.mt-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.mt-list div { display: flex; align-items: center; gap: 8px; font-size: 12px; direction: ltr; }
.mt-list .d { color: var(--muted); width: 76px; white-space: nowrap; font-size: 11px; }
.mt-list .tm2 { flex: 1; display: flex; justify-content: center; gap: 8px; align-items: center; } .mt-list .s { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-weight: 900; }
/* aviator skin */
.avi-stage { background: radial-gradient(120% 100% at 0% 100%, #2a0407, #0b0102 70%) !important; }
.avi-rays { position: absolute; left: -100%; bottom: -100%; width: 200%; height: 200%; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.05) 0 6deg, transparent 6deg 12deg); animation: aviSpin 40s linear infinite; transform-origin: 50% 50%; }
@keyframes aviSpin { to { transform: rotate(360deg); } }
.avi-stage canvas { position: relative; }
.avi-stage .crash-mult .mv { color: #fff; }
.avi-stage .crash-mult.crashed .mv { color: #e50914; }
/* virtual football */
.vf-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 18px 18px 0 0; color: #fff; background: linear-gradient(135deg, #14532d, #0b3d25 60%, #052e16); }
.vf-ttl b { display: block; font-size: 15px; } .vf-ttl small { opacity: .75; }
.vf-ph { text-align: end; } .vf-ph .pb { display: block; font-size: 11.5px; opacity: .9; } .vf-ph .cd { font-size: 22px; }
.vf-bar { height: 4px; background: #0b3d25; border-radius: 0 0 4px 4px; overflow: hidden; margin-bottom: 10px; } .vf-bar i { display: block; height: 100%; background: #4ade80; transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
[dir="rtl"] .vf-bar i { transform-origin: right; }
.vf-pitchwrap { position: relative; margin-bottom: 10px; border-radius: 14px; overflow: hidden; contain: paint; }
.vf-pitch { display: block; width: 100%; height: auto; } .vf-pitch .ball { will-change: transform; }
.vf-sb { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.65); color: #fff; padding: 4px 10px; border-radius: 10px; font-size: 11.5px; white-space: nowrap; direction: ltr; }
.vf-sb .sc { font-size: 15px; } .vf-sb .min { color: #4ade80; font-weight: 800; }
.vf-goal { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.7); background: radial-gradient(circle, rgba(250,204,21,.35), transparent 60%); animation: pop .4s; pointer-events: none; }
.vf-m { position: relative; background: var(--card); border-radius: 16px; padding: 10px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.05); }
.vf-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 8px; }
.vf-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; } .vf-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-t:last-child { flex-direction: row-reverse; text-align: end; }
.vf-shirt { width: 28px; height: 28px; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.vf-vs { font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: 2px; }
.vf-score { font-size: 20px; direction: ltr; display: inline-block; background: #0b1520; color: #fff; border-radius: 10px; padding: 2px 10px; }
.vf-score.pop { animation: pop .5s; color: #facc15; }
.vf-odds { display: grid; gap: 6px; } .vf-odds.n3 { grid-template-columns: repeat(3, 1fr); } .vf-odds.n2 { grid-template-columns: repeat(2, 1fr); margin-top: 6px; }
.vf-odds .odd b { color: #ffc83d; } .vf-odds .odd.on b { color: #fff; }
.vf-more { margin-top: 8px; }
.vf-x { width: max-content; margin: 8px auto 0; font-size: 11px; color: var(--muted); background: var(--bg2); border-radius: 99px; padding: 2px 14px; cursor: pointer; }
.vf-m.played .vf-x { display: none; }
.vf-hr { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .vf-hr:last-child { border: 0; }
.vf-seed { font-size: 9.5px; direction: ltr; word-break: break-all; margin-top: 4px; }
/* backgammon */
.bg-hero { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #6b4423, #2b1a0c); }
.bg-hero svg { width: 92px; flex: none; } .bg-hero-t { flex: 1; } .bg-hero-t b { display: block; font-size: 18px; } .bg-hero-t span { font-size: 12px; opacity: .85; }
.bg-wait { display: grid; gap: 6px; justify-items: center; }
.ldr { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bg-stage { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 1px #2b1606; contain: paint; }
.bg-svg { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.bg-svg .ck { transition: transform .15s; } .bg-svg .ck.can { cursor: pointer; }
.bg-svg .ck.sel { transform: translateY(-3px); filter: drop-shadow(0 4px 4px rgba(0,0,0,.6)); }
.bg-svg .glow { fill: none; stroke: #facc15; stroke-width: 2; opacity: .9; animation: bgGlow 1.1s ease-in-out infinite alternate; pointer-events: none; }
@keyframes bgGlow { from { opacity: .25; } to { opacity: 1; } }
.bg-svg .ghost { fill: rgba(74,222,128,.42); stroke: #86efac; stroke-width: 2; stroke-dasharray: 3 2.5; animation: bgGlow .8s ease-in-out infinite alternate; pointer-events: none; }
.bg-svg .dst-z { fill: transparent; cursor: pointer; }
.bg-svg .dst-off { fill: rgba(74,222,128,.25); stroke: #4ade80; stroke-dasharray: 3 2.5; pointer-events: none; animation: bgGlow .8s ease-in-out infinite alternate; }
.bg-svg .flyer { transition: transform .32s cubic-bezier(.3,.75,.3,1); pointer-events: none; filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); }
.bg-svg .die.used { opacity: .35; }
.bg-svg .die.roll { animation: dieRoll .55s cubic-bezier(.2,.9,.3,1.2); transform-box: fill-box; transform-origin: center; }
@keyframes dieRoll { 0% { transform: translate(-40px, -12px) rotate(-260deg) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bg-pl { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; margin: 8px 0; background: linear-gradient(135deg, var(--card), var(--bg2)); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; --p: 0%; }
.bg-pl.on { border-color: #facc15aa; box-shadow: 0 0 0 3px rgba(250,204,21,.15); }
.bg-pl .ring { width: 46px; height: 46px; border-radius: 50%; padding: 3px; flex: none; background: conic-gradient(#facc15 var(--p), rgba(255,255,255,.08) 0); }
.bg-pl.low .ring { background: conic-gradient(#ef4444 var(--p), rgba(255,255,255,.08) 0); }
.bg-pl .av { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2c3e50, #0d1722); display: grid; place-items: center; }
.bg-pl .dot { width: 24px; height: 24px; border-radius: 50%; display: block; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.bg-pl .dot.w { background: radial-gradient(circle at 38% 32%, #fffdf7, #ece2cc 60%, #bfae8a); border: 1px solid #9c8a66; }
.bg-pl .dot.b { background: radial-gradient(circle at 38% 32%, #7a2a31, #3e1015 55%, #16050a); border: 1px solid #c9a22788; }
.bg-pl .nm { font-weight: 900; font-size: 14px; } .bg-pl .pp { font-size: 11px; color: var(--muted); } .bg-pl .pp b { color: var(--text, #fff); }
.bg-pl .tt { font-size: 18px; color: #facc15; min-width: 26px; text-align: center; } .bg-pl.low .tt { color: #ef4444; }
.bg-hint { text-align: center; font-size: 12.5px; color: var(--muted); min-height: 18px; margin: 2px 0 8px; }
.bg-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bg-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.bg-btn:disabled { opacity: .4; }
.bg-hero { background: radial-gradient(120% 120% at 100% 0%, #a0662f, #4f2c10 60%, #2b1606); box-shadow: inset 0 0 0 2px #e6b57a33; }
.bg-msg { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0,0,0,.45), rgba(0,0,0,.75)); animation: pop .35s; color: #fff; text-align: center; border-radius: 14px; }
.bg-msg b { display: block; font-size: 24px; } .bg-msg small { display: block; opacity: .8; } .bg-msg .num { font-size: 20px; color: #4ade80; margin-top: 4px; }
/* hokm */
.hk-hero { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #166534, #052e16); }
.hk-hero > div { flex: 1; } .hk-hero b { display: block; font-size: 18px; } .hk-hero span { font-size: 12px; opacity: .85; } .hk-hero svg { width: 96px; flex: none; }
.hk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk-modes button { border: 2px solid var(--line); background: var(--bg2); color: inherit; border-radius: 14px; padding: 10px 6px; display: grid; gap: 3px; font: inherit; cursor: pointer; }
.hk-modes button b { font-size: 18px; } .hk-modes button span { font-weight: 800; } .hk-modes button small { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.hk-modes button.on { border-color: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.hk-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.hk-score .tm { background: var(--card); border-radius: 14px; padding: 6px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.hk-score .tm small { color: var(--muted); } .hk-score .tm .pt { font-size: 22px; grid-row: span 2; } .hk-score .tk { font-size: 11px; color: var(--muted); }
.hk-score .us { border: 1px solid #22c55e55; } .hk-score .them { border: 1px solid #ef444455; }
.hk-trump { text-align: center; background: #fff; color: #111; border-radius: 14px; padding: 4px 12px; } .hk-trump small { display: block; font-size: 10px; color: #64748b; }
.hk-trump b { font-size: 28px; line-height: 1.1; } .hk-trump b.red { color: #dc2626; }
.hk-table { position: relative; height: 330px; padding: 0; border-radius: 22px; background: radial-gradient(ellipse at 50% 45%, #1f8a55, #0b3d25 75%); box-shadow: inset 0 0 0 6px #5b3a1a, inset 0 0 0 8px #d4a01755; }
.seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; color: #fff; font-size: 11px; text-align: center; }
.seat.s0 { bottom: 8px; left: 50%; transform: translateX(-50%); } .seat.s2 { top: 8px; left: 50%; transform: translateX(-50%); }
.seat.s1 { right: 4px; top: 50%; transform: translateY(-50%); } .seat.s3 { left: 4px; top: 50%; transform: translateY(-50%); }
.seat .av { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 17px; background: #0b1520; border: 2px solid #64748b; }
.seat.mate .av { border-color: #22c55e; } .seat.opp .av { border-color: #ef4444; }
.seat.on .av { box-shadow: 0 0 0 4px rgba(250,204,21,.6); }
.seat .crown { position: absolute; top: -12px; right: -6px; font-style: normal; font-size: 16px; }
.seat .nm { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.seat .cc { font-size: 10px; opacity: .8; }
.seat .tmr { width: 56px; height: 3px; background: rgba(0,0,0,.4); border-radius: 3px; overflow: hidden; } .seat .tmr i { display: block; height: 100%; background: #facc15; transform-origin: left; transition: transform .3s linear; }
.hk-trick { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.hk-trick .tc { position: absolute; transform: translate(-50%, -50%); animation: pop .3s; }
.hk-trick .tc .pcard { width: 46px; height: 66px; }
.hk-trick .tc.p0 { left: 0; top: 34px; } .hk-trick .tc.p2 { left: 0; top: -34px; } .hk-trick .tc.p1 { left: 42px; top: 0; } .hk-trick .tc.p3 { left: -42px; top: 0; }
.hk-trick .tc.old { opacity: .55; } .hk-trick .tc.win { opacity: 1; z-index: 2; } .hk-trick .tc.win .pcard { box-shadow: 0 0 0 3px #facc15; }
.hk-msg { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; text-align: center; border-radius: 22px; z-index: 5; }
.hk-msg b { display: block; font-size: 20px; } .hk-msg small { display: block; opacity: .85; margin-top: 4px; } .hk-msg .num { font-size: 20px; color: #4ade80; margin-top: 4px; }
.hk-suits { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hk-suits button { width: 56px; height: 56px; border-radius: 14px; border: 0; background: #fff; font-size: 30px; cursor: pointer; color: #111; } .hk-suits button.red { color: #dc2626; }
.hk-hand { display: flex; justify-content: center; direction: ltr; padding: 18px 6px 4px; min-height: 104px; }
.hk-hand .hc { margin-left: -24px; transition: transform .15s; cursor: default; } .hk-hand .hc:first-child { margin-left: 0; }
.hk-hand .hc .pcard { width: 50px; height: 72px; }
.hk-hand .hc.ok { cursor: pointer; } .hk-hand .hc.ok .pcard { box-shadow: 0 0 0 2px #4ade80, 0 6px 14px rgba(0,0,0,.4); }
.hk-hand .hc.no { opacity: .45; } .hk-hand .hc.up { transform: translateY(-16px); }
.hk-hint { min-height: 18px; }
/* ---------- bet slip v8 (cards + bottom sheet) ---------- */
.sl-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sl-hd .sl-kind { flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0 auto; max-width: 180px; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: inherit; font: inherit; font-weight: 900; font-size: 14.5px; cursor: pointer; }
.sl-hd .sl-kind i { font-style: normal; color: var(--muted); }
.sl-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; color: inherit; font-weight: 900; cursor: pointer; }
.sl-list { display: grid; gap: 10px; }
.sl-c { background: var(--card); border-radius: 18px; border: 1px solid rgba(255,255,255,.05); overflow: hidden; }
.sl-c.shut { opacity: .6; }
.sl-mh { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; font-size: 11.5px; color: var(--muted); }
.sl-mh .sl-cp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.sl-lv { display: inline-flex; align-items: center; gap: 5px; background: rgba(220,38,38,.15); color: #fca5a5; padding: 2px 9px; border-radius: 99px; font-weight: 800; }
.sl-lv i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: livePulse 1.4s infinite; }
.sl-x { margin-inline-start: auto; width: 28px; height: 28px; border-radius: 9px; border: 0; background: var(--bg2); color: #60a5fa; font-size: 14px; cursor: pointer; }
.sl-tm { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
.sl-tm .tn { display: flex; align-items: center; gap: 8px; min-width: 0; } .sl-tm .tn.a { justify-content: flex-end; }
.sl-tm .tn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-tm .tn img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.sl-tm .sc { font-size: 24px; font-weight: 900; direction: ltr; letter-spacing: 2px; } .sl-tm .sc.vs { font-size: 13px; color: var(--muted); letter-spacing: 3px; }
.sl-pk { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 10px; background: var(--bg); border-radius: 13px; padding: 11px 12px; }
.sl-pk small { font-size: 12.5px; color: var(--text, #c8d4e0); opacity: .85; }
.sl-pk b { font-size: 17px; color: #ffc83d; direction: ltr; white-space: nowrap; } .sl-pk b.up { color: var(--win); } .sl-pk b.dn { color: var(--lose); } .sl-pk b.cl { font-size: 12px; color: var(--muted); }
.sl-sheet { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 6; margin: 14px -12px 0; padding: 8px 14px 12px; border-radius: 26px 26px 0 0;
  background: var(--bg2); box-shadow: 0 -12px 30px rgba(0,0,0,.4); border-top: 1px solid var(--line); }
.sl-sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; cursor: pointer; }
.sl-sum { display: flex; align-items: center; gap: 10px; } .sl-sum .grow { cursor: pointer; }
.sl-sum .cnt { font-size: 13px; color: var(--muted); } .sl-sum .cnt b { color: var(--text, #fff); font-size: 15px; }
.sl-sum .od { font-size: 13px; color: var(--muted); margin-top: 3px; } .sl-sum .od b { font-size: 20px; color: #ffc83d; direction: ltr; display: inline-block; }
.sl-sum .od b.up { color: var(--win); } .sl-sum .od b.dn { color: var(--lose); }
.sl-more { display: none; } .sl-sheet.open .sl-more { display: block; animation: fadeUp .25s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sl-acc { font-size: 12px; color: var(--muted); margin-top: 8px; } .sl-acc b { color: var(--text, #fff); }
.sl-warn { margin-top: 8px; display: flex; align-items: center; gap: 8px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; border-radius: 12px; padding: 8px 10px; font-size: 12px; }
:root[data-theme="light"] .sl-warn { color: #b91c1c; }
.sl-warn span { flex: 1; } .sl-warn .ok { border: 0; background: #ef4444; color: #fff; border-radius: 8px; padding: 5px 12px; font: inherit; font-weight: 800; cursor: pointer; }
.sl-stake { margin-top: 10px; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.sl-stake .b { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 0; background: var(--card); color: #60a5fa; font-size: 24px; cursor: pointer; }
.sl-stake .v { flex: 1; text-align: center; min-width: 0; }
.sl-stake .v input { width: 100%; border: 0; background: none; color: var(--text, #fff); font: 900 21px Vazirmatn, sans-serif; text-align: center; direction: ltr; outline: none; }
.sl-stake .v small { font-size: 10.5px; color: var(--muted); }
.sl-pot { text-align: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); } .sl-pot b { color: var(--win); font-size: 16px; }
.sl-go { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 16px; padding: 14px; font: 900 17px Vazirmatn, sans-serif; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 22px rgba(22,163,74,.35); }
.sl-go:disabled { background: var(--card); color: var(--muted); box-shadow: none; }
.sl-qk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.sl-qk button { border: 0; border-radius: 13px; padding: 11px 0; font: 800 14px Vazirmatn, sans-serif; color: #fff; direction: ltr; cursor: pointer; background: linear-gradient(135deg, #2f7fd8, #1e4fb0); }
.sl-qk button:disabled { opacity: .45; }
.sl-qh { text-align: center; font-size: 11px; color: var(--muted); margin-top: 6px; }
.list-item.opt { cursor: pointer; flex-wrap: wrap; } .list-item.opt.on { background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 12px; } .list-item.opt.off { opacity: .45; }
.list-item.opt small { width: 100%; }
/* ---------- rock paper scissors v2 ---------- */
.rp-arena { position: relative; overflow: hidden; padding: 18px 10px 14px; border-radius: 22px; color: #fff; min-height: 250px;
  background: radial-gradient(80% 60% at 50% 110%, #1e3a8a55, transparent 70%), linear-gradient(180deg, #0b1530, #120a2a); contain: paint; }
.rp-spot { position: absolute; top: -40px; width: 160px; height: 300px; opacity: .35; pointer-events: none; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); }
.rp-spot.l { left: -10px; transform: rotate(-14deg); background: linear-gradient(180deg, #60a5fa, transparent); }
.rp-spot.r { right: -10px; transform: rotate(14deg); background: linear-gradient(180deg, #f87171, transparent); }
.rp-row { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; direction: ltr; }
.rp-side { display: grid; justify-items: center; gap: 8px; }
.rp-nm { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(96,165,250,.18); padding: 3px 10px; border-radius: 99px; }
.rp-nm.op { background: rgba(248,113,113,.18); }
.rp-med { width: 112px; height: 112px; border-radius: 50%; padding: 5px; position: relative; }
.rp-med.me { background: conic-gradient(from 220deg, #60a5fa, #1e3a8a, #60a5fa); }
.rp-med.op { background: conic-gradient(from 220deg, #f87171, #7f1d1d, #f87171); }
.rp-in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #2b3d63, #0d1430 75%); box-shadow: inset 0 3px 8px rgba(255,255,255,.12), inset 0 -6px 12px rgba(0,0,0,.4); }
.rp-in svg { width: 70%; height: 70%; filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.rp-med[data-m="q"] .rp-in { background: repeating-linear-gradient(45deg, #1d2b55 0 8px, #16224a 8px 16px); }
.rp-med.bump { animation: rpBump .42s ease-out; } @keyframes rpBump { 30% { transform: translateY(-16px) rotate(-6deg); } 60% { transform: translateY(2px); } }
.rp-med.op.bump { animation-name: rpBumpR; } @keyframes rpBumpR { 30% { transform: translateY(-16px) rotate(6deg); } 60% { transform: translateY(2px); } }
.rp-med.flip { animation: rpFlip .5s ease-out; } @keyframes rpFlip { 0% { transform: scaleX(0); } 70% { transform: scaleX(1.12); } 100% { transform: none; } }
.rp-med.won { box-shadow: 0 0 0 4px #facc15, 0 0 28px rgba(250,204,21,.55); }
.rp-med.won::after { content: "👑"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 26px; animation: pop .4s .3s both; }
.rp-med.lost { opacity: .55; } .rp-med.lost .rp-in svg { filter: grayscale(1); }
.rp-med.tie { box-shadow: 0 0 0 3px #94a3b8; }
.rp-vs { position: relative; display: grid; place-items: center; } .rp-vs svg { width: 44px; filter: drop-shadow(0 0 10px rgba(250,204,21,.6)); }
.rp-vs b { position: absolute; font-size: 15px; font-weight: 900; color: #111; letter-spacing: 1px; }
.rp-call { position: absolute; left: 0; right: 0; top: 50%; text-align: center; font-size: 34px; font-weight: 900; pointer-events: none; text-shadow: 0 4px 18px rgba(0,0,0,.7); transform: translateY(-50%); }
.rp-call.pop { animation: rpCall .42s ease-out; } @keyframes rpCall { 0% { transform: translateY(-50%) scale(.4); opacity: 0; } 50% { transform: translateY(-50%) scale(1.15); opacity: 1; } 100% { transform: translateY(-50%) scale(1); opacity: .9; } }
.rp-res { text-align: center; margin-top: 12px; min-height: 44px; position: relative; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.rp-res.show { opacity: 1; transform: none; } .rp-res b { display: block; font-size: 22px; } .rp-res small { opacity: .85; }
.rp-res.win b { color: #facc15; } .rp-res.lose b { color: #f87171; } .rp-res.draw b { color: #cbd5e1; }
.rp-arena.win { background: radial-gradient(80% 60% at 50% 110%, #ca8a0466, transparent 70%), linear-gradient(180deg, #0b1530, #1a1405); }
.rp-arena.lose { background: radial-gradient(80% 60% at 50% 110%, #7f1d1d66, transparent 70%), linear-gradient(180deg, #0b1530, #1a0606); }
.rp-moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-mv { border: 2px solid var(--line); border-radius: 18px; padding: 10px 4px 8px; display: grid; justify-items: center; gap: 2px; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(180deg, var(--card2), var(--card)); transition: transform .15s, border-color .15s; }
.rp-mv .art { width: 62px; height: 62px; } .rp-mv .art svg { width: 100%; height: 100%; }
.rp-mv b { font-size: 14px; } .rp-mv small { font-size: 10px; color: var(--muted); }
.rp-mv.on { border-color: #facc15; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(250,204,21,.2); background: linear-gradient(180deg, #3a3415, var(--card)); }
.rp-ch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg2); margin-top: 8px; border: 1px solid var(--line); }
.rp-ch.mine { border-color: #60a5fa66; }
.rp-ch .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, #f87171, #7f1d1d); color: #fff; flex: none; }
.rp-ch.mine .av { background: linear-gradient(135deg, #60a5fa, #1e3a8a); }
.rp-ch .grow { min-width: 0; } .rp-ch .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rp-ch small { font-size: 11px; }
.rp-ch .stk { background: rgba(250,204,21,.15); color: #facc15; padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.rp-join { border: 0; border-radius: 12px; padding: 9px 12px; font: 800 13px Vazirmatn, sans-serif; color: #fff; cursor: pointer; background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 6px 14px rgba(22,163,74,.3); }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #60a5fa; animation: livePulse 1.2s infinite; }
.rp-empty { text-align: center; padding: 8px 0 2px; color: var(--muted); } .rp-empty .rp-mini { margin: 0 3px; opacity: .6; } .rp-empty p { margin: 6px 0 0; font-size: 12.5px; }
.rp-mini { display: inline-block; width: 30px; height: 30px; vertical-align: middle; } .rp-mini svg { width: 100%; height: 100%; }
.rp-h { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); } .rp-h:last-child { border: 0; }
.rp-h .vs { font-size: 10px; color: var(--muted); } .rp-h .grow { margin-inline-start: 6px; } .rp-h .grow b { display: block; font-size: 13px; } .rp-h small { font-size: 11px; }
.rp-h .badge2 { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--bg2); }
.rp-h.win .badge2 { background: rgba(74,222,128,.15); color: #4ade80; } .rp-h.lose .badge2 { background: rgba(248,113,113,.15); color: #f87171; }

/* ===================================================== v9 — icon system, home, tiles */
.ui-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
[dir="ltr"] .ui-ic.flip { transform: scaleX(-1); }
.ui-chip { --c1: #3b82f6; --c2: #1e3a8a; width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 4px 10px -4px var(--c1), inset 0 1px 0 rgba(255,255,255,.28); }
.ui-chip .ui-ic { width: 16px; height: 16px; }
svg.ill { width: 100%; height: 100%; display: block; overflow: visible; direction: ltr; }
svg, .game-tile .gi, .sbi { direction: ltr; }
.sbi.g { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.sbi.g .ui-ic { width: 14px; height: 14px; }
.c-green { --c1: #22c55e; --c2: #15803d; } .c-purple { --c1: #a855f7; --c2: #6b21a8; } .c-teal { --c1: #14b8a6; --c2: #0f766e; }
.c-pink { --c1: #ec4899; --c2: #9d174d; } .c-gold { --c1: #fbbf24; --c2: #b45309; } .c-blue { --c1: #3b82f6; --c2: #1e40af; }
.c-red { --c1: #f43f5e; --c2: #9f1239; } .c-orange { --c1: #fb923c; --c2: #c2410c; } .c-sky { --c1: #38bdf8; --c2: #0369a1; }

/* section titles */
.section-title { gap: 8px; }
.section-title .st-h { display: inline-flex; align-items: center; gap: 9px; }
.section-title .st-more { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--brand); text-decoration: none;
  padding: 5px 10px; border-radius: 99px; background: rgba(66,171,222,.1); }
.section-title .st-more .ui-ic { width: 13px; height: 13px; }

/* hero */
.hero2 { padding: 16px 16px 14px; min-height: 0; }
.hero2 .dia { width: 92px; top: 10px; animation: none; }
.hero2 h2 { padding-inline-end: 92px; }
.hero-meta { position: relative; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; padding-inline-end: 92px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.hero-meta .vip-pill .ui-ic { color: #a5e4ff; } .hero-meta .vip-pill.t2 .ui-ic, .hero-meta .vip-pill.t3 .ui-ic { color: #fcd34d; }
.hero-meta .bal-pill .ui-ic { color: #4ade80; }
.hero-cta { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hc-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; color: #fff; text-align: start;
  padding: 11px 12px; border-radius: 15px; font: inherit; isolation: isolate; transition: transform .12s;
  box-shadow: 0 10px 22px -10px var(--c1), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.18); background: linear-gradient(140deg, var(--c1), var(--c2)); }
.hc-btn:active { transform: scale(.96); }
.hc-btn.sport { --c1: #22c55e; --c2: #0f5132; } .hc-btn.crash { --c1: #ff6a3d; --c2: #9f1239; }
.hc-btn::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.14); z-index: -1; }
.hc-btn::after { content: ""; position: absolute; inset: auto auto -30px -16px; width: 60px; height: 60px; border-radius: 50%; border: 10px solid rgba(255,255,255,.07); z-index: -1; }
.hc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.28); }
.hc-ic .ui-ic { width: 22px; height: 22px; }
.hc-btn b { display: block; font-size: 15px; line-height: 1.2; } .hc-btn small { display: block; font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-btn > span:last-child { min-width: 0; }

/* banners: art on the side */
.banner { display: flex; align-items: center; gap: 8px; }
.banner .bn-t { flex: 1; min-width: 0; display: grid; gap: 3px; position: relative; z-index: 1; }
.banner .bn-go { font-style: normal; font-size: 11px; font-weight: 800; justify-self: start; margin-top: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.2); }
.banner .bn-art { width: 84px; height: 84px; flex: none; position: relative; z-index: 1; }
.banner .bn-art svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }

/* featured matches */
.fm-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.fm-row::-webkit-scrollbar { display: none; }
.fm-card { position: relative; flex: 0 0 86%; scroll-snap-align: center; border-radius: 18px; overflow: hidden; padding: 12px; color: #fff; cursor: pointer; isolation: isolate;
  background: #0b2a1a; border: 1px solid rgba(255,255,255,.08); contain: paint; }
.fm-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, rgba(255,255,255,.16), transparent 70%), radial-gradient(30% 40% at 90% 10%, rgba(255,255,255,.16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 26px, transparent 26px 52px),
    linear-gradient(180deg, #0d3b24 0%, #13603a 55%, #0a2e1c 100%); }
.fm-bg::before { content: ""; position: absolute; left: 50%; top: 58%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); }
.fm-bg::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.08); }
.fm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.fm-lg { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; opacity: .92; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fm-lg img { width: 18px; height: 18px; object-fit: contain; background: #fff; border-radius: 5px; padding: 1px; }
.fm-t { display: inline-flex; align-items: center; gap: 4px; opacity: .85; white-space: nowrap; }
.fm-live { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; background: #e11d48; padding: 2px 8px; border-radius: 99px; }
.fm-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.fm-mid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin: 12px 0; }
.fm-tm { display: grid; justify-items: center; gap: 7px; text-align: center; min-width: 0; }
.fm-tm b { font-size: 13px; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fm-cr { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #fff, #dfe7ef); box-shadow: 0 8px 18px -6px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.14); }
.fm-cr img { width: 44px; height: 44px; object-fit: contain; }
.fm-c { display: grid; justify-items: center; gap: 3px; min-width: 64px; }
.fm-time { font-size: 20px; font-weight: 900; letter-spacing: .5px; direction: ltr; }
.fm-vs { font-size: 10px; font-weight: 900; letter-spacing: 2px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.3); }
.fm-sc { font-size: 28px; font-weight: 900; direction: ltr; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.fm-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fm-o { background: rgba(0,0,0,.32) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #fff !important; border-radius: 11px !important;
  display: flex !important; justify-content: space-between; align-items: center; padding: 8px 10px !important; }
.fm-o small { font-size: 11px; opacity: .75; } .fm-o b { font-size: 14px; color: #fde68a; }
.fm-o.on { background: linear-gradient(140deg, #42abde, #1d6fb0) !important; border-color: #a5e4ff !important; } .fm-o.on b { color: #fff; }

/* promos with illustrations */
.promo-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.promo { position: relative; overflow: hidden; min-height: 92px; padding: 12px; padding-inline-end: 74px; align-content: center; gap: 3px; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.promo .pi { position: absolute; inset-inline-end: 6px; top: 50%; width: 66px; height: 66px; margin-top: -33px; z-index: -1; }
.promo .pi svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.promo b { font-size: 13.5px; } .promo small { font-size: 11px; }
.promo::before { content: ""; position: absolute; inset: auto auto -30px -30px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.08); z-index: -2; }

/* stats */
.st3 .stat { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; background: var(--card); border: 1px solid var(--line); }
.st3 .stat span { font-size: 11px; color: var(--muted); }
.sf-links a .ui-ic, .sf-badges .ui-ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- casino tiles: static, clean, no overlap */
.game-tile, .game-tile .gi, .game-tile .tag { animation: none !important; }
.game-tile::after { display: none; }
.game-tile { padding: 8px 9px 9px; aspect-ratio: 1 / 1.15; contain: paint; }
.game-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 55% at 50% 30%, rgba(255,255,255,.22), transparent 70%), linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.game-tile .gi { position: absolute; inset: 9px 9px 40px 9px; display: grid; place-items: center; font-size: 40px; overflow: visible; }
.game-tile .gi svg { width: auto; height: 100%; max-width: 100%; max-height: 84px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.game-tile .gn { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-tile .gp { position: relative; z-index: 1; }
.game-tile .tag { top: 7px; inset-inline-start: auto; inset-inline-end: 7px; font-size: 9px; letter-spacing: .3px; padding: 2px 6px; border-radius: 99px;
  background: #e11d48; box-shadow: 0 2px 6px rgba(0,0,0,.3); line-height: 1.3; }
.game-tile .tag:not(:empty) + .gi { inset-block-start: 22px; }
.chip.ci { display: inline-flex; align-items: center; gap: 5px; } .chip.ci .ui-ic { width: 14px; height: 14px; opacity: .85; }
.dot-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; margin-inline-end: 5px; }

/* ---------- account v9 */
.ac-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; color: #fff; isolation: isolate;
  background: linear-gradient(150deg, #173a5e 0%, #0e2238 60%, #0a1626 100%); border: 1px solid rgba(255,255,255,.08); }
.ac-glow { position: absolute; inset: -40% -30% auto auto; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--v1) 45%, transparent), transparent 70%); }
.ac-hero::after { content: ""; position: absolute; inset: auto auto -60px -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(255,255,255,.04); z-index: -1; }
.ac-top { display: flex; align-items: center; gap: 14px; }
.ac-av { position: relative; width: 78px; height: 78px; flex: none; border-radius: 50%; padding: 4px;
  background: conic-gradient(var(--v1) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ac-av > :not(.ac-lv) { width: 100% !important; height: 100% !important; border-radius: 50%; border: 3px solid #0e2238; font-size: 28px !important; }
.ac-lv { position: absolute; inset: auto 50% -6px auto; transform: translateX(50%); min-width: 26px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #1a1a1a; background: linear-gradient(180deg, var(--v1), var(--v2)); border: 2px solid #0e2238; width: auto !important; }
[dir="rtl"] .ac-lv { inset: auto auto -6px 50%; transform: translateX(-50%); }
.ac-who { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.ac-who h3 { margin: 0; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ac-id { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .7; cursor: pointer; direction: ltr; }
.ac-vip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px 3px 6px; border-radius: 99px;
  background: rgba(255,255,255,.08); border: 1px solid color-mix(in srgb, var(--v1) 50%, transparent); color: var(--v1); }
.vgem { width: 18px; height: 18px; }
.ac-xp { margin-top: 14px; }
.ac-xpb { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.ac-xpb i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v2), var(--v1)); }
.ac-xpt { display: flex; justify-content: space-between; font-size: 11px; opacity: .7; margin-top: 5px; }
.ac-bal { margin-top: 10px; display: flex; align-items: stretch; gap: 10px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ac-bl { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ac-bl small { color: var(--muted); font-size: 12px; } .ac-bl > b { font-size: 26px; font-weight: 900; }
.ac-split { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.ac-split span { display: inline-flex; align-items: center; gap: 4px; } .ac-split b { color: var(--text); }
.ac-wb { flex: none; width: 76px; border: 0; border-radius: 15px; color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 5px; background: linear-gradient(150deg, #42abde, #1d5f9e); box-shadow: 0 8px 18px -8px #42abde, inset 0 1px 0 rgba(255,255,255,.3); }
.ac-wb .ui-ic { width: 24px; height: 24px; } .ac-wb:active { transform: scale(.95); }
.ac-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.ac-quick a { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 11.5px; font-weight: 700; text-align: center; }
.ac-quick .ui-chip { width: 38px; height: 38px; border-radius: 12px; } .ac-quick .ui-chip .ui-ic { width: 20px; height: 20px; }
.ac-quick a:active { transform: scale(.95); }
.ac-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.ac-stats > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 12px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.ac-stats .ui-chip { grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; }
.ac-stats b { font-size: 16px; font-weight: 900; } .ac-stats span { font-size: 11px; color: var(--muted); }
.ac-gt { margin: 16px 4px 7px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.ac-menu { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ac-menu a, .ac-quick a { color: var(--text); text-decoration: none; }
.ac-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; cursor: pointer; }
.ac-menu a + a { border-top: 1px solid var(--line); }
.ac-menu a b { flex: 1; font-size: 14px; } .ac-menu a > .ui-ic { color: var(--muted); width: 16px; height: 16px; }
.ac-menu a:active { background: rgba(255,255,255,.04); }

/* ---------- sports list v9 */
.sp-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 12px 12px; color: #fff; isolation: isolate; contain: paint; }
.sp-hb { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 60% at 50% -10%, rgba(255,255,255,.25), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 24px, transparent 24px 48px), linear-gradient(170deg, #11683f, #0a3322 70%); }
.sp-hb::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.sp-ht { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sp-ht h2 { margin: 0; font-size: 19px; } .sp-ht small { opacity: .75; font-size: 12px; }
.sp-ht .ui-chip { width: 40px; height: 40px; border-radius: 13px; } .sp-ht .ui-chip .ui-ic { width: 22px; height: 22px; }
.sp-lg { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; } .sp-lg img { width: 30px; height: 30px; object-fit: contain; }
.sp-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); }
.sp-seg button { position: relative; border: 0; background: transparent; color: rgba(255,255,255,.75); font: inherit; font-size: 11.5px; font-weight: 700; padding: 7px 2px; border-radius: 10px;
  display: grid; justify-items: center; gap: 3px; cursor: pointer; }
.sp-seg button .ui-ic { width: 17px; height: 17px; }
.sp-seg button.on { background: #fff; color: #0b3d24; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.sp-seg button.lv .ui-ic { color: #fb7185; }
.sp-seg em { position: absolute; top: 2px; inset-inline-end: 6px; font-style: normal; font-size: 9.5px; font-weight: 900; min-width: 16px; height: 16px; border-radius: 99px; background: #e11d48; color: #fff; display: grid; place-items: center; padding: 0 4px; }
.sp-lgs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; }
.sp-lgs::-webkit-scrollbar { display: none; }
.sp-lgs a { flex: none; display: grid; justify-items: center; gap: 5px; width: 70px; font-size: 10.5px; font-weight: 700; text-align: center; color: var(--muted); cursor: pointer; line-height: 1.25; }
.sp-li { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); color: var(--brand); }
.sp-li img { width: 32px; height: 32px; object-fit: contain; } .sp-li .ui-ic { width: 24px; height: 24px; }
.sp-lgs a.on { color: var(--text); } .sp-lgs a.on .sp-li { border-color: var(--brand); background: rgba(66,171,222,.12); box-shadow: 0 0 0 3px rgba(66,171,222,.15); }
.sp-promo { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 4px; }
.sp-promo::-webkit-scrollbar { display: none; }
.sp-pc { flex: 1 0 70%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.sp-pc b { display: block; font-size: 13px; } .sp-pc small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-pc > div { min-width: 0; } .sp-pc.red { border-color: rgba(225,29,72,.4); }
.sp-gh { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; font-size: 13.5px; }
.sp-gh img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.sp-gh b { flex: 1; } .sp-gh span { font-size: 11px; font-weight: 800; color: var(--muted); background: var(--card); border-radius: 99px; padding: 1px 8px; }
.empty .ui-chip { width: 54px; height: 54px; border-radius: 17px; margin: 0 auto; } .empty .ui-chip .ui-ic { width: 28px; height: 28px; }

.match.mc { padding: 0; border-radius: 16px; }
.match.mc.is-live { border-color: rgba(225,29,72,.35); }
.mc-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px 0; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.mc-tm { display: inline-flex; align-items: baseline; gap: 6px; } .mc-tm b { color: var(--text); font-size: 13px; direction: ltr; }
.mc-live { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 800; background: #e11d48; padding: 1px 8px; border-radius: 99px; }
.mc-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.mc-ft { font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--bg2); }
.mc-cp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-star { color: #fbbf24; } .mc-more .ui-ic { width: 14px; height: 14px; }
.mc-b { display: grid; gap: 7px; padding: 10px 12px; cursor: pointer; }
.mc-t { display: flex; align-items: center; gap: 10px; }
.mc-t b { flex: 1; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-t.w b { color: #4ade80; }
.mc-cr { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #fff; color: #1e293b; font-weight: 900; font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mc-cr img { width: 22px; height: 22px; object-fit: contain; }
.mc-s { min-width: 28px; text-align: center; font-weight: 900; font-size: 16px; padding: 1px 6px; border-radius: 8px; background: var(--bg2); }
.is-live .mc-s { background: rgba(225,29,72,.15); color: #fb7185; }
.match.mc .odds { padding: 0 10px 10px; margin: 0; }
.match.mc .odd { flex-direction: row; justify-content: space-between; padding: 9px 11px; }
.match.mc .odd small { font-weight: 900; opacity: .6; }
.mc-sus { padding: 0 12px 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.slip-fab { display: inline-flex; align-items: center; gap: 7px; }
.slip-fab .ui-ic { width: 18px; height: 18px; } .slip-fab b { min-width: 20px; height: 20px; border-radius: 99px; background: #fff; color: var(--brand2, #1d5f9e); display: grid; place-items: center; font-size: 12px; }
.match.mc .odd { display: flex; align-items: center; } .match.mc .odd small { display: inline; }

/* ---------- my bets v9 */
.bt-head { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 12px 12px; color: #fff; isolation: isolate; contain: paint; }
.bt-hb { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 100% 0%, rgba(66,171,222,.45), transparent 70%), linear-gradient(160deg, #173a5e, #0b1a2c); }
.bt-hb::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.05); }
.bt-ht { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bt-ht h2 { margin: 0; font-size: 19px; } .bt-ht small { opacity: .7; font-size: 12px; }
.bt-ht .ui-chip { width: 40px; height: 40px; border-radius: 13px; } .bt-ht .ui-chip .ui-ic { width: 22px; height: 22px; }
.bt-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.3); }
.bt-seg button { position: relative; border: 0; background: transparent; color: rgba(255,255,255,.75); font: inherit; font-size: 12.5px; font-weight: 800; padding: 8px 4px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.bt-seg button .ui-ic { width: 16px; height: 16px; }
.bt-seg button.on { background: #fff; color: #0e2238; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.bt-seg em { font-style: normal; font-size: 10px; font-weight: 900; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e11d48; color: #fff; display: grid; place-items: center; }
.bt-body { margin-top: 12px; }
.bt-empty { padding: 30px 10px; } .bt-empty p { margin: 12px 0 16px; line-height: 1.7; }
.bt-go { display: flex; gap: 8px; justify-content: center; } .bt-go .btn { display: inline-flex; align-items: center; gap: 6px; }
.bt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.bt-sum > div { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.bt-sum .ui-chip { width: 28px; height: 28px; } .bt-sum span { min-width: 0; display: grid; }
.bt-sum small { font-size: 10.5px; color: var(--muted); white-space: nowrap; } .bt-sum b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-f { margin-bottom: 10px; }

/* tickets */
.tk-list { display: grid; gap: 12px; }
.tk { position: relative; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--line); contain: paint; }
.tk::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tk, #42abde); }
.tk.st-won { --tk: #22c55e; } .tk.st-lost { --tk: #f43f5e; } .tk.st-cashout { --tk: #fbbf24; } .tk.st-refund { --tk: #94a3b8; } .tk.lv { --tk: #e11d48; }
.tk-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px; font-size: 12px; }
.tk-k { font-weight: 900; padding: 2px 9px; border-radius: 8px; background: rgba(66,171,222,.14); color: var(--brand); }
.tk-id { color: var(--muted); direction: ltr; } .tk-ago { color: var(--muted); font-size: 11px; }
.tk-st { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 99px; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); }
.tk-st .ui-ic { width: 12px; height: 12px; }
.tk-legs { padding: 0 6px; }
.tk-leg { display: flex; align-items: flex-start; gap: 10px; padding: 9px 6px; cursor: pointer; }
.tk-leg + .tk-leg { border-top: 1px dashed var(--line); }
.tk-li { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); margin-top: 2px; }
.tk-li .ui-ic { width: 13px; height: 13px; }
.tk-lm { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tk-tm { display: flex; align-items: center; gap: 5px; font-size: 13px; min-width: 0; }
.tk-tm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tk-tm img { width: 16px !important; height: 16px !important; flex: none; }
.tk-sc { flex: none; font-weight: 900; font-size: 12px; padding: 0 6px; border-radius: 6px; background: var(--bg2); direction: ltr; }
.tk-sc.lv { background: rgba(225,29,72,.18); color: #fb7185; } .tk-vs { color: var(--muted); }
.tk-pk { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.tk-leg.st-won .tk-pk { color: #4ade80; } .tk-leg.st-lost .tk-pk { color: #fb7185; text-decoration: line-through; text-decoration-thickness: 1px; }
.tk-when { font-size: 11px; color: var(--muted); }
.lvm { display: inline-flex; align-items: center; gap: 4px; color: #fb7185; font-weight: 800; }
.lvm i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.tk-lo { flex: none; font-size: 14px; padding: 4px 8px; border-radius: 9px; background: var(--bg2); margin-top: 2px; }
.tk-pr { display: flex; align-items: center; gap: 8px; padding: 4px 12px 2px; }
.tk-pb { flex: 1; height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.tk-pb i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #4ade80); }
.tk-pr small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tk-cut { position: relative; height: 18px; margin: 4px 0 0; }
.tk-cut::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed var(--line); }
.tk-cut i { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.tk-cut i:first-child { left: -10px; } .tk-cut i:last-child { right: -10px; }
.tk-f { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 4px 12px 12px; }
.tk-f > div { display: grid; gap: 1px; } .tk-f small { font-size: 10.5px; color: var(--muted); } .tk-f b { font-size: 14px; }
.tk-win { text-align: end; } .tk-win b { font-size: 16px !important; } .tk-win b.g { color: #4ade80; }
.tk-co { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 24px); margin: 0 12px 12px; padding: 11px; border: 0; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px;
  color: #3b2300; background: linear-gradient(140deg, #fde047, #f59e0b); box-shadow: 0 8px 18px -10px #f59e0b, inset 0 1px 0 rgba(255,255,255,.5); transition: transform .12s; }
.tk-co .ui-ic { width: 18px; height: 18px; } .tk-co:active { transform: scale(.97); }
.tk-co.arm { background: linear-gradient(140deg, #22c55e, #15803d); color: #fff; }
.tk-co:disabled { opacity: .6; }
.tk-stamp { position: absolute; top: 44px; inset-inline-end: 10px; transform: rotate(-12deg); font-size: 15px; font-weight: 900; letter-spacing: 1px; padding: 3px 12px; border-radius: 8px;
  color: var(--tk); border: 2.5px solid var(--tk); opacity: .28; pointer-events: none; }

/* slip */
.ss-top { display: flex; align-items: center; gap: 8px; }
.ss-kind { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.ss-kind button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 13.5px; padding: 8px; border-radius: 10px; cursor: pointer; }
.ss-kind button.on { color: #fff; background: linear-gradient(140deg, #42abde, #1d5f9e); box-shadow: 0 4px 10px -4px #42abde; }
.ss-kind button.off { opacity: .45; }
.ss-clr { width: 46px; height: 46px; flex: none; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: #fb7185; display: grid; place-items: center; cursor: pointer; }
.ss-clr .ui-ic { width: 19px; height: 19px; }
.ss-kx { font-size: 11.5px; color: var(--muted); margin: 8px 4px 10px; }
.ss-list { display: grid; gap: 8px; }
.ss-c { border-radius: 15px; background: var(--card); border: 1px solid var(--line); padding: 10px 12px; }
.ss-c.lv { border-color: rgba(225,29,72,.35); } .ss-c.shut { opacity: .6; border-style: dashed; }
.ss-h { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.ss-t { display: inline-flex; align-items: center; gap: 4px; } .ss-cp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-x { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--bg2); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.ss-x .ui-ic { width: 14px; height: 14px; }
.ss-m { display: flex; align-items: center; gap: 7px; margin: 9px 0; cursor: pointer; }
.ss-m b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-m b:last-of-type { text-align: end; }
.ss-m .mc-cr { width: 28px; height: 28px; } .ss-m .mc-cr img { width: 20px; height: 20px; }
.ss-sc { flex: none; font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 8px; background: var(--bg2); direction: ltr; color: var(--muted); }
.ss-sc.lv { color: #fb7185; background: rgba(225,29,72,.15); }
.ss-p { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 12%, var(--bg2)); }
.ss-p span { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.ss-o { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 900; color: #fde68a; direction: ltr; }
.ss-o.up { color: #4ade80; } .ss-o.dn { color: #fb7185; } .ss-o .ui-ic { width: 13px; height: 13px; }
.ui-ic.rot-up { transform: rotate(90deg); } .ui-ic.rot-dn { transform: rotate(-90deg); }
.ss-cl { font-size: 12px; color: #fb7185; display: inline-flex; align-items: center; gap: 4px; }
.ss-note { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); padding: 10px 4px 0; }
.ss-note .ui-ic { flex: none; margin-top: 2px; }
.ss-panel { position: sticky; bottom: 72px; z-index: 5; margin-top: 12px; padding: 12px; border-radius: 18px; display: grid; gap: 9px;
  background: linear-gradient(180deg, #16314e, #0f2236); border: 1px solid rgba(66,171,222,.3); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.6); }
.ss-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.75); }
.ss-row b { color: #fff; font-size: 15px; } .ss-row.big b { font-size: 19px; color: #4ade80; }
.ss-tot { color: #fde68a !important; font-size: 18px !important; }
.ss-stake { display: grid; grid-template-columns: 46px 1fr 46px; gap: 8px; }
.ss-stake .b { border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ss-stake .b .ui-ic { width: 18px; height: 18px; }
.ss-stake .v { display: grid; justify-items: center; padding: 5px 8px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1); }
.ss-stake .v small { font-size: 10.5px; color: rgba(255,255,255,.6); }
.ss-stake input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; text-align: center; font: inherit; font-size: 20px; font-weight: 900; padding: 0; }
.ss-stake input.bad { color: #fb7185; }
.ss-qk { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ss-qk button { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-weight: 800; font-size: 12.5px; padding: 7px 2px; border-radius: 10px; cursor: pointer; direction: ltr; }
.ss-qk button:active { background: rgba(66,171,222,.3); }
.ss-pot { display: grid; gap: 4px; padding-top: 2px; }
.ss-acc { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; font-size: 11.5px; cursor: pointer; padding: 0; }
.ss-acc .ui-ic { width: 14px; height: 14px; } .ss-acc b { color: #a5e4ff; }
.ss-warn { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; background: rgba(251,191,36,.14); color: #fde68a; font-size: 12.5px; }
.ss-warn span { flex: 1; } .ss-warn .ok { border: 0; border-radius: 9px; padding: 6px 12px; font: inherit; font-weight: 800; background: #fbbf24; color: #3b2300; cursor: pointer; }
.ss-go { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px; font: inherit; font-size: 15.5px; font-weight: 900; color: #fff; cursor: pointer;
  background: linear-gradient(140deg, #22c55e, #15803d); box-shadow: 0 10px 22px -10px #22c55e, inset 0 1px 0 rgba(255,255,255,.3); transition: transform .12s; }
.ss-go:active { transform: scale(.97); } .ss-go:disabled { background: #475569; box-shadow: none; }
.ss-go b { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: rgba(0,0,0,.2); }
.ss-go.busy { opacity: .7; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.radio.on { border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 10px var(--brand); }
.tk-f > div { justify-items: start; } .tk-f > .tk-win { justify-items: end; }
.bt-sum b, .ss-row b, .ac-bl > b { justify-self: start; }
.tk-stamp { top: 46%; left: 50%; right: auto; inset-inline-end: auto; transform: translate(-50%, -50%) rotate(-12deg); font-size: 30px; padding: 4px 18px; border-width: 3px; border-radius: 12px; opacity: .09; z-index: 0; }

/* ---------- game screen v9: header, bet panel, stage frame, result */
.ui-ic.flip-r { transform: scaleX(-1); } [dir="ltr"] .ui-ic.flip-r { transform: none; }
.gh2 { position: relative; overflow: hidden; gap: 10px; padding: 8px; border-radius: 16px; isolation: isolate; background: var(--card); border: 1px solid var(--line); }
.gh2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gbg); opacity: .22; }
.gh2 .back { width: 38px; height: 38px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); }
.gh2 .back .ui-ic { width: 18px; height: 18px; }
.gh-ic { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--gbg); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.3); font-size: 22px; }
.gh-ic svg { width: 34px; height: 34px; direction: ltr; }
.gh-t { flex: 1; min-width: 0; } .gh-t h2 { font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-t small { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.gh-t small .ui-ic { color: #4ade80; width: 12px; height: 12px; }
.gh-f { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.25); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.gh-f .ui-ic { width: 18px; height: 18px; }

.stage { border-color: rgba(255,255,255,.08); box-shadow: 0 16px 34px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }

.betpanel.bp2 { padding: 12px; border-radius: 18px; background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, #000)); }
.bp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bp-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; } .bp-l .ui-ic { color: #fbbf24; }
.bp-mm { font-size: 10.5px; color: var(--muted); }
.bp2 .amount-row { gap: 8px; }
.bp2 .amount-row .btn { min-width: 50px; border-radius: 12px; font-weight: 900; font-size: 15px; background: var(--bg2); border: 1px solid var(--line); }
.bp2 .amount-row input { border-radius: 12px; font-size: 20px; font-weight: 900; padding: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); }
.bp-chips { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; flex-wrap: nowrap; overflow: visible; }
.bp-chips .chip { justify-content: center; text-align: center; padding: 7px 0; font-size: 12px; font-weight: 800; border-radius: 10px; direction: ltr; margin: 0; }
.bp-chips .chip.mx { color: #fbbf24; }
.bp2 .go { margin-top: 10px; font-weight: 900; letter-spacing: .2px; background: linear-gradient(140deg, #22c55e, #15803d); border: 0; box-shadow: 0 10px 22px -10px #22c55e, inset 0 1px 0 rgba(255,255,255,.3); }
.bp2 .go:disabled { filter: saturate(.4); }

.result-banner { padding: 14px 26px; border-radius: 18px; font-size: 26px; font-weight: 900; text-align: center; z-index: 20;
  background: rgba(8,15,25,.88); border: 1.5px solid rgba(255,255,255,.12); transition: transform .28s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.result-banner.w { border-color: rgba(74,222,128,.6); background: radial-gradient(120% 120% at 50% 0%, rgba(34,197,94,.35), rgba(8,15,25,.92) 70%); }
.result-banner.l { border-color: rgba(248,113,113,.45); background: radial-gradient(120% 120% at 50% 0%, rgba(239,68,68,.25), rgba(8,15,25,.92) 70%); }

/* ---------- penalty x5 */
.pk-st { min-height: 0; padding: 0; background: #0b1730; }
.pk-svg { display: block; width: 100%; height: auto; }
.pk-hud { position: absolute; top: 8px; inset-inline: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 2; pointer-events: none; }
.pk-m { font-size: 20px; font-weight: 900; padding: 3px 12px; border-radius: 12px; background: rgba(0,0,0,.5); color: #fde047; }
.pk-nx { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.45); } .pk-nx:empty { display: none; }
.pk-z .tg { opacity: 0; transition: opacity .2s; }
.pk-st.aim .pk-z { cursor: pointer; }
.pk-st.aim .pk-z .tg { opacity: .75; animation: pkPulse 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pk-st.aim .pk-z:active .hit { opacity: .15; }
@keyframes pkPulse { 50% { opacity: .35; } }
.pk-svg.net rect[fill="url(#pk_net)"] { transform: translateY(3px); transition: transform .1s; }
.pk-trail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; direction: ltr; }
.pk-k { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.pk-k .b { width: 18px; height: 18px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--line); }
.pk-k b { font-size: 12px; color: var(--muted); }
.pk-k.cur { border-color: #fde047; box-shadow: 0 0 0 3px rgba(253,224,71,.15); } .pk-k.cur b { color: #fde047; }
.pk-k.g { border-color: rgba(34,197,94,.5); } .pk-k.g .b { background: #22c55e; border-color: #86efac; } .pk-k.g b { color: #4ade80; }
.pk-k.x { border-color: rgba(239,68,68,.5); } .pk-k.x .b { background: #ef4444; border-color: #fca5a5; }
.pk-ctrl { margin-top: 10px; display: grid; gap: 8px; }
.pk-tip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pk-co { display: flex; align-items: center; justify-content: center; gap: 8px; color: #3b2300; background: linear-gradient(140deg, #fde047, #f59e0b); border: 0; font-weight: 900; }
.pk-co:disabled { opacity: .5; }
.tabs-inline.pk2 { gap: 6px; padding: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tabs-inline.pk2 button { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 6px; font-weight: 800; }
.tabs-inline.pk2 button em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.08); color: #fde047; direction: ltr; }
.tabs-inline.pk2 button.on { background: linear-gradient(140deg, #42abde, #1d5f9e); color: #fff; box-shadow: 0 4px 12px -4px #42abde; }
.tabs-inline.pk2 button.on em { background: rgba(0,0,0,.25); }
.lvd { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); display: inline-block; }
.section-title > span.st-h:first-child { display: inline-flex; }

/* recent wins row */
.wins-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wins-row::-webkit-scrollbar { display: none; }
.wn { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); max-width: 230px; }
.wn-g { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; }
.wn-g svg { width: 28px !important; height: 28px !important; display: block; }
.wn > div { min-width: 0; display: grid; } .wn > div b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn > div small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-v { display: grid; justify-items: end; flex: none; } .wn-v b { color: #4ade80; font-size: 12.5px; } .wn-v small { font-size: 10.5px; color: #fde047; direction: ltr; }
.wn.new { animation: rise .4s both; }

/* ---------- coupon bar + coupon sheet */
.slip-fab { display: none !important; }
.cp-bar { position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 12px; border-radius: 16px; cursor: pointer; color: #fff; max-width: 700px; margin: 0 auto;
  background: linear-gradient(140deg, #1f6fb8, #12406e); border: 1px solid rgba(165,228,255,.35); box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.18);
  animation: cpIn .3s cubic-bezier(.2,1.3,.4,1) both; }
[dir="rtl"] .cp-bar { padding: 8px 12px 8px 8px; }
@keyframes cpIn { from { transform: translateY(30px); opacity: 0; } }
.cp-bar.bump { animation: cpBump .35s ease; }
@keyframes cpBump { 40% { transform: scale(1.035); } }
body.has-cp #app { padding-bottom: 150px; }
.cp-n { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.cp-n .ui-ic { width: 21px; height: 21px; }
.cp-n b { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; background: #fbbf24; color: #3b2300; font-size: 11px; display: grid; place-items: center; }
.cp-i { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cp-i small { font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-i b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-i em { font-style: normal; color: #fde68a; direction: ltr; display: inline-block; }
.cp-go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; font-weight: 900; font-size: 13.5px;
  background: linear-gradient(140deg, #22c55e, #15803d); box-shadow: 0 6px 14px -6px #22c55e; }
.cp-go .ui-ic { width: 14px; height: 14px; }
.sheet.cp-sheet { max-height: 92vh; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.cp-sh-h { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; font-size: 16px; }
.cp-all { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--brand); cursor: pointer; }
.cp-all .ui-ic { width: 13px; height: 13px; }
.cp-sheet .ss-panel { position: sticky; bottom: 0; }

/* date chips on the sports list */
.sp-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 2px; }
.sp-days::-webkit-scrollbar { display: none; }
.sp-days button { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 58px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.sp-days button small { font-size: 10px; font-weight: 600; opacity: .8; }
.sp-days button.on { color: #fff; border-color: transparent; background: linear-gradient(140deg, #42abde, #1d5f9e); box-shadow: 0 6px 14px -8px #42abde; }
.sp-dh { display: flex; align-items: center; gap: 8px; margin: 18px 2px 4px; font-size: 13px; font-weight: 900; color: var(--brand); }
.sp-dh::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tk-cw { display: flex; align-items: flex-start; gap: 6px; margin: 0 12px 12px; padding: 8px 10px; border-radius: 11px; background: var(--bg2); font-size: 11px; color: var(--muted); line-height: 1.6; }
.tk-cw .ui-ic { flex: none; width: 13px; height: 13px; margin-top: 2px; }
