/* =========================================================
   PUBG VIỆT NAM
   FIX:
   1. Không upscale raster image quá 948px => giảm mờ/nhòe.
   2. Text card và heading là HTML => nét ở mọi độ phân giải.
   3. Logo footer là HTML/CSS => không còn logo crop bị lỗi.
   ========================================================= */

:root{
  --page-width: 948px;
  --bg: #070a0c;
  --panel: #0a0e11;
  --white: #f7f7f4;
  --muted: #d4d6d7;
  --gold: #f1be3c;
  --blue: #4168ff;
  --border: rgba(255,255,255,.24);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  background:#030506;
}

body{
  margin:0;
  background:#030506;
  color:var(--white);
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

.site{
  width:min(100%,var(--page-width));
  margin:0 auto;
  background:var(--bg);
  box-shadow:0 0 70px rgba(0,0,0,.55);
}


/* ---------------- HERO ---------------- */

.hero{
  width:100%;
  aspect-ratio:948 / 742;

  /* ảnh PNG gốc, không resize vật lý */
  background-image:url("assets/hero.png");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:100% auto;

  position:relative;
}

.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:95px;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(7,10,12,0),
    rgba(7,10,12,.76) 68%,
    #070a0c 100%
  );
}


/* ---------------- COMMUNITY ---------------- */

.community{
  position:relative;
  padding:0 35px 72px;
  background:
    radial-gradient(circle at 50% 5%,rgba(31,44,51,.12),transparent 36%),
    linear-gradient(#070a0c,#05080a);
}

.section-heading{
  margin:0 auto 18px;
  text-align:center;
  transform:translateY(-2px);
}

.section-heading h1{
  margin:0;

  /*
    Không dùng Impact vì glyph tiếng Việt dễ lệch style.
    Arial Black/Segoe UI Black hỗ trợ dấu tiếng Việt tốt hơn.
  */
  font-family:"Arial Black","Segoe UI Black","Segoe UI",Arial,sans-serif;
  font-size:47px;
  font-weight:900;
  line-height:1;
  letter-spacing:-2px;
  transform:scaleX(.93);
  transform-origin:center;
  text-shadow:0 4px 18px rgba(0,0,0,.5);
}

.section-heading h1 em{
  color:var(--gold);
  font-style:normal;
}

.section-heading p{
  margin:13px auto 0;
  color:#e7e8e8;
  font-size:16px;
  line-height:1.45;
}


/* ---------------- CARDS ---------------- */

.community-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:13px;
}

.community-card{
  position:relative;
  height:270px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:9px;
  background:#080c0f;
  box-shadow:
    0 13px 30px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.community-card.discord-card{
  border-color:rgba(94,128,255,.78);
  box-shadow:
    0 14px 34px rgba(35,75,218,.17),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.card-image{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

/*
  Ảnh background chỉ là ảnh minh họa.
  Chữ, icon, button được render riêng nên không bị mờ.
*/
.facebook-card .card-image{
  background-image:
    linear-gradient(to bottom,rgba(0,0,0,.03) 0%,rgba(5,8,10,.56) 42%,rgba(5,8,10,.97) 76%),
    url("assets/gallery-1.png");
}

.discord-card .card-image{
  background-image:
    linear-gradient(to bottom,rgba(10,24,58,.08) 0%,rgba(5,10,22,.60) 42%,rgba(5,8,13,.97) 77%),
    url("assets/discord-bg.png");
}

.group-card .card-image{
  background-image:
    linear-gradient(to bottom,rgba(0,0,0,.03) 0%,rgba(5,8,10,.57) 42%,rgba(5,8,10,.97) 76%),
    url("assets/gallery-3.png");
}

.card-body{
  position:relative;
  z-index:2;
  height:100%;
  padding:78px 14px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.social-icon{
  position:absolute;
  top:25px;
  width:67px;
  height:67px;
  filter:drop-shadow(0 9px 11px rgba(0,0,0,.32));
}

.card-body h2{
  margin:16px 0 5px;
  font-family:"Arial Narrow","Segoe UI",Arial,sans-serif;
  font-stretch:condensed;
  font-size:19px;
  font-weight:900;
  letter-spacing:-.4px;
  line-height:1;
}

.card-body p{
  margin:0;
  color:#e8e9e9;
  font-size:12.5px;
  line-height:1.35;
}

.button{
  width:184px;
  min-height:40px;
  margin-top:auto;
  padding:0 14px 0 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:8px;
  font-size:13px;
  font-weight:800;
  transition:transform .18s ease,filter .18s ease;
}

.button:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
}

.button b{
  font-size:19px;
  font-weight:400;
}

.button-light{
  background:linear-gradient(#fff,#e5e5e5);
  color:#181818;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.14);
}

.button-blue{
  background:linear-gradient(#6484ff,#3f63e9);
  color:#fff;
  box-shadow:0 8px 20px rgba(59,95,238,.24);
}


/* ---------------- MOTTO ---------------- */

.motto{
  margin:43px auto 35px;
  text-align:center;
}

.motto-main{
  font-size:10px;
  font-weight:800;
  letter-spacing:5.4px;
}

.motto-sub{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.motto-sub i{
  width:40px;
  height:2px;
  display:block;
  background:var(--gold);
}

.motto-sub span{
  font-size:9px;
  font-weight:800;
  letter-spacing:4px;
}


/* ---------------- GALLERY ---------------- */

.gallery{
  display:grid;
  grid-template-columns:1fr 1.35fr 1fr 1fr;
  gap:9px;
}

.gallery img{
  width:100%;
  height:102px;
  object-fit:cover;

  /*
    Giữ ảnh gần kích thước native.
    Không filter / transform / blur.
  */
  image-rendering:auto;
}


/* ---------------- FOOTER ---------------- */

.footer{
  padding:28px 38px 25px;
  background:#05080a;
  border-top:1px solid rgba(255,255,255,.055);
}

.footer-row{
  display:grid;
  grid-template-columns:225px 1fr 118px;
  align-items:center;
  gap:20px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
}

.brand-box{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 8px;

  color:var(--gold);
  border:3px solid var(--gold);

  font-family:"Arial Black","Segoe UI Black",Arial,sans-serif;
  font-size:22px;
  font-weight:900;
  line-height:1;
  letter-spacing:-1.6px;
}

/* small corner cuts approximating the block logo */
.brand-box::before,
.brand-box::after{
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  background:#05080a;
}
.brand-box::before{left:-3px;top:5px}
.brand-box::after{right:-3px;bottom:5px}

.brand-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.brand-copy strong{
  font-family:"Arial Black","Segoe UI Black",Arial,sans-serif;
  font-size:19px;
  line-height:1;
  letter-spacing:-1px;
  white-space:nowrap;
}

.brand-copy small{
  margin-top:5px;
  color:#e5e6e6;
  font-size:6.5px;
  font-weight:700;
  letter-spacing:2.1px;
  white-space:nowrap;
}

.footer-nav{
  display:flex;
  justify-content:center;
  gap:24px;
  color:#d9dbdc;
  font-size:11px;
}

.footer-nav a{
  transition:color .15s ease;
}

.footer-nav a:hover{
  color:#fff;
}

.footer-social{
  display:flex;
  justify-content:flex-end;
  gap:12px;
}

.footer-social img{
  width:23px;
  height:23px;
}

.footer-bottom{
  margin-top:22px;
  padding-top:17px;
  border-top:1px solid rgba(255,255,255,.11);

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;

  color:#aeb3b5;
  font-size:8.2px;
  line-height:1.45;
}

.footer-bottom span:last-child{
  max-width:440px;
  text-align:right;
}


/* ---------------- RESPONSIVE ---------------- */

@media (max-width:760px){
  .community{
    padding-left:18px;
    padding-right:18px;
  }

  .section-heading h1{
    font-size:clamp(31px,8vw,44px);
  }

  .section-heading p{
    font-size:14px;
  }

  .community-grid{
    grid-template-columns:1fr;
    max-width:360px;
    margin-left:auto;
    margin-right:auto;
  }

  .community-card{
    height:292px;
  }

  .gallery{
    grid-template-columns:1fr 1fr;
  }

  .gallery img{
    height:auto;
    aspect-ratio:16/9;
  }

  .footer-row{
    grid-template-columns:1fr;
    justify-items:center;
  }

  .footer-nav{
    flex-wrap:wrap;
  }

  .footer-social{
    justify-content:center;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
  }

  .footer-bottom span:last-child{
    max-width:none;
    text-align:center;
  }
}

@media (max-width:480px){
  .community{
    padding-bottom:48px;
  }

  .desktop-only{
    display:none;
  }

  .section-heading{
    margin-top:-1px;
  }

  .section-heading h1{
    font-size:31px;
    letter-spacing:-1px;
  }

  .section-heading p{
    font-size:12.5px;
  }

  .motto-main{
    font-size:7px;
    letter-spacing:3px;
  }

  .motto-sub span{
    font-size:7px;
    letter-spacing:2.8px;
  }

  .footer{
    padding-left:18px;
    padding-right:18px;
  }
}
