/* Hệ giao diện chung của 1st: nền sáng trắng, nhấn đỏ + xanh lá, gradient WebGL chuyển động phía sau (js/gradient.js). */
/* Font tự phục vụ (public/fonts, giấy phép SIL OFL): Sora + Inter, bộ latin / latin-ext / tiếng Việt, tải từ Google Fonts 25/10/2026.
   Phục vụ cùng tên miền nên không chặn hiển thị chờ kết nối fonts.googleapis.com / gstatic. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/sora-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/sora-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* trang sáng: thẻ kính trắng mờ trên nền gradient */
  --bg: #fafaf7; --bg2: #f3f3ef;
  --s1: rgba(255,255,255,.78); --s2: #f4f4f1; --s3: #ebebe6; --s4: #dcdcd5;
  --line: rgba(20,22,26,.08); --line2: rgba(20,22,26,.14); --hair: rgba(240,56,74,.28);
  --text: #14161a; --dim: #4c5157; --mute: #6a7077; /* --mute đạt tương phản 4.5:1 trên nền trắng / #fafaf7 */
  /* đỏ là màu nhấn chính, xanh lá là màu phụ */
  --acc: #f0384a; --acc2: #d1263a; --acc-hi: #ff6b78; --on-acc: #ffffff;
  --metal: linear-gradient(180deg, #ff5566 0%, #f0384a 55%, #d42639 100%);
  --sec: #12b76a; --sec2: #0e9f5b; --hot: #f0384a; --info: #0b6b42; --warm: #ff6b57;
  --win: #0e9f5b; --lose: #e0263a; --gold: #f2a516;
  --glass: rgba(255,255,255,.72); --glass-b: rgba(255,255,255,.9);
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 240px; --top: 66px; --tabbar: 66px;
  --shadow: 0 20px 50px rgba(20,22,26,.12), 0 2px 6px rgba(20,22,26,.05);
  --shadow-s: 0 8px 24px rgba(20,22,26,.08);
  color-scheme: light;
}
/* khung chơi 3D là "màn hình" tối: mọi thứ bên trong dùng bộ token tối */
.stage, .tone-dark {
  --s1: #0c2a1d; --s2: #113526; --s3: #17412f; --s4: #21533d;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #ffffff; --dim: #c4d8cd; --mute: #86a596; --bg2: #08201a;
  --info: #7ee0ad; --gold: #ffcf5c; --win: #3df29a; --lose: #ff5566; --acc: #ff4a5c;
  color: var(--text); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 14px/1.5 var(--body); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; font-feature-settings: "cv11", "ss01";
}
/* cao theo màn hình lớn nhất (lvh), không theo inset: 0: thanh địa chỉ iPhone co giãn khi cuộn không làm canvas đổi cỡ (đổi cỡ = xoá khung, chớp đen) */
.bgfx { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; display: block; pointer-events: none; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.disp { font-family: var(--display); letter-spacing: -.02em; }
.eyebrow { font: 600 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
svg.i { width: 20px; height: 20px; flex: none; display: block; }
kbd { font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid currentColor; border-radius: 5px; padding: 1px 5px; opacity: .5; }
@media (hover: none) { kbd { display: none; } }
::selection { background: var(--acc); color: #fff; }

/* ---------- thương hiệu ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; text-decoration: none; }
.brand { --logo-ink: var(--text); --logo-3: #d3d8d4; }
.brand .mk { display: none; width: 44px; height: 44px; flex: none; color: var(--acc); }
.brand .mk svg { width: 100%; height: 100%; display: block; }
.brand .bt { display: flex; flex-direction: column; gap: 5px; }
.brand .lock { display: block; height: 36px; }
.brand .lock svg { height: 100%; width: auto; display: block; }
.brand small { display: block; padding-left: 4px; font-size: 9.5px; color: var(--mute); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- khung app ---------- */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; background: rgba(255,255,255,.6); border-right: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.4);
}
.rail h6 { margin: 16px 10px 6px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.nav-a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--dim); text-decoration: none;
  font-weight: 600; transition: background .15s, color .15s, box-shadow .15s; position: relative;
}
button.nav-a { border: 0; background: none; width: 100%; text-align: left; cursor: pointer; font: inherit; font-weight: 600; }
.nav-a:hover { background: rgba(255,255,255,.8); color: var(--text); }
.nav-a .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c, var(--dim)); transition: .2s; }
.nav-a .ic svg { width: 17px; height: 17px; }
.nav-a.on { background: #fff; color: var(--text); box-shadow: var(--shadow-s); }
.nav-a.on .ic { background: var(--c); color: #fff; }
.nav-a .tag { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--acc); color: #fff; }
.rail .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.note { font-size: 12px; color: var(--dim); background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; line-height: 1.55; }
.note b { color: var(--text); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12.5px; }
.note b svg { color: var(--sec); width: 16px; height: 16px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 26px;
  background: rgba(250,250,247,.62); backdrop-filter: blur(22px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.top .ttl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top .ttl .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--acc)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c, var(--acc)) 35%, transparent); }
.top h1 { margin: 0; font: 700 19px var(--display); white-space: nowrap; letter-spacing: -.02em; }
.top .ttl p { margin: 0; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .rt { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .mbrand { display: none; }
.wallet {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-s); font-weight: 700; transition: box-shadow .3s, border-color .3s;
}
.wallet .coin { width: 22px; height: 22px; color: var(--gold); }
.wallet .v { font: 700 16px var(--display); min-width: 3ch; font-variant-numeric: tabular-nums; }
.wallet .lbl { font-size: 10px; color: var(--mute); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: 2px; }
.wallet.up { border-color: var(--win); box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.wallet.dn { border-color: var(--lose); box-shadow: 0 0 0 3px rgba(240,56,74,.18); }
.wallet .add { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.wallet:not(:has(.add:not([hidden]))) { padding-right: 16px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  color: var(--dim); cursor: pointer; padding: 0; transition: .15s; box-shadow: var(--shadow-s);
}
.icon-btn:hover { color: var(--acc); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #fff;
  background: linear-gradient(140deg, var(--a1, var(--acc)), var(--a2, var(--sec))); flex: none; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.tabbar { display: none; }
.gpick { display: none; }
.acc-h .inv-av { background: linear-gradient(140deg, #2f6fe0, #12b76a); } .acc-h .inv-av svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .top { padding: 0 14px; height: 58px; }
  .top .ttl { display: none; }
  .top .mbrand { display: flex; padding: 0; gap: 8px; }
  .top .mbrand .lock { height: 32px; }
  .top .mbrand small { display: none; }
  .wallet { height: 38px; } .icon-btn { width: 38px; height: 38px; }
  .top .avatar { display: none; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
    background: rgba(255,255,255,.82); backdrop-filter: blur(22px) saturate(1.4); border-top: 1px solid var(--line);
  }
  .tabbar > * { display: flex; border: 0; background: none; padding: 0; cursor: pointer; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--mute); font-size: 10.5px; font-weight: 600; }
  .tabbar > * > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .ic { width: 42px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: .2s; }
  .tabbar .ic svg { width: 19px; height: 19px; }
  .tabbar .on { color: var(--text); }
  .tabbar .on .ic { background: var(--c); color: #fff; }
  /* trang mini game: hàng chọn game cuộn ngang thay cho các mục game cũ ở menu dưới */
  .gpick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px 0; overscroll-behavior-x: contain; }
  .gpick::-webkit-scrollbar { display: none; }
  .gpick a { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line);
    color: var(--dim); text-decoration: none; font-size: 12.5px; font-weight: 600; transition: .15s; }
  .gpick a svg { width: 16px; height: 16px; color: var(--c); }
  .gpick a.on { background: var(--c); border-color: transparent; color: #fff; }
  .gpick a.on svg { color: #fff; }
  /* bảng tài khoản / mời bạn dừng phía trên menu dưới: menu vẫn bấm được, mục đang mở được tô */
  body:has(#tabbar) .acc-ov { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  body:has(#tabbar) .acc-card { max-height: 100%; }
}

/* ---------- nút ---------- */
button { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line2); background: #fff; color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .1s, filter .15s, background .15s, box-shadow .2s, border-color .15s; user-select: none;
}
.btn:hover:not(:disabled) { filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.lg { height: 54px; font-size: 15.5px; padding: 0 24px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn.block { width: 100%; }
/* nút chính: đỏ; nút phụ: xanh lá */
.btn.primary, .btn.gold { background: var(--metal); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(240,56,74,.32), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.sec, .btn.green { background: linear-gradient(180deg, #1fcc7c, #0e9f5b); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(18,183,106,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.hot, .btn.red { background: var(--metal); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 10px 26px rgba(240,56,74,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.ghost { background: rgba(255,255,255,.7); border-color: var(--line2); color: var(--dim); }
.btn.ghost:hover:not(:disabled) { color: var(--text); background: #fff; }
.btn.outline-red { background: #fff; border-color: rgba(240,56,74,.4); color: var(--acc); }
.stage .btn.ghost, .tone-dark .btn.ghost { background: rgba(255,255,255,.06); color: var(--dim); }
.btn kbd { margin-left: 2px; }

/* ---------- ô nhập ---------- */
.field > label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 8px; }
.field > label b { color: var(--text); font: 700 15px var(--display); letter-spacing: 0; text-transform: none; }
.field > label .hint { letter-spacing: 0; text-transform: none; font-weight: 500; }
.inp {
  display: flex; align-items: center; height: 50px; background: #fff; border: 1px solid var(--line2); border-radius: var(--r);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.inp:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(240,56,74,.12); }
.inp .pre { padding-left: 12px; color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.inp input { flex: 1; min-width: 0; height: 100%; background: none; border: none; color: var(--text); padding: 0 10px; font: 700 18px var(--display); outline: none; font-variant-numeric: tabular-nums; }
.inp input::placeholder { color: var(--mute); font-weight: 400; }
.inp .x { height: 34px; min-width: 40px; margin-right: 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--s2); color: var(--dim); font-weight: 700; cursor: pointer; font-size: 13px; }
.inp .x:hover:not(:disabled) { color: var(--acc); }
.inp:has(input:disabled) { opacity: .55; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input.txt { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line2); background: #fff; color: var(--text); font: 500 16px var(--body); outline: none; transition: .2s; }
input.txt:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(240,56,74,.12); }

.chips { display: flex; gap: 6px; }
.chips > button {
  flex: 1; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--dim); font-weight: 600; font-size: 12px;
  cursor: pointer; transition: .15s; padding: 0 4px;
}
.chips > button:hover:not(:disabled) { color: var(--text); border-color: var(--line2); background: #fff; }
.chips > button.on { background: var(--acc2); border-color: var(--acc2); color: #fff; } /* chữ trắng nhỏ: nền đỏ đậm cho đủ tương phản */
.chips > button:disabled { opacity: .4; cursor: not-allowed; }
.stage .chips > button { background: rgba(255,255,255,.06); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20,22,26,.05); border: 1px solid var(--line); }
.seg > button { height: 40px; border: none; border-radius: 999px; background: none; color: var(--dim); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; }
.seg > button:hover { color: var(--text); }
.seg > button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-s); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) var(--p), var(--s4) var(--p)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--acc) var(--p), var(--s4) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 5px solid var(--acc); box-shadow: 0 2px 10px rgba(240,56,74,.35); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--acc); }
input[type=range]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- thẻ ---------- */
.card { background: var(--glass); border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow-s); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 700 15px var(--display); letter-spacing: -.01em; }
.card-h .i { color: var(--acc); width: 18px; height: 18px; }
.card-h .rt { margin-left: auto; font-family: var(--body); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--s3); color: var(--dim); white-space: nowrap; }
.badge.acc { background: rgba(240,56,74,.12); color: var(--acc); }
.badge.win { background: rgba(18,183,106,.14); color: var(--win); }
.badge.lose { background: rgba(240,56,74,.12); color: var(--lose); }
.badge.gold { background: rgba(242,165,22,.15); color: #b57400; }
.badge.sec { background: rgba(18,183,106,.14); color: var(--sec2); }
.badge.info { background: rgba(11,107,66,.12); color: var(--info); }
.stage .badge.acc { background: rgba(255,90,105,.22); color: #ff9aa4; }
.stage .badge.sec, .stage .badge.win { background: rgba(31,204,124,.2); color: #7ee0ad; }
.stage .badge.gold { color: var(--gold); }
.win { color: var(--win); } .lose { color: var(--lose); }
.stage .win { color: #5fe0a0; } .stage .lose { color: #ff7d8a; }
.hint { color: var(--mute); font-size: 12px; }
.mono { font: 500 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mute); word-break: break-all; }
details.fair { border-top: 1px solid var(--line); padding-top: 10px; }
details.fair summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--dim); }
details.fair summary svg { color: var(--sec); width: 16px; height: 16px; }
details.fair summary::-webkit-details-marker { display: none; }
details.fair summary::after { content: "+"; margin-left: auto; font-size: 16px; color: var(--mute); }
details.fair[open] summary::after { content: "–"; }
details.fair .mono { margin-top: 8px; }
.toast-wrap { position: fixed; left: 50%; top: 78px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 999px; background: #14161a; color: #fff; font-weight: 600; box-shadow: var(--shadow); animation: tin .25s ease-out; }
.toast.err { background: var(--acc); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
#nogl { display: none; position: fixed; inset: 0; z-index: 99; background: var(--bg); align-items: center; justify-content: center; color: var(--lose); font-weight: 700; padding: 24px; text-align: center; }

/* màn hình vừa: thanh bên chỉ còn icon */
@media (min-width: 901px) and (max-width: 1180px) {
  :root { --rail: 80px; }
  .rail { padding: 18px 12px; align-items: center; }
  .rail .brand { padding: 4px 0 18px; } .rail .brand .mk { display: block; } .rail .brand > span:last-child, .rail h6, .rail .foot, .nav-a > span:not(.ic), .nav-a .tag { display: none; }
  .rail h6 + .nav-a, .rail .nav-a + h6 { margin-top: 10px; }
  .nav-a { padding: 6px; }
  .nav-a .ic { width: 40px; height: 40px; border-radius: 12px; }
}

/* ---------- tài khoản + VIP (js/account.js) ---------- */
.acct { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-s); cursor: pointer; font: inherit; color: var(--text); max-width: 190px; }
.acct:hover { border-color: var(--line2); }
.acct .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display); color: #fff; background: linear-gradient(140deg, var(--a1, var(--acc)), var(--a2, var(--sec))); flex: none; }
.acct .nm { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; text-align: left; }
.acct .nm b { font: 700 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .nm small { display: flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--vc, var(--mute)); }
.acct .nm small svg { width: 11px; height: 11px; }
.acct.guest .nm small { color: var(--acc); }
.acc-ov { position: fixed; inset: 0; z-index: 70; background: rgba(20,22,26,.45); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: tin .2s; }
.acc-card { position: relative; width: min(100%, 460px); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(20,22,26,.3); padding: 22px 22px 20px; }
.acc-x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--s2); font-size: 20px; line-height: 1; cursor: pointer; color: var(--dim); }
.acc-h { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.acc-h h2 { margin: 0; font-size: 20px; }
.acc-h p { margin: 0; font-size: 12px; color: var(--mute); }
.acc-h > div { min-width: 0; flex: 1; }
.vipb { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 700 12px var(--display); color: #fff; background: var(--vc); white-space: nowrap; }
.vipb svg { width: 13px; height: 13px; }
.acc-tabs { margin: 16px 0 14px; }
.acc-body { display: flex; flex-direction: column; gap: 12px; }
.acc-lead { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--dim); }
.acc-form .hint { margin: -4px 0 0; }
.acc-form + .acc-form { border-top: 1px solid var(--line); padding-top: 12px; }
.acc-err { min-height: 0; color: var(--lose); font-weight: 600; font-size: 13px; }
.acc-err:empty { display: none; }
.linkbtn { background: none; border: 0; color: var(--acc2); font-weight: 600; cursor: pointer; padding: 4px; font-size: 13px; }
.vipcard { border-radius: var(--r-lg); padding: 16px; background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--vc) 55%, transparent), transparent 70%), linear-gradient(160deg, #10241a, #050d09); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vc) 50%, transparent); }
.vc-top { display: flex; align-items: center; gap: 12px; }
.vc-gem { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--vc); background: rgba(255,255,255,.08); }
.vc-gem svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px var(--vc)); }
.vc-top small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.vc-top b { font-size: 22px; }
.vc-pts { margin-left: auto; text-align: right; }
.vc-pts b { font: 700 18px var(--display); }
.vc-bar { margin-top: 14px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.vc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--vc) 70%, #fff), var(--vc)); box-shadow: 0 0 12px var(--vc); }
.vc-next { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.vstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.vstats div { background: var(--s2); border-radius: 14px; padding: 10px 12px; }
.vstats small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.vstats b { font: 700 16px var(--display); }
.vstats .vs-sub { margin-top: 2px; font-weight: 600; color: var(--acc); }
.vtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vtable th { text-align: left; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 6px 8px; }
.vtable td { padding: 7px 8px; border-top: 1px solid var(--line); font-weight: 600; }
.vtable th:not(:first-child), .vtable td:not(:first-child) { text-align: right; }
.vtable tr.on td { background: color-mix(in srgb, var(--acc) 6%, transparent); font-weight: 800; }
.vtable .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--vc); margin-right: 8px; }
.acc-note { margin: 0; line-height: 1.5; }
.devs { display: flex; flex-direction: column; gap: 6px; }
.dev { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; border-radius: 14px; background: var(--s2); }
.dev b { font-size: 13.5px; margin-right: 6px; } .dev small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
@media (max-width: 900px) { .acct { height: 38px; padding: 0 4px; } .acct .av { width: 30px; height: 30px; } .acct .nm { display: none; } }
/* tài khoản bị khoá (account.js) */
.lockbar { position: sticky; top: 0; z-index: 70; padding: 8px 16px; background: var(--acc2); color: #fff; font-weight: 600; font-size: 13px; text-align: center; }
.lockbar-btn { margin-left: 10px; border: 0; border-radius: 999px; padding: 3px 12px; background: #fff; color: var(--acc2); font: 700 12px var(--body); cursor: pointer; }
/* chưa có phiên (IP hết lượt tạo khách): nút header là chữ "Sign in", hiện cả trên điện thoại */
.acct.signin { padding: 0 14px; }
@media (max-width: 900px) { .acct.signin .nm { display: flex; } }
/* nhiệm vụ hằng ngày (account.js) */
.acct { position: relative; }
.acct .mdot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: #fff; font: 800 11px/18px var(--display); text-align: center; box-shadow: 0 0 0 2px #fff; }
.tdot { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 10.5px; font-weight: 800; }
.ms-note { padding: 10px 12px; border-radius: 12px; background: #fff4e0; color: #8a5400; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.ms-note .linkbtn { margin-left: 4px; }
.ms-list { display: flex; flex-direction: column; gap: 8px; }
.ms { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.ms.ready { border-color: color-mix(in srgb, var(--sec) 55%, transparent); background: color-mix(in srgb, var(--sec) 8%, var(--s2)); }
.ms.got { opacity: .6; }
.ms-t b { display: block; font: 700 14px var(--display); }
.ms-t small { color: var(--mute); font-size: 12px; line-height: 1.35; display: block; }
.ms-r { display: flex; align-items: center; gap: 10px; }
.ms-rw { font: 800 14px var(--display); color: var(--sec2); }
.ms-n { font-weight: 700; color: var(--dim); font-size: 13px; }
.ms-ok { font-weight: 700; color: var(--mute); font-size: 12.5px; }
.ms-bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--s4); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sec), #5fd19a); border-radius: inherit; }
/* màn chào người mới (account.js) */
.wel-ov { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(12,14,18,.5); backdrop-filter: blur(6px); animation: tin .25s ease-out; }
.wel { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 20px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); text-align: center; }
.wel-chip { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 10px; font-size: 24px; font-weight: 800; color: #5a3a00; background: radial-gradient(circle at 35% 30%, #ffe9a8, #f2a516 60%, #c27c06); box-shadow: inset 0 0 0 5px rgba(255,255,255,.45), 0 10px 26px rgba(242,165,22,.4); }
.wel h2 { margin: 0 0 6px; font-size: 24px; }
.wel-lead { margin: 0 0 14px; color: var(--dim); }
.wel-list { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.wel-list li { padding: 10px 12px 10px 34px; border-radius: 12px; background: var(--s2); position: relative; font-size: 13.5px; color: var(--dim); }
.wel-list li::before { content: ""; position: absolute; left: 13px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--sec); }
.wel-list b { color: var(--text); }
.wel-fine { margin: 0 0 14px; font-size: 12px; color: var(--mute); }
.wel-act { display: flex; flex-direction: column; gap: 8px; }

/* nạp/rút USDT: nút Deposit trong ô ví, tab Wallet trong bảng tài khoản */
.wallet .add { display: inline-flex; align-items: center; gap: 4px; }
.wallet .add .plus { font-size: 16px; line-height: 1; margin-top: -1px; }
@media (max-width: 520px) { .wallet .add { width: 30px; padding: 0; justify-content: center; } .wallet .add .tx { display: none; } }
.cash-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.acc-tabs { grid-auto-columns: auto; overflow-x: auto; scrollbar-width: none; }
.acc-tabs > button { white-space: nowrap; padding: 0 10px; font-size: 13.5px; }
@media (max-width: 520px) { .acc-tabs { gap: 2px; } .acc-tabs > button { padding: 0 6px; font-size: 12.5px; } }

/* khung nạp/rút nổi (js/cashier.js): trang ví usdt-pay trong iframe. Tên class trung tính để bộ lọc quảng cáo không ẩn nhầm */
.cs-open, .cs-open body { overflow: hidden; }
.cashier-sheet { position: fixed; inset: 0; z-index: 78; display: grid; place-items: center; padding: 24px; background: rgba(12,14,18,.5); backdrop-filter: blur(6px); animation: tin .2s; }
.cashier-sheet[hidden] { display: none; }
.cs-card { width: min(600px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.cs-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.cs-head b { font: 700 17px var(--display); }
.cs-head small { color: var(--mute); font-size: 12px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.cs-x:hover { color: var(--acc); }
.cs-body { position: relative; flex: 1; min-height: 0; background: var(--bg); }
.cs-frame { display: block; width: 100%; height: 100%; border: 0; }
.cs-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--bg); color: var(--dim); font-size: 14px; }
.cs-msg[hidden] { display: none; }
.cs-msg p { margin: 0; max-width: 340px; line-height: 1.5; }
.cs-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cs-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--acc); animation: cs-rot .8s linear infinite; }
@keyframes cs-rot { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .cashier-sheet { padding: 0; }
  .cs-card { width: 100%; height: 100%; border-radius: 0; }
}

/* ngôn ngữ (js/i18n.js): ô chọn ở thanh bên và bảng tài khoản; font Bengali dự phòng cho chữ bn */
html[lang=bn] { --body: "Inter", "Noto Sans Bengali", system-ui, sans-serif; --display: "Sora", "Noto Sans Bengali", "Inter", system-ui, sans-serif; }
.acc-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); font-weight: 600; }
/* màn hẹp: nhãn nút đầu trang ở ngôn ngữ dài (bn, fil) không đẩy ảnh đại diện ra ngoài */
@media (max-width: 420px) {
  .top .rt { gap: 5px; }
  .top .rt > .btn.sm { max-width: 78px; height: auto; min-height: 32px; padding: 3px 8px; white-space: normal; line-height: 1.15; text-align: center; font-size: 11px; }
  .top .rt > .chat-top { width: 34px; height: 34px; }
  .top .rt > #acct { height: 34px; } .top .rt > #acct .av { width: 28px; height: 28px; }
  .top .wallet { padding-left: 8px; gap: 6px; } .top .wallet .coin { width: 18px; height: 18px; }
}

/* bộ chọn ngôn ngữ (js/i18n.js): cờ SVG + tên tiếng bản địa + tên nước */
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(20,22,26,.12); }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: #fff; color: var(--text); font: 600 13px var(--body); cursor: pointer; }
.lang-btn:hover { border-color: var(--acc); }
.lang-full { height: 38px; padding: 0 12px; border-radius: 12px; }
.lang-full .chev { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: var(--mute); stroke-width: 2.5; }
.rail-lang { width: 100%; }
.lang-chip { height: 30px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11.5px; letter-spacing: .04em; }
.lang-chip .flag { width: 18px; height: 12px; }
.lang-icon { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 999px; border-color: var(--line); box-shadow: var(--shadow-s); }
.lang-icon .flag { width: 22px; height: 15px; }
.top-lang { display: none; }
@media (max-width: 900px) { .top-lang { display: inline-flex; width: 38px; height: 38px; } }
.acc-langbtn { position: absolute; top: 14px; right: 56px; z-index: 1; }
.acc-lang .lang-full { min-width: 150px; }
.lang-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.lang-row button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 600 11px var(--body); color: var(--dim); cursor: pointer; }
.lang-row button .flag { width: 28px; height: 19px; }
.lang-row button.on { border-color: var(--acc); color: var(--text); box-shadow: 0 0 0 3px rgba(240,56,74,.14); }
.lang-ov { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(12,14,18,.45); backdrop-filter: blur(6px); animation: tin .2s; }
.lang-card { width: min(360px, 100%); background: #fff; border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.lang-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; }
.lang-h b { font: 700 16px var(--display); }
.lang-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--dim); font-size: 20px; cursor: pointer; }
.lang-opt { display: flex; align-items: center; gap: 14px; padding: 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.lang-opt:hover, .lang-opt:focus-visible { background: var(--bg2); outline: none; }
.lang-opt.on { background: rgba(240,56,74,.07); }
.lang-opt .flag { width: 34px; height: 23px; border-radius: 4px; }
.lang-opt span { display: grid; flex: 1; }
.lang-opt b { font-size: 15px; }
.lang-opt small { color: var(--mute); font-size: 12px; }
.lang-opt .ok { width: 20px; height: 20px; fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .lang-ov { place-items: end stretch; padding: 0; }
  .lang-card { width: 100%; border-radius: 20px 20px 0 0; padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
}

/* số dư quy đổi (shell.js mountFiat) và phần tiền tệ trong bảng "Ngôn ngữ & tiền tệ" */
.wallet .v-stack { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.wallet .v-stack .fx { font: 600 10.5px var(--body); color: var(--mute); white-space: nowrap; margin-top: 1px; }
.cur-sec { display: grid; gap: 8px; margin: 6px 4px 0; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.cur-sec > b { font-size: 13px; color: var(--dim); }
.cur-sec > small { color: var(--mute); font-size: 11.5px; line-height: 1.45; }
.cur-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cur-row button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: #fff; font: 600 13px var(--body); color: var(--text); cursor: pointer; }
.cur-row button.on { border-color: var(--acc); background: rgba(240,56,74,.07); color: var(--acc); }
.lang-note { margin: 4px 12px 6px; font-size: 11.5px; color: var(--mute); }
.wel-where { margin: 16px 0 0; font-size: 12.5px; font-weight: 700; color: var(--dim); text-align: center; }
.flag.globe { box-shadow: 0 0 0 1px rgba(20,22,26,.12); }

/* menu ví (account.js openWalletMenu): bấm ô đồng xu */
.top .wallet.has-menu { cursor: pointer; }
.top .wallet.has-menu:hover, .top .wallet.has-menu:focus-visible { border-color: var(--line2); outline: none; }
.wm-ov { position: fixed; inset: 0; z-index: 72; }
.wm { position: fixed; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; animation: tin .15s; }
.wm-bal { display: grid; gap: 2px; padding: 2px 4px 4px; }
.wm-bal small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.wm-bal b { font: 800 26px var(--display); }
.wm-bal b span { font: 600 13px var(--body); color: var(--mute); }
.wm-bal em { font-style: normal; font-weight: 600; color: var(--dim); font-size: 13.5px; }
.wm-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-row { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--bg2); color: var(--text); font: 600 13.5px var(--body); cursor: pointer; text-align: left; }
.wm-row:hover { background: var(--s3); }
.wm-row svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* ID khách 10 số (usdt-pay): bấm để sao chép; số nằm bên phải, cùng một dòng */
.pay-id b { margin-left: auto; font: 700 14px var(--body); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--text); }
.pay-id span { color: var(--dim); }
.acc-id-wrap { display: grid; gap: 6px; margin-top: 12px; }
.acc-id { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--bg2); color: var(--text); font: 600 13.5px var(--body); cursor: copy; text-align: left; }
.acc-id:hover { border-color: var(--acc); }
.acc-id svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acc-id-wrap .hint { margin: 0; }
.wm .cur-sec { margin: 2px 0 0; padding: 12px 2px 0; }
@media (max-width: 600px) {
  .wm-ov { background: rgba(12,14,18,.45); backdrop-filter: blur(6px); }
  .wm { left: 0; right: 0; bottom: 0; width: auto; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); }
}
/* chip thưởng còn điều kiện cược (tab Ví) */
.bonus-box { display: grid; gap: 6px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.bonus-box p { margin: 0; }
.bonus-box .hint { margin: 0; }
/* thưởng nạp lần đầu (tab Ví) */
.promo-box { display: grid; gap: 6px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 8%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.promo-box p { margin: 0; }
.promo-opt { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.promo-opt input { width: 20px; height: 20px; accent-color: var(--acc); }

/* tab Mời bạn (account.js inviteHTML) */
.inv-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #0b6b42, #0a4f33); color: #fff; }
.inv-card > small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.inv-link { display: flex; gap: 8px; }
.inv-link .txt { flex: 1; min-width: 0; height: 40px; font: 600 13px var(--body); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.inv-link .btn { height: 40px; background: #fff; color: var(--acc); }
.inv-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inv-share .btn { height: 32px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.inv-code { margin-left: auto; font-size: 12.5px; opacity: .9; } .inv-code b { letter-spacing: .12em; }
.inv-stats { grid-template-columns: repeat(3, 1fr); }
.inv-h { margin: 6px 0 0; font: 700 14px var(--display); }
.inv-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.inv-rules b { color: var(--text); }
.inv-bind { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.inv-bind .acc-err { grid-column: 1 / -1; }
.inv-bind input { text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 420px) { .inv-stats { grid-template-columns: 1fr 1fr; } .inv-code { margin-left: 0; width: 100%; } }

/* tài khoản bằng email (account.js): dải nhắc dưới thanh đầu trang, ô xác nhận email, ô nhập mã */
/* nổi ở đáy màn hình (trên menu dưới khi ở điện thoại), trượt lên bằng transform: hiện sau khi /api/me trả về mà không đẩy nội dung
   (trước đây chèn dưới thanh đầu trang, làm cả sảnh dịch xuống: CLS 0,5) */
.emailbar { position: fixed; z-index: 45; left: 50%; bottom: 18px; width: min(640px, calc(100% - 48px)); transform: translateX(-50%); animation: ebIn .35s ease-out;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 14px; background: linear-gradient(90deg, #0b6b42, #0e8a55); color: #fff; font-size: 13.5px; box-shadow: 0 12px 40px rgba(11,107,66,.35); }
@keyframes ebIn { from { transform: translate(-50%, 18px); opacity: 0; } }
.main:has(> #emailbar) { padding-bottom: 76px; }
.emailbar > span { flex: 1; min-width: 0; } .emailbar b { color: #ffe08a; }
.emailbar .btn { background: #fff; color: var(--acc2); flex: none; }
.emailbar .eb-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .emailbar { left: 10px; right: 74px; width: auto; transform: none; bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); font-size: 12.5px; padding: 8px 8px 8px 12px; animation-name: ebInM; }
  @keyframes ebInM { from { transform: translateY(18px); opacity: 0; } }
}
.em-box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--s2); }
.em-box.warn { background: color-mix(in srgb, var(--acc) 7%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 25%, transparent); }
.em-box.ok { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; } .em-box.ok small { color: var(--mute); font-weight: 600; }
.em-box p { margin: 0; font-size: 13px; line-height: 1.5; }
.em-verify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; } .em-verify .acc-err { grid-column: 1 / -1; }
.code-in { font: 700 22px var(--display); letter-spacing: .35em; text-align: center; }
.em-links { display: flex; gap: 14px; flex-wrap: wrap; }
.wel-act .linkbtn { margin-top: 2px; }
/* đặt cược bằng tiền tệ khác USD (shell.js mountFiat): số tiền theo tiền tệ đó là số chính, USD nhỏ bên dưới */
.wallet .v-stack.fiat-main { flex-direction: column-reverse; }
.wallet .v-stack.fiat-main .fx { font: 800 15px var(--display); color: var(--text); margin: 0; }
.wallet .v-stack.fiat-main > .v { font: 600 10.5px var(--body); color: var(--mute); }
.wallet .v-stack.fiat-main > .v::before { content: "$"; }
.cur-sym { font: 800 14px var(--display); color: var(--gold, #e8a10c); }
