/* Trang chủ — khung viền vàng mảnh, góc trang trí, ô vàng nâu, thẻ cảnh, cảnh 3 phái, dải thẻ ảnh */
.gold-text { background: linear-gradient(180deg, #fff3cf 0%, #f3d68a 45%, #c98f3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx { padding: 80px 0; position: relative; }
.hx-head { margin-bottom: 30px; }
.hx-head h2 { font: 900 clamp(32px, 4.2vw, 50px)/1.12 var(--serif); margin: 0 0 10px; letter-spacing: 0; }
.hx-head p { color: #cdb894; margin: 0; font-size: 16px; }
.hx-head.center { text-align: center; }
.hx-orn { display: flex; align-items: center; justify-content: center; gap: 0; color: var(--gold); margin: 2px 0 12px; }
.hx-orn i { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hx-orn i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hx-orn svg { width: 40px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* nền phần dưới đầu trang: vân nhiễu mịn + quầng vàng/đỏ, thêm ảnh game mờ cố định phía sau */
.home-rest { position: relative; isolation: isolate; overflow-x: clip;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 0 0.3 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(70% 18% at 20% 14%, rgba(207,157,69,.1), transparent 70%), radial-gradient(60% 16% at 85% 30%, rgba(125,25,18,.18), transparent 70%),
    radial-gradient(70% 14% at 30% 62%, rgba(125,25,18,.14), transparent 70%), radial-gradient(60% 16% at 80% 82%, rgba(207,157,69,.08), transparent 70%), #0c0806; }
.home-rest::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--rest, none) center / cover no-repeat fixed; opacity: .16; filter: saturate(.7) sepia(.25);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
@media (max-width: 1000px) { .home-rest::before { background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; } }

/* khung viền vàng + 4 góc */
.frame, .tile { position: relative; border: 1px solid #cf9d45; border-radius: 4px; }
.frame { background: linear-gradient(180deg, rgba(28,19,12,.92), rgba(15,10,7,.96)); box-shadow: inset 0 0 0 1px rgba(217,174,85,.08), 0 18px 40px rgba(0,0,0,.45); }
.goc { fill: none; position: absolute; width: 26px; height: 26px; color: #cf9d45; opacity: .85; pointer-events: none; z-index: 3; }
.goc--tl { top: 5px; left: 5px; }
.goc--tr { top: 5px; right: 5px; transform: scaleX(-1); }
.goc--bl { bottom: 5px; left: 5px; transform: scaleY(-1); }
.goc--br { bottom: 5px; right: 5px; transform: scale(-1, -1); }
/* mọi khung viền vàng (trang chủ, Tin tức, Tải game, Hướng dẫn): rê chuột vào thì viền + 4 góc sáng lên, có quầng nhẹ */
.frame { border-color: rgba(207,157,69,.5); transition: border-color .2s, box-shadow .2s, transform .2s; }
.frame:hover { border-color: #f2d184; box-shadow: inset 0 0 0 1px rgba(242,209,132,.45), inset 0 0 30px rgba(242,180,90,.08), 0 18px 40px rgba(0,0,0,.5), 0 0 34px rgba(242,160,70,.32); }
/* khung Bảng cáo thị: KHÔNG đổi viền khi rê chuột (người dùng 2026-11-21) */
.hub-news:hover { border-color: rgba(207,157,69,.5); box-shadow: inset 0 0 0 1px rgba(217,174,85,.08), 0 18px 40px rgba(0,0,0,.45); }


/* bảng cáo thị */
.hub { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hub-news { padding: 6px 22px 22px; }
.nb-bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(207,157,69,.3); margin: 0 0 18px; padding-left: 10px; }
.nb-tabs { display: flex; flex-wrap: wrap; }
.nb-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 15px 20px; font: 700 16.5px var(--serif); color: #a8977a; cursor: pointer; }
.nb-tab:hover { color: #fff3cf; }
.nb-tab.on { color: #fff3cf; border-bottom-color: #f2d184; }
.nb-more { font: 700 15px var(--serif); color: #fff3cf; padding-right: 10px; }
.nb-more:hover { color: #f2d184; }
.nb-top { position: relative; display: block; min-height: 220px; border: 1px solid rgba(207,157,69,.45); overflow: hidden; color: var(--text); margin-bottom: 14px; isolation: isolate; }
.nb-top__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.7) brightness(.75); transition: transform .6s; }
.nb-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,8,6,.95) 0%, rgba(12,8,6,.78) 45%, rgba(12,8,6,.2) 100%); }
.nb-top:hover .nb-top__img { transform: scale(1.04); }
.nb-top:hover { color: var(--text); }   /* không đổi viền khi rê (người dùng 2026-11-21) */
.nb-top__body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; max-width: 72%; }
.nb-top__meta { display: flex; align-items: center; gap: 10px; color: #cdb894; font-size: 13px; }
.nb-pin { background: linear-gradient(180deg, #b8321f, #8a1f14); color: #fff3cf; border: 1px solid #cf9d45; font-size: 11px; padding: 1px 8px; border-radius: 2px; }
.nb-top__title { font: 700 clamp(19px, 2vw, 24px)/1.25 var(--serif); color: #fff3cf; text-transform: uppercase; }
.nb-top__sum { color: #cdb894; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-top__go { align-self: flex-start; margin-top: 8px; font: 700 13px var(--serif); color: #fff3cf; border: 1px solid #cf9d45; padding: 6px 12px; background: rgba(12,8,6,.6); }
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-list a { display: flex; align-items: center; gap: 16px; padding: 9px 6px; border-bottom: 1px solid rgba(207,157,69,.18); color: var(--text); }
.nb-list li:last-child a { border-bottom: 0; }
.nb-list a:hover { color: #f2d184; background: rgba(217,180,106,.04); }
.nb-date { flex: none; width: 51px; padding: 4px 0; text-align: center; border: 1px solid rgba(207,157,69,.5); background: rgba(12,8,6,.6); font-size: 10px; line-height: 1.1; color: #cdb894; }
.nb-date b { display: block; font: 700 18px/1.1 var(--serif); color: #fff3cf; }
.nb-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }

/* ô lối tắt: ô thường nền nâu tối; ô 1 (Fanpage / hỗ trợ) = ô "lửa" có nhãn, quầng lửa bốc ở chân + viền sáng nhịp;
   ô 2 (Nạp) = ô vàng */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 14px 19px; min-height: 186px; color: #f0e4c8; border-color: rgba(207,157,69,.5);
  background: radial-gradient(120% 80% at 50% 0, rgba(217,174,85,.1), transparent 62%), linear-gradient(180deg, #221b12 0%, #16110b 100%);
  box-shadow: inset 0 0 0 1px rgba(217,174,85,.1), 0 10px 26px rgba(0,0,0,.45); transition: transform .18s, border-color .18s, box-shadow .18s, filter .18s; }
.tile:hover { transform: translateY(-3px); color: #f0e4c8; border-color: #b9852f; box-shadow: inset 0 0 0 1px rgba(217,174,85,.28), 0 16px 34px rgba(0,0,0,.55), 0 0 26px rgba(217,174,85,.16); }
.tile .goc { color: #b9852f; width: 30px; height: 30px; opacity: .7; }
/* 4 góc khung không đổi khi rê chuột (người dùng 2026-11-21) */
.tile__icon { width: 36px; height: 36px; fill: none; stroke: #d9a94f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); transition: transform .18s, stroke .18s; }
.tile__icon.is-fill { fill: currentColor; stroke: none; color: #d9a94f; }
.tile:hover .tile__icon { transform: scale(1.06); stroke: #f2d184; color: #f2d184; }
.tile__name { font: 700 18px/1.6 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: #f2d184; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.tile__latin { display: flex; align-items: center; gap: 8px; font-size: 9.3px; letter-spacing: .3em; text-transform: uppercase; color: #94805f; }
.tile__latin::before, .tile__latin::after { content: "◇"; font-size: 8px; letter-spacing: 0; color: #8a5f22; }
.tile__desc { margin-top: 6px; font-size: 12.8px; line-height: 1.45; color: #cdb894; }

/* ô vàng (ô 2) */
.tile--gold { border-color: #cf9d45; background: radial-gradient(120% 80% at 50% 0, rgba(255,236,180,.35), transparent 62%), linear-gradient(180deg, #6b4a17 0%, #3d2a0d 55%, #241808 100%); }
.tile--gold .tile__name, .tile--gold .tile__icon { color: #fff3cf; stroke: #fff3cf; }
.tile--gold .goc { color: #f2d184; opacity: .95; }
.tile--gold .tile__latin, .tile--gold .tile__desc { color: #f0e4c8; }

/* ô lửa (ô 1) */
.tile--hot { isolation: isolate; overflow: hidden; padding-top: 32px; border-color: #d9a94f;
  background: radial-gradient(115% 80% at 50% 0, rgba(255,190,90,.3), transparent 66%), linear-gradient(180deg, #4a2c10 0%, #2a1608 55%, #1b1008 100%);
  animation: tileGlow 2.8s ease-in-out infinite; }
.tile--hot::before, .tile--hot::after { content: ""; position: absolute; bottom: 0; left: -14%; right: -14%; height: 72%; z-index: -1; pointer-events: none; filter: blur(9px); transform-origin: 50% 100%;
  background: radial-gradient(40% 78% at 16% 100%, rgba(255,148,38,.85), transparent 72%), radial-gradient(32% 68% at 43% 100%, rgba(255,106,18,.8), transparent 74%),
    radial-gradient(38% 84% at 72% 100%, rgba(255,182,62,.72), transparent 72%), radial-gradient(60% 40% at 50% 108%, rgba(255,120,30,.55), transparent 70%);
  animation: tileFire 3.4s ease-in-out infinite alternate; }
.tile--hot::after { filter: blur(17px); opacity: .7; height: 88%; animation-duration: 2.3s; animation-delay: -1.1s; }
.tile--hot:hover { border-color: #f2d184; filter: brightness(1.07); }
.tile--hot .tile__name { color: #ffe9b0; }
.tile--hot .tile__latin { color: #ffe9b0; text-shadow: 0 1px 3px rgba(74,18,7,.9); }
.tile--hot .tile__latin::before, .tile--hot .tile__latin::after { color: #f2d184; }
.tile--hot .tile__desc { color: #f0e4c8; text-shadow: 0 1px 3px rgba(74,18,7,.85); }
.tile--hot .goc { color: #f2d184; opacity: .95; }
.tile--hot .tile__icon { color: #f2d184; stroke: #f2d184; filter: drop-shadow(0 0 14px rgba(243,214,138,.55)); }
@keyframes tileFire { 0% { opacity: .75; transform: scale(.96, .86); } 50% { opacity: 1; transform: scale(1.04, 1.14); } 100% { opacity: .88; transform: scaleY(.95); } }
@keyframes tileGlow {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(243,214,138,.4), inset 0 1px 0 rgba(255,231,175,.28), 0 14px 34px rgba(0,0,0,.55), 0 0 26px rgba(255,150,50,.3); }
  50% { box-shadow: inset 0 0 0 1px rgba(243,214,138,.6), inset 0 1px 0 rgba(255,231,175,.4), 0 14px 34px rgba(0,0,0,.55), 0 0 48px rgba(255,170,70,.55); } }
@media (prefers-reduced-motion: reduce) { .tile--hot, .tile--hot::before, .tile--hot::after { animation: none; } }
.tile__badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); z-index: 4; white-space: nowrap; padding: 3px 11px 4px; border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #ffe9b0, #f3d68a 45%, #d9a94f); color: #3a1a05; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 3px 12px rgba(0,0,0,.5); }
.tile__icon { width: 36px; height: 36px; fill: none; stroke: #f2d184; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.tile__name { font: 700 18px/1.6 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: #ffe9b0; }
.tile__latin { display: flex; align-items: center; gap: 8px; font-size: 9.3px; letter-spacing: .3em; text-transform: uppercase; color: #ffe9b0; opacity: .8; }
.tile__latin::before, .tile__latin::after { content: ""; width: 10px; height: 1px; background: currentColor; opacity: .7; }
.tile__desc { margin-top: 6px; font-size: 12.8px; line-height: 1.45; color: #f0e4c8; }

/* thẻ nền tảng */
.hx-plat { background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(140,40,20,.22), transparent 70%); }
.pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pf__card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 20px; overflow: hidden; color: var(--text); transition: transform .2s, box-shadow .2s; }
.pf__card:hover { color: var(--text); transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(217,174,85,.2), 0 24px 44px rgba(0,0,0,.6), 0 0 30px rgba(255,150,60,.12); }
.pf__card.mine { border-color: #f2d184; box-shadow: 0 0 0 1px rgba(242,209,132,.35), 0 26px 50px rgba(150,40,20,.35); }
.pf__scene { position: relative; display: block; margin: 0 -18px; width: calc(100% + 36px); height: 170px; overflow: hidden; }
.pf__card, .world-in { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.pf__card:focus:not(:focus-visible), .world-in:focus:not(:focus-visible) { outline: none; }
/* chân ảnh mờ dần bằng mask ngay trên ảnh (không dùng lớp phủ riêng: lúc ảnh phóng to lớp phủ lệch nửa điểm ảnh, lộ vạch sáng ở mép dưới) */
.pf__scene img { display: block; -webkit-user-drag: none; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.8); transition: transform .6s; transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, rgba(0,0,0,.04) 92%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, rgba(0,0,0,.04) 92%, transparent 100%); }
.pf__card:hover .pf__scene img { transform: scale(1.05); }
.pf__mine { display: none; position: absolute; top: 14px; right: 14px; z-index: 4; padding: 3px 9px; background: linear-gradient(180deg, #b8321f, #8a1f14); border: 1px solid rgba(242,209,132,.6); color: #fff3cf; font-size: 12px; font-weight: 600; }
.pf__card.mine .pf__mine { display: block; }
.pf__ico { position: relative; z-index: 2; margin-top: -42px; width: 64px; height: 64px; border-radius: 50%; border: 1px solid #cf9d45; background: rgba(15,10,7,.85); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(15,10,7,.6), 0 0 20px rgba(0,0,0,.6); }
.pf__ico svg { width: 30px; height: 30px; fill: none; stroke: #fff3cf; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pf__name { margin-top: 16px; font: 700 26px/1.2 var(--serif); color: #fff3cf; }
.pf__req { margin-top: 6px; color: #d9a94f; font-size: 14px; }
.pf__desc { margin-top: 6px; color: #e8dcc0; font-size: 14px; }
.pf__btn { margin-top: 18px; width: 100%; padding: 9px 12px; border: 1px solid #cf9d45; background: linear-gradient(180deg, #a82519, #7d1912); color: #fff3cf; font: 700 16.8px var(--serif); }
.pf__card:hover .pf__btn { background: linear-gradient(180deg, #c22e1f, #8f1d15); }

/* cảnh 3 phái */
.hx-cls { position: relative; overflow: hidden; min-height: 760px; display: flex; align-items: center; isolation: isolate; border-top: 1px solid rgba(207,157,69,.2); border-bottom: 1px solid rgba(207,157,69,.2); }
.hx-cls::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cls-bg) center / cover no-repeat; filter: saturate(.55) brightness(.5) contrast(1.1); }
.hx-cls::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 60% at 45% 70%, rgba(150,40,20,.35), transparent 70%), linear-gradient(90deg, rgba(12,8,6,.85) 0%, rgba(12,8,6,.25) 45%, rgba(12,8,6,.85) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }
.cls-word { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: -1; white-space: nowrap; pointer-events: none; text-transform: uppercase;
  font: 400 clamp(90px, 15vw, 210px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.2px rgba(242,209,132,.35); opacity: 0; transition: opacity .6s; }
.cls-word.on { opacity: 1; }
.cls-in { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: center; width: 100%; }
.cls-nav { display: flex; flex-direction: column; gap: 4px; }
.cls-nav small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #a8977a; margin-bottom: 10px; }
.cls-nav button { text-align: left; background: none; border: 0; border-left: 2px solid rgba(207,157,69,.25); padding: 7px 14px; color: #a8977a; font: 700 17px var(--serif); cursor: pointer; transition: .2s; }
.cls-nav button:hover { color: #fff3cf; }
.cls-nav button.on { color: #fff3cf; border-left-color: #f2d184; }
.cls-stage { position: relative; min-height: 560px; }
.cls { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 20px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.cls.on { opacity: 1; visibility: visible; }
.cls-art { position: relative; height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.cls-art img { position: relative; z-index: 1; width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.75)); }
.cls-art img.m { height: 92%; }
.cls-art img.f { height: 80%; margin-left: -9%; }
.cls-art img.solo { max-height: 100%; max-width: 100%; }
.cls.on .cls-art img { animation: clsIn .8s cubic-bezier(.2,.7,.2,1) both; }
.cls.on .cls-art img.f { animation-delay: .1s; }
@keyframes clsIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.cls-glow { position: absolute; left: 50%; bottom: 6px; width: 70%; height: 46px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(240,130,50,.55), transparent 70%); filter: blur(8px); }
.cls-ds .cls-glow { background: radial-gradient(ellipse, rgba(120,210,150,.45), transparent 70%); }
.cls-dn .cls-glow { background: radial-gradient(ellipse, rgba(150,120,255,.45), transparent 70%); }
.cls-body .eyebrow { color: #e0503a; letter-spacing: .3em; font-size: 12px; }
.cls-body h3 { font: 900 clamp(38px, 5vw, 64px)/1.05 var(--serif); color: #fff3cf; margin: 0 0 16px; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.cls-body p { color: #f0e4c8; font-size: 17px; max-width: 420px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.cls-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cls-tags span { padding: 5px 12px; border: 1px solid rgba(242,209,132,.55); background: rgba(12,8,6,.55); color: #fff3cf; font-size: 13px; }

/* thiên hạ đại loạn */
.hx-world { padding-bottom: 60px; }
.world-track { overflow-x: auto; scrollbar-width: none; cursor: grab; padding: 0 max(16px, calc((100vw - 1200px) / 2 + 16px)); }
.world-track::-webkit-scrollbar { display: none; }
.world-track.drag { cursor: grabbing; }
.world-row { list-style: none; display: flex; gap: 18px; margin: 0; padding: 4px 0 30px; width: max-content; }
.world-card { flex: none; width: 333px; height: 416px; }
.world-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(207,157,69,.28); color: var(--text); }
.world-in img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: transform .7s, filter .4s; -webkit-user-drag: none; user-select: none; }
.world-in::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(180deg, transparent 50%, rgba(12,8,6,.92) 100%); }
.world-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.world-card:hover .world-in { border-color: #cf9d45; }
.world-name { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; font: 700 24px/1.2 var(--serif); color: #fff3cf; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.world-name::before { content: ""; display: block; width: 34px; height: 2px; background: #f2d184; margin-bottom: 10px; }
.marquee { overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(207,157,69,.18); border-bottom: 1px solid rgba(207,157,69,.18); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 8px 18px; border: 1px solid rgba(207,157,69,.4); white-space: nowrap; font: 700 15px var(--serif); color: #f2d184; background: rgba(217,180,106,.05); }
@keyframes slide { to { transform: translateX(-50%); } }

/* khối cuối */
.hx-final { position: relative; padding: 110px 0; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid rgba(207,157,69,.2); }
.hx-final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cta) center / cover no-repeat; filter: saturate(.6) brightness(.55); }
.hx-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(230,96,32,.55), transparent 70%), linear-gradient(180deg, var(--bg) 0%, rgba(12,8,6,.55) 35%, rgba(12,8,6,.7) 100%); }
.hx-final h2 { font: 900 clamp(32px, 4.2vw, 50px)/1.12 var(--serif); margin: 0 0 14px; }
.hx-final p { color: #e8dcc0; max-width: 560px; margin: 0 auto 28px; }

/* đầu trang: logo trái + chữ trái, nút giữa, bên dưới dàn 3 phái (không bị chữ đè), dải số liệu sát đáy */
.hero { display: flex; flex-direction: column; min-height: calc(100vh - 64px); padding-top: 20px; }
.hero .hero-in { padding-bottom: 0; position: relative; z-index: 2; }
.hero-head { display: flex; align-items: center; justify-content: center; gap: 26px; text-align: left; }
.hero-head .hero-logo { width: clamp(120px, 12vw, 170px); margin: 0; flex: none; }
.hero-head .hero-title { font-size: clamp(34px, 4.4vw, 58px); margin: 0 0 8px; }
.hero-head .hero-text { margin: 0; max-width: 620px; font-size: 16px; }
.hero-head.no-logo { text-align: center; }
.hero-head.no-logo .hero-text { margin: 0 auto; }
.hero .hero-cta { margin-top: 22px; }
.lineup { --lu: clamp(200px, min(32vw, 100vh - 370px), 520px); position: relative; z-index: 1; margin: auto auto 6px; padding-top: 8px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.lineup .pair { display: flex; align-items: flex-end; }
.lineup img { display: block; width: auto; height: calc(var(--hr) * var(--lu)); }
.lineup .nam { position: relative; z-index: 1; }
.lineup .nu { margin-left: -2%; }
.lineup .pair-ds { position: relative; z-index: 2; margin: 0 -1.5%; }
.hero .wrap:last-child { width: 100%; }

@media (max-width: 1000px) {
  .hero-head { flex-direction: column; text-align: center; gap: 10px; }
  .hero-head .hero-text { margin: 0 auto; }
  .hub { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pf { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .cls-in { grid-template-columns: 1fr; }
  .cls-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cls-nav small { width: 100%; text-align: center; }
  .cls-nav button { border-left: 0; border-bottom: 2px solid rgba(207,157,69,.25); }
  .cls-nav button.on { border-bottom-color: #f2d184; }
  .cls-stage { min-height: 760px; }
  .cls { grid-template-columns: 1fr; align-content: start; }
  .cls-art { height: 420px; }
  .cls-body { text-align: center; }
  .cls-body p { margin: 0 auto; }
  .cls-tags { justify-content: center; }
}
@media (max-width: 640px) {
  .hx { padding: 56px 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 0; padding: 18px 10px 15px; }
  .tile--hot { padding-top: 28px; }
  .tile__name { font-size: 15px; }
  .hub-news { padding: 4px 12px 14px; }
  .nb-bar { padding-left: 0; }
  .nb-tab { padding: 12px 10px; font-size: 15px; }
  .nb-more { display: none; }
  .nb-top__body { max-width: 100%; padding: 18px; }
  .nb-title { white-space: normal; font-size: 14.5px; }
  .world-card { width: 260px; height: 330px; }
  .cls-stage { min-height: 640px; }
  .cls-art { height: 320px; }
  /* điện thoại: đủ 6 nhân vật (nam + nữ mỗi phái) trên một hàng, nữ đứng chồng một phần sau nam */
  .lineup { --lu: clamp(110px, 36vw, 220px); width: 100%; padding-top: 14px; }
  .lineup .nu { margin-left: -7vw; }
  .lineup .pair + .pair { margin-left: -2vw; }
  .lineup .pair-ds { margin: 0 0 0 -2vw; }
  .hero { min-height: 0; }
}

/* đầu trang: ảnh nền game + lớp tối giữa cho chữ dễ đọc */
.hero .hero-bg { background: radial-gradient(ellipse 42% 30% at 50% 20%, rgba(12,8,6,.78), rgba(12,8,6,.3) 70%, transparent 100%), linear-gradient(180deg, rgba(12,8,6,.45) 0%, rgba(12,8,6,.5) 55%, var(--bg) 100%), var(--hero) center 30% / cover no-repeat, #1a0f08; }
.hero .hero-text { text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.hero .eyebrow { text-shadow: 0 2px 8px rgba(0,0,0,.9); }
