/* ===========================================================================
   THEME 33 — WALLACE (raw: theme/lockdown168 — เดิมเป็น CSS inline ใน index.html)
   ธีมสว่าง ฟ้า cyan/ขาว — topbar marquee ฟ้า, เมนู pill gradient ฟ้า (สมัคร=แดง),
   หัวข้อ gradient ฟ้า, footer navy, bottom bar fixed, font Sarabun+Kanit
   รูปค่ายเกมใช้คลังกลาง /assets/img/games/ (GMZ แนวนอน, LSM จัตุรัส)
   =========================================================================== */
:root{
  --ld-top:#23afe3;
  --ld-cyan1:#64d9fc;
  --ld-cyan2:#53cbf1;
  --ld-cyan3:#05abe0;
  --ld-blue1:#00b7ea;
  --ld-blue2:#009ec3;
  --ld-red:#d61a1b;
  --ld-bottom1:#2ac7f7;
  --ld-bottom2:#2081c1;
  --ld-body:#ededed;
  --ld-text:#3e4142;
  --ld-navy:#12324a;
  --ld-pill-grad:linear-gradient(#64d9fc 0%, #53cbf1 40%, #05abe0 100%);
  --ld-title-grad:linear-gradient(#00b7ea 0%, #009ec3 100%);
}
*{box-sizing:border-box}
body{
  font-family:'Sarabun','Kanit',Arial,Tahoma,sans-serif;
  background:var(--ld-body);
  color:var(--ld-text);
  margin:0;
  padding-bottom:52px; /* เผื่อพื้นที่ bottom bar fixed */
}
a{text-decoration:none}
img{max-width:100%;height:auto}

/* ---------- Top strip ---------- */
.ld-topbar{
  background:var(--ld-top);
  color:#fff;
  font-family:'Kanit',sans-serif;
  font-size:15px;
  overflow:hidden;
}
.ld-topbar .marquee-wrap{display:flex;align-items:center;gap:16px;min-height:28px}
.ld-marquee{
  flex:1 1 auto;
  white-space:nowrap;
  overflow:hidden;
}
.ld-marquee span{
  display:inline-block;
  padding-left:100%;
  animation:ld-scroll 38s linear infinite;
}
@keyframes ld-scroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.ld-topbar .contacts{white-space:nowrap;display:flex;gap:14px;font-weight:500}
.ld-topbar .contacts a{color:#fff}
.ld-topbar .contacts i{margin-right:4px}

/* ---------- Header ---------- */
.ld-header{
  background:#fff;
  padding:14px 0;
  text-align:center;
  border-bottom:2px solid #eaf7fd;
}
.ld-header img{max-height:74px}

/* ---------- Nav ---------- */
.ld-nav{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1020;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  padding:8px 0;
}
.ld-nav.scrolled{box-shadow:0 4px 16px rgba(0,0,0,.16)}
.ld-nav ul{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;
}
.ld-nav li a{
  display:block;
  font-family:'Kanit',sans-serif;
  font-weight:700;
  font-size:19px;
  color:#fff;
  background:var(--ld-pill-grad);
  border-radius:30px;
  padding:8px 22px;
  line-height:1.1;
  transition:transform .15s ease, filter .15s ease;
}
.ld-nav li a:hover{filter:brightness(1.07);transform:translateY(-1px)}
.ld-nav li a.register{
  background:var(--ld-red);
  position:relative;
}
.ld-nav li a.register .badge-new{
  position:absolute;top:-9px;right:-6px;
  background:#ffcf00;color:#c00;
  font-size:11px;font-weight:800;
  padding:1px 7px;border-radius:10px;
  transform:rotate(6deg);
  font-family:'Kanit',sans-serif;
}

/* ---------- Hero ---------- */
.ld-hero{
  background:radial-gradient(circle at 50% 20%, #1ea9e6 0%, #0b74b8 60%, #064b86 100%);
  padding:26px 0 34px;
  overflow:hidden;
}
.ld-hero .carousel,
.ld-hero .hero-media{border-radius:14px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.35)}
/* การ์ด fallback ตอนยังไม่ใส่รูปสไลด์ — ฝั่งซ้ายโลโก้+ปุ่ม ฝั่งขวากริดโลโก้ค่าย */
.ld-hero-card{
  background:linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.35);
  border-radius:14px;
  padding:28px 22px;
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.ld-hero-card .hero-logo{max-height:86px;margin-bottom:14px}
.ld-hero-card h1{
  font-family:'Kanit',sans-serif;font-weight:800;
  font-size:clamp(24px,4vw,38px);margin:0 0 6px;color:#fff;
}
.ld-hero-card p{color:#dff4ff;font-size:15px;line-height:1.8;margin:0 0 16px}
.btn-ld{
  display:inline-block;
  font-family:'Kanit',sans-serif;font-weight:700;font-size:18px;
  color:#fff;background:var(--ld-pill-grad);
  border:0;border-radius:30px;padding:10px 28px;line-height:1.2;
  transition:transform .15s ease, filter .15s ease;
}
.btn-ld:hover{color:#fff;filter:brightness(1.07);transform:translateY(-1px)}
.btn-ld.red{background:var(--ld-red)}
.ld-hero-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.ld-hero-grid img{
  width:100%;border-radius:10px;background:#0b2a44;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
}

/* ---------- Intro ---------- */
.ld-intro{
  background:#fff;
  padding:26px 0;
}
.ld-intro p{font-size:16px;line-height:1.9;margin:0}

/* ---------- Section titles ---------- */
.ld-section{background:#fff;padding:34px 0}
.ld-section.alt{background:#f4fbff}
.ld-title{
  font-family:'Kanit',sans-serif;
  font-weight:800;
  font-size:clamp(28px,5vw,50px);
  line-height:1.15;
  text-align:center;
  margin:0 0 6px;
  background:var(--ld-title-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--ld-blue1);
}
.ld-subtitle{
  text-align:center;color:#6b7375;font-size:17px;margin:0 0 26px;
  font-family:'Kanit',sans-serif;
}

/* ---------- Provider / game cards ---------- */
.ld-card{
  display:block;overflow:hidden;border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease;
  background:#0b0b12;
}
.ld-card:hover{transform:translateY(-5px);box-shadow:0 12px 26px rgba(0,0,0,.25)}
.ld-card img{display:block;width:100%}
/* แบนเนอร์ค่ายแนวนอน (รูปกลาง GMZ 538x346) */
.ld-circulate .ld-card img{aspect-ratio:538/346;object-fit:cover}

/* การ์ดค่ายแนวตั้ง — รูปโลโก้จัตุรัส (คลัง LSM 640x640) + แถบชื่อค่าย */
.ld-pcard{
  display:block;overflow:hidden;border-radius:12px;
  background:linear-gradient(180deg,#0d3f66 0%, #063052 100%);
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}
.ld-pcard:hover{transform:translateY(-5px);box-shadow:0 12px 26px rgba(0,0,0,.25)}
.ld-pcard img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.ld-pcard .pname{
  display:block;text-align:center;color:#fff;
  font-family:'Kanit',sans-serif;font-weight:600;font-size:14px;
  padding:7px 4px;background:var(--ld-pill-grad);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

/* ---------- Middle no.1 banner ---------- */
.ld-no1{background:#fff;padding:20px 0 40px;text-align:center}
.ld-no1 p{max-width:900px;margin:14px auto;font-size:16px;line-height:1.9}

/* ---------- จุดเด่น (แทน section jackpot ของ raw ที่เป็นรูปสลิปเว็บจริง) ---------- */
.ld-feature{
  background:#fff;border-radius:14px;height:100%;
  padding:26px 18px;text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,.1);
  transition:transform .18s ease, box-shadow .18s ease;
}
.ld-feature:hover{transform:translateY(-4px);box-shadow:0 12px 24px rgba(0,0,0,.16)}
.ld-feature i{
  font-size:34px;line-height:1;
  background:var(--ld-title-grad);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.ld-feature h3{
  font-family:'Kanit',sans-serif;font-weight:700;font-size:18px;
  color:#0b74b8;margin:12px 0 8px;
}
.ld-feature p{font-size:14px;color:#666;margin:0;line-height:1.7}

/* ---------- Articles ---------- */
.ld-articles{background:#f4fbff;padding:34px 0 44px}
.article-card{
  background:#fff;border-radius:14px;overflow:hidden;height:100%;
  box-shadow:0 4px 14px rgba(0,0,0,.1);transition:transform .18s ease,box-shadow .18s ease;
}
.article-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px rgba(0,0,0,.16)}
.article-card img{width:100%;aspect-ratio:370/220;object-fit:cover}
.article-card .body{padding:14px 16px 18px}
.article-card h3, .article-card h2{
  font-family:'Kanit',sans-serif;font-weight:600;font-size:17px;
  color:#0b74b8;margin:0 0 8px;line-height:1.4;
}
.article-card p{font-size:14px;color:#666;margin:0;line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ---------- Footer ---------- */
.ld-footer{background:var(--ld-navy);color:#cfe3f0;padding:44px 0 26px}
.ld-footer h4{
  font-family:'Kanit',sans-serif;font-weight:700;font-size:20px;color:#fff;
  margin:0 0 14px;border-left:4px solid var(--ld-top);padding-left:10px;
}
.ld-footer ul{list-style:none;padding:0;margin:0}
.ld-footer ul li{margin-bottom:8px}
.ld-footer ul li a{color:#bcd6e6;font-size:15px}
.ld-footer ul li a:hover{color:#fff}
.ld-footer .brand img{max-height:60px;margin-bottom:14px}
.ld-footer .footer-desc{font-size:14px;line-height:1.8;color:#9fc0d6}
.ld-footer .lineid{
  display:inline-flex;align-items:center;gap:8px;background:#06c755;color:#fff;
  padding:8px 16px;border-radius:30px;font-family:'Kanit',sans-serif;font-weight:600;
}
.ld-copyright{background:#0c2437;color:#7fa3ba;text-align:center;padding:12px;font-size:13px}

/* ---------- Fixed bottom bar ---------- */
.ld-bottombar{
  position:fixed;left:0;right:0;bottom:0;z-index:1030;
  background:linear-gradient(to right, var(--ld-bottom1) 0%, var(--ld-bottom2) 99%);
  display:flex;
}
.ld-bottombar a{
  flex:1;text-align:center;color:#fff;padding:7px 2px;
  font-family:'Kanit',sans-serif;font-weight:500;font-size:13px;
  border-right:1px solid rgba(255,255,255,.18);
}
.ld-bottombar a:last-child{border-right:0}
.ld-bottombar a i{display:block;font-size:19px;margin-bottom:1px}

/* Floating LINE bubble (mobile) */
.ld-line-fab{
  position:fixed;left:14px;bottom:64px;z-index:1031;
  width:56px;height:56px;border-radius:50%;
  background:#06c755;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:28px;box-shadow:0 6px 16px rgba(0,0,0,.3);
}
.ld-line-fab:hover{color:#fff;filter:brightness(1.05)}

@media (max-width:575px){
  .ld-nav li a{font-size:15px;padding:6px 14px}
  .ld-header img{max-height:52px}
  .ld-hero-grid{grid-template-columns:repeat(3,1fr)}
}
