/* Xóc Đĩa Online: giao diện xóc đĩa trên nền Flatsome.
   Mô-típ duy nhất: đồng tiền tròn lỗ vuông (quân vị). Đĩa vàng, quân đỏ và trắng, nền gần đen.
   Màu phẳng, không gradient, không đổ bóng khi đứng yên, không viền mảnh. */

:root {
  --bg: #121110;
  --surface: #1c1a17;
  --surface-2: #28251f;
  --ink: #f1f1ef;
  --muted: #bdb6a6;
  --gold: #f8c540;
  --gold-deep: #d99a14;
  --gold-ink: #121110;
  --red: #cf2a2f;
  --red-deep: #a81f24;
  --red-ink: #f1f1ef;
  --coin-white: #f1f1ef;
  --bowl: #1d1a16;
  --bowl-foot: #332e27;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-small: 0.875rem;
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-sub: clamp(1.375rem, 1.15rem + 0.7vw, 1.875rem);
  --t-head: clamp(2rem, 1.2rem + 3vw, 3.75rem);
  --t-display: clamp(2.875rem, 1rem + 5.2vw, 5.5rem);

  --gutter: clamp(16px, 2.6vw, 40px);
  --max: 1360px;
  --header-h: 76px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --primary-color: var(--gold);
  --fs-color-primary: var(--gold);
}

/* ---------- Nền tảng ---------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.bv-site,
.bv-site #wrapper,
.bv-site #main { background-color: var(--bg); color: var(--ink); }

.bv-site,
.bv-site h1, .bv-site h2, .bv-site h3, .bv-site h4, .bv-site h5, .bv-site h6,
.bv-site .nav > li > a,
.bv-site .button, .bv-site button, .bv-site input, .bv-site table {
  font-family: var(--font);
}

.bv-site {
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

.bv-site h1, .bv-site h2, .bv-site h3, .bv-site h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: none;
  margin: 0;
}
.bv-site h2 { font-size: var(--t-head); }
.bv-site h3 { font-size: var(--t-sub); letter-spacing: -0.02em; line-height: 1.15; }
.bv-site p { margin: 0 0 1em; }
.bv-site p:last-child { margin-bottom: 0; }
.bv-site a { color: inherit; }
.bv-site strong { font-weight: 600; color: var(--ink); }
.bv-site ::selection { background: var(--gold); color: var(--gold-ink); }
.bv-site :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.bv-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: chỉ dành cho screen reader */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lưới Flatsome: một cặp lề ngoài bằng nhau ở mọi độ rộng. */
.bv-site .row:not(.row-full-width) {
  max-width: calc(var(--max) + 2 * var(--gutter));
  padding-left: calc(var(--gutter) - 15px);
  padding-right: calc(var(--gutter) - 15px);
}
.bv-site .col { padding-bottom: 0; }
@media (max-width: 549px) {
  .bv-site .row:not(.row-full-width) { padding-left: 1px; padding-right: 1px; }
  .bv-site .col { padding-left: 15px; padding-right: 15px; }
}
.bv-site .section { padding-left: 0; padding-right: 0; }
.bv-site .scroll-to { display: block; height: 0; }

/* ---------- Nút: một hình viên thuốc duy nhất cho cả trang ---------- */

.bv-site .button,
.bv-site button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0 8px 8px 0;
  padding: 0 28px;
  border: 0;
  border-radius: var(--pill);
  background-color: var(--gold);
  color: var(--gold-ink);
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  box-shadow: none; /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.bv-site .button:hover { background-color: var(--gold-deep); color: var(--gold-ink); transform: translateY(-2px); box-shadow: none; } /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
.bv-site .button:active { transform: translateY(1px) scale(0.98); }
.bv-site .button.is-outline {
  background-color: var(--surface-2);
  color: var(--ink);
  border: 0;
}
.bv-site .button.is-outline:hover { background-color: var(--bg); color: var(--ink); }


/* ==========================================
   BV HEADER - PREMIUM BLACK / GOLD
   FLATSOME WORDPRESS
========================================== */

/* HEADER STICKY */
.bv-site #header {
    position: sticky !important;
    top: 0;
    z-index: 9999 !important;
    overflow: visible !important;
}

/* NỀN HEADER */
.bv-site .header-wrapper {
    position: relative;
    z-index: 9999;
    background: #111111 !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28) !important;
    border: 0 !important;
}

/* HEADER MAIN */
.bv-site #header .header-main {
    height: 85px;
    min-height: 76px;
    background: linear-gradient(
        180deg,
        #101010 0%,
        #191919 100%
    ) !important;
}

/* CĂN GIỮA NỘI DUNG HEADER */
.bv-site #header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ĐƯỜNG KẺ VÀNG FULL WIDTH */
.bv-site .header-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background: linear-gradient(
        90deg,
        #8c6419 0%,
        #e0b43f 25%,
        #ffe28a 50%,
        #e0b43f 75%,
        #8c6419 100%
    );
    box-shadow: 0 0 9px rgba(235, 190, 75, 0.25);
    pointer-events: none;
    z-index: 10;
}



/* MENU */
.bv-site .header-nav .nav-top-link,
.bv-site .header-nav > li > a {
    color: #e5e5e5 !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.25s ease;
}

/* MENU HOVER */
.bv-site .header-nav > li > a:hover,
.bv-site .header-nav > li.active > a {
    color: #f3c64c !important;
}

/* KHOẢNG CÁCH MENU */
.bv-site .header-nav > li {
    margin: 0 12px;
}

.bv-site .header-nav > li:last-child {
    margin-right: 0;
}

/* NÚT CHỌN NHÀ CÁI */
.bv-site .header-nav .header-button-1 .button {
    min-height: 44px;
    padding: 0 25px;
    margin: 0;

    color: #17130a !important;
    font-weight: 700;
    font-size: 15px;

    background: linear-gradient(
        180deg,
        #ffe58b 0%,
        #f5ca52 55%,
        #dca326 100%
    ) !important;

    border: 1px solid #f6d36f;
    border-radius: 30px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.bv-site .header-nav .header-button-1 .button:hover {
    background: #ffe18a !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(230, 184, 63, 0.25);
}

/* TAGLINE */
.bv-site #logo .logo-tagline {
    display: none !important;
}

/* MOBILE */
@media (max-width: 849px) {
    .bv-site #header .header-main {
        height: auto;
        min-height: 60px;
    }

    .bv-site #header .header-inner {
        padding: 0 12px;
    }

    .bv-site .header-nav > li {
        margin: 0 6px;
    }

    .bv-site .header-wrapper::after {
        height: 2px;
    }
}

/* ADMIN BAR WORDPRESS */
body.admin-bar .bv-site #header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .bv-site #header {
        top: 46px;
    }
}


/* ---------- Đồng xu: dùng chung ---------- */

.bv-coin { display: block; width: 100%; height: 100%; }
.is-red > .bv-coin, .bv-coin.is-red { fill: var(--red); }
.is-white > .bv-coin, .bv-coin.is-white { fill: var(--coin-white); }

/* ---------- 1. Hero: đĩa vàng khổng lồ + bàn chơi thử ---------- */

.bv-hero { position: relative; overflow: hidden; }
.bv-hero .section-content { position: static; }
.bv-hero .row,
.bv-hero .bv-hero__plate,
.bv-hero .bv-hero__plate > .col-inner { position: static; }
.bv-hero__row { min-height: max(680px, calc(100svh - var(--header-h))); align-content: center; padding-top: 48px; padding-bottom: 56px; }
.bv-hero__text, .bv-hero__bet { position: relative; z-index: 2; }

.bv-hero h1 {
  font-size: var(--t-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 12ch;
}
.bv-lede { margin-top: 36px !important; max-width: 34ch; font-size: var(--t-body); color: var(--ink); }

.bv-plate {
  --d: min(120vh, 1240px);
  position: absolute;
  z-index: 1;
  width: var(--d);
  height: var(--d);
  left: calc(78% - var(--d) / 2);
  top: calc(55% - var(--d) / 2);
}
.bv-plate__disc { position: absolute; inset: 0; border-radius: 50%; background-color: var(--gold); }
.bv-plate__well { position: absolute; inset: 9%; border-radius: 50%; background-color: var(--gold-deep); }
.bv-plate__table { position: absolute; left: 22%; top: 31%; width: 36%; aspect-ratio: 1; }
.bv-coins {
  position: absolute; inset: 22%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14%;
}
.bv-coins__c { display: block; transition: transform 300ms var(--ease); }
.bv-coins__c:nth-child(2) { transform: rotate(18deg) translate(6%, -4%); }
.bv-coins__c:nth-child(3) { transform: rotate(-12deg) translate(-4%, 6%); }
.bv-coins__c:nth-child(4) { transform: rotate(30deg); }

.bv-bowl {
  position: absolute; inset: 0;
  border-radius: 50%;
  background-color: var(--bowl);
  display: none;
  transition: transform 700ms var(--ease);
}
.bv-bowl__foot { position: absolute; inset: 27%; border-radius: 50%; background-color: var(--bowl-foot); }
.bv-js .bv-bowl { display: block; }
.bv-plate.is-open .bv-bowl { transform: translate(42%, -66%) rotate(14deg); }
.bv-plate.is-shaking .bv-plate__table { animation: bv-shake 900ms var(--ease); }
@keyframes bv-shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-3%, 1.5%) rotate(-5deg); }
  26% { transform: translate(3%, -2%) rotate(4deg); }
  40% { transform: translate(-2.5%, 2%) rotate(-4deg); }
  54% { transform: translate(2.5%, -1%) rotate(3deg); }
  68% { transform: translate(-1.5%, 1%) rotate(-2deg); }
  82% { transform: translate(1%, 0) rotate(1deg); }
}
.bv-coins__c.is-flip { animation: bv-flip 420ms var(--ease) both; }
@keyframes bv-flip { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; } }

.bv-plate__verdict {
  position: absolute;
  left: 22%; top: calc(31% + 36% + 3%);
  width: 46%;
  margin: 0;
  color: var(--gold-ink);
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.bv-js .bv-plate__verdict { opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.bv-js .bv-plate.is-open .bv-plate__verdict { opacity: 1; transform: none; }

/* Bảng đặt cược */
.bv-bet { margin-top: 44px; max-width: 520px; }
.bv-bet fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bv-bet input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.bv-bet__doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bv-door {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 22px;
  border-radius: 20px;
  background-color: var(--surface-2);
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.bv-door:hover { transform: translateY(-2px); }
.bv-door__name { font-size: var(--t-sub); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.bv-door__note { font-size: var(--t-small); color: var(--muted); }
.bv-door:has(input:checked) { background-color: var(--ink); }
.bv-door:has(input:checked) .bv-door__name,
.bv-door:has(input:checked) .bv-door__note { color: var(--gold-ink); }
.bv-door:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.bv-bet__chips { display: flex; align-items: center; gap: 8px; margin-top: 16px !important; flex-wrap: wrap; }
.bv-site .bv-bet legend { border: 0; width: auto; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.bv-bet__legend { float: left; margin-right: 8px; padding: 0; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 549px) {
  .bv-bet__legend { float: none; display: block; width: 100%; margin: 0 0 4px; }
}
.bv-chip span {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background-color: var(--surface-2);
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.bv-chip:hover span { transform: translateY(-2px); }
.bv-chip input:checked + span { background-color: var(--red); color: var(--red-ink); }
.bv-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

.bv-bet__go { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.bv-bet__go .button { margin: 0; min-height: 60px; padding: 0 40px; font-size: var(--t-body); }
.bv-bet__go .button[disabled] { opacity: 0.7; cursor: progress; }
.bv-bet__balance { margin: 0 !important; color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.bv-bet__balance strong { color: var(--ink); font-size: var(--t-body); }
.bv-bet__log { margin-top: 16px !important; min-height: 3em; font-size: var(--t-small); color: var(--muted); max-width: 46ch; }
.bv-bet__log b { color: var(--ink); font-weight: 600; }

/* Phone và tablet dọc: đĩa xuống dưới chữ, cắt hai bên. */
@media (max-width: 849px), (max-aspect-ratio: 5/6) {
  .bv-hero__row { min-height: 0; padding-top: 40px; padding-bottom: 48px; }
  .bv-hero .bv-hero__text,
  .bv-hero .bv-hero__plate,
  .bv-hero .bv-hero__bet { flex-basis: 100%; max-width: 100%; }
  .bv-hero .bv-hero__text { order: 1; }
  .bv-hero .bv-hero__bet { order: 2; }
  .bv-hero .bv-hero__plate { order: 3; }
  .bv-hero h1 { font-size: clamp(2.75rem, 11.5vw, 5.5rem); }
  .bv-lede { margin-top: 24px !important; }
  .bv-plate {
    --d: min(130vw, 980px);
    position: relative;
    left: auto; top: auto;
    width: 100vw;
    height: calc(var(--d) * 0.6);
    margin: 8px 0 0 calc(50% - 50vw);
    overflow: hidden;
  }
  .bv-plate__disc { width: var(--d); height: var(--d); left: 50%; top: 0; transform: translateX(-50%); inset: 0 auto auto 50%; }
  .bv-plate__table { width: calc(var(--d) * 0.38); left: 50%; top: calc(var(--d) * 0.07); margin-left: calc(var(--d) * -0.19); }
  .bv-plate__verdict { left: 0; right: 0; width: auto; top: auto; bottom: 7%; text-align: center; }
  .bv-plate.is-open .bv-bowl { transform: translate(78%, -34%) rotate(14deg); }
  .bv-bet { margin-top: 28px; max-width: 560px; }
  .bv-bet__log { min-height: 0; }
}
@media (max-width: 549px) {
  .bv-door { padding: 16px 18px; border-radius: 16px; }
  .bv-chip span { width: 56px; height: 56px; }
  .bv-bet__go .button { flex: 1 1 100%; }
}

/* ---------- Đầu section dùng chung ---------- */

.bv-sec-head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 48px; align-items: end; margin-bottom: 72px; }
.bv-sec-head h2 { max-width: 16ch; }
.bv-sec-head p { max-width: 44ch; color: var(--ink); }
@media (max-width: 849px) {
  .bv-sec-head { grid-template-columns: 1fr; margin-bottom: 48px; }
}

/* ---------- 2. Top nhà cái: bảng một cỡ chữ ---------- */

.bv-rank-wrap { margin: 0 -12px; }
.bv-rank { width: 100%; margin: 0; border-collapse: collapse; font-size: var(--t-sub); font-variant-numeric: tabular-nums; }
.bv-rank thead th {
  padding: 0 0 20px 0;
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.bv-site .bv-rank th,
.bv-site .bv-rank td { border: 0; text-align: left; vertical-align: baseline; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.bv-rank tbody th, .bv-rank tbody td { padding: 0.5em 0; font-weight: 400; line-height: 1.3; }
.bv-rank tbody th { width: 33%; padding-left: 12px; }
.bv-rank td.bv-rank__note { width: 33%; color: var(--ink); }
.bv-rank td.bv-rank__bonus { width: 22%; }
.bv-rank .bv-rank__go { text-align: right; white-space: nowrap; padding-right: 12px; }
.bv-rank__row { transition: background-color 160ms var(--ease); }
.bv-rank__row:hover { background-color: var(--surface-2); }
.bv-rank__row:first-child .bv-rank__name,
.bv-rank__row:first-child .bv-rank__score { color: var(--gold); }
.bv-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-right: 16px;
  border-radius: 50%;
  vertical-align: middle;
  font-size: var(--t-small); font-weight: 600; letter-spacing: 0; line-height: 1;
  position: relative; top: -2px;
}
.bv-mono.is-red { background-color: var(--red); color: var(--red-ink); }
.bv-mono.is-white { background-color: var(--coin-white); color: var(--gold-ink); }
.bv-mono.is-gold { background-color: var(--gold); color: var(--gold-ink); }
.bv-rank__score { display: inline-block; min-width: 2.2em; }
.bv-rank__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; margin-left: 16px;
  border-radius: var(--pill);
  background-color: var(--gold); color: var(--gold-ink) !important;
  font-size: var(--t-body); font-weight: 600;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.bv-rank__link:hover { background-color: var(--gold-deep); transform: translateY(-2px); }

@media (max-width: 849px) {
  .bv-rank-wrap { margin: 0; }
  .bv-rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bv-rank, .bv-rank tbody { display: block; }
  .bv-rank__row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name go" "note go" "bonus go";
    align-items: center;
    padding: 14px 0;
  }
  .bv-rank tbody th, .bv-rank tbody td { padding: 0; width: auto !important; }
  .bv-rank tbody th { grid-area: name; font-size: var(--t-sub); padding-left: 0; }
  .bv-rank td.bv-rank__note { grid-area: note; font-size: var(--t-small); color: var(--muted); padding-left: 48px; }
  .bv-rank td.bv-rank__bonus { grid-area: bonus; font-size: var(--t-small); color: var(--muted); padding-left: 48px; }
  .bv-rank .bv-rank__go { grid-area: go; padding-right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: var(--t-body); }
  .bv-rank__link { margin-left: 0; }
}

/* ---------- 3. Bảng cầu ---------- */

.bv-road__board { background-color: var(--surface); border-radius: 24px; padding: 28px; }
.bv-road__legend { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 20px !important; font-size: var(--t-small); color: var(--muted); }
.bv-road__legend b { font-weight: 600; color: var(--ink); }
.bv-road__grid {
  --cell: 34px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, var(--cell));
  grid-auto-columns: var(--cell);
  gap: 8px;
  min-height: calc(6 * var(--cell) + 40px);
}
.bv-road__dot { width: var(--cell); height: var(--cell); }
.bv-road__dot svg { width: 100%; height: 100%; display: block; }
.bv-road__dot.is-chan svg { fill: var(--coin-white); }
.bv-road__dot.is-le svg { fill: var(--red); }
.bv-road__dot.is-mine { animation: bv-pop 420ms var(--ease) both; }
@keyframes bv-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }
.bv-road__board { overflow: hidden; }
.bv-road__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 0; padding: 0 28px; }
.bv-road__stats > div { display: flex; flex-direction: column-reverse; gap: 8px; }
.bv-road__stats dt { font-size: var(--t-body); color: var(--ink); font-weight: 400; }
.bv-road__stats dd { margin: 0; font-size: var(--t-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bv-road-note { margin-top: 48px; display: grid; grid-template-columns: 5fr 7fr; }
.bv-road-note p { grid-column: 2; font-size: var(--t-sub); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.bv-road__noscript { margin-top: 16px; color: var(--muted); }
@media (max-width: 849px) {
  .bv-road__board { padding: 20px; border-radius: 20px; }
  .bv-road__stats { padding: 0; gap: 32px 16px; }
  .bv-road__grid { --cell: 26px; gap: 6px; }
  .bv-road__stats { grid-template-columns: 1fr 1fr; }
  .bv-road-note { display: block; margin-top: 32px; }
}

/* ---------- 4. Bảng ghép cận cảnh ---------- */

.bv-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 104px;
  grid-auto-flow: row dense;
  gap: 8px;
}
.bv-tile { position: relative; overflow: hidden; border-radius: 24px; background-color: var(--surface); }
.bv-tile--6x4 { grid-column: span 6; grid-row: span 4; }
.bv-tile--6x2 { grid-column: span 6; grid-row: span 2; }
.bv-tile--3x4 { grid-column: span 3; grid-row: span 4; }
.bv-tile--3x2 { grid-column: span 3; grid-row: span 2; }
.bv-tile.is-surface-2 { background-color: var(--surface-2); }
.bv-tile.is-gold { background-color: var(--gold); color: var(--gold-ink); }
.bv-tile.is-red { background-color: var(--red); color: var(--red-ink); }
.bv-tile--head { background-color: transparent; display: flex; align-items: flex-start; padding: 4px 0 0; }
.bv-tile--head h2 { max-width: 14ch; }
.bv-tile__ui { position: absolute; inset: 0; pointer-events: none; }
.bv-tile__cap { position: absolute; left: 24px; right: 24px; bottom: 22px; margin: 0 !important; max-width: 36ch; }
.bv-tile__cap strong { display: block; font-size: var(--t-body); font-weight: 600; color: inherit; }
.bv-tile__cap span { display: block; font-size: var(--t-small); }
.bv-tile.is-gold .bv-tile__cap strong, .bv-tile.is-gold .bv-tile__cap span { color: var(--gold-ink); }
.bv-tile.is-red .bv-tile__cap strong, .bv-tile.is-red .bv-tile__cap span { color: var(--red-ink); }
.bv-tile.is-photo .bv-tile__cap { left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; border-radius: 16px; background-color: rgba(18, 17, 16, 0.86); }

.bvx-door { position: absolute; z-index: 1; left: 24px; top: 20px; font-size: var(--t-sub); font-weight: 600; }
.bvx-odds { position: absolute; left: 14px; top: 104px; font-size: clamp(7rem, 14vw, 14rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; white-space: nowrap; }
.bvx-clock { position: absolute; left: 20px; top: 20px; font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 700; letter-spacing: -0.05em; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 0.85; white-space: nowrap; }
.bvx-coins { position: absolute; right: -4%; top: -30%; display: flex; gap: 10px; height: 120%; }
.bvx-coins span { display: block; aspect-ratio: 1; height: 62%; border-radius: 50%; -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat; }
.bvx-coins span:nth-child(2n) { align-self: flex-end; }
.bvx-coins .is-red { background-color: var(--red); }
.bvx-coins .is-white { background-color: var(--coin-white); }
.bvx-session { position: absolute; left: 20px; top: 12px; font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 700; letter-spacing: -0.05em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bvx-road { position: absolute; right: 18px; top: 18px; display: grid; grid-template-rows: repeat(3, 26px); grid-auto-flow: column; grid-auto-columns: 26px; gap: 6px; }
.bvx-road i { display: block; border-radius: 50%; -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat; }
.bvx-road .w { background-color: var(--coin-white); }
.bvx-road .r { background-color: var(--red); }
.bvx-status { position: absolute; left: 24px; top: 18px; font-size: clamp(2.25rem, 3.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.bvx-time { position: absolute; left: 24px; top: calc(18px + clamp(2.25rem, 3.6vw, 3.5rem) + 16px); font-size: var(--t-small); background-color: var(--red-deep); padding: 8px 14px; border-radius: var(--pill); }
.bv-tile--photo .bv-tile__ui { pointer-events: auto; }
.bv-tile--photo .bv-photo { margin: 0; height: 100%; }
.bv-tile--photo .bv-photo__frame { height: 100%; }
.bv-tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.bv-tile--photo .bv-photo__cap { display: none; }

:root { --bv-coin-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 0a50 50 0 1 1 0 100a50 50 0 1 1 0-100zM40 40v20h20V40z'/%3E%3C/svg%3E"); }

@media (max-width: 849px) {
  .bv-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; }
  .bv-tile--6x4 { grid-column: span 2; grid-row: span 3; }
  .bv-tile--6x2 { grid-column: span 2; grid-row: span 2; }
  .bv-tile--3x4, .bv-tile--3x2 { grid-column: span 1; grid-row: span 2; }
  .bv-tile--head { grid-row: span 1; }
  .bv-tile { border-radius: 20px; }
  .bv-tile__cap { left: 16px; right: 16px; bottom: 14px; }
  .bvx-odds { font-size: 25vw; top: 76px; }
  .bvx-clock { font-size: 15vw; left: 14px; top: 16px; }
  .bvx-session { font-size: 8.5vw; left: 14px; top: 8px; }
  .bvx-status { font-size: 9vw; left: 16px; }
  .bvx-time { left: 16px; top: calc(18px + 9vw + 12px); }
  .bv-tile.is-photo .bv-tile__cap span { display: none; }
  .bvx-road { grid-template-rows: repeat(3, 20px); grid-auto-columns: 20px; gap: 5px; right: 12px; top: 12px; }
  .bvx-road i:nth-child(n+10) { display: none; }
}

/* ---------- 5. Dải vàng: 16 cách mở bát ---------- */

.bv-band, .bv-band .section-bg { background-color: var(--gold); }
.bv-band h2, .bv-band p, .bv-band th, .bv-band td { color: var(--gold-ink) !important; }
.bv-band h2 { max-width: 12ch; }
.bv-band .bv-band__copy p { margin-top: 32px; max-width: 40ch; }
.bv-combos { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0 8px; }
.bv-site .bv-combos th, .bv-site .bv-combos td { border: 0; padding: 14px 16px; vertical-align: middle; letter-spacing: -0.01em; text-transform: none; font-size: var(--t-body); }
.bv-combos tbody th { font-weight: 600; white-space: nowrap; border-radius: 16px 0 0 16px; }
.bv-combos__row > * { background-color: var(--gold-deep); }
.bv-combos__row > :last-child { border-radius: 0 16px 16px 0; }
.bv-combos__sets { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.bv-set { display: inline-flex; gap: 4px; }
.bv-set__c { display: block; width: 22px; height: 22px; }
.bv-set__c.is-white > .bv-coin { fill: var(--coin-white); }
.bv-combos__n { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bv-combos__n b { font-weight: 600; margin-right: 0.4em; }
.bv-set__c { width: 18px; height: 18px; }
.bv-set { gap: 3px; }
.bv-combos__sets { gap: 10px 12px; }
.bv-combos__row.is-le > * { background-color: var(--gold-ink); color: var(--gold) !important; }
@media (max-width: 849px) {
  .bv-band .bv-band__copy { margin-bottom: 40px; }
  .bv-site .bv-combos th, .bv-site .bv-combos td { padding: 12px 10px; }
  .bv-combos__row { display: grid; grid-template-columns: 1fr auto; }
  .bv-combos__row > * { border-radius: 0 !important; }
  .bv-combos__row > th { border-radius: 16px 0 0 0 !important; }
  .bv-combos__row > :last-child { border-radius: 0 16px 0 0 !important; }
  .bv-combos__sets { grid-column: 1 / -1; order: 3; border-radius: 0 0 16px 16px !important; }
  .bv-set__c { width: 18px; height: 18px; }
}

/* ---------- 6. Một ván, bốn nhịp: thanh trượt ---------- */

.bv-stages-sec .col { padding: 0; }
.bv-stages {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 88svh;
}
.bv-stages__field { position: absolute; top: 0; bottom: 0; }
.bv-stages__field--l { left: 0; width: 50%; background-color: var(--surface); }
.bv-stages__field--r { right: 0; width: 50%; background-color: var(--surface-2); }
.bv-stages__heading { position: relative; grid-column: 1; grid-row: 1; padding: 120px var(--gutter) 0; max-width: 13ch; box-sizing: content-box; }
.bv-stages__panes { position: relative; grid-column: 1 / -1; grid-row: 1 / 3; display: grid; }
.bv-stage { display: grid; grid-template-columns: 1fr 1fr; }
.bv-stage__text { align-self: end; padding: 48px var(--gutter) 56px; max-width: 520px; }
.bv-stage__clause { font-size: var(--t-sub); margin-bottom: 16px !important; }
.bv-stage__text p { color: var(--ink); }
.bv-stage__ui { display: flex; align-items: center; justify-content: center; padding: 120px var(--gutter) 48px; }
.bv-js .bv-stage { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
.bv-js .bv-stage.is-active { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease); }
.bv-stages__control { position: relative; grid-column: 1 / -1; grid-row: 3; padding: 8px var(--gutter) 56px; }

.bv-slip { width: min(440px, 100%); background-color: var(--bg); border-radius: 28px; padding: 28px; }
.bv-slip p { margin: 0 !important; }
.bv-slip__top { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--muted); margin-bottom: 20px !important; }
.bv-slip__clock { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-slip__line { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; margin-top: 8px !important; border-radius: 16px; background-color: var(--surface); font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.bv-slip__line.is-on { background-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.bv-slip__foot { margin-top: 20px !important; font-size: var(--t-small); color: var(--muted); }
.bv-slip__bowl { display: grid; place-items: center; padding: 8px 0; }
.bv-slip__bowl .bv-bowl { position: relative; display: block; width: 180px; height: 180px; inset: auto; background-color: var(--surface-2); }
.bv-slip__coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px 0; }
.bv-slip__coins span { aspect-ratio: 1; -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat; }
.bv-slip__coins .is-red { background-color: var(--red); }
.bv-slip__coins .is-white { background-color: var(--coin-white); }

.bv-range { position: relative; height: 40px; }
.bv-range::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 8px; border-radius: 8px; background-color: var(--bg); }
.bv-range__fill { position: absolute; left: 0; top: 16px; height: 8px; width: var(--p, 0%); border-radius: 8px; background-color: var(--ink); }
.bv-range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 40px; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
  border: 0; box-shadow: none; padding: 0; /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
}
.bv-range input[type="range"]::-webkit-slider-runnable-track { height: 40px; background: transparent; }
.bv-range input[type="range"]::-moz-range-track { height: 40px; background: transparent; }
.bv-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: 4px; border: 0; border-radius: 6px; background-color: var(--gold); transition: transform 160ms var(--ease); }
.bv-range input[type="range"]::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 6px; background-color: var(--gold); }
.bv-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.bv-range input[type="range"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.bv-stages__names { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.bv-stages__names button {
  min-height: 44px; padding: 0; margin: 0;
  background: none; border: 0;
  color: var(--muted); font-size: var(--t-body); font-weight: 500; text-align: left; text-transform: none; letter-spacing: 0;
  cursor: pointer;
}
.bv-stages__names button:nth-child(2) { text-align: center; padding-right: 20%; }
.bv-stages__names button:nth-child(3) { text-align: center; padding-left: 20%; }
.bv-stages__names button:last-child { text-align: right; }
.bv-stages__names button[aria-pressed="true"] { color: var(--ink); }
.bv-stages__names button:hover { color: var(--gold); }
.bv-stages:not(.is-ready) .bv-stages__control { display: none; }

@media (max-width: 849px) {
  .bv-stages { display: block; min-height: 0; }
  .bv-stages__field { display: none; }
  .bv-stages { background-color: var(--surface); }
  .bv-stages__heading { padding: 80px var(--gutter) 32px; max-width: none; box-sizing: border-box; }
  .bv-stage { grid-template-columns: 1fr; }
  .bv-stage__ui { order: -1; padding: 32px var(--gutter); background-color: var(--surface-2); min-height: 46svh; }
  .bv-stage__text { padding: 32px var(--gutter) 64px; }
  .bv-stage__clause { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .bv-stages__control { padding: 20px var(--gutter) 8px; background-color: var(--surface-2); }
  .bv-js .bv-stages__panes { display: grid; }
  .bv-range input[type="range"]::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: 0; }
  .bv-stages__names { grid-template-columns: 1fr 1fr; }
  .bv-stages__names button { text-align: left !important; padding: 0 !important; }
  .bv-stages.is-ready { display: flex; flex-direction: column; }
  .bv-stages.is-ready .bv-stages__heading { order: 0; }
  .bv-stages.is-ready .bv-stages__control { order: 1; }
  .bv-stages.is-ready .bv-stages__panes { order: 2; }
}

/* ---------- 7. Chi phí kỳ vọng ---------- */

.bv-cost { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; min-height: 76svh; gap: 0 48px; }
.bv-cost__ask { grid-column: 1; grid-row: 1; }
.bv-cost__ledger { grid-column: 2; grid-row: 1; align-self: start; margin: 0; padding-top: 8px; }
.bv-cost__ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px; margin-bottom: 8px; border-radius: 16px; background-color: var(--surface); font-variant-numeric: tabular-nums; }
.bv-cost__ledger dt { font-weight: 400; color: var(--ink); }
.bv-cost__ledger dd { margin: 0; font-weight: 600; white-space: nowrap; }
.bv-cost__ledger .is-net { background-color: var(--surface-2); }
.bv-cost__ledger .is-net dd { color: var(--gold); }
.bv-cost__q { max-width: 14ch; }
.bv-cost__control { margin-top: 40px; width: min(480px, 100%); }
.bv-cost__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px !important; }
.bv-cost__row label { font-size: var(--t-small); color: var(--muted); font-weight: 400; margin: 0; }
.bv-cost__row output { font-size: var(--t-sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-cost .bv-range::before { background-color: var(--surface-2); }
.bv-cost__result { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: 1fr minmax(0, 30ch); gap: 32px 64px; align-items: end; margin-top: 64px; }
.bv-cost__figure {
  margin: 0 !important;
  font-size: clamp(6rem, 17vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bv-cost__unit { display: inline-block; margin-left: 0.25em; font-size: var(--t-sub); letter-spacing: -0.01em; font-weight: 600; color: var(--ink); }
.bv-cost__how { margin: 0 !important; color: var(--ink); }
@media (max-width: 849px) {
  .bv-cost { display: flex; flex-direction: column; min-height: 0; }
  .bv-cost__ask { order: 1; }
  .bv-cost__result { order: 2; }
  .bv-cost__ledger { order: 3; }
  .bv-cost__ledger { margin-top: 40px; padding: 0; align-self: stretch; max-width: 560px; }
  .bv-cost__ledger > div { padding: 16px 18px; }
  .bv-cost__result { display: block; margin-top: 56px; }
  .bv-cost__figure { font-size: 27vw; }
  .bv-cost__unit { display: block; margin: 16px 0 0; }
  .bv-cost__how { margin-top: 24px !important; }
  .bv-cost .bv-range input[type="range"]::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: 0; }
}

/* ---------- 8. Ba kiểu bàn: ảnh trong hình đồng tiền ---------- */

.bv-photo { margin: 0; }
.bv-photo__frame { overflow: hidden; }
.bv-photo img { display: block; width: 100%; height: auto; }
.bv-photo__cap { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.bv-photo__cap:empty { display: none; }
.bv-photo--coin .bv-photo__frame {
  aspect-ratio: 1;
  -webkit-mask: var(--bv-coin-mask) center / contain no-repeat;
  mask: var(--bv-coin-mask) center / contain no-repeat;
}
.bv-photo--coin img { width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms var(--ease); }
.bv-photo--coin .bv-photo__cap { text-align: center; }
.bv-photo--wide img { aspect-ratio: 16 / 10; object-fit: cover; }

.bv-show__media { padding-right: 40px !important; }
.bv-show__text h2 { margin-bottom: 40px !important; }
.bv-site .bv-tabs .nav { margin: 0 0 40px; gap: 28px; flex-wrap: wrap; justify-content: flex-start; }
.bv-site .bv-tabs .nav > li { margin: 0; }
.bv-site .bv-tabs .nav > li > a {
  padding: 8px 0;
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  border: 0;
}
.bv-site .bv-tabs .nav > li > a::after { display: none !important; }
.bv-site .bv-tabs .nav > li.active > a { color: var(--ink); }
.bv-site .bv-tabs .nav > li > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; font-size: var(--t-sub); font-weight: 600; letter-spacing: -0.02em; transition: color 160ms var(--ease); }
.bv-site .bv-tabs .nav > li > a::before {
  content: "" !important; display: block !important; position: static !important; opacity: 1 !important;
  width: 0.6em; height: 0.6em; transform: none !important;
  background-color: var(--surface-2);
  -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat;
  transition: background-color 160ms var(--ease);
}
.bv-site .bv-tabs .nav > li.active > a::before { background-color: var(--gold); }
.bv-site .bv-tabs .nav > li > a:hover { color: var(--gold); }
.bv-site .bv-tabs .nav { gap: 8px 32px; margin-bottom: 56px; }
.bv-site .bv-tabs .tab-panels { padding: 0; border: 0; }
.bv-site .bv-tabs .panel h3 { font-size: var(--t-head); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; margin-bottom: 32px !important; }
.bv-site .bv-tabs .panel p { max-width: 38ch; margin-bottom: 40px; color: var(--ink); }
@media (max-width: 849px) {
  .bv-show__media { padding-right: 15px !important; margin-bottom: 48px; }
}

/* ---------- 9. Bài viết dài với mục lục dính ---------- */

.bv-guide__aside > .col-inner { position: sticky; top: calc(var(--header-h) + 32px); }
.bv-toc { padding-right: 24px; }
.bv-toc__title { font-size: var(--t-small); color: var(--muted); margin-bottom: 16px !important; }
.bv-toc ul { list-style: none; margin: 0; padding: 0; }
.bv-toc li { margin: 0; }
.bv-toc a {
  display: flex; align-items: center; gap: 12px;
  min-height: 40px;
  color: var(--muted);
  font-size: var(--t-small);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.bv-toc a::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background-color: var(--surface-2);
  -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat;
  transition: background-color 160ms var(--ease);
}
.bv-toc a:hover, .bv-toc a.is-current { color: var(--ink); }
.bv-toc a.is-current::before { background-color: var(--gold); }

.bv-article { max-width: 760px; }
.bv-article .bv-article__title { font-size: var(--t-head); max-width: 14ch; margin-bottom: 40px !important; }
.bv-article__lead { font-size: var(--t-sub); line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 24px !important; }
.bv-article h2:not(.bv-article__title) { font-size: var(--t-sub); line-height: 1.15; letter-spacing: -0.02em; margin: 72px 0 20px !important; }
.bv-article h3 { font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 12px !important; }
.bv-article p, .bv-article li { color: var(--ink); font-size: var(--t-body); line-height: 1.6; }
.bv-article p { margin-bottom: 1.1em; }
.bv-article ul, .bv-article ol { margin: 0 0 1.2em; padding-left: 0; }
.bv-article ul { list-style: none; }
.bv-article ul li { position: relative; padding-left: 28px; margin: 0 0 14px; }
.bv-article ul li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px;
  background-color: var(--gold);
  -webkit-mask: var(--bv-coin-mask) center / contain no-repeat; mask: var(--bv-coin-mask) center / contain no-repeat;
}
.bv-article ol { list-style: decimal; padding-left: 1.4em; }
.bv-article ol li { margin: 0 0 14px; padding-left: 6px; }
.bv-article ol li::marker { color: var(--gold); font-weight: 600; }
.bv-article .bv-photo { margin: 48px 0; }
.bv-article .bv-photo--wide { width: calc(100% + 0px); }
.bv-article__note { margin-top: 40px !important; padding: 24px 28px; border-radius: 20px; background-color: var(--surface); font-size: var(--t-small) !important; color: var(--ink); }

.bv-table-wrap { overflow-x: auto; margin: 32px 0; }
.bv-odds { width: 100%; min-width: 560px; margin: 0; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.bv-odds caption { text-align: left; font-size: var(--t-small); color: var(--muted); padding-bottom: 8px; caption-side: top; }
.bv-site .bv-odds th, .bv-site .bv-odds td { border: 0; padding: 14px 16px; font-size: var(--t-small); color: var(--ink); text-transform: none; letter-spacing: 0; text-align: left; }
.bv-odds thead th { font-size: var(--t-small) !important; color: var(--muted) !important; font-weight: 400; padding-top: 0; padding-bottom: 4px; }
.bv-odds tbody > tr > * { background-color: var(--surface); }
.bv-odds tbody > tr > :first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.bv-odds tbody > tr > :last-child { border-radius: 0 12px 12px 0; }
.bv-odds tbody > tr:nth-child(-n+2) > * { background-color: var(--surface-2); }

@media (max-width: 549px) {
  .bv-odds { min-width: 0; }
  .bv-odds tr > :nth-child(2) { display: none; }
  .bv-site .bv-odds th, .bv-site .bv-odds td { padding: 12px 8px; }
}
@media (max-width: 849px) {
  .bv-guide__aside { margin-bottom: 48px; }
  .bv-guide__aside > .col-inner { position: static; }
  .bv-toc { padding: 24px; border-radius: 20px; background-color: var(--surface); }
  .bv-article h2:not(.bv-article__title) { margin-top: 56px !important; }
}

/* ---------- 10. Hỏi đáp: accordion ô đặc ---------- */

.bv-faq__head > .col-inner { position: sticky; top: calc(var(--header-h) + 32px); }
.bv-faq__head h2 { max-width: 9ch; margin-bottom: 32px !important; }
.bv-faq__head p { max-width: 28ch; }
.bv-site .bv-acc .accordion-item { margin: 0 0 8px; border-radius: 20px; background-color: var(--surface-2); overflow: hidden; transition: background-color 200ms var(--ease); }
.bv-site .bv-acc .accordion-title {
  position: relative;
  display: flex; align-items: center;
  min-height: 76px;
  padding: 18px 76px 18px 28px;
  border: 0;
  color: var(--ink);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
}
.bv-site .bv-acc .accordion-title .toggle {
  position: absolute; right: 24px; left: auto; top: 50%;
  width: 28px; height: 28px; margin: -14px 0 0;
  padding: 0; border: 0; background: none; opacity: 1;
}
.bv-site .bv-acc .accordion-title .toggle i { display: none; }
.bv-site .bv-acc .accordion-title .toggle::before,
.bv-site .bv-acc .accordion-title .toggle::after {
  content: ""; position: absolute; left: 6px; top: 12px; width: 16px; height: 3px; border-radius: 2px;
  background-color: currentColor; color: var(--ink);
  transition: transform 200ms var(--ease);
}
.bv-site .bv-acc .accordion-title .toggle::after { transform: rotate(90deg); }
.bv-site .bv-acc .accordion-title.active .toggle::after { transform: rotate(0deg); }
.bv-site .bv-acc .accordion-item:has(.accordion-title.active) { background-color: var(--gold); }
.bv-site .bv-acc .accordion-title.active,
.bv-site .bv-acc .accordion-title.active .toggle::before,
.bv-site .bv-acc .accordion-title.active .toggle::after { color: var(--gold-ink); }
.bv-site .bv-acc .accordion-title.active .toggle::before,
.bv-site .bv-acc .accordion-title.active .toggle::after { background-color: var(--gold-ink); }
.bv-site .bv-acc .accordion-inner { padding: 0 28px 28px; border: 0; }
.bv-site .bv-acc .accordion-inner p { max-width: 52ch; color: var(--gold-ink); font-size: var(--t-body); }
.bv-site .bv-acc .accordion-title:hover { color: var(--gold); }
.bv-site .bv-acc .accordion-title.active:hover { color: var(--gold-ink); }
@media (max-width: 849px) {
  .bv-faq__head { margin-bottom: 40px; }
  .bv-faq__head > .col-inner { position: static; }
  .bv-site .bv-acc .accordion-title { min-height: 64px; padding: 16px 64px 16px 20px; }
  .bv-site .bv-acc .accordion-inner { padding: 0 20px 20px; }
}

/* ---------- 11. Đăng ký: câu có chỗ trống ---------- */

.bv-cta, .bv-cta .section-bg { background-color: var(--red); }
.bv-cta h2 { color: var(--red-ink); max-width: 16ch; }
.bv-signup { margin-top: 48px; }
.bv-signup__line {
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.6;
  color: var(--red-ink);
  margin: 0 !important;
  max-width: 34ch;
}
.bv-signup__line label { display: inline; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }
.bv-site .bv-signup input[type="email"] {
  display: inline-block;
  width: 9em; height: 1.4em;
  margin: 0 0.2em; padding: 0 0.45em;
  border: 0; border-radius: var(--pill);
  background-color: var(--red-deep);
  color: var(--red-ink);
  font: inherit;
  letter-spacing: -0.02em;
  vertical-align: baseline;
  box-shadow: none; /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
}
.bv-site .bv-signup input[type="email"]::placeholder { color: #f2c9c7; opacity: 1; }
.bv-site .bv-signup input[type="email"]:focus { outline: 3px solid var(--gold); outline-offset: 2px; background-color: var(--red-deep); box-shadow: none; } /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
.bv-signup__send {
  display: inline-block;
  height: 1.4em; padding: 0 0.6em; margin: 0;
  border: 0; border-radius: var(--pill);
  background-color: var(--gold); color: var(--gold-ink);
  font: inherit; letter-spacing: -0.02em; text-transform: none; line-height: 1.4em;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.bv-signup__send:hover { background-color: var(--gold-deep); transform: translateY(-2px); }
.bv-signup__note { margin-top: 28px !important; max-width: 52ch; font-size: var(--t-small); color: var(--red-ink); }
@media (max-width: 549px) {
  .bv-signup__line { line-height: 1.5; }
  .bv-site .bv-signup input[type="email"] { display: block; width: 100%; height: 1.9em; margin: 10px 0; }
  .bv-signup__send { height: 1.9em; line-height: 1.9em; padding: 0 0.8em; }
}

/* ---------- 12. Footer ---------- */

.bv-mark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 34svh; max-height: 360px; min-height: 160px; }
.bv-mark__c { display: grid; place-items: center; }
.bv-mark__c .bv-coin { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; }
.bv-foot__links { margin-top: 96px; row-gap: 40px; }
.bv-foot .bv-foot__h { font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px !important; }
.bv-foot ul { list-style: none; margin: 0; padding: 0; }
.bv-foot li { margin: 0; }
.bv-foot li a, .bv-foot p a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); font-size: var(--t-small); text-decoration: none; transition: color 160ms var(--ease); }
.bv-foot li a:hover, .bv-foot p a:hover { color: var(--gold); }
.bv-foot p { font-size: var(--t-small); color: var(--ink); max-width: 30ch; }
.bv-foot__base { margin-top: 72px; }
.bv-foot__credits p { max-width: 110ch; font-size: var(--t-small); color: var(--muted); }
.bv-foot__credits a { display: inline !important; min-height: 0 !important; font-size: inherit !important; text-decoration: underline !important; text-underline-offset: 3px; color: var(--ink) !important; }
.bv-foot__copy { margin-top: 16px !important; }
@media (max-width: 549px) {
  .bv-mark { height: 22svh; min-height: 0; }
  .bv-foot__links { margin-top: 56px; }
}

/* ---------- Chuyển động ---------- */

.bv-js [data-reveal] { opacity: 0; transform: translateY(24px); }
.bv-js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.bv-js .bv-shutter .bv-photo__frame { clip-path: inset(100% 0 0 0); }
.bv-js .bv-shutter .bv-photo__frame img { transform: scale(1.12); }
.bv-js .bv-shutter.is-in .bv-photo__frame { clip-path: inset(0 0 0 0); transition: clip-path 1100ms var(--ease); }
.bv-js .bv-shutter.is-in .bv-photo__frame img { transform: none; transition: transform 1400ms var(--ease), opacity 300ms var(--ease); }
.bv-tile--photo img { animation: bv-drift 18s ease-in-out infinite alternate; }
@keyframes bv-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-3%, 2%); } }
.bv-plate__disc { animation: bv-plate-in 1100ms var(--ease) both; }
@keyframes bv-plate-in { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 849px), (max-aspect-ratio: 5/6) {
  @keyframes bv-plate-in { from { transform: translateX(-50%) scale(0.92); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bv-js [data-reveal] { opacity: 1; transform: none; }
  .bv-js .bv-shutter .bv-photo__frame { clip-path: none; }
  .bv-js .bv-shutter .bv-photo__frame img { transform: none; }
  .bv-tile--photo img, .bv-plate__disc { animation: none; }
  .bv-plate.is-shaking .bv-plate__table { animation: none; }
  .bv-coins__c.is-flip, .bv-road__dot.is-mine { animation: none; }
  .bv-bowl, .bv-plate__verdict, .bv-stage { transition: none !important; }
  .bv-site .button:hover, .bv-door:hover, .bv-chip:hover span, .bv-rank__link:hover, .bv-signup__send:hover { transform: none; }
}

/* ---------- Khoảng cách Flatsome không chỉnh được bằng thuộc tính section ---------- */

.bv-site .bv-mosaic-sec { padding-bottom: 140px !important; }
.bv-site .bv-foot { padding-bottom: 48px !important; }
.bv-site .header-main .container { max-width: calc(var(--max) + 2 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 849px) {
  .bv-site .bv-mosaic-sec { padding-bottom: 80px !important; }
}
.bv-rank thead th:first-child { padding-left: 12px; }
.bv-rank thead th:last-child { padding-right: 12px; }

/* ---------- Mặc định của Flatsome cần gỡ ---------- */

/* Footer block đã có dòng bản quyền riêng; Flatsome luôn in thêm absolute footer khi dùng footer block. */
.bv-site .absolute-footer { display: none; }
.bv-site .back-to-top { display: none !important; }
.bv-site .bv-toc li, .bv-site .bv-foot li, .bv-site .bv-article li { margin-left: 0; }
.bv-site dl { font-size: inherit; opacity: 1; text-transform: none; }
.bv-site dt, .bv-site dd { text-transform: none; letter-spacing: 0; }
.bv-site #logo { width: auto !important; }
.bv-site #logo a { white-space: nowrap; }
.bv-site .header-button .button { white-space: nowrap; }
@media (max-width: 549px) {
  .bv-site #logo a { font-size: 1.25rem; gap: 8px; }
  .bv-site .header-button .button { min-height: 40px; padding: 0 16px; font-size: var(--t-small); }
}
@media (max-width: 849px) {
  .bv-site .bv-show__media > .col-inner,
  .bv-site .bv-faq__head > .col-inner,
  .bv-site .bv-guide__aside > .col-inner { padding-bottom: 48px; }
}

/* ======================================================================
   Bố cục bảng điều khiển: nhà cái | bàn xóc đĩa | bảng điểm,
   rồi lịch sử phiên | thống kê | bảng cầu. Các panel là giao diện ứng dụng (data-ui).
   ====================================================================== */

:root { --red-text: #f2585d; --gate-chan: #2b1817; --gate-chan-on: #3b1d1b; --gate-le: #23211e; --gate-le-on: #302d28; }

.bv-site .bv-dash-title,
.bv-site .bv-dash-row { padding-left: calc(var(--gutter) - 8px); padding-right: calc(var(--gutter) - 8px); }
.bv-site .bv-dash-title > .col,
.bv-site .bv-dash-row > .col { padding: 0 8px 16px; }
.bv-dash-row > .col > .col-inner { height: 100%; }

.bv-dash-head {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 44ch);
    justify-content: space-between;
    align-items: center;
    gap: 16px 48px;
    padding: 8px 0 16px;
}

.bv-site .bv-dash-head h1 {
    font-size: var(--t-head);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    max-width: none;
    align-self: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bv-dash-head p {
    margin: 0 !important;
    color: var(--ink);
}

.bv-panel { display: flex; flex-direction: column; height: 100%; padding: 20px; border-radius: 20px; background-color: var(--surface); }
.bv-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.bv-site .bv-panel__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.bv-panel__more { font-size: var(--t-small); color: var(--gold) !important; text-decoration: none; }
.bv-panel__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.bv-panel__note { font-size: var(--t-small); color: var(--muted); }
.bv-panel__empty { color: var(--muted); font-size: var(--t-small); }
.bv-panel button { text-transform: none; letter-spacing: 0; font-family: var(--font); margin: 0; }

/* Cột trái và phải lấy chiều cao theo bàn chơi ở giữa, danh sách cuộn bên trong. */
@media (min-width: 1200px) {
  .bv-dash-houses > .col-inner,
  .bv-dash-leaders > .col-inner { position: relative; min-height: 560px; }
  .bv-dash-houses .bv-panel,
  .bv-dash-leaders .bv-panel { position: absolute; inset: 0; }
}

/* Nhà cái */
.bv-houses__list { list-style: none; counter-reset: bvh; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.bv-house {
  counter-increment: bvh;
  display: grid; grid-template-columns: 18px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  margin: 0; padding: 10px 8px; border-radius: 14px;
  transition: background-color 160ms var(--ease);
}
.bv-house::before { content: counter(bvh); font-size: var(--t-small); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.bv-house:first-child::before { color: var(--gold); font-weight: 600; }
.bv-house:hover { background-color: var(--surface-2); }
.bv-house .bv-mono { margin: 0; top: 0; }
.bv-house__name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.bv-house:first-child .bv-house__name { color: var(--gold); }
.bv-house__note { display: block; font-size: var(--t-small); color: var(--muted); line-height: 1.35; }
.bv-house__score { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-house__go {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--pill);
  background-color: var(--gold); color: var(--gold-ink) !important; font-size: var(--t-small); font-weight: 600; text-decoration: none;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.bv-house__go:hover { background-color: var(--gold-deep); transform: translateY(-1px); }
.bv-houses__all {
  display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px;
  border-radius: var(--pill); background-color: var(--surface-2); color: var(--ink) !important;
  font-size: var(--t-small); font-weight: 600; text-decoration: none; transition: background-color 160ms var(--ease);
}
.bv-houses__all:hover { background-color: var(--bg); }

/* Bàn xóc đĩa */
.bv-table { padding: 0; overflow: hidden; }
.bv-table__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background-color: var(--surface-2); }
.bv-table__bar p { margin: 0 !important; font-size: var(--t-small); color: var(--muted); }
.bv-table__session b { color: var(--gold); font-size: 1rem; font-variant-numeric: tabular-nums; }
.bv-table__balance b { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.bv-table__copy { min-height: 32px; margin-left: 8px !important; padding: 0 12px; border: 0; border-radius: var(--pill); background-color: var(--bg); color: var(--ink); font-size: var(--t-small); font-weight: 500; cursor: pointer; transition: background-color 160ms var(--ease); }
.bv-table__copy:hover { background-color: var(--surface); }

.bv-table__stage { display: grid; grid-template-columns: 1fr 1.2fr 1fr; }
.bv-gate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 16px 20px; text-align: center; cursor: pointer; transition: background-color 200ms var(--ease); }
.bv-gate p { margin: 0 !important; }
.bv-gate--chan { background-color: var(--gate-chan); }
.bv-gate--le { background-color: var(--gate-le); }
.bv-gate--chan.is-picked { background-color: var(--gate-chan-on); outline: 2px solid var(--red-text); outline-offset: -2px; }
.bv-gate--le.is-picked { background-color: var(--gate-le-on); outline: 2px solid var(--ink); outline-offset: -2px; }
.bv-gate__name { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.bv-gate--chan .bv-gate__name { color: var(--red-text); }
.bv-gate--le .bv-gate__name { color: var(--ink); }
.bv-gate__odds { font-size: 1.5rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 12px !important; }
.bv-gate__pool span { display: block; font-size: var(--t-small); color: var(--muted); }
.bv-gate__pool b { font-size: 1.25rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bv-gate__meta { font-size: var(--t-small); color: var(--muted); }
.bv-gate__meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-gate__bet {
  width: 100%; min-height: 48px; margin-top: 16px !important; border: 0; border-radius: var(--pill);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}
.bv-gate--chan .bv-gate__bet { background-color: var(--red); color: var(--red-ink); }
.bv-gate--le .bv-gate__bet { background-color: var(--ink); color: var(--gold-ink); }
.bv-gate__bet:hover { transform: translateY(-2px); }
.bv-gate__bet:active { transform: scale(0.97); }
.bv-gate__bet[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.bv-table__center { display: flex; flex-direction: column; align-items: center; padding: 20px 12px 16px; background-color: var(--bg); }
.bv-dish { position: relative; width: min(230px, 86%); aspect-ratio: 1; }
.bv-dish__disc { position: absolute; inset: 0; border-radius: 50%; background-color: var(--gold); }
.bv-dish__well { position: absolute; inset: 9%; border-radius: 50%; background-color: var(--gold-deep); }
.bv-dish__table { position: absolute; inset: 14%; }
.bv-dish .bv-coins { inset: 20%; gap: 12%; }
.bv-dish.is-open .bv-bowl { transform: translate(52%, -48%) rotate(14deg); }
.bv-dish.is-shaking .bv-dish__table { animation: bv-shake 900ms var(--ease); }
.bv-table__clock { margin: 14px 0 0 !important; text-align: center; }
.bv-table__clock b { display: block; font-size: 3.25rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.bv-table__clock span { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.bv-table.is-hurry .bv-table__clock b { color: var(--red-text); }
.bv-table.is-locked .bv-table__clock b { color: var(--gold); }
.bv-table__verdict { min-height: 1.5em; margin: 8px 0 0 !important; font-size: 1rem; font-weight: 600; color: var(--gold); text-align: center; }

.bv-table__strip { padding: 14px 20px; background-color: var(--surface); }
.bv-table__label { margin: 0 0 8px !important; font-size: var(--t-small); color: var(--muted); text-align: center; }
.bv-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.bv-strip i, .bv-dot { display: block; width: 22px; height: 22px; border-radius: 50%; }
.bv-strip i.is-chan, .bv-dot.is-chan { background-color: var(--red); }
.bv-strip i.is-le, .bv-dot.is-le { background-color: var(--coin-white); }
.bv-strip i:last-child { animation: bv-pop 420ms var(--ease) both; }

.bv-table__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 18px 20px; background-color: var(--surface); }
.bv-chipc {
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  background-color: var(--surface-2); color: var(--ink);
  font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  outline: 3px dashed var(--bg); outline-offset: -9px;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.bv-chipc:hover { transform: translateY(-3px); }
.bv-chipc.is-on { background-color: var(--gold); color: var(--gold-ink); outline-color: var(--gold-deep); transform: translateY(-3px); }
.bv-chipc:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.bv-table__foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 14px 20px; background-color: var(--surface-2); }
.bv-table__reset { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--pill); background-color: var(--bg); color: var(--ink); font-size: var(--t-small); font-weight: 600; cursor: pointer; }
.bv-table__reset:hover { background-color: var(--surface); }
.bv-stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; min-height: 48px; border-radius: var(--pill); background-color: var(--bg); }
.bv-stepper button { height: 48px; border: 0; border-radius: var(--pill); background: none; color: var(--gold); font-size: 1.375rem; font-weight: 600; cursor: pointer; }
.bv-stepper button:hover { background-color: var(--surface); }
.bv-stepper output { text-align: center; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.bv-table__place { min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--pill); background-color: var(--gold); color: var(--gold-ink); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.bv-table__place:hover { background-color: var(--gold-deep); transform: translateY(-2px); }
.bv-table__place[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.bv-table__log { margin: 0 !important; padding: 0 20px 14px; background-color: var(--surface-2); font-size: var(--t-small); color: var(--muted); min-height: 3.2em; }
.bv-table__log b { color: var(--ink); font-weight: 600; }

/* Bảng điểm */
.bv-leaders__list { list-style: none; flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.bv-leader { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0; padding: 8px; border-radius: 14px; transition: background-color 300ms var(--ease); }
.bv-leader__rank { font-size: var(--t-small); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.bv-leader__ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.bv-leader__name { font-size: 1rem; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bv-leader__pts { font-size: 1rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-leader.is-you { background-color: var(--surface-2); }
.bv-leader.is-you .bv-leader__name { color: var(--gold); font-weight: 600; }
.bv-leader.is-up { animation: bv-flash 900ms var(--ease); }
@keyframes bv-flash { from { background-color: var(--surface-2); } to { background-color: transparent; } }

/* Lịch sử phiên */
.bv-history__wrap { flex: 1; overflow: hidden; }
.bv-history__table { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bv-site .bv-history__table th,
.bv-site .bv-history__table td { padding: 9px 6px; border: 0; font-size: var(--t-small); letter-spacing: 0; text-transform: none; text-align: left; color: var(--ink); white-space: nowrap; }
.bv-site .bv-history__table th { color: var(--muted); font-weight: 400; padding-top: 0; }
.bv-history__table tbody tr:nth-child(odd) td { background-color: var(--bg); }
.bv-history__table tbody tr td:first-child { border-radius: 10px 0 0 10px; color: var(--gold); font-weight: 600; }
.bv-history__table tbody tr td:last-child { border-radius: 0 10px 10px 0; text-align: right; }
.bv-site .bv-history__table th:last-child { text-align: right; }
.bv-history__coins { display: inline-flex; gap: 3px; vertical-align: middle; }
.bv-history__coins i { display: block; width: 14px; height: 14px; border-radius: 50%; }
.bv-history__coins i.r { background-color: var(--red); }
.bv-history__coins i.w { background-color: var(--coin-white); }
.bv-history__door.is-chan { color: var(--red-text) !important; font-weight: 600; }
.bv-history__door.is-le { font-weight: 600; }
.bv-history__table tbody tr.is-new td { animation: bv-flash 1200ms var(--ease); }

/* Thanh lọc dùng chung */
.bv-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bv-seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--pill); background-color: var(--surface-2); color: var(--muted); font-size: var(--t-small); font-weight: 600; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.bv-seg button:hover { color: var(--ink); }
.bv-seg button.is-on { background-color: var(--gold); color: var(--gold-ink); }

/* Thống kê */
.bv-stats__body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; flex: 1; }
.bv-stats__total { margin: 0 !important; }
.bv-stats__total b { display: block; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.bv-stats__total span { display: block; margin-top: 6px; font-size: var(--t-small); color: var(--muted); }
.bv-donut { width: 140px; height: 140px; transform: rotate(-90deg); }
.bv-donut circle { fill: none; stroke-width: 16; }
.bv-donut__track { stroke: var(--coin-white); }
.bv-donut__arc { stroke: var(--red); stroke-dasharray: 0 302; transition: stroke-dasharray 600ms var(--ease); }
.bv-donut text { transform: rotate(90deg); transform-origin: 60px 60px; fill: var(--ink); text-anchor: middle; font-family: var(--font); }
.bv-donut__pct { font-size: 22px; font-weight: 700; }
.bv-donut__lbl { font-size: 11px; fill: var(--muted) !important; }
.bv-stats__legend { list-style: none; margin: 16px 0 0; padding: 0; }
.bv-stats__legend li { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 8px 0; font-size: var(--t-small); }
.bv-stats__legend li span { display: inline-flex; align-items: center; gap: 8px; }
.bv-stats__legend li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bv-stats__legend i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.bv-stats__legend i.r { background-color: var(--red); }
.bv-stats__legend i.w { background-color: var(--coin-white); }
.bv-stats__legend i.g { background-color: var(--gold); }

/* Bảng cầu */
.bv-beads__board { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 16px; background-color: var(--bg); overflow: hidden; }
.bv-beads__grid { --c: 22px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, var(--c)); grid-auto-columns: var(--c); gap: 5px; }
.bv-beads__grid i { display: block; border-radius: 50%; background-color: var(--surface-2); }
.bv-beads__grid i.is-chan { background-color: var(--red); }
.bv-beads__grid i.is-le { background-color: var(--coin-white); }
.bv-beads__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0 !important; font-size: var(--t-small); color: var(--muted); }
.bv-beads__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bv-beads__legend .is-chan::before, .bv-beads__legend .is-le::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.bv-beads__legend .is-chan::before { background-color: var(--red); }
.bv-beads__legend .is-le::before { background-color: var(--coin-white); }

/* Kích thước trung gian: bàn chơi lên đầu, hai panel phụ chia đôi bên dưới. */
@media (min-width: 850px) and (max-width: 1199px) {
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-table { order: -1; flex-basis: 100%; max-width: 100%; }
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-houses,
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-leaders { flex-basis: 50%; max-width: 50%; }
  .bv-dash-row--2 > .bv-dash-history { flex-basis: 100%; max-width: 100%; }
  .bv-dash-row--2 > .bv-dash-stats, .bv-dash-row--2 > .bv-dash-beads { flex-basis: 50%; max-width: 50%; }
}
@media (max-width: 1199px) {
  .bv-dash-table { order: -1; }
  .bv-houses__list, .bv-leaders__list { max-height: 460px; }
}
@media (max-width: 849px) {
  .bv-dash-head { grid-template-columns: 1fr; padding-bottom: 12px; }
  .bv-site .bv-dash-head h1 { font-size: clamp(2rem, 9vw, 3rem); }
}
@media (max-width: 699px) {
  .bv-table__stage { grid-template-columns: 1fr 1fr; }
  .bv-table__center { grid-column: 1 / -1; order: -1; }
  .bv-gate { padding: 18px 12px 16px; }
  .bv-gate__name { font-size: 1.75rem; }
  .bv-gate__odds { font-size: 1.25rem; }
  .bv-table__bar { flex-wrap: wrap; padding: 12px 16px; }
  .bv-table__strip, .bv-table__chips { padding-left: 16px; padding-right: 16px; }
  .bv-table__chips { display: grid; grid-template-columns: repeat(3, 60px); justify-content: center; }
  .bv-table__foot { grid-template-columns: 1fr 1fr; padding: 14px 16px; }
  .bv-stepper { grid-column: 1 / -1; }
  .bv-table__log { padding: 0 16px 14px; }
  .bv-strip i { width: 18px; height: 18px; }
  .bv-history__table th:nth-child(2), .bv-history__table td:nth-child(2) { display: none; }
  .bv-house { grid-template-columns: 16px 40px minmax(0, 1fr) auto; }
  .bv-house__score { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-dish.is-shaking .bv-dish__table, .bv-strip i:last-child, .bv-leader.is-up, .bv-history__table tbody tr.is-new td { animation: none; }
  .bv-donut__arc { transition: none; }
  .bv-chipc:hover, .bv-chipc.is-on, .bv-gate__bet:hover, .bv-table__place:hover, .bv-house__go:hover { transform: none; }
}
.bv-site .row.bv-dash-title,
.bv-site .row.bv-dash-row { padding-left: calc(var(--gutter) - 8px); padding-right: calc(var(--gutter) - 8px); }

/* Chuyển động: dashboard xuất hiện khi tải (CSS, xong trong khoảng 1 giây); bài viết chỉ trượt nhẹ khi cuộn,
   không dùng opacity nên nội dung không bao giờ bị ẩn. */
@keyframes bv-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bv-settle { from { transform: translateY(28px) scale(0.985); } to { transform: none; } }
.bv-dash-head h1, .bv-dash-head p, .bv-dash-row .bv-panel { animation: bv-rise 700ms var(--ease) both; }
.bv-dash-head p { animation-delay: 80ms; }
.bv-dash-row > .col:nth-child(1) .bv-panel { animation-delay: 140ms; }
.bv-dash-row > .col:nth-child(2) .bv-panel { animation-delay: 200ms; }
.bv-dash-row > .col:nth-child(3) .bv-panel { animation-delay: 260ms; }
.bv-dash-row--2 > .col:nth-child(1) .bv-panel { animation-delay: 320ms; }
.bv-dash-row--2 > .col:nth-child(2) .bv-panel { animation-delay: 380ms; }
.bv-dash-row--2 > .col:nth-child(3) .bv-panel { animation-delay: 440ms; }
@supports (animation-timeline: view()) {
  .bv-article .bv-photo, .bv-article h2, .bv-article .bv-table-wrap, .bv-toc {
    animation: bv-settle linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bv-dash-head h1, .bv-dash-head p, .bv-dash-row .bv-panel,
  .bv-article .bv-photo, .bv-article h2, .bv-article .bv-table-wrap, .bv-toc { animation: none; }
}

/* Tinh chỉnh sau lượt xem thứ nhất */
.bv-dash-head { grid-template-columns: minmax(0, 1fr) minmax(0, 38ch); }
.bv-house { grid-template-columns: 18px 40px minmax(0, 1fr) auto; }
.bv-house__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-house__score { display: inline; margin-left: 4px; font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.bv-house:first-child .bv-house__score { color: var(--gold); }
.bv-house__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-leaders .bv-panel__head { flex-direction: column; align-items: flex-start; gap: 2px; }
.bv-dish.is-open .bv-bowl { transform: translate(50%, -50%) scale(0.46) rotate(14deg); }
@media (max-width: 849px) {
  .bv-dash-head { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .bv-house { grid-template-columns: 16px 40px minmax(0, 1fr) auto; }
  .bv-house__score { display: inline; }
  .bv-table__reset, .bv-table__place { width: 100%; }
}
@media (max-width: 699px) {
  .bv-dish { width: min(200px, 62%); }
  .bv-table__center { padding: 16px 12px 12px; }
  .bv-table__clock b { font-size: 2.75rem; }
}
.bv-panel__more, .bv-panel__note { white-space: nowrap; }
@media (max-width: 699px) {
  .bv-stepper { grid-row: 1; }
}

/* ---------- Logo nhà cái từ mục "Nhà cái" ---------- */
.bv-house { grid-template-columns: 18px auto minmax(0, 1fr) auto; }
.bv-house__logo { display: block; width: 84px; height: 35px; object-fit: cover; border-radius: 8px; }
.bv-house__logo[src=""] { display: none; }
.bv-house__logo:not([src=""]) + .bv-mono { display: none; }
@media (max-width: 699px) {
  .bv-house { grid-template-columns: 16px auto minmax(0, 1fr) auto; }
  .bv-house__logo { width: 72px; height: 30px; }
}

/* ---------- Đĩa 3D: các lớp ảnh render sẵn (tools/render-3d) ---------- */
.bv-dish--3d { width: min(300px, 100%); aspect-ratio: 5 / 4; margin: -6px 0 -10px; }
.bv-dish--3d .bv-dish__rig { position: absolute; inset: 0; transform-origin: 50% 62%; }
.bv-dish__layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.bv-coins3d { position: absolute; inset: 0; }
.bv-dish--3d .bv-coins__c { position: absolute; inset: 0; transform: none !important; }
.bv-dish--3d .bv-coins__c.is-red .w, .bv-dish--3d .bv-coins__c.is-white .r { display: none; }
.bv-dish--3d .bv-coins__c.is-flip { animation: bv-coin-in 380ms var(--ease) both; }
@keyframes bv-coin-in { from { opacity: 0; } to { opacity: 1; } }
.bv-dish__shadow { transition: opacity 450ms var(--ease); }
.bv-dish__bowl { transform-origin: 50% 55%; transition: transform 650ms cubic-bezier(0.3, 0.7, 0.2, 1); }
.bv-dish--3d.is-open .bv-dish__bowl { transform: translate(34%, -38%) rotate(18deg) scale(0.88); }
.bv-dish--3d.is-open .bv-dish__shadow { opacity: 0; }
.bv-dish--3d.is-shaking .bv-dish__rig { animation: bv-shake-hard 1400ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.bv-dish--3d.is-shaking .bv-dish__bowl { animation: bv-rattle 1400ms linear both; }
@keyframes bv-shake-hard {
  0% { transform: none; }
  6% { transform: translate(-10%, -6%) rotate(-12deg); }
  13% { transform: translate(10%, 2%) rotate(10deg); }
  20% { transform: translate(-9%, -9%) rotate(-12deg); }
  27% { transform: translate(10%, 0) rotate(11deg); }
  34% { transform: translate(-8%, -8%) rotate(-10deg); }
  41% { transform: translate(9%, 1%) rotate(9deg); }
  48% { transform: translate(-7%, -6%) rotate(-8deg); }
  55% { transform: translate(7%, 0) rotate(7deg); }
  62% { transform: translate(-5%, -4%) rotate(-5deg); }
  69% { transform: translate(4%, 0) rotate(4deg); }
  76% { transform: translate(-2%, -2%) rotate(-2deg); }
  84% { transform: translate(0, -9%) scale(1.04); }
  91% { transform: translate(0, 2%) scale(0.99); }
  95% { transform: translate(0, -1%); }
  100% { transform: none; }
}
@keyframes bv-rattle {
  0%, 100% { transform: none; }
  8% { transform: translate(-2%, -3%) rotate(-4deg); }
  16% { transform: translate(2%, 1%) rotate(4deg); }
  24% { transform: translate(-2%, -3%) rotate(-3deg); }
  32% { transform: translate(2%, 0) rotate(3deg); }
  40% { transform: translate(-1%, -2%) rotate(-3deg); }
  48% { transform: translate(1%, 0) rotate(2deg); }
  56% { transform: translate(-1%, -1%) rotate(-2deg); }
  64% { transform: translate(1%, 0) rotate(1deg); }
  84% { transform: translate(0, -2%); }
}
.bv-table.is-shaking-hard { animation: bv-table-jolt 1400ms linear both; }
@keyframes bv-table-jolt {
  0%, 100% { transform: none; }
  10%, 30%, 50% { transform: translateX(-2px); }
  20%, 40%, 60% { transform: translateX(2px); }
  91% { transform: translateY(2px); }
}
@media (max-width: 699px) {
  .bv-dish--3d { width: min(280px, 82%); }
}

/* ---------- Avatar vẽ riêng cho người chơi mô phỏng ---------- */
.bv-leader__ava { overflow: hidden; padding: 0; background: none; }
.bv-leader__ava svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .bv-dish--3d.is-shaking .bv-dish__rig, .bv-dish--3d.is-shaking .bv-dish__bowl, .bv-table.is-shaking-hard, .bv-dish--3d .bv-coins__c.is-flip { animation: none; }
  .bv-dish__bowl, .bv-dish__shadow { transition: none; }
}
.bv-dish--3d { width: min(320px, 108%); margin: -14px 0 -18px; }
.bv-dish--3d.is-open .bv-dish__bowl { transform: translate(26%, -30%) rotate(16deg) scale(0.78); }

/* Panel hẹp (laptop 1200-1400px): panel tự gọn theo chiều rộng của chính nó. */
.bv-houses, .bv-leaders { container-type: inline-size; }
@container (max-width: 330px) {
  .bv-house { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .bv-house::before { display: none; }
  .bv-house__logo { width: 66px; height: 28px; border-radius: 6px; }
  .bv-house__go { padding: 0 11px; min-height: 32px; }
  .bv-leader { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .bv-leader__rank { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-houses,
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-leaders { flex-basis: 27%; max-width: 27%; }
  .bv-dash-row:not(.bv-dash-row--2) > .bv-dash-table { flex-basis: 46%; max-width: 46%; }
  .bv-gate { padding-left: 12px; padding-right: 12px; }
}
.bv-site .bv-house, .bv-site .bv-leader, .bv-site .bv-stats__legend li { margin-left: 0; margin-bottom: 0; }

/* ======================================================================
   Blog: bài viết (single.php) và danh sách bài (home, archive, search)
   ====================================================================== */

.bv-wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bv-blog { padding-bottom: 140px; }
.bv-blog a { text-decoration: none; }
.bv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 !important; font-size: var(--t-small); color: var(--muted); }
.bv-meta a { color: var(--ink); font-weight: 500; transition: color 160ms var(--ease); }
.bv-meta a:hover { color: var(--gold); }
.bv-meta__dot { color: var(--muted); }
.bv-thumb--empty { display: grid; place-items: center; background-color: var(--surface-2); }
.bv-thumb--empty svg { width: 34%; fill: var(--gold); }

/* Bài viết */
.bv-post__head { padding-top: 72px; padding-bottom: 40px; }
.bv-site .bv-post__title { font-size: var(--t-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 22ch; margin: 0 0 24px; }
.bv-post__lede { max-width: 56ch; margin: 0 0 24px !important; font-size: var(--t-sub); line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.bv-post__cover { margin: 0 auto 64px; }
.bv-post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; }
.bv-post__cover figcaption { margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.bv-post__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.bv-post__main { min-width: 0; }
.bv-post__content { max-width: 720px; }
.bv-post__content > :first-child { margin-top: 0 !important; }
.bv-post__content h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.bv-post__content img { border-radius: 16px; height: auto; }
.bv-post__content figure { margin: 40px 0; }
.bv-post__content figcaption, .bv-post__content .wp-caption-text { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }
.bv-post__content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.bv-post__content blockquote { margin: 40px 0; padding: 24px 28px; border: 0; border-radius: 20px; background-color: var(--surface); font-size: var(--t-sub); line-height: 1.4; color: var(--ink); }
.bv-post__content blockquote p { font-size: inherit; }

.bv-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0 !important; }
.bv-post__tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background-color: var(--surface-2); color: var(--ink); font-size: var(--t-small); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.bv-post__tags a:hover { background-color: var(--gold); color: var(--gold-ink); }

.bv-post__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding: 20px 24px; border-radius: 20px; background-color: var(--surface); }
.bv-post__share-label { margin-right: auto; font-size: 1rem; font-weight: 600; }
.bv-post__share a, .bv-post__share button { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 16px; border: 0; border-radius: var(--pill); background-color: var(--surface-2); color: var(--ink); font-family: var(--font); font-size: var(--t-small); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.bv-post__share a:hover, .bv-post__share button:hover { background-color: var(--gold); color: var(--gold-ink); }

.bv-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.bv-post__nav-item { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background-color: var(--surface); transition: background-color 160ms var(--ease); }
.bv-post__nav-item:hover { background-color: var(--surface-2); }
.bv-post__nav-item.is-next { grid-column: 2; text-align: right; }
.bv-post__nav-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.bv-post__nav-dir { font-size: var(--t-small); color: var(--gold); }

.bv-post__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.bv-post__aside .bv-panel { height: auto; }
.bv-post__toc-title, .bv-post__play-title { margin: 0 0 12px !important; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.bv-post__toc ol { list-style: none; margin: 0; padding: 0; }
.bv-site .bv-post__toc li { margin: 0; }
.bv-post__toc a { display: block; padding: 7px 0 7px 16px; border-radius: 0; color: var(--muted); font-size: var(--t-small); line-height: 1.4; transition: color 160ms var(--ease); position: relative; }
.bv-post__toc a::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background-color: var(--surface-2); transition: background-color 160ms var(--ease); }
.bv-post__toc a.is-sub { padding-left: 32px; }
.bv-post__toc a.is-sub::before { left: 16px; }
.bv-post__toc a:hover, .bv-post__toc a.is-current { color: var(--ink); }
.bv-post__toc a.is-current::before { background-color: var(--gold); }
.bv-post__play { background-color: var(--gold); }
.bv-post__play .bv-post__play-title, .bv-post__play .bv-post__play-text { color: var(--gold-ink); }
.bv-post__play-text { margin: 0 0 16px !important; font-size: var(--t-small); }
.bv-post__play-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--pill); background-color: var(--gold-ink); color: var(--gold) !important; font-weight: 700; transition: transform 160ms var(--ease); }
.bv-post__play-btn:hover { transform: translateY(-2px); }
.bv-post__aside .bv-houses .bv-houses__list { max-height: none; overflow: visible; }

.bv-related { margin-top: 120px; }
.bv-site .bv-related__title { font-size: var(--t-head); margin-bottom: 40px; }
.bv-comments { margin-top: 120px; }
.bv-comments .comments-area { max-width: 720px; }
.bv-site .bv-comments h3, .bv-site .bv-comments .comments-title, .bv-site .bv-comments .comment-reply-title { font-size: var(--t-sub); color: var(--ink); text-transform: none; letter-spacing: -0.02em; }
.bv-site .bv-comments input[type="text"], .bv-site .bv-comments input[type="email"], .bv-site .bv-comments input[type="url"], .bv-site .bv-comments textarea {
  width: 100%; border: 0; border-radius: 14px; background-color: var(--surface); color: var(--ink); box-shadow: none; padding: 14px 16px; font-family: var(--font); font-size: 1rem; /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
}
.bv-site .bv-comments textarea { min-height: 160px; }
.bv-site .bv-comments input:focus, .bv-site .bv-comments textarea:focus { background-color: var(--surface-2); outline: 3px solid var(--gold); outline-offset: 0; box-shadow: none; } /* taste-skill-ignore: gỡ bóng mặc định của Flatsome */
.bv-site .bv-comments label { color: var(--muted); font-weight: 500; font-size: var(--t-small); }
.bv-site .bv-comments .comment-notes, .bv-site .bv-comments .logged-in-as { color: var(--muted); font-size: var(--t-small); }
.bv-site .bv-comments input[type="submit"] { min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--pill); background-color: var(--gold); color: var(--gold-ink); font-family: var(--font); font-weight: 700; text-transform: none; letter-spacing: 0; }
.bv-site .bv-comments .comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.bv-site .bv-comments .comment-list li { margin-left: 0; }
.bv-site .bv-comments .comment-body, .bv-site .bv-comments .comment-inner { padding: 20px 24px; border-radius: 20px; background-color: var(--surface); }

/* Danh sách bài */
.bv-archive__head { padding-top: 72px; padding-bottom: 48px; }
.bv-site .bv-archive__title { font-size: var(--t-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 20ch; margin: 0 0 20px; }
.bv-archive__desc { max-width: 60ch; margin: 0 0 32px !important; color: var(--ink); }
.bv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background-color: var(--surface-2); color: var(--ink); font-size: var(--t-small); font-weight: 600; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.bv-chips a span { color: var(--muted); font-weight: 400; }
.bv-chips a:hover { background-color: var(--surface); }
.bv-chips a[aria-current="page"] { background-color: var(--gold); color: var(--gold-ink); }
.bv-chips a[aria-current="page"] span { color: var(--gold-ink); }

.bv-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 96px; }
.bv-lead__media { display: block; overflow: hidden; border-radius: 24px; }
.bv-lead__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 600ms var(--ease); }
.bv-lead__media:hover .bv-lead__img { transform: scale(1.03); }
.bv-site .bv-lead__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 20px; }
.bv-lead__title a { color: var(--ink); transition: color 160ms var(--ease); }
.bv-lead__title a:hover { color: var(--gold); }
.bv-lead__excerpt { margin: 0 0 20px !important; color: var(--ink); }
.bv-lead__more { display: inline-flex; align-items: center; min-height: 48px; margin-top: 28px; padding: 0 24px; border-radius: var(--pill); background-color: var(--gold); color: var(--gold-ink) !important; font-weight: 700; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.bv-lead__more:hover { background-color: var(--gold-deep); transform: translateY(-2px); }

.bv-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.bv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.bv-row__media { display: block; overflow: hidden; border-radius: 16px; }
.bv-row__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms var(--ease); }
.bv-row__media:hover .bv-row__img { transform: scale(1.04); }
.bv-site .bv-row__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 8px; }
.bv-row__title a { color: var(--ink); transition: color 160ms var(--ease); }
.bv-row__title a:hover { color: var(--gold); }
.bv-row__excerpt { margin: 0 0 10px !important; font-size: 1rem; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bv-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 80px; }
.bv-pages a, .bv-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); background-color: var(--surface); color: var(--ink); font-size: var(--t-small); font-weight: 600; transition: background-color 160ms var(--ease); }
.bv-pages a:hover { background-color: var(--surface-2); }
.bv-pages .current { background-color: var(--gold); color: var(--gold-ink); }
.bv-pages .dots { background: none; }

.bv-empty { max-width: 560px; padding: 40px; border-radius: 24px; background-color: var(--surface); }
.bv-empty__title { font-size: var(--t-sub); font-weight: 600; margin: 0 0 12px !important; }
.bv-empty a { color: var(--gold); }

@media (max-width: 1099px) {
  .bv-post__body { grid-template-columns: 1fr; gap: 56px; }
  .bv-post__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .bv-post__toc { display: none !important; }
  .bv-rows { grid-template-columns: 1fr; }
}
@media (max-width: 849px) {
  .bv-post__head, .bv-archive__head { padding-top: 40px; }
  .bv-site .bv-post__title, .bv-site .bv-archive__title { font-size: clamp(2rem, 8vw, 2.75rem); }
  .bv-post__cover { margin-bottom: 40px; }
  .bv-post__cover img { border-radius: 16px; }
  .bv-lead { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; }
  .bv-post__aside { grid-template-columns: 1fr; }
  .bv-related, .bv-comments { margin-top: 80px; }
  .bv-blog { padding-bottom: 96px; }
}
@media (max-width: 549px) {
  .bv-row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .bv-site .bv-row__title { font-size: 1.0625rem; }
  .bv-post__nav { grid-template-columns: 1fr; }
  .bv-post__nav-item.is-next { grid-column: auto; }
  .bv-post__share-label { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-lead__img, .bv-row__img { transition: none; }
  .bv-lead__media:hover .bv-lead__img, .bv-row__media:hover .bv-row__img { transform: none; }
}
.bv-post__content.bv-article > :first-child { margin-top: 0 !important; }
.bv-site .bv-archive__title.is-short { font-size: var(--t-display); letter-spacing: -0.04em; line-height: 0.95; }
@media (max-width: 849px) {
  .bv-site .bv-archive__title.is-short { font-size: clamp(2.75rem, 12vw, 4.5rem); }
}
.bv-row__excerpt { font-size: var(--t-body); }
.search .bv-row__excerpt { -webkit-line-clamp: 3; }
@media (max-width: 549px) {
  .bv-row__excerpt, .search .bv-row__excerpt { font-size: 1rem; -webkit-line-clamp: 2; }
}

/* ---------- Bài viết: một khung 1164px căn giữa cho tiêu đề, ảnh bìa, nội dung, cột phải ---------- */
.bv-single .bv-wrap { max-width: calc(1164px + 2 * var(--gutter)); }
.bv-single .bv-post__title { max-width: 26ch; }
.bv-single .bv-post__lede { max-width: 760px; }
.bv-post__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
.bv-post__content { max-width: none; }
@media (max-width: 1099px) {
  .bv-single .bv-wrap { max-width: calc(760px + 2 * var(--gutter)); }
  .bv-post__aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 849px) {
  .bv-post__aside { grid-template-columns: 1fr; }
}

/* ---------- Bài liên quan dạng thẻ ---------- */
.bv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bv-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background-color: var(--surface); transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.bv-card:hover { transform: translateY(-4px); background-color: var(--surface-2); }
.bv-card__media { display: block; overflow: hidden; }
.bv-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms var(--ease); }
.bv-card:hover .bv-card__img { transform: scale(1.05); }
.bv-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.bv-site .bv-card__title { margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.bv-card__title a { color: var(--ink); transition: color 160ms var(--ease); }
.bv-card__title a:hover { color: var(--gold); }
.bv-card__excerpt { margin: 0 !important; font-size: 1rem; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bv-card .bv-meta { margin-top: auto !important; }
@media (max-width: 1099px) { .bv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 549px) {
  .bv-cards { grid-template-columns: 1fr; gap: 16px; }
  .bv-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .bv-card__img { height: 100%; aspect-ratio: auto; min-height: 110px; }
  .bv-card__body { padding: 14px 16px; gap: 6px; }
  .bv-card__excerpt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-card, .bv-card__img { transition: none; }
  .bv-card:hover, .bv-card:hover .bv-card__img { transform: none; }
}

/* ---------- Trang chủ: hộp nội dung SEO viền vàng, thu gọn và mở rộng ---------- */
.bv-site .row.bv-guide-box {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max);
  padding: 56px 41px 48px;
  border: 2px solid var(--gold);
  border-radius: 28px;
  background-color: var(--surface);
}
.bv-guide-box .bv-toc { padding-right: 16px; }
.bv-guide-box .bv-article__note { background-color: var(--bg); }
.bv-guide-box .bv-odds tbody > tr > * { background-color: var(--bg); }
.bv-guide-box .bv-odds tbody > tr:nth-child(-n+2) > * { background-color: var(--surface-2); }
.bv-collapse { --bv-collapsed: 780px; transition: max-height 600ms var(--ease); }
.bv-collapse.is-collapsed { max-height: var(--bv-collapsed); overflow: hidden; }
.bv-collapse.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; pointer-events: none;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(to bottom, rgba(28, 26, 23, 0), var(--surface) 78%); /* taste-skill-ignore: lớp mờ báo còn nội dung khi thu gọn, theo yêu cầu */
}
.bv-collapse__bar { position: relative; z-index: 2; display: flex; justify-content: center; margin-top: -26px; }
.bv-collapse__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 26px;
  border: 0; border-radius: var(--pill); background-color: var(--gold); color: var(--gold-ink);
  font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.bv-collapse__btn:hover { background-color: var(--gold-deep); transform: translateY(-2px); }
.bv-collapse__btn svg { width: 14px; height: 14px; transition: transform 300ms var(--ease); }
.bv-collapse__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 849px) {
  .bv-site .row.bv-guide-box { padding: 36px 9px 32px; border-radius: 22px; }
  .bv-collapse { --bv-collapsed: 920px; }
  .bv-guide-box .bv-guide__aside { margin-bottom: 32px; }
  .bv-guide-box .bv-toc { background-color: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  .bv-collapse, .bv-collapse__btn, .bv-collapse__btn svg { transition: none; }
}
@media (max-width: 1099px) {
  .bv-post__body { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
/* Flatsome đặt scroll-padding bằng chiều cao header dính (70px): chừa thêm 16px để tiêu đề không dính sát header. */
html { scroll-padding-top: 86px !important; }

/* ---------- Bài viết, bố cục 3 cột: mục lục | nội dung | cột phải, lấp đúng hai lề trang ---------- */
.bv-single .bv-wrap { max-width: calc(var(--max) + 2 * var(--gutter)); }
.bv-post__head, .bv-post__body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; column-gap: 48px; }
.bv-post__head > * { grid-column: 2; }
.bv-single .bv-post__title { max-width: none; }
.bv-single .bv-post__lede { max-width: none; }
.bv-post__body { align-items: start; }
.bv-post__toc-col { position: sticky; top: calc(var(--header-h) + 24px); }
.bv-post__toc { padding: 0; background: none; }
.bv-post__toc[hidden] { display: none; }
.bv-post__aside { grid-column: 3; }
.bv-post__main { grid-column: 2; }
.bv-comments .comments-area { max-width: 760px; }
@media (min-width: 1280px) {
  .bv-comments { padding-left: calc(var(--gutter) + 268px); }
}
@media (max-width: 1279px) {
  .bv-post__head, .bv-post__body { grid-template-columns: minmax(0, 1fr) 300px; }
  .bv-post__head > *, .bv-post__main { grid-column: 1; }
  .bv-post__aside { grid-column: 2; grid-row: 1; }
  .bv-post__toc-col { display: none; }
}
@media (max-width: 1099px) {
  .bv-single .bv-wrap { max-width: calc(760px + 2 * var(--gutter)); }
  .bv-post__head, .bv-post__body { grid-template-columns: minmax(0, 1fr); }
  .bv-post__aside { grid-column: 1; grid-row: auto; }
}
@media (max-width: 849px) {
  .bv-guide-box.is-collapsed .bv-guide__aside { display: none; }
  .bv-collapse { --bv-collapsed: 720px; }
}

/* ======================================================================
   Vàng kim kiểu Sunwin: mảng vàng lớn dùng chuyển sắc kim loại (sáng ở trên, đậm dần xuống),
   chữ và chấm nhỏ giữ vàng phẳng --gold.
   ====================================================================== */
:root {
  --gold-metal: linear-gradient(180deg, #fff4b8 0%, #ffd965 20%, #f8c540 46%, #e3a520 76%, #b97c0a 100%); /* taste-skill-ignore: vàng kim theo yêu cầu */
  --gold-metal-hover: linear-gradient(180deg, #fff9d6 0%, #ffe27f 20%, #fbcd52 46%, #eab02c 76%, #c58710 100%); /* taste-skill-ignore: vàng kim theo yêu cầu */
}
.bv-site .button.primary, .bv-site .header-button .button, .bv-site .button:not(.is-outline),
.bv-rank__link, .bv-house__go, .bv-table__place, .bv-chipc.is-on, .bv-seg button.is-on,
.bv-post__play, .bv-lead__more, .bv-pages .current, .bv-chips a[aria-current="page"],
.bv-collapse__btn, .bv-signup__send, .bv-site .bv-comments input[type="submit"],
.bv-site .bv-acc .accordion-item:has(.accordion-title.active), .bv-tile.is-gold, .bv-band, .bv-band .section-bg,
.bv-slip__line.is-on, .bv-mono.is-gold, .bv-site .bv-tabs .nav > li.active > a span {
  background-image: var(--gold-metal);
}
.bv-site .button.primary:hover, .bv-site .header-button .button:hover, .bv-site .button:not(.is-outline):hover,
.bv-rank__link:hover, .bv-house__go:hover, .bv-table__place:hover, .bv-lead__more:hover,
.bv-collapse__btn:hover, .bv-signup__send:hover, .bv-site .bv-comments input[type="submit"]:hover,
.bv-post__tags a:hover, .bv-post__share a:hover, .bv-post__share button:hover {
  background-image: var(--gold-metal-hover);
}
.bv-chipc.is-on { outline-color: rgba(18, 17, 16, 0.25); }

/* ---------- Nội dung SEO dạng tab ---------- */
.bv-site .row.bv-guide-box {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gold-metal) border-box; /* taste-skill-ignore: viền vàng kim theo yêu cầu */
}
.bv-tabs-seo.is-tabbed .bv-tabpanel[hidden] { display: none; }
.bv-tabs-seo.is-tabbed .bv-tabpanel { animation: bv-tab-in 280ms var(--ease) both; }
@keyframes bv-tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bv-tabs-seo.is-tabbed .bv-tabpanel > h2:first-child { margin-top: 56px !important; }
.bv-tabs-seo.is-tabbed .bv-toc ul { display: flex; flex-direction: column; gap: 4px; }
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"] {
  min-height: 44px; padding: 10px 14px; border-radius: 14px;
  color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.35;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"]:hover { background-color: var(--surface-2); color: var(--ink); }
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"][aria-selected="true"] { background-color: var(--gold); background-image: var(--gold-metal); color: var(--gold-ink); font-weight: 600; }
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"]::before { background-color: var(--muted); }
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"][aria-selected="true"]::before { background-color: var(--gold-ink); }
.bv-tabs-seo.is-tabbed .bv-toc a[role="tab"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 849px) {
  .bv-tabs-seo.is-tabbed .bv-toc { padding: 16px; }
  .bv-tabs-seo.is-tabbed .bv-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .bv-tabs-seo.is-tabbed .bv-toc a[role="tab"] { padding: 10px 12px; font-size: var(--t-small); }
  .bv-tabs-seo.is-tabbed .bv-toc a[role="tab"]::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-tabs-seo.is-tabbed .bv-tabpanel { animation: none; }
}

/* Ảnh đại diện nằm trong cột giữa, rộng bằng tiêu đề và nội dung; mục lục và cột phải chạy song song. */
.bv-post__main > .bv-post__cover { margin: 0 0 48px; padding: 0; }
.bv-post__main > .bv-post__cover img { border-radius: 20px; }
@media (max-width: 849px) {
  .bv-post__main > .bv-post__cover { margin-bottom: 32px; }
  .bv-post__main > .bv-post__cover img { border-radius: 16px; }
}

/* ======================================================================
   Cỡ tiêu đề gọn lại cho cân với site: display 56px, head 44px, sub 24px (ở 1440px).
   ====================================================================== */
:root {
  --t-display: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem);
  --t-head: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  --t-sub: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
}
.bv-site .bv-lead__title { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2.125rem); }
.bv-site .bv-article h3, .bv-site .bv-post__content h3 { font-size: 1.1875rem; }
.bv-site .bv-dash-head h1 { letter-spacing: -0.035em; }
@media (max-width: 849px) {
  .bv-site .bv-dash-head h1 { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  .bv-site .bv-post__title, .bv-site .bv-archive__title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .bv-site .bv-archive__title.is-short { font-size: clamp(2.25rem, 9vw, 3rem); }
}
.bv-article .bv-article__title { max-width: 24ch; }
.bv-faq__head h2 { max-width: 14ch; }
/* Tiêu đề nhỏ lại: ảnh bài nổi bật làm điểm nhấn của màn hình đầu trang danh sách. */
.bv-archive__head { padding-top: 48px; padding-bottom: 40px; }
.bv-lead { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; }
.bv-lead__img { aspect-ratio: 3 / 2; }
@media (max-width: 849px) {
  .bv-lead { grid-template-columns: 1fr; gap: 24px; }
  .bv-lead__img { aspect-ratio: 16 / 10; }
}
