/* ==========================================================================
   site-landing.css — หน้า / (หน้าเปิดจอเดียวรับแอด · src/views/intro.ejs) + หน้า /main (หน้าหลักฉบับเต็ม · src/views/index.ejs)
   ชุดเดียวกับหัวเว็บ/ฮับใหม่ · โหลดต่อจาก style.css + site-nav.css เฉพาะ 2 หน้านี้ (จัดระเบียบเว็บ 21 ต.ค. 2569)
   class เดิม .intro-* / .introm-* ใน style.css ไม่ได้ใช้แล้ว (เก็บไว้ก่อน ลบตอนแบ่ง style.css เฟส 2)
   ========================================================================== */

.landing-page { background: var(--bg); }
.lp { max-width: 1200px; margin: 0 auto; padding: 18px 16px 40px; }

/* ---------- ปุ่ม (แคปซูลชุดเดียวกับหัวเว็บ) ---------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: #fff;
  color: var(--orange-dark);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.lp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 106, 0, .22); color: var(--orange-dark); }
.lp-btn-fire { border-color: transparent; background: linear-gradient(180deg, #ff8a2a, var(--orange)); color: #fff; box-shadow: 0 6px 16px rgba(255, 106, 0, .3); }
.lp-btn-fire:hover { color: #fff; }
.lp-btn-ghost { border-color: var(--line-2, #ffd2b3); color: var(--ink-2); }
.lp-btn-ghost:hover { border-color: var(--orange); }
.lp-btn-play {
  min-height: 58px;
  padding: 6px 24px 6px 8px;
  gap: 12px;
  border: 1.5px solid var(--orange);
  background: #fff;
  color: var(--orange-dark);
  text-align: left;
}
.lp-btn-play:hover { color: var(--orange-dark); background: #fff8f1; }
.lp-play-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9b3d, var(--orange));
  color: #fff;
}
.lp-play-ico svg { width: 20px; height: 20px; margin-left: 3px; }
.lp-btn-play small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.lp-btn-wide { width: 100%; max-width: 360px; }
/* ปุ่มหลักของหน้า (แอดยิงเพื่อ "สมัคร") ใหญ่สุด · ปุ่มเล่นเป็นทางรองสำหรับคนมีไอดี */
.lp-btn-signup { min-height: 58px; padding: 6px 28px 6px 20px; gap: 12px; font-size: 15px; text-align: left; box-shadow: 0 10px 26px rgba(255, 106, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
.lp-btn-signup svg { width: 24px; height: 24px; }
.lp-btn-signup b, .lp-btn-play b { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; }
.lp-btn-signup small { display: block; font-size: 12.5px; font-weight: 500; opacity: .9; line-height: 1.3; }
.lp-nowrap { white-space: nowrap; }

/* ---------- จอแรก (หัวการ์ดแบบ .hub-hero แต่ใหญ่กว่า) ---------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: center;
  border-radius: 24px;
  background: #fde9d6;
  box-shadow: var(--shadow-md);
}
.lp-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 35%; }
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 250, 244, .97) 0%, rgba(255, 248, 240, .92) 38%, rgba(255, 246, 236, .4) 60%, rgba(255, 246, 236, 0) 76%);
}
.lp-hero-copy { position: relative; z-index: 2; width: min(680px, 100%); padding: 40px 44px; }
.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 14px 4px 10px;
  border-radius: 999px;
  background: #e8f8ef;
  border: 1px solid #b9ebcf;
  color: #17824b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.lp-kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 184, 114, .18); animation: lp-pulse 2s ease-in-out infinite; }
@keyframes lp-pulse { 50% { box-shadow: 0 0 0 7px rgba(46, 184, 114, .06); } }
.lp-hero h1 { margin: 0 0 14px; font-size: 40px; font-weight: 700; line-height: 1.18; color: var(--ink); }
.lp-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 520px; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-devices { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.lp-devices li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.lp-devices svg { width: 16px; height: 16px; color: var(--orange-dark); }
/* ทางลัดใต้ปุ่มหลัก: ปุ่มเล็กแยกชิ้น + ไอคอน (เดิมเป็นลิงก์ข้อความคั่นด้วย · อ่านแล้วติดกัน) */
.lp-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.lp-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2, #ffd2b3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.lp-links svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--orange); }
.lp-links a:hover { border-color: var(--orange); background: #fff; color: var(--orange-dark); text-decoration: none; }
/* หน้า /: แถวอุปกรณ์ · ปุ่มหลัก · ทางลัด กว้างเท่ากัน ขอบซ้าย-ขวาตรงกัน (เจ้าของสั่ง 21 ต.ค. 2569 "ทำให้ช่องตรงกัน ทั้งด้านหน้าและด้านหลังทั้ง 3 แถว")
   แถว 3 ช่อง (อุปกรณ์/ทางลัด) ใช้คอลัมน์เดียวกัน ⇒ เส้นแบ่งตรงกันด้วย */
.lp-solo .lp-devices, .lp-solo .lp-cta, .lp-solo .lp-links { display: grid; width: 100%; max-width: 560px; gap: 10px; }
.lp-solo .lp-devices, .lp-solo .lp-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-solo .lp-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-solo .lp-devices li, .lp-solo .lp-links a { justify-content: center; min-height: 36px; padding: 0 8px; white-space: nowrap; }
.lp-solo .lp-cta .lp-btn { width: 100%; min-width: 0; justify-content: flex-start; }
/* แถบนับวันเปิด กว้างเท่า 3 แถวบน (เจ้าของ "อันนี้ด้วยดีไหม" 21 ต.ค. 2569) · ข้อความ + ตัวเลขชิดกันตรงกลาง (แยกซ้าย-ขวาแล้วกลางแถบโล่ง — เจ้าของ "ดูแปลก ๆ มันโล่ง ๆ") */
.lp-solo .lp-live:not([hidden]) { display: flex; width: 100%; max-width: 560px; justify-content: center; gap: 12px; min-height: 46px; padding: 6px 16px; }
.lp-solo .lp-live-timer { padding: 3px 14px; border-radius: 999px; background: rgba(255, 106, 0, .09); }
@media (max-width: 400px) {
  .lp-solo .lp-live:not([hidden]) { flex-wrap: nowrap; gap: 8px; padding: 8px 14px; }
  .lp-solo .lp-live-label { font-size: 12.5px; white-space: nowrap; }
  .lp-solo .lp-live-timer { white-space: nowrap; }
  .lp-solo .lp-live-timer b { font-size: 16px; }
}
/* จอ 320 (iPhone SE รุ่นแรก) ไม่พอบรรทัดเดียว → ตัวเลขลงบรรทัดสอง จัดกลาง */
@media (max-width: 340px) {
  .lp-solo .lp-live:not([hidden]) { flex-wrap: wrap; justify-content: center; border-radius: 16px; }
}
@media (max-width: 600px) {
  .lp-solo .lp-cta { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-solo .lp-devices, .lp-solo .lp-links { gap: 6px; }
  .lp-solo .lp-devices li { gap: 4px; padding: 0 4px; font-size: 12.5px; }
  .lp-solo .lp-devices svg { width: 14px; height: 14px; }
  /* มือถือ: ทางลัดเป็นช่องสี่เหลี่ยม ไอคอนบน ข้อความล่าง (สามช่องพอดีกว้างปุ่ม) */
  .lp-solo .lp-links a { flex-direction: column; gap: 4px; min-height: 60px; padding: 8px 4px; border-radius: 14px; font-size: 12.5px; text-align: center; white-space: normal; }
  .lp-solo .lp-links svg { width: 18px; height: 18px; }
}
.lp-live {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  color: var(--ink-2);
}
.lp-live[hidden] { display: none; }
.lp-live-label { font-weight: 600; }
.lp-live-timer { display: inline-flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.lp-live-timer b { font-size: 18px; font-weight: 700; color: var(--orange-dark); }
.lp-live-timer small { font-size: 13px; margin-right: 4px; }
.lp-closed { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #b45309; }

/* ---------- หัวข้อ section (แถบส้มแบบ .hub-group h2) ---------- */
.lp-section { margin-top: 44px; }
.lp-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 24px; font-weight: 700; color: var(--ink); }
.lp-title::before { content: ''; width: 6px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, #ffa24d, var(--orange-dark)); }

/* ---------- ชุดเริ่มต้น ---------- */
.lp-starter {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  align-items: center;
  gap: 32px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff8f1);
  box-shadow: var(--shadow-sm);
}
.lp-starter-copy h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--ink); }
.lp-starter-lead { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.lp-gifts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.lp-gifts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--hub-radius);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
}
.lp-gifts img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(120, 60, 10, .18)); }
.lp-gifts b { color: var(--ink); font-weight: 700; }
.lp-starter-note { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.lp-poster { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(80, 36, 6, .22); transition: transform .25s ease, box-shadow .25s ease; }
.lp-poster img { display: block; width: 100%; height: auto; }
.lp-poster:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(80, 36, 6, .28); }

/* ---------- จุดเด่น (การ์ดแบบ .hub-tile) ---------- */
.lp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-points li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px 18px;
  border-radius: var(--hub-radius);
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-points li:hover { transform: translateY(-2px); border-color: #ffc49b; box-shadow: var(--shadow-sm); }
.lp-points img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(120, 60, 10, .18)); }
.lp-points b { font-size: 16px; font-weight: 700; color: var(--ink); }
.lp-points span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.lp-more { margin: 14px 0 0; text-align: center; font-size: 14.5px; font-weight: 600; }

/* ---------- ทำความรู้จัก (ภาพหัวหมวดของฮับ) ---------- */
.lp-explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fde9d6;
  aspect-ratio: 12 / 7;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; transition: transform .4s ease; }
.lp-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0), rgba(255, 248, 240, .94) 46%);
}
.lp-card b { display: block; font-size: 18px; font-weight: 700; color: var(--ink); }
.lp-card small { display: block; font-size: 13.5px; color: var(--ink-2); }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-card:hover img { transform: scale(1.04); }

/* ---------- ปิดท้าย ---------- */
.lp-final {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 34px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(420px 200px at 12% 0%, rgba(255, 166, 77, .22), transparent 70%),
    radial-gradient(420px 220px at 92% 100%, rgba(255, 106, 0, .14), transparent 70%),
    linear-gradient(180deg, #fff6ec, #ffe9d6);
  border: 1px solid #ffd2b3;
}
.lp-final-poring { width: 96px; height: auto; margin: -6px auto 6px; display: block; filter: drop-shadow(0 8px 14px rgba(120, 60, 10, .22)); animation: float 3.5s ease-in-out infinite; }
.lp-final h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; color: var(--ink); }
.lp-final p { margin: 0 auto 20px; max-width: 560px; font-size: 15.5px; color: var(--ink-2); }
.lp-final-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- แท็บเล็ต ---------- */
@media (max-width: 1040px) {
  .lp-points { grid-template-columns: repeat(2, 1fr); }
  .lp-starter { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---------- มือถือ: ภาพบน เนื้อหาล่าง (แบบ .hub-hero มือถือ) ---------- */
@media (max-width: 900px) {
  .lp { padding-top: 12px; }
  .lp-hero { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 20px; }
  .lp-hero-art { position: relative; inset: auto; height: 190px; object-position: 80% 28%; }
  .lp-hero::before { background: linear-gradient(180deg, rgba(255, 248, 240, 0) 110px, rgba(255, 248, 240, .97) 190px); }
  .lp-hero-copy { width: 100%; margin-top: -40px; padding: 0 18px 22px; }
  .lp-lead { font-size: 15px; margin-bottom: 16px; }
  .lp-cta { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .lp-cta .lp-btn { justify-content: flex-start; }
  .lp-hero h1 { font-size: 27px; }
  .lp-starter { grid-template-columns: 1fr; padding: 16px; }
  .lp-starter .lp-poster { order: -1; }
  .lp-btn-wide { max-width: none; }
  .lp-explore { grid-template-columns: 1fr; }
  .lp-card { aspect-ratio: 16 / 7; }
  .lp-section { margin-top: 34px; }
  .lp-title { font-size: 21px; }
}
@media (max-width: 400px) {
  .lp-hero h1 { font-size: 25px; }
  .lp-points li { padding: 16px 10px; }
  .lp-points b { font-size: 15px; }
  .lp-points span { font-size: 13px; }
  .lp-live { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-kicker i, .lp-final-poring { animation: none; }
}

/* ==========================================================================
   หน้า / = จอเดียว (เจ้าของสั่ง 21 ต.ค. 2569 "จัดออกจากจอแรกเอาไปไว้หน้า main") — hero สูงเต็มจอ
   ========================================================================== */
.lp-solo { padding-bottom: 24px; }
.lp-solo .lp-hero { min-height: calc(100vh - 150px); min-height: calc(100svh - 150px); }
/* ปุ่มเข้าสู่หน้าหลัก /main — กลางล่างของ hero (เจ้าของชี้ตำแหน่ง 21 ต.ค. 2569) · padding-bottom กันชนเนื้อหาจอเตี้ย */
.lp-solo .lp-hero { padding-bottom: 96px; }
.lp-btn-main {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  min-height: 56px;
  padding: 6px 20px 6px 18px;
  gap: 12px;
  border: 1.5px solid #fff;
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 28px rgba(120, 50, 0, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lp-btn-main svg { width: 24px; height: 24px; color: var(--orange); }
.lp-btn-main b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.lp-btn-main small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.lp-btn-arrow { margin-left: 10px; font-size: 19px; font-weight: 700; color: var(--orange); transition: transform .2s ease; }
.lp-btn-main:hover { transform: translateX(-50%) translateY(-2px); border-color: var(--orange); background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(255, 106, 0, .3); }
.lp-btn-main:hover .lp-btn-arrow { transform: translateX(3px); }
/* แท็บเล็ตแนวตั้ง (iPad 768/820): เลย์เอาต์มือถือทำภาพเหลือแถบ 190px + ปุ่มยืดเต็ม 700px ดูโล่ง → ภาพสูงขึ้น ปุ่มเรียงคู่ ปุ่มหน้าหลักกลาง */
@media (min-width: 601px) and (max-width: 900px) {
  .lp-solo .lp-hero-art { height: 420px; object-position: 76% 30%; }
  .lp-solo .lp-hero::before { background: linear-gradient(180deg, rgba(255, 248, 240, 0) 300px, rgba(255, 248, 240, .97) 420px); }
  .lp-solo .lp-hero-copy { margin-top: -80px; padding: 0 40px 24px; }
  .lp-solo .lp-hero h1 { font-size: 36px; }
  .lp-solo .lp-lead { font-size: 16px; }
  .lp-solo .lp-cta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-solo .lp-btn-main { align-self: center; width: auto; min-width: 340px; margin: 0 0 30px; }
  .lp-solo .lp-btn-main .lp-btn-arrow { margin-left: 24px; }
}
@media (max-width: 900px) {
  .lp-solo .lp-hero { padding-bottom: 0; }
  .lp-btn-main { position: relative; left: auto; bottom: auto; transform: none; align-self: stretch; margin: -6px 18px 22px; justify-content: flex-start; border-color: var(--line-2, #ffd2b3); box-shadow: 0 6px 16px rgba(120, 50, 0, .1); }
  .lp-btn-main:hover { transform: translateY(-1px); }
  .lp-btn-arrow { margin-left: auto; }
}

/* ==========================================================================
   หน้า /main — หน้าหลักฉบับเต็ม (index.ejs)
   ========================================================================== */
.lp-home { padding: 0 0 8px; }
.lp-hero-home .lp-hero-copy { padding: 30px 44px 34px; }
.lp-home-logo { display: block; width: 260px; height: auto; margin: 0 0 4px -6px; filter: drop-shadow(0 6px 12px rgba(120, 40, 0, .22)); }
.lp-hero-home h1 { font-size: 34px; margin-bottom: 8px; }
.lp-kicker-closed { background: #fdeeed; border-color: #f5c6c2; color: #b4302a; }
.lp-kicker-closed i { background: #e0483f; box-shadow: 0 0 0 4px rgba(224, 72, 63, .16); animation: none; }
.lp-kicker-soon { background: #fff4e5; border-color: #ffd9a8; color: #b45309; }
.lp-kicker-soon i { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.lp-btn-discord { border-color: #c9cdfb; color: #4752c4; }
.lp-btn-discord:hover { color: #4752c4; border-color: #5865f2; box-shadow: 0 6px 18px rgba(88, 101, 242, .2); }
.lp-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.lp-welcome b { color: var(--ink); }
.lp-welcome a { font-weight: 600; }
.lp-welcome a b { color: inherit; }
.lp-welcome .lp-welcome-sub { font-weight: 500; color: var(--muted); }
.lp-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.lp-badge-ok { background: #e8f8ef; color: #17824b; border: 1px solid #b9ebcf; }
.lp-welcome .lp-badge-warn { background: #fff4e5; color: #b45309; border: 1px solid #ffd9a8; }
/* กล่องบัญชี /main (เจ้าของขอ "จัดแบ่งส่วนให้เรียบร้อย" 21 ต.ค. 2569): ซ้าย สมัคร/ตัวเรา | ขวา เข้าสู่ระบบ/จัดการบัญชี */
.lp-acct {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 4px 14px rgba(120, 50, 0, .06);
  font-size: 14px;
}
.lp-acct-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, #fff6ec, #ffe9d6);
  border: 1px solid #ffd9b8;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.lp-acct-main:hover { border-color: var(--orange); box-shadow: 0 6px 16px rgba(255, 106, 0, .18); transform: translateY(-1px); text-decoration: none; }
.lp-acct-main img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.lp-acct-main span, .lp-acct-side { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.lp-acct small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.lp-acct-main b { font-size: 15.5px; color: var(--orange-dark); }
.lp-acct-me b { color: var(--ink); }
.lp-acct-arrow { width: 18px; height: 18px; margin-left: 4px; color: var(--orange); flex-shrink: 0; transition: transform .2s ease; }
a.lp-acct-main:hover .lp-acct-arrow { transform: translateX(3px); }
.lp-acct-sep { align-self: stretch; width: 1px; margin: 6px 0; background: var(--line); }
.lp-acct-side { align-items: flex-start; gap: 5px; }
.lp-acct-row { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.lp-acct .lp-acct-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange-dark);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.lp-acct .lp-acct-btn:hover { background: var(--orange); color: #fff; }
.lp-acct .lp-welcome-sub { font-size: 13px; }
.lp-acct .lp-welcome-sub:hover { color: var(--orange-dark); }
@media (max-width: 900px) {
  .lp-acct { display: flex; padding-right: 14px; }
  .lp-acct-main { flex: 1 1 auto; min-width: 0; }
  .lp-acct-main b { font-size: 14.5px; }
}
@media (max-width: 560px) {
  /* จอแคบ (481px ข้อความสมัครหักบรรทัด): ซ้อน 2 ชั้น — สมัครเต็มแถว · เข้าสู่ระบบอยู่แถวล่าง */
  .lp-acct { flex-direction: column; align-items: stretch; gap: 8px; padding: 7px 7px 10px; }
  .lp-acct-sep { display: none; }
  .lp-acct-side { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
}
.lp-live-since { font-size: 13px; color: var(--muted); }

/* หัวข้อ + ลิงก์ "ดูทั้งหมด" · ชื่อหมวดอังกฤษตัวเล็กต่อท้าย */
.lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lp-head .lp-title { margin-bottom: 0; }
.lp-title small { align-self: flex-end; margin-left: 2px; padding-bottom: 3px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lp-head-more { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
.lp-head-more:hover { text-decoration: underline; }

/* ข่าว & กิจกรรม: 3 คอลัมน์ · มือถือเลื่อนซ้ายขวา */
.lp-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-news-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fde9d6; }
.lp-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lp-news-card:hover .lp-news-thumb img { transform: scale(1.04); }
.lp-news-thumb .news-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.lp-news-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 16px; }
.lp-news-body time { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.lp-news-body h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.lp-news-body h3 a { color: var(--ink); }
.lp-news-body h3 a:hover { color: var(--orange-dark); }
.lp-news-body p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* จุดเด่น 6 หมวด */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.lp-feature { padding: 16px 18px; border-radius: var(--hub-radius); border: 1px solid var(--line); background: #fff; }
.lp-feature-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lp-feature-head img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(120, 60, 10, .18)); }
.lp-feature-head h3 { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--ink); }
.lp-feature-head p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.lp-feature ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.lp-feature li { position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.lp-feature li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.lp-promise { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 20px; border-radius: var(--hub-radius); border: 1px solid #ffd2b3; background: linear-gradient(90deg, #fff6ec, #fff); }
.lp-promise img { flex-shrink: 0; width: 52px; height: auto; }
.lp-promise b { display: block; font-size: 15.5px; font-weight: 700; color: var(--orange-dark); }
.lp-promise span { display: block; font-size: 13.5px; color: var(--ink-2); }

/* ศึกชิงปราสาท + จัดอันดับ */
.lp-castles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.lp-castle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--hub-radius); border: 1px solid var(--line); background: #fff; }
.lp-castle img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.lp-castle b { display: block; font-size: 15px; color: var(--ink); }
.lp-castle b small { font-weight: 500; color: var(--muted); }
.lp-castle span { display: block; font-size: 13px; color: var(--ink-2); }
.lp-castle-empty { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 16px; border-radius: 999px; border: 1px dashed #ffc49b; background: #fffaf5; font-size: 14px; color: var(--ink-2); }
.lp-castle-empty img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.lp-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-rank { padding: 12px 14px 14px; border-radius: var(--hub-radius); border: 1px solid var(--line); background: #fff; }
.lp-rank-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-rank-head img { width: 32px; height: 32px; object-fit: contain; }
.lp-rank-head b { flex: 1; font-size: 15.5px; color: var(--ink); }
.lp-rank-head a { font-size: 13px; font-weight: 700; color: var(--orange-dark); }
.lp-rank ol { list-style: none; margin: 0; padding: 0; }
.lp-rank li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid #fbefe6; font-size: 14px; }
.lp-rank li:first-child { border-top: 0; }
.lp-rank-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #f4ece6; font-size: 12.5px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
.lp-rank .top-1 .lp-rank-no { background: linear-gradient(135deg, #ffd34d, #f5a300); color: #fff; }
.lp-rank .top-2 .lp-rank-no { background: linear-gradient(135deg, #dfe4ea, #a9b3bf); color: #fff; }
.lp-rank .top-3 .lp-rank-no { background: linear-gradient(135deg, #f3b98a, #c97a3d); color: #fff; }
.lp-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.lp-rank-score { flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-rank-empty { margin: 6px 0 2px; padding: 14px 10px; border-radius: 12px; background: #fffaf5; text-align: center; font-size: 13.5px; color: var(--muted); }

@media (max-width: 1040px) {
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lp-solo .lp-hero { min-height: 0; }
  .lp-home-logo { width: 190px; margin-bottom: 0; }
  .lp-hero-home .lp-hero-copy { padding: 0 18px 22px; }
  .lp-hero-home h1 { font-size: 24px; }
  .lp-head { align-items: center; }
  .lp-title small { display: none; }
  /* ข่าว: เลื่อนซ้ายขวา เห็นใบถัดไปโผล่นิดหนึ่ง */
  .lp-news { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .lp-news::-webkit-scrollbar { display: none; }
  .lp-news-card { flex: 0 0 78%; scroll-snap-align: start; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-ranks { grid-template-columns: 1fr; }
  .lp-castle-empty { border-radius: 16px; }
  .lp-promise { padding: 12px 14px; gap: 12px; }
  .lp-promise b { font-size: 14.5px; }
  /* /main มือถือ: ปุ่มหลักเต็มแถว · ดาวน์โหลด/Discord คู่กัน · การ์ดหมวด 2 คอลัมน์ */
  .lp-hero-home .lp-cta { grid-template-columns: 1fr 1fr; }
  .lp-hero-home .lp-cta .lp-btn-signup { grid-column: 1 / -1; }
  .lp-hero-home .lp-cta .lp-btn:not(.lp-btn-signup) { justify-content: center; padding: 0 12px; font-size: 14px; }
  .lp-home .lp-explore { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-home .lp-card { aspect-ratio: 5 / 4; border-radius: 16px; }
  .lp-home .lp-card img { object-position: 78% 30%; }
  .lp-home .lp-card span { padding: 28px 10px 10px; }
  .lp-home .lp-card b { font-size: 15px; }
  .lp-home .lp-card small { font-size: 12px; line-height: 1.35; }
}
@media (min-width: 520px) and (max-width: 900px) {
  .lp-explore { grid-template-columns: repeat(2, 1fr); }
  .lp-news-card { flex-basis: 46%; }
}
