/* TÀN KINH - trang chủ mới (Zan 03/12): web game hiện đại, tông tối.
   Tham khảo bố cục Genshin / Star Rail (mỗi khu một màn hình ảnh tràn viền, chấm điều hướng, giao diện mỏng nhẹ)
   + chất Black Myth: Wukong (viền vàng mảnh, đỏ son làm điểm nhấn). Chỉ nạp ở trang chủ (body.home2). */

.home2 main { overflow-x: clip; }
.home2 :where(a) { color: inherit; }
.home2 :focus-visible { outline: 2px solid var(--son); outline-offset: 3px; }
.home2 h1, .home2 h2, .home2 h3 { font-family: var(--f-disp); font-weight: 700; letter-spacing: 0; }
.h2-wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.h2s { position: relative; min-height: 100svh; isolation: isolate; }
.h2-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* ---------- thanh trên: trong suốt trên ảnh, đặc lại khi cuộn */
.home2 .nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); background: transparent; backdrop-filter: none; border: 0; transition: background .25s, box-shadow .25s; }
.home2 .nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: 0; transition: opacity .25s; }
.home2.scrolled .nav { background: rgba(13, 10, 14, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.home2.scrolled .nav::after { opacity: 1; }
.home2 .nav .wrap { max-width: 1240px; }
.home2 .logo img { height: 44px; width: auto; }
.home2 .nav-links a { color: var(--ink); font: 600 14px var(--f-ui); border-radius: 0; padding: 8px 12px; position: relative; }
.home2:not(.scrolled) .nav-links a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.home2 .nav-links a:hover, .home2 .nav-links a[aria-current="page"] { background: none; color: var(--son); }
.home2:not(.scrolled) .nav-links a:hover, .home2:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--gold-lt); }
.home2 .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: currentColor; }
.home2 .nav-search input { height: 38px; min-height: 0; border-radius: 0; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .2); color: #fff; font: 14px var(--f-ui); backdrop-filter: blur(6px); }
.home2 .nav-search input::placeholder { color: rgba(255, 255, 255, .8); }
.home2.scrolled .nav-search input { border-color: var(--line); background: var(--panel); color: var(--ink); }
.home2.scrolled .nav-search input::placeholder { color: var(--mute); }
.home2 .nav-toggle { border-radius: 0; border-color: currentColor; color: #fff; }
.home2.scrolled .nav-toggle { color: var(--ink); }
@media (max-width: 1180px) { .home2 .nav-links { background: var(--paper); border-bottom: 1px solid var(--gold); } .home2 .nav-links a, .home2:not(.scrolled) .nav-links a { color: var(--ink); text-shadow: none; } }

/* ---------- nút */
.h2-btn-main { min-height: 64px; padding: 0 60px; font: 700 22px var(--f-disp); letter-spacing: .06em; }
.h2-btn-main::before, .h2-btn-main::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--gold-lt); transform: translateY(-50%) rotate(45deg); }
.h2-btn-main::before { left: 20px; } .h2-btn-main::after { right: 20px; }
.h2-link { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--f-ui); letter-spacing: .04em; color: var(--gold-lt); text-decoration: none; padding: 6px 0; border-bottom: 1px solid currentColor; }
.h2-link::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .2s; }
.h2-link:hover::after { width: 30px; }
.h2-link-light { color: var(--gold-lt); }

/* ---------- chữ chung */
.h2-eyebrow { display: flex; align-items: center; gap: 12px; font: 600 13px var(--f-ui); letter-spacing: .14em; color: #e0563f; margin: 0 0 10px; }
.h2-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h2-count { margin-left: auto; letter-spacing: .08em; opacity: .8; font-variant-numeric: tabular-nums; }
.h2-title { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; margin: 0 0 18px; color: #f3e6c8; text-wrap: balance; }
.h2-title-sm { font-size: clamp(32px, 3.6vw, 48px); }

/* ---------- chấm điều hướng bên phải */
.h2-dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: grid; gap: 16px; }
.h2-dots a { position: relative; display: block; width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); background: rgba(13, 10, 14, .6); }
.h2-dots a.on { background: var(--son); border-color: var(--son); }
.h2-dots span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(-45deg); transform-origin: right center; white-space: nowrap; font: 600 12px var(--f-ui); color: var(--ink); background: var(--paper); padding: 2px 8px; border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .15s; }
.h2-dots a:hover span, .h2-dots a:focus-visible span { opacity: 1; }
@media (max-width: 1300px) { .h2-dots { right: 12px; } }
@media (max-width: 900px) { .h2-dots { display: none; } }

/* ---------- 1. đầu trang */
.h2-hero { display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 72px; }
.h2-hero .h2-bg { object-position: 30% 50%; }
.h2s > picture { position: absolute; inset: 0; z-index: -2; }
.h2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(13, 10, 14, .55) 0%, rgba(13, 10, 14, .2) 40%, rgba(13, 10, 14, .5) 70%, rgba(13, 10, 14, .75) 100%),
  linear-gradient(0deg, var(--paper) 0%, rgba(13, 10, 14, 0) 26%),
  linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 16%); }
.h2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.h2-logo { margin: 0 0 6px -14px; }
.h2-logo img { width: min(560px, 100%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }
.h2-tagline { font: 700 clamp(20px, 2vw, 26px) var(--f-disp); color: var(--gold-lt); letter-spacing: .04em; margin: 0 0 12px; text-shadow: 0 2px 12px #000; }
.h2-lede { max-width: 30em; color: #e2d9c8; font-size: 17px; margin: 0 0 30px; text-shadow: 0 2px 10px #000; }
.h2-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.h2-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); text-shadow: 0 2px 8px #000; }
.h2-note a { color: var(--gold-lt); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.home2 .server-status { background: rgba(0, 0, 0, .5); border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: 600 13px var(--f-ui); padding: 8px 12px; }
/* Cổng Tiên Môn: thẻ giấy mờ, viền vàng mảnh lồng đôi */
.t2 .h2-auth { background: rgba(15, 11, 16, .82); backdrop-filter: blur(14px); border: 1px solid var(--gold); border-radius: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); padding: 30px 28px 24px; }
.t2 .h2-auth::before { inset: 5px; border: 1px solid rgba(184, 145, 74, .35); border-radius: 0; padding: 0; background: none; -webkit-mask: none; mask: none; }
.t2 .h2-auth h2 { font-size: 26px; color: var(--gold-lt); text-align: left; margin-bottom: 18px; }
.home2 .auth-tabs { background: none; padding: 0; gap: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 18px; }
.home2 .auth-tabs button { border-radius: 0; color: var(--mute); font: 600 14px var(--f-ui); background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.home2 .auth-tabs button[aria-selected="true"] { background: none; color: var(--gold-lt); box-shadow: none; border-bottom-color: var(--son); }
.home2 .field span { color: var(--ink-2); font: 600 12px var(--f-ui); }
.home2 .field input { border-radius: 0; border: 1px solid rgba(217, 182, 106, .3); background: rgba(0, 0, 0, .45); color: var(--ink); font: 15px var(--f-ui); }
.home2 .field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 91, .18); }
.home2 .auth .btn { width: 100%; min-height: 50px; }
.home2 .auth-row button, .home2 .auth-row a { color: var(--gold-lt); font: 600 13px var(--f-ui); }
.home2 .msg.err { color: #ff7a6a; } .home2 .msg.ok { color: #7fd6a0; }
.home2 .chars li { border-radius: 0; background: rgba(0, 0, 0, .4); border-color: var(--line); }
.home2 .chars li b { color: var(--gold-lt); }
.home2 .dim { color: var(--mute); }
.h2-scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 1px solid var(--gold); border-radius: 12px; transform: translateX(-50%); }
.h2-scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; background: var(--gold-lt); transform: translateX(-50%); animation: h2scroll 1.8s infinite; }
@keyframes h2scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 980px) {
  .h2-hero { min-height: auto; padding-top: calc(var(--nav-h) + 12px); }
  .h2-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(13, 10, 14, .15) 14%, rgba(13, 10, 14, .55) 42%, var(--paper) 74%); }
  .h2-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .h2-hero-copy { text-align: center; }
  .h2-logo { margin: 0 auto; } .h2-logo img { margin: 0 auto; }
  .h2-lede { margin-inline: auto; } .h2-cta { justify-content: center; }
  .h2-scroll { display: none; }
}

/* ---------- 2. cốt truyện: biển mây, cột chữ bên trái */
.h2-story { display: flex; align-items: center; padding: 120px 0; }
.h2-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 10, 14, .94) 0%, rgba(13, 10, 14, .82) 38%, rgba(13, 10, 14, .1) 70%), linear-gradient(180deg, var(--paper) 0%, rgba(13, 10, 14, 0) 16%, rgba(13, 10, 14, 0) 84%, var(--paper) 100%); }
.h2-story-col { max-width: 560px; }
.h2-intro { font-size: 18px; color: var(--ink-2); margin-bottom: 30px; }
.h2-chap-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.h2-chap-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 10px; font: 700 18px var(--f-disp); color: var(--mute); cursor: pointer; }
.h2-chap-tabs button[aria-selected="true"] { color: var(--gold-lt); border-bottom-color: var(--son); }
.h2-chap h3 { display: none; }
.h2-chap p { font-size: 16.5px; min-height: 7.5em; margin: 0; }
.h2-outro { margin: 28px 0 22px; color: var(--mute); font-size: 15px; font-style: italic; }
@media (max-width: 900px) { .h2-story::after { background: rgba(13, 10, 14, .84); } .h2-chap-tabs { gap: 18px; overflow-x: auto; } .h2-chap-tabs button { white-space: nowrap; font-size: 16px; } }

/* ---------- 3. hệ phái: đài luận võ, nhân vật giữa đài, danh sách trái, thông tin phải */
.h2-arena { min-height: 100svh; color: #fff; background: var(--paper); }
.h2-arena .h2-bg { object-position: 50% 50%; }
.h2-night { filter: brightness(.5) saturate(.7) hue-rotate(-12deg) contrast(1.1); }
.h2-arena::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 30% 40% at 47% 62%, rgba(255, 196, 120, .28), transparent 70%), linear-gradient(180deg, rgba(40, 24, 70, .35), rgba(20, 10, 30, .2)); mix-blend-mode: screen; }
.h2-arena::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20, 14, 10, .62) 0%, rgba(20, 14, 10, 0) 26%, rgba(20, 14, 10, 0) 58%, rgba(20, 14, 10, .78) 76%),
  linear-gradient(180deg, rgba(20, 14, 10, .45) 0%, rgba(20, 14, 10, 0) 22%, rgba(20, 14, 10, 0) 70%, rgba(20, 14, 10, .82) 100%); }
/* bố cục lưới, không chồng nhau (Zan 03/12 12:35): danh sách | nhân vật | thông tin, dải kỹ năng full ngang bên dưới */
.h2-arena { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(340px, 430px); grid-template-rows: auto 1fr auto; column-gap: 32px;
  padding: calc(var(--nav-h) + 16px) max(24px, calc((100% - 1240px) / 2)) 0; }
.h2-arena-head { grid-column: 1 / -1; }
.h2-arena .h2-title { color: #fff; font-size: clamp(34px, 3.6vw, 52px); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); margin-bottom: 8px; }
.h2-arena .h2-eyebrow { color: var(--gold-lt); }
.h2-arena-head.h2-wrap { width: auto; margin: 0; }
.h2-sect-list { grid-column: 1; grid-row: 2; align-self: center; display: grid; gap: 6px; }
.t2 .h2-sect-list button { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: none; border: 0; border-left: 2px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .78); text-align: left; cursor: pointer; font: 700 17px var(--f-disp); border-radius: 0; transition: background .2s, color .2s, border-color .2s; }
.t2 .h2-sect-list button img { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 0; background: rgba(0, 0, 0, .25); border: 1px solid rgba(236, 217, 168, .35); }
.t2 .h2-sect-list button small { display: block; font: 500 12px var(--f-ui); color: rgba(255, 255, 255, .6); }
.t2 .h2-sect-list button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.t2 .h2-sect-list button[aria-selected="true"] { color: #fff; border-left-color: var(--son); background: linear-gradient(90deg, rgba(196, 54, 31, .55), rgba(196, 54, 31, 0)); }
.t2 .h2-sect-list button[aria-selected="true"] small { color: var(--gold-lt); }
.t2 .h2-sect-list button[aria-selected="true"] img { border-color: var(--gold-lt); }
.h2-figure { grid-column: 2; grid-row: 2; align-self: end; justify-self: center; padding-bottom: 6vh; z-index: 1; }
.h2-figure button { display: block; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.h2-figure button::before { content: ""; position: absolute; left: 24%; right: 24%; bottom: 3%; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .32); filter: blur(2px); }
.h2-sprite { position: relative; image-rendering: pixelated; background-repeat: no-repeat; }
.h2-sect-info { grid-column: 3; grid-row: 2; align-self: center; padding: 16px 0 24px; }
.h2-sect-info h3 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1; color: #fff; margin: 0 0 12px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.h2-sect-role { font: 600 13px var(--f-ui); letter-spacing: .12em; color: var(--gold-lt); margin: 0 0 6px; }
.h2-sect-role span { color: rgba(255, 255, 255, .7); letter-spacing: .04em; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .3); }
.h2-sect-pitch { font-size: 16px; color: #fff; margin: 0 0 6px; }
.h2-sect-duty { font-size: 14px; color: rgba(255, 255, 255, .72); margin: 0 0 14px; }
.h2-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; border-block: 1px solid rgba(236, 217, 168, .3); margin-bottom: 12px; font-size: 14px; }
.h2-sw b { font: 700 13px var(--f-ui); letter-spacing: .1em; color: var(--gold-lt); }
.h2-sw div + div b { color: #ff9f86; }
.h2-sw ul { margin: 6px 0 0; padding-left: 16px; color: rgba(255, 255, 255, .88); }
.h2-kv { font-size: 13.5px; color: rgba(255, 255, 255, .82); margin: 0 0 8px; line-height: 1.55; }
.h2-kv b { display: block; font: 700 13.5px var(--f-ui); color: var(--gold-lt); }
/* dải kỹ năng: hàng 1 = biểu tượng + link, hàng 2 = 3 cây kỹ năng chia đều cả bề ngang */
.h2-sect-skills { grid-column: 1 / -1; grid-row: 3; padding: 4px 0 24px; }
.h2-sect-skills .h2-wrap { width: auto; margin: 0; }
.h2-skill-grid { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "icons link" "trees trees"; gap: 18px 32px; align-items: end; }
.h2-skill-grid > div:first-child { grid-area: icons; }
.h2-skill-grid > div:nth-child(2) { grid-area: trees; }
.h2-skill-grid > .h2-link { grid-area: link; }
.h2-mini { font: 600 12px var(--f-ui); letter-spacing: .14em; color: var(--gold-lt); margin: 0 0 10px; }
.h2-skill-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-skill-icons a { position: relative; display: block; width: 52px; height: 52px; border: 1px solid rgba(236, 217, 168, .5); background: rgba(0, 0, 0, .35); transition: border-color .2s, transform .2s; }
.h2-skill-icons a:hover { border-color: var(--gold-lt); transform: translateY(-3px); }
.h2-skill-icons img { width: 100%; height: 100%; object-fit: cover; }
.h2-skill-icons span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--paper); color: var(--ink); font: 600 12px var(--f-ui); padding: 3px 8px; opacity: 0; pointer-events: none; transition: opacity .15s; border: 1px solid var(--line); }
.h2-skill-icons a:hover span, .h2-skill-icons a:focus-visible span { opacity: 1; }
.h2-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(236, 217, 168, .2); padding-top: 14px; }
.h2-trees div { padding: 0 20px; border-left: 1px solid rgba(236, 217, 168, .25); font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.h2-trees div:first-child { padding-left: 0; border-left: 0; }
.h2-trees b { display: block; font: 700 17px var(--f-disp); color: #fff; margin-bottom: 2px; }
@media (max-width: 1100px) {
  .h2-arena { display: block; min-height: 0; padding: calc(var(--nav-h) + 20px) 0 0; }
  .h2-sect-skills { margin: 0; padding: 22px 24px 40px; }
  .h2-skill-grid { grid-template-columns: 1fr; grid-template-areas: "icons" "trees" "link"; }
  .h2-arena-head.h2-wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
  .h2-arena { background: #2a1e15; }
  .h2-arena .h2-bg { height: 620px; object-position: 50% 50%; }
  .h2-arena::after { background: linear-gradient(180deg, rgba(20, 14, 10, .55) 0, rgba(20, 14, 10, 0) 160px, rgba(20, 14, 10, 0) 380px, #2a1e15 560px); }
  .h2-arena-head, .h2-sect-list, .h2-figure, .h2-sect-info, .h2-sect-skills { position: relative; inset: auto; transform: none; width: auto; }
  .h2-arena-head { text-align: center; } .h2-arena .h2-eyebrow { justify-content: center; }
  .h2-sect-list { display: flex; overflow-x: auto; gap: 4px; padding: 0 16px; scrollbar-width: none; }
  .t2 .h2-sect-list button { flex: none; border-left: 0; border-bottom: 2px solid rgba(255, 255, 255, .25); }
  .t2 .h2-sect-list button[aria-selected="true"] { border-bottom-color: var(--son); }
  .h2-figure { height: 330px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 50px; }
  .h2-sect-info { margin: 0 24px; padding-top: 10px; }
  .h2-sect-skills { padding-top: 28px; }
  .h2-skill-grid { grid-template-columns: 1fr; gap: 22px; }
  .h2-skill-icons { flex-wrap: wrap; }
  .h2-trees { grid-template-columns: 1fr; gap: 10px; } .h2-trees div { padding: 0 0 0 12px; }
}

/* ---------- 4. lối chơi: ảnh tràn màn hình, chuyển slide, dải ảnh nhỏ */
.h2-feat { background: #140f0b; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.h2-feat-slides { position: absolute; inset: 0; }
.h2-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.h2-slide.on { opacity: 1; visibility: visible; transition: opacity .6s; }
.h2-slide picture, .h2-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.h2-slide-img { object-fit: cover; transform: scale(1.04); transition: transform 6s ease-out; }
.h2-slide.on .h2-slide-img { transform: scale(1); }
.h2-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 10, 7, .85) 0%, rgba(14, 10, 7, .5) 38%, rgba(14, 10, 7, 0) 64%), linear-gradient(0deg, rgba(14, 10, 7, .9) 0%, rgba(14, 10, 7, 0) 34%); }
.h2-slide-copy { position: relative; z-index: 1; padding-bottom: 120px; }
.h2-slide-copy > * { max-width: 520px; }
.h2-slide .h2-eyebrow { color: var(--gold-lt); }
.h2-slide .h2-title { color: #fff; font-size: clamp(36px, 4.4vw, 62px); }
.h2-slide-copy p:not(.h2-eyebrow) { color: rgba(255, 255, 255, .85); font-size: 16.5px; margin: 0 0 24px; }
.h2-feat-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 0 0 34px; }
.h2-arrow { flex: none; width: 44px; height: 44px; border: 1px solid rgba(236, 217, 168, .6); background: rgba(0, 0, 0, .3); color: var(--gold-lt); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s; }
.h2-arrow:hover { background: var(--son); border-color: var(--son); color: #fff; }
.h2-thumbs { flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; }
.h2-thumbs button { flex: none; position: relative; width: 132px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid rgba(255, 255, 255, .25); background: #000; cursor: pointer; overflow: hidden; opacity: .55; transition: opacity .2s, border-color .2s; }
.h2-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.h2-thumbs button span { position: absolute; inset: auto 0 0; padding: 14px 6px 4px; font: 600 11px/1.2 var(--f-ui); color: #fff; text-align: left; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.h2-thumbs button:hover { opacity: .85; }
.h2-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold-lt); box-shadow: inset 0 -3px 0 var(--son); }
.h2-all { flex: none; margin-left: 10px; }
@media (max-width: 760px) { .h2-all { display: none; } .h2-thumbs button { width: 104px; } .h2-slide-copy { padding-bottom: 150px; } }

/* ---------- 5. tin tức + Bách Khoa + cộng đồng */
.h2-news { background: var(--paper); padding: 120px 0; }
.h2-news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; }
.home2 .news-tabs { justify-content: flex-start; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.home2 .chip { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 0 0 10px; margin-bottom: -1px; min-height: 0; color: var(--mute); font: 600 14px var(--f-ui); }
.home2 .chip[aria-pressed="true"], .home2 .chip:hover { color: var(--gold-lt); border-bottom-color: var(--son); }
.home2 .news-list { border-top: 0; margin-bottom: 26px; }
.home2 .news-list li { border-bottom: 1px solid var(--line); }
.home2 .news-list a { grid-template-columns: 92px 1fr auto; color: var(--ink); padding: 16px 0; font-weight: 500; transition: padding .2s, background .2s; }
.home2 .news-list a:hover { background: none; color: var(--gold-lt); padding-left: 8px; }
.home2 .news-type { color: #e0563f; font: 600 12px var(--f-ui); letter-spacing: .06em; }
.home2 .news-date { color: var(--mute); font-variant-numeric: tabular-nums; }
.h2-side { display: grid; gap: 22px; align-content: start; }
.h2-wiki, .h2-comm { padding: 30px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.h2-wiki { background: #000 url(/assets/web/bg_wiki-sm.webp) center / cover; color: #fff; isolation: isolate; border-color: var(--gold); }
.h2-wiki::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 12, .45), rgba(10, 8, 12, .92)); }
.h2-wiki .h2-eyebrow { color: var(--gold-lt); }
.h2-wiki h3, .h2-comm h3 { font-size: 28px; margin: 0 0 8px; }
.h2-wiki p:not(.h2-eyebrow) { color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.home2 .searchbox { margin: 16px 0 18px; max-width: none; }
.home2 .searchbox input { border-radius: 0; background: rgba(0, 0, 0, .55); border: 1px solid rgba(217, 182, 106, .4); color: var(--ink); font: 15px var(--f-ui); }
.home2 .searchbox input:focus { border-color: var(--gold-lt); box-shadow: 0 0 0 3px rgba(236, 217, 168, .35); }
.h2-comm a { display: block; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.h2-comm a b { display: block; font: 700 18px var(--f-disp); color: #f3e6c8; }
.h2-comm a span { font-size: 14px; color: var(--mute); }
.h2-comm a:hover b { color: var(--gold-lt); }
@media (max-width: 900px) { .h2-news-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .h2-news { padding: 80px 0; } }

/* ---------- chân trang */

@media (prefers-reduced-motion: reduce) {
  .h2-scroll span { animation: none; }
  .h2-slide, .h2-slide-img { transition: none; }
}
.t2 .h2-classes .class-panel { display: block; grid-template-columns: none; gap: 0; }
@media (max-width: 560px) { .home2 .news-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; } .home2 .news-list a > span { min-width: 0; } .home2 .news-type { grid-column: 1 / -1; } .home2 .news-tabs { gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .home2 .chip { white-space: nowrap; } }
.h2-slide-copy .h2-sub { font: 700 20px var(--f-disp) !important; color: var(--gold-lt) !important; margin: -8px 0 16px !important; }
.h2-news-grid > * { min-width: 0; }

/* mỗi khu tròn 1 màn hình trên máy tính (cuộn từng khu bằng home2.js) */
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .h2-news { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 60px; }
  .h2-news > .h2-wrap { width: min(1240px, 100% - 48px); }
}
/* hiện dần khi vào khu: một nhịp duy nhất mỗi khu */
.h2-anim .h2s:not(.h2-hero) :is(.h2-story-col, .h2-arena-head, .h2-sect-list, .h2-sect-info, .h2-sect-skills, .h2-slide-copy, .h2-feat-nav),
.h2-anim .h2-news .h2-news-grid > * { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.h2-anim .h2s.in:not(.h2-hero) :is(.h2-story-col, .h2-arena-head, .h2-sect-list, .h2-sect-info, .h2-sect-skills, .h2-slide-copy, .h2-feat-nav),
.h2-anim .h2-news.in .h2-news-grid > * { opacity: 1; transform: none; }
.h2-anim .h2s.in .h2-sect-list, .h2-anim .h2s.in .h2-feat-nav { transition-delay: .1s; }
.h2-anim .h2s.in .h2-sect-info, .h2-anim .h2-news.in .h2-news-grid > :nth-child(2) { transition-delay: .18s; }
.h2-anim .h2s.in .h2-sect-skills { transition-delay: .26s; }
.home2:not(.scrolled) .nav { box-shadow: none; backdrop-filter: none; }
/* trang /he-phai/: thanh trên dạng dính (không đè), khu đài luận võ là phần đầu trang */
.t2:not(.home2) .h2-arena { padding-top: 32px; min-height: calc(100svh - var(--nav-h)); }
@media (max-width: 1100px) { .t2:not(.home2) .h2-arena { padding-top: 24px; } }
