/*
 * Trang chủ - phần thân giữa KV và footer, theo landing home
 * (public/landing/assets/home/index.html). Trang chủ có nội dung cố định
 * nên giữ định vị tuyệt đối như landing; toạ độ = toạ độ landing trừ chiều
 * cao KV (desktop 814, mobile 1025).
 *
 * Mỗi khối .h-abs nhận toạ độ qua biến inline: --x/--y/--w/--h (mobile, đơn vị
 * px bản 750) và --dx/--dy/--dw/--dh (desktop, đơn vị px bản 1920). Thiếu
 * --h/--dh thì chiều cao tự động.
 */
.h-body { position: relative; z-index: 2; height: calc(3933 * var(--u)); }
@media (min-width: 768px) {
  .h-body { height: calc(2706 * var(--u)); }
}

.h-abs {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}
@media (min-width: 768px) {
  .h-abs {
    left: calc(var(--dx) * var(--u));
    top: calc(var(--dy) * var(--u));
    width: calc(var(--dw) * var(--u));
    height: calc(var(--dh) * var(--u));
  }
}
.h-abs > picture, .h-abs > picture > img, .h-abs > img { display: block; width: 100%; height: 100%; }
.h-deco { pointer-events: none; }

/* các partial dùng chung: bỏ margin/thứ tự của layout trang tin */
.h-body .np-b03, .h-body .np-sup { width: 100%; margin: 0; }

/* ---- banner slide (khối 2) ---- */
.h-slider { background: #1f2121; }
.h-slider .swiper { width: 100%; height: 100%; }
.h-slider .swiper-slide a, .h-slider .swiper-slide picture { display: block; width: 100%; height: 100%; }
.h-slider img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-dots {
  position: absolute; left: 0; right: 0; z-index: 2;
  bottom: calc(33 * var(--u));
  --dot: calc(13 * var(--u)); --dot-gap: calc(20 * var(--u));
  display: flex; justify-content: center; gap: var(--dot-gap);
}
.h-dots .swiper-pagination-bullet { width: var(--dot); height: var(--dot); margin: 0 !important; background: #fff; opacity: .45; }
.h-dots .swiper-pagination-bullet-active { opacity: 1; }
@media (min-width: 768px) {
  .h-dots { bottom: calc(22 * var(--u)); --dot: calc(9 * var(--u)); --dot-gap: calc(12.67 * var(--u)); }
}

/* ---- 3 thẻ banner tin nhanh (khối 2, dưới trái) ---- */
.h-events { display: grid; grid-template-columns: repeat(3, 1fr); }
.h-events a { display: block; background: url('../home/assets/btn-event.png') no-repeat; background-size: 300% 100%; transition: filter .36s ease; }
.h-events a:hover { filter: brightness(110%); }
.h-events a:nth-child(1) { background-position: 0 0; }
.h-events a:nth-child(2) { background-position: 50% 0; }
.h-events a:nth-child(3) { background-position: 100% 0; }
@media (min-width: 768px) {
  .h-events { padding: calc(1 * var(--u)); background: url('../home/assets/rectangle-34.png') 0 0 / 100% 100%; }
  .h-events a { background-image: url('../home/assets/btn-event-2.png'); }
}

/* ---- Tin Tức Đặc Sắc (khối 2, khung trắng) ---- */
.h-news {
  background: #fff;
  padding: calc(70 * var(--u)) calc(26 * var(--u)) calc(20 * var(--u));
  font-size: max(13px, calc(24 * var(--u)));
  overflow: hidden;
}
@media (min-width: 768px) {
  .h-news { padding: calc(56 * var(--u)) calc(22 * var(--u)) calc(14 * var(--u)); font-size: max(12px, calc(16 * var(--u))); }
}
.h-news .np-tab { font-size: max(12px, calc(19.78 * var(--u))); }
@media (min-width: 768px) {
  .h-news .np-tab { font-size: max(11px, calc(17 * var(--u))); }
}
.h-more {
  position: absolute; right: calc(16 * var(--u)); top: 0;
  height: calc(46 * var(--u)); line-height: calc(46 * var(--u));
  font-size: .85em; color: #a41703; text-decoration: none; opacity: .75; transition: opacity .2s;
}
.h-more:hover { opacity: 1; }
@media (min-width: 768px) {
  .h-more { height: calc(38 * var(--u)); line-height: calc(38 * var(--u)); }
}
.h-news ul { list-style: none; margin: 0; padding: 0; }
.h-news li { border-bottom: 1px dashed #eadfd2; }
.h-news li:last-child { border-bottom: 0; }
.h-news li a { display: flex; gap: .8em; align-items: baseline; padding: .55em 0; color: #3b2a22; text-decoration: none; }
.h-news li a:hover .t { color: #a41703; }
.h-news .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.h-news .t::before { content: ""; display: inline-block; width: .4em; height: .4em; margin-right: .6em; vertical-align: middle; background: #a41703; rotate: 45deg; }
.h-news time { flex: none; font-size: .85em; color: #8a7466; }
.h-news .np-empty { padding: 1em 0; }

/* ---- Đặc Sắc Tam Giới: slide 3D trong khung cuộn ---- */
.h-carousel { --sw: 717; overflow: visible; }
@media (min-width: 768px) {
  .h-carousel { --sw: 997; }
}
.h-carousel .swiper-slide { position: relative; width: calc(var(--sw) * var(--u)); height: 100%; transition: filter .3s; }
.h-carousel .swiper-slide:not(.swiper-slide-active) { filter: brightness(.7); }
.h-carousel .swiper-slide picture, .h-carousel .swiper-slide picture img { display: block; width: 100%; height: 100%; }
/* ảnh chụp game từ Admin phủ đúng vùng ảnh trong khung cuộn (đo trên ingame-2.png:
   x 61-964 / 997, y 24-464 / 489 - bản mobile ingame.png cùng tỉ lệ) */
.h-carousel .h-shot { position: absolute; left: 6.12%; top: 4.91%; width: 90.57%; height: 89.98%; object-fit: cover; background: #111; }
.h-arrow { padding: 0; border: 0; background: none; cursor: pointer; z-index: 5; transition: scale .2s, filter .2s; }
.h-arrow:hover { scale: 1.1; filter: brightness(1.2); }

