/* TÀN KINH - giao diện chung toàn site (Zan 03/12 13:29): đồng bộ với trang chủ mới.
   Tông tối đêm Tây Du, chữ kem, viền vàng mảnh, đỏ son làm điểm nhấn, góc vuông, Philosopher cho tiêu đề + Be Vietnam Pro cho chữ thường.
   Nạp sau site.css ở MỌI trang (body.t2); trang chủ nạp thêm home2.css. Phần lớn đổi bằng token nên mọi khối cũ của Wiki tự theo. */

body.t2 {
  /* token mới */
  --ink: #ece4d4; --ink-2: #c4b8a3; --mute: #8f8372;
  --paper: #0d0a0e; --panel: #151117; --cream: #1b161c;
  --gold-lt: #ecd9a8; --son: #c4361f; --son-dk: #96240f;
  --f-disp: "Philosopher", serif; --f-ui: "Be Vietnam Pro", system-ui, sans-serif;
  --nav-h: 68px;
  /* token cũ của site.css → map sang bảng màu mới */
  --bg: #0d0a0e; --bg2: #151117; --bg3: #1d171f;
  --panel-solid: #151117; --line: rgba(217, 182, 106, .16); --line2: rgba(217, 182, 106, .32);
  --text: #ece4d4; --muted: #a89c88; --dim: #7d7262;
  --violet-soft: rgba(201, 163, 91, .1); --gold: #c9a35b; --gold-2: #ecd9a8; --gold-soft: rgba(201, 163, 91, .14);
  --crimson: #c4361f; --crimson-2: #e0563f;
  --r: 0; --r-lg: 0; --shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  --f-title: "Philosopher", serif; --f-body: "Be Vietnam Pro", system-ui, sans-serif; --f-read: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--paper); color: var(--ink); font: 400 15.5px/1.7 var(--f-ui);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.t2 :focus-visible { outline: 2px solid var(--son); outline-offset: 3px; }
.t2 h1, .t2 h2, .t2 h3, .t2 .t-title { font-family: var(--f-disp); font-weight: 700; letter-spacing: 0; }
.t2 h1 { color: #f3e6c8; }
.t2 a { color: var(--gold-lt); }
.t2 a:hover { color: #fff; }
.t2 .wrap { max-width: 1240px; padding: 0 24px; }
.t2 ::selection { background: rgba(196, 54, 31, .5); color: #fff; }

/* ---------- thanh trên (trang trong: luôn đặc) */
.t2 .nav { height: var(--nav-h); background: rgba(13, 10, 14, .94); backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .4); }
.t2 .nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.t2 .logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.t2 .nav-links a { color: var(--ink); font: 600 14px var(--f-ui); border-radius: 0; padding: 8px 12px; position: relative; }
.t2 .nav-links a:hover, .t2 .nav-links a[aria-current="page"] { background: none; color: var(--gold-lt); }
.t2 .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--son); }
.t2 .nav-search input { height: 38px; min-height: 0; border-radius: 0; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 14px var(--f-ui); }
.t2 .nav-search input::placeholder { color: var(--mute); }
.t2 .nav-toggle { border-radius: 0; border-color: var(--line2); color: var(--ink); }
@media (max-width: 1180px) { .t2 .nav-links { background: var(--paper); border-bottom: 1px solid var(--gold); } }

/* ---------- nút + chân trang (dùng chung với trang chủ) */
.h2-btn, .t2 .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  font: 700 15px var(--f-ui); letter-spacing: .02em; border-radius: 0; border: 1px solid var(--gold); background: transparent; color: var(--gold-lt);
  cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .2s;
}
.t2 .btn:hover { color: var(--paper); background: var(--gold-lt); border-color: var(--gold-lt); }
.h2-btn-main, .t2 .btn-gold, .t2 .nav-cta {
  position: relative; background: var(--son); color: #fff8ea; border: 0; text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .55), inset 0 0 0 4px var(--son), inset 0 0 0 5px rgba(255, 230, 180, .35);
}
.h2-btn-main:hover, .t2 .btn-gold:hover, .t2 .nav-cta:hover { background: var(--son-dk); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .55), inset 0 0 0 4px var(--son-dk), inset 0 0 0 5px rgba(255, 230, 180, .35); }
.t2 .nav-cta { min-height: 40px; padding: 0 18px; font-size: 13px; }
.t2 .footer { background: #070608; color: rgba(236, 228, 212, .6); border-top: 1px solid var(--gold); padding: 48px 0 32px; }
.t2 .footer .wrap { max-width: 1240px; }
.t2 .footer h4 { color: var(--gold-lt); font: 600 13px var(--f-ui); letter-spacing: .12em; }
.t2 .footer a { color: rgba(236, 228, 212, .85); }
.t2 .footer a:hover { color: #fff; }
.t2 .footer .legal { border-top-color: rgba(236, 217, 168, .2); }
.t2 .footer .warn180 { color: var(--gold-lt); }
.t2 .logo-foot img { height: 90px; width: auto; }
.t2 .btn-crimson { background: var(--son); color: #fff8ea; border: 0; }
.t2 .btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.t2 .btn-ghost { background: transparent; }

/* ---------- đầu trang trong: dải ảnh mờ + đường vàng, tiêu đề lớn */
.t2 .page-head { position: relative; isolation: isolate; padding: 64px 0 34px; border-bottom: 0;
  background: linear-gradient(180deg, rgba(13, 10, 14, .55), var(--paper) 96%), url(/assets/web/world_tamgioi-sm.webp) center 35% / cover; }
.t2 .page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line2) 15%, var(--line2) 85%, transparent); }
.t2 .page-head h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; margin-bottom: 8px; }
.t2 .page-head .muted, .t2 .page-head p { color: var(--ink-2); max-width: 760px; }
.t2 .crumbs { font: 600 12.5px var(--f-ui); letter-spacing: .06em; color: var(--mute); margin-bottom: 14px; }
.t2 .crumbs a { color: var(--gold); }
.t2 .crumbs a:hover { color: var(--gold-lt); }
.t2 .meta-row { color: var(--mute); }
/* trang Thế giới: hero ảnh */
.t2 .hero { min-height: 62vh; }
.t2 .hero::after { background: linear-gradient(90deg, rgba(13, 10, 14, .75) 0%, rgba(13, 10, 14, .2) 60%), linear-gradient(0deg, var(--paper) 0%, transparent 35%); }
.t2 .hero-copy h1 { color: #f3e6c8; text-shadow: 0 4px 30px rgba(0, 0, 0, .8); }
.t2 .hero-copy .tagline { font-family: var(--f-disp); color: var(--gold-lt); letter-spacing: .12em; }

/* ---------- khối chung */
.t2 .section { padding: 80px 0; }
.t2 .section-head .kicker { display: inline-flex; align-items: center; gap: 12px; font: 600 13px var(--f-ui); letter-spacing: .14em; color: var(--crimson-2); text-transform: none; }
.t2 .section-head .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.t2 .section-head h2 { color: #f3e6c8; font-size: clamp(30px, 3.4vw, 46px); }
.t2 .card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; transition: border-color .2s, transform .2s; }
.t2 a.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.t2 .card-img { border-bottom: 1px solid var(--line); }
.t2 .card-body h3 { color: #f3e6c8; font-size: 19px; }
.t2 .card-body p { color: var(--muted); }
.t2 .badge { border-radius: 0; }
.t2 .tag { border-radius: 0; background: transparent; border-color: var(--line2); color: var(--ink-2); }
.t2 .tag-gold { border-color: var(--gold); color: var(--gold-lt); }
.t2 .tag-crimson { border-color: var(--son); color: #ff9f86; }
.t2 .note { border-radius: 0; border-style: solid; border-color: var(--line); border-left: 2px solid var(--gold); background: var(--panel); }
.t2 .divider { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- bảng */
.t2 .tbl-wrap { border-radius: 0; border-color: var(--line); background: var(--panel); }
.t2 th { background: #1b151d; color: var(--gold-lt); font: 600 13px var(--f-ui); letter-spacing: .04em; border-bottom: 1px solid var(--line2); }
.t2 td { border-bottom-color: var(--line); }
.t2 tbody tr:hover td { background: rgba(201, 163, 91, .05); }

/* ---------- bài viết */
.t2 .prose { font-size: 16.5px; line-height: 1.78; color: #ddd4c3; }
.t2 .prose h2 { color: #f3e6c8; font-size: 28px; padding-top: 10px; border-top: 1px solid var(--line); }
.t2 .prose h3 { color: var(--gold-lt); }
.t2 .prose strong, .t2 .prose b { color: #fff3d6; }
.t2 .prose code { border-radius: 0; background: var(--bg3); color: var(--gold-lt); }
.t2 .prose blockquote { border-radius: 0; border-left-color: var(--gold); background: rgba(201, 163, 91, .07); }
.t2 .prose img { border-radius: 0; }
.t2 .toc { border-radius: 0; background: var(--panel); border-color: var(--line); border-left: 2px solid var(--son); }

/* ---------- Wiki */
.t2 .wiki-hero { padding: 80px 0 50px; }
.t2 .wiki-hero img.bg { opacity: .55; }
.t2 .wiki-hero::after { background: linear-gradient(180deg, rgba(13, 10, 14, .3), var(--paper)); }
.t2 .wiki-hero h1 { color: #f3e6c8; font-size: clamp(40px, 5vw, 66px); }
.t2 .wiki-side h4 { font: 600 11.5px var(--f-ui); letter-spacing: .16em; color: var(--gold); }
.t2 .wiki-side a { border-radius: 0; color: var(--ink-2); }
.t2 .wiki-side a:hover, .t2 .wiki-side a[aria-current="page"] { background: rgba(201, 163, 91, .08); color: var(--gold-lt); }
.t2 .wiki-side a[aria-current="page"]::before { border-radius: 0; background: var(--son); width: 2px; }
.t2 .side-toggle { border-radius: 0; background: var(--panel); color: var(--gold-lt); }
.t2 .searchbox input { border-radius: 0; background: rgba(0, 0, 0, .55); border-color: var(--line2); font: 15px var(--f-ui); }
.t2 .searchbox input:focus { border-color: var(--gold); }
.t2 .search-results { border-radius: 0; background: #151117; border-color: var(--gold); }
.t2 .search-results a:hover, .t2 .search-results a.active { background: rgba(201, 163, 91, .1); }
.t2 .search-results img, .t2 .search-results .ph { border-radius: 0; }
.t2 .cat-tile { border-radius: 0; background: var(--panel); border-color: var(--line); transition: border-color .2s, transform .2s; }
.t2 .cat-tile:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-3px); }
.t2 .filters { border-radius: 0; background: var(--panel); border-color: var(--line); }
.t2 .filters select, .t2 .filters input { border-radius: 0; background: #0d0a0e; border-color: var(--line2); font: 14px var(--f-ui); }
.t2 .ent { border-radius: 0; background: var(--panel); border-color: var(--line); transition: border-color .2s, transform .2s; }
.t2 .ent:hover { border-color: var(--gold); transform: translateY(-2px); }
.t2 .ent .ico { border-radius: 0; border-width: 1px; }
.t2 .entity-head .ico { border-radius: 0; border-width: 1px; }
.t2 .entity-head h1 { font-size: clamp(32px, 3.6vw, 48px); }
.t2 .stat-list li { border-radius: 0; background: var(--panel); }
.t2 .linkchip { border-radius: 0; background: var(--panel); }
.t2 .linkchip img { border-radius: 0; }
.t2 .ig-card { border-radius: 0; }
.t2 .chip { border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mute); font: 600 14px var(--f-ui); padding: 0 2px 8px; min-height: 0; }
.t2 .chip[aria-pressed="true"], .t2 .chip:hover { color: var(--gold-lt); border-bottom-color: var(--son); }
.t2 .news-tabs { justify-content: flex-start; gap: 22px; border-bottom: 1px solid var(--line); }
.t2 .news-list { border-top: 0; }
.t2 .news-list a { color: var(--ink); font-weight: 500; transition: padding .2s, color .2s; }
.t2 .news-list a:hover { background: none; color: var(--gold-lt); padding-left: 10px; }
.t2 .news-type { color: var(--crimson-2); font: 600 12px var(--f-ui); }
.t2 .news-date { font-variant-numeric: tabular-nums; }

/* ---------- trang Môn phái: tab + panel */
.t2 .class-tabs button { border-radius: 0; background: var(--panel); border-color: var(--line); font: 700 16px var(--f-disp); }
.t2 .class-tabs button img { border-radius: 0; background: #000; }
.t2 .class-tabs button[aria-selected="true"] { border-color: var(--gold); border-left: 2px solid var(--son); background: linear-gradient(90deg, rgba(196, 54, 31, .35), transparent); color: #fff; }
.t2 .class-panel .art { border-radius: 0; border-color: var(--line2); }
.t2 .class-panel h3 { color: #f3e6c8; font-size: 40px; }
.t2 .skill-chip { border-radius: 0; background: var(--panel); }
.t2 .skill-chip img { border-radius: 0; }
.t2 .tree { border-radius: 0; background: var(--panel); border-left: 2px solid var(--gold); }
.t2 .tree b { color: #f3e6c8; font-family: var(--f-disp); font-size: 15px; }
.t2 .party { border-radius: 0; background: var(--panel); border-color: var(--line); }
.t2 .party-cell { border-radius: 0; background: var(--paper); }
.t2 .party-full { border-color: var(--gold); }

/* ---------- Thiên Phú + cài app */
.t2 .tp-facts div, .t2 .tp-door, .t2 .tp-ms, .t2 .tp-card, .t2 .tp-dist div, .t2 .tp-minor span, .t2 .tp-head { border-radius: 0; }
.t2 .tp-stage, .t2 .tp-info, .t2 .tp-zoom button, .t2 .tp-bar input, .t2 .tp-bar select { border-radius: 0; }
.t2 .install-bar, .t2 .install-card, .t2 .install-bar img { border-radius: 0; }

/* ---------- thanh cuộn: mảnh, vàng cổ */
html:has(body.t2) { scrollbar-color: #5a4a2e var(--bg, #0d0a0e); }
.t2 ::-webkit-scrollbar-thumb { background: #5a4a2e; border-radius: 0; }
.t2 ::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.t2 .t2-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 600 13px var(--f-ui); letter-spacing: .14em; color: var(--crimson-2); }
.t2 .t2-eyebrow::before, .t2 .t2-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
