/* ============================================================
   EVO Gaming — storefront
   Header: xanh biển đậm để logo EVO nổi bật. Thân trang: nền trắng.
   ============================================================ */

:root {
  /* Xanh biển đậm — màu thương hiệu vùng header */
  --navy-dark: #021d36;
  --navy: #04294a;
  --navy-2: #063b6a;
  --navy-line: rgba(255, 255, 255, 0.14);

  /* Cyan EVO */
  --cyan: #00c2f7;
  --cyan-600: #0b7fa3;
  --cyan-700: #045f7d;
  --cyan-soft: #e8f7fd;

  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #a1a1a1;
  --card: #f2f2f2;
  --line: #ececec;
  --line-soft: #f4f4f4;

  --green: #10b981;
  --amber: #f59e0b;
  --star: #ffc750;
  --red: #ff4d5a;

  --wrap: 1392px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Luôn chừa chỗ cho thanh cuộn: khi mở cửa sổ game ta khoá cuộn trang, nếu không
   chừa sẵn thì thanh cuộn biến mất và cả trang bị "nhảy" rộng ra rồi thu lại. */
html { scrollbar-gutter: stable; }

body {
  background: #ffffff;
  color: var(--ink);
  font-family: "League Spartan", "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.4;
}

a { color: var(--cyan-600); text-decoration: none; }
a:hover { color: var(--cyan-700); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Vùng header xanh biển đậm ───────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.topbar .wrap {
  height: 42px;
  display: flex; align-items: center; justify-content: flex-end; gap: 26px;
}
.topbar a { color: rgba(255, 255, 255, 0.78); }
.topbar a:hover { color: #ffffff; }

.masthead {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.masthead .wrap {
  min-height: 96px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}

/* Logo: giữ đúng tỉ lệ gốc 4096×918 (≈4.46:1) */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: 232px; object-fit: contain; }

.mainnav { display: flex; align-items: center; gap: 4px; flex: 1 1 320px; flex-wrap: wrap; }
.navlink {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 16px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.86); font-size: 15px;
  transition: background-color .15s ease, color .15s ease;
}
.navlink svg { color: rgba(255, 255, 255, 0.6); }
.navlink:hover { background: rgba(255, 255, 255, 0.10); color: #ffffff; }
.navlink.is-active { background: rgba(0, 194, 247, 0.18); color: #ffffff; font-weight: 600; }
.navlink.is-active svg { color: var(--cyan); }
.navlink .tag {
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 999px; background: var(--red); color: #fff;
}

.searchbox {
  display: flex; align-items: center; gap: 10px;
  width: 320px; height: 46px; padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--navy-line);
}
.searchbox svg { color: rgba(255, 255, 255, 0.6); flex-shrink: 0; }
.searchbox input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: #ffffff; font: inherit; font-size: 15px;
}
.searchbox input::placeholder { color: rgba(255, 255, 255, 0.55); }

.actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-btn { color: rgba(255, 255, 255, 0.82); display: inline-flex; padding: 6px; border-radius: 10px; }
.icon-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.10); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: filter .15s ease, background-color .15s ease;
}
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.34); color: #ffffff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-cyan { background: var(--cyan); color: var(--navy-dark); font-weight: 600; }
.btn-cyan:hover { filter: brightness(1.06); }
.btn-primary { background: var(--cyan-600); color: #ffffff; font-weight: 600; }
.btn-primary:hover { background: var(--cyan-700); }
.btn-block { width: 100%; height: 50px; font-size: 16px; }

/* ── Banner lớn ──────────────────────────────────────────────────────── */
.hero { padding: 32px 0 0; }
.hero-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 1; background: var(--navy);
}
/* Các slide xếp chồng lên nhau. Slide đang ẩn phải TẮT chuột (pointer-events),
   nếu không slide cuối cùng trong DOM sẽ nằm đè lên và hứng hết cú bấm —
   bấm banner Palworld lại nhảy sang trang Sale. */
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.hero-slide.is-on { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 20, 36, .84), rgba(2, 20, 36, .32) 62%, rgba(2, 20, 36, .58));
}
.hero-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 0 64px; color: #ffffff; max-width: 900px;
}
.hero-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .28em; opacity: .9; }
.hero-title { margin: 0; font-size: clamp(28px, 3.6vw, 54px); font-weight: 700; line-height: 1.02; text-wrap: balance; }
.hero-sub { font-size: clamp(14px, 1.4vw, 19px); font-weight: 500; letter-spacing: .06em; opacity: .95; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34);
}
.hero-cta { align-self: flex-start; margin-top: 4px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(2, 20, 36, .28);
}
.hero-arrow:hover { background: #ffffff; }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .5); transition: width .25s ease; }
.hero-dot.is-on { width: 24px; background: #ffffff; }

/* ── Tiêu đề mục (icon Figma + tiêu đề + mô tả) ──────────────────────── */
.section { padding: 44px 0 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-title { display: flex; align-items: center; gap: 14px; }
.section-title > svg { color: var(--cyan-600); flex-shrink: 0; }
.section-title h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: var(--cyan-600); line-height: 1.05; }
.section-title p { margin: 2px 0 0; font-size: 16px; color: var(--ink); }
.section-more { font-size: 20px; font-weight: 500; color: #5fc2de; white-space: nowrap; }
.section-more:hover { color: var(--cyan-600); }

.cat-nav { display: flex; gap: 10px; }
.cat-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.cat-arrow:hover { border-color: var(--cyan-600); color: var(--cyan-600); }

/* ── Ảnh danh mục ────────────────────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 415 / 207; background: var(--card);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.cat img { width: 100%; height: 100%; object-fit: cover; }
.cat-meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
  background: linear-gradient(180deg, rgba(2, 20, 36, 0), rgba(2, 20, 36, .78));
  color: #ffffff; font-size: 14px; font-weight: 500;
}

/* ── Thẻ sản phẩm (bố cục lấy từ Figma: thumb 140px bên trái) ────────── */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.pcard {
  position: relative;
  display: flex; align-items: stretch; text-align: left; width: 100%; min-height: 140px;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  transition: transform .26s cubic-bezier(.2, .7, .3, 1),
              background-color .26s ease;
  will-change: transform;
}
.pcard:hover { transform: translateY(-3px); background: #eaeef1; }
.pcard:active { transform: translateY(-1px); transition-duration: .08s; }
.pcard-thumb {
  width: 140px; flex-shrink: 0; border-radius: var(--radius);
  object-fit: cover; background: #dfe5e9;
  /* Giãn hết chiều cao thẻ để ảnh không bị lệch lên trên khi phần chữ dài hơn */
  align-self: stretch; height: auto; min-height: 140px;
}
.pcard-body {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px; min-width: 0; flex: 1;
}
.pcard-name {
  margin: 0; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-stock { display: flex; align-items: center; gap: 4px; font-size: 11px; margin-top: 6px; }
.pcard-stock.in { color: var(--green); }
.pcard-stock.preorder { color: var(--amber); }
.pcard-stock.out { color: var(--red); }
.pcard-price { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.pcard-price b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard-price s { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pcard-note {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12px; color: var(--faint); margin-top: 10px;
}
.pcard-rate { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.pcard-rate svg { color: var(--star); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { margin-top: 64px; background: var(--navy); color: rgba(255, 255, 255, .8); }
.footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 44px; }
.footer img { height: 44px; width: 196px; object-fit: contain; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: var(--cyan); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.footer-social { display: flex; gap: 10px; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; color: #ffffff; font-size: 14px; font-weight: 500;
}
.social.fb { background: #1877f2; }
.social.dc { background: #5865f2; }
.footer-fine { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ── Cửa sổ chi tiết game ────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(2, 20, 36, .62);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.overlay[hidden] { display: none; }

.modal {
  width: min(1200px, 100%); max-height: min(900px, 94vh);
  background: #ffffff; border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(2, 20, 36, .34);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  flex-shrink: 0; height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0; font-size: 22px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-head .pill { padding: 3px 10px; border-radius: 999px; background: var(--card); font-size: 12px; color: var(--muted); flex-shrink: 0; }
.modal-close {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid #e4e4e4;
  display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0;
}
.modal-close:hover { background: var(--card); color: var(--ink); }

.modal-body { flex: 1; min-height: 0; display: flex; gap: 24px; padding: 20px 24px 24px; }
.modal-left { width: 600px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.modal-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }

.player { position: relative; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(2, 20, 36, .55); color: #ffffff; font-size: 13px; text-align: center; padding: 16px;
}
.player-play {
  width: 68px; height: 48px; border-radius: 12px; background: #ff0033;
  display: flex; align-items: center; justify-content: center; color: #ffffff;
}

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex-shrink: 0; }
.shot { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid transparent; padding: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.is-on { border-color: var(--cyan-600); }

/* Hai vùng cuộn riêng: mô tả (trái) và đánh giá (phải) */
.panel {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.panel-head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fafafa;
}
.panel-head strong { font-size: 14px; font-weight: 600; }
.panel-head .lead { display: flex; align-items: center; gap: 8px; }
.panel-head svg { color: var(--cyan-600); }
.panel-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-track { background: #f6f6f6; border-radius: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 8px; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: #bfbfbf; }
.panel-scroll p { margin: 0; font-size: 12.5px; line-height: 1.62; color: #3d3d3d; }
.panel-scroll figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.panel-scroll figure img { width: 100%; height: auto; }
.panel-scroll figcaption {
  position: absolute; left: 10px; bottom: 8px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .58); color: #ffffff; font-size: 10px;
}

.spec { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-head { padding: 8px 12px; background: #fafafa; font-size: 12.5px; font-weight: 600; }
.spec-row { display: flex; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.spec-row dt { width: 108px; flex-shrink: 0; color: #8b8b8b; margin: 0; }
.spec-row dd { margin: 0; color: #3d3d3d; }

/* Khối giá + gói: cố định, không cuộn */
.buybox { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill { padding: 5px 13px; border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 500; color: #4a4a4a; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); flex-wrap: wrap; }
.meta b { color: var(--ink); }
.meta svg { color: var(--star); vertical-align: -1px; }
.price-old { font-size: 15px; color: var(--faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price-now { display: flex; align-items: baseline; gap: 10px; }
.price-now strong { font-size: 34px; font-weight: 700; color: var(--cyan-600); font-variant-numeric: tabular-nums; }
.price-off { padding: 3px 9px; border-radius: 8px; background: var(--red); color: #ffffff; font-size: 12px; font-weight: 600; }
.rule { height: 1px; background: var(--line); }
.opt-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid #e0e0e0; background: #ffffff; color: var(--muted);
}
.opt:hover { border-color: var(--cyan-600); color: var(--cyan-600); }
.opt.is-on { background: var(--cyan-600); border-color: var(--cyan-600); color: #ffffff; }

/* Đánh giá */
.rate-summary { display: flex; gap: 16px; padding: 13px 15px; border-radius: 12px; background: #fafafa; }
.rate-score { width: 74px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rate-score b { font-size: 30px; font-weight: 700; line-height: 1; }
.rate-score span { font-size: 11px; color: var(--faint); }
.rate-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.rate-bar { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--faint); }
.rate-bar .track { flex: 1; height: 5px; border-radius: 3px; background: #e8e8e8; overflow: hidden; }
.rate-bar .fill { height: 100%; background: var(--star); }
.rate-bar .n { width: 26px; text-align: right; font-variant-numeric: tabular-nums; }

.review { display: flex; flex-direction: column; gap: 7px; padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.review-top { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-size: 13px; font-weight: 600;
}
.review-who { flex: 1; min-width: 0; }
.review-who b { display: block; font-size: 13px; font-weight: 600; }
.review-who span { font-size: 11px; color: var(--faint); }
.review-stars { font-size: 12px; color: var(--star); letter-spacing: 1px; }
.review p { margin: 0; font-size: 13px; line-height: 1.65; color: #3d3d3d; }

/* ── Prompt mua hàng ─────────────────────────────────────────────────── */
.buy-card {
  width: min(460px, 100%); background: #ffffff; border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 70px rgba(2, 20, 36, .36);
}
.buy-card h2 { margin: 0; font-size: 22px; font-weight: 600; text-align: center; }
.buy-card > p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; text-align: center; }
.buy-summary { padding: 15px 17px; border-radius: 14px; background: #fafafa; display: flex; flex-direction: column; gap: 9px; }
.buy-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.buy-row span { color: var(--muted); flex-shrink: 0; }
.buy-row b { font-weight: 500; text-align: right; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.buy-total strong { font-size: 24px; font-weight: 700; color: var(--cyan-600); font-variant-numeric: tabular-nums; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; }
.buy-actions .social { height: 52px; justify-content: center; font-size: 16px; font-weight: 600; border-radius: 14px; }
.buy-back { height: 44px; border-radius: 14px; border: 1px solid #e0e0e0; color: var(--muted); font-size: 15px; }
.buy-back:hover { background: var(--card); }

/* ── Trạng thái ──────────────────────────────────────────────────────── */
.offline-note {
  background: var(--cyan-soft); color: var(--cyan-700);
  font-size: 13px; text-align: center; padding: 8px 16px;
}
/* Nằm trong .grid nên phải trải hết các cột, nếu không nó chỉ chiếm cột đầu
   và dòng chữ bị dồn về trái, xuống dòng hẹp. */
.empty {
  grid-column: 1 / -1;
  padding: 60px 20px; text-align: center; color: var(--faint);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-left { width: 55%; }
}
@media (max-width: 1024px) {
  .masthead .wrap { min-height: auto; }
  .searchbox { width: 100%; order: 3; }
  .hero-body { padding: 0 32px; }
  .modal-body { flex-direction: column; overflow-y: auto; }
  .modal-left, .modal-right { width: 100%; }
  .panel-scroll { max-height: 320px; }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 16 / 9; }
  .topbar { display: none; }
}
@media (max-width: 560px) {
  /* Catalogue: giữ 2 cột trên điện thoại cho dày, dễ lướt nhiều game. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .brand img { height: 40px; width: 178px; }
  .modal-body { padding: 14px; }
  .overlay { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }   /* máy siêu nhỏ mới về 1 cột */
}


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.footer-col-end { align-items: flex-end; text-align: right; }

/* ── Trang danh mục ──────────────────────────────────────────────────── */
.cat-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 210px; background: var(--navy); display: flex; align-items: center;
}
.cat-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 20, 36, .86), rgba(2, 20, 36, .34));
}
.cat-hero-body {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 32px 34px; color: #ffffff;
}
/* Chữ IN HOA tiếng Việt có dấu ở cả trên lẫn dưới, line-height 1.02 làm dấu
   của dòng dưới đè lên dòng trên. Nới dòng ra cho hết chồng chữ. */
.cat-hero-body .hero-title {
  font-size: clamp(26px, 3.4vw, 46px); text-transform: uppercase;
  line-height: 1.18; padding-bottom: .06em;
}

.catnav { position: relative; margin-left: auto; display: flex; gap: 12px; padding: 0 34px; flex-wrap: wrap; }
.catnav-pill {
  display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px;
  border-radius: 14px; background: rgba(255, 255, 255, .94); color: var(--ink);
}
.catnav-pill:hover { background: #ffffff; color: var(--cyan-700); }
.catnav-label { display: flex; flex-direction: column; line-height: 1.2; }
.catnav-label small { font-size: 10px; color: #8b9ba2; }
.catnav-label b { font-size: 13px; font-weight: 600; }

.cat-layout { display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: start; }
.cat-side-box { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cat-side-box h2 { margin: 0 0 11px; font-size: 15px; font-weight: 600; }
.cat-side-box nav { display: flex; flex-direction: column; gap: 2px; }
.cat-side {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: 10px; font-size: 14px; color: var(--muted);
}
.cat-side:hover { background: #f4f8fa; color: var(--ink); }
.cat-side.is-on { background: var(--cyan-soft); color: var(--cyan-700); font-weight: 600; }
.cat-side .n { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cat-main { min-width: 0; }
.cat-count { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .catnav { padding: 0 20px 20px; margin-left: 0; }
  .cat-hero { flex-direction: column; align-items: stretch; }
}

/* ── Chống bóp panel khi cửa sổ trình duyệt thấp ─────────────────────── */
.panel { min-height: 200px; }

/* Màn hình thấp: cho cả cửa sổ cuộn, panel giữ chiều cao cố định để
   phần chọn gói/phiên bản vẫn đọc được thay vì bị ép còn vài pixel. */
@media (max-height: 860px) {
  .modal { max-height: 94vh; }
  .modal-body { overflow-y: auto; overscroll-behavior: contain; }
  .modal-left, .modal-right { min-height: 0; }
  .panel { flex: 0 0 auto; height: 260px; }
}
@media (max-height: 620px) {
  .panel { height: 200px; }
}

/* ============================================================
   Tag sản phẩm (hot / new / sale / best / combo / limited)
   ============================================================ */
.badges {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px;
  max-width: 128px;            /* không tràn khỏi ảnh bìa 140px */
  pointer-events: none;
}
.badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 5px; border-radius: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
  color: #ffffff; white-space: nowrap;
}
.badge svg { width: 7px; height: 8px; flex-shrink: 0; }

/* Trong cửa sổ sản phẩm thì tag để cỡ đọc được */
.buybox .badges { position: static; max-width: none; }
.buybox .badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; gap: 4px; }
.buybox .badge svg { width: 9px; height: 11px; }

/* Denuvo: nền xanh Steam đậm, icon giữ màu cyan gốc của logo */
.badge-denuvo { background: #1b2838; }
.badge-denuvo svg { color: var(--cyan); }

.badge-new  { background: #0b7fa3; }
.badge-best { background: #7b5cff; }
.badge-combo { background: #0f9d7a; }
.badge-limited { background: #f59e0b; color: #3d2a00; }

/* Tag "đang hot" — dải lửa chạy quanh */
.badge-hot {
  background: linear-gradient(100deg, #ff7a18, #ff2d55 55%, #ff9500);
  background-size: 220% 100%;
  animation: badge-heat 2.6s linear infinite;
}
.badge-hot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(100deg, #ff9500, #ff2d55, #ff7a18, #ff9500);
  background-size: 300% 100%;
  filter: blur(3px); opacity: .7;
  animation: badge-heat 2.6s linear infinite;
}
@keyframes badge-heat {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}


/* ============================================================
   Danh mục: nhiều mục, có placeholder, nút qua lại nổi hai bên
   ============================================================ */
.cats-strip { position: relative; padding: 0 56px; }
.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(150deg, var(--navy-2), var(--navy));
  color: #ffffff; text-align: center; padding: 16px;
}
.cat-ph b { font-size: 22px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.cat-ph em {
  font-style: normal; font-size: 10px; letter-spacing: .18em;
  color: rgba(255, 255, 255, .45); border: 1px dashed rgba(255, 255, 255, .3);
  padding: 3px 9px; border-radius: 999px;
}

.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: #ffffff; color: var(--ink); border: 1px solid #e3e8ec;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.strip-arrow:hover { background: var(--cyan-600); color: #ffffff; border-color: var(--cyan-600); transform: translateY(-50%) scale(1.08); }
.strip-arrow.prev { left: 0; }
.strip-arrow.next { right: 0; }

/* ============================================================
   Banner: chỉ ảnh, không chữ
   ============================================================ */
.hero-frame { background: #e9eef1; }
.hero-slide { transition: opacity .6s ease; }
.hero-link { display: block; width: 100%; height: 100%; }

/* ============================================================
   Hiệu ứng mở cửa sổ sản phẩm
   ============================================================ */
.overlay { animation: overlay-in .22s ease both; }
.modal { animation: modal-in .34s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
  to   { opacity: 1; transform: none; }
}

/* Hover bên trong cửa sổ sản phẩm */
.shot {
  transition: transform .24s cubic-bezier(.2, .7, .3, 1), border-color .2s ease, opacity .2s ease;
  opacity: .82;
}
.shot:hover { transform: translateY(-3px) scale(1.03); opacity: 1; }
.shot.is-on { opacity: 1; }
.opt { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s ease; }
.opt:hover { transform: translateY(-1px); }
.modal-close { transition: background-color .2s ease, color .2s ease, transform .25s ease; }
.modal-close:hover { transform: rotate(90deg); }
.review { transition: background-color .2s ease; border-radius: 10px; }
.review:hover { background: #fafbfc; }
.btn { transition: filter .18s ease, background-color .18s ease, transform .16s ease; }
.btn-primary:hover, .btn-cyan:hover { transform: translateY(-1px); }

/* Ô media: 1 video + 3 ảnh */
.shot-video { position: relative; }
.shot-video::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background: rgba(0, 0, 0, .34);
}
.shot-video .play-dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 30px; height: 21px; border-radius: 6px; background: #ff0033;
  display: flex; align-items: center; justify-content: center; color: #ffffff;
}
.shot-video .lbl {
  position: absolute; left: 6px; bottom: 5px; z-index: 2;
  font-size: 9px; font-weight: 700; color: #ffffff; letter-spacing: .08em;
}

/* Tag nền tảng cạnh tên game trong cửa sổ */
.head-tags { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.head-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.head-tag-steam { background: #1b2838; color: #9fd2f5; }
.head-tag-viet { background: #eaf6ec; color: #1a7f37; }
.head-tag-warranty { background: #eef2fd; color: #3d4fc4; }

/* ============================================================
   Ô tìm kiếm: có phản hồi khi gõ
   ============================================================ */
.searchbox {
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.searchbox:focus-within {
  background: rgba(255, 255, 255, .2);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 247, .22);
}
.searchbox:focus-within svg { color: var(--cyan); }
.search-clear {
  color: rgba(255, 255, 255, .6); display: none; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center;
}
.searchbox.has-text .search-clear { display: flex; }
.search-clear:hover { color: #ffffff; background: rgba(255, 255, 255, .18); }

@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
.section.is-empty { display: none; }
.search-status { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.search-status b { color: var(--ink); }
.search-status[hidden] { display: none; }

@media (max-width: 1100px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats-strip { padding: 0 44px; }
  .strip-arrow { width: 38px; height: 38px; }
}
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .badge-hot, .badge-hot::before { animation: none; }
  .pcard, .cat, .modal, .overlay { animation: none; }
}

/* ============================================================
   Sửa lệch ngôi sao — SVG là block, canh giữa theo trục ngang
   ============================================================ */
.pcard-rate,
.rate-bar,
.panel-head .lead,
.meta > span {
  line-height: 1;
}
.pcard-rate {
  display: inline-flex; align-items: center; gap: 4px;
}
.pcard-rate > span,
.pcard-rate > b {
  line-height: 1; display: inline-block;
}
.pcard-rate svg,
.meta svg,
.panel-head svg,
.pcard-stock svg,
.badge svg {
  display: block; flex-shrink: 0;
}
.pcard-stock { line-height: 1; }
.pcard-stock span { line-height: 1; }
.meta { align-items: center; }
.meta svg { vertical-align: baseline; }

/* Tiêu đề cửa sổ sản phẩm: tên + các tag rõ ràng */
.modal-head .lead {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap;
}
.modal-head h2 { flex-shrink: 1; }

/* Hàng tag trong cửa sổ (thể loại + tag khuyến mãi) */
.buybox .tags { align-items: center; }
.buybox .badge { position: relative; }

/* Số game: chip nhỏ góc phải trên ô danh mục */
.cat-count-chip {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(2, 20, 36, .62);
  color: #ffffff; font-size: 11px; font-weight: 600; line-height: 1.5;
  backdrop-filter: blur(3px);
}

/* ============================================================
   Sửa: ảnh nằm gọn trong ô (có lề), tag xếp dọc bên trong ảnh,
   ngôi sao canh theo baseline chữ.
   ============================================================ */

/* Thẻ có lề đều, ảnh vuông canh giữa theo chiều dọc — không chạm viền */
.pcard {
  align-items: center;
  padding: 12px;
  gap: 14px;
  min-height: 156px;
}
.pcard-media {
  position: relative;
  width: 132px; height: 132px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 14px;
  overflow: hidden;
}
.pcard-thumb {
  width: 100%; height: 100%;
  min-height: 0;
  align-self: auto;
  border-radius: 0;
  object-fit: cover;
  background: #dfe5e9;
}
.pcard-body { padding: 0; }

/* Tag: mỗi tag một dòng, nằm gọn trong ảnh */
.badges {
  position: absolute; left: 6px; top: 6px; right: 6px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  flex-wrap: nowrap; gap: 3px;
  max-width: none;
  pointer-events: none;
}
.badge {
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── Ngôi sao: đáy sao đặt trên baseline chữ số, cao bằng chiều cao chữ hoa ── */
.pcard-rate {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.pcard-rate svg {
  width: .78em; height: .78em;
  align-self: baseline;
  transform: translateY(.1em);
}
.meta .pcard-rate svg { width: .8em; height: .8em; }
.panel-head .lead svg { align-self: center; }

/* ============================================================
   Mũi tên: trong suốt, chỉ hiện khi rê chuột vào banner / dải danh mục.
   Dải danh mục rộng đúng bằng banner (bỏ padding hai bên).
   ============================================================ */

/* Dải danh mục khớp chiều rộng banner */
.cats-strip { padding: 0; }
.cats { gap: 12px; }

/* Kiểu chung cho cả hai loại mũi tên */
.hero-arrow,
.strip-arrow {
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 20, 36, .55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: none;
  backdrop-filter: blur(6px);
  transition: opacity .25s ease, background-color .2s ease, transform .2s ease;
}
.hero-arrow:hover,
.strip-arrow:hover {
  background: rgba(2, 20, 36, .82);
  border-color: rgba(255, 255, 255, .5);
}

/* Hiện khi rê chuột vào khu vực tương ứng, hoặc khi bàn phím focus tới */
.hero-frame:hover .hero-arrow,
.hero-frame:focus-within .hero-arrow,
.cats-strip:hover .strip-arrow,
.cats-strip:focus-within .strip-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* Không scale mũi tên: đổi kích thước lúc hover làm con trỏ ra/vào liên tục
   ở mép nút → nhấp nháy. Chỉ đổi màu nền. */
.hero-arrow, .strip-arrow { transform: translateY(-50%); }
.hero-arrow:hover, .strip-arrow:hover { transform: translateY(-50%); }

.strip-arrow.prev { left: 12px; }
.strip-arrow.next { right: 12px; }

/* Thiết bị cảm ứng không có hover — luôn hiện mũi tên */
@media (hover: none) {
  .hero-arrow, .strip-arrow { opacity: 1; pointer-events: auto; }
}

@media (max-width: 820px) {
  .cats-strip { padding: 0; }
  .strip-arrow { width: 38px; height: 38px; }
  .strip-arrow.prev { left: 8px; }
  .strip-arrow.next { right: 8px; }
}

/* ============================================================
   Nút chuyển Mô tả ⟷ Cấu hình
   ============================================================ */
.panel-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid #dfe5e9; background: #ffffff;
  font-size: 12px; font-weight: 600; color: var(--cyan-600);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.panel-switch:hover { background: var(--cyan-soft); border-color: var(--cyan-600); }
.panel-switch:active { transform: translateY(1px); }
.panel-switch svg { flex-shrink: 0; }

/* Đổi nội dung có hiệu ứng mờ dần */
.panel-scroll.is-swapping { animation: panel-swap .26s ease both; }
@keyframes panel-swap {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Chân khung mô tả: nút "Xem game này trên Steam" ghim cố định, luôn thấy. */
.panel-foot {
  flex-shrink: 0; padding: 10px 14px;
  border-top: 1px solid var(--line); background: #ffffff;
}
.panel-foot .btn {
  width: 100%; height: 42px; font-size: 14px; font-weight: 600; border-radius: 12px;
}

.spec-note { font-size: 12.5px; line-height: 1.62; color: var(--muted); }
.spec { margin: 0; }
.inc-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.inc-list li { font-size: 12.5px; color: #3d3d3d; }

/* ============================================================
   Đổi trang danh mục: các ô hiện dần
   ============================================================ */
/* Đổi trang danh mục: trượt nhẹ đồng loạt, không hiệu ứng "pop" so le. */
.cats.is-swapping > .cat { animation: cat-slide .2s ease both; }
@keyframes cat-slide {
  from { opacity: .4; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

/* Ô danh mục bo tròn rõ hơn + phản hồi khi bấm */
.cat { border-radius: 18px; }
.cat:active { filter: brightness(.96); }

/* ============================================================
   Khoảng cách: dải thể loại ↔ mục sản phẩm đầu tiên
   ============================================================ */
.search-wrap { padding: 0; }
.search-wrap .search-status { margin: 24px 0 0; }
#sections .section:first-child { padding-top: 26px; }
#cats-strip { padding-bottom: 0; }

/* ============================================================
   Tương tác chung — phản hồi khi bấm, con trỏ, vùng chạm
   ============================================================ */
.pcard, .cat, .opt, .shot, .btn, .navlink, .hero-dot, .strip-arrow, .hero-arrow, .panel-switch {
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .social:active, .opt:active { transform: translateY(1px); }
.navlink { position: relative; }
.navlink::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.navlink:hover::after { transform: scaleX(1); }
.section-more { display: inline-flex; align-items: center; gap: 4px; transition: gap .2s ease, color .2s ease; }
.section-more:hover { gap: 9px; }
.hero-dot { transition: width .25s ease, background-color .25s ease; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 1024px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 12px; }
  .mainnav { order: 4; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .mainnav::-webkit-scrollbar { display: none; }
  .navlink { flex-shrink: 0; white-space: nowrap; }   /* thanh nav cuộn ngang, chữ không xuống dòng */
  .searchbox { order: 3; flex: 1 1 240px; width: auto; }
  .actions { order: 2; }
}

@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .topbar { display: none; }
  .brand img { height: 40px; width: 178px; }
  .actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }

  /* Logo trái, nhóm nút phải, lề hai bên bằng nhau. Trước đây cả hàng dồn
     về trái nên nút Đăng ký rơi lơ lửng giữa chừng, máy hẹp thì tràn hẳn ra mép. */
  .masthead .actions { margin-left: auto; }
  .hero { padding: 16px 0 0; }
  .section { padding: 28px 0 0; }
  #sections .section:first-child { padding-top: 20px; }
  .section-head { gap: 12px; margin-bottom: 16px; }
  .section-title h2 { font-size: 22px; }
  .section-title p { font-size: 13px; }
  .section-title > svg { width: 26px; height: 30px; }
  .section-more { font-size: 15px; }

  /* Thẻ sản phẩm: ảnh nhỏ lại cho vừa màn hình hẹp */
  .pcard { min-height: 128px; padding: 10px; gap: 12px; }
  .pcard-media { width: 108px; height: 108px; }
  .pcard-name { font-size: 14px; }
  .pcard-price b { font-size: 15px; }

  /* Cửa sổ sản phẩm chiếm trọn màn hình, cuộn dọc */
  .overlay { padding: 0; align-items: stretch; }
  .modal { max-height: 100vh; height: 100vh; border-radius: 0; width: 100%; }
  .modal-head { height: auto; padding: 12px 16px; }
  .modal-head h2 { font-size: 17px; white-space: normal; }
  .head-tags { width: 100%; }
  .head-tag { font-size: 11px; padding: 3px 9px; }
  .modal-body { flex-direction: column; overflow-y: auto; padding: 14px; gap: 16px; }
  .modal-left, .modal-right { width: 100%; }
  .panel { height: auto; max-height: 340px; flex: 0 0 auto; }
  .price-now strong { font-size: 28px; }
  .buy-card { border-radius: 18px; padding: 22px; }
}

@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr; }
  .hero-frame { aspect-ratio: 2 / 1; }
  .pcard { min-height: 116px; }
  .pcard-media { width: 96px; height: 96px; }
  .badge { font-size: 7.5px; padding: 1px 4px; }
  .badges { left: 4px; top: 4px; right: 4px; gap: 2px; }
  .modal-head .lead { gap: 8px; }
  .opt { padding: 9px 14px; font-size: 13px; }
  .actions .btn-ghost-light { display: none; }   /* chỉ giữ nút Đăng ký cho đỡ chật */
}

/* Ngón tay: vùng chạm tối thiểu 44px */
@media (pointer: coarse) {
  .navlink, .btn, .opt, .strip-arrow, .hero-arrow, .modal-close, .panel-switch { min-height: 44px; }
  .panel-switch { padding: 0 14px; }
  .hero-dot { width: 10px; height: 10px; }
  .hero-dot.is-on { width: 26px; }
}

/* ============================================================
   Trang danh mục: ô tìm kiếm, sắp xếp, bộ lọc
   ============================================================ */
.cat-hero { border-radius: 18px; }
.cat-hero > img { border-radius: inherit; }

.cat-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}

.cat-search {
  flex: 1 1 280px; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px;
  background: #ffffff; border: 1px solid #dfe5e9; border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cat-search:focus-within { border-color: var(--cyan-600); box-shadow: 0 0 0 3px rgba(11, 127, 163, .14); }
.cat-search > svg { color: var(--faint); flex-shrink: 0; }
.cat-search:focus-within > svg { color: var(--cyan-600); }
.cat-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.cat-search-clear {
  display: none; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center; color: var(--faint);
}
.cat-search.has-text .cat-search-clear { display: flex; }
.cat-search-clear:hover { background: #eef2f5; color: var(--ink); }

.cat-sort {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 8px 0 16px;
  background: #ffffff; border: 1px solid #dfe5e9; border-radius: 999px;
  font-size: 14px; color: var(--muted); flex-shrink: 0;
}
.cat-sort select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  border: 0; background: none; outline: none; padding: 0 8px; cursor: pointer;
}

/* Bộ lọc bên trái */
.cat-side-box { background: none; border: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.filter-box { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.filter-box h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.filter-box nav { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; }

.filter-group { margin-bottom: 16px; }
.filter-group:last-of-type { margin-bottom: 0; }
.filter-group h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid #dfe5e9; background: #ffffff;
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.filter-chip:hover { border-color: var(--cyan-600); color: var(--cyan-600); }
.filter-chip.is-on { background: var(--cyan-600); border-color: var(--cyan-600); color: #ffffff; font-weight: 600; }
.filter-chip:active { transform: translateY(1px); }

.btn-reset {
  margin-top: 14px; width: 100%; height: 38px; border-radius: 10px;
  border: 1px solid #f0d3d6; color: #d0384a; font-size: 13px; font-weight: 500;
  transition: background-color .18s ease;
}
.btn-reset:hover { background: #fdf3f4; }

/* Lưới kết quả: chỉ mờ dần nhẹ khi đổi bộ lọc, không "pop" so le. */
.grid.is-swapping > .pcard { animation: card-in .18s ease both; }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side-box { flex-direction: column; }
  .filter-box nav { max-height: 220px; }
  .cat-toolbar { gap: 8px; }
  .cat-sort { flex: 1 1 100%; justify-content: space-between; }
}

/* ============================================================
   Cấu hình khuyến nghị — một khối, chia 2 cột cho vừa khung
   ============================================================ */
.spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px;
  background: #fbfdfe;
}
.spec-item { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.spec-item-wide { grid-column: 1 / -1; }
.spec-item dt {
  margin: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); line-height: 1.32;
}
.spec-item dd {
  margin: 0; font-size: 12px; line-height: 1.3; color: #3d3d3d; overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Nhịp khoảng cách: banner → thể loại → mục sản phẩm đầu tiên
   ============================================================ */
#cats-strip { padding-top: 20px; padding-bottom: 0; }
#sections .section:first-child { padding-top: 28px; }

@media (max-width: 820px) {
  #cats-strip { padding-top: 14px; }
  #sections .section:first-child { padding-top: 20px; }
}

/* Lưới an toàn: bất kỳ phần tử có thuộc tính hidden đều phải ẩn thật,
   kể cả khi class của nó khai báo display: flex/grid. */
[hidden] { display: none !important; }

/* ============================================================
   Breadcrumb trang bán hàng
   ============================================================ */
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 16px 0 0; font-size: 13px; color: var(--faint);
}
.crumbs a { color: var(--cyan-600); }
.crumbs a:hover { color: var(--cyan-700); text-decoration: underline; }
.crumbs svg { color: #cfdde4; flex-shrink: 0; }
.crumbs .now { color: var(--ink); font-weight: 600; }

/* Ảnh đại diện người đánh giá khi có ảnh thật */
img.avatar { object-fit: cover; }

/* ============================================================
   Thẻ sản phẩm: ảnh tràn sát viền trái/trên/dưới (theo mẫu Figma),
   phần đánh giá + lượt bán đẩy xuống đáy cho đỡ trống.
   ============================================================ */
.pcard {
  padding: 0;
  gap: 0;
  align-items: stretch;
  min-height: 144px;
}
.pcard-media {
  width: 132px;
  height: auto;
  align-self: stretch;   /* ảnh cao bằng thẻ, không chừa lề */
  border-radius: 0;
  overflow: hidden;
}
.pcard-thumb {
  width: 100%; height: 100%;
  min-height: 0;
  border-radius: 0;
  object-fit: cover;
}
.pcard-body {
  padding: 14px 16px 13px;
  justify-content: flex-start;
}
/* Đẩy dòng "4.9 ★ | Đã bán …" xuống sát đáy thẻ */
.pcard-note {
  margin-top: auto;
  padding-top: 12px;
}
.pcard-price { flex-wrap: wrap; row-gap: 2px; }

/* Tag nằm trong ảnh, ảnh giờ sát mép nên lùi vào một chút */
.badges { left: 7px; top: 7px; right: 7px; }

@media (max-width: 820px) {
  .pcard { min-height: 124px; padding: 0; gap: 0; }
  .pcard-media { width: 112px; }
  .pcard-body { padding: 12px 13px 11px; }
}
@media (max-width: 560px) {
  .pcard { min-height: 112px; }
  .pcard-media { width: 100px; }
}

/* Giá kèm trong nút chọn gói / phiên bản */
.opt { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.3; }
.opt-price { font-style: normal; font-size: 11px; font-weight: 600; opacity: .78; font-variant-numeric: tabular-nums; }
.opt.is-on .opt-price { opacity: .92; }
.ver-wrap:empty { display: none; }
.price-old[hidden], .price-off[hidden] { display: none; }

/* ============================================================
   Sửa: lưới cấu hình xếp theo cột, lấp đầy khung — hết dư khoảng trống.
   Icon trong tiêu đề khung canh giữa theo chiều dọc.
   ============================================================ */
.spec-grid {
  gap: 6px 18px;
  padding: 12px 14px;
}
.spec-item-wide { grid-column: auto; }   /* không còn dòng kéo ngang */

/* Icon và chữ trong tiêu đề khung nằm đúng một đường */
.panel-head .lead { display: flex; align-items: center; gap: 8px; line-height: 1; }
.panel-head .lead > svg { display: block; flex-shrink: 0; }
.panel-head strong { line-height: 1.2; }
.panel-head .n { line-height: 1.2; }
.panel-switch { line-height: 1; }
.panel-switch svg { display: block; }

/* Khối giá gọn lại — bớt khoảng trống thừa phía trên */
.buybox { gap: 10px; }
.price-old { display: block; margin-bottom: -2px; }
.price-now { align-items: baseline; }
.modal-head .lead h2 { margin: 0; }

/* Nút chọn gói: chỉ có tên nên canh giữa cho gọn */
.opts .opt:not(:has(.opt-price)) { align-items: center; justify-content: center; }
.opt-empty { margin: 0; font-size: 13px; color: var(--red); }

/* Nút chọn phiên bản: bỏ giá phụ, canh giữa như nút chọn gói */
.opt { flex-direction: row; align-items: center; justify-content: center; }

/* Icon và chữ trong nút chuyển Mô tả / Cấu hình nằm đúng một đường */
.panel-switch {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; line-height: 1;
}
.panel-switch > svg { display: block; flex-shrink: 0; }
.panel-switch > span { line-height: 1; display: block; }

/* Badge reCAPTCHA v3: chuyển sang góc DƯỚI TRÁI để không che link chân trang. */
.grecaptcha-badge { left: 4px !important; right: auto !important; }

/* ============================================================
   Cột phải cửa sổ game: lấp khoảng trống bằng số liệu + cam kết
   ============================================================ */
.bb-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.bb-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 11px; border-radius: 12px; background: var(--card);
}
.bb-stat-top { display: flex; align-items: center; gap: 5px; line-height: 1; }
.bb-stat-top svg { display: block; flex-shrink: 0; color: var(--cyan-600); }
.bb-stat-top b { font-size: 16px; font-weight: 700; color: var(--ink); }
.bb-stat > span { font-size: 11px; color: var(--faint); }

/* Khối giá: nền nhạt, viền trái cyan cho nổi, kèm 3 cam kết */
.price-box {
  padding: 13px 15px; border-radius: 14px;
  background: linear-gradient(180deg, #f3fbfe, #ffffff);
  border: 1px solid #dcecf3; border-left: 3px solid var(--cyan-600);
}
.price-box .price-now { margin: 0; }
.price-box .price-old { margin: 2px 0 0; }

/* Nhãn giảm giá canh giữa theo chiều cao con số, không tụt xuống baseline. */
.price-box .price-now { align-items: center; flex-wrap: wrap; row-gap: 4px; }
.price-box .price-off { align-self: center; line-height: 1; padding: 5px 10px; }

/* Giá gạch nằm cùng hàng với giá bán (trước đây xuống dòng, chừa chỗ trống) */
.price-box .price-old {
  display: inline; margin: 0; align-self: center;
  font-size: 15px; color: var(--faint); text-decoration: line-through;
}

/* Mô tả ngắn của phiên bản, ngay dưới giá */
.price-desc {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 9px 0 0; font-size: 12.5px; line-height: 1.5; color: #3d3d3d;
}
.price-desc svg { flex-shrink: 0; display: block; color: var(--cyan-600); margin-top: 2px; }
.price-desc[hidden] { display: none; }

/* ============================================================
   Bảng cấu hình: không ép cao 100% nữa — trước đây nội dung dài
   bị tràn ra ngoài khung và chữ chồng lên nhau.
   ============================================================ */
.spec-grid {
  /* Đổ theo HÀNG, cao theo nội dung. Trước đây ép cao 100% + đổ theo cột nên
     ở màn hình thấp nội dung tràn khỏi khung và bị cắt ngang. */
  grid-auto-flow: row;
  grid-template-rows: none;
  height: auto;
  align-content: start;
  row-gap: 9px;
}
.spec-item dd { overflow-wrap: anywhere; }

/* Màn hình thấp: khung cao hơn một chút và luôn cuộn được bên trong,
   thay vì bóp còn vài dòng rồi cắt cụt. */
/* Màn hình không đủ cao: BỎ hẳn vùng cuộn nhỏ trong từng khung. Khung cao
   theo đúng nội dung, và CẢ cửa sổ cuộn một lần — dễ đọc hơn nhiều so với
   mấy khe cuộn cao hơn trăm pixel. */
@media (max-height: 860px) {
  .modal-left .panel, .modal-right .panel {
    height: auto; min-height: 0; max-height: none; flex: 0 0 auto;
  }
  .modal-left .panel-scroll, .modal-right .panel-scroll {
    overflow: visible; max-height: none;
  }
  .panel { min-height: 0; }
}

/* ============================================================
   Đầu trang danh mục: nền chung EVO, chữ nằm trên lớp phủ
   Giữ nguyên chiều cao khung cũ, chỉ đổi phần nền.
   ============================================================ */
.cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Lớp phủ tối nhẹ: nền xanh sáng nên cần phủ để chữ trắng đọc rõ. */
.cat-hero-sale .cat-hero-shade { display: none; }
.cat-hero:not(.cat-hero-sale) .cat-hero-shade {
  background: linear-gradient(90deg, rgba(2, 20, 36, .78) 0%, rgba(2, 20, 36, .5) 55%, rgba(2, 20, 36, .3) 100%);
}
/* Chữ luôn nằm trên ảnh + lớp phủ */
.cat-hero-body, .catnav { position: relative; z-index: 2; }

/* ============================================================
   Dropdown tự dựng (thay <select> mặc định của trình duyệt)
   ============================================================ */
.cat-sort {
  display: inline-flex; align-items: center; gap: 10px;
  height: auto; padding: 0; background: none; border: 0; flex-shrink: 0;
}
.cat-sort-label { font-size: 14px; color: var(--muted); white-space: nowrap; }

.sel { position: relative; }
.sel-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 176px; height: 46px; padding: 0 14px 0 16px;
  background: #ffffff; border: 1px solid #dfe5e9; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sel-trigger:hover { border-color: var(--cyan-600); }
.sel.is-open > .sel-trigger {
  border-color: var(--cyan-600); box-shadow: 0 0 0 3px rgba(11, 127, 163, .14);
}
.sel-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-caret {
  color: var(--faint); flex-shrink: 0;
  transform: rotate(90deg); transition: transform .2s ease;
}
.sel.is-open .sel-caret { transform: rotate(-90deg); color: var(--cyan-600); }

.sel-menu {
  position: absolute; z-index: 45; top: calc(100% + 8px); right: 0; min-width: 100%;
  background: #ffffff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 46px rgba(2, 20, 36, .18);
  padding: 6px; animation: sel-in .16s ease both;
}
.sel-menu[hidden] { display: none; }
@keyframes sel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.sel-item {
  display: block; width: 100%; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; color: var(--ink); text-align: left; white-space: nowrap;
  transition: background-color .14s ease, color .14s ease;
}
.sel-item:hover { background: #f2f7fa; }
.sel-item.is-on { background: var(--cyan-soft); color: var(--cyan-700); font-weight: 600; }

@media (max-width: 900px) {
  .cat-sort { flex: 1 1 100%; justify-content: space-between; }
  .sel { flex: 1; }
  .sel-trigger { width: 100%; min-width: 0; }
}

/* ============================================================
   Tag sản phẩm: chữ và icon nằm đúng giữa ô
   line-height 1.5 làm hộp chữ cao hơn nét chữ nên nhìn bị lệch.
   ============================================================ */
.badge { line-height: 1; padding: 3px 6px; align-items: center; }
/* Chữ IN HOA nằm cao hơn tâm hộp dòng (phần chừa cho nét thòng bên dưới),
   nên đẩy xuống một chút để tâm chữ trùng tâm icon. */
.badge > span { line-height: 1; display: block; transform: translateY(.05em); }
.badge svg { align-self: center; }

/* Logo Steam vuông (24×24) — không ép theo tỉ lệ của icon lửa.
   Cỡ icon bằng cỡ chữ để hai bên nhìn cân nhau. */
.badge-denuvo svg { width: 8px; height: 8px; }
.buybox .badge-denuvo svg { width: 12px; height: 12px; }

/* Giá gốc + tiết kiệm trong bảng chốt đơn */
.buy-old { color: var(--faint); font-variant-numeric: tabular-nums; }
.buy-save b { color: var(--red); font-weight: 700; }

/* ============================================================
   Cửa sổ game gọn trong MỘT màn hình — không cuộn cả cửa sổ.
   Chỉ phần mô tả / đánh giá tự cuộn bên trong khung của nó.
   ============================================================ */
@media (min-width: 821px) {
  .modal { height: min(920px, 94vh); max-height: 94vh; }
  .modal-body { overflow: hidden; min-height: 0; }
  .modal-left, .modal-right { min-height: 0; overflow: hidden; }

  /* Khung mô tả / đánh giá co giãn để vừa chỗ còn lại, không đẩy tràn */
  .panel { flex: 1 1 0; min-height: 120px; height: auto; }

  /* Video không chiếm quá nửa màn hình khi cửa sổ trình duyệt thấp */
  .player { flex: 0 0 auto; max-height: 40vh; }
  .shots { flex: 0 0 auto; }
}

/* ============================================================
   Chân trang nhiều cột
   ============================================================ */
.footer .wrap { display: block; padding-top: 46px; padding-bottom: 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
  gap: 32px; align-items: start;
}
.footer-about { display: flex; flex-direction: column; gap: 13px; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .68); max-width: 380px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .68); }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.footer-nav, .footer-join { display: flex; flex-direction: column; gap: 10px; }
.footer h3 {
  margin: 0 0 2px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #ffffff;
}
.footer-nav a { font-size: 14px; color: rgba(255, 255, 255, .72); }
.footer-nav a:hover { color: var(--cyan); }
.footer-join p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .68); }
.footer-join .footer-social { margin-top: 4px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Nav gọn 3 mục + mega-menu Danh mục ───────────────────────────────── */
.nav-drop { position: relative; }
.navlink-btn { background: none; border: 0; cursor: pointer; font: inherit; }
.nav-caret { font-size: 11px; margin-left: 3px; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 40;
  width: min(600px, 88vw); background: #fff; border: 1px solid var(--line, #e4e8ec);
  border-radius: 14px; box-shadow: 0 18px 46px rgba(2, 20, 36, .18); padding: 14px;
}
.mega[hidden] { display: none; }
.mega-head { font-size: 12px; font-weight: 600; color: var(--faint, #8a99a5);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mega-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px;
  border-radius: 10px; background: #f4f7fa; color: var(--ink, #111); }
.mega-item:hover { background: #e6eef3; }
.mega-item b { font-size: 13px; font-weight: 600; }
.mega-item span { font-size: 11px; color: var(--faint, #8a99a5); }

/* ── Ô tìm kiếm: bỏ nút X mặc định (đang bị đúp) + bảng gợi ý ──────────── */
.searchbox { position: relative; }
input[type="search"] { appearance: none; -webkit-appearance: none; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

.search-dd {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 45;
  background: #fff; border: 1px solid var(--line, #e4e8ec); border-radius: 12px;
  box-shadow: 0 18px 46px rgba(2, 20, 36, .18); padding: 6px; max-height: 62vh; overflow-y: auto;
}
.search-dd[hidden] { display: none; }
.search-item { display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 9px; border-radius: 9px; text-align: left; background: none; border: 0; cursor: pointer; }
.search-item:hover { background: #f2f6f8; }
.search-item img, .search-ph { width: 42px; height: 42px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #e6ebef; }
.search-item-main { min-width: 0; }
.search-item-main b { display: block; font-size: 14px; font-weight: 600; color: var(--ink, #111);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-main span { font-size: 12px; color: var(--faint, #8a99a5); }
/* Dòng phụ: thể loại · giá bán, rồi giá gạch mờ phía sau */
.search-item-sub { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.search-item-main .search-item-price { font-weight: 700; color: var(--ink, #111); }
.search-item-sub s { font-size: 11.5px; color: var(--faint, #8a99a5); }
.search-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--faint, #8a99a5); }

/* ── Mobile: hàng thể loại vuốt ngang, bỏ mũi tên đè lên ảnh ──────────── */
@media (max-width: 560px) {
  /* Bỏ mũi tên: trên màn hình nhỏ chúng che mất ảnh thể loại. Vuốt ngang thay thế. */
  .strip-arrow { display: none; }

  .cats {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Tràn hết bề ngang nhưng ô ĐẦU vẫn thẳng hàng với banner phía trên.
       scroll-padding là bắt buộc: không có nó, scroll-snap tự cuộn đúng 16px
       (bằng padding) ngay khi tải, triệt tiêu lề và ô đầu dính mép màn hình. */
    padding: 2px 16px;
    margin: 0 -16px;
    scroll-padding-left: 16px;
    scroll-padding-right: 16px;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat {
    flex: 0 0 30%;            /* thấy ~3 ô rưỡi → gợi ý còn vuốt được nữa */
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .cat-count-chip { font-size: 9px; padding: 1px 5px; }
}

/* An toàn: chặn tràn ngang vài px trên mobile. */
/* clip chứ KHÔNG phải hidden: `overflow-x: hidden` biến body thành vùng cuộn
   riêng, và `position: sticky` của thanh đầu trang sẽ hết bám. `clip` chặn
   tràn ngang y hệt nhưng không tạo vùng cuộn, nên sticky vẫn chạy. */
body { overflow-x: clip; }

/* (Đã bỏ lớp cloak: chống chớp giờ nhờ vẽ từ cache nội dung thật, không phải
   ẩn/hiện main — tránh rủi ro main kẹt opacity 0.) */

/* Lượt vào ĐẦU TIÊN (chưa có cache) thì #sections rỗng cho tới khi Firestore
   trả về, nên chân trang nằm ngay dưới banner rồi bị đẩy xuống cả trang khi
   lưới sản phẩm xuất hiện — Chrome tính đó là layout shift 0.82 (đo 13/11/2026).
   Giữ sẵn một màn hình chiều cao cho tới khi store.js gắn lớp .ready. */
html:not(.ready) #sections { min-height: 100vh; }

/* ── Trang Mua 2 Tặng 1: banner nguyên khổ + thanh đếm ngược bên dưới ─── */
/* Trang sự kiện: cat-hero trở thành khối thường (bỏ nền navy / min-height). */
.cat-hero-sale {
  min-height: 0; background: none; display: block;
  border-radius: 0; overflow: visible;
}
/* Banner dùng ĐÚNG khung như ảnh lớn trang chủ: cùng tỉ lệ 4/1, cùng bo góc. */
.sale-banner-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 1; background: var(--navy);
}
.cat-hero-sale .sale-banner {
  position: static;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Dưới banner: nhãn + đồng hồ, canh giữa, gọn gàng. */
.sale-cd-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 22px;
}
.sale-cd-label {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* Đồng hồ đếm ngược thường: số to, nhãn nhỏ, dấu hai chấm ngăn cách. */
.sale-countdown { display: flex; align-items: flex-start; gap: 6px; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 62px; padding: 10px 8px;
  border-radius: 12px; background: var(--card);
}
.cd-unit b {
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.cd-unit span {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
}
.cd-sep {
  font-style: normal; font-size: 22px; font-weight: 700; line-height: 1;
  color: var(--faint); padding-top: 12px;
}

@media (max-width: 560px) {
  .sale-cd-wrap { margin-top: 16px; }
  .cd-unit { min-width: 50px; padding: 8px 5px; }
  .cd-unit b { font-size: 22px; }
  .cd-sep { font-size: 17px; padding-top: 10px; }
}

/* ── Thẻ sản phẩm: bố cục đồng đều giữa các thẻ ────────────────────────
   Tên ở TRÊN (luôn chừa 2 dòng để mọi thẻ cao bằng nhau, dài quá thì …),
   giá TO ở GIỮA, đánh giá + lượt bán ở DƯỚI. */
.pcard-body {
  justify-content: space-between;
  padding: 13px 16px; gap: 6px;
}
.pcard-top { display: flex; flex-direction: column; gap: 5px; }
.pcard-name {
  margin: 0; min-height: 2.5em;          /* chừa đúng 2 dòng cho đều nhau */
  font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-stock { margin-top: 0; }
.pcard-price { margin: 0; }
.pcard-price b { font-size: 20px; font-weight: 700; color: var(--ink); }
.pcard-price s { font-size: 13px; }
.pcard-note { margin: 0; padding-top: 0; }
@media (max-width: 820px) {
  .pcard-name { font-size: 14px; }
  .pcard-price b { font-size: 17px; }
}
@media (max-width: 560px) {
  .pcard-body { padding: 11px 12px; }
  .pcard-price b { font-size: 16px; }
}

/* ============================================================
   CỬA SỔ SẢN PHẨM — bố cục cố định, chỉ khung trái cuộn
   
   Cột trái  : ảnh/trailer (thu gọn) + mô tả/cấu hình  → CHỈ phần này cuộn
   Cột phải  : giá + đánh giá                          → không cuộn
   Nút Steam : ghim đáy cột trái, luôn thấy ở mọi độ phân giải
   ============================================================ */
@media (min-width: 1025px) {
  /* Thân cửa sổ không cuộn: hai cột tự vừa khung. */
  .modal-body { overflow: hidden; align-items: stretch; }

  .modal-left, .modal-right {
    display: flex; flex-direction: column;
    min-height: 0; height: auto; gap: 12px;
  }

  /* Ảnh và trailer gọn lại, nhường chỗ cho phần chữ. */
  /* Gần đủ khung 16:9 (600px ngang → 337px dọc) trên màn hình cao, chỉ thu lại
     khi màn hình thấp. Trước đây ép quá nhỏ nên ảnh và video bị cắt nhiều. */
  .player {
    flex: 0 0 auto;
    aspect-ratio: auto;
    height: clamp(220px, 40vh, 338px);
  }
  .shots { flex: 0 0 auto; }

  /* Khung mô tả / cấu hình: ăn hết chỗ còn lại, và CHỈ nó có thanh cuộn. */
  .modal-left .panel {
    flex: 1 1 auto;
    min-height: 150px; max-height: none;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .modal-left .panel-scroll {
    flex: 1 1 auto; min-height: 0; height: auto; max-height: none;
    overflow-y: auto;
  }
  /* Nút Steam nằm ngoài vùng cuộn nên không bao giờ bị đẩy khuất. */
  .modal-left .panel-foot { flex: 0 0 auto; position: static; }

  /* Cột phải: giá và đánh giá cao theo nội dung, không cuộn. */
  .modal-right .buybox { flex: 0 0 auto; }
  .modal-right .panel {
    flex: 0 1 auto; min-height: 0; max-height: none;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .modal-right .panel-scroll {
    flex: 1 1 auto; min-height: 0; max-height: none;
    overflow-y: auto;          /* chỉ chạy khi có quá nhiều đánh giá */
  }

  /* Màn hình thấp: thu ảnh nhỏ thêm để phần chữ vẫn đủ chỗ. */
  @media (max-height: 800px) { .player { height: clamp(190px, 34vh, 280px); } }
  @media (max-height: 660px) { .player { height: clamp(170px, 31vh, 235px); } }
  @media (max-height: 600px) { .shots { display: none; } }
}

/* Mô tả là phần chính — cho chữ to và thoáng hơn hẳn phần phụ. */
.modal-left .panel-scroll p { font-size: 14px; line-height: 1.72; color: #35404a; }
.modal-left .panel-scroll .inc-list li { font-size: 13.5px; }
.modal-left .panel-head strong { font-size: 15px; }

/* Thanh cuộn mảnh, hợp tông với giao diện */
.panel-scroll { scrollbar-width: thin; scrollbar-color: #cfd9e0 transparent; }
.panel-scroll::-webkit-scrollbar { width: 7px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: #d3dde4; border-radius: 8px; }
.panel-scroll::-webkit-scrollbar-thumb:hover { background: var(--cyan-600); }

/* ============================================================
   Nút dạng thẻ <a>: giữ nguyên màu chữ khi rê chuột
   
   Quy tắc chung `a:hover { color: var(--cyan-700) }` có độ ưu tiên cao hơn
   `.btn-primary`, nên nút "Xem game này trên Steam" bị đổi chữ sang đúng màu
   nền lúc hover → nhìn như mất chữ. Nút "Mua ngay" là <button> nên không dính.
   ============================================================ */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active { color: #ffffff; }

a.btn-cyan,
a.btn-cyan:hover,
a.btn-cyan:focus,
a.btn-cyan:active { color: var(--navy-dark); }

/* Hiệu ứng giống hệt nút "Mua ngay": đậm màu + nhấc nhẹ, bấm thì lún xuống. */
a.btn-primary:hover { background: var(--cyan-700); transform: translateY(-1px); }
a.btn-primary:active { transform: translateY(1px); transition-duration: .08s; }

/* ============================================================
   Nút "Hiện thêm" dưới mỗi mục sản phẩm
   ============================================================ */
/* Chỉ là dòng chữ nhỏ, không phải nút — đỡ chiếm chỗ và không tạo khoảng
   trống lớn giữa các mục. */
.more-wrap { display: flex; justify-content: center; margin-top: 10px; }
.more-wrap:empty { display: none; }
.btn-more {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 4px; border: 0; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--cyan-600);
  transition: color .16s ease, gap .16s ease;
}
.btn-more:hover { color: var(--cyan-700); gap: 8px; }
.btn-more:hover span { text-decoration: underline; }
/* Mũi tên chỉ xuống: xoay icon chevron sẵn có */
.more-caret { display: block; width: 12px; height: 12px; transform: rotate(90deg); }

/* ============================================================
   Nút Facebook / Discord: chữ KHÔNG đổi màu khi rê chuột
   
   Quy tắc chung `a:hover { color: var(--cyan-700) }` có độ ưu tiên cao hơn
   `.social`, nên chữ trắng bị đổi sang xanh lúc hover — nhìn như chữ "nhảy màu".
   Khoá màu chữ lại và thay bằng hiệu ứng nhấc nhẹ + đổ bóng theo màu thương hiệu.
   ============================================================ */
a.social,
a.social:hover,
a.social:focus,
a.social:active { color: #ffffff; }
.social svg { color: #ffffff; }

.social {
  position: relative;
  transition: transform .18s cubic-bezier(.2, .7, .3, 1),
              box-shadow .18s ease, filter .18s ease;
}
.social:hover { transform: translateY(-2px); filter: saturate(1.08); }
.social:active { transform: translateY(1px); transition-duration: .08s; }

/* Bóng đổ mang đúng màu từng nền */
.social.fb:hover { box-shadow: 0 6px 18px rgba(24, 119, 242, .42); }
.social.dc:hover { box-shadow: 0 6px 18px rgba(88, 101, 242, .42); }

/* Icon nhích nhẹ sang phải cho có nhịp, chữ đứng yên */
.social svg { transition: transform .18s cubic-bezier(.2, .7, .3, 1); }
.social:hover svg { transform: translateX(-2px); }

@media (prefers-reduced-motion: reduce) {
  .social, .social svg { transition: none; }
  .social:hover { transform: none; }
}

/* ============================================================
   TRUNG TÂM HỖ TRỢ
   ============================================================ */
.help-banner { border-radius: 18px; overflow: hidden; line-height: 0; }
.help-banner[hidden] { display: none; }
.help-banner img { width: 100%; height: auto; display: block; }

.help-layout { display: grid; grid-template-columns: 262px 1fr; gap: 24px; align-items: start; }

/* Cột trái */
.help-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.help-tabs {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px;
}
.help-tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 14px; border-radius: 11px;
  font-size: 14.5px; font-weight: 500; color: var(--muted); text-align: left;
  transition: background-color .18s ease, color .18s ease;
}
.help-tab > svg { margin-left: auto; color: #cfdde4; flex-shrink: 0; transition: transform .18s ease; }
.help-tab:hover { background: #f4f8fa; color: var(--ink); }
.help-tab:hover > svg { transform: translateX(2px); }
.help-tab.is-on { background: var(--cyan-soft); color: var(--cyan-700); font-weight: 600; }
.help-tab.is-on > svg { color: var(--cyan-600); }
.help-tab-text { min-width: 0; }

.help-side-box {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.help-side-box b { font-size: 14.5px; }
.help-side-box p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.help-side-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.help-side-links .social { justify-content: center; height: 42px; font-size: 14px; border-radius: 12px; }

/* Cột phải */
.help-main {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 32px 30px; min-width: 0;
}
.help-main.is-swapping { animation: help-in .24s ease both; }
@keyframes help-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.help-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; margin-bottom: 24px; }
.help-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 29px); font-weight: 700; line-height: 1.25; }
.help-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.72; color: #3d4a54; max-width: 68ch; }

/* Các mục nội dung: số thứ tự nằm trên, không dùng icon */
.help-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-step {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 18px 20px; background: #fcfdfe;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.help-step:hover {
  border-color: #bfe2f0; box-shadow: 0 6px 18px rgba(2, 20, 36, .06); transform: translateY(-2px);
}
.help-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 11px;
  background: var(--cyan-600); color: #fff; font-size: 13px; font-weight: 700;
}
.help-step h3 { margin: 0 0 7px; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.help-step p { margin: 0; font-size: 13.5px; line-height: 1.68; color: #4a565f; }

/* Ghi chú */
.help-notes {
  margin-top: 24px; padding: 20px 22px;
  border: 1px solid #dbeef7; border-radius: 14px;
  background: linear-gradient(180deg, #f7fcfe, #f2fafd);
}
.help-notes h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--cyan-700);
}
.help-notes ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.help-notes li { font-size: 13.5px; line-height: 1.68; color: #3d4a54; }
.help-notes li::marker { color: var(--cyan-600); }

/* Nút liên hệ */
.help-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.help-contact .social { height: 50px; padding: 0 24px; border-radius: 13px; font-size: 15px; font-weight: 600; }

.help-cta {
  margin-top: 26px; padding: 22px 24px; border-radius: 16px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.help-cta b { display: block; font-size: 17px; }
.help-cta p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-side { position: static; }
  .help-tabs { flex-direction: row; overflow-x: auto; }
  .help-tab { flex: 0 0 auto; }
  .help-tab > svg { display: none; }
  .help-steps { grid-template-columns: 1fr; }
  .help-main { padding: 22px 20px 24px; }
}

/* ============================================================
   Ảnh đầu trang hỗ trợ vẽ HOÀN TOÀN BẰNG CSS
   Không dùng file ảnh: sắc nét ở mọi độ phân giải, nặng 0 KB.
   ============================================================ */
.help-banner-css {
  position: relative;
  aspect-ratio: 4 / 1;
  min-height: 150px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 18% 0%, #23c8f5 0%, #0a86c9 38%, #0a4f8f 68%, #06315f 100%);
  display: flex; align-items: center;
  isolation: isolate;
}

/* Lưới kẻ mờ phủ toàn khung */
.hb-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.07) 0 1px, transparent 1px 46px);
}

/* Vệt sáng chéo cho có chiều sâu */
.hb-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(104deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 42%);
}

/* Mũi tên nhỏ xếp dọc bên trái */
.hb-chevrons {
  position: absolute; left: 3.2%; top: 50%; transform: translateY(-50%);
  z-index: 2; display: flex; flex-direction: column; gap: clamp(4px, .9vw, 11px);
}
.hb-chevrons i {
  width: clamp(7px, 1vw, 13px); height: clamp(9px, 1.3vw, 17px);
  background: rgba(255,255,255,.92);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.hb-chevrons i:nth-child(1) { opacity: .55; }
.hb-chevrons i:nth-child(5) { opacity: .55; }

/* Dải vạch như mã vạch bên phải */
.hb-bars {
  position: absolute; right: 3%; top: 14%; z-index: 2;
  width: clamp(14px, 1.6vw, 22px); height: 26%;
  background: repeating-linear-gradient(180deg,
    rgba(255,255,255,.9) 0 2px, transparent 2px 6px);
}

/* Khung góc trang trí */
.hb-corner {
  position: absolute; z-index: 2; pointer-events: none;
  border: 2px solid rgba(255,255,255,.6);
}
.hb-corner.tl {
  left: 2.4%; top: 16%; width: clamp(18px, 2.4vw, 34px); height: 42%;
  border-right: 0; border-radius: 4px 0 0 4px;
}
.hb-corner.br {
  right: 2.4%; bottom: 12%; width: clamp(22px, 3vw, 44px); height: 30%;
  border-left: 0; border-top: 0; border-color: rgba(255,255,255,.42);
  border-radius: 0 0 4px 0;
}

/* Chữ */
.hb-body {
  position: relative; z-index: 3;
  padding-left: clamp(58px, 9vw, 130px);
  display: flex; flex-direction: column; gap: clamp(6px, 1.2vw, 14px);
}
.hb-title {
  margin: 0;
  font-size: clamp(26px, 6.4vw, 82px);
  font-weight: 700; font-style: italic;
  letter-spacing: .01em; line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #bfe6fb 53%, #d6f0fd 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(2, 32, 62, .3));
}
.hb-foot { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px); }
.hb-tag {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: clamp(3px, .55vw, 7px) clamp(10px, 1.7vw, 22px);
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-size: clamp(10px, 1.5vw, 19px); font-style: italic; line-height: 1.2;
}
.hb-tag b { color: var(--cyan-600); font-weight: 700; }
.hb-tag span { color: #4a8fb5; font-weight: 500; }
.hb-rule { flex: 1; height: 1px; background: rgba(255,255,255,.75); max-width: clamp(60px, 22vw, 340px); }

@media (max-width: 560px) {
  .help-banner-css { aspect-ratio: 3 / 1; }
  .hb-bars, .hb-corner { display: none; }
}

/* ============================================================
   Sửa dấu tiếng Việt bị cắt trên tiêu đề banner
   line-height 1 không đủ chỗ cho dấu ở trên (Ữ, Ẫ, Ố) và
   background-clip: text cắt đúng theo hộp dòng.
   ============================================================ */
.hb-title {
  line-height: 1.16;
  padding: .08em 0 .06em;
  overflow: visible;
}
.hb-body { padding-top: .2em; padding-bottom: .2em; }

/* Mũi tên dịch sang phải để không đè lên khung góc trái */
.hb-chevrons { left: clamp(30px, 4.4vw, 62px); }
.hb-corner.tl { width: clamp(14px, 1.7vw, 24px); }

/* ============================================================
   Hero trang danh mục: dùng chung nền CSS với trang hỗ trợ
   Giữ nguyên chiều cao cũ, chỉ đổi phần nền.
   ============================================================ */
.cat-hero {
  position: relative;
  min-height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 18% 0%, #23c8f5 0%, #0a86c9 38%, #0a4f8f 68%, #06315f 100%);
  display: flex; align-items: center;
  isolation: isolate;
}
/* Bỏ lớp phủ tối cũ, nền mới đã đủ tương phản cho chữ trắng */
.cat-hero .cat-hero-shade { display: none; }

.cat-hero .hb-grid,
.cat-hero .hb-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cat-hero .hb-chevrons { z-index: 2; }
.cat-hero .hb-bars { z-index: 2; height: 30%; top: 16%; }
.cat-hero .hb-corner { z-index: 2; }

.cat-hero .cat-hero-body {
  position: relative; z-index: 3;
  padding-left: clamp(58px, 8vw, 118px);
}
.cat-hero-body .hero-title {
  line-height: 1.16; padding-bottom: .06em;
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #cfeafb 55%, #e2f4fe 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(2, 32, 62, .3));
}
.cat-hero-body .hero-eyebrow { color: rgba(255, 255, 255, .82); }
.cat-hero-body .hero-sub { color: rgba(255, 255, 255, .88); }

/* Trang Mua 2 Tặng 1 vẫn dùng banner ảnh riêng, không đụng vào */
.cat-hero.cat-hero-sale {
  background: none; min-height: 0; display: block; overflow: visible; border-radius: 0;
}

/* ============================================================
   Sửa dứt điểm: dấu tiếng Việt bị mất trên tiêu đề banner
   
   background-clip: text chỉ tô phần nền NẰM TRONG hộp phần tử. Dấu hỏi, dấu
   ngã của chữ IN HOA (Ả, Ổ, Ẫ) nhô cao hơn hộp nên không có nền để tô, thành
   ra mất luôn nét dấu.
   
   Cách sửa: chừa hẳn khoảng trống phía trên, và đặt mốc chuyển màu bằng em
   (không phải %) để nó luôn rơi đúng giữa thân chữ dù padding thay đổi.
   ============================================================ */
.hb-title,
.cat-hero-body .hero-title {
  padding-top: .34em;
  padding-bottom: .12em;
  line-height: 1.06;
  background: linear-gradient(180deg,
    #ffffff 0,
    #ffffff .96em,
    #c8e8fb .965em,
    #e2f4fe 1.28em) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chữ có dấu vẫn nằm gọn trong khung, không đội lên hoạ tiết phía trên */
.hb-body, .cat-hero .cat-hero-body { padding-top: 0; }

/* ============================================================
   Bỏ chữ nghiêng tổng hợp trên tiêu đề có dấu tiếng Việt
   
   League Spartan không có bộ nghiêng thật, nên font-style: italic khiến trình
   duyệt tự bóp nghiêng từng chữ cái. Kiểu bóp đó làm dấu (Ế, Ớ, Ở) lệch khỏi
   thân chữ và trông như bị cắt. Nghiêng cả khối bằng transform thì dấu vẫn
   dính đúng chỗ.
   ============================================================ */
.hb-title,
.cat-hero-body .hero-title {
  font-style: normal;
  transform: skewX(-7deg);
  transform-origin: left center;
}
.hb-tag { font-style: normal; transform: skewX(-7deg); }
.hb-tag b, .hb-tag span { transform: skewX(7deg); display: inline-block; }

/* ============================================================
   ĐIỆN THOẠI
   
   Phần lớn khách vào bằng điện thoại, nên khối này nằm cuối file
   để đè lên mọi luật phía trên. Đo trên khung 375 x 812.
   ============================================================ */

/* ── Banner lớn: giữ đúng khổ 4/1 của ảnh ─────────────────────────────
   Trước đây khung banner bị ép về 16/9 rồi 2/1 trên máy nhỏ, trong khi
   ảnh banner là 4/1. object-fit: cover cắt mất gần nửa bề ngang, chữ và
   hình trong banner bay mất. Giữ nguyên 4/1 thì ảnh hiện trọn vẹn. */
@media (max-width: 1024px) {
  .hero-frame { aspect-ratio: 4 / 1; }
}

/* ── Đầu trang gọn lại ────────────────────────────────────────────────
   Ba hàng logo / ô tìm / menu ngốn 187px, gần 1/4 màn hình điện thoại. */
@media (max-width: 820px) {
  .masthead .wrap { padding: 10px 16px; row-gap: 8px; column-gap: 12px; }
  .brand img { height: 34px; width: 152px; }
  .actions { gap: 6px; }
  .actions .btn { height: 38px; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .icon-btn { padding: 4px; }
  .searchbox { height: 42px; padding: 0 15px; }
  .searchbox input { font-size: 14px; }
  .mainnav { gap: 2px; padding-bottom: 0; }
  .navlink { height: 38px; min-height: 38px; padding: 0 12px; font-size: 14px; }
}

/* ── Thẻ sản phẩm: xoay dọc ───────────────────────────────────────────
   Thẻ nằm ngang (ảnh trái, chữ phải) chỉ hợp với cột rộng. Ở 2 cột trên
   điện thoại mỗi thẻ chỉ còn 167px: ảnh chiếm 100px, phần chữ còn 67px
   nên tên game, giá, lượt bán đều bị bóp nát và tràn ra ngoài.
   Xếp dọc thì ảnh được trọn bề ngang, chữ có đủ chỗ thở. */
@media (max-width: 560px) {
  .pcard {
    flex-direction: column; align-items: stretch;
    min-height: 0; padding: 0; gap: 0;
  }
  .pcard-media {
    width: 100%; height: auto; aspect-ratio: 1 / 1;
    align-self: auto; flex-shrink: 0; border-radius: 0;
  }
  .pcard-thumb { width: 100%; height: 100%; border-radius: 0; }
  .pcard-body { padding: 10px 12px 12px; justify-content: flex-start; }
  .pcard-name { font-size: 13.5px; min-height: 2.5em; line-height: 1.25; }
  .pcard-stock { font-size: 10.5px; }
  .pcard-price { gap: 6px; }
  .pcard-price b { font-size: 17px; }
  .pcard-price s { font-size: 11.5px; }
  .pcard-note { padding-top: 9px; font-size: 11px; gap: 6px; }
  .badges { left: 6px; top: 6px; right: 6px; }
}

/* ── Hàng thể loại: ô to hơn cho đọc được chữ ─────────────────────────
   flex 30% ra ô 103 x 51px, nhãn thể loại gần như không đọc nổi. */
@media (max-width: 560px) {
  .cat { flex: 0 0 46%; border-radius: 14px; }
  .cat-meta { padding: 9px 11px; font-size: 12.5px; }
  .cat-count-chip { font-size: 9.5px; padding: 1px 6px; }
}

/* ── Cửa sổ game: giá và nút mua lên trên, bỏ cuộn lồng ───────────────
   
   Trên điện thoại hai cột xếp chồng, nên toàn bộ ảnh + mô tả + cấu hình
   nằm trước rồi mới tới giá: khách phải cuộn hơn 700px mới thấy nút
   "Mua ngay". display: contents kéo các khối con ra thẳng thân cửa sổ
   để sắp lại thứ tự: ảnh → giá và nút mua → mô tả → đánh giá.
   
   Đồng thời bỏ cuộn lồng: chỉ thân cửa sổ cuộn, các khung con giãn tự do.
   Cuộn trong khung nhỏ trên màn cảm ứng rất khó trúng. */
@media (max-width: 820px) {
  .modal { height: 100dvh; max-height: 100dvh; }
  .modal-body { display: flex; flex-direction: column; gap: 14px; }
  .modal-left, .modal-right { display: contents; }

  .modal-body .player  { order: 1; }
  .modal-body .shots   { order: 2; }
  .modal-body .buybox  { order: 3; }
  .modal-left  .panel  { order: 4; }
  .modal-right .panel  { order: 5; }

  .modal-body .panel { height: auto; max-height: none; flex: 0 0 auto; min-height: 0; }
  .modal-body .panel-scroll { overflow: visible; max-height: none; }
}

/* ── Trang danh mục: game lên trước, bộ lọc xuống dưới ────────────────
   Bộ lọc + danh sách thể loại cao 572px, đẩy game đầu tiên xuống tận
   y=1235. Khách vào xem game chứ không vào xem bộ lọc. */
@media (max-width: 900px) {
  .cat-layout { display: flex; flex-direction: column; }
  .cat-main, .cat-side-box { min-width: 0; max-width: 100%; }
  .cat-main { order: 1; }
  .cat-side-box { order: 2; }

  /* Danh sách thể loại xếp thành chip cho gọn thay vì một cột dài */
  .cat-side-box nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-side {
    padding: 7px 12px; border-radius: 999px;
    background: #f4f8fa; font-size: 13px;
  }
  .cat-side .n { display: none; }

  .cat-hero { min-height: 148px; }
  .cat-hero .cat-hero-body { padding: 20px 18px 20px clamp(46px, 13vw, 70px); }
}

/* ── Trung tâm hỗ trợ ─────────────────────────────────────────────────
   Ảnh đầu trang bị tràn ra 450px trên khung 375px: aspect-ratio 3/1 gặp
   min-height 150px thì trình duyệt tính ngược bề ngang từ chiều cao.
   Khoá width 100% là hết. Ba thẻ bên trái cũng đang rộng 326px mỗi cái
   nên chỉ thấy được một thẻ, phải vuốt mới biết còn hai thẻ nữa. */
.help-banner-css { width: 100%; }

@media (max-width: 900px) {
  /* Giữ nguyên lưới 1 cột: chuyển sang flex làm cột trái phình theo bề ngang
     của thanh thẻ cuộn ngang, tràn ra khỏi màn hình. */
  .help-side, .help-tabs { min-width: 0; max-width: 100%; }
  .help-tab { width: auto; flex: 0 0 auto; padding: 11px 15px; font-size: 13.5px; white-space: nowrap; }
  .help-tabs { gap: 6px; padding: 6px; scrollbar-width: none; }
  .help-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  .help-banner-css { aspect-ratio: 16 / 6; min-height: 0; }
  .hb-title { font-size: clamp(20px, 7.4vw, 34px); }
  .help-main { padding: 18px 15px 20px; }
  .help-steps { gap: 10px; }
  .help-step { padding: 15px 15px 15px 16px; }
  .help-notes { padding: 16px 16px; }
  .help-contact .social { flex: 1 1 100%; height: 46px; }
  .help-cta { padding: 18px 16px; }
}

/* Máy nhỏ (360px) vẫn giữ 2 cột. Luật cũ hạ về 1 cột là để cứu thẻ nằm
   ngang; thẻ giờ xếp dọc rồi, 1 cột chỉ làm ảnh bìa 280px bị kéo lên
   328px (mờ) và mỗi màn hình chỉ thấy được một game rưỡi. */
@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .pcard-body { padding: 9px 10px 11px; }
  .pcard-name { font-size: 13px; }
  .pcard-price b { font-size: 16px; }
}

/* Ô nền CSS thay ảnh thể loại: chữ co theo bề ngang ô, ô nhỏ trên điện
   thoại thì 22px cố định sẽ tràn ra ngoài. */
.cat-ph b { font-size: clamp(13px, 2.2vw, 22px); line-height: 1.2; }
@media (max-width: 560px) {
  .cat-ph { padding: 10px; gap: 4px; }
  .cat-ph b { font-size: 13px; }
  .cat-ph em { font-size: 8px; padding: 2px 6px; letter-spacing: .12em; }
}

/* ============================================================
   Cửa sổ báo tính năng tài khoản đang bảo trì
   Dùng lại khung .buy-card của cửa sổ chốt đơn, chỉ thêm logo khiên.
   ============================================================ */
.auth-card { text-align: center; max-width: 420px; }
.auth-mark {
  display: block; margin: 0 auto 4px;
  width: clamp(76px, 22vw, 100px); height: auto;
}
.auth-card h2 { margin: 0; }
.auth-card p { margin: 0; }
/* Hai đoạn cùng một lời nhắn: kéo lại gần hơn khoảng cách 18px của .buy-card. */
.auth-card p + p { margin-top: -8px; }
.auth-card .buy-actions { margin-top: 4px; }
.auth-card .social { justify-content: center; }

/* ── Nút Đăng nhập phải thấy được trên điện thoại ─────────────────────
   Luật cũ ẩn hẳn nút này dưới 560px cho đỡ chật. Nhưng nút đăng nhập là
   thứ khách tìm đầu tiên, ẩn đi thì tưởng web thiếu chức năng. Thu nhỏ
   logo và hai nút để cả hàng vẫn nằm gọn một dòng. */
@media (max-width: 560px) {
  .actions .btn-ghost-light { display: inline-flex; }
  .brand img { height: 30px; width: 134px; }
  .actions { gap: 5px; }
  .actions .btn {
    height: 36px; min-height: 36px; padding: 0 11px;
    font-size: 12.5px; border-radius: 999px;
  }
  .icon-btn { padding: 3px; }
  .icon-btn svg { width: 21px; height: 21px; }
}

/* Trên điện thoại thẻ kéo cao hết màn hình (giống cửa sổ chốt đơn). Thẻ báo
   bảo trì ít nội dung nên canh giữa cho khỏi trống hoác nửa dưới. */
@media (max-width: 820px) {
  .auth-card { justify-content: center; max-width: none; padding: 28px 22px; }
}

/* ============================================================
   KHU ĐÁNH GIÁ — thiết kế lại
   
   Bản cũ: điểm và biểu đồ nhét chung một hộp xám, mỗi đánh giá là một
   hàng có gạch chân, nhìn như bảng dữ liệu. Bản này tách rõ ba tầng:
   điểm tổng và danh sách, mỗi phần một nhịp thở riêng.
   ============================================================ */

.rv-scroll { gap: 0; }

/* ── Tầng 1: điểm tổng ────────────────────────────────────────────────── */
.rv-summary {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #fcfdfe, #f7fafc);
}

.rv-score {
  flex: 0 0 auto; min-width: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-right: 20px; border-right: 1px solid var(--line);
}
.rv-score b {
  font-size: 38px; font-weight: 700; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.rv-score > span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }

/* Dải sao: một lớp chữ, tô gradient cắt đúng theo phần trăm điểm.
   Nửa sao hiện được, không phải làm tròn lên hay xuống. */
.rv-stars {
  --fill: 100%;
  font-size: 13px; letter-spacing: 2px; line-height: 1; white-space: nowrap;
  background: linear-gradient(90deg,
    var(--star) 0, var(--star) var(--fill), #dfe6ea var(--fill), #dfe6ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rv-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rv-bar { display: flex; align-items: center; gap: 9px; }
.rv-bar-k {
  width: 22px; flex-shrink: 0; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rv-track {
  flex: 1; height: 6px; border-radius: 99px; background: #eaeff2; overflow: hidden;
}
.rv-track i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffd066, var(--star));
  transition: width .45s cubic-bezier(.2, .8, .3, 1);
}
.rv-bar-n {
  width: 30px; flex-shrink: 0; text-align: right;
  font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums;
}

/* ── Tầng 2: danh sách ────────────────────────────────────────────────── */
.rv-list { display: flex; flex-direction: column; }

/* Ghi đè bố cục cũ: avatar sang hẳn bên trái, chữ dồn về một cột */
.rv-list .review {
  display: flex; flex-direction: row; align-items: flex-start; gap: 12px;
  padding: 13px 2px; border-bottom: 1px solid var(--line-soft);
  border-radius: 0; background: none;
}
.rv-list .review:last-child { border-bottom: 0; padding-bottom: 4px; }
.rv-list .review:hover { background: none; }

.rv-list .avatar { width: 38px; height: 38px; font-size: 15px; }
.rv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-meta b {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-sao { flex-shrink: 0; font-size: 12px; letter-spacing: 1.5px; color: var(--star); }
/* Tên người đánh giá + tag "Đã mua" (mọi đánh giá, cùng kiểu với account.css) */
.rv-meta .rvw-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rv-meta .rvw-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-meta .rvw-da { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px;
  background: #e6f8f0; color: #067a54; font-size: 10.5px; font-weight: 600; }
.rv-body p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #46525c; }

/* Điện thoại: điểm tổng xếp dọc cho đỡ chật */
@media (max-width: 560px) {
  .rv-summary { gap: 14px; padding: 14px; }
  .rv-score { min-width: 76px; padding-right: 14px; }
  .rv-score b { font-size: 31px; }
  .rv-bar-k, .rv-bar-n { font-size: 10px; }
  .rv-list .avatar { width: 34px; height: 34px; font-size: 14px; }
  .rv-body p { font-size: 13px; }
}

/* ============================================================
   BANNER DANH MỤC — chữ to và cân lại
   
   Bản cũ: chữ chỉ 46px trên khung rộng 1344px, mà khối chữ lại bị đẩy
   sang phải 49px để chừa chỗ cho dải mũi tên trang trí rộng đúng 7px.
   Trên điện thoại thành ra chữ 26px nằm lệch hẳn về bên phải, bên trái
   trống hoác. Khối này chỉnh lại cả cỡ chữ lẫn thế cân bằng.
   ============================================================ */

.cat-hero { min-height: clamp(190px, 17vw, 260px); }

.cat-hero .cat-hero-body {
  gap: clamp(6px, .8vw, 12px);
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
  padding-left: clamp(52px, 6.4vw, 104px);   /* chừa vừa đủ cho dải mũi tên */
  max-width: min(80%, 900px);
}

/* To gần gấp rưỡi, xấp xỉ cỡ chữ của banner trang hỗ trợ cho đồng bộ */
.cat-hero-body .hero-title {
  font-size: clamp(34px, 5.6vw, 72px);
  letter-spacing: -.005em;
}
.cat-hero-body .hero-eyebrow {
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: .3em;
}
.cat-hero-body .hero-sub { font-size: clamp(13px, 1.15vw, 17px); }

/* Hoạ tiết nở theo khung cho khỏi lọt thỏm ở màn rộng */
.cat-hero .hb-chevrons { gap: clamp(5px, .8vw, 12px); }
.cat-hero .hb-chevrons i { width: clamp(9px, 1.1vw, 15px); height: clamp(12px, 1.45vw, 20px); }
.cat-hero .hb-bars { width: clamp(16px, 1.7vw, 26px); height: 34%; top: 14%; }

/* ── Điện thoại ───────────────────────────────────────────────────────
   Bỏ dải mũi tên: nó chỉ rộng 7px mà bắt cả khối chữ thụt vào 49px, làm
   chữ dạt hẳn sang phải. Bỏ đi thì chữ về đúng lề như mọi phần khác. */
@media (max-width: 640px) {
  .cat-hero { min-height: 158px; }
  .cat-hero .hb-chevrons { display: none; }
  .cat-hero .cat-hero-body {
    max-width: none;
    padding: 20px 18px;
    justify-content: center;
  }
  .cat-hero-body .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .cat-hero-body .hero-eyebrow { font-size: 10.5px; letter-spacing: .26em; }
}

/* Điện thoại: canh giữa hẳn thay vì để khối chữ co theo nội dung rồi tình cờ
   nằm giữa. Tên danh mục dài ngắn khác nhau vẫn cân đều hai bên. */
@media (max-width: 640px) {
  .cat-hero { justify-content: center; text-align: center; }
  .cat-hero .cat-hero-body { align-items: center; width: 100%; }
  .cat-hero-body .hero-title { transform: none; }
}

/* Khoảng 641–900px: banner chuyển sang xếp dọc, nhưng align-items: center khai
   báo ở khối sau vẫn thắng nên khối chữ bị dồn vào giữa theo chiều ngang, cách
   mép trái tới 250px. Kéo lại thành stretch để chữ về đúng lề trái. */
@media (max-width: 900px) {
  .cat-hero { align-items: stretch; }
  .cat-hero .cat-hero-body { max-width: none; }
}

/* Điện thoại: canh giữa hẳn thay vì để khối chữ co theo nội dung rồi tình cờ
   nằm giữa. Tên danh mục dài ngắn khác nhau vẫn cân đều hai bên. */
@media (max-width: 640px) {
  .cat-hero { text-align: center; }
  .cat-hero .cat-hero-body { align-items: center; width: 100%; }
  .cat-hero-body .hero-title { transform: none; }
}

/* Trang "game tặng" (?sale=1): không có cột bộ lọc, lưới chiếm hết chiều ngang. */
.cat-layout--nofilter { grid-template-columns: 1fr; }

/* Máy hẹp (đa số Android 360px, iPhone SE 375px): hàng đầu trang có tới 4 thứ
   — logo, giỏ, Đăng nhập, Đăng ký. Để nguyên cỡ desktop là tổng bề ngang vượt
   màn hình, nút cuối bị đẩy lọt ra ngoài mép phải. */
@media (max-width: 420px) {
  /* 16 + logo 140 + 10 + nhóm nút ~168 + 16 = 350px, vừa khít máy 360px mà
     vẫn còn chỗ thở. Rộng hơn chút là nhóm nút rơi xuống hàng riêng, để logo
     đứng trơ một mình nhìn rất trống. */
  .masthead .wrap { column-gap: 10px; }
  .brand img { height: 31px; width: 140px; }
  .actions { gap: 6px; }
  .actions .icon-btn { padding: 5px; }
  .actions .btn { height: 36px; padding: 0 11px; font-size: 13px; }
}

/* ============================================================
   TRANG SALE

   Vấn đề của mấy bản trước: banner rất đậm, ảnh game rất đậm, còn vùng ở
   GIỮA toàn ô nền nhạt gần như trắng (đầu tiên là hồng, sau là cyan nhạt) —
   nhìn như trang chưa làm xong. Đổi hướng: bỏ hẳn các ô nền nhạt, thay bằng
   ô đếm ngược NAVY ĐẶC (đúng màu thanh đầu trang) và dòng thể lệ không khung.
   Ít khối hơn, tương phản mạnh hơn.
   ============================================================ */
.sale-banner-frame {
  position: relative; aspect-ratio: 4 / 1; overflow: hidden;
  border-radius: var(--radius); background: var(--navy-dark);
}
.cat-hero-sale .sale-banner {
  position: static; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ── Đồng hồ đếm ngược: ô navy đặc, số trắng ───────────────────────────── */
.sale-cd-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 16px;
}
.sale-cd-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.sale-cd-label svg { display: block; flex-shrink: 0; color: var(--cyan-600); }
.sale-cd-label span { display: block; line-height: 1; }

.sale-countdown { display: flex; align-items: stretch; gap: 7px; }
.cat-hero-sale .cd-unit {
  min-width: 64px; padding: 10px 8px 8px; border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border: 0;
  box-shadow: 0 6px 16px rgba(4, 41, 74, .22);
}
.cat-hero-sale .cd-unit b { color: #fff; font-size: 28px; letter-spacing: -.01em; }
.cat-hero-sale .cd-unit span {
  color: rgba(255, 255, 255, .62); font-size: 9.5px; letter-spacing: .1em;
}
.cat-hero-sale .cd-sep { color: var(--line); padding-top: 12px; font-size: 20px; }

.sale-cd-deadline { font-size: 12.5px; font-weight: 600; color: var(--cyan-700); }

/* ── Thể lệ: KHÔNG khung, chỉ nhãn đặc + câu chữ ───────────────────────── */
/* Bỏ hẳn ô nền nhạt — nó là thứ làm vùng giữa trang trông nhợt. Nhãn nằm
   inline đầu câu nên câu dài tự chảy xuống dòng như đoạn văn bình thường. */
.sale-rule {
  display: block; text-align: center;
  /* Đủ rộng để câu thể lệ thường gặp nằm gọn một dòng trên máy tính — hẹp hơn
     thì chữ cuối rơi xuống dòng riêng, nhìn rất lỗi. */
  max-width: 760px; margin: 14px auto 0; padding: 0;
  background: none; border: 0;
}
.sale-rule-badge {
  display: inline-flex; align-items: center; vertical-align: 2px;
  margin-right: 8px; padding: 4px 10px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; line-height: 1.4;
}
.sale-rule-text {
  display: inline;
  font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.6;
}

/* ── Header khu quà tặng ───────────────────────────────────────────────── */
.cat-count.sale-head {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; margin: 22px 0 14px;
}
.sale-head-eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan-700);
}
.sale-head-title { font-size: clamp(21px, 3vw, 28px); font-weight: 800; color: var(--navy); }
.sale-head-title b { color: var(--cyan-600); font-size: 1.1em; margin-right: 2px; }

/* ── Nhãn MIỄN PHÍ trên card ───────────────────────────────────────────── */
.pcard-free {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 8px; border-radius: 999px;
  background: linear-gradient(90deg, #15a34a, #22c55e); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  box-shadow: 0 2px 9px rgba(21, 163, 74, .38);
}
.pcard-free svg { display: block; flex-shrink: 0; color: #e9ffef; transform: translateY(-1px); }
.pcard-free span { display: block; line-height: 1; }

body.sale-page .section { padding-top: 14px; }

@media (max-width: 560px) {
  body.sale-page .section { padding-top: 10px; }
  .sale-cd-wrap { margin-top: 13px; gap: 7px; }
  .sale-countdown { gap: 6px; }
  .cat-hero-sale .cd-unit { min-width: 56px; padding: 9px 6px 7px; border-radius: 12px; }
  .cat-hero-sale .cd-unit b { font-size: 23px; }
  .cat-hero-sale .cd-sep { padding-top: 10px; font-size: 17px; }
  .sale-rule { margin-top: 12px; padding: 0 4px; }
  .sale-rule-text { font-size: 13.5px; }
  .cat-count.sale-head { margin: 18px 0 11px; }
}

/* ============================================================
   Thanh đầu trang bám trên cùng khi cuộn

   z-index 45: cao hơn nội dung, nhưng THẤP HƠN lớp phủ cửa sổ game (50) để
   không đè lên nó. Các menu con trong thanh (danh mục, gợi ý tìm kiếm) nằm
   trong ngữ cảnh xếp lớp của thanh nên tự động nổi theo.
   ============================================================ */
.masthead {
  position: sticky; top: 0; z-index: 45;
  transition: box-shadow .18s ease;
}
/* Mốc vô hình cao 48px ở đỉnh trang: cuộn qua khỏi nó thì thanh thu gọn.
   Đặt tuyệt đối nên không chiếm chỗ, không đẩy nội dung xuống. */
.masthead-moc {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 48px;
  pointer-events: none; visibility: hidden;
}
/* Rời khỏi đỉnh trang thì thêm bóng cho tách khỏi nội dung phía dưới */
.masthead.is-compact { box-shadow: 0 8px 22px rgba(2, 20, 36, .32); }

/* Máy tính: thanh chỉ 96px, ghim nguyên là vừa — không cần thu gọn. */

/* Điện thoại / máy tính bảng: thu gọn còn logo + tìm kiếm + giỏ.
   Giữ ô tìm kiếm vì với cửa hàng, đây là đường ngắn nhất tới sản phẩm. */
@media (max-width: 1024px) {
  .masthead.is-compact .mainnav { display: none; }
  .masthead.is-compact .actions .btn { display: none; }
  .masthead.is-compact .wrap { row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .masthead.is-compact .brand img { height: 32px; width: auto; }
}

/* Người dùng bật giảm chuyển động: bỏ hiệu ứng bóng mượt */
@media (prefers-reduced-motion: reduce) {
  .masthead { transition: none; }
}

/* ── Trang game /g/<slug>: khối thông tin tĩnh ─────────────────────────────
   Trang /g/<slug> là trang chủ đầy đủ và tự mở cửa sổ game. Khối này chỉ hiện
   trong lúc chờ nội dung (và cho Google đọc); cửa sổ mở xong nó bị ẩn. Trình
   bày như một thẻ sản phẩm lớn để nếu khách có kịp thấy thì vẫn ra dáng web. */
.g-seo { padding-top: 28px; }
.g-seo-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
  padding: 24px; background: var(--card); border-radius: var(--radius);
}
.g-seo-cover {
  width: 200px; height: 200px; object-fit: cover; border-radius: 14px;
  background: var(--line);
}
.g-seo-main h1 {
  margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.2;
  color: var(--ink);
}
.g-seo-price {
  margin: 10px 0 0; font-variant-numeric: tabular-nums;
}
.g-seo-price b { font-size: 24px; font-weight: 600; color: var(--cyan-600); }
.g-seo-price s { margin-left: 8px; font-size: 14px; color: var(--faint); }
.g-seo-desc {
  margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted);
}
.g-seo-cta { margin-top: 18px; }
.g-seo-note { margin: 10px 0 0; font-size: 12px; color: var(--faint); }

.g-seo-specs { margin-top: 24px; }
.g-seo-specs h2 {
  margin: 0 0 10px; font-size: 18px; font-weight: 600; color: var(--cyan-600);
}
.g-seo-specs table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.g-seo-specs th, .g-seo-specs td {
  padding: 9px 12px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.g-seo-specs th { width: 28%; font-weight: 500; color: var(--muted); }
.g-seo-specs td { color: var(--ink); }

@media (max-width: 560px) {
  .g-seo-card { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .g-seo-cover { width: 140px; height: 140px; }
}

/* Thanh nav có 4 mục (thêm "Cấu hình") nên dễ bị rớt xuống hàng hai ở màn
   hình vừa. Từ 1200px trở lên thì ép nằm một hàng và thu bớt khoảng cách. */
@media (min-width: 1200px) {
  .masthead .wrap { column-gap: 22px; }
  /* Nav chỉ chiếm đúng bề ngang của mấy mục trong nó, phần thừa nhường cho ô
     tìm kiếm. Để nav co giãn như cũ thì nó nuốt hết chỗ và đẩy nhóm nút đăng
     nhập xuống hàng dưới. */
  .mainnav { flex: 0 1 auto; flex-wrap: nowrap; }
  .searchbox { flex: 1 1 260px; }
  .navlink { padding: 0 13px; }
}

/* ── Trang kiểm tra cấu hình (category.html?check=1) ───────────────────────
   Cột trái hẹp và cố định: ô nhập + các bước + phần đọc lại cấu hình, gọn
   trong một màn hình. Cột phải rộng: lưới thẻ game, mỗi thẻ kèm cấu hình game
   đó yêu cầu và mức máy khách chạy nổi. Trên máy tính CẢ TRANG không cuộn,
   chỉ lưới game cuộn (chiều cao do JS đo, xem khoaChieuCao). */
.pc-layout {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: 316px minmax(0, 1fr);
}

.pc-box {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.pc-box-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pc-box-title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.pc-clear {
  flex: 0 0 auto; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--muted);
}
.pc-clear:hover { color: var(--cyan-700); }

.pc-in {
  display: block; width: 100%; margin-top: 10px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  font: inherit; font-size: 13.5px; line-height: 1.55; color: var(--ink); resize: vertical;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.pc-in::placeholder { color: var(--faint); }
.pc-in:hover { background: #fff; }
.pc-in:focus {
  outline: none; background: #fff; border-color: var(--cyan-600);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

/* Bốn bước lấy cấu hình: hai cột cho gọn chiều cao. */
.pc-steps-title {
  margin: 14px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cyan-700);
}
.pc-steps {
  margin: 10px 0 0; padding: 0; list-style: none; counter-reset: buoc;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px;
}
.pc-steps li {
  counter-increment: buoc; display: flex; align-items: flex-start; gap: 7px;
  font-size: 11.5px; line-height: 1.45; color: var(--muted);
}
.pc-steps li b { font-weight: 600; color: var(--ink); }
.pc-steps li::before {
  content: counter(buoc);
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%;
  background: var(--cyan-soft); color: var(--cyan-700);
  font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
}

.pc-actions { margin-top: 10px; }
.pc-go { width: 100%; height: 44px; font-size: 14.5px; }
.pc-go:disabled { opacity: .55; cursor: default; transform: none; }

.pc-read { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pc-read-empty { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--faint); }
.pc-read-line { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.pc-read-k {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--cyan-700);
}
.pc-read-line b { font-weight: 600; }

.pc-sum { margin-top: 10px; display: grid; gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-tile { padding: 8px 10px; border-radius: 11px; background: var(--card); border-left: 4px solid var(--line); }
.pc-tile b {
  display: block; font-size: 19px; font-weight: 600; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.pc-tile span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.pc-tile-duoc { border-left-color: var(--green); }
.pc-tile-sat { border-left-color: var(--amber); }
.pc-tile-khong b { color: var(--faint); }
.pc-note { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }

/* ── Cột phải: lưới thẻ game, chỉ vùng này cuộn ─────────────────────────── */
.pc-right { display: flex; flex-direction: column; min-width: 0; }
.pc-games-head h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.pc-games-head p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.pc-scroll {
  margin-top: 12px; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px;
}
.pc-scroll::-webkit-scrollbar { width: 8px; }
.pc-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.pc-scroll::-webkit-scrollbar-thumb:hover { background: #dcdcdc; }

.pc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); }

/* Thẻ game giữ nguyên .pcard của web; chỉ phần dưới tên đổi từ giá / điểm sao
   sang cấu hình game yêu cầu và mức máy khách chạy nổi. */
/* Thân thẻ phải vừa ĐÚNG chiều cao thẻ ngoài trang chủ (144px): tên 2 dòng +
   3 dòng cấu hình + chân thẻ. Rộng tay một chút là thẻ cao lên, ảnh kéo dài
   theo và bị cắt. */
.pcard-pc .pcard-body { justify-content: flex-start; }
.pc-specs { margin-top: 5px; }
.pc-spec {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  padding: 0; font-size: 11px; line-height: 1.25; min-height: 14px;
}
.pc-spec + .pc-spec { margin-top: 1px; border-top: 1px solid var(--line-soft); padding-top: 1px; }
.pc-spec i { font-style: normal; color: var(--faint); flex: 0 0 auto; }
.pc-spec b {
  font-weight: 500; color: var(--muted); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gverdict { padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.gverdict.is-duoc { background: rgba(16, 185, 129, .13); color: #0a7d5b; }
.gverdict.is-sat { background: rgba(245, 158, 11, .15); color: #92600a; }
.gverdict.is-chua { background: var(--card); color: var(--faint); }

.pc-group {
  margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.pc-group + .pc-grid { margin-top: 12px; }
.pc-group-h { font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* Máy tính: trang đứng yên, chỉ lưới game cuộn. */
@media (min-width: 1101px) {
  body.pc-page.pc-khoa { overflow: hidden; }
  body.pc-page .footer { display: none; }
}
@media (max-width: 1100px) {
  .pc-layout { grid-template-columns: 1fr; }
  .pc-scroll { max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 560px) {
  .pc-steps { grid-template-columns: 1fr; }
  .pc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Banner trang cấu hình THẤP hơn banner thể loại: cả trang không cuộn nên
   chỗ tiết kiệm được dồn hết cho danh sách game. Chỉ chỉnh padding trên/dưới,
   không đụng padding-left (chừa chỗ cho dải mũi tên). */
.pc-page .cat-hero { min-height: 158px; margin-bottom: 14px; }
.pc-page .cat-hero .cat-hero-body { gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.pc-page .cat-hero-body .hero-title { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.05; }
.pc-page .cat-hero-body .hero-eyebrow { font-size: 12px; }
.pc-page .cat-hero-body .hero-sub { font-size: 14.5px; }
/* Hai khối .section (banner / nội dung) mỗi khối đệm trên 44px -> gần 90px
   trắng giữa đầu trang, banner và khung. Trang này ép còn tối thiểu. */
.pc-page main > .section { padding-top: 14px; }
.pc-page main > .section + .section { padding-top: 0; }
.pc-page #pc-root { margin-top: 0; }

/* Thẻ ở trang này KHÔNG đụng tới kích thước: ảnh, lề, bo góc, chiều cao đều
   giữ nguyên của .pcard ngoài trang chủ. Chỉ phần chữ trong thân thẻ đổi từ
   giá / tình trạng / điểm sao sang cấu hình game yêu cầu + nút Mua ngay. */

/* Chân thẻ: nhãn đánh giá bên trái, nút Mua ngay bên phải. */
.pc-foot {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pc-buy {
  padding: 3px 11px; border-radius: 999px; cursor: pointer;
  background: var(--cyan-600); color: #fff; font-size: 11px; font-weight: 600;
  transition: background-color .16s ease;
}
.pc-buy:hover { background: var(--cyan-700); }

/* Ô tìm trong danh sách kết quả, nằm cạnh dòng "Máy bạn chơi được N game". */
.pc-games-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pc-games-title { min-width: 0; }
.pc-find-box {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--card); color: var(--faint);
  transition: background-color .16s ease, box-shadow .16s ease;
}
.pc-find-box:focus-within { background: #fff; box-shadow: 0 0 0 3px var(--cyan-soft); }
.pc-find {
  width: 190px; border: 0; background: none; outline: none;
  font: inherit; font-size: 13.5px; color: var(--ink);
}
.pc-find::placeholder { color: var(--faint); }

/* Icon nhỏ đứng trước CPU / GPU / RAM. */
.pc-spec-ic { flex: 0 0 auto; width: 11px; height: 11px; color: var(--faint); }
.pc-spec i { flex: 1 1 auto; }

@media (max-width: 560px) {
  .pc-games-head { flex-direction: column; align-items: stretch; }
  .pc-find { width: 100%; }
}

/* Màn thấp (laptop 768p, trình duyệt thu nhỏ): ô nhập bớt cao để khung trái
   và danh sách game vẫn nằm gọn trong một màn hình. */
@media (min-width: 1101px) and (max-height: 860px) {
  .pc-page .cat-hero { min-height: 128px; }
  .pc-page .cat-hero .cat-hero-body { padding-top: 16px; padding-bottom: 16px; }
}
@media (min-width: 1101px) and (max-height: 740px) {
  .pc-page .cat-hero { min-height: 0; }
  .pc-page .cat-hero .cat-hero-body { gap: 4px; padding-top: 12px; padding-bottom: 12px; }
  .pc-page .cat-hero-body .hero-title { font-size: 28px; }
  .pc-page .cat-hero-body .hero-sub { font-size: 13px; }
}

/* Máy tính: khung trái cao ĐÚNG bằng cột danh sách game (JS đặt height), ô
   nhập cao cố định vừa ~6 dòng cấu hình dán từ dxdiag. */
@media (min-width: 1101px) {
  .pc-page .pc-box { display: flex; flex-direction: column; }
  .pc-page .pc-box > * { flex-shrink: 0; }
  /* Ô nhập giãn theo chỗ trống nhưng có trần; còn dư nữa thì phần "Máy của
     bạn" dạt xuống đáy khung (margin-top: auto) — không để khoảng trắng
     trơ trọi dưới cùng. */
  .pc-page .pc-box > .pc-in { flex: 1 1 130px; min-height: 100px; max-height: 260px; resize: none; }
  .pc-page .pc-box > .pc-read { margin-top: auto; }
  .pc-page .pc-box > .pc-steps-title { margin-bottom: 0; }

  /* Hướng dẫn: mỗi bước một dòng trong một khối nền nhạt, đọc liền mạch
     và lấp gọn bề ngang khung thay cho lưới 2 cột chữ bị ngắt dòng. */
  .pc-page .pc-steps {
    grid-template-columns: 1fr; gap: 0; margin-top: 8px;
    background: var(--card); border-radius: 12px; padding: 4px 12px;
  }
  .pc-page .pc-steps li {
    align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px;
  }
  .pc-page .pc-steps li + li { border-top: 1px dashed var(--line); }
  .pc-page .pc-steps li::before {
    width: 20px; height: 20px; line-height: 20px; font-size: 11px;
    background: #fff; box-shadow: inset 0 0 0 1px var(--cyan-soft);
  }
  .pc-page .pc-read { padding-top: 12px; }
}

/* Màn thấp: bước hướng dẫn quay về 2 cột gọn để cả khung trái vừa một màn
   hình, không phải cuộn bên trong. */
@media (min-width: 1101px) and (max-height: 860px) {
  .pc-page .pc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 6px 10px; }
  .pc-page .pc-steps li { padding: 5px 0; font-size: 11.5px; align-items: flex-start; gap: 7px; }
  .pc-page .pc-steps li + li { border-top: 0; }
  .pc-page .pc-steps li::before { width: 18px; height: 18px; line-height: 18px; font-size: 10.5px; }
  .pc-page .pc-box > .pc-in { min-height: 90px; }
}
@media (min-width: 1101px) and (max-height: 740px) {
  .pc-page .pc-box > .pc-in { min-height: 72px; }
}

/* Dòng EVO Client trong khung "Cách lấy cấu hình máy": nền xanh gradient chạy, có khung sáng, luôn một
   dòng và rộng đúng bằng các dòng bên trên. Bộ chọn dài hơn để thắng các luật .pc-page .pc-steps li. */
.pc-steps li.pc-evo-li, .pc-page .pc-steps li.pc-evo-li {
  display: block; grid-column: 1 / -1; min-width: 0; padding: 8px 0 5px; border-top: 0; counter-increment: none;
}
.pc-steps li.pc-evo-li::before, .pc-page .pc-steps li.pc-evo-li::before { content: none; display: none; }
.pc-steps a.pc-evo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-width: 0; box-sizing: border-box;
  padding: 7px 8px; border-radius: 10px; border: 1.5px solid #5fdcff;
  background: linear-gradient(100deg, #06315f 0%, #0b5fa5 30%, #0a86c9 50%, #0b5fa5 70%, #06315f 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(0, 194, 247, .5), inset 0 0 0 1px rgba(255, 255, 255, .12);
  color: #ffffff; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  animation: pc-evo-flow 4s linear infinite, pc-evo-glow 2.4s ease-in-out infinite;
}
/* Vệt sáng lướt qua */
.pc-steps a.pc-evo::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -45%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg); animation: pc-evo-shine 3.2s ease-in-out infinite; pointer-events: none;
}
.pc-steps a.pc-evo:hover, .pc-steps a.pc-evo:focus-visible { color: #ffffff; }
.pc-steps a.pc-evo:focus-visible { outline: 2px solid #5fdcff; outline-offset: 2px; }
.pc-steps a.pc-evo img { flex: 0 0 auto; width: 22px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 4px rgba(95, 220, 255, .9)); }
.pc-evo-text { flex: 0 1 auto; min-width: 0; padding-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.pc-evo-arrow { flex: 0 0 auto; margin-left: -2px; padding-top: 2px; font-size: 13px; line-height: 1; color: #8cebff; }
.pc-steps li .pc-evo-text b { font-weight: 700; color: #8cebff; }
@keyframes pc-evo-flow { to { background-position: -200% 0; } }
@keyframes pc-evo-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 194, 247, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }
  50% { box-shadow: 0 0 20px rgba(0, 194, 247, .85), inset 0 0 0 1px rgba(255, 255, 255, .2); }
}
@keyframes pc-evo-shine { 0% { left: -45%; } 60%, 100% { left: 110%; } }
@media (prefers-reduced-motion: reduce) {
  .pc-steps a.pc-evo, .pc-steps a.pc-evo::after { animation: none; }
  .pc-steps a.pc-evo::after { display: none; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .pc-page .pc-box > .pc-in { min-height: 64px; }
  .pc-steps a.pc-evo { font-size: 11.5px; }
}
@media (min-width: 1101px) {
  /* Ô nhập vẫn giãn khi còn chỗ, nhưng được co tới mức vừa đủ 3 dòng để khung không phải cuộn. */
  /* Máy tính: khung không bao giờ có thanh cuộn. category.js đã xếp sít hoặc cho khung cao theo nội
     dung khi thiếu chỗ. (Màn scale 125%/150% lệch lẻ vài phần pixel cũng đủ làm thanh cuộn hiện ra.) */
  .pc-page .pc-box { overflow-y: hidden; }
  .pc-page .pc-box > .pc-in { min-height: 86px; max-height: min(46vh, 520px); }
  .pc-page .pc-box.pc-gon > .pc-in { min-height: 76px; padding-top: 7px; padding-bottom: 7px; }
  .pc-page .pc-box.pc-gon .pc-steps { padding-top: 2px; padding-bottom: 2px; margin-top: 6px; }
  .pc-page .pc-box.pc-gon .pc-steps li { padding-top: 4px; padding-bottom: 4px; }
  .pc-page .pc-box.pc-gon .pc-steps li.pc-evo-li { padding: 5px 0 4px; }
  .pc-page .pc-box.pc-gon .pc-steps a.pc-evo { padding-top: 5px; padding-bottom: 5px; }
  .pc-page .pc-box.pc-gon .pc-steps-title { margin-top: 10px; }
  .pc-page .pc-box.pc-gon .pc-read { margin-top: 10px; padding-top: 8px; }
}

/* Nút Đăng nhập / Đăng ký viết sẵn trong HTML chỉ để giữ chỗ: account.js vẽ lại theo trạng thái
   đăng nhập (đã đăng nhập thì hiện avatar ngay). Ẩn đi để đổi trang không nháy nút "Đăng nhập". */
.masthead .actions > .acc-tam { display: none; }

/* ── SEO: chữ tĩnh do og-pages.py chèn (h1 ẩn, danh sách link game) ──────────
   Nằm trong các khung JS vẽ lại (#sections, #cat-grid, #cat-hero) nên chỉ thấy trước
   khi JS chạy xong, hoặc khi máy không chạy JS (Google, trình đọc màn hình). */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seo-ds { padding: 18px 0; }
.seo-ds h2 { font-size: 18px; margin: 0 0 10px; }
.seo-ds ul { margin: 0; padding: 0; list-style: none; columns: 3 240px; column-gap: 24px; }
.seo-ds li { break-inside: avoid; padding: 3px 0; font-size: 14px; }
.seo-ds li span { color: var(--muted, #6b7785); font-size: 13px; }
.seo-ds-more { margin: 8px 0 18px; font-size: 14px; }
.grid > .seo-ds { grid-column: 1 / -1; }
