/* 643PLAY — "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). */
: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: env(safe-area-inset-bottom, 0px);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "PingFang 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, body { margin: 0; height: 100%; }
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 svg { height: 42px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.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/bull.svg") center 25% / 125% 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/bull.svg") center 25% / 125% 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 { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--bg3) center / cover; box-shadow: inset 0 0 0 1px var(--line); }
.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 svg { height: 64px; margin-bottom: 18px; }
.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; } }
