/* X67 02/12 (Rio 01/12: « Thiết kế lại giao diện portal dạng landing page … chỉ còn các trò chơi … thật đẹp, thật bắt mắt,
   thật hiện đại »): the games lobby, style "Aurora Luxe" - a deep night sky, slow aurora light and drifting gold dust,
   gold gradient type, glass bars, a 3D coverflow of the best games, a bento grid of cards (3D tilt, light glare, a gold
   ring that runs round the card under the pointer). One file for PC (public/web) and phone (public/m), byte-identical.
   Everything is scoped under #lx-root (the lobby) or html.lx-on / html[data-lx="games"] (the page around it): nothing
   here touches the old portal while the lobby is off. Game pictures are 16:9 and are never cropped (X16 / X58).
   Font: Be Vietnam Pro (SIL Open Font License 1.1, static/fonts/lx/OFL.txt), served from this site. */
@font-face { font-family: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/lx/be-vietnam-pro-vietnamese-400-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/lx/be-vietnam-pro-latin-400-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/lx/be-vietnam-pro-vietnamese-600-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/lx/be-vietnam-pro-latin-600-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/lx/be-vietnam-pro-vietnamese-800-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/lx/be-vietnam-pro-latin-800-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 900; src: url(../fonts/lx/be-vietnam-pro-vietnamese-900-normal.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: 'LX Sans'; font-style: normal; font-display: swap; font-weight: 900; src: url(../fonts/lx/be-vietnam-pro-latin-900-normal.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; }

@property --lx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- the page around the lobby ---------- */
#lx-root { display: none; }
html.lx-on #lx-root { display: block; }
html.lx-on #app { display: none !important; }   /* the old portal home stays in the page, unseen (classic mode shows it) */
html.lx-on, html.lx-on body { background: #04050d !important; }
html.lx-on body { min-width: 0 !important; overflow-x: hidden; }

#lx-root {
  --ink: #04050d;
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .18);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --dim: #6f78a0;
  --gold-1: #fff3c4;
  --gold-2: #ffd56b;
  --gold-3: #f0a92a;
  --jade: #2fe3a3;
  --r-lg: 22px;
  --r-md: 16px;
  --top-h: 68px;
  --gap: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --font: 'LX Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gold-grad: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 100%);
  position: relative; min-height: 100vh; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  text-align: left; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
}
#lx-root *, #lx-root *::before, #lx-root *::after { box-sizing: border-box; }
/* the old sheets set every element on its own (phone: * { font-size: 12px }; PC: * { font-family: Roboto … !important };
   phone: html body *:not(#bobvi)… { font-family: var(--bob-vi-sans) !important }): inside the lobby sizes inherit again
   (no weight: every rule of this file still wins) and the lobby font wins (three ids + !important) */
:where(#lx-root) *, :where(#lx-root) *::before, :where(#lx-root) *::after { font-size: inherit; }
html body #lx-root:not(#lx-z):not(#lx-z), html body #lx-root *:not(#lx-z):not(#lx-z), html body #lx-toast:not(#lx-z):not(#lx-z) { font-family: 'LX Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important; }
#lx-root img { display: block; max-width: 100%; border: 0; }
#lx-root button { margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
#lx-root a { color: inherit; text-decoration: none; }
#lx-root ul, #lx-root ol { margin: 0; padding: 0; list-style: none; }
#lx-root h1, #lx-root h2, #lx-root h3, #lx-root p { margin: 0; font-family: inherit; }
#lx-root :focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
#lx-root [hidden] { display: none !important; }
#lx-root svg { display: block; flex: none; }

/* ---------- background: aurora, gold dust, grain ---------- */
.lx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background:
  radial-gradient(120% 80% at 50% -10%, #17204d 0%, rgba(8, 11, 28, 0) 60%),
  linear-gradient(180deg, #070a1a 0%, var(--ink) 70%); }
.lx-bg i { position: absolute; border-radius: 50%; will-change: transform; opacity: .55; mix-blend-mode: screen; }
.lx-bg .a1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(123, 97, 255, .55), rgba(123, 97, 255, 0)); animation: lx-drift1 26s ease-in-out infinite alternate; }
.lx-bg .a2 { width: 60vmax; height: 60vmax; right: -20vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(255, 79, 139, .42), rgba(255, 79, 139, 0)); animation: lx-drift2 32s ease-in-out infinite alternate; }
.lx-bg .a3 { width: 70vmax; height: 50vmax; left: 15vmax; top: 35vh; background: radial-gradient(closest-side, rgba(240, 169, 42, .26), rgba(240, 169, 42, 0)); animation: lx-drift3 38s ease-in-out infinite alternate; }
.lx-bg .a4 { width: 50vmax; height: 50vmax; left: -15vmax; bottom: -25vmax; background: radial-gradient(closest-side, rgba(47, 214, 255, .25), rgba(47, 214, 255, 0)); animation: lx-drift2 44s ease-in-out infinite alternate-reverse; }
.lx-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-bg .grain { position: absolute; inset: -50%; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lx-bg .vignette { position: absolute; inset: 0; background: radial-gradient(140% 100% at 50% 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
@keyframes lx-drift1 { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.15); } }
@keyframes lx-drift2 { to { transform: translate3d(-10vmax, 10vmax, 0) scale(.9); } }
@keyframes lx-drift3 { to { transform: translate3d(-14vmax, -6vmax, 0) scale(1.2); } }

/* ---------- top bar ---------- */
.lx-top { position: sticky; top: 0; z-index: 40; padding-top: var(--safe-t); border-bottom: 1px solid transparent; transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.lx-top.scrolled { background: rgba(6, 8, 22, .74); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.lx-top-in { position: relative; max-width: var(--max); margin: 0 auto; height: var(--top-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 18px; }
.lx-logo { display: flex; align-items: center; flex: none; padding: 0; border: 0; background: none; }
.lx-logo img { height: 36px; width: auto; filter: drop-shadow(0 4px 18px rgba(255, 196, 70, .35)); }
.lx-search { position: relative; flex: 1; max-width: 420px; margin-left: 12px; }
#lx-root .lx-search input { display: block; width: 100%; height: 42px; margin: 0; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 14px; outline: none; box-shadow: none; transition: border-color .25s, background .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
#lx-root .lx-search input::placeholder { color: var(--dim); opacity: 1; }
#lx-root .lx-search input:focus { border-color: rgba(255, 213, 107, .55); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 213, 107, .12); }
.lx-search > svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.lx-qbtn { display: none; }
.lx-acct { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lx-bal { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-bal:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .09); }
.lx-bal .coin { width: 26px; height: 26px; }
.lx-ava { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line-hi); background: linear-gradient(140deg, #2a3570, #141a3a); display: grid; place-items: center; font-weight: 800; font-size: 16px; color: var(--gold-2); text-transform: uppercase; }
.lx-ava:hover { border-color: rgba(255, 213, 107, .55); }
.lx-menu { position: absolute; right: var(--pad); top: calc(var(--top-h) - 4px); z-index: 50; min-width: 240px; padding: 8px; border-radius: var(--r-md); background: rgba(14, 19, 46, .97); border: 1px solid var(--line-hi); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform-origin: top right; animation: lx-pop .18s var(--ease); }
.lx-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lx-menu .who b { display: block; font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-menu .who span { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lx-menu .who .coin { width: 16px; height: 16px; }
.lx-menu .mi { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--text); }
.lx-menu .mi:hover { background: rgba(255, 255, 255, .07); }
.lx-menu .mi svg { width: 18px; height: 18px; color: var(--gold-2); }
.lx-menu .mi.out { color: var(--muted); }
.lx-menu .mi.out svg { color: var(--muted); }
@keyframes lx-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* ---------- buttons ---------- */
.lx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: .01em; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.lx-btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .3); }
.lx-btn:active { transform: scale(.97); }
.lx-btn svg { width: 18px; height: 18px; }
#lx-root .lx-btn-gold { border: 0; color: #2a1600; background: var(--gold-grad); box-shadow: 0 8px 28px rgba(240, 169, 42, .38), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(150, 80, 0, .35); overflow: hidden; }
#lx-root .lx-btn-gold:hover { background: linear-gradient(180deg, #fff8dc 0%, #ffe08a 38%, #f5b43a 100%); box-shadow: 0 12px 36px rgba(240, 169, 42, .55), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(150, 80, 0, .35); }
.lx-btn-gold::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); transform: skewX(-20deg); animation: lx-sheen 3.6s ease-in-out infinite; pointer-events: none; }
.lx-btn-lg { height: 54px; padding: 0 30px; font-size: 16px; }
@keyframes lx-sheen { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- hero ---------- */
.lx-main { position: relative; z-index: 1; }
.lx-hero { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 4vw, 56px) var(--pad) clamp(16px, 2.4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); align-items: center; min-height: min(600px, calc(100vh - var(--top-h) - 80px)); overflow: hidden; overflow: clip; }
.lx-hero-copy { position: relative; z-index: 3; min-width: 0; }
.lx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 213, 107, .08); border: 1px solid rgba(255, 213, 107, .25); color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lx-eyebrow .dot { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--jade); animation: lx-ping 2s infinite; }
@keyframes lx-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 227, 163, .65); } 70% { box-shadow: 0 0 0 10px rgba(47, 227, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 227, 163, 0); } }
#lx-root .lx-title { font-weight: 900; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.14; letter-spacing: -.03em; color: var(--text); }
.lx-title span { display: block; }
.lx-gold { padding-bottom: .06em; background: linear-gradient(100deg, #fff6d6 0%, #ffd56b 22%, #f0a92a 45%, #fff1b8 58%, #ffcf5a 75%, #c9791a 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: lx-gold 7s linear infinite; filter: drop-shadow(0 6px 30px rgba(240, 169, 42, .28)); }
@keyframes lx-gold { to { background-position: -220% 0; } }
#lx-root .lx-sub { margin: 22px 0 30px; max-width: 520px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; }
.lx-sub b { color: var(--text); font-weight: 800; }
.lx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
#lx-root .lx-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 38px 0 0; }
.lx-stats li { display: flex; flex-direction: column; }
.lx-stats b { font-size: 28px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lx-stats span { color: var(--dim); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }

/* coverflow */
.lx-stage { position: relative; z-index: 1; height: clamp(300px, 33vw, 450px); perspective: 1400px; -webkit-user-select: none; user-select: none; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.lx-stage .floor { position: absolute; left: 6%; right: 6%; bottom: -4%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 213, 107, .28), rgba(255, 213, 107, 0)); filter: blur(6px); }
.lx-flow { position: absolute; inset: 0; transform-style: preserve-3d; }
.lx-fc { position: absolute; left: 50%; top: 44%; width: min(74%, 560px); aspect-ratio: 16 / 9; margin: 0; border-radius: var(--r-lg); transform-style: preserve-3d; transform: translate(-50%, -50%); transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease); cursor: pointer; will-change: transform; }
.lx-fc .face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #0b0f26; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.lx-fc .face img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.lx-fc .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, rgba(4, 5, 13, 0), rgba(4, 5, 13, .92)); transition: opacity .5s; }
.lx-fc .cap b { display: block; font-size: clamp(18px, 1.8vw, 26px); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.lx-fc .cap span { color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lx-fc .cap .lx-btn { flex: none; height: 40px; }
.lx-fc .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%); }
.lx-fc .reflect { position: absolute; left: 0; right: 0; top: 100%; height: 40%; margin-top: 10px; border-radius: var(--r-lg); background-size: 100% auto; background-position: center bottom; background-repeat: no-repeat; transform: scaleY(-1); opacity: .16; -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 70%); mask-image: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 70%); pointer-events: none; }
.lx-fc:not(.is-center) .cap { opacity: 0; }
.lx-flow-nav { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; align-items: center; justify-content: center; gap: 14px; z-index: 12; }
.lx-flow-nav .arr { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line-hi); background: rgba(10, 14, 36, .7); display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lx-flow-nav .arr:hover { border-color: rgba(255, 213, 107, .6); color: var(--gold-2); }
.lx-flow-nav .arr svg { width: 18px; height: 18px; }
.lx-dots { display: flex; gap: 7px; }
.lx-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: width .35s var(--ease), background .35s; }
.lx-dots button.on { width: 26px; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); }

/* ---------- category rail ---------- */
.lx-rail { position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 30; margin-top: clamp(8px, 2vw, 28px); padding: 10px 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.lx-rail.stuck { background: linear-gradient(180deg, rgba(6, 8, 22, .86), rgba(6, 8, 22, .66)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.lx-rail-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.lx-rail-in::-webkit-scrollbar { display: none; }
.lx-chip { --c: var(--gold-2); flex: none; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 800; font-size: 14px; color: var(--muted); scroll-snap-align: start; transition: color .25s, background .25s, border-color .25s, box-shadow .25s; }
.lx-chip .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.lx-chip .ic svg { width: 18px; height: 18px; }
.lx-chip .n { margin-left: 2px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.lx-chip:hover { color: var(--text); border-color: var(--line-hi); }
.lx-chip.on { color: var(--text); border-color: rgba(255, 213, 107, .5); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: rgba(255, 213, 107, .12); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, transparent), color-mix(in srgb, var(--c) 6%, transparent)); box-shadow: 0 6px 24px color-mix(in srgb, var(--c) 22%, transparent); }
.lx-chip.on .n { color: var(--text); background: rgba(255, 255, 255, .14); }

/* ---------- sections + bento grid ---------- */
.lx-secs { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad) 40px; min-height: 50vh; }
.lx-sec { --c: var(--gold-2); margin-top: clamp(28px, 4vw, 52px); scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 76px); }
.lx-secs > .lx-sec:first-child { margin-top: clamp(14px, 2vw, 26px); }
.lx-sec-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lx-sec-h .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: rgba(255, 255, 255, .06); background: linear-gradient(150deg, color-mix(in srgb, var(--c) 32%, transparent), color-mix(in srgb, var(--c) 8%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 10px 30px color-mix(in srgb, var(--c) 22%, transparent); }
.lx-sec-h .ic svg { width: 24px; height: 24px; }
.lx-sec-h .tt { min-width: 0; }
#lx-root .lx-sec-h h2 { font-size: clamp(21px, 2.1vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
#lx-root .lx-sec-h p { margin-top: 3px; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-sec-h .line { flex: 1; min-width: 20px; height: 1px; margin-left: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), rgba(255, 255, 255, 0)); }
.lx-sec-h .more { flex: none; height: 38px; padding: 0 16px; font-size: 13px; }
.lx-sec-h .more svg { width: 15px; height: 15px; }

.lx-grid { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: row dense; }
@media (max-width: 1279px) { .lx-grid { --cols: 4; } }
@media (max-width: 1023px) { .lx-grid { --cols: 3; } }
@media (max-width: 719px) { .lx-grid { --cols: 2; gap: 12px; } }

/* card (a <button>: one tap plays) */
#lx-root .lx-card { --c: var(--gold-2); --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 0; border: 0; text-align: left; color: var(--text); border-radius: var(--r-md); background: linear-gradient(180deg, rgba(24, 31, 70, .72), rgba(11, 15, 38, .86)); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 34px rgba(0, 0, 0, .35); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); transition: transform .45s var(--ease), box-shadow .35s var(--ease); isolation: isolate; }
.lx-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .08)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3; transition: opacity .3s; }
.lx-card::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--lx-ang), var(--c), #fff7d6, var(--c) 30%, transparent 45%, transparent 55%, var(--c) 70%, #fff7d6, var(--c)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 4; animation: lx-spin 3.2s linear infinite; animation-play-state: paused; }
@keyframes lx-spin { to { --lx-ang: 360deg; } }
.lx-card .art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, rgba(255, 213, 107, .16), rgba(10, 14, 36, 0) 70%), #0a0e24; }
.lx-card .art .fb { position: absolute; left: 50%; top: 50%; width: 30%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); color: var(--c); opacity: .5; }
.lx-card .art img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: filter .4s; }
.lx-card .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 62%, rgba(5, 7, 20, .5)); pointer-events: none; }
.lx-card .glare { position: absolute; inset: 0; border-radius: inherit; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%); transition: opacity .3s; mix-blend-mode: soft-light; }
.lx-card .play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; color: #2a1600; background: var(--gold-grad); box-shadow: 0 10px 30px rgba(240, 169, 42, .55), 0 0 0 6px rgba(255, 213, 107, .18); transform: scale(.6); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.lx-card .play svg { width: 24px; height: 24px; margin-left: 3px; }
.lx-card .meta { display: flex; align-items: center; gap: 10px; padding: 11px 13px 12px; min-height: 52px; }
.lx-card .meta .t { display: block; min-width: 0; flex: 1; }
.lx-card .meta b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-card .meta small { display: block; margin-top: 2px; color: var(--dim); font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-card .meta .go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--c) 14%, transparent); transition: background .3s, color .3s; }
.lx-card .meta .go svg { width: 14px; height: 14px; margin-left: 2px; }
.lx-badge { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 4px 9px 4px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 900; line-height: 1.2; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 4px; color: #fff; background: linear-gradient(135deg, #ff5a5f, #ff2e7e); box-shadow: 0 6px 16px rgba(255, 46, 126, .45); }
.lx-badge svg { width: 12px; height: 12px; }
.lx-card.off .art img { filter: grayscale(.85) brightness(.55); }
.lx-card.off .play, .lx-card.off .glare { display: none; }
.lx-card .shut { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.lx-card .shut span { padding: 6px 12px; border-radius: 99px; background: rgba(5, 7, 20, .75); border: 1px solid var(--line-hi); font-size: 12px; font-weight: 800; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  #lx-root .lx-card:hover { z-index: 5; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 60px rgba(0, 0, 0, .55), 0 0 44px rgba(255, 213, 107, .18); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 26px 60px rgba(0, 0, 0, .55), 0 0 44px color-mix(in srgb, var(--c) 28%, transparent); }
  .lx-card:hover::after { opacity: 1; animation-play-state: running; }
  .lx-card:hover::before { opacity: 0; }
  .lx-card:hover .art img { filter: brightness(1.08) saturate(1.12); }
  .lx-card:hover .glare { opacity: 1; }
  .lx-card:hover .play { transform: scale(1); opacity: 1; }
  .lx-card:hover .meta .go { background: var(--c); color: #160d00; }
}
#lx-root .lx-card:active { transform: perspective(900px) scale(.975); transition-duration: .12s; }
#lx-root .lx-card.tilting { transition: transform .12s linear, box-shadow .35s var(--ease); }
#lx-root .lx-card:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* big bento card: the best game of the hall */
#lx-root .lx-card.big { grid-column: span 2; grid-row: span 2; }
.lx-card.big .meta { flex: 1; align-items: flex-end; padding: 16px 18px 18px; border-radius: 0 0 var(--r-md) var(--r-md); background: radial-gradient(120% 140% at 0% 100%, rgba(255, 213, 107, .12), transparent 60%); background: radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); }
.lx-card.big .meta b { font-size: clamp(18px, 1.7vw, 24px); font-weight: 900; white-space: normal; }
.lx-card.big .meta small { font-size: 13px; color: var(--muted); white-space: normal; }
#lx-root .lx-card.big .meta .go { width: auto; height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; gap: 6px; font-weight: 900; font-size: 13.5px; color: #2a1600; background: var(--gold-grad); box-shadow: 0 8px 22px rgba(240, 169, 42, .35); }
.lx-card.big .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.lx-card.big .play svg { width: 30px; height: 30px; }

/* reveal on scroll */
.lx-rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.lx-rv.in { opacity: 1; transform: none; }
#lx-root .lx-card.lx-rv { opacity: 0; transform: perspective(900px) translate3d(0, 26px, 0); }
#lx-root .lx-card.lx-rv.in { opacity: 1; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* empty / failed / loading */
.lx-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.lx-empty b { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; font-weight: 800; }
.lx-empty .lx-btn { margin-top: 16px; }
.lx-skel .lx-card .art, .lx-skel .lx-card .meta b, .lx-skel .lx-card .meta small { background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .04) 80%); background-size: 300% 100%; animation: lx-skel 1.4s ease-in-out infinite; }
.lx-skel .lx-card .meta b { height: 13px; width: 70%; border-radius: 6px; }
.lx-skel .lx-card .meta small { height: 10px; width: 40%; border-radius: 6px; margin-top: 6px; }
@keyframes lx-skel { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.lx-foot { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 8, 22, 0), rgba(6, 8, 22, .85)); }
.lx-foot-in { max-width: var(--max); margin: 0 auto; padding: 34px var(--pad) calc(34px + var(--safe-b)); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; color: var(--dim); font-size: 13px; }
html.mux-tabs .lx-foot-in { padding-bottom: calc(34px + 62px + var(--safe-b)); }
.lx-foot .age { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold-3); color: var(--gold-2); font-weight: 900; font-size: 13px; }
.lx-foot .resp { display: flex; align-items: center; gap: 12px; max-width: 560px; }
.lx-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lx-foot nav a:hover { color: var(--text); }

/* ---------- launching a game (PC) ---------- */
.lx-launch { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, rgba(30, 38, 90, .92), rgba(3, 4, 12, .97)); animation: lx-fade .2s ease; font-family: var(--font); color: var(--text); }
@keyframes lx-fade { from { opacity: 0; } }
.lx-launch .box { text-align: center; padding: 20px; max-width: 360px; }
.lx-launch .pic { position: relative; width: 240px; aspect-ratio: 16 / 9; margin: 0 auto 20px; border-radius: 16px; overflow: hidden; background: #0a0e24; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.lx-launch .pic img { width: 100%; height: 100%; object-fit: contain; }
.lx-launch .ring { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--gold-2); border-right-color: var(--gold-3); animation: lx-rot .9s linear infinite; }
.lx-launch b { display: block; font-size: 19px; font-weight: 900; }
.lx-launch span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.lx-launch .lx-btn { margin-top: 18px; }
.lx-launch .lx-btn + .lx-btn { margin-left: 8px; }
@keyframes lx-rot { to { transform: rotate(360deg); } }

/* toast */
.lx-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 100002; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(14, 19, 46, .97); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: #eef1ff; font: 600 14px/1.45 'LX Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; text-align: center; animation: lx-rise .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes lx-rise { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- phone ---------- */
@media (max-width: 719px) {
  #lx-root { --top-h: 58px; font-size: 14px; }
  .lx-logo img { height: 30px; }
  .lx-search { display: none; }
  .lx-search.open { display: block; position: absolute; left: 12px; right: 12px; top: calc(var(--top-h) + 4px); max-width: none; margin: 0; z-index: 2; }
  .lx-qbtn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; margin-left: auto; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted); }
  .lx-qbtn svg { width: 18px; height: 18px; }
  .lx-qbtn + .lx-acct { margin-left: 0; }
  .lx-top-in { gap: 8px; }
  .lx-acct { gap: 6px; }
  .lx-acct .lx-btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .lx-acct .hide-s { display: none; }
  .lx-bal { height: 38px; padding: 0 12px 0 6px; font-size: 14px; }
  .lx-bal .coin { width: 24px; height: 24px; }
  .lx-ava { display: none; }
  .lx-menu { right: 12px; left: auto; min-width: 230px; }
  .lx-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 12px; gap: 10px; }
  .lx-hero-copy { order: 2; }
  .lx-eyebrow { margin: 6px 0 12px; font-size: 10.5px; }
  #lx-root .lx-title { font-size: clamp(32px, 10.5vw, 46px); }
  #lx-root .lx-sub, #lx-root .lx-stats { display: none; }
  .lx-cta { margin-top: 16px; }
  .lx-cta .lx-btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
  .lx-stage { order: 1; height: 60vw; max-height: 320px; margin: 0 calc(-1 * var(--pad)); }
  .lx-fc { width: 80%; }
  .lx-fc .cap { padding: 30px 14px 12px; }
  .lx-fc .cap .lx-btn { display: none; }
  .lx-flow-nav .arr { display: none; }
  .lx-flow-nav { bottom: 0; }
  .lx-fc { top: 43%; }
  .lx-chip { height: 40px; padding: 0 13px 0 6px; font-size: 13px; }
  .lx-chip .ic { width: 28px; height: 28px; }
  .lx-sec-h { gap: 11px; margin-bottom: 14px; }
  .lx-sec-h .ic { width: 38px; height: 38px; border-radius: 12px; }
  .lx-sec-h .line { display: none; }
  .lx-sec-h .more { margin-left: auto; height: 34px; padding: 0 12px; }
  #lx-root .lx-card.big { grid-row: span 1; }
  .lx-card.big .meta { padding: 12px 14px 14px; align-items: center; }
  .lx-card .meta { padding: 9px 10px 10px; min-height: 46px; }
  .lx-card .meta b { font-size: 13.5px; }
  .lx-card .meta .go { display: none; }
  #lx-root .lx-card.big .meta .go { display: inline-flex; height: 36px; padding: 0 14px; }
  .lx-foot nav { margin-left: 0; }
}
@media (max-width: 359px) {
  .lx-top-in { gap: 6px; padding: 0 12px; }
  .lx-acct { gap: 5px; }
  .lx-acct .lx-btn { height: 36px; padding: 0 9px; font-size: 12.5px; }
  .lx-qbtn { width: 34px; height: 34px; }
  .lx-logo img { height: 24px; }
}
/* phone held sideways: low screen, the hero side by side again */
@media (max-height: 500px) and (orientation: landscape) {
  #lx-root { --top-h: 56px; }
  .lx-logo img { height: 28px; }
  .lx-acct .lx-btn { height: 38px; }
  .lx-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 0; padding-top: 8px; padding-bottom: 6px; }
  .lx-hero-copy { order: 0; }
  .lx-eyebrow { margin-bottom: 10px; }
  .lx-stage { order: 0; height: 58vh; min-height: 180px; max-height: 250px; }
  .lx-fc .cap .lx-btn, .lx-flow-nav .arr { display: none; }
  .lx-flow-nav { bottom: 0; }
  #lx-root .lx-title { font-size: clamp(26px, 4.4vw, 38px); }
  #lx-root .lx-stats, #lx-root .lx-sub { display: none; }
  .lx-cta { margin-top: 14px; }
  .lx-cta .lx-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
}

/* ---------- the shared pieces around the lobby: login popup (s7_auth_gate.js) and the phone bottom bar (m_ux.js) ---------- */
html[data-lx="games"] #bob-auth { background: rgba(2, 3, 10, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-lx="games"] #bob-auth .ba-box { width: 420px; border-radius: 24px; font-family: 'LX Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: linear-gradient(180deg, rgba(26, 33, 76, .97), rgba(10, 13, 34, .98)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 60px rgba(123, 97, 255, .18); animation: lx-dlg .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes lx-dlg { from { opacity: 0; transform: translateY(18px) scale(.98); } }
html[data-lx="games"] body #bob-auth *:not(#lx-z):not(#lx-z):not(i):not([class*="icon"]) { font-family: 'LX Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important; }
html[data-lx="games"] #bob-auth .ba-tabs { border-bottom-color: rgba(255, 255, 255, .09); }
html[data-lx="games"] #bob-auth .bob-auth-tab { font-family: inherit; font-weight: 800; }
html[data-lx="games"] #bob-auth .bob-auth-tab.on { color: #ffd56b; border-bottom-color: #ffd56b; }
html[data-lx="games"] #bob-auth input { height: 46px; border-radius: 12px; border-color: rgba(255, 255, 255, .16); background: rgba(3, 5, 16, .55); font-family: inherit; }
html[data-lx="games"] #bob-auth input:focus { border-color: rgba(255, 213, 107, .6); box-shadow: 0 0 0 4px rgba(255, 213, 107, .12); }
html[data-lx="games"] #bob-auth .ba-eye { height: 46px; }
html[data-lx="games"] #bob-auth .ba-go { height: 50px; border-radius: 999px; font-family: inherit; font-weight: 900; font-size: 15.5px; color: #2a1600; background: linear-gradient(180deg, #fff3c4 0%, #ffd56b 38%, #f0a92a 100%); box-shadow: 0 10px 30px rgba(240, 169, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
html[data-lx="games"] #bob-auth .ba-soc { border-radius: 999px; font-family: inherit; }
html[data-lx="games"].lx-on.mux-tabs:not(#mx) #mux-nav { background: rgba(6, 8, 22, .84); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid rgba(255, 255, 255, .09); }

@media (prefers-reduced-motion: reduce) {
  .lx-bg i, .lx-gold, .lx-btn-gold::after, .lx-eyebrow .dot, .lx-card::after, .lx-skel .lx-card .art { animation: none !important; }
  .lx-rv, #lx-root .lx-card.lx-rv { opacity: 1; transform: none; transition: none; }
  .lx-fc { transition-duration: .01s; }
}
