/* ════════ Core / Reset ════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink:        #f0f2ff;
  /* ข้อความรอง: ต้นฉบับ #8ea5d4 บนพื้นม่วงสดช่วงบนของหน้า contrast ราว 3.8:1 (วัดจาก pixel ใต้คำโปรยใน hero) ไม่ผ่าน WCAG AA (4.5:1)
     สีนี้ได้ราว 9.6:1 ที่ตำแหน่งเดียวกัน และ 11.4:1 บนพื้นเกือบดำด้านล่าง — Lighthouse ตรวจข้อความบนพื้นไล่สีไม่ได้ ต้องวัดเองทุกครั้งที่เปลี่ยนสี */
  --muted:      #b8c4e8;
  --paper:      #06091a;
  --surface:    #0c1032;
  --brand:      #4a6cf7;
  --brand-dark: #040718;
  --brand-purple:#6a3de8;
  --accent:     #ff4060;
  --accent-dark:#d81b40;
  --gold:       #ffd54f;
  --line:       rgba(255,255,255,.1);
  --card:       rgba(255,255,255,.045);
  --radius:     14px;
  --radius-sm:   9px;
  --shadow:      0 14px 40px rgba(0,0,0,.45);
  --ff:          'Kanit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff);
  /* สีสำรองระหว่างที่ shader ยังโหลดไม่เสร็จ หรือเครื่องที่ไม่รองรับ WebGL — โทนเดียวกับ shader */
  background: linear-gradient(160deg, #0a2350 0%, #1a1a66 45%, #06091a 100%) fixed var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ════════ Page background ════════ */
/* ต้นฉบับไล่สีจากม่วงสด #6a3de8 ทำให้ข้อความรองในครึ่งบนของหน้าอ่านยาก — ใช้ม่วงเข้มขึ้นแต่ยังคงโทนแบรนด์ */
.page {
  position: relative;
  /* พื้นหลังจริงมาจาก <BackgroundShader> (src/components/ui/background-shader.tsx) ซึ่ง fixed อยู่หลัง .page */
  background: transparent;
  min-height: 100vh;
}
main { position: relative; z-index: 1; }

/* ════════ Text accent ════════ */
/* ต้นฉบับใช้ class นี้ใน 6 ไฟล์ แต่ไม่เคยประกาศ style ไว้ หัวข้อจึงเป็นสีขาวล้วนทั้งหน้า
   ใช้สีทองสีเดียว — ตัวอักษรไล่สีหลายสีในทุกหัวข้อทำให้หน้าดูรก */
.text-gradient { color: var(--gold); }
/* กันคำไทยถูกตัดกลางวลี เช่น "บัญชี / เดียว" */
.nowrap { white-space: nowrap; }

/* ════════ Icons ════════ */
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--gold);
  background: linear-gradient(160deg, rgba(255,213,79,.18), rgba(255,64,96,.12));
  border: 1px solid rgba(255,213,79,.28);
}
.icon-tile-sm { width: 36px; height: 36px; border-radius: 10px; }

/* ════════ Buttons ════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--ff);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .25s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 34px; font-size: 1.1rem; }

/* ปุ่มหลัก (สมัคร) ใช้ .btn-liquid ด้านล่าง — .btn-accent เดิมถูกแทนที่ทั้งเว็บแล้ว */

/* ปุ่มรอง — เบากว่าปุ่มหลักชัดเจน เพื่อไม่ให้แย่งความสนใจ */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); }

/* ปุ่มสมัครแบบขอบโลหะเหลว — src/components/ui/liquid-metal-button.tsx
   โครงสร้าง: <a.btn-liquid> = ขอบ (shader อยู่ใน __metal) / __face = ตัวปุ่มสีแดงด้านใน
   ใช้ .btn.btn-liquid เพื่อชนะ padding ของ .btn-sm / .btn-lg (รวมถึงใน media query มือถือ) — padding จริงอยู่ที่ __face */
.btn.btn-liquid {
  position: relative;
  isolation: isolate;
  padding: 2px;                 /* ความหนาของขอบโลหะ */
  border-radius: 999px;
  color: #fff;
  /* สีโลหะสำรอง ระหว่างที่ shader ยังไม่โหลด หรือเครื่องที่ไม่รองรับ WebGL */
  background: linear-gradient(135deg, #f4f4f6 0%, #8a8a90 30%, #ffffff 50%, #6d6d73 75%, #d9d9dd 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.3),
    0 20px 12px rgba(0,0,0,.08),
    0 9px 9px rgba(0,0,0,.12),
    0 6px 24px rgba(255,64,96,.35);
}
.btn.btn-liquid.btn-lg { padding: 2.5px; }
.btn.btn-liquid:hover {
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4),
    0 4px 4px rgba(0,0,0,.15),
    0 10px 32px rgba(255,64,96,.55);
}
.btn-liquid__metal {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
}
.btn-liquid__metal > div, .btn-liquid__metal canvas { display: block; width: 100% !important; height: 100% !important; }
.btn-liquid__face {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff3060, #ff5500);
  /* แสงสะท้อนด้านบน + เงาด้านล่างให้ดูนูนเหมือนต้นฉบับ */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(120,0,20,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s;
}
.btn-liquid.btn-sm .btn-liquid__face { padding: 6px 16px; }
.btn-liquid.btn-lg .btn-liquid__face { padding: 12.5px 32px; }
.btn-liquid:active .btn-liquid__face {
  transform: translateY(1px) scale(.98);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.35), inset 0 1px 2px rgba(0,0,0,.25);
}
.btn-liquid__ripple {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: btn-liquid-ripple .6s ease-out forwards;
}
@keyframes btn-liquid-ripple {
  from { transform: translate(-50%, -50%) scale(0); opacity: .6; }
  to   { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

/* บรรทัดบอกว่าปุ่มสมัครพาไปเว็บหลัก — ผู้ใช้จะได้ไม่ตกใจเมื่อเจอโดเมนอื่น */
.register-note { margin: 0 0 20px; font-size: .85rem; color: var(--muted); }
.hero-ctas + .register-note { margin-top: -12px; }
.register-section .register-note, .cta-bottom .register-note { margin: 12px 0 0; }

/* ════════ Header ════════ */
/* header หดลงเมื่อเลื่อนหน้า (script.js ใส่ class .is-scrolled)
   ใช้ position: fixed + เว้นที่ไว้ด้วย padding-top ของ .page แทน sticky
   ถ้าเป็น sticky ความสูงที่เปลี่ยนตอนหดจะดันเนื้อหาทั้งหน้าให้ขยับ และนับเป็น layout shift (CLS) */
:root { --header-h: 68px; --header-h-scrolled: 54px; }
.page { padding-top: var(--header-h); }
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* โปร่งแสง + blur ให้สีของ header ตามพื้นที่อยู่ข้างใต้ (ม่วงตอนอยู่บนสุด เข้มลงเมื่อเลื่อนลง)
     ต้นฉบับใช้กรมท่าทึบบนพื้นม่วง ทำให้เห็นเป็นแถบสีแยกชั้น */
  background: rgba(12,8,40,.35);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(12,8,40,.78);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s cubic-bezier(.25,1,.5,1);
}
.header.is-scrolled .header-inner { height: var(--header-h-scrolled); }
/* ต้นฉบับตั้งโลโก้ 4rem ทำให้ header สูงเกือบ 100px กินพื้นที่จอแรกโดยไม่จำเป็น
   ย่อโลโก้ด้วย transform (ไม่ใช่ font-size) เพื่อไม่ให้ browser ต้องคำนวณ layout ใหม่ทุกเฟรม */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.25,1,.5,1);
}
.header.is-scrolled .logo { transform: scale(.82); }
.logo-icon { color: var(--gold); }
.logo-text { background: linear-gradient(135deg, var(--gold), #ff6b6b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-accent { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: .95rem; font-weight: 400; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ════════ Hero ════════ */
.hero { padding: 64px 0 56px; }
.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.trust-badges { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--muted);
}
.badge .icon { color: var(--gold); }
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ════════ Section shared ════════ */
/* ทุก section ใช้พื้นหลังของ .page ผืนเดียวกัน แยก section ด้วยระยะห่าง ไม่ใช้แถบสี
   ต้นฉบับใส่ rgba(0,0,0,.15–.3) ให้บาง section สลับกันไป ทับบนพื้นไล่สีแล้วเห็นเป็นแถบขาดเป็นท่อน ๆ */
.categories, .providers, .benefits, .deposit, .faq-section, .slots, .highlights,
.register-section, .section24hr, .partners, .responsible-section { padding: 64px 0; }

.section-title {
  text-wrap: balance;   /* กันคำเดียวตกไปอยู่บรรทัดสุดท้าย เช่น "ตอน / นี้" บนมือถือ */
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 12px;
}
.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 36px;
  font-size: 1rem;
}
.section-more { margin-top: 20px; text-align: center; }
.section-more a { color: var(--gold); font-weight: 600; border-bottom: 1px dashed rgba(255,213,79,.5); }
.section-more a:hover { border-bottom-style: solid; }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
}

/* ════════ Game Categories ════════ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform .25s cubic-bezier(.25,1,.5,1), border-color .2s, background .2s;
}
a.category-card:hover { transform: translateY(-4px); border-color: rgba(255,213,79,.4); background: rgba(255,255,255,.07); }
.category-card .icon-tile { margin-bottom: 14px; }
.category-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.category-card p { font-size: .9rem; color: var(--muted); }
.category-card .card-more { margin-top: auto; padding-top: 12px; }

/* ════════ Promotions ════════ */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.provider-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  text-align: center;
  transition: transform .2s, background .2s;
}
.provider-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.provider-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.provider-card p  { font-size: .9rem; color: var(--muted); }
.promo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* ════════ Promo banner (ภาพนิ่ง อยู่ใน section โปรโมชั่น) ════════ */
.promo-banner {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.promo-banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }

/* แบนเนอร์ 4:1 บนจอแคบสูงไม่ถึง 100px ตัวเลขอ่านไม่ออก จึงซ่อนบนมือถือ (การ์ดโปรด้านล่างยังแสดงครบ)
   TODO(designer): มีแบนเนอร์เวอร์ชันมือถือเมื่อไหร่ ให้ลบกฎนี้แล้วใช้ <picture> แทน */
@media (max-width: 640px) {
  .promo-banner { display: none; }
}

/* ════════ Benefits ════════ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
/* ต้นฉบับตั้ง opacity .06 จนตัวเลขมองไม่เห็น — ถ้าใส่ต้องอ่านได้ */
.benefit-num {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit-card p  { font-size: .9rem; color: var(--muted); }

/* ════════ 24HR Section ════════ */
.section24hr-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.section24hr-text .section-title { text-align: left; margin-bottom: 16px; }
.section24hr-text p { color: var(--muted); line-height: 1.8; }
.section24hr-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ════════ Register / Steps ════════ */
.register-section { text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 0 32px;
  counter-reset: none;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff9f43);
  color: #2b1400;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { margin-bottom: 8px; }
.step p  { font-size: .9rem; color: var(--muted); }

/* ════════ Deposit ════════ */
.deposit-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 600px) { .deposit-methods { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .deposit-methods { grid-template-columns: repeat(6, 1fr); } }
.deposit-method {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px 12px;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.deposit-method img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}

/* ════════ Live casino chips / Slots ════════ */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; font-size: .9rem; background: var(--card); border: 1px solid var(--line); }

.slot-list {
  counter-reset: rank;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.slot-list li {
  counter-increment: rank;
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.slot-list li::before {
  content: counter(rank);
  grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #3b1200;
  background: linear-gradient(180deg, #fff27a, #ffc400);
}
.slot-list b { display: block; font-size: .95rem; }
.slot-list span { display: block; font-size: .85rem; color: var(--muted); }

/* ════════ Lotto + Sports (สองคอลัมน์) ════════ */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.highlight-card {
  background: linear-gradient(160deg, rgba(255,213,79,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,213,79,.22);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.highlight-card .icon-tile { margin-bottom: 14px; }
.highlight-card h2 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 10px; }
.highlight-card p { color: var(--muted); }

/* ════════ Partner logos ════════ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.partner-badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: grid;
  place-items: center;
}

/* ════════ Summary ════════ */
.summary-box { padding: 24px 0 0; }
.summary-inner {
  border: 1px solid rgba(255,213,79,.35);
  background: linear-gradient(180deg, rgba(255,213,79,.08), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding: 20px 24px;
}
.summary-title { font-size: 1.1rem; color: var(--gold); margin-bottom: 6px; }
.summary-text { font-size: 1rem; line-height: 1.8; }
.summary-text strong { color: var(--gold); }
.summary-meta { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* ════════ FAQ (accordion) ════════ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq-item[open] { border-color: rgba(255,213,79,.35); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--radius); }
.faq-chevron { color: var(--gold); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq-item p strong { color: var(--ink); }

/* ════════ Related guides ════════ */
.related { padding: 56px 0; }
/* 2 คอลัมน์: การ์ด 4 ใบ (หน้าแรก) จะได้ 2×2 ส่วนหน้าย่อย 3 ใบจะได้ 2+1 — auto-fit 3 คอลัมน์ทำให้เหลือใบเดียวตกแถว */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s cubic-bezier(.25,1,.5,1), border-color .2s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(255,213,79,.4); }
.related-body { flex: 1; }
.related-body b { display: block; font-size: 1rem; }
.related-body span { display: block; font-size: .875rem; color: var(--muted); }
.related-arrow { color: var(--gold); }

/* ════════ Responsible Gaming ════════ */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tip-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.tip-card h3 { font-size: 1rem; margin-bottom: 4px; }
.tip-card p { font-size: .9rem; color: var(--muted); }
.responsible-help { margin-top: 20px; text-align: center; font-size: .95rem; color: var(--muted); }
.responsible-help strong { color: var(--gold); }

/* ════════ CTA Bottom ════════ */
/* CTA ท้ายหน้าเป็นการ์ด ไม่ใช่แถบเต็มจอ — แถบชมพูของต้นฉบับเป็นอีกชั้นสีที่ไม่เข้ากับพื้นหลัง */
.cta-bottom { padding: 24px 0 72px; text-align: center; }
.cta-bottom .container {
  width: calc(100% - 40px);
  max-width: 900px;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,64,96,.12), rgba(255,213,79,.05));
  border: 1px solid rgba(255,64,96,.25);
}
.cta-title { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.cta-desc { color: var(--muted); margin-bottom: 28px; }
.age-badge { margin-top: 16px; font-size: .875rem; color: var(--muted); }

/* ════════ Footer ════════ */
.footer {
  background: rgba(0,0,0,.4);
  padding: 40px 0 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 800;
}
.footer-desc { font-size: .875rem; font-weight: 400; color: var(--muted); max-width: 360px; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom p { font-size: .85rem; color: var(--muted); }
.responsible { margin-top: 4px; }

/* ════════ Sub-pages ════════ */
.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

.page-hero { padding: 28px 0 40px; }
.page-title { font-size: clamp(1.7rem, 4.2vw, 2.7rem); line-height: 1.25; margin-bottom: 12px; }
.page-lead { color: var(--muted); max-width: 760px; margin-bottom: 20px; }
.page-hero .summary-inner { margin-bottom: 22px; }

.guide { padding: 60px 0; }
.formula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.formula-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.formula-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--gold); }
.formula-card p { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.formula-list { display: flex; flex-direction: column; gap: 10px; }
.formula-list li { font-size: .95rem; color: var(--muted); line-height: 1.6; padding-left: 18px; position: relative; }
.formula-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.formula-list strong { color: var(--ink); }

.odds-table-wrap { overflow-x: auto; margin: 28px 0; }
.odds-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
}
.odds-table caption { caption-side: top; text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: 10px; }
.odds-table th, .odds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.odds-table thead th { background: #3f5fe8; color: #fff; font-weight: 600; } /* --brand (#4a6cf7) กับตัวขาวได้ contrast 4.39:1 ไม่ถึง 4.5:1 — สีนี้ได้ 5.2:1 */
.odds-table tbody th { color: var(--gold); font-weight: 600; }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.glossary > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.glossary dt { font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.glossary dd { margin: 0; font-size: .9rem; color: var(--muted); }

/* ════════ Scroll / back to top ════════ */
section[id] { scroll-margin-top: 80px; }   /* ไม่ให้หัวข้อจมใต้เมนู sticky เวลากดลิงก์ในหน้า */

@keyframes slide-up-in {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-up-in { animation: slide-up-in .7s cubic-bezier(.25, 1, .5, 1) both; }

.back-to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-purple));
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.25, 1, .5, 1);
}
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide-up-in { animation: none; }
  .back-to-top, .btn, .faq-chevron, .header, .header-inner, .logo { transition: none; }
}

/* ════════ Responsive ════════ */
@media (max-width: 900px) {
  .hero-content, .section24hr-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-visual { max-width: 560px; }
  .section24hr-img { order: -1; max-width: 560px; }
  .split-2 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  /* เมนูมือถือตอนเปิด — script.js สลับ class .is-open (เดิมใส่เป็น inline style) */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #140d42; /* ทึบ 100% ไม่ให้หัวข้อ hero ทะลุขึ้นมาใต้เมนู */
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .btn-lg { padding: 14px 24px; font-size: 1.05rem; }
  .btn-liquid.btn-lg .btn-liquid__face { padding: 11.5px 22px; }
  .section-title { font-size: 1.55rem; }
  .cta-title { font-size: 1.6rem; }
  .categories, .providers, .benefits, .deposit, .faq-section, .slots, .highlights,
  .register-section, .section24hr, .partners, .responsible-section { padding: 48px 0; }
  /* หมวดเกม 2 คอลัมน์บนมือถือ — คอลัมน์เดียวทำให้ section นี้ยาวเกือบ 3 จอ */
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 16px 14px; }
  .category-card .icon-tile { width: 38px; height: 38px; margin-bottom: 10px; }
  .category-card h3 { font-size: 1rem; }
  .category-card p { font-size: .875rem; }
  .related-grid { grid-template-columns: 1fr; }
  .providers-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .provider-card { padding: 10px 10px 14px; }
  .provider-card h3 { font-size: .95rem; }
  .provider-card p { font-size: .85rem; }
}
