/* VCS AUTO DONATE — theme dùng chung cho cửa hàng, tài khoản, đăng nhập.
   Nhận diện: nền đen, đỏ #0b8fb0 (hover #40d5f3). Điểm nhấn duy nhất: góc cắt xéo như nhãn thùng hàng. */

:root {
    --bg: #090909;
    --surface: #171717;
    --raised: #1f1f1f;
    --line: #2b2b2b;
    --line-strong: #3b3b3b;
    --red: #0b8fb0;
    --red-hover: #40d5f3;
    --red-soft: rgba(11, 143, 176, .14);
    --text: #f2f2f2;
    --muted: #9b9b9b;
    --gold: #facc15;
    --ok: #4ade80;
    --warn: #fbbf24;
    --notch: var(--bg);
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Be Vietnam Pro', system-ui, sans-serif;

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--font-body);
    --bs-border-color: var(--line);
    --bs-link-color: var(--red-hover);
    --bs-link-hover-color: #fff;
}

:root, html { scroll-behavior: auto !important; }
html { font-size: clamp(15px, 0.34vw + 12.6px, 18px); }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.6; }

/* Khung nội dung co giãn theo màn hình: lề mềm, tối đa 1480px, không nhảy theo mốc Bootstrap. */
.container { width: 100%; max-width: min(1480px, 100%); padding-inline: clamp(16px, 3.2vw, 56px); margin-inline: auto; }
a { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; line-height: 1.05; margin: 0; }
:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 3px; }
.num { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.text-muted-2 { color: var(--muted) !important; }

/* ---------- Góc cắt (điểm nhấn) ---------- */
.cut { position: relative; border: 1px solid var(--edge, var(--line)); background: var(--surface); }
.cut::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; pointer-events: none;
    background: linear-gradient(135deg, transparent calc(50% - 1px), var(--edge, var(--line)) calc(50% - 1px), var(--edge, var(--line)) calc(50% + .5px), var(--notch) calc(50% + .5px));
}

/* ---------- Nút ---------- */
.btn-vcs, .btn-ghost, .btn-discord, .btn-steam {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1;
    padding: 12px 20px; border: 0; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn-vcs {
    background: var(--red); color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn-vcs:hover { background: var(--red-hover); color: #fff; }
.btn-vcs:focus-visible { outline: 0; background: var(--red-hover); box-shadow: inset 0 0 0 2px #fff; }
.btn-vcs[disabled], .btn-vcs.is-disabled { background: #101a23; color: #6a6d72; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; }
.btn-ghost:hover { border-color: #777; background: var(--raised); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.vh { position: sticky; top: 10px; z-index: 50; margin: 10px clamp(10px, 2vw, 32px) 0; background: rgba(12, 12, 12, .82); backdrop-filter: blur(14px); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.vh .container { padding-inline: clamp(12px, 1.6vw, 24px); max-width: none; }
.vh-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.vh-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.vh-brand:hover { color: #fff; }
.vh-mark { width: 32px; height: 32px; display: inline-grid; place-items: center; background: var(--red); color: #fff; font-size: 20px; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }
.vh-nav { display: flex; gap: 4px; margin-right: auto; }
.vh-nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-bottom: 2px solid transparent; }
.vh-nav a:hover { color: #fff; }
.vh-nav a.is-active { color: #fff; border-bottom-color: var(--red); }
.vh-right { display: flex; align-items: center; gap: 10px; }
.wallet-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-strong); background: var(--surface); color: #fff; border-radius: 3px; }
.wallet-chip:hover { border-color: var(--red); color: #fff; }
.wallet-chip small { color: var(--muted); font-size: 12px; }
.wallet-chip strong { font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: .01em; }

.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--bg); }
.tag-vip { color: var(--gold); border-color: rgba(250, 204, 21, .35); background: rgba(250, 204, 21, .08); }
.tag-red { color: #a4eefd; border-color: rgba(11, 143, 176, .4); background: var(--red-soft); }

/* ---------- Thông báo ---------- */
.notice { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 3px; color: var(--text); }
.notice + .notice { margin-top: 10px; }
.notice-ok { border-left-color: var(--ok); }
.notice-warn { border-left-color: var(--warn); }
.notice-err { border-left-color: var(--red-hover); }
.notice-info { border-left-color: #60a5fa; }
.notice strong { font-weight: 600; }

/* ---------- Hero ---------- */
.hero { margin-top: -74px; padding-top: 74px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(9, 9, 9, .82) 0%, rgba(9, 9, 9, .45) 42%, rgba(9, 9, 9, 0) 70%), linear-gradient(180deg, rgba(9, 9, 9, .35) 0%, rgba(9, 9, 9, .1) 40%, var(--bg) 100%), url("/img/hero-bg.webp") center top / cover no-repeat, var(--bg); }
.hero-grid { display: block; padding-top: clamp(150px, 20vw, 330px); padding-bottom: clamp(36px, 5vw, 80px); }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; }
.hero p.lead { color: #d0d0d0; max-width: 52ch; margin: 18px 0 26px; font-size: 1.0625rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.steps { padding: 22px 24px; --notch: #0d0d0d; background: rgba(23, 23, 23, .8); }
.steps h2 { font-size: 22px; margin-bottom: 14px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: #cfcfcf; font-size: 14px; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--red-hover); }
.steps li b { color: #fff; font-weight: 600; }

/* ---------- Cửa hàng ---------- */
.shell { padding-top: 40px; padding-bottom: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 14px; }
.field { width: 100%; background: var(--surface); color: #fff; border: 1px solid var(--line-strong); border-radius: 3px; padding: 12px 14px; font-size: 14px; }
.field:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: var(--raised); color: #fff; }
.field::placeholder { color: #6f6f6f; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: 8px 14px; font-size: 13px; font-weight: 500; color: #bdbdbd; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; transition: .18s; }
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip.is-active { color: #fff; background: var(--red); border-color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 19vw, 320px), 1fr)); gap: 18px; }
.card-p { --edge: var(--line); display: flex; flex-direction: column; overflow: hidden; transition: border-color .18s, transform .18s; }
.card-p:hover { --edge: var(--red); transform: translateY(-3px); }
.card-p__media { position: relative; aspect-ratio: 16 / 10; background: #141414; overflow: hidden; }
.card-p__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #151515 0 12px, #191919 12px 24px); color: #2c2c2c; font-family: var(--font-display); font-weight: 800; font-size: 64px; letter-spacing: .06em; }
.card-p__tags { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.card-p__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-p__name { font-size: 25px; }
.card-p__name a { color: #fff; }
.card-p__desc { color: var(--muted); font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-p__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; color: #fff; }
.price.vip { color: var(--gold); }
.price-old { color: #777; font-size: 13px; text-decoration: line-through; margin-bottom: 2px; }
.price-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.price-note b { color: var(--gold); font-weight: 600; }
.card-p__cta { font-size: 13px; font-weight: 600; color: var(--red-hover); white-space: nowrap; }
.card-p:hover .card-p__cta { color: #fff; }

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: 3px; color: var(--muted); }
.empty h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }

/* ---------- Chi tiết sản phẩm ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.detail__media { aspect-ratio: 16 / 10; overflow: hidden; }
.detail__media img { width: 100%; height: 100%; object-fit: contain; background: #111; display: block; }
.detail h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 8px 0 4px; }
.prose { color: #c9c9c9; white-space: pre-line; max-width: 68ch; }
.panel { padding: 22px 24px; }
.panel { margin-top: 18px; }
.detail__media + .panel { margin-top: 18px; }
.panel h2 { font-size: 24px; margin-bottom: 12px; }
.buybox { position: sticky; top: calc(var(--head-h, 150px) + 14px); z-index: 20; padding: 24px; }
.buybox.is-tall { position: static; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 9px 0; border-top: 1px solid var(--line); color: #c4c4c4; font-size: 14px; }
.facts li:first-child { border-top: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px; cursor: pointer; font-size: 14px; color: #ddd; }
.check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.check:has(input:checked) { border-color: var(--red); }

/* ---------- Tài khoản ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash > * { grid-column: span 12; }
.dash .c-5 { grid-column: span 5; }
.dash .c-7 { grid-column: span 7; }
.balance { padding: 26px; }
.balance .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 68px); line-height: 1; color: #fff; }
.balance .amount small { font-size: .45em; color: var(--muted); margin-left: 4px; font-weight: 700; }
.page-title { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 22px; }
.table-v { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-v th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table-v td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-v tr:last-child td { border-bottom: 0; }
.table-v .r { text-align: right; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .07); }
.pill-warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.pill-off { color: #8a8a8a; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #e5e5e5; }
.copy { background: none; border: 0; padding: 2px 6px; margin-left: 4px; color: var(--muted); font-size: 12px; cursor: pointer; border-radius: 2px; }
.copy:hover { color: #fff; background: var(--raised); }
.plus { color: var(--ok); }
.minus { color: #6ee4fb; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
/* Liên kết nằm giữa câu chữ (vd. "Điều khoản mua hàng"): đỏ theo theme thay vì xanh mặc định của Bootstrap, gạch chân để thấy là bấm được. */
.terms-link { color: var(--red-hover); text-decoration: underline; text-underline-offset: 2px; }
.terms-link:hover { color: #fff; }

/* Điều khoản mua hàng (trang Luật lệ): mỗi điều là một hàng, số điều bên trái, nội dung bên phải. */
.terms-body { padding: 4px 28px; }
.terms-art { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 22px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.terms-art:first-child { border-top: 0; }
.terms-no { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.2; color: var(--red-hover); white-space: nowrap; }
.terms-art--sys .terms-no { color: var(--gold); }
.terms-art h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 600; line-height: 1.4; text-transform: none; letter-spacing: 0; color: #fff; margin: 0 0 6px; }
.terms-art p { margin: 0 0 8px; max-width: 76ch; color: #bec1c6; font-size: 14.5px; line-height: 1.75; }
.terms-art p:last-child { margin-bottom: 0; }
@media (max-width: 575px) {
    .terms-body { padding: 2px 18px; }
    .terms-art { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
    .terms-no { font-size: 19px; }
}

/* ================= Điểm danh hằng ngày (/diem-danh) =================
   Lịch cả tháng, mỗi ô một món quà. Ngày thường viền đỏ như phần còn lại của shop; Chủ nhật là rương lớn viền vàng kim.
   Ô đã nhận được đóng dấu "Đã nhận". Dấu đóng xuống là chuyển động duy nhất của trang, và chỉ chạy sau khi người chơi bấm nhận. */
.ck { --gold-1: #fde68a; --gold-2: #facc15; --gold-3: #b45309; }
.ck-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px; align-items: center; margin-bottom: 30px; }
.ck-lead { margin: 0 0 20px; max-width: 56ch; color: #bfc2c7; font-size: 15px; line-height: 1.75; }
.ck-stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0; }
.ck-stats dt { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ck-stats dd { margin: 0; color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.ck-stats dd .num { color: var(--red-hover); font-size: 34px; font-weight: 800; }

.ck-hero { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; border-radius: 12px; background: rgba(10, 17, 25, .72); border: 1px solid rgba(64, 213, 243, .45); box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 34px rgba(11, 143, 176, .18); }
.ck-hero.is-sunday { border: 1px solid transparent; background: linear-gradient(180deg, rgba(64, 42, 8, .9), rgba(28, 15, 6, .94)) padding-box, linear-gradient(160deg, var(--gold-1), var(--gold-3) 55%, var(--gold-2)) border-box; box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 40px rgba(250, 204, 21, .2); }
.ck-hero__date { color: var(--muted); font-size: 13px; }
.ck-hero.is-sunday .ck-hero__date { color: #e7d29a; }
.ck-hero__body { display: flex; align-items: center; gap: 18px; }
.ck-hero__art { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.ck-hero__art .ck-art { width: 74px; height: 74px; }
.ck-hero.is-sunday .ck-hero__art .ck-art { filter: drop-shadow(0 4px 14px rgba(250, 204, 21, .5)); }
.ck-hero__text { min-width: 0; }
.ck-hero__text b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.1; color: #fff; }
.ck-hero__amount { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--red-hover); }
.ck-hero.is-sunday .ck-hero__amount { color: var(--gold-2); }
.ck-hero__text p { margin: 8px 0 0; color: #b1b4b9; font-size: 13px; line-height: 1.6; }
.ck-hero__state { padding: 12px 14px; border-radius: 6px; font-weight: 600; text-align: center; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); color: #86efac; }
.ck-hero__state.is-wait { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); color: #fcd34d; }

.ck-board { margin-bottom: 28px; }
.ck-week, .ck-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.ck-week { margin-bottom: 8px; }
.ck-week span { text-align: center; color: var(--muted); font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.ck-week span:last-child { color: var(--gold-2); }
.ck-grid { list-style: none; margin: 0; padding: 0; }
.ck-pad { min-height: 1px; }
.ck-day { position: relative; min-width: 0; }

.ck-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 204px; margin: 0; padding: 12px 12px 14px; overflow: hidden; border-radius: 10px; background: rgba(10, 17, 25, .62); border: 1px solid rgba(255, 255, 255, .09); }
.ck-head { display: flex; align-items: baseline; gap: 6px; min-height: 30px; }
.ck-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; color: #fff; }
.ck-wd { display: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.ck-tag { margin-left: auto; align-self: center; padding: 4px 7px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ck-tag--soft { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); }
.ck-art-wrap { flex: 1; display: grid; place-items: center; padding: 8px 0; }
.ck-art { width: 56px; height: 56px; }
img.ck-art { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.ck-name { min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ck-amount { margin-top: 3px; text-align: center; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--red-hover); }

/* Chủ nhật: rương lớn, viền vàng kim, nền ấm. */
.ck-day.is-sunday .ck-card { border: 1px solid transparent; background: linear-gradient(180deg, rgba(64, 42, 8, .88), rgba(28, 15, 6, .94)) padding-box, linear-gradient(160deg, var(--gold-1), var(--gold-3) 55%, var(--gold-2)) border-box; box-shadow: 0 10px 28px rgba(250, 204, 21, .12), inset 0 1px 0 rgba(254, 243, 199, .22); }
.ck-day.is-sunday .ck-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 6%, rgba(250, 204, 21, .24), transparent 62%); pointer-events: none; }
.ck-day.is-sunday .ck-head, .ck-day.is-sunday .ck-art-wrap, .ck-day.is-sunday .ck-name, .ck-day.is-sunday .ck-amount { position: relative; }
.ck-day.is-sunday .ck-num { color: var(--gold-1); }
.ck-day.is-sunday .ck-name { color: #fef3c7; }
.ck-day.is-sunday .ck-amount { color: var(--gold-2); }
.ck-day.is-sunday .ck-art { width: 62px; height: 62px; filter: drop-shadow(0 4px 12px rgba(250, 204, 21, .5)); }

/* Hôm nay. */
.ck-day.is-today .ck-card { border-color: var(--red-hover); box-shadow: 0 0 0 1px rgba(64, 213, 243, .55), 0 0 28px rgba(11, 143, 176, .32); }
.ck-day.is-today.is-sunday .ck-card { box-shadow: 0 0 0 2px rgba(250, 204, 21, .5), 0 0 34px rgba(250, 204, 21, .35); }
.ck-day.is-today.is-sunday .ck-tag { background: linear-gradient(160deg, var(--gold-2), #d97706); color: #1a0f05; }

/* Trạng thái khác. */
.ck-day.is-upcoming .ck-art-wrap, .ck-day.is-upcoming .ck-name, .ck-day.is-upcoming .ck-amount { opacity: .78; }
.ck-day.is-missed .ck-card, .ck-day.is-past .ck-card { opacity: .5; }
.ck-day.is-claimed .ck-art-wrap, .ck-day.is-claimed .ck-name, .ck-day.is-claimed .ck-amount,
.ck-day.is-pending .ck-art-wrap, .ck-day.is-pending .ck-name, .ck-day.is-pending .ck-amount { opacity: .38; filter: saturate(.55); }
.ck-stamp { position: absolute; left: 50%; top: 47%; z-index: 1; padding: 4px 12px; border: 2.5px solid #4ade80; border-radius: 6px; background: rgba(9, 9, 9, .4); color: #4ade80; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: .03em; line-height: 1.2; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3); }
.ck-stamp--wait { border-color: #fbbf24; color: #fbbf24; font-size: 17px; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }

/* Bấm vào quà = bấm nút nhận quà: nút trong suốt phủ cả ô. */
.ck-hit { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.ck-hit:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.ck-card:has(.ck-hit):hover { border-color: #fff; }
.ck-btn { position: relative; z-index: 3; width: 100%; min-height: 38px; margin-top: 10px; padding: 8px 10px; font-size: 14px; }
.ck-card.is-busy { cursor: progress; opacity: .75; }

/* Vừa nhận xong: dấu đóng xuống và một vòng sáng lan ra. */
@keyframes ckStamp {
    0% { transform: translate(-50%, -50%) rotate(-12deg) scale(2.6); opacity: 0; }
    55% { transform: translate(-50%, -50%) rotate(-12deg) scale(.9); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; }
}
@keyframes ckRing { from { box-shadow: 0 0 0 0 rgba(74, 222, 128, .75); } to { box-shadow: 0 0 0 26px rgba(74, 222, 128, 0); } }
.ck-day.is-fresh .ck-stamp { animation: ckStamp .55s cubic-bezier(.2, .9, .3, 1.15) both; }
.ck-day.is-fresh .ck-card { animation: ckRing .9s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .ck-day.is-fresh .ck-stamp, .ck-day.is-fresh .ck-card { animation: none; }
}

[data-ck-result] { margin-bottom: 14px; }

.ck-lower { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ck-panel { padding: 22px 24px; border-radius: 10px; background: rgba(10, 17, 25, .58); border: 1px solid rgba(255, 255, 255, .09); }
.ck-panel .block-head { margin-bottom: 14px; }
.ck-panel .block-head h2 { font-size: 26px; }
.ck-steps { margin: 0 0 6px; padding-left: 20px; color: #bfc2c7; font-size: 14.5px; line-height: 1.7; }
.ck-steps li { padding-left: 4px; margin-bottom: 6px; }
.ck-rank { list-style: none; margin: 0 0 14px; padding: 0; }
.ck-rank li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ck-rank li:first-child { border-top: 0; }
.ck-rank__no { color: var(--muted); font-family: var(--font-display); font-size: 22px; font-weight: 800; text-align: center; }
.ck-rank li:nth-child(1) .ck-rank__no { color: var(--gold-2); }
.ck-rank__who { display: flex; flex-direction: column; min-width: 0; }
.ck-rank__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ck-rank__who small { color: var(--muted); font-size: 12px; }
.ck-rank__val { color: var(--gold-2); font-family: var(--font-display); font-size: 21px; font-weight: 800; white-space: nowrap; }

@media (max-width: 1000px) {
    .ck-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .ck-lower { grid-template-columns: minmax(0, 1fr); }
}
/* Điện thoại: 3 cột cho ngày thường, mỗi Chủ nhật là một hàng rộng riêng (không còn cột thứ trong tuần nên hiện T2…CN trong từng ô). */
@media (max-width: 719px) {
    .ck-week, .ck-pad { display: none; }
    .ck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ck-card { min-height: 172px; padding: 10px 9px 12px; }
    .ck-num { font-size: 26px; }
    .ck-wd { display: inline; }
    .ck-art { width: 46px; height: 46px; }
    .ck-name { font-size: 12px; }
    .ck-amount { font-size: 15px; }
    .ck-stamp { font-size: 18px; padding: 3px 9px; }
    .ck-stamp--wait { font-size: 14px; }
    .ck-day.is-sunday { grid-column: 1 / -1; }
    .ck-day.is-sunday .ck-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "art head" "art name" "art amount" "btn btn"; align-items: center; column-gap: 14px; min-height: 0; padding: 14px 16px; }
    .ck-day.is-sunday .ck-head { grid-area: head; }
    .ck-day.is-sunday .ck-art-wrap { grid-area: art; padding: 0; }
    .ck-day.is-sunday .ck-art { width: 72px; height: 72px; }
    .ck-day.is-sunday .ck-name { grid-area: name; min-height: 0; text-align: left; font-size: 15px; }
    .ck-day.is-sunday .ck-amount { grid-area: amount; text-align: left; font-size: 19px; }
    .ck-day.is-sunday .ck-btn { grid-area: btn; }
    .ck-day.is-sunday .ck-stamp { left: auto; right: 14px; top: 50%; transform: translate(0, -50%) rotate(-12deg); }
    .ck-day.is-fresh.is-sunday .ck-stamp { animation: none; }
    .ck-hero__body { gap: 14px; }
    .ck-hero__art { width: 80px; height: 80px; }
    .ck-hero__art .ck-art { width: 62px; height: 62px; }
    .ck-hero__text b { font-size: 24px; }
    .ck-panel { padding: 18px 18px; }
}

/* ---------- Đăng nhập / đăng ký ---------- */
.auth { max-width: 440px; margin: 56px auto 80px; padding: 34px 32px; }
.auth h1 { font-size: 40px; margin-bottom: 6px; }
.auth .sub { color: var(--muted); margin-bottom: 24px; }
.auth label { display: block; font-size: 13px; font-weight: 500; color: #cfcfcf; margin-bottom: 6px; }
.auth .row-f { margin-bottom: 16px; }
.auth .foot { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.auth .foot a { color: var(--red-hover); font-weight: 600; }

/* ---------- Footer ---------- */
.vf { border-top: 1px solid var(--line); background: #060606; color: #7f7f7f; font-size: 13px; padding: 26px 0; }
.vf strong { color: #fff; font-family: var(--font-display); font-size: 17px; letter-spacing: .05em; }

/* ---------- Phân trang ---------- */
.pagination { gap: 6px; flex-wrap: wrap; }
.pagination .page-link { background: var(--surface); color: #ddd; border: 1px solid var(--line); border-radius: 3px !important; }
.pagination .page-link:hover { background: var(--raised); color: #fff; }
.pagination .active .page-link { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .disabled .page-link { background: var(--bg); color: #555; }

/* ---------- Logo, hero, 3 bước ---------- */
[hidden] { display: none !important; }
.vh-logo { height: 46px; width: auto; display: block; }
.hero-logo { width: min(100%, 430px); justify-self: center; display: block; mix-blend-mode: screen; }
.how { border-bottom: 1px solid var(--line); background: #0c0c0c; }
.how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how-list li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 24px; border-left: 1px solid var(--line); font-size: 14px; color: #cfcfcf; }
.how-list li:first-child { border-left: 0; padding-left: 0; }
.how-list li::before { content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--red-hover); }
.how-list b { color: #fff; font-weight: 600; }
.auth-logo { display: block; height: 96px; width: auto; margin: -4px auto 14px; }

/* ---------- Thông báo nổi (toast) và AJAX ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast-v { pointer-events: auto; cursor: pointer; padding: 13px 16px; font-size: 14px; background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-left: 3px solid var(--muted); border-radius: 3px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); animation: toast-in .22s ease-out; }
.toast-ok { border-left-color: var(--ok); }
.toast-warn { border-left-color: var(--warn); }
.toast-err { border-left-color: var(--red-hover); }
.toast-info { border-left-color: #60a5fa; }
.toast-v.is-out { opacity: 0; transform: translateY(6px); transition: .22s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flash { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { color: var(--red-hover); } 100% { color: inherit; } }
.is-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }
.btn-vcs.is-busy { cursor: progress; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .how-list { grid-template-columns: 1fr; }
    .how-list li, .how-list li:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
    .how-list li:first-child { border-top: 0; }
    .vh-logo { height: 40px; }
    .hero-logo { width: min(70%, 260px); }
    .detail { grid-template-columns: 1fr; }
    .buybox { position: static; order: -1; }
    .dash .c-5, .dash .c-7 { grid-column: span 12; }
}
@media (max-width: 640px) {
    .vh-inner { gap: 10px; }
    .vh-nav { order: 3; width: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: 4px; }
    .vh-right { margin-left: auto; }
    .wallet-chip small { display: none; }
    .toolbar { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .card-p__name { font-size: 21px; }
    .auth { margin: 28px auto 48px; padding: 26px 20px; }
    .table-v { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Nút Discord / Steam, thanh tiến trình điều hướng ---------- */
.btn-discord { background: #5865f2; color: #fff; border-radius: 3px; }
.btn-discord:hover { background: #6d79f5; color: #fff; }
.btn-steam { background: #1b2838; color: #fff; border: 1px solid #3b5a7a; border-radius: 3px; }
.btn-steam:hover { background: #24384f; color: #fff; border-color: #66c0f4; }
.btn-steam.btn-lg-v { padding: 16px 24px; font-size: 15px; }
.vh-right .ico, .btn-steam .ico, .btn-discord .ico { width: 16px; height: 16px; flex: none; }
body.is-navigating::before { content: ""; position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 300; background: linear-gradient(90deg, var(--red), var(--red-hover)); transform-origin: left; animation: nav-bar 1.2s ease-out infinite; }
@keyframes nav-bar { 0% { transform: scaleX(.05); } 70% { transform: scaleX(.85); } 100% { transform: scaleX(.95); } }
.count-line { color: var(--muted); font-size: .875rem; margin: -10px 0 18px; }
.preview-box { display: grid; place-items: center; width: 100%; max-width: 360px; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #131313 0 12px, #181818 12px 24px); border: 1px dashed var(--line-strong); border-radius: 3px; overflow: hidden; color: var(--muted); font-size: 13px; }
.preview-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-box.has-image { border-style: solid; }

/* =====================================================================
   v4: nền động, kính mờ, thanh cuộn, con trỏ, trang chủ, bảng xếp hạng
   ===================================================================== */
html { background: #020509; }
#bg-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; display: block; pointer-events: none; }
body[data-layout="shop"] { background: transparent; --surface: rgba(10, 17, 25, .62); --raised: rgba(15, 25, 34, .78); --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .17); --notch: rgba(6, 11, 17, .92); --muted: #a5a8ad; }
body[data-layout="admin"] { background: var(--bg); }

/* Kính mờ: bề mặt trong suốt vừa đủ để thấy nền chuyển động phía sau. */
body[data-layout="shop"] .cut, body[data-layout="shop"] .field, body[data-layout="shop"] .chip, body[data-layout="shop"] .wallet-chip, body[data-layout="shop"] .notice, body[data-layout="shop"] .empty, body[data-layout="shop"] .panel, body[data-layout="shop"] .auth { -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.glass { background: rgba(10, 17, 25, .58); border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); box-shadow: 0 10px 34px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
body[data-layout="shop"] .vh { background: rgba(7, 13, 18, .55); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-color: rgba(255, 255, 255, .12); border-radius: 999px; }
body[data-layout="shop"] .vh-inner { min-height: 60px; }
body[data-layout="shop"] .how { background: rgba(4, 9, 14, .45); border-color: rgba(255, 255, 255, .07); }
body[data-layout="shop"] .vh-nav a { border-bottom: 0; border-radius: 999px; padding: 8px 14px; }
body[data-layout="shop"] .vh-nav a.is-active { background: var(--red-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(11, 143, 176, .45); }

/* Hero: ảnh giữ nguyên tỉ lệ, màn rộng thì hai bên mờ đen dần, không kéo giãn. */
.hero { position: relative; margin-top: -74px; padding: 0; border: 0; background: none; }
.hero-art { width: 100%; max-width: 2000px; margin-inline: auto; aspect-ratio: 2000 / 750; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, #000 62%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, #000 62%, transparent 100%); mask-composite: intersect; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vw, 64px); }
.hero-copy h1 { font-size: clamp(32px, 5.6vw, 76px); font-weight: 800; text-shadow: 0 2px 24px rgba(0, 0, 0, .85); }
.hero-copy .lead { color: #d6d9de; max-width: 54ch; margin: 12px 0 18px; font-size: clamp(.9rem, 1.1vw, 1.0625rem); text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
    .hero-copy { position: static; margin-top: -4vw; padding-bottom: 8px; }
    .hero-copy h1 br { display: none; }
}

.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: 12px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live-pulse 2s infinite; }
.live-online { color: #4ade80; } .live-maintenance { color: #fbbf24; } .live-offline { color: #6ee4fb; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }

/* Thông tin máy chủ */
.srv-wrap { margin-top: 6px; }
.srv { display: grid; grid-template-columns: 1.5fr 1.2fr repeat(4, minmax(0, 1fr)); gap: 0; padding: 6px; }
.srv-cell { padding: 14px 18px; border-left: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.srv-cell:first-child { border-left: 0; }
.srv-cell small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.srv-cell b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.srv-big { font-size: 28px; line-height: 1; } .srv-big span { color: var(--muted); font-size: .6em; }
.srv-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.muted-v { color: var(--muted); }
.bar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .1); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #0a5870, #40d5f3); }
@media (max-width: 1100px) { .srv { grid-template-columns: repeat(3, minmax(0, 1fr)); } .srv-cell:nth-child(4) { border-left: 0; } }
@media (max-width: 640px) { .srv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .srv-cell:nth-child(odd) { border-left: 0; } .srv-cell:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); } .srv-cell:nth-child(4) { border-left: 1px solid rgba(255, 255, 255, .08); } }

/* Thanh chế độ */
.modes { display: flex; gap: 0; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.modes::-webkit-scrollbar { display: none; }
.mode { flex: 1 0 auto; padding: 10px 22px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.mode:first-child { border-left: 0; }
.mode small { display: block; color: var(--muted); font-size: 12px; }
.mode b { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; color: #fff; text-transform: uppercase; }

/* Khối nội dung trang chủ */
.block { padding-top: clamp(36px, 5vw, 72px); }
.block-head { margin-bottom: 20px; }
.block-head h2 { font-size: clamp(26px, 3vw, 38px); }
.block-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.block-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 24vw, 340px), 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: transform .2s, border-color .2s; }
a.post:hover { transform: translateY(-4px); border-color: rgba(11, 143, 176, .55); color: inherit; }
.post:first-child { grid-column: span 2; }
.post-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(0, 0, 0, .3); }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media .tag { position: absolute; top: 10px; left: 10px; }
.post-body { padding: 14px 18px 18px; }
.post-body h3 { font-size: 24px; margin-bottom: 6px; color: #fff; }
.post-body p { color: #bfc2c7; font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .post:first-child { grid-column: auto; } }

.rhythm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: r; }
.rhythm li { padding: 20px 22px; position: relative; }
.rhythm li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #40d5f3, rgba(64, 213, 243, 0)); }
.rhythm-time { display: inline-block; font-size: 12px; font-weight: 600; color: #a4eefd; margin-bottom: 8px; }
.rhythm h3 { font-size: 24px; margin-bottom: 6px; }
.rhythm p { color: #bfc2c7; font-size: 14px; margin: 0; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 3vw, 34px); background: linear-gradient(100deg, rgba(11, 143, 176, .22), rgba(10, 17, 25, .6) 60%); }
.cta-band h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: #cacdd2; max-width: 60ch; }

/* Bảng xếp hạng */
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.lb-tabs .chip { border-radius: 999px; padding: 9px 18px; }
.lb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: start; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; margin-bottom: 14px; }
.lb-head h2 { font-size: 28px; } .lb-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; align-items: end; }
.pod { text-align: center; padding: 18px 12px; display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; }
.pod b { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-val { color: var(--muted); font-size: 18px; }
.lb-list, .lb-mini { padding: 6px 0; overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 11px 20px; border-top: 1px solid rgba(255, 255, 255, .06); transition: background .15s; }
.lb-row:first-child { border-top: 0; }
.lb-row:hover { background: rgba(11, 143, 176, .1); }
.lb-rank { font-size: 22px; color: var(--muted); }
.lb-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { color: var(--muted); font-style: normal; font-size: 12px; margin-left: 8px; }
.lb-val { font-size: 22px; color: #fff; }
.lb-title { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; color: #facc15; border: 1px solid rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .08); vertical-align: 1px; }
.lb-side { padding: 20px; position: sticky; top: calc(var(--head-h, 150px) + 14px); align-self: start; z-index: 5; }
.lb-side > :last-child { margin-bottom: 0; }
.lb-side h3 { font-size: 22px; margin: 0 0 8px; } .lb-side p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 900px) { .lb-layout { grid-template-columns: 1fr; } .lb-side { position: static; } .pod-rank { font-size: 30px; } .pod-1 .pod-rank { font-size: 38px; } }

/* Footer nhiều cột */
.vf { margin-top: clamp(40px, 6vw, 90px); background: linear-gradient(180deg, rgba(3, 7, 11, .12), rgba(3, 7, 11, .55)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(255, 255, 255, .08); padding: clamp(32px, 4vw, 56px) 0 22px; color: #9b9ea3; }
.vf-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.vf-brand p { margin: 14px 0; max-width: 44ch; font-size: 14px; }
.vf h4 { font-size: 16px; color: #fff; margin-bottom: 12px; letter-spacing: .06em; }
.vf nav a { display: block; color: #9b9ea3; padding: 4px 0; font-size: 14px; transition: color .15s, transform .15s; }
.vf nav a:hover { color: #fff; transform: translateX(3px); }
.vf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.vf-top { color: #a4eefd; }
@media (max-width: 800px) { .vf-grid { grid-template-columns: 1fr 1fr; } .vf-brand { grid-column: 1 / -1; } }

/* Thanh cuộn hiện đại */
html { scrollbar-width: thin; scrollbar-color: #0a4256 rgba(0, 0, 0, .35); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0b6f8a, #0a4256); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #40d5f3, #0b6f8a); background-clip: padding-box; border: 3px solid transparent; }
::selection { background: rgba(11, 143, 176, .55); color: #fff; }

/* Con trỏ: chấm đỏ nhỏ làm con trỏ, vòng tròn mượt đi theo. Chỉ bật với chuột (thiết bị cảm ứng giữ nguyên). */
@media (pointer: fine) {
    body[data-layout="shop"], body[data-layout="shop"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l16 9-7 2-3 7z' fill='%23dc2626' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto; }
    body[data-layout="shop"] a, body[data-layout="shop"] button, body[data-layout="shop"] [role=button], body[data-layout="shop"] label, body[data-layout="shop"] select, body[data-layout="shop"] summary { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l16 9-7 2-3 7z' fill='%23ef4444' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='19' cy='19' r='3.4' fill='%23fff'/%3E%3C/svg%3E") 3 2, pointer; }
    body[data-layout="shop"] input[type=text], body[data-layout="shop"] input[type=search], body[data-layout="shop"] textarea { cursor: text; }
}
.cur-ring { position: fixed; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(64, 213, 243, .65); z-index: 400; pointer-events: none; opacity: 0; will-change: transform; transition: opacity .2s, width .18s, height .18s, margin .18s, background .18s, border-color .18s; }
.has-ring .cur-ring { opacity: 1; }
.cur-ring.is-hover { width: 52px; height: 52px; margin: -9px 0 0 -9px; background: rgba(11, 143, 176, .14); border-color: #40d5f3; }
.cur-ring.is-down { width: 24px; height: 24px; margin: 5px 0 0 5px; background: rgba(11, 143, 176, .3); }
@media (pointer: coarse) { .cur-ring { display: none; } }

@media (max-width: 640px) {
    body[data-layout="shop"] .vh { border-radius: 18px; }
    .vh-brand { font-size: 18px; }
    .vh-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .vh-right .btn-sm, .vh-nav a { white-space: nowrap; }
    body[data-layout="shop"] .vh-nav { overflow-x: auto; scrollbar-width: none; gap: 2px; }
    body[data-layout="shop"] .vh-nav a { padding: 7px 12px; font-size: 14px; }
}
@media (max-width: 900px) { .hero { margin-top: 14px; } .hero-art { aspect-ratio: 2000 / 900; } }
.lb-groups { display: grid; gap: 10px; margin: 6px 0 22px; }
.lb-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lb-group-name { min-width: 92px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lb-groups .chip { border-radius: 999px; padding: 7px 16px; }
.lb-row .lb-name em { display: inline-block; }

/* ===== v5: cùng một độ rộng cho header, thân trang và footer ===== */
:root { --gut: clamp(12px, 3vw, 28px); --page-w: 1240px; }
.container { max-width: none; width: min(var(--page-w), calc(100% - 2 * var(--gut))); padding-inline: 0; margin-inline: auto; }
.vh { width: min(var(--page-w), calc(100% - 2 * var(--gut))); margin: 10px auto 0; }
.vh .container { width: 100%; padding-inline: clamp(14px, 1.6vw, 24px); }

/* Không cho bôi đen văn bản ở phía khách (ô nhập, mã IP và nội dung sao chép vẫn chọn được). */
body[data-layout="shop"] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body[data-layout="shop"] input, body[data-layout="shop"] textarea, body[data-layout="shop"] .code { -webkit-user-select: text; user-select: text; }
body[data-layout="shop"] img { -webkit-user-drag: none; user-drag: none; }

/* Nhịp sống: thanh đỏ chạy dọc hết cạnh trái của thẻ. */
.rhythm li { overflow: hidden; padding-left: 26px; }
.rhythm li::before { top: 0; bottom: 0; width: 4px; border-radius: 0; background: linear-gradient(180deg, #40d5f3, #0a5870); }
.squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.squad { padding: 18px 20px; }
.squad h3 { font-size: 24px; } .squad small { color: var(--muted); }
.squad ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.squad li { padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 8px; justify-content: space-between; }

/* ===== v6: header hai hàng, IP lớn, bo góc nhẹ ===== */
:root { --head-w: 1480px; }
.hero { margin-top: -104px; }
body[data-layout="shop"] .vh { width: min(var(--head-w), calc(100% - 2 * var(--gut))); border-radius: 10px; }
body[data-layout="shop"] .vh-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; min-height: 0; }
.vh-brand { order: 1; }
.vh-right { order: 2; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.vh-nav { order: 3; width: 100%; margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.vh-nav::-webkit-scrollbar { display: none; }
body[data-layout="shop"] .vh-nav a { border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: 8px 16px; white-space: nowrap; background: rgba(255, 255, 255, .03); }
body[data-layout="shop"] .vh-nav a:hover { border-color: rgba(64, 213, 243, .6); background: rgba(11, 143, 176, .1); }
body[data-layout="shop"] .vh-nav a.is-active { border-color: #40d5f3; background: rgba(11, 143, 176, .22); }
.vh-right .btn-sm, .wallet-chip { white-space: nowrap; }
.wallet-chip { border-radius: 6px; }
@media (max-width: 640px) {
    body[data-layout="shop"] .vh { border-radius: 10px; }
    .vh-right { width: 100%; margin-left: 0; justify-content: flex-start; }
    .hero { margin-top: 14px; }
}

/* Khối IP */
.srv { grid-template-columns: 2fr 1.2fr repeat(3, minmax(0, 1fr)); }
.srv-addr .code { font-size: clamp(24px, 2.4vw, 32px); font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; color: #fff; line-height: 1.1; }
.srv-copy { gap: 10px; flex-wrap: nowrap; }
.srv-copy .copy { flex: none; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 12px; margin: 0; }
.srv-copy .copy:hover { border-color: #40d5f3; background: rgba(11, 143, 176, .2); }
@media (max-width: 1100px) { .srv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .srv-addr { grid-column: 1 / -1; } .srv-cell { border-left: 0 !important; } .srv-cell + .srv-cell { border-top: 1px solid rgba(255, 255, 255, .08); } }
@media (max-width: 640px) { .srv { grid-template-columns: 1fr; } }

/* Top 3: đủ thông tin */
.pod-sub { color: var(--muted); font-size: 12.5px; min-height: 1em; }
.glass { border-radius: 10px; }

/* ===== v7 ===== */
.vh-logo { height: 62px; width: auto; }
.vh-brand { font-size: 30px; gap: 14px; }
.vf .vh-logo { height: 62px; }
.vf .vh-brand { font-size: 30px; }
.vf .container { width: min(var(--head-w), calc(100% - 2 * var(--gut))); }
@media (max-width: 640px) { .vh-logo, .vf .vh-logo { height: 48px; } .vh-brand, .vf .vh-brand { font-size: 22px; } }

/* Ảnh hero mờ dần ở phía trên, phía sau thanh menu. */
.hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .55) 9%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .55) 9%, #000 22%, #000 62%, transparent 100%); }

/* Nút Sao chép: đỏ như "Vào cửa hàng", gọn. */
.srv-copy .copy { background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 7px 14px; font-size: 13px; font-weight: 600; line-height: 1; }
.srv-copy .copy:hover { background: var(--red-hover); color: #fff; }

/* Footer: cả khối (nền, viền) cùng độ rộng và kiểu với menu trên, không tràn hết màn hình. */
.vf { width: min(var(--head-w), calc(100% - 2 * var(--gut))); margin: clamp(40px, 6vw, 90px) auto 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: rgba(7, 13, 18, .55); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); padding: clamp(24px, 3vw, 40px) clamp(14px, 1.6vw, 24px) 18px; box-shadow: 0 10px 34px rgba(0, 0, 0, .5); }
.vf .container { width: 100%; }

/* ===== v8: bổ sung giao diện ===== */
.block-head h2 { position: relative; padding-left: 16px; }
.block-head h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #40d5f3, #0a5870); }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps3 li { counter-increment: st; padding: 20px 22px 22px 70px; position: relative; }
.steps3 li::before { content: counter(st); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: #fff; background: var(--red); border-radius: 6px; }
.steps3 b { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.steps3 p { margin: 6px 0 0; color: #bfc2c7; font-size: 14px; }
@media (max-width: 800px) { .steps3 { grid-template-columns: 1fr; } }

.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feat-card { display: block; overflow: hidden; color: inherit; transition: transform .2s, border-color .2s; }
.feat-card:hover { transform: translateY(-4px); border-color: rgba(64, 213, 243, .6); color: inherit; }
.feat-media { aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .3); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.feat-card:hover .feat-media img { transform: scale(1.06); }
.feat-body { padding: 12px 16px 16px; }
.feat-body small { color: var(--muted); font-size: 12px; }
.feat-body h3 { font-size: 22px; margin: 2px 0 6px; color: #fff; }
.feat-body b { font-size: 22px; color: #a4eefd; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #40d5f3; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] { border-color: rgba(64, 213, 243, .45); }
.faq p { margin: 0; padding: 0 20px 18px; color: #bfc2c7; }

/* Ánh sáng đỏ đi theo con trỏ trên thẻ kính. */
.glass { position: relative; }
.glass::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(64, 213, 243, .16), transparent 70%); }
.glass:hover::after { opacity: 1; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--red); color: #fff; font-size: 20px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red-hover); color: #fff; }

/* v9: viền đỏ đồng bộ, 3 bước ở cửa hàng, thống kê tài khoản, luật lệ, đội ngũ, VIP */
body[data-layout="shop"] { --line: rgba(64, 213, 243, .2); --line-strong: rgba(64, 213, 243, .36); }
.glass, body[data-layout="shop"] .vh, .vf, .faq details { border-color: rgba(64, 213, 243, .24); }
.glass:hover { border-color: rgba(64, 213, 243, .5); }
body[data-layout="shop"] .vh { border-color: rgba(64, 213, 243, .34); }
.how-block { padding-top: 26px; padding-bottom: 6px; }
.steps3 li > *, .rhythm li > * { position: relative; z-index: 1; }
.steps3 li::before { z-index: 2; }

.dash .c-12 { grid-column: span 12; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.18); }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.stat b { font-size: 18px; color: #fff; font-weight: 700; word-break: break-word; }
.stat b.plus { color: #4ade80; }

.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.staff-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.staff-card b { font-family: var(--font-display); font-size: 22px; }
.staff-card p { margin: 0; color: #bfc2c7; font-size: 14px; }
.vip-table { padding: 8px 14px; }
.rules { counter-reset: st; }

/* v10: cuộn mượt — bỏ làm mờ nền khi đang cuộn để không giật */
:root, html { scroll-behavior: auto !important; }
.glass { contain: layout style; }

/* v11: bóng chữ nhẹ phía dưới bên phải */
body[data-layout] { text-shadow: 1px 1px 2px rgba(0, 0, 0, .45); }
body[data-layout] h1, body[data-layout] h2, body[data-layout] h3, body[data-layout] .page-title { text-shadow: 2px 2px 4px rgba(0, 0, 0, .55); }
body[data-layout] input, body[data-layout] textarea, body[data-layout] select, body[data-layout] .code { text-shadow: none; }

/* v12: ảnh sản phẩm hiển thị trọn vẹn trong khung */
.card-p__media img, .feat-media img, .preview-box img, .detail__media img { object-fit: contain; }
.card-p__media, .feat-media, .preview-box.has-image { background: rgba(0, 0, 0, .35); }
.card-p__media img, .feat-media img { padding: 6px; }
.feat-card:hover .feat-media img { transform: scale(1.03); }

/* v13: xem 3D */
.detail__media { position: relative; }
.media-tabs { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 6px; }
.media-tabs button { padding: 6px 12px; font-size: 13px; font-weight: 600; color: #ddd; background: rgba(7, 13, 18, .75); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.media-tabs button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.model-wrap { position: absolute; inset: 0; }
.model-wrap[hidden] { display: none; }
model-viewer { width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, rgba(11, 111, 138, .25), rgba(0, 0, 0, .55)); --poster-color: transparent; }
.model-hint { position: absolute; right: 12px; bottom: 8px; color: #a5a8ad; font-size: 12px; pointer-events: none; }

/* v14: mục "Được mua nhiều" ở trang cửa hàng */
.card-p__rank { position: absolute; left: 10px; bottom: 10px; z-index: 2; min-width: 40px; height: 30px; padding: 0 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; color: #fff; background: var(--red); border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); pointer-events: none; }
.card-p__sold { margin: 0; font-size: 12px; font-weight: 600; color: #a4eefd; }

/* v15: lưới luôn lấp đầy hàng. --k là số cột; ít thẻ hơn số cột thì thẻ tự giãn ra, số thẻ hiện khớp số cột nên không bao giờ thiếu ô. */
.feat, .grid-top { --k: 2; --gap: 14px; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(calc((100% - (var(--k) - 1) * var(--gap)) / var(--k) - 1px), 1fr)); }
.grid-top { --gap: 18px; }
.feat > :nth-child(n+5) { display: none; }
@media (min-width: 900px) { .feat { --k: 4; } }
@media (min-width: 1180px) { .feat { --k: 5; } .feat > :nth-child(5) { display: block; } }
@media (min-width: 1100px) { .grid-top { --k: 4; } }
@media (max-width: 520px) { .grid-top { --k: 1; } .grid-top > :nth-child(n+3) { display: none; } }

/* =====================================================================
   v16: nút Discord đúng màu, thanh danh mục dính dưới menu, kính đậm hơn
   ===================================================================== */

/* Nút Discord: tím chính thức của Discord (#5865F2), chữ trắng đạt độ tương phản 4,6:1.
   Rê chuột / bấm phím Tab thì đậm hơn một nấc (#4752C4) để chữ vẫn rõ. */
.btn-discord { background: #5865f2; color: #fff; border-radius: 3px; box-shadow: 0 6px 18px rgba(88, 101, 242, .28); }
.btn-discord:hover { background: #4752c4; color: #fff; box-shadow: 0 8px 22px rgba(88, 101, 242, .42); }
.btn-discord:focus-visible { outline: 0; background: #4752c4; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-discord:active { transform: translateY(1px); }

/* Thanh danh mục sản phẩm dính ngay dưới menu trên khi cuộn trang.
   --head-h là đáy của menu (vcs-app.js đo lại mỗi khi đổi cỡ màn hình). Thanh chỉ dính trong khung #product-results,
   cuộn hết danh sách thì tự nhả ra, không đè lên chân trang. */
.chips--sticky { position: sticky; top: calc(var(--head-h, 120px) + 10px); z-index: 40; gap: 8px; margin: 0 0 14px; padding: 8px 10px; background: rgba(6, 11, 17, .93); border: 1px solid rgba(64, 213, 243, .3); border-radius: 10px; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.chips--sticky .chip { flex: none; white-space: nowrap; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); border-radius: 6px; padding: 7px 15px; }
body[data-layout="shop"] .chips--sticky .chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
.chips--sticky .chip:hover { background: rgba(64, 213, 243, .14); border-color: rgba(64, 213, 243, .6); }
.chips--sticky .chip.is-active { background: var(--red); border-color: var(--red); box-shadow: 0 4px 14px rgba(11, 143, 176, .4); }
.chips--sticky + .count-line { margin: 0 2px 16px; }
@media (max-width: 640px) {
    /* Màn nhỏ: một hàng, vuốt ngang, để thanh dính không chiếm nhiều chiều cao. */
    .chips--sticky { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .chips--sticky::-webkit-scrollbar { display: none; }
}
@media (pointer: coarse) {
    /* Màn cảm ứng: nút đủ lớn để chạm (cao khoảng 43px). */
    .chip { padding-block: 10px; }
    .pagination .page-link { padding: 10px 14px; }
}

/* Điện thoại: menu dính nhưng trượt bớt hàng logo / đăng nhập lên trên, chỉ còn hàng menu ở lại (--vh-fold do vcs-app.js đo). */
@media (max-width: 640px) {
    .vh { top: calc(10px - var(--vh-fold, 0px)); }
}

/* Bấm mục có #neo (ví dụ "Xem sản phẩm") thì chừa chỗ cho menu dính phía trên, tiêu đề không bị che. */
section[id] { scroll-margin-top: calc(var(--head-h, 120px) + 14px); }

/* Kính đậm hơn: nền động phía sau vẫn thấp thoáng nhưng chữ, viền và nút nổi rõ, không bị loãng. */
body[data-layout="shop"] { --surface: rgba(9, 15, 22, .9); --raised: rgba(14, 23, 32, .95); --notch: rgba(6, 11, 17, .97); }
.glass { background: rgba(8, 14, 20, .88); }
body[data-layout="shop"] .vh { background: rgba(6, 11, 17, .92); }
body[data-layout="shop"] .how { background: rgba(4, 9, 14, .82); }
.vf { background: rgba(6, 11, 17, .92); }
.live { background: rgba(0, 0, 0, .7); }
.cta-band { background: linear-gradient(100deg, rgba(11, 143, 176, .3), rgba(8, 14, 20, .9) 60%); }
.stat { background: rgba(0, 0, 0, .34); }
.media-tabs button { background: rgba(6, 11, 17, .92); }
.post-media, .feat-media, .card-p__media, .preview-box.has-image { background: rgba(0, 0, 0, .5); }
body[data-layout="shop"] .empty { background: rgba(8, 14, 20, .72); border-radius: 10px; }


/* Bục top 3 (kiểu gốc) */
.pod-rank { font-size: 40px; line-height: 1; }
.pod-1 { padding-block: 30px; border-color: rgba(250, 204, 21, .45); background: linear-gradient(180deg, rgba(250, 204, 21, .12), rgba(10, 17, 25, .58)); } .pod-1 .pod-rank { color: #facc15; font-size: 54px; }
.pod-2 { border-color: rgba(203, 213, 225, .35); } .pod-2 .pod-rank { color: #cbd5e1; }
.pod-3 { border-color: rgba(217, 119, 6, .4); } .pod-3 .pod-rank { color: #d97706; }
.pod .lb-title { margin: 0; }
/* Hạng 1-3 trong danh sách (khi chưa đủ 3 người hoặc ở trang chủ) */
.lb-row.top-1 { --t2: #7dd3fc; --glow: 125, 211, 252; } .lb-row.top-2 { --t2: #facc15; --glow: 250, 204, 21; } .lb-row.top-3 { --t2: #cbd5e1; --glow: 203, 213, 225; }
.lb-row.top { background: linear-gradient(90deg, rgba(var(--glow), .12), transparent 55%); box-shadow: inset 3px 0 0 var(--t2); }
.lb-row.top .lb-rank { color: var(--t2); text-shadow: 0 0 14px rgba(var(--glow), .6); }

/* "Cách tính" dính ngay dưới menu khi cuộn (.glass đặt position: relative nên cần chọn cụ thể hơn) */
.lb-layout > .lb-side { position: sticky; top: calc(var(--head-h, 150px) + 14px); align-self: start; }
@media (max-width: 900px) { .lb-layout > .lb-side { position: static; } }

/* Bảng xếp hạng: chỉ số phụ (lần chết...) nằm cột bên phải, ngay cạnh số chính */
.lb-sub { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.lb-row .lb-name em { display: none; }
.lb-layout { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .lb-row { grid-template-columns: 38px minmax(0, 1fr) auto; } .lb-sub { grid-column: 2 / 4; grid-row: 2; text-align: left; font-size: 12px; } .lb-sub:empty { display: none; } }

/* ---------- Giờ mở bunker (trang chủ) ----------
   Mỗi ô một bunker: mã ô bản đồ to, trạng thái, đếm ngược tới lần đổi kế tiếp và thanh tiến độ của lượt hiện tại.
   Bunker đang mở viền và vạch trái xanh, đang khóa giữ màu đỏ của trang. Số đếm ngược do vcs-app.js cập nhật (data-bunker). */
.bk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bk { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 16px 24px; overflow: hidden; }
.bk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #40d5f3, #0a5870); }
.bk-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.bk-code { font-size: 46px; line-height: .9; color: #fff; letter-spacing: .02em; }
.bk-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #a4eefd; white-space: nowrap; }
.bk-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bk-next small { display: block; color: var(--muted); font-size: 12px; }
.bk-left { display: block; font-size: 36px; line-height: 1.05; color: #fff; }
.bk-bar { margin-top: 0; }
.bk-bar i { transition: width 1s linear; }
.bk-when { color: var(--muted); font-size: 12.5px; }
.bk.is-open { border-color: rgba(74, 222, 128, .4); }
.bk.is-open:hover { border-color: rgba(74, 222, 128, .65); }
.bk.is-open::before { background: linear-gradient(180deg, #86efac, #16a34a); }
.bk.is-open .bk-state { color: var(--ok); }
.bk.is-open .bk-state i { animation: live-pulse 2s infinite; }
.bk.is-open .bk-bar i { background: linear-gradient(90deg, #15803d, var(--ok)); }

.bk-key { margin-top: 14px; padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px 24px; align-items: center; }
.bk-key-head b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.bk-key-head small { color: var(--muted); font-size: 12.5px; }
.bk-key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-key-list li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); font-size: 13px; color: var(--muted); }
.bk-key-list li b { font-size: 20px; color: #fff; }
.bk-key-list li.is-open { color: #bbf7d0; border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.bk-key-list li.is-open b { color: var(--ok); }
.bk-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

@media (max-width: 1000px) { .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-key { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
    .bk-grid { gap: 10px; }
    .bk { padding: 14px 12px 12px 18px; gap: 10px; }
    .bk-code { font-size: 38px; }
    .bk-left { font-size: 28px; }
    .bk-state { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bk.is-open .bk-state i { animation: none; } .bk-bar i { transition: none; } }

/* ---------- Hộp xác nhận chuyển sang Steam (partials/steam-confirm, public/js/vcs-steam.js) ---------- */
.stc { position: fixed; inset: 0; z-index: 390; display: grid; place-items: center; padding: 16px; }
.stc[hidden] { display: none; }
.stc-back { position: absolute; inset: 0; background: rgba(2, 5, 9, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stc-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 28px 24px; background: linear-gradient(180deg, rgba(12, 20, 28, .98), rgba(7, 13, 18, .98)); border: 1px solid rgba(64, 213, 243, .38); border-radius: 12px; box-shadow: 0 26px 80px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06); animation: stc-in .2s ease-out; }
.stc-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #a5a8ad; cursor: pointer; transition: background .15s, color .15s; }
.stc-x svg { width: 20px; height: 20px; }
.stc-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.stc-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.stc-ico { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #1b2838; border: 1px solid #3b5a7a; color: #66c0f4; }
.stc-ico svg { width: 32px; height: 32px; }
.stc-head h2 { font-size: clamp(24px, 3.8vw, 29px); text-wrap: balance; }
.stc-head p, .stc-safe span, .stc-list li span, .stc-tip { text-wrap: pretty; }
.stc-head p { margin: 5px 0 0; color: #bcbfc4; font-size: 14px; line-height: 1.45; }
.stc-head p strong { color: #fff; font-weight: 600; }
.stc-safe { display: flex; align-items: center; gap: 14px; margin: 20px 0 16px; padding: 14px 16px; border-radius: 10px; background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .45); box-shadow: 0 0 28px rgba(74, 222, 128, .08); }
.stc-safe svg { flex: none; width: 38px; height: 38px; color: var(--ok); }
.stc-safe strong { display: block; font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; color: var(--ok); }
.stc-safe span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: #e3f6e9; }
.stc-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 11px; }
.stc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: #e3e6eb; }
.stc-list b, .stc-tip b { color: #fff; font-weight: 600; }
.stc-ck { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.stc-tip { margin: 0 0 20px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: #b5b8bd; font-size: 13px; line-height: 1.45; }
.stc-actions { display: flex; justify-content: flex-end; gap: 10px; }
.stc-actions .btn-ghost, .stc-actions .btn-steam { padding: 14px 20px; font-size: 14px; }
.stc-actions .btn-steam.is-busy { opacity: .75; cursor: progress; pointer-events: none; }
html.stc-lock { overflow: hidden; scrollbar-gutter: stable; }
@keyframes stc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
    .stc { padding: 10px; }
    .stc-box { padding: 24px 18px 18px; }
    .stc-safe strong { font-size: 24px; }
    .stc-actions { flex-direction: column-reverse; }
    .stc-actions > * { width: 100%; }
}

/* ---------- Thanh menu trên cùng ẩn khi cuộn xuống, hiện khi cuộn lên (public/js/vcs-fx.js) ---------- */
.vh { transition: transform .32s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
html.vh-hide .vh { transform: translateY(calc(-100% - 24px)); }

/* Các khối dính dưới thanh menu (danh mục sản phẩm, khung mua hàng, bảng bên) trượt lên sát mép trên khi menu ẩn. */
.chips--sticky, .buybox, .lb-side { transition: top .32s cubic-bezier(.4, 0, .2, 1); }
html.vh-hide .chips--sticky { top: 10px; }
html.vh-hide .buybox, html.vh-hide .lb-side { top: 14px; }

/* ===== Gacha: dải quay kiểu mở rương CS2 ===== */
.gc { --cw: 150px; --cgap: 8px; }
.gc-intro { margin-bottom: 18px; }
.gc-lead { color: var(--muted); max-width: 62ch; margin: -8px 0 0; }
.gc-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 10px; }

.gc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 22px; align-items: stretch; margin-bottom: 30px; }

.gc-stage { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .09); background: radial-gradient(120% 140% at 50% 0%, rgba(11, 143, 176, .16), rgba(7, 13, 18, .92) 62%); overflow: hidden; }
.gc-viewport { position: relative; flex: 1 1 auto; min-height: 236px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.gc-strip { position: absolute; top: 0; left: 0; bottom: 0; display: flex; align-items: center; padding-left: 0; will-change: transform; }

.gc-cell { --rc: #9ca3af; flex: 0 0 var(--cw); width: var(--cw); margin-right: var(--cgap); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .35)); border-bottom: 3px solid var(--rc); box-shadow: inset 0 -26px 28px -22px var(--rc); transition: transform .18s, opacity .35s, filter .35s; user-select: none; }
.gc-cell__name { width: 100%; text-align: center; font-size: 12px; line-height: 1.25; color: #dcdcdc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.gc-cell.is-under { transform: translateY(-4px) scale(1.04); }
.gc-cell.is-won { transform: scale(1.1); box-shadow: 0 0 0 2px var(--rc), 0 0 34px 6px var(--rc); position: relative; z-index: 2; }
.gc[data-gc-state="landed"] .gc-cell:not(.is-won),
.gc[data-gc-state="revealed"] .gc-cell:not(.is-won) { opacity: .28; filter: grayscale(.7); }

.gc-tile { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)); overflow: hidden; }
.gc-tile img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.gc-tile--sm { width: 56px; height: 56px; flex: none; }
.gc-crate { width: 62%; height: 62%; color: var(--rc, #9ca3af); filter: drop-shadow(0 0 8px var(--rc, transparent)); }

.gc-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, #fde68a, #facc15 50%, #fde68a); box-shadow: 0 0 14px 2px rgba(250, 204, 21, .55); pointer-events: none; z-index: 3; }
.gc-marker::before, .gc-marker::after { content: ""; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.gc-marker::before { top: 0; border-top-color: #facc15; }
.gc-marker::after { bottom: 0; border-bottom-color: #facc15; }
.gc-marker.is-tick { animation: gc-tick .16s ease-out; }
@keyframes gc-tick { 0% { box-shadow: 0 0 26px 7px rgba(250, 204, 21, .95); } 100% { box-shadow: 0 0 14px 2px rgba(250, 204, 21, .55); } }

/* Màn kết quả đè lên dải quay */
.gc-reveal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 14px; background: rgba(3, 8, 12, .78); backdrop-filter: blur(4px); animation: gc-fade .3s ease-out; }
.gc-reveal[hidden] { display: none; }
@keyframes gc-fade { from { opacity: 0; } to { opacity: 1; } }
.gc-reveal__card { --rc: #9ca3af; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 360px; width: 100%; text-align: center; padding: 16px 18px 18px; border-radius: 12px; border: 1px solid var(--rc); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--rc) 30%, transparent), rgba(8, 14, 20, .96) 70%); box-shadow: 0 0 40px -6px var(--rc); animation: gc-pop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes gc-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gc-reveal__art { width: 104px; height: 104px; display: grid; place-items: center; color: var(--rc); }
.gc-reveal__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 14px var(--rc)); }
.gc-reveal__art .gc-crate { width: 100%; height: 100%; }
.gc-reveal__rarity { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: var(--rc); }
.gc-reveal__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1.05; }
.gc-reveal__pity { font-size: 12px; color: var(--gold); border: 1px solid rgba(250, 204, 21, .45); border-radius: 99px; padding: 2px 10px; }
.gc-reveal__msg { color: #cfcfcf; font-size: 13px; margin: 4px 0 8px; }
.gc-reveal__card.is-warn .gc-reveal__msg { color: var(--warn); }

/* Cột mua */
.gc-buy { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; border-radius: 12px; background: rgba(10, 17, 25, .58); border: 1px solid rgba(255, 255, 255, .09); }
.gc-buy__name { font-size: 32px; }
.gc-buy__desc { color: var(--muted); font-size: 14px; margin: -4px 0 0; }
.gc-buy__stats { display: grid; gap: 8px; margin: 0; }
.gc-buy__stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.gc-buy__stats dt { font-weight: 400; color: var(--muted); font-size: 13px; }
.gc-buy__stats dd { margin: 0; font-size: 20px; }
.gc-buy__cta { margin-top: 2px; }
.gc-btn { min-height: 46px; font-size: 15px; }
.gc.is-busy .gc-btn { opacity: .75; cursor: progress; }
.gc-buy__err { margin: 0; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(11, 143, 176, .5); background: rgba(11, 143, 176, .12); color: #caf5fe; font-size: 13px; }
.gc-buy__err[hidden] { display: none; }

.gc-pity p { margin: 6px 0 0; font-size: 13px; color: #d4d4d4; }
.gc-pity__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gc-pity__bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #f59e0b, #40d5f3); border-radius: inherit; transition: width .4s; }

/* Bảng tỉ lệ */
.gc-panel { padding: 22px 24px; border-radius: 10px; background: rgba(10, 17, 25, .58); border: 1px solid rgba(255, 255, 255, .09); margin-bottom: 22px; }
.gc-panel .block-head h2 { font-size: 26px; }
.gc-odds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.gc-odd { --rc: #9ca3af; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 8px; background: rgba(255, 255, 255, .035); border-left: 3px solid var(--rc); }
.gc-odd__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gc-odd__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-odd__rar { font-size: 12px; color: var(--rc); }
.gc-odd__gift { font-size: 12px; color: var(--muted); }
.gc-odd__pct { font-size: 22px; color: #fff; white-space: nowrap; }
.gc-rule { margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .25); font-size: 13px; }
.gc-rule p { margin: 4px 0 0; color: #d4d4d4; }

/* Lịch sử */
.gc-lower { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.gc-lower .gc-panel { margin-bottom: 0; }
.gc-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 460px; overflow-y: auto; }
.gc-hist li { --rc: #9ca3af; display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gc-hist__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); flex: none; }
.gc-hist__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gc-hist__main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-hist small { color: var(--muted); font-size: 12px; }
.gc-hist__side { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; text-align: right; flex: none; }
.gc-st { font-size: 12px; font-weight: 600; }
.gc-st--ok { color: var(--ok); }
.gc-st--warn { color: var(--warn); }
.gc-st--muted { color: var(--muted); }

@media (max-width: 991px) {
    .gc-top { grid-template-columns: 1fr; }
    .gc-lower { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .gc { --cw: 118px; --cgap: 6px; }
    .gc-viewport { min-height: 200px; }
    .gc-tile { width: 68px; height: 68px; }
    .gc-panel { padding: 18px 16px; }
    .gc-reveal__name { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .gc-marker.is-tick, .gc-reveal, .gc-reveal__card { animation: none; }
    .gc-cell { transition: none; }
}

/* Gacha: quay 10 lần */
.gc-btn--ten { margin-top: 8px; }
.gc-buy__cta .gc-btn--ten:disabled { opacity: .5; cursor: not-allowed; }
.gc-reveal__list { list-style: none; margin: 6px 0 2px; padding: 0; width: 100%; max-height: 150px; overflow-y: auto; display: grid; gap: 3px; text-align: left; }
.gc-reveal__list[hidden] { display: none; }
.gc-reveal__list li { --rc: #9ca3af; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 5px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--rc); font-size: 13px; }
.gc-reveal__list li i { display: none; }
.gc-reveal__list li b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-reveal__list li span { color: var(--rc); font-size: 12px; white-space: nowrap; }
.gc-reveal { overflow-y: auto; }

/* Gacha: kho đồ và cập nhật tại chỗ */
.gc-hist[hidden], .gc-reveal__actions [hidden], .gc-badge[hidden] { display: none !important; }
.gc-st--gold { color: var(--gold); }
.gc-intro__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gc-inv-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.gc-badge { min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.gc-reveal__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gc-hist li.is-new { animation: gc-fade .5s ease-out; background: rgba(255, 255, 255, .05); }

.gc-inv { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gc-inv li { --rc: #9ca3af; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--rc); transition: opacity .3s, transform .3s; }
.gc-inv li.is-gone { opacity: 0; transform: scale(.96); }
.gc-inv__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.gc-inv__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-inv__text small { color: var(--muted); font-size: 12px; }
.gc-inv__rar { color: var(--rc); }
.gc-inv__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* Gacha: quay 10 lần hiện đủ mọi phần thưởng thành lưới nhỏ có ảnh, không cần cuộn */
.gc-reveal__list { max-height: none; overflow: visible; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.gc-reveal__list li { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 6px 4px; text-align: center; border-left: 0; border-bottom: 3px solid var(--rc); min-width: 0; }
.gc-reveal__list li b { flex: none; width: 100%; font-size: 11px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gc-reveal__list li em { font-style: normal; font-size: 10px; color: var(--rc); }
.gc-mini { width: 36px; height: 36px; display: grid; place-items: center; color: var(--rc); }
.gc-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gc-mini svg { width: 30px; height: 30px; }
.gc-reveal__card.is-many .gc-reveal__art { transform: scale(.7); margin: -14px 0; }
@media (max-width: 575px) { .gc-reveal__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .gc-mini { width: 28px; height: 28px; } }
.gc-reveal__card.is-many { padding-top: 12px; padding-bottom: 12px; gap: 4px; }
.gc-reveal__card.is-many .gc-reveal__art { transform: scale(.5); margin: -18px 0 -14px; }
.gc-reveal__card.is-many .gc-reveal__name { font-size: 22px; }
.gc-reveal__card.is-many .gc-reveal__msg { display: none; }
.gc-reveal__card.is-many.is-warn .gc-reveal__msg { display: block; font-size: 12px; margin: 2px 0; }
.gc-reveal__card.is-many .gc-reveal__list li { padding: 4px 3px; }
.gc-reveal__card.is-many .gc-reveal__art { margin: -24px 0 -20px; }
.gc-reveal__card.is-many .gc-reveal__list { margin: 4px 0 2px; }
.gc-reveal__card.is-many .gc-reveal__actions { margin-top: 2px; }

/* Gacha: hiệu ứng nhận thưởng — càng hiếm càng nhiều hiệu ứng (Hiếm < Sử thi < Huyền thoại < Thần thoại) */
.gc-reveal__card { position: relative; }
.gc-reveal { overflow-x: hidden; }
.gc-reveal__art { position: relative; }
.gc-reveal__art > * { position: relative; z-index: 1; }
.gc-fx { position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.gc-spark { position: absolute; left: 0; top: 0; width: var(--sz, 6px); height: var(--sz, 6px); margin: calc(var(--sz, 6px) / -2) 0 0 calc(var(--sz, 6px) / -2); border-radius: 50%; background: var(--sc, var(--rc)); box-shadow: 0 0 8px 2px var(--sc, var(--rc)); opacity: 0; animation: gc-spark var(--dur, 1.1s) cubic-bezier(.1, .7, .3, 1) var(--dl, 0s) forwards; }
@keyframes gc-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }
.gc-ring { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--rc); opacity: 0; animation: gc-ring 1.2s ease-out var(--dl, 0s) forwards; }
@keyframes gc-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(14); } }

/* Hiếm: quầng sáng thở nhẹ */
.gc-reveal[data-rarity="rare"] .gc-reveal__art img, .gc-reveal[data-rarity="rare"] .gc-reveal__art .gc-crate { animation: gc-breathe 2.4s ease-in-out infinite; }
@keyframes gc-breathe { 0%, 100% { filter: drop-shadow(0 0 8px var(--rc)); transform: scale(1); } 50% { filter: drop-shadow(0 0 20px var(--rc)); transform: scale(1.05); } }

/* Sử thi trở lên: tia sáng xoay sau vật phẩm */
.gc-reveal[data-rarity="epic"] .gc-reveal__art::before,
.gc-reveal[data-rarity="legendary"] .gc-reveal__art::before,
.gc-reveal[data-rarity="mythic"] .gc-reveal__art::before { content: ''; position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%; z-index: 0; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 55%, transparent) 0 8deg, transparent 8deg 24deg); -webkit-mask-image: radial-gradient(circle, #000 8%, transparent 68%); mask-image: radial-gradient(circle, #000 8%, transparent 68%); animation: gc-spin 14s linear infinite; }
.gc-reveal[data-rarity="legendary"] .gc-reveal__art::before { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation-duration: 9s; }
.gc-reveal[data-rarity="mythic"] .gc-reveal__art::before { width: 360px; height: 360px; margin: -180px 0 0 -180px; animation-duration: 6s; }
@keyframes gc-spin { to { transform: rotate(360deg); } }
.gc-reveal[data-rarity="epic"] .gc-reveal__art img, .gc-reveal[data-rarity="epic"] .gc-reveal__art .gc-crate { animation: gc-breathe 1.9s ease-in-out infinite; }

/* Sử thi trở lên: vệt sáng quét ngang thẻ */
.gc-reveal[data-rarity="epic"] .gc-reveal__card::after,
.gc-reveal[data-rarity="legendary"] .gc-reveal__card::after,
.gc-reveal[data-rarity="mythic"] .gc-reveal__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 250% 100%; animation: gc-sheen 2.6s ease-in-out .6s infinite; }
@keyframes gc-sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }

/* Huyền thoại: tên ánh vàng, thẻ tỏa sáng, chớp sáng toàn khung */
.gc-reveal[data-rarity="legendary"] .gc-reveal__name, .gc-reveal[data-rarity="mythic"] .gc-reveal__name { background: linear-gradient(100deg, var(--rc) 0%, #fff 40%, var(--rc) 60%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: gc-shine 2.2s linear infinite; }
@keyframes gc-shine { to { background-position: -220% 0; } }
.gc-reveal[data-rarity="legendary"] .gc-reveal__card, .gc-reveal[data-rarity="mythic"] .gc-reveal__card { animation: gc-pop .5s cubic-bezier(.2, 1.3, .4, 1), gc-aura 2s ease-in-out .5s infinite; }
@keyframes gc-aura { 0%, 100% { box-shadow: 0 0 40px -6px var(--rc); } 50% { box-shadow: 0 0 80px 4px var(--rc); } }
.gc-reveal[data-rarity="legendary"]::before, .gc-reveal[data-rarity="mythic"]::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rcx, #f59e0b) 75%, #fff) 0%, transparent 70%); opacity: 0; animation: gc-flash .9s ease-out; }
@keyframes gc-flash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* Thần thoại: viền lửa đỏ nhịp tim, rung khung, vòng xung kích */
.gc-reveal[data-rarity="mythic"] { background: radial-gradient(80% 80% at 50% 45%, rgba(10, 66, 86, .55), rgba(3, 8, 12, .88)); animation: gc-fade .3s ease-out, gc-heart 1.6s ease-in-out .4s infinite; }
@keyframes gc-heart { 0%, 100% { box-shadow: inset 0 0 40px 4px rgba(64, 213, 243, .25); } 50% { box-shadow: inset 0 0 110px 14px rgba(64, 213, 243, .55); } }
.gc-reveal[data-rarity="mythic"] .gc-reveal__rarity { font-size: 18px; letter-spacing: .2em; text-shadow: 0 0 14px var(--rc); animation: gc-rarity 1.2s ease-in-out infinite; }
@keyframes gc-rarity { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.gc-reveal[data-rarity="mythic"] .gc-reveal__name { font-size: 32px; }
.gc-reveal[data-rarity="mythic"] .gc-reveal__art img, .gc-reveal[data-rarity="mythic"] .gc-reveal__art .gc-crate { animation: gc-breathe 1.1s ease-in-out infinite; }
.gc-stage.is-shake { animation: gc-shake .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes gc-shake { 10%, 90% { transform: translate3d(-2px, 0, 0); } 20%, 80% { transform: translate3d(4px, 1px, 0); } 30%, 50%, 70% { transform: translate3d(-7px, -1px, 0); } 40%, 60% { transform: translate3d(7px, 1px, 0); } }
.gc-reveal__card.is-many .gc-reveal__art::before { display: none; }
@media (prefers-reduced-motion: reduce) {
    .gc-spark, .gc-ring, .gc-reveal::before, .gc-reveal__card::after, .gc-reveal__art::before, .gc-reveal__art img, .gc-reveal__art .gc-crate, .gc-reveal__name, .gc-reveal__rarity, .gc-stage.is-shake { animation: none !important; }
    .gc-reveal[data-rarity="mythic"] { animation: none; }
}

/* Gacha: dải quay trải hết bề ngang, tên gói + giá + nút quay nằm bên dưới */
.gc-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gc-viewport { min-height: 280px; }
.gc-buy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px 36px; align-items: start; }
.gc-buy__info, .gc-buy__act { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gc-buy__act .gc-buy__cta { margin-top: 0; }
@media (max-width: 767px) { .gc-buy { grid-template-columns: minmax(0, 1fr); } .gc-viewport { min-height: 236px; } }
@media (min-width: 900px) {
    .gc-reveal__card.is-many { max-width: 860px; }
    .gc-reveal__card.is-many .gc-reveal__list { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (min-width: 900px) { .gc-viewport { min-height: 320px; } }

/* Gacha: popup toàn màn hình khi trúng Thần thoại; phần giải thích ở cuối trang */
.gc-reveal.is-full { position: fixed; inset: 0; z-index: 1200; padding: 24px; overflow-y: auto; background: radial-gradient(90% 90% at 50% 45%, rgba(10, 66, 86, .6), rgba(4, 2, 3, .94)); }
.gc-reveal.is-full .gc-reveal__card { max-width: 640px; padding: 28px 30px 30px; gap: 10px; margin: auto; }
.gc-reveal.is-full .gc-reveal__art { width: 210px; height: 210px; }
.gc-reveal.is-full .gc-reveal__name { font-size: 46px; }
.gc-reveal.is-full .gc-reveal__rarity { font-size: 22px; }
.gc-reveal.is-full .gc-reveal__msg { font-size: 15px; }
.gc-reveal.is-full[data-rarity="mythic"] .gc-reveal__art::before { width: 620px; height: 620px; margin: -310px 0 0 -310px; }
.gc-reveal.is-full .gc-reveal__card.is-many { max-width: 900px; }
.gc-reveal.is-full .gc-reveal__card.is-many .gc-reveal__art { transform: scale(.55); margin: -40px 0 -34px; }
.gc-reveal.is-full .gc-reveal__card.is-many .gc-reveal__name { font-size: 30px; }
.gc-reveal.is-full .gc-reveal__card.is-many .gc-mini { width: 46px; height: 46px; }
.gc-reveal.is-full .gc-reveal__card.is-many .gc-reveal__list li b { font-size: 12px; }
.gc-reveal__card.is-shake { animation: gc-pop .5s cubic-bezier(.2, 1.3, .4, 1), gc-shake .6s .1s cubic-bezier(.36, .07, .19, .97), gc-aura 2s ease-in-out .7s infinite; }
@media (max-width: 575px) { .gc-reveal.is-full .gc-reveal__art { width: 150px; height: 150px; } .gc-reveal.is-full .gc-reveal__name { font-size: 32px; } }
@media (min-width: 900px) { .gc-viewport { min-height: 340px; } }
.gc-howto { margin-top: 22px; }
.gc-howto__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #d4d4d4; font-size: 14px; }

/* Phần thưởng thường: không có nút Đóng (bấm quay tiếp là tự đóng); chỉ popup toàn màn hình Thần thoại mới có nút Đóng */
.gc-reveal [data-gc-close] { display: none; }


/* ===== Top 1-2-3: viền kim tuyến =====
   Viền phát sáng + hạt bay đủ hướng vẽ bằng canvas (public/js/vcs-podium-ring.js), canvas rộng hơn khung 56px mỗi phía.
   Thêm quầng sáng mờ, số hạng ánh kim chạy và vương miện. Tắt chuyển động khi người dùng chọn giảm chuyển động. */
.podium { gap: 30px !important; padding-inline: 18px; }
.pod { position: relative; isolation: isolate; overflow: visible; border-radius: 18px; transition: transform .25s ease; border-color: transparent !important; }
.pod:hover { transform: translateY(-4px); }
.pod-1 { --fx: #facc15; --fx-soft: rgba(250, 204, 21, .55); --shine: #fff7c2; }
.pod-2 { --fx: #9fd2ff; --fx-soft: rgba(159, 210, 255, .5); --shine: #ffffff; }
.pod-3 { --fx: #f08a3c; --fx-soft: rgba(240, 138, 60, .5); --shine: #ffe2c4; }
.pod-fx { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.fx-aura { position: absolute; inset: -10px; border-radius: inherit; background: radial-gradient(closest-side, var(--fx-soft), transparent 100%); will-change: opacity; opacity: .22; z-index: -1; animation: fx-pulse 3.6s ease-in-out infinite; }
.pod, .pod.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
.pod-1 .fx-aura { opacity: .34; animation-duration: 2.8s; }
.pod-ring { position: absolute; left: -56px; top: -56px; width: calc(100% + 112px); height: calc(100% + 112px); pointer-events: none; z-index: 3; }
.pod::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%); background-size: 250% 100%; background-position: 130% 0; transition: background-position .8s ease; }
.pod:hover::after { background-position: -30% 0; }
.pod .pod-rank { background: linear-gradient(110deg, var(--fx) 38%, var(--shine) 50%, var(--fx) 62%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: fx-shine 3.4s linear infinite; text-shadow: none; filter: drop-shadow(0 0 10px var(--fx-soft)); }
.pod-2 .pod-rank { animation-delay: -1.1s; } .pod-3 .pod-rank { animation-delay: -2.2s; }
.pod .lb-title { color: var(--fx); border-color: var(--fx-soft); background: color-mix(in srgb, var(--fx) 10%, transparent); }
.pod-1 b:not(.pod-val) { text-shadow: 0 0 14px var(--fx-soft); }
.pod-crown { position: absolute; left: 50%; top: -17px; width: 34px; height: 26px; transform: translateX(-50%); color: var(--fx); filter: drop-shadow(0 0 8px var(--fx)); animation: fx-bob 2.6s ease-in-out infinite; z-index: 4; }
@keyframes fx-pulse { 0%, 100% { opacity: .15; } 50% { opacity: .38; } }
@keyframes fx-shine { from { background-position: 160% 0; } to { background-position: -100% 0; } }
@keyframes fx-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@media (max-width: 640px) { .podium { gap: 14px !important; padding-inline: 8px; } .pod { padding-inline: 4px; } .pod-crown { width: 28px; top: -14px; } }
@media (prefers-reduced-motion: reduce) {
    .fx-aura, .pod .pod-rank, .pod-crown { animation: none !important; }
    .pod:hover { transform: none; }
}

/* ===== Luật máy chủ (trang /luat-le): dữ liệu ở resources/rules/vcs-rules.txt, JS ở public/js/vcs-rules.js ===== */
.rb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.rb-fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.rb-fact:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .22); }
.rb-fact b { font-family: var(--font-display); font-size: 19px; letter-spacing: .02em; text-transform: uppercase; color: var(--gold, #facc15); }
.rb-fact span { color: #bfc2c7; font-size: 13.5px; line-height: 1.55; }
.rb { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.rb-side-in { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 110px); }
.rb-search input { width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; color: #fff; padding: 9px 12px; font-size: 14px; }
.rb-search input:focus { outline: 2px solid var(--red-hover, #40d5f3); outline-offset: 1px; }
.rb-filter { display: flex; gap: 6px; }
.rb-filter button, .rb-tools button { flex: 1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #cccfd4; border-radius: 999px; padding: 6px 8px; font-size: 12.5px; cursor: pointer; }
.rb-filter button.is-on { background: var(--red, #0b6f8a); border-color: transparent; color: #fff; }
.rb-toc { display: flex; flex-direction: column; gap: 2px; overflow: auto; padding-right: 4px; }
.rb-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: #bfc2c7; text-decoration: none; font-size: 13.5px; line-height: 1.35; border-left: 2px solid transparent; }
.rb-toc a i { font-style: normal; font-family: var(--font-display); font-weight: 800; min-width: 18px; color: var(--red-hover, #40d5f3); }
.rb-toc a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rb-toc a.is-cur { background: rgba(255, 255, 255, .07); color: #fff; border-left-color: var(--red-hover, #40d5f3); }
.rb-toc-x i { color: var(--gold, #facc15); }
.rb-tools { display: flex; gap: 6px; }
.rb-main { min-width: 0; }
.rb-sec { margin-bottom: 26px; scroll-margin-top: 90px; }
.rb-sec[hidden], .rb-g[hidden] { display: none; }
.rb-sec-h { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.rb-no { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; background: var(--red, #0b6f8a); color: #fff; border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.rb-no:empty { display: none; }
.rb-sec-h h2 { margin: 0; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.rb-g { margin: 0 0 10px; padding: 0; scroll-margin-top: 90px; }
.rb-g summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.rb-g summary::-webkit-details-marker { display: none; }
.rb-gno { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--red-hover, #40d5f3); min-width: 40px; }
.rb-gt { flex: 1; font-weight: 600; font-size: 16px; color: #fff; }
.rb-chev { width: 9px; height: 9px; border-right: 2px solid #aaadb2; border-bottom: 2px solid #aaadb2; transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.rb-g[open] .rb-chev { transform: rotate(-135deg); }
.rb-list { list-style: none; margin: 0; padding: 2px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.rb-i { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; color: #cdd0d5; font-size: 14.5px; line-height: 1.65; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.rb-i:last-child { border-bottom: 0; }
.rb-ic { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.rb-allow .rb-ic { background: rgba(74, 222, 128, .16); color: #4ade80; } .rb-allow .rb-ic::before { content: "\2713"; }
.rb-deny .rb-ic { background: rgba(110, 228, 251, .16); color: #6ee4fb; } .rb-deny .rb-ic::before { content: "\2715"; }
.rb-note .rb-ic { background: rgba(250, 204, 21, .14); color: #facc15; } .rb-note .rb-ic::before { content: "i"; font-family: Georgia, serif; font-style: italic; }
.rb-allow .rb-tx { color: #e6f6ec; } .rb-deny .rb-tx { color: #e4e7ec; }
.rb-text { padding-left: 31px; }
.rb-sub { margin: 14px 0 2px; padding: 6px 12px; border-left: 3px solid var(--gold, #facc15); background: rgba(250, 204, 21, .07); color: #fff; font-weight: 600; font-size: 14.5px; border-radius: 0 6px 6px 0; }
.rb-ref { color: var(--red-hover, #40d5f3); text-decoration: underline; text-underline-offset: 2px; }
.rb-ref:hover { color: #fff; }
.rb-empty { padding: 18px; text-align: center; color: var(--muted); }
.rb mark { background: rgba(250, 204, 21, .3); color: #fff; border-radius: 3px; padding: 0 1px; }
@media (max-width: 991px) {
    .rb { grid-template-columns: minmax(0, 1fr); }
    .rb-side-in { position: static; max-height: none; }
    .rb-toc { flex-direction: row; flex-wrap: wrap; gap: 6px; overflow: visible; }
    .rb-toc a { border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 5px 11px; }
    .rb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .rb-facts { grid-template-columns: minmax(0, 1fr); }
    .rb-sec-h h2 { font-size: 21px; }
    .rb-g summary { padding: 12px; } .rb-list { padding-inline: 12px; }
}

/* Mục lục luật + ô tìm kiếm dính theo cuộn trang. Khi menu trên ẩn đi (cuộn xuống) thì trượt lên sát mép, giống các khối dính khác. */
.rb-side { align-self: stretch; }
.rb-side-in { top: 96px; transition: top .32s cubic-bezier(.4, 0, .2, 1); }
html.vh-hide .rb-side-in { top: 14px; }
@media (max-width: 991px) {
    .rb { display: block; }
    .rb-side, .rb-side-in { display: contents; }
    /* Màn hình hẹp: chỉ ô tìm kiếm và nút lọc dính ở mép trên, mục lục dạng nút nằm dưới theo trang. */
    .rb-bar { position: sticky; top: 96px; z-index: 30; display: flex; flex-direction: column; gap: 8px; padding: 10px; margin: 0 -10px; background: rgba(7, 13, 18, .94); backdrop-filter: blur(10px); border-radius: 10px; transition: top .32s cubic-bezier(.4, 0, .2, 1); }
    html.vh-hide .rb-bar { top: 10px; }
}

/* Chỉnh lại khung tìm kiếm/nút lọc của trang luật cho đồng bộ viền, bo góc, màu với phần còn lại của web (.field, .chip) và đặt dính ngay dưới menu trên. */
.rb-side-in { top: calc(var(--head-h, 96px) + 14px); gap: 16px; }
html.vh-hide .rb-side-in { top: 14px; }
.rb-bar { display: flex; flex-direction: column; gap: 12px; }
.rb-search input { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; padding: 11px 14px; font-size: 14px; }
.rb-search input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: var(--raised); }
.rb-search input::placeholder { color: #6f6f6f; }
.rb-filter { gap: 8px; }
.rb-filter button, .rb-tools button { flex: 1; padding: 8px 10px; font-size: 13px; font-weight: 500; color: #bdbdbd; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; transition: .18s; }
.rb-filter button:hover, .rb-tools button:hover { color: #fff; border-color: var(--line-strong); }
.rb-filter button.is-on { color: #fff; background: var(--red); border-color: var(--red); }
.rb-tools { gap: 8px; }
@media (max-width: 991px) {
    .rb-bar { top: calc(var(--head-h, 96px) + 10px); padding: 12px; margin: 0 -12px; background: rgba(6, 11, 17, .95); border: 1px solid var(--line); border-radius: 6px; }
    html.vh-hide .rb-bar { top: 10px; }
}


/* v10 (rút gọn): chỉ giữ nền các mục trong suốt kiểu "kính" (viền, nút, bo góc giữ như cũ) */
body[data-layout="shop"] { --surface: rgba(7, 13, 18, .38); --raised: rgba(11, 19, 26, .5); }
body[data-layout="shop"] :is(.glass, .cut, .faq details, .vf, .how, .gc-panel):not(.pod) { background: var(--surface); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
body[data-layout="shop"] .vh { background: rgba(5, 10, 15, .34); }
@media (prefers-reduced-transparency: reduce) {
    body[data-layout="shop"] { --surface: rgba(7, 13, 18, .9); --raised: rgba(11, 19, 26, .94); }
}

/* Trang chủ: chỉ còn 2 bước */
.steps3:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .steps3:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr; } }

/* Đổi màu chủ đạo sang xanh neon/tím (cyberpunk): ảnh nền hero gốc màu đỏ nên xoay màu sang xanh lam */
.hero-art img { filter: hue-rotate(185deg) saturate(.95) brightness(.92); }

/* =====================================================================
   v12: cyberpunk — nút cắt góc có viền neon xanh→tím, thẻ có khung góc "HUD", hoạ tiết lưới chấm,
   tiêu đề có đường mạch, nền có lưới + vạch quét. Không dùng bóng đổ ngoài (clip-path sẽ cắt mất).
   ===================================================================== */
:root { --nc: #22d3ee; --np: #d946ef; --cut: 10px; }

/* ---- Nút chính: cắt chéo 2 góc, viền gradient, nền vạch quét, vệt sáng chạy qua khi chỉ chuột ---- */
.btn-vcs {
    position: relative; isolation: isolate; overflow: visible;
    background: linear-gradient(135deg, #67e8f9, #d946ef);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    padding: 13px 26px; color: #fff; letter-spacing: .03em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    transition: filter .2s, background .2s;
}
.btn-vcs::before {
    content: ""; position: absolute; inset: 1.5px; z-index: -1;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 3px), linear-gradient(135deg, #0b8fb0, #1d4ed8 55%, #6d28d9);
    clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.btn-vcs::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .55s ease;
}
.btn-vcs:hover { background: linear-gradient(135deg, #a5f3fc, #f0abfc); filter: brightness(1.12); color: #fff; }
.btn-vcs:hover::after { left: 130%; }
.btn-vcs:focus-visible { background: #fff; box-shadow: none; }
.btn-vcs[disabled], .btn-vcs.is-disabled { background: rgba(255, 255, 255, .14); filter: none; text-shadow: none; }
.btn-vcs[disabled]::before, .btn-vcs.is-disabled::before { background: #0c141c; }
.btn-vcs[disabled]::after, .btn-vcs.is-disabled::after { display: none; }

/* ---- Nút viền: khung neon mảnh, nền tối, cắt góc ---- */
.btn-ghost {
    position: relative; isolation: isolate; border: 0; color: #dff7ff;
    background: linear-gradient(135deg, rgba(103, 232, 249, .6), rgba(217, 70, 239, .5));
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-ghost::before {
    content: ""; position: absolute; inset: 1px; z-index: -1; background: rgba(6, 13, 21, .94);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.btn-ghost:hover { background: linear-gradient(135deg, #67e8f9, #d946ef); color: #fff; }
.btn-ghost:hover::before { background: rgba(10, 34, 50, .9); }

/* Nút Discord / Steam: cắt góc cùng kiểu */
.btn-discord, .btn-steam { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); border-radius: 0; box-shadow: none; }

/* ---- Thẻ: khung góc HUD (4 góc, 2 màu) + lưới chấm mờ. Rê chuột thì khung góc dài ra. ---- */
html body .glass:not(.pod):not(.cut), html body .cut:not(.pod):not(.pod) {
    background-origin: border-box;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
    transition: background-size .3s ease, border-color .25s;
}
html body .glass:not(.pod):not(.cut) {
    background-image:
        linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)),
        radial-gradient(rgba(34, 211, 238, .09) 1px, transparent 1.4px);
    background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 18px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 0;
}
html body .glass:not(.pod):not(.cut):hover { background-size: 34px 2px, 2px 34px, 34px 2px, 2px 34px, 34px 2px, 2px 34px, 34px 2px, 2px 34px, 18px 18px; }
/* Thẻ có góc xéo (.cut): bỏ khung góc dưới-phải vì đã có góc cắt */
html body .cut:not(.pod):not(.pod) {
    background-image:
        linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(transparent, transparent), linear-gradient(transparent, transparent),
        radial-gradient(rgba(34, 211, 238, .09) 1px, transparent 1.4px);
    background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 0 0, 0 0, 18px 18px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 0;
}
html body .cut:not(.pod):not(.pod):hover { background-size: 34px 2px, 2px 34px, 34px 2px, 2px 34px, 34px 2px, 2px 34px, 0 0, 0 0, 18px 18px; }
html body .glass:not(.pod):hover, html body .cut:not(.pod):not(.pod):hover { border-color: rgba(34, 211, 238, .55); }

/* ---- Tiêu đề mục: vạch gradient + đường mạch có chấm phía sau ---- */
.block-head h2::before { background: linear-gradient(180deg, #22d3ee, #d946ef); box-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.block-head h2::after {
    content: ""; display: inline-block; width: 90px; height: 8px; margin-left: 14px; vertical-align: middle;
    background:
        radial-gradient(circle at 4px 50%, #22d3ee 3px, transparent 3.5px),
        radial-gradient(circle at calc(100% - 4px) 50%, #d946ef 3px, transparent 3.5px),
        linear-gradient(90deg, transparent 8px, rgba(34, 211, 238, .8) 8px, rgba(217, 70, 239, .8) calc(100% - 8px), transparent calc(100% - 8px)) center / 100% 1px no-repeat;
}

/* ---- Thanh menu: vuông vức, mục chọn có thanh neon dưới + khung góc ---- */
body[data-layout="shop"] .vh-nav a { border-radius: 2px; position: relative; }
body[data-layout="shop"] .vh-nav a.is-active {
    background-color: rgba(34, 211, 238, .1);
    background-image: linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np));
    background-size: 9px 2px, 2px 9px, 9px 2px, 2px 9px; background-position: 0 0, 0 0, 100% 100%, 100% 100%; background-repeat: no-repeat;
    box-shadow: inset 0 -2px 0 #22d3ee; border-color: rgba(34, 211, 238, .5);
}

/* ---- Nhãn lọc & ô nhập ---- */
.chip { border-radius: 2px; }
.chip.is-active { background: linear-gradient(135deg, #0b8fb0, #1d4ed8 60%, #6d28d9); border-color: rgba(103, 232, 249, .7); }
.field:focus { border-color: #22d3ee; box-shadow: 0 2px 0 #22d3ee, 0 0 0 3px rgba(34, 211, 238, .14); }

/* ---- Nền: lưới mờ + vạch quét, cố định, rất nhẹ ---- */
body[data-layout="shop"]::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
        linear-gradient(rgba(34, 211, 238, .04) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(34, 211, 238, .04) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
}
@media (prefers-reduced-motion: reduce) { .btn-vcs::after { display: none; } }

/* =====================================================================
   v13: đồng bộ toàn bộ nút + viền
   - Nút hành động (chính, Discord, Steam, Sao chép, lên đầu trang): cùng khung cắt góc + viền gradient xanh→tím.
   - Ô/nhãn/lọc/thẻ nhỏ: cùng bo 2px, cùng màu viền.
   - Thẻ, khung lớn: cùng bo 4px, cùng màu viền; rê chuột thì viền sáng lên.
   ===================================================================== */
:root { --bd: rgba(34, 211, 238, .28); --bd-hi: rgba(34, 211, 238, .62); --r-box: 4px; --r-ctl: 2px; }

/* ---- Nút hành động: chung một cấu trúc, khác nhau ở màu nền (--fill) ---- */
.btn-vcs, .btn-discord, .btn-steam {
    --fill: linear-gradient(135deg, #0b8fb0, #1d4ed8 55%, #6d28d9);
    position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: linear-gradient(135deg, #67e8f9, #d946ef); color: #fff; letter-spacing: .03em; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    padding: 13px 26px; transition: filter .2s, background .2s;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.btn-discord { --fill: linear-gradient(#4651d6, #4651d6); }
.btn-steam { --fill: linear-gradient(#16222f, #16222f); }
.btn-vcs::before, .btn-discord::before, .btn-steam::before {
    content: ""; position: absolute; inset: 1.5px; z-index: -1;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px), var(--fill);
    clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
}
.btn-vcs::after, .btn-discord::after, .btn-steam::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 35%; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent); transform: skewX(-20deg); transition: left .55s ease;
}
.btn-vcs:hover, .btn-discord:hover, .btn-steam:hover { background: linear-gradient(135deg, #a5f3fc, #f0abfc); filter: brightness(1.12); color: #fff; }
.btn-vcs:hover::after, .btn-discord:hover::after, .btn-steam:hover::after { left: 130%; }
.btn-vcs:focus-visible, .btn-discord:focus-visible, .btn-steam:focus-visible { background: #fff; outline: 0; }
.btn-vcs:active, .btn-discord:active, .btn-steam:active { transform: translateY(1px); }
.btn-sm { --cut: 7px; padding: 9px 16px; }
.btn-steam.btn-lg-v { padding: 16px 26px; }

/* ---- Nút phụ: Viền neon + nền tối; Sao chép cùng kiểu, nhỏ hơn ---- */
.btn-ghost, .copy, .srv-copy .copy {
    position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: linear-gradient(135deg, rgba(103, 232, 249, .6), rgba(217, 70, 239, .5)) !important; color: #dff7ff !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.copy, .srv-copy .copy { clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); padding: 7px 14px; font-weight: 600; }
.btn-ghost::before, .copy::before, .srv-copy .copy::before {
    content: ""; position: absolute; inset: 1px; z-index: -1; background: rgba(6, 13, 21, .94);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.copy::before, .srv-copy .copy::before { clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.btn-ghost:hover, .copy:hover, .srv-copy .copy:hover { background: linear-gradient(135deg, #67e8f9, #d946ef) !important; color: #fff !important; }
.btn-ghost:hover::before, .copy:hover::before, .srv-copy .copy:hover::before { background: rgba(10, 34, 50, .9); }

/* Nút lên đầu trang */
.to-top { border-radius: 0 !important; background: linear-gradient(135deg, #0b8fb0, #6d28d9); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }

/* ---- Ô, nhãn, lọc, thẻ nhỏ: cùng bo + cùng màu viền ---- */
.chip, .lb-groups .chip, .lb-tabs .chip, .tag, .ck-tag, .wallet-chip, .rb-filter button, .rb-tools button, .media-tabs button, .rb-toc a,
.pill, .live, .lb-title, .gc-badge, .pagination .page-link, .check, .field, .form-control, .form-select, .rb-search input, .vh-nav a { border-radius: var(--r-ctl) !important; }
.chip, .wallet-chip, .field, .form-control, .form-select, .rb-search input, .rb-filter button, .rb-tools button, .media-tabs button, .tag, .vh-nav a:not(.is-active) { border-color: var(--bd); }
.chip:not(.is-active):hover, .wallet-chip:hover, .rb-filter button:not(.is-on):hover, .rb-tools button:hover, .media-tabs button:hover, .vh-nav a:not(.is-active):hover { border-color: var(--bd-hi); }
.field:focus, .form-control:focus, .form-select:focus, .rb-search input:focus { border-color: #22d3ee; }

/* ---- Thẻ, khung lớn: cùng bo, cùng viền, rê chuột sáng lên ---- */
.glass:not(.pod), .cut:not(.pod), .ck-card, .ck-panel, .ck-hero, .ck-hero__art, .gc-panel, .gc-stage, .gc-buy, .gc-empty, .gc-inv li,
.gc-reveal__card, .stc-box, .stc-safe, .vf, .vh, .rb-bar, .chips--sticky, .empty, .stat, .faq details, .preview-box, .toast-v, .notice,
.gc-cell, .gc-odd, .gc-rule, .gc-tile, .bk-key-list li, .stc-tip, img.ck-art { border-radius: var(--r-box) !important; }
.glass:not(.pod), .ck-card, .ck-panel, .gc-panel, .gc-stage, .gc-buy, .gc-empty, .stat, .vf, .vh, .rb-bar, .faq details, .stc-box, .gc-cell, .gc-tile { border-color: var(--bd); }
.glass:not(.pod):hover, .ck-card:hover, .gc-panel:hover, .stat:hover, .faq details:hover, .faq details[open] { border-color: var(--bd-hi); }

/* Khung góc HUD + lưới chấm cho các khung lớn còn lại (cùng kiểu với thẻ .glass) */
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod) {
    background-origin: border-box;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
    background-image:
        linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(var(--np), var(--np)), linear-gradient(var(--np), var(--np)),
        linear-gradient(var(--nc), var(--nc)), linear-gradient(var(--nc), var(--nc)),
        radial-gradient(rgba(34, 211, 238, .09) 1px, transparent 1.4px);
    background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 2px, 2px 18px, 18px 18px;
    background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%, 0 0;
    transition: background-size .3s ease, border-color .25s;
}
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod):hover { background-size: 34px 2px, 2px 34px, 34px 2px, 2px 34px, 34px 2px, 2px 34px, 34px 2px, 2px 34px, 18px 18px; }

/* v14: bỏ khung 4 góc màu xanh/tím; giữ lại lưới chấm mờ và viền đồng bộ */
html body .glass:not(.pod):not(.cut), html body .cut:not(.pod):not(.pod),
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod),
html body .glass:not(.pod):not(.cut):hover, html body .cut:not(.pod):not(.pod):hover,
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod):hover {
    background-image: radial-gradient(rgba(34, 211, 238, .09) 1px, transparent 1.4px);
    background-size: 18px 18px; background-position: 0 0; background-repeat: repeat; transition: border-color .25s;
}
body[data-layout="shop"] .vh-nav a.is-active { background-image: none; }

/* =====================================================================
   v15: thẻ kiểu "mica" — nền xám tối, ánh sáng mờ ở một góc, viền trắng trong mờ, bo tròn lớn
   ===================================================================== */
:root { --bd: rgba(255, 255, 255, .09); --bd-hi: rgba(255, 255, 255, .22); --r-box: 18px; --r-ctl: 9px; }
.gc-cell, .gc-odd, .gc-rule, .gc-tile, .bk-key-list li, .stc-tip, img.ck-art { border-radius: 12px !important; }

html body .glass:not(.pod):not(.cut), html body .cut:not(.pod):not(.pod),
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod) {
    background-color: rgba(28, 30, 34, .6);
    background-image: radial-gradient(ellipse 75% 70% at 92% 108%, rgba(94, 205, 215, .26), rgba(94, 205, 215, .08) 45%, transparent 72%);
    background-size: 100% 100%; background-position: 0 0; background-repeat: no-repeat;
    border: 1px solid var(--bd) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: border-color .25s, background-color .25s;
}
/* xen kẽ góc sáng cho đỡ đơn điệu */
html body .glass:not(.pod):not(.cut):nth-child(even) { background-image: radial-gradient(ellipse 75% 70% at 8% -8%, rgba(167, 139, 250, .22), rgba(167, 139, 250, .07) 45%, transparent 72%); }
html body .glass:not(.pod):not(.cut):hover, html body .cut:not(.pod):not(.pod):hover,
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod):hover { border-color: var(--bd-hi) !important; background-color: rgba(32, 35, 40, .66); }
/* thanh trên cùng: không viền dưới nặng, không bo quá tròn */
html body .vh { border-radius: 0 !important; background-image: none; border-width: 0 0 1px !important; }
/* ô nhập, nhãn, nút lọc: viền mờ cùng tông */
.chip, .wallet-chip, .field, .form-control, .form-select, .rb-search input, .rb-filter button, .rb-tools button, .media-tabs button, .tag { border-color: var(--bd) !important; background-color: rgba(255, 255, 255, .04); }

/* v15b: rê chuột không hiện lưới chấm nữa — giữ nguyên ánh sáng góc; tắt luôn vệt sáng theo chuột */
html body .glass:not(.pod):not(.cut):hover, html body .cut:not(.pod):not(.pod):hover,
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .vh, .gc-empty):not(.pod):not(.pod):hover {
    background-image: radial-gradient(ellipse 75% 70% at 92% 108%, rgba(94, 205, 215, .3), rgba(94, 205, 215, .1) 45%, transparent 72%);
    background-size: 100% 100%; background-repeat: no-repeat;
}
html body .glass:not(.pod):not(.cut):nth-child(even):hover { background-image: radial-gradient(ellipse 75% 70% at 8% -8%, rgba(167, 139, 250, .26), rgba(167, 139, 250, .09) 45%, transparent 72%); }
html body .vh:hover { background-image: none; }
.glass::after, .glass:hover::after { display: none; }

/* =====================================================================
   v16: nút cùng ngôn ngữ với thẻ mica — bo tròn, phẳng, viền trắng trong mờ; bỏ cắt góc/viền gradient
   ===================================================================== */
.btn-vcs, .btn-discord, .btn-steam, .btn-ghost, .copy, .srv-copy .copy, .to-top {
    clip-path: none !important; border-radius: 10px !important; border: 1px solid rgba(255, 255, 255, .16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14) !important; text-shadow: none; letter-spacing: .01em;
    transition: filter .2s, background-color .2s, border-color .2s, transform .15s;
}
.btn-vcs::before, .btn-discord::before, .btn-steam::before, .btn-ghost::before, .copy::before, .srv-copy .copy::before,
.btn-vcs::after, .btn-discord::after, .btn-steam::after { display: none !important; }

/* Nút chính */
.btn-vcs, .to-top { background: linear-gradient(135deg, #2bb8d4, #6d5ce8) !important; color: #fff !important; }
html body .btn-discord { background: #5865f2; color: #fff !important; }
.btn-steam { background: #1b2a3a !important; color: #fff !important; }
.btn-vcs:hover, .to-top:hover { background: linear-gradient(135deg, #4cd0ea, #8070f5) !important; filter: none; border-color: rgba(255, 255, 255, .3) !important; }
html body .btn-discord:hover { background: #4752c4; border-color: rgba(255, 255, 255, .3) !important; filter: none; }
.btn-steam:hover { background: #24384d !important; border-color: rgba(255, 255, 255, .3) !important; filter: none; }

/* Nút phụ: kính mờ */
.btn-ghost, .copy, .srv-copy .copy { background: rgba(255, 255, 255, .06) !important; color: #e8f6f8 !important; }
.btn-ghost:hover, .copy:hover, .srv-copy .copy:hover { background: rgba(255, 255, 255, .13) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
.btn-vcs:focus-visible, .btn-discord:focus-visible, .btn-steam:focus-visible, .btn-ghost:focus-visible, .copy:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; background-color: initial; }
.copy, .srv-copy .copy { border-radius: 8px !important; }

/* v16b: cùng bo/viền cho phần còn lại */
:root { --r-ctl: 10px; }
html body .vh { border-radius: 0 0 var(--r-box) var(--r-box) !important; border-width: 1px !important; border-top-width: 0 !important; }
.steps3 li::before, .steps li::before, .gc-badge, .check { border-radius: 10px !important; }

/* =====================================================================
   v17: kính mờ sáng — nền trắng trong mờ, ánh sáng chéo, viền sáng ở góc trên-trái, nút cùng chất liệu
   ===================================================================== */
html body .glass:not(.pod):not(.cut), html body .cut:not(.pod):not(.pod),
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .gc-empty):not(.pod):not(.pod) {
    background-color: rgba(255, 255, 255, .075);
    background-image:
        linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 80% 70% at 92% 112%, rgba(110, 220, 230, .2), transparent 70%);
    background-size: 100% 100%; background-repeat: no-repeat; background-position: 0 0;
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border: 1px solid !important; border-color: rgba(255, 255, 255, .34) rgba(255, 255, 255, .14) rgba(255, 255, 255, .1) rgba(255, 255, 255, .26) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px -14px rgba(0, 0, 0, .6);
}
html body .glass:not(.pod):not(.cut):nth-child(even) {
    background-image:
        linear-gradient(210deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 80% 70% at 8% -10%, rgba(180, 160, 255, .2), transparent 70%);
}
html body .glass:not(.pod):not(.cut):hover, html body .cut:not(.pod):not(.pod):hover,
html body :is(.gc-panel, .gc-buy, .ck-panel, .ck-hero, .stat, .vf, .gc-empty):not(.pod):not(.pod):hover {
    background-color: rgba(255, 255, 255, .1);
    background-image:
        linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 80% 70% at 92% 112%, rgba(110, 220, 230, .26), transparent 70%);
    border-color: rgba(255, 255, 255, .5) rgba(255, 255, 255, .22) rgba(255, 255, 255, .16) rgba(255, 255, 255, .4) !important;
}
html body .glass:not(.pod):not(.cut):nth-child(even):hover {
    background-image:
        linear-gradient(210deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(ellipse 80% 70% at 8% -10%, rgba(180, 160, 255, .26), transparent 70%);
}
/* Ô nhập, nhãn, lọc */
.chip, .wallet-chip, .field, .form-control, .form-select, .rb-search input, .rb-filter button, .rb-tools button, .media-tabs button, .tag {
    background-color: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .24) !important;
}

/* Nút: cùng chất kính, sáng hơn */
.btn-vcs, .btn-discord, .btn-steam, .btn-ghost, .copy, .srv-copy .copy, .to-top {
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-color: rgba(255, 255, 255, .38) rgba(255, 255, 255, .16) rgba(255, 255, 255, .12) rgba(255, 255, 255, .3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px -10px rgba(0, 0, 0, .55) !important;
}
.btn-vcs, .to-top { background: linear-gradient(135deg, rgba(120, 235, 250, .55), rgba(150, 130, 255, .5)) !important; }
.btn-vcs:hover, .to-top:hover { background: linear-gradient(135deg, rgba(140, 240, 255, .7), rgba(170, 150, 255, .66)) !important; }
html body .btn-discord { background: rgba(88, 101, 242, .62); }
html body .btn-discord:hover { background: rgba(88, 101, 242, .8); }
.btn-steam { background: rgba(255, 255, 255, .14) !important; }
.btn-steam:hover { background: rgba(255, 255, 255, .22) !important; }
.btn-ghost, .copy, .srv-copy .copy { background: rgba(255, 255, 255, .12) !important; }
.btn-ghost:hover, .copy:hover, .srv-copy .copy:hover { background: rgba(255, 255, 255, .22) !important; }

/* v17b: danh mục + nhãn trên mỗi sản phẩm cùng chất kính mờ sáng */
html body .chips--sticky {
    background-color: rgba(255, 255, 255, .075);
    background-image: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 42%, rgba(255, 255, 255, 0) 70%);
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    border-radius: var(--r-box) !important;
    border-color: rgba(255, 255, 255, .34) rgba(255, 255, 255, .14) rgba(255, 255, 255, .1) rgba(255, 255, 255, .26) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px -14px rgba(0, 0, 0, .6);
}
html body .chips--sticky .chip { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .22) !important; border-radius: 10px !important; color: #e6f4f6; }
html body .chips--sticky .chip:hover { background: rgba(255, 255, 255, .18) !important; border-color: rgba(255, 255, 255, .4) !important; color: #fff; }
html body .chips--sticky .chip.is-active, html body .chip.is-active {
    background: linear-gradient(135deg, rgba(120, 235, 250, .55), rgba(150, 130, 255, .5)) !important; color: #fff;
    border-color: rgba(255, 255, 255, .45) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* Nhãn danh mục / VIP / hạng nằm trên ảnh sản phẩm */
html body .card-p__tags .tag, html body .post-media .tag {
    background: rgba(255, 255, 255, .14) !important; color: #fff; border: 1px solid rgba(255, 255, 255, .32) !important; border-radius: 9px !important;
    padding: 6px 10px; backdrop-filter: blur(12px) saturate(1.5); -webkit-backdrop-filter: blur(12px) saturate(1.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
html body .card-p__tags .tag-red, html body .post-media .tag-red { background: rgba(150, 130, 255, .4) !important; }
html body .card-p__rank { background: linear-gradient(135deg, rgba(120, 235, 250, .6), rgba(150, 130, 255, .55)); border: 1px solid rgba(255, 255, 255, .4); border-radius: 9px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html body .card-p__tags .tag, html body .post-media .tag { background: rgba(255, 255, 255, .22) !important; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
html body .cut, html body .cut::before, html body .cut::after { clip-path: none !important; }
html body .cut::after { display: none !important; }

/* v17c: ảnh sản phẩm thụt vào trong thẻ và bo góc */
html body .card-p__media, html body .feat-media, html body .post-media { margin: 10px 10px 0; border-radius: 12px !important; overflow: hidden; }
html body .detail__media, html body .preview-box, html body .preview-box img, html body .detail__media img { border-radius: 14px !important; overflow: hidden; }
html body .card-p__media img, html body .feat-media img, html body .post-media img { border-radius: 12px; }

/* v17d: ảnh sản phẩm tràn sát mép thẻ, bo góc theo đúng viền thẻ */
html body .card-p__media, html body .feat-media, html body .post-media { margin: 0; border-radius: calc(var(--r-box) - 1px) calc(var(--r-box) - 1px) 0 0 !important; }
html body .card-p__media img, html body .feat-media img, html body .post-media img { padding: 0; object-fit: cover; border-radius: 0; }
html body .card-p, html body .feat-card, html body .post { overflow: hidden; }

/* Ảnh đại diện Steam */
.ava { display: inline-block; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 0 0 2px rgba(34, 211, 238, .18), 0 4px 12px -4px rgba(0, 0, 0, .6); vertical-align: middle; background: rgba(255, 255, 255, .08); }
.ava-ph { display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #e6f4f6; background: linear-gradient(135deg, rgba(34, 211, 238, .35), rgba(217, 70, 239, .3)); }
.vh-ava { display: inline-flex; align-items: center; border-radius: 50%; }
.vh-ava:hover .ava { border-color: rgba(255, 255, 255, .7); }
.lb-ava { width: 26px; height: 26px; margin-right: 10px; box-shadow: none; }
.lb-name a { color: inherit; text-decoration: none; }
.lb-name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }

/* =====================================================================
   Hồ sơ nhân vật (/nhan-vat): các lớp cs-*, dùng chung chất kính mờ của .glass
   ===================================================================== */
.cs { --cs-a: 110, 220, 232; --cs-b: 150, 130, 255; --cs-ink: #c3ccd1; --cs-gap: 10px; /* khoảng cách giữa các bảng */ }
.cs-ico { width: 22px; height: 22px; flex: none; }

.cs-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.cs-top .block-head { margin-bottom: 0; }
.cs-top .page-title { margin-bottom: 4px; }
.cs-find { display: flex; gap: 8px; width: min(100%, 360px); }
.cs-find .field { padding: 9px 12px; border-radius: 10px; }

/* Thẻ nhân vật */
.cs .cs-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px 32px; align-items: center; padding: clamp(14px, 2vw, 22px) clamp(16px, 2.4vw, 28px); margin-bottom: var(--cs-gap); }
.cs-hero__id { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 18px); min-width: 0; }
.cs .cs-ava { width: 80px; height: 80px; flex: none; font-size: 34px; box-shadow: 0 0 0 3px rgba(var(--cs-a), .26), 0 14px 30px -12px rgba(0, 0, 0, .75); }
.cs-hero__txt { min-width: 0; }
.cs .cs-name { font-size: clamp(30px, 4vw, 48px); line-height: .98; text-transform: none; letter-spacing: .005em; overflow-wrap: anywhere; }
.cs-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 9px; }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 22px; margin: 0; line-height: 1.3; }
.cs-meta dt { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.cs-meta dd { margin: 1px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Con số nổi bật: sáu ô nằm một hàng trên màn rộng, ba ô một hàng trên màn vừa, hai ô trên điện thoại */
.cs-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--cs-gap); margin-bottom: 12px; }
.cs .cs-kpi { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 12px 14px 11px; line-height: 1.3; }
.cs-kpi__l { color: var(--muted); font-size: 12.5px; }
.cs-kpi__v { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.cs-kpi__s { color: var(--cs-ink); font-size: 12px; }
.cs-rank { align-self: flex-start; margin-top: 6px; padding: 2px 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .09); font-size: 11.5px; font-weight: 700; line-height: 1.5; }
.cs-rank small { opacity: .7; font-weight: 600; }
.cs-rank--gold { color: #231a00; background: linear-gradient(135deg, #fde68a, #facc15); border-color: rgba(255, 255, 255, .55); }
.cs-rank--silver { color: #11171d; background: linear-gradient(135deg, #f1f5f9, #a9b4c1); border-color: rgba(255, 255, 255, .55); }
.cs-rank--bronze { color: #231206; background: linear-gradient(135deg, #f3bd8a, #b87333); border-color: rgba(255, 255, 255, .5); }

/* Mục lục dính và các phần */
.cs-nav { margin-bottom: 4px; }
.cs-sec { margin-top: 22px; }
/* Phải thắng luật chung "section[id]" (cùng độ ưu tiên, nằm trước): chừa chỗ cho menu dính (--head-h) và thanh mục lục dính (cao ~55px). */
.cs .cs-sec { scroll-margin-top: calc(var(--head-h, 120px) + 78px); }
.cs-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 4px; font-size: clamp(22px, 2.3vw, 28px); }
.cs-h .cs-ico { width: 24px; height: 24px; color: #8de9f5; }
.cs-h .tag { align-self: center; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.cs-note { max-width: 120ch; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cs-note--card { margin: 10px 0 0; font-size: 12.5px; }
.cs-note a { color: #8de9f5; }
.cs-foot { margin: 22px 0 0; color: var(--muted); font-size: 12.5px; max-width: 80ch; }

/* Lưới thẻ và thẻ chỉ số: bốn cột trên màn rộng (thẻ rộng ~290px), ba, hai rồi một cột khi hẹp dần. auto-fit để ít thẻ thì giãn ra lấp chỗ trống. */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--cs-gap); align-items: start; }
/* Bốn bảng thuộc tính STR, CON, DEX, INT: hai cột khi vừa (xếp lại thứ tự cho cao bằng nhau), bốn cột từ màn rộng, một cột trên điện thoại.
   Mỗi hàng kỹ năng cần ~330px (tên, thanh bốn đoạn, tên cấp) nên không dùng auto-fit ở đây. */
.cs-grid--attr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-attr--int { order: 3; }
.cs-attr--dex { order: 4; }
@media (min-width: 1400px) {
    .cs-grid--attr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cs-attr--int, .cs-attr--dex { order: 0; }
}
@media (max-width: 640px) {
    .cs-grid--attr { grid-template-columns: minmax(0, 1fr); }
    .cs-attr--int, .cs-attr--dex { order: 0; }
}
.cs-card__m { margin-left: auto; color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
/* Các trang hồ sơ nhân vật rộng hết màn hình (chỉ chừa lề), kể cả thanh menu trên cùng và chân trang (dùng --head-w) cho khớp. */
body:has(.cs-wide) { --page-w: 2000px; --head-w: 2000px; }
/* Xếp kiểu gạch (vcs-character.js bật): mỗi bảng chiếm đúng số hàng 2px bằng chiều cao của nó (đã cộng sẵn khoảng cách),
   nên bảng thấp không để lỗ trống bên dưới, bảng kế tiếp chui lên ngay dưới nó. Không có JS thì vẫn là lưới thường. */
.cs-grid.is-packed { grid-auto-rows: 2px; row-gap: 0; margin-bottom: calc(var(--cs-gap) * -1); }
.cs .cs-card { padding: 14px 16px 12px; min-width: 0; line-height: 1.35; }
/* Thẻ rộng: trên màn rộng (từ ba cột) chiếm hai cột để thẻ khác xếp cạnh, còn lại chiếm cả hàng. */
.cs-card--wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .cs-card--wide { grid-column: span 2; } }
.cs-card__h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 20px; line-height: 1.15; }
.cs-card__h .cs-ico { width: 20px; height: 20px; color: #8de9f5; }
.cs-rows { margin: 0; }
.cs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cs-row:last-child { border-bottom: 0; }
.cs-row dt { color: var(--cs-ink); font-size: 13.5px; line-height: 1.3; font-weight: 400; }
.cs-row dd { margin: 0; color: #fff; font-size: 14.5px; line-height: 1.3; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cs-row.is-total dd { color: #8de9f5; }
.cs-row .cs-bar { grid-column: 1 / -1; }
.cs-sub { margin: 10px 0 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cs-sub--first { margin-top: 0; }

/* Thanh so sánh (tiến độ, loài, loại phần tử) */
.cs-bar { display: block; position: relative; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cs-bar::before { content: ""; position: absolute; inset: 0; width: calc(var(--w, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, rgba(var(--cs-a), .95), rgba(var(--cs-b), .95)); transform-origin: left; animation: cs-grow .75s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cs-grow { from { transform: scaleX(0); } }
.cs-bars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cs-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 13px; line-height: 1.3; }
.cs-bars b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-bars .cs-bar { grid-column: 1 / -1; height: 6px; }
.cs-chipset { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.cs-chipset li { padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); font-size: 12px; line-height: 1.35; }
.cs-chipset b { margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Xếp hạng */
.cs-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 0 24px; padding: 10px 18px; line-height: 1.3; }
.cs-rk { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 5px 0; }
.cs-rk__pos { grid-row: span 2; text-align: right; color: #8de9f5; font-size: 24px; line-height: 1; }
.cs-rk__l { font-size: 14px; font-weight: 600; }
.cs-rk__d { color: var(--muted); font-size: 12.5px; }
.cs-rk--gold .cs-rk__pos { color: var(--gold); }
.cs-rk--silver .cs-rk__pos { color: #dfe6ee; }
.cs-rk--bronze .cs-rk__pos { color: #e8a972; }

/* Kỹ năng: bốn đoạn mỗi kỹ năng */
.cs-skills { margin: 0; padding: 0; list-style: none; }
.cs-skills li { display: grid; grid-template-columns: minmax(0, 1fr) 88px 70px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.25; }
.cs-skills li:last-child { border-bottom: 0; }
.cs-sk__n { min-width: 0; font-size: 14px; }
.cs-sk__n small { display: block; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cs-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.cs-meter i { position: relative; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cs-meter i::before { content: ""; position: absolute; inset: 0; width: calc(var(--f, 0) * 100%); background: linear-gradient(90deg, rgb(var(--cs-a)), rgb(var(--cs-b))); transform-origin: left; animation: cs-grow .6s .05s both; }
.cs-sk__l { color: var(--cs-ink); font-size: 12.5px; font-weight: 600; text-align: right; white-space: nowrap; }
.cs-skills li.is-max .cs-sk__l { color: var(--gold); }
.cs-skills li.is-max .cs-meter i::before { background: linear-gradient(90deg, #fde68a, #facc15); }

/* Thành tích: bốn bậc */
.cs-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-ach li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 9px 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .05); line-height: 1.3; }
.cs-ach b { display: block; font-size: 14px; }
.cs-ach div > span { display: block; color: var(--cs-ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.cs-ach .cs-bar { margin: 5px 0 3px; height: 4px; }
.cs-ach small { color: var(--muted); font-size: 11.5px; }
.cs-medal { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #1a1405; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -4px 7px rgba(0, 0, 0, .25); }
.cs-t0 { opacity: .7; }
.cs-t0 .cs-medal { background: rgba(255, 255, 255, .1); color: #8a959a; box-shadow: none; }
.cs-t1 .cs-medal { background: radial-gradient(circle at 35% 30%, #f6cfa6, #b87333 72%); }
.cs-t2 .cs-medal { background: radial-gradient(circle at 35% 30%, #fff, #a9b4c1 72%); }
.cs-t3 .cs-medal { background: radial-gradient(circle at 35% 30%, #fff3b0, #facc15 72%); }
.cs-t4 .cs-medal { background: radial-gradient(circle at 35% 30%, #e9feff, #67e8f9 72%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 0 18px rgba(103, 232, 249, .5); }

/* Phần riêng của chủ hồ sơ */
.cs-private { padding-top: 4px; }
.cs-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.cs-bases { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cs-bases li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .045); font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cs-bases__n { min-width: 130px; font-weight: 600; }
.cs-bases small { margin-left: auto; color: var(--muted); }
.cs-pairs { margin: 0; padding: 0; list-style: none; }
.cs-pairs li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.3; }
.cs-pairs li:last-child { border-bottom: 0; }
.cs-pairs b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-pairs--cols { columns: 2 240px; column-gap: 28px; }
.cs-pairs--cols li { break-inside: avoid; }
.cs-gear { margin: 0; padding: 0; list-style: none; }
.cs-gear li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 36px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.3; }
.cs-gear li:last-child { border-bottom: 0; }
.cs-gear b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-cond { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; --c: var(--ok); }
.cs-cond i { position: absolute; inset: 0; width: calc(var(--w, 0) * 100%); border-radius: inherit; background: var(--c); }
.cs-cond.is-mid { --c: var(--warn); }
.cs-cond.is-low { --c: #f87171; }

/* Trang trống và tìm kiếm */
.cs-empty { max-width: 720px; padding: 34px clamp(20px, 3vw, 36px); text-align: center; margin-inline: auto; }
.cs-empty h3 { margin-bottom: 10px; font-size: 28px; }
.cs-empty p { margin: 0 auto 20px; max-width: 56ch; color: var(--cs-ink); }
.cs-results { padding: 6px 8px; }
.cs-res { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(0, 1.6fr) 130px 150px; gap: 8px 18px; align-items: center; padding: 12px 14px; border-radius: 12px; color: inherit; transition: background-color .15s; }
.cs-res + .cs-res { border-top: 1px solid rgba(255, 255, 255, .07); border-top-left-radius: 0; border-top-right-radius: 0; }
.cs-res:hover { background: rgba(255, 255, 255, .08); }
.cs-res__n { font-size: 16px; overflow-wrap: anywhere; }
.cs-res__s { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-res__v { font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-res__v small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; }
/* Màn rộng: danh sách kết quả chia hai cột cho đỡ phải cuộn. */
@media (min-width: 1400px) {
    .cs-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-content: start; }
    .cs-res + .cs-res { border-top: 0; border-radius: 12px; }
    .cs-res:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .07); border-top-left-radius: 0; border-top-right-radius: 0; }
}

@media (max-width: 1180px) {
    .cs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cs-kpi__v { font-size: clamp(24px, 3vw, 30px); }
}
@media (max-width: 820px) {
    .cs .cs-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .cs-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cs .cs-ava { width: 68px; height: 68px; font-size: 28px; }
    .cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cs .cs-kpi { padding: 10px 12px; }
    .cs-kpi__v { font-size: clamp(22px, 6.4vw, 28px); }
    .cs-skills li { grid-template-columns: minmax(0, 1fr) 64px 76px; gap: 8px; }
    .cs-res { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cs-res__s { grid-column: 1 / -1; order: 3; }
    .cs-bases small { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-bar::before, .cs-meter i::before { animation: none; }
}

/* =====================================================================
   Hồ sơ nhân vật, phần thống kê nâng cao: thanh chuyển trang, nhãn Top, radar, tuần này, so sánh, kỷ lục, đội
   ===================================================================== */
.cs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cs-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--cs-ink); font-size: 13.5px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .15s, color .15s; }
.cs-tab .cs-ico { width: 17px; height: 17px; }
.cs-tab:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.cs-tab.is-on { color: #06181c; background: linear-gradient(135deg, rgb(var(--cs-a)), rgb(var(--cs-b))); border-color: transparent; }
.cs-tab:focus-visible { outline: 2px solid rgb(var(--cs-a)); outline-offset: 2px; }

/* Nhãn "Hạng n" / "Top x%" cạnh chỉ số, danh hiệu và nút so sánh trên thẻ nhân vật */
.cs-pos { display: inline-block; margin-right: 7px; padding: 0 7px; border-radius: 99px; border: 1px solid rgba(var(--cs-a), .45); background: rgba(var(--cs-a), .12); color: #8de9f5; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
.cs-pos--gold { color: #231a00; background: linear-gradient(135deg, #fde68a, #facc15); border-color: rgba(255, 255, 255, .5); }
.cs-pos--silver { color: #11171d; background: linear-gradient(135deg, #f1f5f9, #a9b4c1); border-color: rgba(255, 255, 255, .5); }
.cs-pos--bronze { color: #231206; background: linear-gradient(135deg, #f3bd8a, #b87333); border-color: rgba(255, 255, 255, .45); }
.cs-honor-pill { color: #231a00; background: linear-gradient(135deg, #fde68a, #facc15); border-color: rgba(255, 255, 255, .5); font-weight: 700; }
a.pill { text-decoration: none; transition: background-color .15s; }
a.pill:hover { background: rgba(255, 255, 255, .16); }
.cs-vsbtn { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; }
.cs-vsbtn .cs-ico { width: 16px; height: 16px; }

/* Tổng quan: radar phong cách chơi và khối "Tuần này" */
.cs-over { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cs-gap); align-items: start; }
@media (min-width: 900px) { .cs-over--2 { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); } }
.cs-honor { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px; line-height: 1.3; }
.cs-honor b { font-family: var(--font-display); font-size: 26px; line-height: 1.05; letter-spacing: .01em; color: var(--gold); font-weight: 700; }
.cs-honor span { color: var(--cs-ink); font-size: 12.5px; }
.cs-radar { display: block; width: 100%; max-width: 440px; height: auto; margin: 4px auto 8px; overflow: visible; }
.cs-radar__ring { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: 1; }
.cs-radar__ring:nth-of-type(4) { stroke: rgba(255, 255, 255, .22); }
.cs-radar__spoke { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.cs-radar__area { fill: rgba(var(--cs-a), .28); stroke: rgb(var(--cs-a)); stroke-width: 2; stroke-linejoin: round; transform-origin: 170px 150px; animation: cs-radar .8s cubic-bezier(.2, .7, .2, 1) both; }
.cs-radar__area--b { fill: rgba(var(--cs-b), .24); stroke: rgb(var(--cs-b)); }
.cs-radar__dot { fill: rgb(var(--cs-a)); stroke: #0b1519; stroke-width: 1.5; }
.cs-radar__dot--b { fill: rgb(var(--cs-b)); }
.cs-radar__label { fill: var(--cs-ink); font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.cs-radar__score { fill: #fff; font-weight: 800; }
@keyframes cs-radar { from { transform: scale(.25); opacity: 0; } }
.cs-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 6px 0 0; padding: 0; list-style: none; }
.cs-axes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 13px; line-height: 1.3; }
.cs-axes b { font-variant-numeric: tabular-nums; }
.cs-axes .cs-bar { grid-column: 1 / -1; height: 5px; }
.cs-axes--vs { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.cs-axes--vs li { grid-template-columns: minmax(0, 1fr) 44px 44px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cs-axes--vs li:last-child { border-bottom: 0; }
.cs-axes__a, .cs-axes__b { text-align: right; }
.cs-axes__a { color: rgb(var(--cs-a)); }
.cs-axes__b { color: rgb(var(--cs-b)); }
/* Trang so sánh, màn rộng: radar nằm cạnh bảng điểm hai người và gom vào giữa thẻ, khỏi trống hai bên.
   CHỈ áp cho thẻ có class cs-style--vs (trang so sánh, thẻ rộng cả hàng). Thẻ radar ở hồ sơ cũng mang class cs-style nhưng chỉ rộng
   tối đa 440px: chia 4 cột (tối thiểu 300 + 240 + khoảng cách) trong thẻ đó làm chữ bị bóp thành từng chữ một dòng (lỗi đã gặp 28/11). */
@media (min-width: 1240px) {
    .cs-style--vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px) minmax(240px, 400px) minmax(0, 1fr); column-gap: 40px; align-items: center; align-content: start; }
    .cs-style--vs > .cs-card__h, .cs-style--vs > .cs-legend { grid-column: 1 / -1; }
    .cs-style--vs > .cs-radar { grid-column: 2; margin: 0; }
    .cs-style--vs > .cs-axes--vs { grid-column: 3; margin: 0; }
}

.cs-wk { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-wk li { display: flex; flex-direction: column; gap: 1px; padding: 8px 11px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); line-height: 1.25; }
.cs-wk b { color: var(--ok); font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cs-wk span { color: var(--cs-ink); font-size: 12px; }
.cs-moves { margin: 0; padding: 0; list-style: none; }
.cs-moves li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; line-height: 1.3; }
.cs-moves li:last-child { border-bottom: 0; }
.cs-moves i { color: var(--muted); font-size: 12.5px; font-style: normal; font-variant-numeric: tabular-nums; }
.cs-moves b { text-align: right; font-variant-numeric: tabular-nums; }
.cs-moves .is-up b { color: var(--ok); }
.cs-moves .is-down b { color: #f87171; }
.cs-days { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.cs-day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.cs-day i { display: block; width: 100%; max-width: 30px; height: calc(var(--h, 0) * 68px); min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, rgb(var(--cs-a)), rgb(var(--cs-b))); transform-origin: bottom; animation: cs-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.cs-day small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
@keyframes cs-rise { from { transform: scaleY(0); } }

/* So sánh hai người */
.cs-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--cs-gap); align-items: stretch; margin-bottom: var(--cs-gap); }
.cs-vs__mid { display: grid; place-items: center; padding: 0 4px; color: var(--muted); font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; }
.cs .cs-slot { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px 14px 20px; }
.cs-slot--a::before, .cs-slot--b::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: rgb(var(--cs-a)); }
.cs-slot--b::before { background: rgb(var(--cs-b)); }
.cs-slot__ava { width: 64px; height: 64px; flex: none; font-size: 28px; }
.cs-slot__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.3; }
.cs-slot__n { color: #fff; font-family: var(--font-display); font-size: 26px; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; }
.cs-slot__n:hover { text-decoration: underline; text-underline-offset: 4px; }
.cs-slot__s { color: var(--cs-ink); font-size: 12.5px; }
.cs-slot__x { align-self: flex-start; margin-left: auto; padding: 2px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); color: var(--muted); font-size: 12px; text-decoration: none; }
.cs-slot__x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.cs-slot--pick { justify-content: center; }
.cs-slot--pick .cs-find { width: 100%; }
.cs-slot--empty { justify-content: center; color: var(--muted); opacity: .6; }
.cs-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
.cs-key::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 3px; background: rgb(var(--cs-a)); }
.cs-key--b::before { background: rgb(var(--cs-b)); }
.cs-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 4px; font-size: 13px; }
.cs-score__bar { display: flex; height: 12px; margin: 4px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cs-score__a { background: rgb(var(--cs-a)); }
.cs-score__t { background: rgba(255, 255, 255, .3); }
.cs-score__b { background: rgb(var(--cs-b)); }
.cs-grid--cmp { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.cs-cmp__head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 12.5px; }
.cs-cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(104px, .9fr) minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.25; }
.cs-cmp__row:last-child { border-bottom: 0; }
.cs-cmp__l { color: var(--cs-ink); font-size: 12.5px; text-align: center; }
.cs-cmp__v { display: grid; gap: 3px; min-width: 0; font-variant-numeric: tabular-nums; }
.cs-cmp__v b { color: #b9c4c9; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.cs-cmp__v small { color: var(--muted); font-size: 11px; }
.cs-cmp__v .cs-bar { height: 6px; opacity: .55; }
.cs-cmp__v--a { text-align: right; }
.cs-cmp__v--a .cs-bar::before { left: auto; right: 0; transform-origin: right; background: rgb(var(--cs-a)); }
.cs-cmp__v--b .cs-bar::before { background: rgb(var(--cs-b)); }
.cs-cmp__row.is-a .cs-cmp__v--a b, .cs-cmp__row.is-b .cs-cmp__v--b b { color: #fff; font-weight: 800; }
.cs-cmp__row.is-a .cs-cmp__v--a .cs-bar, .cs-cmp__row.is-b .cs-cmp__v--b .cs-bar { opacity: 1; }

/* Kỷ lục */
.cs-podium { margin: 0; padding: 0; list-style: none; }
.cs-podium li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); line-height: 1.3; }
.cs-podium li:last-child { border-bottom: 0; }
.cs-podium__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #1a1405; font-size: 12px; font-weight: 800; }
.cs-podium--gold .cs-podium__n { background: radial-gradient(circle at 35% 30%, #fff3b0, #facc15 72%); }
.cs-podium--silver .cs-podium__n { background: radial-gradient(circle at 35% 30%, #fff, #a9b4c1 72%); }
.cs-podium--bronze .cs-podium__n { background: radial-gradient(circle at 35% 30%, #f6cfa6, #b87333 72%); }
.cs-podium a { min-width: 0; color: inherit; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.cs-podium a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-podium b { color: #fff; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cs-podium--gold b { color: var(--gold); font-size: 17px; }

/* Các đội và thành viên */
.cs-sqr, .cs-mem { display: grid; gap: 8px 16px; align-items: center; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color .15s; }
.cs-sqr { grid-template-columns: minmax(170px, 1.6fr) repeat(6, minmax(0, 1fr)); }
.cs-mem { grid-template-columns: minmax(150px, 1.4fr) repeat(7, minmax(0, 1fr)); }
.cs-sqr + .cs-sqr, .cs-mem + .cs-mem { border-top: 1px solid rgba(255, 255, 255, .07); border-top-left-radius: 0; border-top-right-radius: 0; }
.cs-sqr:hover, .cs-mem:hover { background: rgba(255, 255, 255, .08); }
.cs-sqr__n, .cs-mem__n { font-size: 16px; overflow-wrap: anywhere; }
.cs-sqr__n small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

@media (max-width: 1100px) {
    .cs-sqr, .cs-mem { grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .cs-vs { grid-template-columns: minmax(0, 1fr); }
    .cs-vs__mid { padding: 0; font-size: 22px; }
    .cs-axes { grid-template-columns: minmax(0, 1fr); }
    .cs-cmp__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "l l" "a b"; }
    .cs-cmp__l { grid-area: l; text-align: left; }
    .cs-cmp__v--a { grid-area: a; text-align: left; }
    .cs-cmp__v--b { grid-area: b; text-align: right; }
    .cs-cmp__v--a .cs-bar::before { left: 0; right: auto; transform-origin: left; }
    .cs-sqr, .cs-mem { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cs-sqr__n, .cs-mem__n { grid-column: 1 / -1; }
    .cs-slot__n { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-radar__area, .cs-day i { animation: none; }
}
