html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Design tokens: graphite ramp, mot accent (amber), Geist + Geist Mono.
   Huong thiet ke theo unslop (github.com/heydamir/unslop, CC BY 4.0). */
:root {
  --sidebar: #0f0f10; --page: #141415; --card: #19191b; --raised: #232325; --raised2: #2a2a2d;
  --line: rgba(237, 237, 237, .08); --line2: rgba(237, 237, 237, .14);
  --text: #ededed; --text2: #a1a1a6; --muted: #85858b;
  --accent: #e8a33d; --pos: #4cc38a; --neg: #e5484d;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { background: var(--page); color: var(--text); font: 400 14px/20px var(--sans); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line2); }
a:hover { text-decoration-color: var(--text2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--raised); color: var(--text); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--raised2); border-color: var(--line2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--text); border-color: transparent; color: #141415; }
.btn.primary:hover { background: #d4d4d6; }
.btn.danger { background: transparent; color: #f0a3a5; border-color: rgba(229, 72, 77, .3); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn i { font-size: 14px; color: inherit; }

.textlink { color: var(--text2); text-decoration: none; white-space: nowrap; }
.textlink:hover { color: var(--text); }

/* logo: hai mắt xích + quả chuối (phần đen của logo gốc đổi thành trắng trên nền tối) + chữ đậm */
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 16px; color: var(--text); text-decoration: none; }
.mark .logo { width: 28px; height: 28px; }
.logo .lgD { stroke: #f4f4f5; }
.logo .lgY { stroke: #fbb60c; }
.logo .lgYf { fill: #fbb60c; }
.markTxt { font-weight: 700; letter-spacing: -.03em; }

.center { display: grid; place-items: center; padding: 24px; min-height: 100vh; }
.box { width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.box h1 { font: 500 28px/1.15 var(--sans); margin-bottom: 8px; }
.box p { color: var(--text2); margin-bottom: 20px; }

/* chuyển ngôn ngữ VI / EN (dùng chung với dashboard) */
.langSwitch { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); }
.langSwitch button { border: 0; background: transparent; color: var(--text2, #a1a1a6); font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 6px; cursor: pointer; letter-spacing: .04em; }
.langSwitch button.on { background: rgba(255, 255, 255, .08); color: var(--text, #ededed); }
.sideFoot .langSwitch { align-self: flex-start; }


/* ============================================================
   Trang công khai (body.site): trang chủ, đăng nhập, bảng xếp hạng.
   Một màu nhấn (vàng chuối), bề mặt phẳng + viền 1px, một nguồn sáng ấm duy nhất sau hero.
   Tiêu đề: Geist (file biến thiên tự host) ở độ đậm 800.
   ============================================================ */
@font-face { font-family: "Geist Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../vendor/fonts/geist/5ca352fa7677d1df.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: "Geist Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../vendor/fonts/geist/f8181936a8d0c1df.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: "Geist Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../vendor/fonts/geist/04ce1a617bac7c0d.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; }

.site {
  --bg: #0a0a0b; --s1: #111113; --s2: #17171a; --field: #111113;
  --hair: rgba(255, 255, 255, .07); --hair2: rgba(255, 255, 255, .12);
  --y: #f5c542; --yInk: #1a1404;
  --wrap: 1160px; --gut: clamp(16px, 4vw, 40px);
  --display: "Geist Display", "Geist", system-ui, sans-serif;
  --accent: var(--y);
  background: var(--bg); font-size: 15px; line-height: 1.55; overflow-x: clip; position: relative; min-height: 100vh;
}
/* một nguồn sáng ấm, mềm, chỉ sau hero */
.site .glow { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: 0; pointer-events: none; overflow: hidden; }
.site .glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 52% at 70% 32%, rgba(245, 197, 66, .075), transparent 70%); }
.site main, .site .foot { position: relative; z-index: 1; }
.site ::selection { background: rgba(245, 197, 66, .3); color: #fff; }
.site h1, .site h2, .site h3 { font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
.site p { overflow-wrap: break-word; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.eyebrow .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* nút: phẳng, không phát sáng */
.site .btn { border-radius: 10px; border-color: var(--hair2); background: var(--s2); }
.site .btn.primary { background: var(--y); border-color: transparent; color: var(--yInk); font-weight: 600; }
.site .btn.primary:hover { background: #f8d264; }

/* logo trên trang công khai: chữ đậm, sát nhau */
.site .mark { gap: 9px; font: 800 18px/1 var(--display); letter-spacing: -.04em; color: #fff; }
.site .mark::before { content: none; }
.logo { width: 24px; height: 24px; flex: none; }

/* ---------- thanh trên dạng viên thuốc, dính khi cuộn ---------- */
.site .nav { position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; gap: 22px;
  width: min(calc(var(--wrap) - 2 * var(--gut) + 24px), calc(100% - 24px)); margin: 12px auto 0; height: 56px; padding: 0 8px 0 16px;
  border-radius: 999px; border: 1px solid var(--hair); background: rgba(14, 14, 16, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav .spacer { flex: 1; }
.site .nav .mark { order: 0; }
.site .nav .spacer { order: 1; }
.site .nav .textlink { order: 2; font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
.site .nav .textlink[aria-current="page"] { color: var(--text); }
.site .nav .langSwitch { order: 3; border-color: var(--hair); border-radius: 999px; padding: 3px; }
.site .nav .btn { order: 4; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; }
.site .nav .langSwitch button { font: 500 11px/1 var(--mono); padding: 7px 9px; border-radius: 999px; color: var(--muted); transition: color .15s var(--ease); }
.site .nav .langSwitch button:hover { color: var(--text); }
.site .nav .langSwitch button.on { background: rgba(255, 255, 255, .09); color: var(--text); }
.site .nav .langSwitch button:focus-visible { outline-offset: 0; }

/* nhãn nhỏ duy nhất của trang: chữ mono, không khung */
.label { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- hero (tiêu đề hai dòng: chỉ dùng ở đây) ---------- */
.home .hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  max-width: var(--wrap); min-height: min(720px, calc(100svh - 68px)); margin: 0 auto; padding: clamp(56px, 8vh, 104px) var(--gut) clamp(72px, 10vh, 112px); }
.heroCopy { min-width: 0; }
.hero .dh { font: 800 clamp(42px, 5.6vw, 80px)/.98 var(--display); letter-spacing: -.055em; color: #fff; }
.hero .dh > span { display: block; }
.hero .dh .a { color: var(--y); }
.hero .lede { color: var(--text2); font-size: 18px; line-height: 1.55; margin: 24px 0 32px; max-width: 40ch; }
.claim { display: flex; align-items: center; gap: 6px; max-width: 460px; height: 56px; padding: 5px; border-radius: 14px;
  border: 1px solid var(--hair2); background: var(--s1); transition: border-color .15s var(--ease); }
.claim:focus-within { border-color: rgba(245, 197, 66, .6); }
.claimBox { flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; padding-left: 12px; cursor: text; }
.claim #host { color: var(--muted); font: 400 14px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; flex: none; }
.claim input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--text); font: 500 14px var(--mono); outline: none; }
.claim input::placeholder { color: #5f5f66; font-weight: 400; }
.claim .btn { height: 44px; padding: 0 20px; border-radius: 10px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 26px; }
.stat { display: flex; align-items: baseline; gap: 8px; padding-right: 18px; }
.stat:not([hidden]) ~ .stat { padding-left: 18px; border-left: 1px solid var(--hair2); }
.stat dd { order: -1; font: 700 17px/1 var(--display); letter-spacing: -.02em; color: var(--text); }
.stat dt { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.heroCopy > * { animation: lift .45s var(--ease) both; }
.heroCopy > :nth-child(2) { animation-delay: .04s; }
.heroCopy > :nth-child(3) { animation-delay: .08s; }
.heroCopy > :nth-child(4) { animation-delay: .12s; }
/* chỉ dịch chuyển, không bắt đầu từ trong suốt: hoạt ảnh kẹt vẫn thấy nội dung */
@keyframes lift { from { transform: translateY(10px); } }

/* trang mẫu */
.show { margin: 0; min-width: 0; width: 100%; max-width: 360px; justify-self: end; animation: lift .5s .08s var(--ease) both; }
.sc { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 20px 20px; border-radius: 22px;
  border: 1px solid var(--hair); background: var(--s1); }
.scBar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.scUrl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 11.5px/1 var(--mono); color: var(--muted); }
.scTag { flex: none; font: 500 11px/1 var(--mono); color: var(--muted); padding: 4px 7px; border: 1px solid var(--hair); border-radius: 6px; }
.scAv { width: 96px; height: 96px; margin-top: 22px; border-radius: 50%; object-fit: cover; background: var(--s2); box-shadow: 0 0 0 3px var(--s1), 0 0 0 4px var(--hair2); }
.scName { margin-top: 14px; font: 800 26px/1.1 var(--display); letter-spacing: -.04em; color: #fff; }
.scHandle { margin-top: 2px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.scBio { margin-top: 12px; font-size: 14.5px; color: #d6d6da; max-width: 28ch; }
.scBadges { display: flex; gap: 6px; margin-top: 14px; }
.scBadges span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--s2); font-size: 12px; color: var(--text2); }
.scBadges span:first-child { color: #f2c14e; }
.scBadges span:nth-child(2) { color: #7fd49b; }
.scBadges span:nth-child(3) { color: #e0565b; }
a.scTag { text-decoration: none; } a.scTag:hover { color: var(--text); border-color: var(--text2); }
.scNow { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: 16px; font-size: 13px; color: var(--text2); }
.scSong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.eq i { width: 2px; height: 12px; border-radius: 1px; background: var(--y); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.scLinks { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.scLinks i { font-size: 19px; color: #cfcfd4; }

/* ---------- khối nội dung ---------- */
.band { border-top: 1px solid var(--hair); }
.band > .in { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 6.5vw, 96px) var(--gut); }
.secHead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.secLine { color: var(--text2); font-size: 15px; }

/* widget: lưới thẻ là phần chính */
.wg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w { min-width: 0; overflow: hidden; border-radius: 16px; padding: 16px; border: 1px solid var(--hair); background: var(--s1); transition: border-color .15s var(--ease); }
.w:hover { border-color: var(--hair2); }
.wBody { min-width: 0; }
.wName { display: flex; align-items: center; gap: 7px; min-width: 0; font: 700 15px/1.3 var(--display); letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wSmall { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wSmall .fa-spotify { color: #3fd27a; }
.dotOn { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); flex: none; }
.wPres { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.wAv { width: 56px; height: 56px; border-radius: 50%; flex: none; object-fit: cover; background: var(--s2); }
.wSong { margin-top: 6px; font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wBar { display: block; height: 3px; max-width: 280px; margin-top: 10px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.wBar i { display: block; height: 100%; background: #3fd27a; transform-origin: left; transform: scaleX(.44); transition: transform 1s linear; }
.wTimes { display: flex; justify-content: space-between; max-width: 280px; margin-top: 6px; font: 400 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.wSrvNums { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wSrvNums .srvN { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wSrvNums .dotOff { width: 7px; height: 7px; border-radius: 50%; background: #80848e; flex: none; }
.wLast { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.wLast .win { font-weight: 700; color: #5ad19a; }
.wTimer { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wTimer i { margin-right: 6px; }
.wGhFoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.wArt { width: 72px; height: 72px; border-radius: 10px; flex: none; object-fit: cover; background: var(--s2); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.wSrv { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; align-content: space-between; }
.wIcon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 800 16px/1 var(--display); letter-spacing: -.03em; color: var(--yInk); background: var(--y); }
.wIcon.steam { color: #c7d5e0; font-size: 22px; background: #1b2838; }
.wSrv .wSmall { white-space: normal; }
.wJoin { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; background: #248046; color: #fff; font-size: 13px; font-weight: 600; }
.wVal { grid-column: span 1; }
.wValHead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.wEmblem { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(180, 110, 232, .28)); }
.wVal .wKv { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); }
.wKv dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wKv dd { display: flex; align-items: center; gap: 6px; }
.wKv dd img { width: 18px; height: 18px; flex: none; object-fit: contain; }
.wKv dd img.wAgent { border-radius: 50%; background: var(--s2); }
.wKv dd span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wSteam { display: block; }
.wIcon.steam i { width: 26px; height: 26px; background: #c7d5e0; -webkit-mask: url(/static/vendor/brands/steam.svg) center / contain no-repeat; mask: url(/static/vendor/brands/steam.svg) center / contain no-repeat; }
.wInGame { color: #a3cf06; }
.wRank { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.wRank b { font: 700 15px/1.3 var(--display); color: #d3a2ff; letter-spacing: -.02em; }
.wKv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.wKv div { min-width: 0; }
.wKv dt { font: 400 11px/1.4 var(--mono); color: var(--muted); }
.wKv dd { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wGh { display: flex; flex-direction: column; gap: 10px; }
.wGh .wSmall i { color: #fff; }
.ghGrid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.ghGrid i { aspect-ratio: 1; border-radius: 2px; background: rgba(255, 255, 255, .06); }
.ghGrid i[data-l="1"] { background: #0e4429; }
.ghGrid i[data-l="2"] { background: #006d32; }
.ghGrid i[data-l="3"] { background: #26a641; }
.ghGrid i[data-l="4"] { background: #39d353; }

/* nhạc: trình phát là phần chính, bên cạnh một câu */
.mx { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.player { min-width: 0; width: 100%; padding: 18px; border-radius: 20px; border: 1px solid var(--hair); background: var(--s1); }
.plTop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.plCover { width: 60px; height: 60px; border-radius: 10px; flex: none; object-fit: cover; background: var(--s2); }
.plMeta { min-width: 0; }
.plTitle { font: 700 16px/1.25 var(--display); letter-spacing: -.02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plArtist { font-size: 13px; color: var(--text2); }
.plBar { display: block; height: 3px; margin-top: 18px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.plBar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(.38); animation: fill 30s linear infinite; }
.plCtl { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 14px; color: var(--text2); font-size: 14px; }
.plPlay { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a0a0b; font-size: 13px; }
.ly { list-style: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.ly li { font: 600 15px/1.4 var(--display); letter-spacing: -.01em; color: rgba(237, 237, 237, .32); transition: color .3s var(--ease); }
.ly li.on { color: #fff; }
.mxCopy { min-width: 0; }
.mxLine { margin-top: 14px; font: 600 clamp(22px, 2.4vw, 30px)/1.3 var(--display); letter-spacing: -.03em; color: #fff; max-width: 22ch; }
.mxNote { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* người dùng thật: một dòng + dải avatar */
.crHead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.crLine { font: 600 clamp(20px, 2vw, 24px)/1.3 var(--display); letter-spacing: -.025em; color: #fff; }
.arrowLink { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--text2); font-size: 14px; font-weight: 500; text-decoration: none; }
.arrowLink:hover { color: #fff; }
.arrowLink i { font-size: 12px; transition: transform .2s var(--ease); }
.arrowLink:hover i { transform: translateX(3px); }
.strip { position: relative; overflow: hidden; max-width: 100%; contain: paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.stripTrack { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.strip:hover .stripTrack, .strip:focus-within .stripTrack { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 44px; margin-right: 10px; padding: 0 16px 0 6px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--s1); color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s var(--ease), border-color .15s var(--ease); }
.chip:hover { color: #fff; border-color: var(--hair2); }
.chipAv { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; font: 700 13px/1 var(--display); color: #fff; background: var(--s2); }
.chipAv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chipName { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stripEmpty { color: var(--text2); padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--hair2); max-width: 60ch; }

/* lời mời cuối: gọn */
.cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
.ctaLine { font: 700 clamp(24px, 2.8vw, 34px)/1.2 var(--display); letter-spacing: -.035em; color: #fff; }
.ctaAct { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.ctaAct .btn { border-radius: 999px; padding: 0 24px; }

/* chân trang */
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 40px; border-top: 1px solid var(--hair); }
.footLinks { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footLinks .textlink { font-size: 14px; display: inline-flex; align-items: center; min-height: 32px; }
.footNote { font: 400 12px var(--mono); color: var(--muted); }

/* ---------- đăng nhập / đăng ký: một cột, giữa trang ---------- */
.authWrap { min-height: 100vh; }
.site.authWrap { display: flex; flex-direction: column; }
.authMain { flex: 1; display: grid; place-items: center; width: 100%; padding: clamp(40px, 8vh, 96px) var(--gut) 64px; }
.auth { width: min(380px, 100%); margin: 0; animation: lift .4s var(--ease) both; }
.auth h1 { font: 800 clamp(32px, 3.4vw, 42px)/1.05 var(--display); letter-spacing: -.045em; color: #fff; }
.auth p.sub { color: var(--text2); margin: 10px 0 26px; }
.auth label { display: block; font-weight: 500; font-size: 13px; color: var(--text2); margin: 18px 0 8px; }
.auth input, .prefix { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair2); background: var(--field, var(--card)); color: var(--text); font: 400 14px var(--sans);
  transition: border-color .15s var(--ease); }
.auth input:focus, .prefix:focus-within { outline: none; border-color: rgba(245, 197, 66, .6); }
.prefix { display: flex; align-items: center; padding: 0 0 0 14px; }
.prefix span { color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%; flex: none; }
.prefix input { border: 0; height: 100%; min-width: 0; background: transparent; font-family: var(--mono); padding-left: 0; }
.prefix input:focus { outline: none; box-shadow: none; }
.auth input.code { font: 500 18px var(--mono); letter-spacing: .24em; }
.auth .btn { width: 100%; margin-top: 26px; height: 46px; }
.auth #discordLogin { margin-top: 10px; }
.auth .err { color: #f0a3a5; margin-top: 12px; min-height: 20px; font-size: 14px; }
.auth .switch { color: var(--muted); margin-top: 4px; font-size: 14px; }
.auth .switch a { color: var(--text); }

/* ---------- bảng xếp hạng ---------- */
.lb { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gut, 32px) 80px; }
.lbHead h1 { font: 800 clamp(40px, 6vw, 68px)/1 var(--display); letter-spacing: -.055em; color: #fff; }
.lbSub { margin-top: 14px; color: var(--text2); max-width: 56ch; }
.lbTabs { display: inline-flex; gap: 2px; margin-top: 24px; padding: 3px; border-radius: 10px; border: 1px solid var(--hair); }
.lbTabs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text2); text-decoration: none; transition: color .15s var(--ease); }
.lbTabs a:hover { color: var(--text); }
.lbTabs a[aria-selected="true"] { background: var(--s2, var(--raised)); color: var(--text); }
.lbList { list-style: none; margin-top: 36px; border-top: 1px solid var(--hair2, var(--line2)); }
.lbRow { border-bottom: 1px solid var(--hair, var(--line)); }
.lbRow a { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 8px; text-decoration: none; transition: background-color .15s var(--ease); }
.lbRow a:hover { background: rgba(255, 255, 255, .025); }
.lbRank { font: 500 14px/1 var(--mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.lbRow.top .lbRank { color: var(--y, var(--accent)); font: 800 18px/1 var(--display); }
.lbAv { width: 40px; height: 40px; border-radius: 50%; background: var(--s2, var(--raised2)); display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.lbAv img { width: 100%; height: 100%; object-fit: cover; }
.lbName { min-width: 0; display: flex; flex-direction: column; }
.lbName b, .lbName small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbName b { font: 700 15px/1.3 var(--display); letter-spacing: -.015em; }
.lbName small { color: var(--muted); font: 400 12px/18px var(--mono); }
.lbViews { font: 600 14px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lbViews small { color: var(--muted); font: 400 12px/1 var(--sans); }
.lbEmpty { padding: 22px 8px; color: var(--text2); border-bottom: 1px solid var(--hair, var(--line)); }
.lbFoot { margin-top: 16px; color: var(--muted); font: 400 12px/1.5 var(--mono); }

/* ---------- co giãn ---------- */
@media (max-width: 1080px) {
  .home .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .show { justify-self: start; }
  .mx { grid-template-columns: minmax(0, 1fr); }
  .player { max-width: 460px; }
  .mxCopy { order: -1; }
}
@media (max-width: 900px) {
  .wg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wPres { grid-column: 1 / -1; }
  .wGh { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .foot { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* Điện thoại: viên thuốc gọn (logo, đăng nhập, VI/EN, nút chính); link phụ nằm ở chân trang */
@media (max-width: 640px) {
  .site .nav { top: 8px; margin-top: 8px; width: calc(100% - 16px); height: 52px; gap: 10px; padding: 0 6px 0 12px; }
  .site .nav .hideSm { display: none; }
  .site .nav .textlink { font-size: 13.5px; }
  .site .nav .btn { height: 38px; padding: 0 14px; }
  .site .nav .langSwitch button { padding: 6px 7px; }
  .home .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero .dh { font-size: clamp(36px, 11.4vw, 50px); line-height: 1; letter-spacing: -.05em; }
  .hero .lede { font-size: 16px; margin: 18px 0 24px; }
  .claim { height: auto; flex-wrap: wrap; padding: 5px; }
  .claimBox { flex-basis: 100%; height: 46px; padding-left: 10px; }
  .claim .btn { flex: 1 1 100%; height: 46px; }
  .stat { padding-right: 14px; }
  .stat:not([hidden]) ~ .stat { padding-left: 14px; }
  .show { max-width: none; }
  .band > .in { padding-top: 56px; padding-bottom: 56px; }
  .wg { grid-template-columns: minmax(0, 1fr); }
  .wPres { grid-template-columns: auto minmax(0, 1fr); }
  .wArt { display: none; }
  .player { padding: 14px; }
  .ly li { font-size: 14px; }
  .ctaAct { width: 100%; }
  .ctaAct .btn { flex: 1 1 100%; }
  .authMain { padding-top: 32px; place-items: start center; }
}
@media (max-width: 560px) {
  .lb { padding: 36px 16px 56px; }
  .lbList { margin-top: 28px; }
  .lbRow a { grid-template-columns: 26px 36px minmax(0, 1fr) auto; gap: 10px; padding: 10px 2px; }
  .lbAv { width: 36px; height: 36px; }
  .lbRow.top .lbRank { font-size: 16px; }
  .lbViews small { display: none; }
}
@media (max-width: 400px) {
  .site .nav { gap: 4px; padding-left: 10px; }
  .site .mark { font-size: 16px; gap: 6px; }
  .site .nav .btn { padding: 0 11px; font-size: 13px; }
  .site .nav .textlink { font-size: 13px; padding: 0 2px; }
  .site .nav .langSwitch button { padding: 6px 5px; min-width: 30px; }
  .site .nav > * { min-width: 0; } /* không phần tử nào đẩy thanh trên rộng quá màn hình */
}
@media (max-width: 374px) {
  .site .nav .markTxt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
  .stripTrack { transform: none !important; }
}

/* iPhone (Safari) tự phóng to khi chạm vào ô nhập có chữ < 16px và giữ nguyên mức phóng -> phải lướt qua lại. Ô nhập trên điện thoại luôn 16px. */
@media (max-width: 640px) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; } }

/* màn cảm ứng: nút VI/EN và link chữ trên thanh trên cùng đủ lớn để chạm (≥ 32px) */
@media (pointer: coarse) {
  .langSwitch button { min-width: 34px; min-height: 32px; }
  .nav .textlink { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; }
  .site .nav .langSwitch button { min-width: 32px; min-height: 32px; padding: 0 6px; }
  .site .mark, .site .textlink, .auth .switch a, .lbTabs a { display: inline-flex; align-items: center; min-height: 32px; }
}

/* điện thoại: logo gọn lại để thanh menu không tràn (icon 22px, chữ 16px) */
@media (max-width: 480px) {
  .site .mark { font-size: 16px; gap: 7px; }
  .site .mark .logo { width: 22px; height: 22px; }
}

/* ===== mảng hình thương hiệu (trang chủ): quả cầu hologram + chữ lớn + bàn tay + vệt sáng ===== */
.astra { position: relative; height: clamp(340px, 52vw, 640px); overflow: hidden; background: #030304; isolation: isolate;
  border-block: 1px solid var(--hair); }
.asBg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 40% 30% at 12% 12%, rgba(255, 255, 255, .07), transparent 70%),
    radial-gradient(ellipse 35% 28% at 88% 18%, rgba(255, 255, 255, .055), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 55%, rgba(70, 100, 255, .16), transparent 70%),
    radial-gradient(ellipse 30% 25% at 20% 85%, rgba(255, 255, 255, .04), transparent 70%); }
.asOrb { position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(210px, 41vw, 470px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  transform: translate(-50%, -50%);
  background: linear-gradient(118deg, #1a2cff 0%, #2f6bff 20%, #78f3ff 34%, #4b7dff 44%, #c79bff 55%, #ff9bd9 63%, #6f5cff 74%, #2a49ff 86%, #142bd6 100%);
  box-shadow: 0 0 22px 4px rgba(120, 190, 255, .8), 0 0 90px 22px rgba(60, 100, 255, .45), 0 0 200px 60px rgba(80, 60, 255, .2), inset 0 0 50px rgba(255, 255, 255, .28); }
.asOrb i, .asOrb b { position: absolute; inset: -25%; }
.asOrb i { background: repeating-linear-gradient(98deg, transparent 0 7%, rgba(255, 255, 255, .45) 9%, transparent 12%, transparent 16%, rgba(120, 240, 255, .5) 18%, transparent 22%);
  filter: blur(16px); mix-blend-mode: soft-light; animation: asDrift 16s ease-in-out infinite alternate; }
.asOrb b { background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55), transparent 38%), radial-gradient(circle at 70% 80%, rgba(10, 10, 60, .45), transparent 45%); }
@keyframes asDrift { to { transform: translateX(14%) rotate(6deg); } }
.asWord { position: absolute; left: 50%; top: 50%; z-index: 2; margin: 0; transform: translate(-50%, -54%); white-space: nowrap;
  font: 700 clamp(40px, 10.6vw, 136px)/1 "Outfit", var(--display); letter-spacing: -.01em; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.asHand { position: absolute; left: 50%; bottom: -3%; z-index: 3; height: 82%; width: auto; transform: translateX(-44%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); pointer-events: none; }
.asBeam { position: absolute; left: -15%; top: 58%; z-index: 4; width: 130%; height: 2px; transform: rotate(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(60, 120, 255, .9) 25%, #fff 52%, rgba(210, 160, 255, .9) 78%, transparent 100%);
  box-shadow: 0 0 10px 2px rgba(110, 160, 255, .75), 0 0 30px 6px rgba(80, 120, 255, .35); mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .asOrb i { animation: none; } }
@media (max-width: 640px) { .astra { height: 380px; } .asOrb { width: 250px; } .asWord { font-size: clamp(36px, 12vw, 60px); } .asHand { height: 72%; } }