/* Sảnh poker */
.lobby { padding: 20px 24px 32px; max-width: 1480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 26px; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(600px 300px at 0% 0%, rgba(240,56,74,.13), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(240,56,74,.16), transparent 60%), linear-gradient(135deg, #0e6a42, #0b5a38);
  border: 1px solid var(--line2); }
.hero::after { content: "♠ ♥ ♣ ♦"; position: absolute; right: -10px; top: -30px; font-size: 150px; letter-spacing: -.1em; color: rgba(255,255,255,.025); pointer-events: none; white-space: nowrap; }
.hero h2 { margin: 14px 0 10px; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; }
.hero h2 em { font-style: normal; color: var(--acc); }
.hero p { margin: 0 0 18px; color: var(--dim); max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-r { position: relative; z-index: 1; }
.mini-mtt { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); background: rgba(6,28,19,.55); border: 1px solid rgba(240,56,74,.25); backdrop-filter: blur(8px); }
.mini-mtt small { color: var(--gold); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mini-mtt h4 { margin: 0; font: 800 18px var(--display); }
.mini-mtt .cd { font: 800 34px var(--display); color: var(--text); letter-spacing: -.02em; }
.mini-mtt .row { display: flex; gap: 14px; color: var(--dim); font-size: 12.5px; flex-wrap: wrap; } .mini-mtt .row b { color: var(--text); }

.ltabs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ltabs .seg { min-width: min(100%, 520px); }
.ltabs .seg button { height: 40px; font-size: 13px; padding: 0 12px; }
.cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--on-acc); font-size: 10.5px; font-weight: 800; }
.vfilter { flex-wrap: wrap; }
.vfilter > button { flex: none; padding: 0 12px; height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.vfilter i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sect-h { display: flex; align-items: baseline; gap: 4px 10px; margin: 6px 2px 10px; flex-wrap: wrap; }
.sect-h h3 { white-space: nowrap; }
.sect-h h3 { margin: 0; font: 700 15px var(--display); } .sect-h span { color: var(--mute); font-size: 12px; }
.tc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.tc::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); opacity: .8; }
.tc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.tc.mine { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent); }
.tc header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vb { font: 800 11px var(--display); padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.tc header .badge:last-child { margin-left: auto; }
.tc h3 { margin: 0; font: 700 17px var(--display); }
.tc .stk { display: flex; align-items: baseline; gap: 8px; }
.tc .stk b { font: 800 26px var(--display); letter-spacing: -.02em; }
.tc .stk span { color: var(--mute); font-size: 12px; }
.meta { display: grid; grid-template-columns: 1.5fr 1fr .8fr; gap: 6px; }
.meta div { background: var(--s2); border-radius: 10px; padding: 7px 9px; min-width: 0; }
.meta small { display: block; font-size: 10.5px; color: var(--mute); font-weight: 600; }
.meta b { font: 700 12.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.seatdots { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); }
.seatdots i { width: 12px; height: 12px; border-radius: 50%; background: var(--s4); }
.seatdots i.h { background: var(--acc); box-shadow: 0 0 8px rgba(240,56,74,.5); } .seatdots i.b { background: var(--sec); }
.seatdots span { margin-left: auto; }
.prize { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(240,56,74,.07); border: 1px solid rgba(240,56,74,.18); }
.prize small { display: block; font-size: 10.5px; color: var(--dim); font-weight: 600; } .prize b { font: 800 20px var(--display); color: var(--gold); }
.prize .pl { text-align: right; font-size: 11.5px; color: var(--dim); line-height: 1.5; } .prize .pl b { font-size: 12px; color: var(--text); }
.prog { height: 6px; border-radius: 3px; background: var(--s4); overflow: hidden; } .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--sec), var(--c)); }
.pline { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); } .pline b { color: var(--text); }
.pline .cdv { color: var(--acc); font-family: var(--display); font-weight: 700; }
.tc .btn { margin-top: auto; }

.mtt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(240,56,74,.1), rgba(18,183,106,.08)), var(--s1); border: 1px solid rgba(240,56,74,.22); }
.mtt + .mtt { margin-top: 12px; }
.mtt.run { border-color: rgba(240,56,74,.35); background: linear-gradient(135deg, rgba(240,56,74,.1), rgba(18,183,106,.06)), var(--s1); }
.mtt.done { opacity: .8; background: var(--s1); border-color: var(--line); }
.mtt h3 { margin: 8px 0 4px; font: 800 20px var(--display); }
.mtt p { margin: 0; color: var(--dim); font-size: 13px; }
.mtt .big { font: 800 30px var(--display); letter-spacing: -.02em; }
.mtt .big small { display: block; font: 600 11px var(--body); color: var(--mute); letter-spacing: 0; }
.mtt .meta { margin-top: 12px; grid-template-columns: repeat(4, 1fr); }
.mtt .act { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }

.empty-l { padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line2); border-radius: var(--r-lg); }
.empty-l b { display: block; color: var(--text); font-family: var(--display); margin-bottom: 4px; }

.vinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vcard { padding: 16px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.vcard:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.vcard h4 { margin: 8px 0 4px; font: 700 14px var(--display); }
.vcard p { margin: 0; font-size: 12px; color: var(--dim); line-height: 1.5; }

@media (max-width: 1180px) { .vinfo { grid-template-columns: 1fr 1fr; } .mtt { grid-template-columns: minmax(0, 1fr) minmax(150px, auto); } .mtt .act { grid-column: 1 / -1; flex-direction: row; } .mtt .act > * { flex: 1; } }
@media (max-width: 900px) {
  .lobby { padding: 10px 10px 20px; gap: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .hero-cta .btn { flex: 1; }
  .ltabs .seg { min-width: 100%; }
  .ltabs .seg button { font-size: 12px; padding: 0 4px; }
  .mtt { grid-template-columns: minmax(0, 1fr); }
  .mtt .meta { grid-template-columns: 1fr 1fr; }
  .mtt .act { min-width: 0; flex-direction: column; }
  .mtt .big { font-size: 26px; }
}
@media (max-width: 560px) { .vinfo { grid-template-columns: minmax(0, 1fr); } .grid { grid-template-columns: minmax(0, 1fr); } }

/* ảnh nền phần đầu sảnh (tạo bằng Codex, public/img/lobby-hero.jpg): tối dần sang trái để chữ dễ đọc */
.hero { background: linear-gradient(90deg, rgba(6,28,19,.96) 0%, rgba(6,28,19,.82) 38%, rgba(6,28,19,.25) 72%, rgba(6,28,19,.1) 100%), url(/img/lobby-hero.jpg?v=2) right center / cover no-repeat, #0b5a38; }
.hero::after { content: none; }
.hero-l { position: relative; z-index: 1; }
.mini-mtt { background: rgba(6,28,19,.55); backdrop-filter: blur(3px); border-color: rgba(240,56,74,.35); }
.mini-mtt .cd, .mini-mtt h4 { text-shadow: 0 2px 14px rgba(0,0,0,.8); }
@media (max-width: 900px) {
  .hero { background: linear-gradient(180deg, rgba(6,28,19,.55) 0%, rgba(6,28,19,.88) 45%, rgba(6,28,19,.97) 100%), url(/img/lobby-hero.jpg?v=2) 70% top / auto 62% no-repeat, #061c13; }
}

/* tiêu đề lớn, dòng nhãn nhỏ phía trên */
.hero .eyebrow { display: block; margin-top: 18px; }
.hero h2 { margin: 8px 0 12px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 700; font-variation-settings: "opsz" 144; letter-spacing: -.025em; }
.hero h2 em { font-style: italic; color: var(--acc); background: var(--metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .05em; }
.hero p { font-size: 14.5px; line-height: 1.6; }
.hero { border-color: var(--hair); }
.tc::before { height: 2px; }
.tc h3, .mtt h3, .sect-h h3, .mini-mtt h4 { font-weight: 700; letter-spacing: -.01em; }
.tc .stk b { font-weight: 700; font-size: 30px; }
.vb { font-family: var(--body); letter-spacing: .06em; }
@media (max-width: 900px) { .hero h2 { font-size: 44px; } }

/* nền sáng + gradient WebGL: phần đầu sảnh có canvas riêng rực màu, chữ trắng */
.hero { background: #0a5a37; border: none; box-shadow: 0 30px 70px rgba(209,38,58,.22), 0 10px 30px rgba(11,107,66,.18); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4,30,19,.55) 0%, rgba(4,30,19,.15) 55%, transparent 80%); pointer-events: none; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero h2 { color: #fff; font-weight: 800; letter-spacing: -.035em; text-shadow: 0 6px 30px rgba(0,0,0,.25); }
.hero h2 em { background: none; -webkit-text-fill-color: currentColor; color: #fff; font-style: italic; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero p { color: rgba(255,255,255,.86); }
.hero .btn.primary { background: #fff; color: var(--acc); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero .btn.ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(8px); }
.hero .badge.acc { background: rgba(255,255,255,.2); color: #fff; }
.mini-mtt { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(14px) saturate(1.2); }
.mini-mtt small { color: #fff; opacity: .85; }
.mini-mtt .cd, .mini-mtt h4 { text-shadow: none; }
.mini-mtt .btn.gold { background: #fff; color: var(--acc); box-shadow: none; }
/* thẻ bàn / giải: kính trắng */
.tc, .mtt, .vcard { background: var(--glass); border: 1px solid rgba(255,255,255,.95); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--shadow-s); }
.tc:hover { border-color: rgba(255,255,255,1); box-shadow: var(--shadow); }
.tc::before { height: 3px; }
.meta div, .sgrid div { background: rgba(20,22,26,.04); }
.prize { background: rgba(240,56,74,.07); border-color: rgba(240,56,74,.18); }
.prize b { color: var(--acc); }
.mtt { background: var(--glass); }
.mtt.run { border-color: rgba(18,183,106,.4); background: linear-gradient(135deg, rgba(18,183,106,.1), rgba(255,255,255,.75)); }
.empty-l { background: rgba(255,255,255,.55); }
.ltabs .seg { background: rgba(255,255,255,.6); backdrop-filter: blur(14px); }

/* dải thẻ game có ảnh thumbnail */
.gstrip { margin: 18px 0 4px; }
.gs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.gs-head h3 { margin: 0; font: 800 20px var(--display); letter-spacing: -.02em; }
.gs-head a { color: var(--acc); font-weight: 700; font-size: 13px; text-decoration: none; }
.gs-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #062016; text-decoration: none; color: #fff; box-shadow: var(--shadow-s); transition: transform .2s, box-shadow .2s; isolation: isolate; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gcard:hover img { transform: scale(1.05); }
.gc-b { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(3,18,12,.92) 55%); display: flex; flex-direction: column; gap: 1px; }
.gc-b b { font: 800 15px var(--display); letter-spacing: -.01em; }
.gc-b small { font-size: 11px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtag { position: absolute; top: 9px; left: 9px; padding: 2px 8px; border-radius: 999px; font: 700 10.5px var(--body); background: rgba(0,0,0,.5); color: #ffd35a; border: 1px solid rgba(255,211,90,.35); backdrop-filter: blur(6px); }
@media (max-width: 700px) {
  .gs-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 10px; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 4px; }
  .gs-row::-webkit-scrollbar { display: none; }
  .gcard { flex: 0 0 152px; scroll-snap-align: start; }
}
/* ví không đủ mua vào / đăng ký: làm mờ, vẫn đọc được thông tin */
.tc.poor, .mtt.poor { opacity: .55; filter: saturate(.35); }
.tc.poor:hover { transform: none; box-shadow: none; }
.tc.poor .btn[disabled], .mtt.poor .btn[disabled] { opacity: 1; cursor: default; }

/* dọn sảnh (25/10/2026): bàn chưa đủ chip gom vào một mục đóng sẵn; phần đầu và thẻ bàn gọn hơn trên điện thoại */
.hero-live:empty, .hero-live:has(> .badge[hidden] + .badge[hidden]) { display: none; }
.more-poor { margin-top: 14px; border-radius: var(--r-lg); background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(14px); }
.more-poor > summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; font: 700 14px var(--display); color: var(--dim); }
.more-poor > summary::-webkit-details-marker { display: none; }
.more-poor > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.more-poor[open] > summary::after { transform: rotate(-135deg); }
.more-poor > summary .cnt { background: var(--s4); color: var(--dim); }
.more-poor > .grid, .more-poor > .more-hint { padding: 0 14px 14px; }
.more-hint { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.more-hint .btn, .poor-all .btn { height: 34px; padding: 0 16px; }
.poor-all div { margin-top: 12px; }
.vrules .sect-h { margin-top: 4px; }
@media (max-width: 700px) {
  .hero { padding: 18px 16px 16px; gap: 14px; }
  .hero .eyebrow { margin-top: 10px; }
  .hero h2 { font-size: 32px; margin: 6px 0 8px; }
  .hero h2 em { text-decoration-thickness: 4px; text-underline-offset: 6px; }
  .hero p { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
  .hero-cta .btn.ghost { display: none; } /* ô giải sắp tới ngay bên dưới đã có nút đăng ký */
  .hero-cta .btn { height: 46px; }
  .mini-mtt { padding: 12px 14px; gap: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .mini-mtt small, .mini-mtt .row, .mini-mtt .btn { grid-column: 1 / -1; }
  .mini-mtt h4 { font-size: 16px; }
  .mini-mtt .cd { font-size: 24px; grid-column: 2; grid-row: 2; }
  .mini-mtt .btn { height: 40px; }
  /* thẻ bàn cash: nút nằm bên phải tên và mức cược, bỏ một hàng */
  .tc.cash { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; }
  .tc.cash > header, .tc.cash > .meta, .tc.cash > .seatdots { grid-column: 1 / -1; }
  .tc.cash > h3 { grid-column: 1; font-size: 15px; }
  .tc.cash > .stk { grid-column: 1; } .tc.cash .stk b { font-size: 24px; }
  .tc.cash > .btn { grid-column: 2; grid-row: 2 / span 2; align-self: center; width: auto; margin: 0; padding: 0 16px; height: 42px; }
  .tc.cash > .btn[disabled] { max-width: 120px; height: auto; min-height: 42px; white-space: normal; line-height: 1.2; font-size: 12px; }
  .tc.cash .meta div { padding: 5px 8px; }
  .tc.cash .seatdots i { width: 9px; height: 9px; }
}
/* ô Stack TB / Bàn chỉ hiện khi có số liệu: các ô còn lại chia đều */
.tc.cash .meta { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 700px) {
  /* điện thoại: thông số bàn thành một dòng chữ ("Mua vào 0.80–2.00 · Bàn 3") thay cho các ô */
  .tc.cash .meta { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .tc.cash .meta div { display: flex; align-items: baseline; gap: 5px; padding: 0; background: none; }
  .tc.cash .meta small { display: inline; font-size: 11.5px; }
  .tc.cash .meta b { font-size: 13px; }
}
