/* Trang con: Tin tức, Tải game (/cai-dat), Hướng dẫn (/huong-dan, /huong-dan/pc|android|ios).
   Dùng chung khung viền vàng + góc (.frame, .goc), .gold-text, .hx-orn, .hx-final trong home.css */

/* dải đầu trang có ảnh nền game, mờ dần xuống nền */
.ph { position: relative; isolation: isolate; padding: 46px 0 120px; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--ph) center 35% / cover no-repeat; filter: saturate(.7) brightness(.5); }
.ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(160,90,30,.18), transparent 70%), linear-gradient(180deg, rgba(12,8,6,.35) 0%, rgba(12,8,6,.55) 55%, var(--bg) 100%); }
.ph--center { text-align: center; padding-bottom: 40px; }
.ph--dl, .ph--plat { padding: 34px 0 36px; border-bottom: 1px solid rgba(207,157,69,.18); }
.ph--article { padding: 0; height: 360px; }
.ph--article + .ph-body { margin-top: -310px; }
.ph-body { position: relative; z-index: 2; margin-top: -78px; padding-bottom: 72px; }
.ph--center + .ph-body { margin-top: 0; }
.ph-split { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ph-title { font: 900 clamp(30px, 4vw, 46px)/1.12 var(--serif); margin: 0; color: #fff3cf; }
.ph-lead { color: #e2d3b2; margin: 10px 0 0; max-width: 560px; font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.ph-back { display: table; font-size: 13px; color: #d9a94f; margin-bottom: 12px; }
.ph-back:hover { color: #f2d184; }
.ph-side { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 240px; }

.sh { text-align: center; margin-bottom: 26px; }
.sh-tag { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: #d9a94f; font-weight: 600; margin: 0 0 6px; }
.sh-tag a { color: inherit; }
.sh-title { font: 900 clamp(26px, 3.2vw, 36px)/1.15 var(--serif); margin: 0; }
.sh-lead { color: #e2d3b2; margin: 14px auto 0; max-width: 640px; }
.ph-sec { padding: 64px 0; }
.ph-sec--alt { border-top: 1px solid rgba(207,157,69,.14); background: linear-gradient(180deg, rgba(0,0,0,.18), transparent); }
.ph-body + .ph-sec { padding-top: 10px; }

/* nút đỏ viền vàng */
.gbtn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 9px 18px; border: 1px solid #cf9d45; border-radius: 3px; font: 700 15px/1.2 var(--serif); color: #fff3cf; transition: background .15s, box-shadow .15s; }
.gbtn--main { background: linear-gradient(180deg, #b52b1d, #7d1912); box-shadow: inset 0 1px 0 rgba(255,220,160,.25), 0 6px 18px rgba(120,20,10,.35); }
.gbtn--main:hover { background: linear-gradient(180deg, #cf3522, #8f1d15); color: #fff; }
.gbtn--sub { background: linear-gradient(180deg, rgba(150,35,22,.55), rgba(90,20,14,.55)); font-size: 13.5px; }
.gbtn--sub:hover { background: linear-gradient(180deg, rgba(180,45,28,.7), rgba(110,25,16,.7)); color: #fff; }
.gbtn--big { padding: 13px 26px; font-size: 18px; }
.gbtn.is-off { opacity: .45; cursor: default; }
.picon { width: 1em; height: 1em; flex: none; }

/* --- Tin tức --- */
.news-frame { padding: 16px 22px 22px; }
.ntabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ntabs a { padding: 6px 14px; border-radius: 3px; color: #e2d3b2; font-size: 14px; }
.ntabs a:hover { color: #f2d184; }
.ntabs a.on { background: rgba(207,157,69,.18); color: #f2d184; box-shadow: inset 0 0 0 1px rgba(207,157,69,.35); }
.nsearch { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.nrows { list-style: none; margin: 0; padding: 0; }
.nrows a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid rgba(207,157,69,.13); color: #f0d79c; font-size: 14.5px; }
.nrows li:last-child a { border-bottom: 0; }
.nrows a:hover .nrow-t { color: #fff3cf; }
/* trang Tin tức + bài viết: khung không đổi khi rê chuột (người dùng 2026-11-21) */
.news-frame:hover, .art: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); }
.nrow-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrows time { flex: none; color: #a89676; font-size: 13px; }
.hot { flex: none; display: inline-block; padding: 1px 6px; font: 700 10.5px/1.5 var(--sans); letter-spacing: .05em; color: #ffe9c4; background: linear-gradient(180deg, #b8321f, #8a1f14); border: 1px solid rgba(242,209,132,.5); border-radius: 2px; vertical-align: middle; }
.news-frame .pager { margin-top: 16px; }

/* bài viết: một cột giữa */
.art { max-width: 820px; margin: 0 auto; padding: 34px 48px 44px; }
.art-title { font: 900 clamp(26px, 3.4vw, 36px)/1.2 var(--serif); color: #f2d184; margin: 4px 0 10px; }
.art-title .hot { font-size: 11px; position: relative; top: -4px; }
.art-meta { color: #a89676; font-size: 13px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(207,157,69,.18); }
.art-more { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(207,157,69,.18); }

/* --- Hướng dẫn: thẻ nền tảng --- */
.gcards, .dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gcard, .dcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 26px 26px; color: var(--text); }
.gcard:hover { color: var(--text); border-color: #f2d184; }
.gcard-ico { color: #f2d184; font-size: 34px; line-height: 1; filter: drop-shadow(0 0 12px rgba(242,209,132,.35)); }
.gcard-name { font: 700 24px/1.2 var(--serif); color: #fff3cf; margin: 14px 0 4px; }
.gcard-req { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #e25b3a; font-weight: 700; margin: 0; }
.gcard-desc { color: #e2d3b2; font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.gcard-small { color: #a89676; font-size: 12.5px; margin-top: 18px; }
.gcard .gbtn { margin-top: 18px; }
.trouble, .gposts { padding: 22px 28px 24px; }
.gposts { margin-top: 22px; }
.trouble-title { font: 700 20px/1.3 var(--serif); color: #f2d184; margin: 0 0 14px; }
.trouble p:not(.sh-tag) { color: #e2d3b2; font-size: 14.5px; margin: 0 0 10px; }
.trouble b { color: #fff3cf; }
.trouble-more { display: inline-block; margin-top: 6px; color: #d9a94f; font-size: 14px; }

/* --- Hướng dẫn từng bước --- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(207,157,69,.5); border-radius: 999px; background: rgba(12,8,6,.6); color: #f2d184; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.pill .picon { font-size: 15px; }
.facts { display: flex; gap: 28px; margin: 0; }
.facts dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #a89676; }
.facts dd { margin: 4px 0 0; font: 700 17px var(--serif); color: #fff3cf; }
.gwrap { max-width: 1040px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 22px 26px 24px; }
.step-no { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 18px var(--serif); color: #fff3cf; background: radial-gradient(circle at 50% 35%, #c8361f, #7a160e); border: 1px solid #cf9d45; box-shadow: 0 0 0 4px rgba(207,157,69,.12), 0 6px 16px rgba(0,0,0,.5); }
.step-body h3 { font: 700 21px/1.3 var(--serif); color: #f2d184; margin: 8px 0 8px; }
.step-body p { color: #e2d3b2; font-size: 14.5px; margin: 0 0 10px; max-width: 720px; }
.step-body b { color: #fff3cf; }
.step-body code { padding: 1px 7px; border: 1px solid rgba(207,157,69,.35); border-radius: 3px; background: rgba(0,0,0,.4); color: #f2d184; font-size: 13px; }
.step-body a:not(.gbtn) { color: #f2c060; text-decoration: none; }
.gbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 12px; }
.gnote { position: relative; padding: 9px 14px; border: 1px solid rgba(207,157,69,.3); background: rgba(0,0,0,.28); font-size: 13.5px !important; max-width: 560px !important; }
.gnote b { color: #f2d184 !important; }
.gnote--warn b { color: #ff7a5a !important; }

.faq { display: grid; gap: 10px; }
.faq details:hover, .faq details[open] { border-color: rgba(242,209,132,.6); }
.faq details { transition: border-color .2s; border: 1px solid rgba(207,157,69,.3); background: linear-gradient(180deg, rgba(28,19,12,.92), rgba(15,10,7,.96)); border-radius: 3px; }
.faq summary { cursor: pointer; list-style: none; padding: 13px 18px; font-weight: 600; color: #fff3cf; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; width: 0; height: 0; border-left: 6px solid #cf9d45; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details > div { padding: 0 18px 12px 34px; }
.faq details p { color: #e2d3b2; font-size: 14.5px; margin: 0 0 8px; }
.go-other { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.go-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid rgba(207,157,69,.3); border-radius: 3px; background: linear-gradient(180deg, rgba(40,20,12,.9), rgba(20,12,8,.95)); color: var(--text); }
.go-card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.go-card:hover { border-color: #f2d184; color: var(--text); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 22px rgba(224,122,53,.14); }
.go-card .picon { font-size: 26px; color: #f2d184; }
.go-card b { display: block; font: 700 18px var(--serif); color: #f2d184; }
.go-card small { color: #a89676; }
.hx-final .sh-tag { margin-bottom: 8px; }
.hx-final .hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* --- Tải game --- */
/* nền trang (vân nhiễu + lớp tối 0.55→0.85 (340px)→đặc (760px) + ảnh rộng 100% ở trên + quầng đỏ) */
.dl-page { 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"),
    linear-gradient(180deg, rgba(12,8,6,.55) 0, rgba(12,8,6,.85) 340px, #0c0806 760px), var(--ph) center top / 100% auto no-repeat,
    radial-gradient(60% 30% at 85% 40%, rgba(125,25,18,.16), transparent 70%), #0c0806; }
.dl-page .ph--dl { background: linear-gradient(180deg, rgba(12,8,6,.2), rgba(12,8,6,.55)); border-bottom: 1px solid rgba(207,157,69,.3); }
.dl-page .ph--dl::before, .dl-page .ph--dl::after { display: none; }
.dl-steps { background: linear-gradient(180deg, rgba(32,13,8,.94) 0%, rgba(18,8,5,.94) 100%); border-bottom: 1px solid rgba(207,157,69,.45); }
.dl-faq { background: none; }
@media (max-width: 640px) { .dl-page { background-size: auto, auto, 180% auto, auto, auto; } }
.dcard { padding-top: 34px; }
.dcard--hot { border-color: #f2d184; box-shadow: 0 0 0 1px rgba(242,209,132,.25), 0 22px 44px rgba(0,0,0,.5); }
.dcard-rib { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffe9c4; background: linear-gradient(180deg, #b8321f, #8a1f14); border: 1px solid rgba(242,209,132,.6); border-radius: 999px; white-space: nowrap; }
.dticks { list-style: none; margin: 18px 0 4px; padding: 0; text-align: left; align-self: stretch; }
.dticks li { position: relative; padding-left: 24px; margin: 0 0 9px; color: #e2d3b2; font-size: 14px; }
.dticks li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 6px; border-left: 2px solid #f2d184; border-bottom: 2px solid #f2d184; transform: rotate(-45deg); }
.dticks b { color: #fff3cf; }
.dticks code { color: #f2d184; }
.dbtns { display: flex; flex-direction: column; gap: 10px; align-self: stretch; margin-top: auto; padding-top: 16px; }
.dsmall { color: #a89676; font-size: 12.5px; margin: 12px 0 0; }
.dsmall a { color: #f2c060; }
.dtool { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 20px 26px; background: linear-gradient(90deg, rgba(110,30,18,.45), rgba(20,12,8,.95)); }
.dtool-t { flex: 1; min-width: 0; }
.dtool-t b { display: block; font: 700 20px var(--serif); color: #f2d184; }
.dtool-t small { display: block; color: #e2d3b2; font-size: 13.5px; margin-top: 4px; }
.dnotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dnote { padding: 22px 24px; }
.dnote h3 { font: 700 19px/1.3 var(--serif); color: #f2d184; margin: 0 0 10px; }
.dnote p:not(.sh-tag) { color: #e2d3b2; font-size: 14px; margin: 0 0 12px; }
.dnote-more { color: #f2c060; font-size: 14px; }

@media (max-width: 1000px) {
  .gcards, .dcards, .dnotes { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .ph-split { flex-direction: column; align-items: flex-start; }
  .ph-side { min-width: 0; }
}
@media (max-width: 640px) {
  .ph { padding: 30px 0 100px; }
  .ph--dl, .ph--plat { padding: 26px 0 28px; }
  .ph--center { padding-bottom: 30px; }
  .ph--article { height: 240px; }
  .ph--article + .ph-body { margin-top: -210px; }
  .ph-body { margin-top: -70px; }
  .art { padding: 24px 18px 30px; }
  .news-frame { padding: 12px 12px 16px; }
  .nrows a { flex-wrap: wrap; font-size: 14px; }
  .nrow-t { white-space: normal; flex-basis: calc(100% - 60px); }
  .nrows time { width: 100%; padding-left: 0; font-size: 12px; }
  .step { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px 20px; }
  .step-no { width: 40px; height: 40px; font-size: 16px; }
  .gbtn--big { width: 100%; font-size: 16px; }
  .go-other { grid-template-columns: 1fr; }
  .dtool { flex-direction: column; align-items: flex-start; }
  .facts { gap: 20px; }
}
