/* 9471WIN — "Lacquer × Packet" design system.
   Lacquer: chamfered gold-framed panels, window-lattice ground, duotone icons, diamond markers.
   Packet: envelope jackpot with coin seal, ticket wallet, packet game grid, notched nav with gold-coin 玩.
   Every colour is a token; players switch palettes at runtime (see THEMES in app.js). */
/* Self-hosted fonts, cut down to the characters the app uses (built from Google Fonts' OFL sources).
   Chinese body text uses the phone's own Chinese font (PingFang SC / Noto Sans CJK), which every device has. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/poppins-900.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 900; font-style: italic; font-display: swap; src: url("fonts/poppins-900i.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif SC"; font-weight: 600 900; font-display: swap; src: url("fonts/notoserifsc-900.woff2") format("woff2"); }
@font-face { font-family: "ZCOOL QingKe HuangYou"; font-display: swap; src: url("fonts/zcool.woff2") format("woff2"); }
@font-face { font-family: "Ma Shan Zheng"; font-display: swap; src: url("fonts/mashanzheng.woff2") format("woff2"); }

:root {
  /* palette (朱砂 cinnabar default — app.js rewrites these per theme) */
  --bg0: #2a0405; --bg1: #5a0a0d; --bg2: #7c1213; --bg3: #3c0607;
  --hi: #e2231f; --hi2: #a8100f; --muted: #e9c98a; --on-gold: #5a0a0a; --ink: #fff1d6;
  /* constants */
  --gold1: #fff1b8; --gold: #f2c34c; --gold2: #a96d0c; --gold-txt: #ffe7a0;
  --g: linear-gradient(135deg, var(--gold1), var(--gold) 40%, var(--gold2) 75%, #f7d77e);
  --coin: radial-gradient(circle at 35% 30%, var(--gold1), var(--gold) 50%, #b07a10);
  --panel: linear-gradient(160deg, var(--bg2), var(--bg3));
  --line: color-mix(in srgb, var(--gold) 35%, transparent);
  --soft: color-mix(in srgb, var(--gold) 12%, transparent);
  --success: #3fd08a; --danger: #ff5a5f; --player: #4f94d4;
  --c: 9px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --fun: "ZCOOL QingKe HuangYou", "Noto Serif SC", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { margin: 0; height: 100%; }
/* --app-h is the real visible height (Telegram's viewport inside the Mini App, the window elsewhere); 100dvh is the fallback before JS runs. */
body { margin: 0; height: var(--app-h, 100dvh); }
body { background: var(--bg0); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.hide-sb { scrollbar-width: none; } .hide-sb::-webkit-scrollbar { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- shapes ---------- */
.cut, .field, .amts button, .search, .slot-provs button, .lucky i, .cd-big b, .two button, .link-row, .qr, .roads, .bc-screen, .calc, .bet, .dlg .box, .slot-provs button, .frame, .card, .cont, .prov, .rank-card, .room, .bacc-card, .help, .sec-card, .dlg, .lang-grid button, .promo-row, .art { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
/* gold chamfered frame on a single element: gold paints the edge, ::before paints the panel */
.frame, .card, .cont, .prov, .rank-card, .room, .bacc-card, .help, .sec-card, .dlg, .lang-grid button, .promo-row, .art { position: relative; isolation: isolate; background: var(--g); }
.frame::before, .card::before, .cont::before, .prov::before, .rank-card::before, .room::before, .bacc-card::before, .help::before, .sec-card::before, .dlg::before, .lang-grid button::before, .promo-row::before, .art::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; background: var(--panel);
  clip-path: polygon(calc(var(--c) - .6px) 0, calc(100% - var(--c) + .6px) 0, 100% calc(var(--c) - .6px), 100% calc(100% - var(--c) + .6px), calc(100% - var(--c) + .6px) 100%, calc(var(--c) - .6px) 100%, 0 calc(100% - var(--c) + .6px), 0 calc(var(--c) - .6px)); }
.frame.cut, .field, .amts button, .search, .slot-provs button, .lucky i, .cd-big b, .two button, .link-row, .qr, .roads, .bc-screen, .calc, .bet, .dlg .box, .slot-provs button, .frame, .card, .cont, .prov, .rank-card, .room, .bacc-card, .help, .sec-card, .dlg, .lang-grid button, .promo-row, .art { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.coin-i { display: grid; place-items: center; border-radius: 50%; background: var(--coin); color: var(--on-gold); box-shadow: inset 0 -2px 0 rgba(120,60,0,.35); }
.ico { width: 1em; height: 1em; }

/* ---------- app frame ---------- */
.frame-root { display: flex; justify-content: center; height: 100%; background: var(--bg0); }
.app { position: relative; width: 100%; max-width: 430px; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--gold) 6%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--gold) 6%, transparent) 0 1px, transparent 1px 22px),
    radial-gradient(120% 60% at 50% 0%, var(--bg2), var(--bg1) 55%, var(--bg0)); }
.main { position: relative; z-index: 10; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px calc(108px + var(--safe-bottom)); scrollbar-width: none; }
.main::-webkit-scrollbar { display: none; }
.main.no-nav { padding-bottom: 24px; }

/* ---------- header ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: block; line-height: 0; user-select: none; }
.logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.hdr-act { display: flex; gap: 7px; }
.ibtn { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--coin); color: var(--on-gold); box-shadow: inset 0 -2px 0 rgba(120,60,0,.35), 0 2px 6px rgba(0,0,0,.35); }
.ibtn svg { width: 16px; height: 16px; }
.ibtn .dot { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--hi); box-shadow: 0 0 0 2px var(--bg1); }
.page-title { display: flex; align-items: center; gap: 10px; font: 900 24px var(--display); margin: 0 0 14px; }
.page-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold2), transparent); }
.subhdr { display: flex; align-items: center; gap: 8px; height: 56px; margin-bottom: 6px; }
.subhdr h1 { flex: 1; text-align: center; font: 900 17px var(--display); margin: 0; }
.subhdr .ibtn { flex: none; } .subhdr .sp { width: 32px; }

/* ---------- banners ---------- */
.adverts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.adverts > * { flex: 0 0 100%; scroll-snap-align: center; }
.ad { position: relative; display: block; height: 164px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 24px -12px rgba(0,0,0,.8); }
.ad-tag { position: absolute; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 6px; max-width: 72%; padding: 3px 10px 3px 3px; border-radius: 99px; background: rgba(0,0,0,.4); }
.ad-tag i { font-style: normal; flex: none; border-radius: 99px; background: var(--g); padding: 1px 7px; font-size: 9.5px; font-weight: 700; line-height: 14px; color: var(--on-gold); }
.ad-tag span { font-size: 11px; font-weight: 700; color: var(--gold-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; background: color-mix(in srgb, var(--ink) 25%, transparent); transform: rotate(45deg); transition: all .3s; }
.dots i.on { background: var(--gold); transform: rotate(45deg) scale(1.35); }

/* jackpot envelope */
.jp { text-align: center; background: linear-gradient(var(--hi), var(--hi2)); }
.jp::before { content: ""; position: absolute; left: -10%; right: -10%; top: -78px; height: 132px; border-radius: 0 0 50% 50%; background: linear-gradient(color-mix(in srgb, var(--hi) 80%, white), var(--hi)); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.jp .seal { position: absolute; left: 50%; top: 34px; translate: -50% 0; width: 40px; height: 40px; font: 900 16px var(--display); }
.jp .side { position: absolute; top: 9px; font: 700 9.5px "Poppins", sans-serif; color: var(--gold-txt); } .jp .side.l { left: 12px; } .jp .side.r { right: 12px; }
.jp-body { position: absolute; left: 0; right: 0; top: 80px; }
.jp-sub { font: 600 9.5px "Poppins", sans-serif; letter-spacing: .22em; color: var(--gold-txt); }
.jp-amt { display: flex; justify-content: center; align-items: baseline; gap: 5px; font-weight: 900; }
.jp-amt small { font-size: 14px; color: var(--gold-txt); }
.jp-amt b { font: 900 30px "Poppins", sans-serif; letter-spacing: .5px; background: linear-gradient(#fff, var(--gold1) 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.jp-cd { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.jp-cd div { display: flex; align-items: baseline; gap: 1px; font: 700 12px "Poppins", sans-serif; color: #fff; }
.jp-cd span { font-size: 8px; color: var(--gold-txt); margin-right: 4px; }

/* art banners = framed lacquer boxes */
.art { display: flex; align-items: center; padding: 0 16px; --c: 12px; }
.art::before { background: radial-gradient(circle at 80% 45%, var(--hi), var(--bg2) 50%, var(--bg3)); }
.art .copy { position: relative; z-index: 2; max-width: 58%; }
.art .kick { font-size: 10px; color: var(--gold); font-weight: 700; letter-spacing: 1px; }
.art h3 { margin: 4px 0; font: 900 21px/1.2 var(--display); background: linear-gradient(#fff, var(--gold1) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art p { margin: 0; font-size: 11px; color: var(--muted); }
.art img { position: absolute; right: -4px; bottom: -14px; height: 168px; z-index: 1; }

/* ---------- marquee ---------- */
.marquee { display: flex; align-items: center; gap: 8px; height: 30px; margin-top: 10px; padding: 0 10px; background: color-mix(in srgb, black 25%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12px; }
.marquee > svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.marquee .track { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee .track span { display: inline-block; padding-left: 100%; animation: mq 22s linear infinite; color: var(--ink); }
@keyframes mq { to { transform: translateX(-100%); } }

/* ---------- ticket wallet ---------- */
.wallet { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; color: var(--on-gold);
  background: radial-gradient(circle at 0 50%, transparent 9px, #ffe7a8 10px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 9px, #ffe7a8 10px) right / 51% 100% no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.balance { flex: 1; min-width: 0; }
.balance .lbl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: color-mix(in srgb, var(--on-gold) 70%, #a0601a); font-weight: 600; }
.balance .lbl button { display: grid; color: inherit; } .balance .lbl svg { width: 14px; height: 14px; }
.balance .val { margin-top: 2px; font: 800 18px "Poppins", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-acts { display: flex; gap: 6px; padding-left: 12px; border-left: 1.5px dashed color-mix(in srgb, var(--on-gold) 35%, transparent); }
.w-act { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: var(--on-gold); }
.w-act i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--hi2); color: var(--gold-txt); }
.w-act.pri i { background: var(--hi); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hi) 30%, transparent); }
.w-act svg { width: 16px; height: 16px; }

/* ---------- continue (lacquer frame) ---------- */
.cont { display: flex; align-items: center; gap: 10px; margin-top: 12px; height: 76px; padding: 10px 12px; --c: 10px; }
.cont .ico { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--hi) url("img/art/mascot-head.webp") center 8% / 118% no-repeat; box-shadow: inset 0 0 0 1.5px var(--gold); }
.cont .tx { flex: 1; min-width: 0; }
.cont .lbl { font-size: 10px; color: var(--gold); letter-spacing: .1em; }
.cont .nm { font: 900 15px var(--display); margin-top: 1px; }
.cont .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.cont .go { flex: none; width: 44px; height: 44px; }
.cont .go svg { width: 18px; height: 18px; margin-left: 2px; }

/* ---------- category chips (coin icon pills) ---------- */
.cats { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; }
.chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px 0 4px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--soft); }
.chip i { width: 24px; height: 24px; flex: none; }
.chip i svg { width: 13px; height: 13px; }
.chip.on { background: var(--g); color: var(--on-gold); } .chip.on i { background: var(--hi); color: var(--gold-txt); box-shadow: none; }
.chip.plain { padding: 0 14px; }

/* ---------- section heading (gold rules + diamond) ---------- */
.sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.sec h2 { display: flex; align-items: center; gap: 8px; margin: 0; font: 900 15px var(--display); white-space: nowrap; }
.sec h2::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.sec::after { content: ""; order: 1; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold2), transparent); }
.sec a, .sec button, .sec .r { order: 2; font-size: 10.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- packet game grid ---------- */
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk { position: relative; display: block; aspect-ratio: 1 / 1.2; border-radius: 14px; overflow: hidden; background: linear-gradient(var(--hi), var(--hi2)); box-shadow: 0 6px 14px -8px rgba(0,0,0,.7); }
.pk::before { content: ""; position: absolute; left: -22%; right: -22%; top: -40px; height: 70px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, white 10%, transparent); }
.pk img { position: absolute; left: 8%; right: 8%; top: 12%; width: 84%; height: 64%; object-fit: contain; }
.pk b { position: absolute; left: 4px; right: 4px; bottom: 16px; text-align: center; font-size: 11.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk small { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 8.5px; color: var(--gold-txt); }
.pk .n { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 99px; background: var(--g); color: var(--on-gold); font: 700 8.5px "Poppins", sans-serif; z-index: 1; }
.pk.gd { background: var(--g); color: var(--on-gold); } .pk.gd small { color: var(--on-gold); }
.pk-grid.mt { margin-top: 8px; }
.prov { display: flex; align-items: center; gap: 8px; height: 54px; padding: 7px 10px 7px 7px; --c: 8px; }
.prov .lg { flex: none; width: 54px; height: 38px; display: grid; place-items: center; font-size: 9px; font-weight: 900; font-style: italic; line-height: 1.05; text-align: center; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prov .cp { flex: 1; min-width: 0; }
.prov .cp b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prov .cp span { font-size: 9.5px; color: var(--muted); }
.prov .arr { flex: none; color: var(--gold); font-size: 9px; }
.prov .tag { position: absolute; left: 0; top: 0; font-size: 7px; font-weight: 900; padding: 1px 8px 1px 5px; background: var(--hi); color: #fff; clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%); z-index: 1; }
.prov.more .lg { font-size: 22px; font-style: normal; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }

/* ---------- invite rank (home) ---------- */
.rank-card { padding: 4px 12px; --c: 10px; }
.rk-row { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 8px; height: 38px; border-bottom: 1px dashed var(--line); font-size: 12px; }
.rk-row:last-child { border-bottom: 0; }
.rk-n { width: 22px; height: 22px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--soft); color: var(--muted); border-radius: 50%; }
.rk-n.g1, .rk-n.g2, .rk-n.g3 { background: var(--coin); color: var(--on-gold); }
.rk-c { color: var(--gold); font-weight: 700; } .rk-p { color: var(--muted); font-size: 11px; text-align: right; min-width: 70px; }

/* ---------- bottom nav: notched bar + gold coin 玩 ---------- */
.bnav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; }
.bnav .bar { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(62px + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: radial-gradient(circle at 50% 0, transparent 36px, var(--bg3) 37px); filter: drop-shadow(0 -4px 10px rgba(0,0,0,.4)); }
.bnav .bar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1.5px; background: var(--g);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 37px, #000 38px); mask: radial-gradient(circle at 50% 0, transparent 37px, #000 38px); }
.nv { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); font-weight: 600; }
.nv i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--gold); transition: transform .2s; }
.nv i svg { width: 15px; height: 15px; }
.nv.on { color: var(--gold-txt); } .nv.on i { background: var(--coin); color: var(--on-gold); transform: translateY(-2px); }
.nv-play { position: relative; height: 100%; }
.play-btn { position: absolute; left: 50%; top: -26px; translate: -50% 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--coin);
  color: var(--on-gold); font: 400 22px var(--fun); box-shadow: 0 8px 18px rgba(0,0,0,.55), inset 0 -4px 0 rgba(120,60,0,.4), 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.play-btn::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--on-gold) 40%, transparent); }
.nv-play small { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; font-weight: 700; color: var(--gold-txt); }

/* ---------- free spin float ---------- */
.fsf { position: absolute; right: 10px; bottom: 96px; z-index: 35; width: 80px; height: 80px; animation: fsBob 3s ease-in-out infinite; }
.fsf img { width: 100%; height: 100%; filter: drop-shadow(0 4px 12px rgba(242,195,76,.45)); }
.fsf .x { position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg0); border: 1px solid var(--line); color: var(--ink); font-size: 12px; }
@keyframes fsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- generic: cards, buttons, forms ---------- */
.card { padding: 14px; --c: 10px; }
.card + .card { margin-top: 12px; }
.card-gold::before { background: linear-gradient(160deg, color-mix(in srgb, var(--hi) 55%, var(--bg2)), var(--bg3)); }
.muted { color: var(--muted); } .gold { color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 20px; font-weight: 800; font-size: 15px; --c: 10px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-gold { color: var(--on-gold); background: var(--g); }
.btn-dark { color: var(--gold-txt); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.btn-block { display: flex; width: 100%; }
.btn-sm { height: 34px; font-size: 13px; padding: 0 18px; --c: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tabs .chip { flex: 1; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.list-item:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 30px 0; color: var(--muted); font-size: 13px; }
.field { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 14px; background: color-mix(in srgb, black 30%, transparent); box-shadow: inset 0 0 0 1px var(--line); --c: 8px; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 18px; font-weight: 700; }
.field b { color: var(--gold); }
.amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.amts button { height: 40px; font-weight: 700; background: var(--soft); --c: 7px; }
.amts button.on { background: var(--g); color: var(--on-gold); }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 11px; }
.steps .on { color: var(--ink); } .steps .on b { background: var(--coin); color: var(--on-gold); }
.steps hr { flex: 1; border: 0; border-top: 1px dashed var(--line); }
.note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 12px 0; }
.link-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--soft); font-size: 13px; --c: 8px; }
.link-row svg { width: 14px; height: 14px; flex: none; color: var(--gold); }

/* ---------- me ---------- */
.me-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.avatar { width: 66px; height: 66px; border-radius: 50%; flex: none; background: var(--hi) url("img/art/mascot-head.webp") center 8% / 118% no-repeat; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px color-mix(in srgb, var(--gold) 25%, transparent); }
.me-top .nm { font: 900 17px var(--display); }
.me-top .uid { font-size: 12px; color: var(--muted); margin-top: 3px; }
.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sec-card { height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; --c: 9px; }
.sec-card i { width: 30px; height: 30px; } .sec-card i svg { width: 15px; height: 15px; }
.sec-card span { font-size: 10px; color: var(--gold); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 0; }
.menu-grid a, .menu-grid button { height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; font-size: 11px; color: var(--ink); }
.menu-grid i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.menu-grid i svg { width: 18px; height: 18px; }

/* ---------- hall ---------- */
.room { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; --c: 10px; }
.room .ri { width: 52px; height: 60px; flex: none; border-radius: 8px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(var(--hi), var(--hi2)); font: 900 15px var(--display); color: var(--gold-txt); text-align: center; line-height: 1; }
.room .ri::before { content: ""; position: absolute; left: -30%; right: -30%; top: -22px; height: 38px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, white 12%, transparent); }
.room .ri small { display: block; font-size: 9px; color: var(--gold); margin-top: 3px; }
.room .rc { flex: 1; min-width: 0; }
.room .rc b { font: 900 15px var(--display); } .room .rc p { margin: 3px 0; font-size: 11px; color: var(--muted); }
.room .hot { font-size: 11px; color: var(--gold); font-weight: 800; } .room .hot span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.circle-arr { width: 28px; height: 28px; flex: none; } .circle-arr svg { width: 12px; height: 12px; }
.bacc-card { position: relative; display: block; height: 118px; padding: 14px; overflow: hidden; --c: 12px; }
.live { display: inline-block; padding: 1px 7px; font-size: 10px; font-weight: 800; background: var(--danger); color: #fff; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.bacc-card h3 { margin: 6px 0 2px; font: 900 19px var(--display); } .bacc-card p { margin: 0; font-size: 11px; color: var(--muted); }
.bacc-card .cards2 { position: absolute; right: 44px; top: 10px; }
.bacc-card .cards2 i { position: absolute; width: 50px; height: 72px; border-radius: 6px; background: #fffaf0; box-shadow: inset 0 0 0 1px var(--gold2); color: #111; font-style: normal; font-weight: 900; font-size: 18px; padding: 3px 5px; }
.bacc-card .cards2 i:first-child { transform: rotate(-12deg); right: 20px; } .bacc-card .cards2 i:last-child { transform: rotate(8deg); right: -18px; color: #d2262b; }
.slot-search { display: flex; gap: 10px; }
.slot-provs { display: flex; flex-direction: column; gap: 6px; width: 70px; flex: none; }
.slot-provs button { height: 54px; font-size: 9.5px; font-weight: 900; font-style: italic; color: var(--muted); background: var(--soft); --c: 7px; }
.slot-provs button.on { background: var(--g); color: var(--on-gold); }
.slot-main { flex: 1; min-width: 0; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: color-mix(in srgb, black 30%, transparent); box-shadow: inset 0 0 0 1px var(--line); --c: 8px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13px; }
.search svg { width: 15px; height: 15px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.slot { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 10px; color: var(--muted); text-align: center; }
.slot .th { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--bg2), var(--bg3)); box-shadow: inset 0 0 0 1px var(--line); }
.slot .th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 16px; --c: 10px; }
.help > i { width: 36px; height: 36px; flex: none; } .help > i svg { width: 18px; height: 18px; }
.help b { font-size: 13px; } .help p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.bal-pill { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--g); color: var(--on-gold); font-size: 12px; font-weight: 800; }
.bal-pill svg { width: 13px; height: 13px; }

/* ---------- niu niu room ---------- */
.nn { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg1); }
.nn-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border-bottom: 1.5px solid var(--gold2); }
.nn-top .t { flex: 1; min-width: 0; } .nn-top b { font: 900 15px var(--display); } .nn-top small { display: block; font-size: 11px; color: var(--muted); }
.nn-phase { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 12px; background: linear-gradient(90deg, var(--soft), transparent); border-bottom: 1px solid var(--line); }
.nn-phase b { color: var(--gold); font-size: 16px; }
.nn-log { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--gold) 4%, transparent) 0 1px, transparent 1px 22px); }
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--soft); color: var(--gold); }
.msg .av.bot { background: var(--coin); color: var(--on-gold); font-size: 9px; }
.msg .bub { padding: 7px 10px; border-radius: 4px 12px 12px 12px; background: rgba(0,0,0,.38); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.5; }
.msg .who { font-size: 10.5px; color: var(--gold); font-weight: 700; margin-bottom: 1px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; } .msg.me .bub { background: var(--g); color: var(--on-gold); border-radius: 12px 4px 12px 12px; }
.packet { position: relative; width: 210px; height: 120px; border-radius: 12px; overflow: hidden; background: linear-gradient(var(--hi), var(--hi2)); text-align: center; color: #fff; }
.packet::before { content: ""; position: absolute; left: -10%; right: -10%; top: -50px; height: 86px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, var(--hi) 80%, white); }
.packet .seal { position: absolute; left: 50%; top: 22px; translate: -50% 0; width: 32px; height: 32px; font: 900 13px var(--display); }
.packet .tx { position: absolute; left: 0; right: 0; top: 62px; font-size: 12px; font-weight: 700; } .packet small { display: block; font-size: 10px; color: var(--gold-txt); font-weight: 500; }
.res-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 4px; }
.res-tbl td { padding: 3px 4px; border-top: 1px dashed var(--line); }
.res-tbl .w { color: var(--success); font-weight: 700; } .res-tbl .l { color: var(--danger); font-weight: 700; }
.nn-bar { padding: 8px 12px calc(10px + var(--safe-bottom)); background: var(--bg3); border-top: 1.5px solid var(--gold2); }
.quick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; }
.quick button { flex: none; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--gold-txt); }
.quick button.g { background: var(--g); color: var(--on-gold); }
.chat-in { display: flex; gap: 8px; }
.chat-in input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 99px; background: color-mix(in srgb, black 30%, transparent); border: 0; box-shadow: inset 0 0 0 1px var(--line); outline: 0; font-size: 13px; }
.chat-in button { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--coin); color: var(--on-gold); }
.chat-in svg { width: 17px; height: 17px; }

/* ---------- baccarat ---------- */
.bc-top { display: flex; align-items: center; gap: 8px; height: 56px; }
.bc-top .t { flex: 1; text-align: center; } .bc-top b { font: 900 16px var(--display); } .bc-top small { display: block; font-size: 10.5px; color: var(--muted); }
.bc-top small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 4px; }
.bc-video { display: flex; gap: 10px; }
.bc-screen { position: relative; width: 52%; aspect-ratio: 16/10; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, #1d5a3a, #0a2318 70%); --c: 8px; }
.bc-screen .live { position: absolute; left: 6px; top: 6px; }
.bc-screen .hand { position: absolute; bottom: 8px; display: flex; gap: 3px; } .bc-screen .hand.p { left: 8px; } .bc-screen .hand.b { right: 8px; }
.bc-screen .hand i { width: 20px; height: 28px; border-radius: 3px; background: #fffaf0; color: #111; font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 2px; }
.bc-screen .hand i.r { color: #d2262b; }
.bc-screen .lbl { position: absolute; top: 34%; font-size: 10px; font-weight: 800; } .bc-screen .lbl.p { left: 10px; color: #8ec2ff; } .bc-screen .lbl.b { right: 10px; color: #ff8a8a; }
.bc-info { flex: 1; font-size: 11px; color: var(--muted); line-height: 1.6; }
.bc-info .st { font-size: 14px; color: var(--ink); font-weight: 700; } .bc-info .st b { font-size: 22px; color: var(--gold); margin-left: 6px; }
.road-head { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; font-size: 12px; font-weight: 700; }
.road-head .b { color: #ff6b6b; } .road-head .p { color: #6fb0ff; } .road-head .t { color: var(--success); }
.roads { display: flex; gap: 2px; padding: 3px; background: #f3efe6; overflow: hidden; --c: 6px; }
.bead { display: grid; grid-template-rows: repeat(6, 18px); grid-auto-flow: column; grid-auto-columns: 18px; gap: 1px; }
.bead i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 9px; color: #fff; font-weight: 700; }
.bead i.B { background: #d8312f; } .bead i.P { background: #2f6fd8; } .bead i.T { background: #2fa860; }
.bigroad { flex: 1; display: grid; grid-template-rows: repeat(6, 18px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 1px; overflow: hidden;
  background-image: linear-gradient(#ddd6c8 1px, transparent 1px), linear-gradient(90deg, #ddd6c8 1px, transparent 1px); background-size: 15px 19px; }
.bigroad i { width: 12px; height: 12px; margin: 3px 1px; border-radius: 50%; border: 2px solid; }
.bigroad i.B { border-color: #d8312f; } .bigroad i.P { border-color: #2f6fd8; }
.bets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.bet { position: relative; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 900 18px var(--display); --c: 9px; }
.bet small { font: 500 10px var(--font); opacity: .85; }
.bet.P { background: linear-gradient(#2f6fd8, #173b80); color: #e6f0ff; } .bet.B { background: linear-gradient(#d8312f, #7a1010); color: #ffe6e6; } .bet.T { background: linear-gradient(#2fa860, #125a33); color: #e6ffef; }
.bet .stake { position: absolute; top: 4px; right: 8px; font: 700 10px var(--font); color: var(--gold1); }
.bets.side { grid-template-columns: 1fr 1fr; } .bets.side .bet { height: 48px; font-size: 13px; }
.chips { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.chipc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #fff; border: 3px dashed rgba(255,255,255,.7); box-shadow: 0 0 0 2px rgba(0,0,0,.4); transition: transform .15s; }
.chipc.on { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(242,195,76,.5); }
.c10 { background: #2f6fd8; } .c50 { background: #2fa860; } .c100 { background: #111; } .c500 { background: #8b3fd8; } .c1k { background: #d8a032; }
.bc-acts { display: flex; gap: 8px; margin-top: 12px; } .bc-acts .btn { flex: 1; height: 42px; font-size: 14px; }
.result-flash { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); font: 900 20px var(--display); }

/* ---------- jackpot page, rules, invite, promos ---------- */
.jp-page .ad { height: 170px; }
.lucky { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.lucky i { width: 38px; height: 46px; display: grid; place-items: center; font-style: normal; font: 900 22px "Poppins", sans-serif; color: var(--on-gold); background: var(--g); --c: 6px; }
.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.flow b { display: block; color: var(--gold); font-size: 15px; }
.rule-steps { display: flex; flex-direction: column; gap: 10px; }
.rs { display: flex; gap: 12px; }
.rs b { width: 26px; height: 26px; flex: none; }
.rs h4 { margin: 2px 0 3px; font: 900 14px var(--display); } .rs p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.calc { display: flex; align-items: center; gap: 10px; padding: 12px; background: color-mix(in srgb, black 25%, transparent); margin-top: 8px; font-size: 13px; --c: 7px; }
.calc .amt { font: 800 17px "Poppins", sans-serif; color: var(--gold-txt); } .calc .pts { margin-left: auto; font-weight: 800; color: var(--gold); }
.hands { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.hand-c { padding: 10px 6px; text-align: center; background: linear-gradient(var(--hi), var(--hi2)); border-radius: 10px; }
.hand-c b { display: block; font: 900 14px var(--display); } .hand-c .a { font: 800 16px "Poppins", sans-serif; color: var(--gold-txt); margin: 2px 0; } .hand-c small { display: block; font-size: 10px; color: var(--gold-txt); opacity: .8; }
.hand-c .x { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: var(--g); color: var(--on-gold); }
details.acc { border-top: 1px dashed var(--line); }
details.acc summary { list-style: none; cursor: pointer; padding: 12px 0; font: 900 14px var(--display); display: flex; justify-content: space-between; }
details.acc summary::after { content: "◆"; color: var(--gold); font-size: 10px; transition: transform .2s; } details.acc[open] summary::after { transform: rotate(45deg); }
details.acc p { margin: 0 0 10px; font-size: 12.5px; color: var(--ink); opacity: .9; line-height: 1.65; } details.acc p b { color: var(--gold); }
.inv-hero { position: relative; height: 130px; overflow: hidden; padding: 16px; border-radius: 16px; background: linear-gradient(var(--hi), var(--hi2)); }
.inv-hero::before { content: ""; position: absolute; left: -20%; right: 30%; top: -60px; height: 110px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, white 10%, transparent); }
.inv-hero img { position: absolute; right: -4px; bottom: -22px; height: 150px; }
.inv-hero .k { position: relative; font-size: 11px; color: var(--gold-txt); font-weight: 700; } .inv-hero h2 { position: relative; margin: 6px 0; font: 900 26px var(--display); }
.inv-hero p { position: relative; margin: 0; font-size: 11px; color: var(--gold-txt); max-width: 60%; }
.code-box { display: flex; align-items: center; gap: 12px; }
.qr { width: 92px; height: 92px; background: #fff; padding: 6px; flex: none; --c: 8px; }
.code { display: flex; align-items: center; gap: 6px; font: 900 26px "Poppins", sans-serif; letter-spacing: 2px; color: var(--gold-txt); }
.code svg { width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.two button { padding: 10px; text-align: left; background: var(--soft); --c: 8px; }
.two b { display: block; font-size: 13px; color: var(--gold); } .two span { font-size: 10px; color: var(--muted); }
.how { display: flex; justify-content: space-between; text-align: center; margin-top: 14px; }
.how div { flex: 1; } .how b { margin: 0 auto 4px; width: 28px; height: 28px; }
.how h5 { margin: 0; font: 900 13px var(--display); } .how p { margin: 2px 0 0; font-size: 10px; color: var(--muted); }
.promo .ph { display: flex; gap: 12px; } .promo .ph img { width: 62px; height: 62px; flex: none; }
.promo .k { font-size: 9.5px; color: var(--muted); letter-spacing: 1px; }
.promo h3 { margin: 3px 0; font: 900 18px var(--display); } .promo .ph p { margin: 0; font-size: 12px; color: var(--ink); opacity: .85; }
.promo .big { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.promo .big b { font: 900 30px "Poppins", sans-serif; color: var(--gold-txt); } .promo .big small { font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 4px; }
.promo .big span { font-size: 13px; text-align: right; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.tiers div { padding: 8px 4px; text-align: center; font-size: 11px; background: linear-gradient(var(--hi), var(--hi2)); border-radius: 10px; color: var(--gold-txt); } .tiers b { display: block; font-size: 13px; color: #fff; }
.promo-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.promo-row .ic { width: 44px; height: 44px; flex: none; font-size: 20px; }
.promo-row .c { flex: 1; min-width: 0; } .promo-row b { font: 900 14px var(--display); } .promo-row p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.lb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lb th { font-size: 11px; color: var(--muted); font-weight: 500; text-align: left; padding: 6px 4px; }
.lb td { padding: 9px 4px; border-top: 1px dashed var(--line); } .lb td:last-child { color: var(--gold-txt); }
.cd-big { display: flex; justify-content: center; gap: 6px; align-items: center; margin: 8px 0 4px; }
.cd-big b { min-width: 40px; padding: 4px 6px; background: var(--g); color: var(--on-gold); font: 800 20px "Poppins", sans-serif; text-align: center; --c: 6px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.set-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tgl { position: relative; width: 44px; height: 26px; border-radius: 99px; background: color-mix(in srgb, black 35%, transparent); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; flex: none; }
.tgl::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .2s; }
.tgl.on { background: var(--hi); } .tgl.on::after { left: 21px; background: var(--coin); }

/* ---------- theme picker ---------- */
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.th-sw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.th-sw .pkt { position: relative; width: 100%; aspect-ratio: 1 / 1.25; border-radius: 12px; overflow: hidden; background: linear-gradient(var(--a), var(--b)); box-shadow: 0 6px 14px -8px rgba(0,0,0,.8); transition: transform .2s; }
.th-sw .pkt::before { content: ""; position: absolute; left: -22%; right: -22%; top: -34px; height: 62px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, var(--a) 75%, white); }
.th-sw .pkt i { position: absolute; left: 50%; top: 16px; translate: -50% 0; width: 26px; height: 26px; border-radius: 50%; background: var(--coin); color: #5a0a0a; display: grid; place-items: center; font: 900 12px var(--display); font-style: normal; }
.th-sw .pkt em { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 900 20px var(--display); font-style: normal; color: #ffe7a0; }
.th-sw small { font-size: 10px; color: var(--muted); font-weight: 500; margin-top: -4px; }
.th-sw.on .pkt { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 10px 18px -8px rgba(0,0,0,.8); }
.th-sw.on::after { content: "✓"; position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--coin); color: var(--on-gold); font-size: 11px; font-weight: 900; }
.th-sw:active .pkt { transform: scale(.96); }

/* ---------- theme transition FX ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; view-transition-name: fx; }
::view-transition-old(fx) { display: none; }
::view-transition-new(fx) { animation: none; }
::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
::view-transition-old(root) { z-index: 1; }

/* ---------- overlays ---------- */
.ov { position: absolute; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.7); backdrop-filter: blur(2px); }
.ov.show { display: flex; }
.ov.sheet { align-items: flex-end; padding: 0; }
.dlg { width: 100%; max-width: 360px; max-height: 88%; overflow-y: auto; padding: 18px; --c: 14px; }
.ov.sheet .dlg { max-width: none; border-radius: 0; padding: 18px 16px calc(22px + var(--safe-bottom)); --c: 18px; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); }
.ov.sheet .dlg::before { clip-path: none; inset: 1.5px 0 0; border-radius: 0; }
.dlg h3 { margin: 0 0 14px; text-align: center; font: 900 19px var(--display); color: var(--gold-txt); }
.dlg .lead { margin: -8px 0 14px; text-align: center; font-size: 12px; color: var(--muted); }
.dlg .box { padding: 14px; background: color-mix(in srgb, black 25%, transparent); --c: 9px; }
.dlg .box + .box { margin-top: 10px; }
.dlg .box h4 { margin: 0 0 6px; font: 900 16px/1.35 var(--display); color: var(--gold); }
.dlg .box p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink); opacity: .9; line-height: 1.5; }
.dlg .got { display: block; margin: 14px auto 0; color: var(--muted); font-size: 13px; }
.lang-screen { position: absolute; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; padding: 56px 24px 24px; background: inherit; }
.lang-screen .logo img { height: 96px; margin-bottom: 6px; }
.lang-screen img.m { height: 150px; margin-bottom: 10px; }
.lang-screen h2 { margin: 0; font: 900 19px var(--display); color: var(--gold-txt); } .lang-screen p { margin: 4px 0 18px; font-size: 12px; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.lang-grid button { height: 54px; font-size: 15px; font-weight: 700; --c: 9px; }
.toast { position: absolute; left: 50%; top: 70px; z-index: 99; translate: -50% -10px; opacity: 0; pointer-events: none; max-width: 86%; padding: 10px 18px; font-size: 13px; text-align: center; font-weight: 700;
  background: var(--g); color: var(--on-gold); transition: .25s; border-radius: 99px; }
.toast.show { opacity: 1; translate: -50% 0; }
.game-frame { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #000; }
.game-frame .gf-top { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px; background: var(--bg3); border-bottom: 1.5px solid var(--gold2); font-weight: 700; }
.game-frame iframe { flex: 1; width: 100%; border: 0; }
.demo-note { margin: 18px 0 0; text-align: center; font-size: 10.5px; color: color-mix(in srgb, var(--muted) 60%, transparent); }

@media (min-width: 431px) { .app { box-shadow: 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) { .fsf, .marquee .track span { animation: none; } }

/* ---------- artwork (Higgsfield set) ---------- */
.ad.pic img { width: 100%; height: 100%; object-fit: cover; }
.chip i.pic { background: none; box-shadow: none; width: 26px; height: 26px; }
.chip i.pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.chip.on i.pic { background: none; }
.room .ri { display: block; padding: 0; }
.room .ri img { position: absolute; left: -4px; right: -4px; bottom: -4px; width: calc(100% + 8px); height: 100%; object-fit: cover; object-position: top; }
.bacc-card .bc-art { position: absolute; right: 6px; bottom: -6px; height: 128px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.jp-hero { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 24px -12px rgba(0,0,0,.8); }
.jp-hero img { display: block; width: 100%; aspect-ratio: 343 / 164; object-fit: cover; }
.jp-hero .tx { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.jp-hero .jp-amt b { font-size: 22px; } .jp-hero .jp-amt small { font-size: 11px; }
.inv-hero { background: var(--hi2) url("img/art/hdr-referral.webp") right center / cover no-repeat; }
.inv-hero::before { display: none; }
.inv-hero h2, .inv-hero .k, .inv-hero p { text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.msg .av.bot { background: var(--coin); overflow: hidden; }
.msg .av.bot img { width: 118%; height: 118%; object-fit: cover; object-position: top; }
.packet-anim { position: relative; width: 210px; text-align: center; }
.packet-anim img { width: 150px; height: 150px; margin: -6px auto -10px; object-fit: contain; }
.packet-anim b { display: block; font-size: 12.5px; } .packet-anim small { font-size: 10px; color: var(--muted); }
.res-head { display: flex; align-items: center; gap: 8px; }
.res-head img { width: 44px; height: 44px; object-fit: contain; }
.win { text-align: center; }
.win img { width: 190px; height: 190px; margin: -10px auto 0; object-fit: contain; }
.lang-screen img.m { height: 170px; }

/* ---------- living game tiles ---------- */
.pk-grid { perspective: 700px; }
.pk { --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.pk.tilt { transition: transform .08s linear; }
.pk:active { scale: .97; }
/* gold sheen sweeping across the packet */
.pk::after { content: ""; position: absolute; inset: -20% -60%; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,240,190,.38) 49%, rgba(255,255,255,.55) 50%, rgba(255,240,190,.38) 51%, transparent 58%);
  transform: translateX(-70%); animation: pkSheen 4.8s ease-in-out infinite; }
.pk.s2::after { animation-delay: 1.6s; } .pk.s3::after { animation-delay: 3.2s; }
@keyframes pkSheen { 0%, 62% { transform: translateX(-70%); } 82%, 100% { transform: translateX(70%); } }
.pk img { z-index: 1; transform-origin: 50% 90%; will-change: transform; }
/* 1 · Speed: wind-up, slam, recoil, with a flash on impact */
.pk.s1 img { animation: pkSlam 2.6s cubic-bezier(.3,0,.2,1) infinite; }
@keyframes pkSlam { 0%, 55% { transform: translateY(0) rotate(0) scale(1); } 66% { transform: translateY(-7%) rotate(-5deg) scale(1.03); } 72% { transform: translateY(3%) rotate(2deg) scale(.98); }
  78% { transform: translateY(-1%) rotate(-1deg) scale(1.01); } 86%, 100% { transform: translateY(0) rotate(0) scale(1); } }
.pk .flash { position: absolute; left: 50%; top: 66%; width: 70%; aspect-ratio: 1; translate: -50% -50%; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,250,220,.95), rgba(255,200,80,.55) 35%, transparent 65%); animation: pkFlash 2.6s ease-out infinite; mix-blend-mode: screen; }
@keyframes pkFlash { 0%, 71% { opacity: 0; transform: scale(.4); } 73% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1.5); } }
/* 2 · TNG: floats and bobs, packet glow pulses */
.pk.s2 img { animation: pkFloat 3.2s ease-in-out infinite; }
@keyframes pkFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6%) rotate(1.5deg); } }
.pk .glow { position: absolute; right: 6%; top: 18%; width: 46%; aspect-ratio: 1; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,107,.75), transparent 65%); animation: pkGlow 1.6s ease-in-out infinite alternate; mix-blend-mode: screen; }
@keyframes pkGlow { from { opacity: .35; transform: scale(.85); } to { opacity: 1; transform: scale(1.15); } }
/* 3 · Baccarat: dealer sway with a breath */
.pk.s3 img { animation: pkSway 3.6s ease-in-out infinite; }
@keyframes pkSway { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03); } }
/* twinkling gold sparkles */
.pk .spk { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pk .spk i { position: absolute; width: 9px; height: 9px; background: radial-gradient(circle, #fff 0 18%, transparent 20%), linear-gradient(transparent 44%, #ffe9a8 44% 56%, transparent 56%), linear-gradient(90deg, transparent 44%, #ffe9a8 44% 56%, transparent 56%);
  opacity: 0; animation: pkTwinkle 2.4s ease-in-out infinite; filter: drop-shadow(0 0 3px #ffd56b); }
.pk .spk i:nth-child(1) { left: 14%; top: 22%; animation-delay: .2s; } .pk .spk i:nth-child(2) { left: 78%; top: 40%; animation-delay: 1s; width: 7px; height: 7px; }
.pk .spk i:nth-child(3) { left: 24%; top: 58%; animation-delay: 1.6s; } .pk .spk i:nth-child(4) { left: 64%; top: 14%; animation-delay: 2.1s; width: 6px; height: 6px; }
.pk.s2 .spk i { animation-duration: 2s; } .pk.s3 .spk i { animation-duration: 2.8s; }
@keyframes pkTwinkle { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 0; transform: scale(.3) rotate(90deg); } }
/* live counters */
.pk .n { z-index: 4; transition: transform .2s; }
.pk .n.bump { animation: pkBump .5s ease-out; }
@keyframes pkBump { 0% { transform: scale(1); } 35% { transform: scale(1.3); background: #fff; } 100% { transform: scale(1); } }
.pk .live-n::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #e0242a; margin-right: 3px; vertical-align: 1px; animation: pkLive 1s ease-in-out infinite alternate; }
@keyframes pkLive { from { opacity: .3; } to { opacity: 1; box-shadow: 0 0 5px #ff3b3b; } }
.pk b, .pk small { z-index: 4; }
@media (prefers-reduced-motion: reduce) { .pk img, .pk::after, .pk .flash, .pk .glow, .pk .spk i, .pk .n.bump, .pk .live-n::before { animation: none !important; } .pk { transform: none; } }

/* ---------- split banners: text panel + artwork ---------- */
.ad.split { display: grid; grid-template-columns: 46% 54%; background: var(--bg3); }
.ad.split .bt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 8px; text-align: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--hi) 55%, var(--bg2)), var(--bg3) 75%); }
.ad.split .bt::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); pointer-events: none;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.ad.split .bt::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--g); }
.ad.split .k { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold-txt); }
.ad.split .k .live { font-style: normal; font-size: 8.5px; letter-spacing: 0; padding: 1px 5px; }
.ad.split b { font: 900 34px/1.05 "Poppins", var(--display); letter-spacing: -.5px; background: linear-gradient(#fff 10%, var(--gold1) 45%, var(--gold) 70%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.ad.split b.md { font-size: 25px; }
.ad.split b.sm { font: 900 25px/1.1 var(--display); letter-spacing: 1px; }
.ad.split .s { font-size: 10.5px; color: var(--ink); opacity: .9; line-height: 1.35; }
.ad.split .ba { position: relative; overflow: hidden; }
.ad.split .ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.ad.split .ba.cut-art { background: radial-gradient(ellipse 70% 45% at 50% 100%, #1f7a4a, #0d3a24 60%, transparent 61%), radial-gradient(circle at 50% 20%, rgba(255,214,120,.55), transparent 55%), linear-gradient(#2a1206, #120802); }
.ad.split .ba.cut-art img { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; width: auto; height: 104%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }

/* ---------- footer note ---------- */
.legal { margin: 22px 0 0; text-align: center; font-size: 10.5px; letter-spacing: .02em; color: color-mix(in srgb, var(--muted) 70%, transparent); }

/* ---------- deposit form ---------- */
.pm-list { display: grid; gap: 8px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.pm i { width: 42px; height: 30px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #fff; font: 800 10.5px "Poppins", sans-serif; font-style: normal; }
.pm b { display: block; font-size: 13.5px; } .pm small { font-size: 11px; color: var(--muted); }
.pm.on { box-shadow: inset 0 0 0 2px var(--gold); background: var(--soft); }
.opt-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--hi) 35%, transparent), transparent); cursor: pointer; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.opt-row b { display: block; font-size: 13px; color: var(--gold-txt); } .opt-row small { font-size: 11px; color: var(--muted); }
.lbl-f { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }

/* ---------- withdraw ---------- */
.prog { height: 8px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; background: var(--g); border-radius: 99px; }
.chks { display: grid; gap: 8px; margin-top: 10px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left; border-radius: 12px; background: rgba(0,0,0,.25); }
.chk i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--hi); color: #fff; }
.chk.ok i { background: var(--success); }
.chk span { flex: 1; min-width: 0; } .chk b { display: block; font-size: 13px; } .chk small { font-size: 11px; color: var(--muted); }
.chk em { font-style: normal; font-size: 11.5px; color: var(--gold); white-space: nowrap; } .chk.ok em { color: var(--success); }
.st { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.st.done { background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.st.review { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold); }
.st.off { background: rgba(255,255,255,.08); color: var(--muted); }
.sec-card.done span { color: var(--success); }

/* ---------- PIR Pay gateway (deliberately looks like a separate payment provider) ---------- */
.pg { position: absolute; inset: 0; z-index: 75; display: flex; flex-direction: column; background: #f3f5f9; color: #16213a; font-family: "Poppins", "Noto Sans SC", sans-serif; overflow-y: auto; }
.pg-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #0f2147; color: #fff; }
.pg-logo { font: 800 19px "Poppins", sans-serif; letter-spacing: -.3px; } .pg-logo span { color: #3dd6a8; }
.pg-sb { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: #ffcf3f; color: #4a3600; }
.pg-x { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); }
.pg-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 16px 0; padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(15,33,71,.08); font-size: 12px; }
.pg-sum small { display: block; color: #6b7894; font-size: 10.5px; } .pg-sum b { font-size: 15px; } .pg-sum .r { text-align: right; } .pg-sum .r b { font-size: 19px; color: #0f2147; }
.pg-body { flex: 1; padding: 14px 16px 18px; }
.pg-body h4 { margin: 4px 0 10px; font-size: 14px; }
.pg-banks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-banks button { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #dfe4ee; font-size: 12.5px; font-weight: 600; text-align: left; color: #16213a; }
.pg-banks button:active { box-shadow: inset 0 0 0 2px #2a62d8; }
.pg-banks i { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; }
.pg-wait, .pg-done, .pg-app, .pg-qr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 26px; }
.pg-wait small, .pg-app small, .pg-qr small, .pg-done small { color: #6b7894; font-size: 12px; max-width: 30ch; }
.spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #dfe4ee; border-top-color: #2a62d8; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pg-bank { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(15,33,71,.12); }
.pg-bank .bh { padding: 14px 16px; background: var(--bc); color: #fff; font-weight: 800; font-size: 16px; }
.pg-bank .bb { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pg-bank .bb > small { color: #6b7894; } .pg-bank .bb > b { font-size: 28px; color: #0f2147; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed #e3e7ef; } .kv span:first-child { color: #6b7894; }
.kv.tot { font-weight: 800; font-size: 14px; border-bottom: 0; }
.sbx { margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: #fff7d6; color: #6b5200; font-size: 11.5px; }
.pg-btn { width: 100%; height: 48px; margin-top: 8px; border-radius: 12px; background: #2a62d8; color: #fff; font-weight: 700; font-size: 15px; }
.pg-btn:active { background: #1d4fbb; }
.pg-link { color: #6b7894; font-size: 13px; padding: 8px; }
.pg-app .ph { width: 150px; height: 230px; border-radius: 26px; padding: 10px; background: #16213a; margin-bottom: 8px; }
.pg-app .pn { height: 100%; border-radius: 18px; background: linear-gradient(#0b5cff, #0a3db0); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pg-app .pn span { font-size: 22px; font-weight: 800; margin-top: 10px; } .pg-app .pn em { font-style: normal; font-size: 11px; opacity: .8; }
.pg-qr .qrw { position: relative; width: 190px; height: 190px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 4px 16px rgba(15,33,71,.1); }
.pg-qr .qrw i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 3px 8px; border-radius: 6px; background: #e2231f; color: #fff; font: 800 11px "Poppins", sans-serif; font-style: normal; }
.pg-done .tick { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #19b37a; color: #fff; font-size: 34px; font-weight: 900; animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.pg-done.fail .tick { background: #e0474d; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pg-done > b { font-size: 18px; }
.pg-done .rc { width: 100%; margin-top: 8px; padding: 6px 14px; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(15,33,71,.08); }
.pg-foot { padding: 12px; text-align: center; font-size: 11px; color: #8a96ad; }

/* ---------- blind box ---------- */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bx { position: relative; aspect-ratio: 1 / 1.25; border-radius: 12px; overflow: hidden; background: linear-gradient(var(--hi), var(--hi2)); box-shadow: 0 8px 16px -8px rgba(0,0,0,.7); animation: bxIdle 2.4s ease-in-out infinite; }
.bx:nth-child(2) { animation-delay: .3s; } .bx:nth-child(3) { animation-delay: .6s; }
.bx .flap { position: absolute; left: -20%; right: -20%; top: -30px; height: 60px; border-radius: 0 0 50% 50%; background: color-mix(in srgb, var(--hi) 75%, white); }
.bx i { position: absolute; left: 50%; top: 24px; translate: -50% 0; width: 34px; height: 34px; font: 900 15px var(--display); font-style: normal; }
.bx.off { filter: grayscale(.7) brightness(.7); animation: none; }
@keyframes bxIdle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }
.lucky-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lucky-list span { padding: 4px 10px; border-radius: 8px; background: var(--g); color: var(--on-gold); font-weight: 800; letter-spacing: 2px; font-size: 13px; }
.udot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hi); margin-right: 6px; vertical-align: 1px; }

/* ---------- live chat ---------- */
.chat { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg1); }
.ch-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border-bottom: 1.5px solid var(--gold2); }
.ch-top img { width: 40px; height: 40px; border-radius: 50%; background: var(--coin); object-fit: cover; object-position: top; }
.ch-top .t { flex: 1; min-width: 0; } .ch-top b { font: 900 15px var(--display); } .ch-top small { display: block; font-size: 11px; color: var(--success); }
.ch-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--gold) 4%, transparent) 0 1px, transparent 1px 22px); }
.cm { display: grid; gap: 2px 8px; max-width: 86%; }
.cm.in { grid-template-columns: 32px auto; align-self: flex-start; } .cm.out { align-self: flex-end; justify-items: end; }
.cm img, .cm .ag { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--coin); object-fit: cover; object-position: top; }
.cm .ag { display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--on-gold); }
.cm .b { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: rgba(0,0,0,.38); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cm.out .b { background: var(--g); color: var(--on-gold); box-shadow: none; border-radius: 14px 4px 14px 14px; }
.cm small { font-size: 9.5px; color: var(--muted); } .cm.in small { grid-column: 2; }
.ch-bar { padding: 8px 12px calc(10px + var(--safe-bottom)); background: var(--bg3); border-top: 1.5px solid var(--gold2); }

/* ---------- lucky wheel ---------- */
.wheel { position: relative; width: min(330px, 92%); aspect-ratio: 1; margin: 6px auto 16px; }
.wh-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
#whRot { transform-origin: 0 0; transform-box: view-box; }
.wh-bulb { animation: whBulb 1s steps(1) infinite; }
@keyframes whBulb { 50% { fill: #f2c34c; } }
.wh-ptr { position: absolute; left: 50%; top: -6px; translate: -50% 0; z-index: 2; width: 34px; height: 44px; background: var(--g); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.wh-go { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26%; aspect-ratio: 1; flex-direction: column; gap: 0; box-shadow: 0 0 0 5px #3a0505, 0 0 0 7px #f2c34c, 0 6px 16px rgba(0,0,0,.6); }
.wh-go b { font: 900 18px "Poppins", sans-serif; line-height: 1; } .wh-go small { font-size: 9.5px; font-weight: 700; }
.wh-go:disabled { filter: grayscale(.6) brightness(.8); }
.wh-prizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wh-prizes span { padding: 4px 10px; border-radius: 99px; background: var(--soft); font-size: 12px; font-weight: 700; color: var(--gold-txt); }
.wh-prizes span.top { background: var(--g); color: var(--on-gold); }
@media (prefers-reduced-motion: reduce) { .wh-bulb { animation: none; } }
