/* LiveArcade — trang công khai. Hướng thiết kế: "arcade đêm" (nền navy, điểm nhấn hổ phách + neon theo accent của game).
   Chữ hệ thống (CSP không cho tải font ngoài), chỉ animate transform/opacity, tôn trọng prefers-reduced-motion. */

:root {
  --ink: #060919;
  --navy: #0a1030;
  --panel: #111a45;
  --panel-2: #18235d;
  --line: rgba(166, 184, 255, 0.16);
  --text: #eef1ff;
  --muted: #a8b2de;
  --amber: #ffb627;
  --amber-deep: #b57a00;
  --pink: #ff3d8b;
  --cyan: #37e2ff;
  --danger: #ff8fa8;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.6 var(--font);
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

/* Nền: ánh neon hai góc + lưới chấm mờ dần xuống dưới */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255, 61, 139, 0.2), transparent 62%),
    radial-gradient(800px 520px at -6% 4%, rgba(55, 226, 255, 0.14), transparent 60%),
    radial-gradient(rgba(190, 205, 255, 0.09) 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--ink);
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 900; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.1rem + 4.8vw, 4.4rem); margin-bottom: 0.4em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem); margin-bottom: 0.35em; }
h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
p { margin-bottom: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { overflow-x: clip; }
#app { min-height: 70vh; }
.noscript { color: var(--muted); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--amber); color: var(--ink); font-weight: 800; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 25, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(6, 9, 25, 0.72); backdrop-filter: blur(14px) saturate(140%); }
}
.bar { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: block; flex: none; width: 38px; height: 38px; filter: drop-shadow(0 0 12px rgba(255, 61, 139, 0.45)); transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-word { font-weight: 900; font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.brand-word b { font-weight: 900; background: linear-gradient(100deg, var(--amber), var(--pink) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: clamp(2px, 1.5vw, 10px); }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--amber); }

/* ===== Nút ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 1rem/1.2 var(--font); text-decoration: none;
  color: var(--ink); background: var(--amber);
  box-shadow: 0 5px 0 var(--amber-deep), 0 14px 28px -10px rgba(255, 182, 39, 0.5);
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background 0.15s;
}
.btn:hover { transform: translateY(-2px); background: #ffc552; box-shadow: 0 7px 0 var(--amber-deep), 0 18px 32px -10px rgba(255, 182, 39, 0.55); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--amber-deep); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px var(--amber); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--amber); }
.btn-small { padding: 9px 16px; font-size: 0.92rem; border-radius: 12px; box-shadow: 0 3px 0 var(--amber-deep); }
.btn-small.btn-ghost { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }
.ico-end { transition: transform 0.2s var(--ease); }
.btn:hover .ico-end, a:hover > .ico-end { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--amber); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Chữ ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.1rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--amber); box-shadow: 0 0 12px var(--amber); transform: rotate(45deg); }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.hl { color: var(--amber); text-shadow: 0 0 0.6em rgba(255, 182, 39, 0.45); white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 1.6rem; }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head p { color: var(--muted); max-width: 60ch; margin-bottom: 0; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-head p { margin-bottom: 0; }
.page-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(16px, 3vw, 32px); }
.tag {
  display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent, #ffb627) 24%, transparent);
  border-color: color-mix(in srgb, var(--accent, #ffb627) 55%, transparent);
}
.tag-link:hover { background: color-mix(in srgb, var(--accent, #ffb627) 40%, transparent); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag-list li { padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--muted); border: 1px dashed var(--line); }
.mini-chip { display: inline-block; padding: 2px 10px; margin: 0 6px 6px 0; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(55, 226, 255, 0.1); color: var(--cyan); }

/* ===== Khung điện thoại 9:16 (ảnh chơi thật hoặc khung màu accent khi thiếu ảnh) ===== */
.phone {
  position: relative; display: block; margin: 0; width: 100%; aspect-ratio: 9 / 16;
  padding: 2.6%; border-radius: 11% / 6.2%; background: #03050e;
  container-type: inline-size;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 26px 44px -22px rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 28px 50px -22px color-mix(in srgb, var(--accent, #ffb627) 75%, transparent), 0 10px 22px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.phone .screen {
  position: absolute; inset: 1.46% 2.6%; overflow: hidden; border-radius: 8.4% / 4.72%;
  background: linear-gradient(165deg, var(--accent, #ffb627), #101840 88%);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; z-index: 2; top: 2.7%; left: 50%; width: 25%; height: 2.6%; transform: translateX(-50%); background: #03050e; border-radius: 99px; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7em;
  padding: 14% 10%; text-align: center; color: #fff;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.24), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 12px, transparent 12px 24px);
}
.ph b { font-size: 15px; font-size: clamp(12px, 9cqw, 30px); line-height: 1.15; font-weight: 900; text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.ph span { font-size: 11px; font-size: clamp(9px, 4.6cqw, 13px); opacity: 0.85; }
.phone.mini .ph span { display: none; }

/* ===== Lưới thẻ game ===== */
.latest { padding-top: var(--section); }
.game-grid { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gcard {
  display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 16px; border-radius: 22px; text-decoration: none;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s;
}
.gcard:hover, .gcard:focus-visible { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.34); border-color: color-mix(in srgb, var(--accent, #ffb627) 70%, transparent); background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); }
.gcard:hover .phone, .gcard:focus-visible .phone { transform: rotate(-1.4deg) scale(1.02); }
.gcard-body { display: flex; flex-direction: column; gap: 6px; padding-inline: 4px; }
.gcard-body h3 { margin: 4px 0 0; font-size: 1rem; line-height: 1.25; }
.gcard-body p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Biểu mẫu ===== */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .label { font-weight: 800; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field input:not([type='checkbox']), .field textarea, .picker summary, .search-box input {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: 400 16px/1.4 var(--font); color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:not([type='checkbox']), .field textarea, .search-box input { -webkit-appearance: none; appearance: none; }
.field select {
  width: 100%; padding: 13px 14px; border-radius: 12px; font: 400 16px/1.4 var(--font); color: var(--text);
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line); -webkit-appearance: none; appearance: none;
}
.field select option { color: #111; background: #fff; }
.field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.2); }
.field input::placeholder, .field textarea::placeholder, .search-box input::placeholder { color: rgba(168, 178, 222, 0.6); }
.field input:not([type='checkbox']):focus, .field textarea:focus, .search-box input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.2); }
.hint, .counter { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.two { display: grid; gap: 14px; }
.mini-form, .contact-form { display: grid; gap: 14px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 12px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 0.92rem; color: var(--muted); }
.form-status.is-error { color: var(--danger); font-weight: 700; }
.thanks { text-align: center; padding: clamp(16px, 4vw, 40px) 8px; }
.thanks .cta-row { justify-content: center; }
.thanks h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.thanks p { color: var(--muted); }
.thanks-ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; color: var(--ink); background: var(--amber); box-shadow: 0 5px 0 var(--amber-deep); }
.thanks strong { font-size: 1.4rem; }

/* ===== Danh mục ===== */
.filter-bar { position: sticky; top: var(--header-h); z-index: 20; padding-block: 12px; background: rgba(6, 9, 25, 0.9); border-block: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .filter-bar { background: rgba(6, 9, 25, 0.7); backdrop-filter: blur(14px); } }
.filter-inner { display: grid; gap: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 700 0.9rem/1.2 var(--font); color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1.5px solid var(--line);
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.chip small { font-size: 0.74rem; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.chip:hover { border-color: var(--amber); transform: translateY(-1px); }
.chip.is-active { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.chip.is-active small { background: rgba(6, 9, 25, 0.18); }
.catalog { padding-top: 20px; padding-bottom: var(--section); }
.result-count { color: var(--muted); font-size: 0.88rem; min-height: 1.4em; }
.empty { padding: 48px 16px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; }
.empty strong { font-size: 1.2rem; }
.empty p { color: var(--muted); }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ===== Chi tiết game ===== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 700; }
.detail { display: grid; gap: 28px; padding-top: 18px; padding-bottom: var(--section); }
.detail-gallery { min-width: 0; }
.gallery { min-width: 0; }
.g-track {
  position: relative; display: flex; gap: 16px; overflow-x: auto; padding: 14px 4px 18px; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { outline-offset: -2px; border-radius: 20px; }
.g-slide { position: relative; flex: 0 0 clamp(176px, 58vw, 262px); scroll-snap-align: start; }
.zoom { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; background: transparent; border-radius: 11% / 6.2%; cursor: zoom-in; }
.phone.is-empty ~ .zoom { display: none; }
.g-slide:hover .phone { transform: translateY(-6px); }
.g-cap { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.g-cap b { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.78rem; color: var(--ink); background: var(--accent, var(--amber)); }
.g-controls { display: flex; align-items: center; gap: 12px; }
.g-dots { display: flex; gap: 8px; margin-right: auto; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: rgba(255, 255, 255, 0.28); transition: width 0.25s var(--ease), background 0.2s; }
.dot[aria-current] { width: 26px; background: var(--amber); }
.g-count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.round {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1.5px solid var(--line); border-radius: 50%;
  transition: background 0.15s, border-color 0.15s;
}
.round:hover:not(:disabled) { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.round:disabled { opacity: 0.35; cursor: default; }
.g-hint { margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px dashed var(--line); }
.g-keys { display: none; margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.info h1 { margin: 12px 0 0.3em; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
.blurb { font-size: 1.02rem; color: var(--text); max-width: 60ch; }
.block { margin-top: 32px; }
.block h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); display: flex; align-items: center; gap: 10px; }
.block h2::before { content: ''; width: 6px; height: 1.1em; border-radius: 3px; background: var(--accent, var(--amber)); }
.how-viewers { display: grid; gap: 10px; }
.how-viewers li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.how-viewers .tick { color: var(--accent, var(--amber)); margin-top: 1px; }
.how-viewers .tick svg { width: 20px; height: 20px; }
.how-viewers code { flex: none; padding: 2px 10px; border-radius: 8px; font: 800 0.88rem/1.5 ui-monospace, Consolas, monospace; color: var(--ink); background: var(--amber); }
.how-viewers .cmd { align-items: center; flex-wrap: wrap; }
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 62px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 900; color: var(--ink); background: var(--amber); box-shadow: 0 3px 0 var(--amber-deep); }
.steps span { color: var(--muted); font-size: 0.93rem; }
.similar { padding-bottom: var(--section); }

/* ===== Xem ảnh lớn ===== */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--text); background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 5, 14, 0.94); }
.lb-fig { display: grid; gap: 12px; justify-items: center; margin: 0; }
.lb-fig img { height: min(84vh, 1180px); width: auto; max-width: 92vw; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 26px; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 30px 80px -20px color-mix(in srgb, var(--accent, #ffb627) 60%, transparent); }
.lb-fig figcaption { font-weight: 700; color: var(--muted); }
.lb-close { position: fixed; top: 14px; right: 14px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ===== Liên hệ ===== */
.contact-grid { display: grid; gap: 28px; padding-top: clamp(28px, 5vw, 64px); padding-bottom: var(--section); }
.contact-side h1, .contact-title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
.contact-steps { display: grid; gap: 12px; margin-top: 24px; counter-reset: c; }
.contact-steps li { position: relative; display: grid; gap: 2px; padding-left: 52px; counter-increment: c; }
.contact-steps li::before { content: counter(c); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 900; color: var(--ink); background: var(--amber); }
.contact-steps span { color: var(--muted); font-size: 0.93rem; }
.contact-direct { margin-top: 32px; padding: 18px 20px; border-radius: 18px; border: 1px dashed var(--line); }
.contact-direct h2 { font-size: 1.1rem; }
.contact-direct li { display: flex; gap: 12px; padding: 5px 0; }
.contact-direct li > span { flex: 0 0 64px; color: var(--muted); font-size: 0.88rem; }
.contact-direct a { color: var(--amber); font-weight: 700; overflow-wrap: anywhere; }
.contact-card { padding: clamp(18px, 3.5vw, 32px); border-radius: 26px; background: linear-gradient(170deg, var(--panel-2), var(--panel) 40%, var(--navy)); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.picked { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; cursor: pointer; font: 700 0.85rem/1.2 var(--font); color: var(--ink); background: var(--amber); border: 0; }
.pick-chip i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(6, 9, 25, 0.18); }
.pick-chip:hover i { background: rgba(6, 9, 25, 0.4); }
.picker summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.picker summary::-webkit-details-marker { display: none; }
.picker summary::after { content: '▾'; margin-left: auto; padding-left: 10px; color: var(--muted); }
.picker[open] summary::after { content: '▴'; }
.picker-count { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.picker-body { margin-top: 8px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(3, 5, 14, 0.5); }
.picker-body > input { margin-bottom: 8px; }
.picker-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.pgroup { padding-block: 6px; border-top: 1px dashed var(--line); }
.pgroup:first-child { border-top: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; font-weight: 400; }
.opt:hover { background: rgba(255, 255, 255, 0.07); }
.opt input { width: 18px; height: 18px; flex: none; padding: 0; accent-color: var(--amber); }
.opt-group { font-weight: 800; color: var(--amber); }

/* ===== Bảng giá ===== */
.pricing { padding-top: clamp(28px, 5vw, 64px); scroll-margin-top: calc(var(--header-h) + 8px); }
.pricing .section-head h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); }
.price-grid { display: grid; gap: 18px; align-items: stretch; }
.price-card {
  position: relative; display: grid; align-content: start; gap: 10px; padding: clamp(20px, 3vw, 28px); border-radius: 24px;
  background: linear-gradient(170deg, var(--panel-2), var(--panel) 45%, var(--navy)); border: 1px solid var(--line);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(255, 182, 39, 0.5); }
.price-card.is-featured { border: 2px solid var(--amber); box-shadow: 0 0 0 4px rgba(255, 182, 39, 0.12), 0 30px 60px -28px rgba(255, 182, 39, 0.45); }
.price-card h3 { font-size: 1.3rem; margin: 0; }
.price-flag {
  position: absolute; top: -14px; right: 18px; padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 900;
  color: var(--ink); background: var(--amber); box-shadow: 0 4px 0 var(--amber-deep);
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.price b { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; color: var(--amber); }
.price span { color: var(--muted); font-weight: 700; }
.price-note { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--cyan); }
.price-list { display: grid; gap: 9px; margin: 6px 0 10px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.price-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--cyan); }
.price-tick svg { width: 20px; height: 20px; }
.price-card .btn { align-self: end; justify-self: stretch; text-align: center; justify-content: center; margin-top: auto; }
.foot-price { grid-column: 1 / -1; margin: 0; font-size: 0.92rem; color: var(--muted); }
.foot-price a { color: var(--amber); font-weight: 700; }

/* ===== Hiện dần khi cuộn ===== */
.reveal { transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(22px); }

/* ===== Chân trang ===== */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 80px); overflow: hidden; background: linear-gradient(180deg, rgba(3, 5, 14, 0), #03050e 140px); }
.foot-glow {
  position: absolute; left: 50%; top: 0; z-index: 0; width: min(1100px, 130%); height: 220px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 61, 139, 0.32), rgba(139, 92, 246, 0.16) 55%, transparent);
  opacity: 0.8;
}
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--amber), var(--pink), #8b5cf6, transparent);
}
.foot-ticker { position: relative; z-index: 1; overflow: hidden; padding-block: 14px; border-bottom: 1px solid var(--line); }
.foot-ticker-track { display: flex; width: max-content; align-items: center; animation: ticker 48s linear infinite; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(168, 178, 222, 0.7); white-space: nowrap; }
.foot-ticker-track span { padding-inline: clamp(14px, 2.4vw, 26px); }
.foot-ticker-track i { font-style: normal; color: var(--pink); }
.foot-ticker-track i:nth-of-type(3n+2) { color: var(--amber); }
.foot-ticker-track i:nth-of-type(3n) { color: var(--cyan); }
@keyframes ticker { to { transform: translateX(-50%); } }
.foot { position: relative; z-index: 1; display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: clamp(32px, 5vw, 56px) 24px; }
.foot-brand { grid-column: 1 / -1; }
.foot-logo { display: inline-block; }
.foot-logo img { display: block; height: auto; max-width: 100%; }
.foot-brand p { color: var(--muted); max-width: 44ch; margin: 14px 0 18px; font-size: 0.95rem; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.soc {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font-weight: 800; font-size: 0.9rem; text-decoration: none;
  color: var(--text); background: rgba(255, 255, 255, 0.07); border: 1.5px solid var(--line);
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, color 0.18s;
}
.soc:hover { transform: translateY(-2px); color: var(--ink); background: var(--amber); border-color: var(--amber); }
.foot-cta {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 12px; font-weight: 900; font-size: 0.95rem; text-decoration: none; color: #fff;
  background: linear-gradient(100deg, var(--pink), #8b5cf6); box-shadow: 0 4px 0 #5b2ec0, 0 14px 28px -12px rgba(255, 61, 139, 0.6);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.foot-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #5b2ec0, 0 18px 30px -12px rgba(255, 61, 139, 0.7); }
.foot-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #5b2ec0; }
.foot-col h2 { margin: 0 0 14px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.foot-col ul { display: grid; gap: 9px; }
.foot-col a { text-decoration: none; color: var(--muted); font-size: 0.94rem; transition: color 0.15s; }
.foot-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-games { grid-column: 1 / -1; }
.foot-games ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.foot-games a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.foot-games small { padding: 0 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: var(--muted); background: rgba(255, 255, 255, 0.08); }
.foot-contact li { display: grid; gap: 1px; color: var(--muted); font-size: 0.94rem; }
.foot-contact span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(168, 178, 222, 0.6); }
.foot-contact a { color: var(--amber); font-weight: 700; overflow-wrap: anywhere; }
.site-footer .foot-price { position: relative; z-index: 1; padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--line); background: rgba(255, 255, 255, 0.03); }
.foot-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 28px; }
.foot-bottom p { margin: 0; font-size: 0.84rem; color: var(--muted); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 0.86rem; font-weight: 800; text-decoration: none;
  color: var(--text); border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.05); transition: background 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.to-top:hover { color: var(--ink); background: var(--amber); transform: translateY(-2px); }

/* ===== Hiện dần khi cuộn ===== */
.reveal { transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms); }
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(22px); }

/* ===== Responsive ===== */
@media (min-width: 560px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .filter-inner { grid-template-columns: minmax(220px, 320px) 1fr; align-items: center; }
  .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
  .foot-brand .foot-logo, .foot-brand p, .foot-brand .foot-social { grid-column: 1; }
  .foot-brand p { margin-bottom: 14px; }
  .foot-brand .foot-social { margin-bottom: 0; }
  .foot-brand .foot-cta { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 1.02rem; padding: 14px 26px; }
  .foot-games { grid-column: span 2; }
}
@media (min-width: 820px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 960px) {
  .detail { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
  .detail-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
  .g-keys { display: block; }
}
@media (min-width: 1100px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .nav a[href='/lien-he#bang-gia'] { display: none; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.05rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { gap: 6px; }
  .nav a { padding: 8px 5px; font-size: 0.86rem; white-space: nowrap; }
  .nav { gap: 0; }
  .bar { gap: 2px; }
  .btn-small { padding: 8px 9px; font-size: 0.84rem; white-space: nowrap; }
  .btn { padding: 13px 18px; }
  .hl { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on .reveal:not(.in) { opacity: 1; transform: none; }
}
