﻿/* =========================================================
   JAICHUA888 — Casino Landing
   ========================================================= */
:root{
  --primary-main : #071c39;  /* น้ำเงินเข้ม : พื้นการ์ด        */
  --primary-minor: #0b63d8;  /* น้ำเงินหลัก                   */
  --neutral      : #4da3ff;  /* น้ำเงินสว่าง : ขอบ/ไฮไลต์    */
  --gold-hi      : #dff3ff;  /* สีฟ้าอ่อน                    */
  --gold-lo      : #7cc3ff;
  --warning-main : #0ea5e9;  /* ฟ้าเฉดเข้ม                   */
  --third-main   : #1d4ed8;
  --third-minor  : #60a5fa;
  --ink          : #07203d;  /* ตัวอักษรบนพื้นฟ้า            */
  --panel        : #091c2e;  /* พื้นการ์ดเข้ม                */
  --panel-2      : #102d46;
  --line-green   : #10b981;  /* LINE / ปุ่มเขียว              */
  --text         : #eef8ff;
  --muted        : #b8dcff;
  --white        : #ffffff;
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:fixed; top:12px; left:12px; z-index:10; padding:10px 14px;
  border-radius:8px; color:var(--ink); background:var(--gold-hi); font-weight:700;
  text-decoration:none; transform:translateY(-160%); transition:transform .2s ease;
}
.skip-link:focus{ transform:translateY(0); outline:3px solid var(--white); }
body{
  font-family:'Noto Sans Thai','Leelawadee UI',Tahoma,Arial,sans-serif;
  min-height:100dvh;
  color:var(--text);
  position:relative; overflow-x:hidden;
  padding:0 0 26px;
  background:
    radial-gradient(70% 40% at 50% 0%,  rgba(77,163,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(60% 45% at 85% 95%, rgba(11,99,216,.22),  rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(7,28,57,.7), rgba(3,9,17,.94)),
    #07141f;
}
body::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(70% 40% at 50% 0%,  rgba(77,163,255,.18), rgba(0,0,0,0) 60%),
    radial-gradient(60% 45% at 85% 95%, rgba(11,99,216,.22), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(7,28,57,.7), rgba(3,9,17,.94)),
    url('bg-720.webp') center top/cover no-repeat;
  opacity:0;
}
body.has-background::before{ opacity:1; }

/* ===== ประกายทองพื้นหลัง ===== */
.fx{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.spark{ position:absolute;
  background:radial-gradient(circle at 50% 50%, #fff 0%, var(--gold-hi) 45%, var(--warning-main) 100%);
  clip-path:polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
  filter:drop-shadow(0 0 6px rgba(77,163,255,.9));
  opacity:0; animation:twinkle var(--d,3.4s) ease-in-out infinite;
}
@keyframes twinkle{ 0%,100%{ opacity:0; transform:scale(.3) rotate(0deg);} 50%{ opacity:.9; transform:scale(1) rotate(45deg);} }

/* ===== คอนเทนต์ ===== */
.content{
  position:relative; z-index:1;
  width:100%; max-width:500px; margin:0 auto;
  padding:22px 16px 0;
  display:flex; flex-direction:column; gap:22px;
}
main{ display:flex; flex-direction:column; gap:22px; }

/* ===== HEADER ===== */
.site-header{ text-align:center; }
.logo{
  width:min(62%,220px); height:auto; display:block; margin:0 auto 12px;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,.6));
}
.eyebrow{ color:var(--neutral); font-size:13px; font-weight:800; letter-spacing:2px; }
h1{ margin:3px 0 8px; color:var(--gold-hi); font-size:clamp(25px,6.4vw,32px); line-height:1.2; }
.site-intro{ max-width:440px; margin:0 auto; color:var(--muted); font-size:14px; line-height:1.65; }

/* ===== การ์ดร่วม (กรอบทอง) ===== */
.promo-section, .info-card, .promo-overview, .faq-section, .banner, .carousel{
  border-radius:18px;
}

/* ===== คารูเซลโปรโมชัน ===== */
.carousel{ overflow:hidden; border:2px solid var(--neutral);
  box-shadow:0 10px 28px rgba(0,0,0,.55), 0 0 20px rgba(77,163,255,.2); }
.carousel-track{ display:flex; transition:transform .55s cubic-bezier(.4,.0,.2,1); }
.slide{ min-width:100%; }
.slide a{ display:block; }
.slide img{ display:block; width:100%; height:100%; aspect-ratio:1/1; object-fit:cover; background:var(--panel); }
.dots{ display:flex; gap:2px; justify-content:center; margin-top:8px; }
.dot{
  width:32px; height:32px; display:grid; place-items:center; cursor:pointer; border:0;
  background:transparent; padding:0;
}
.dot::before{ content:""; width:9px; height:9px; border-radius:50%; background:rgba(77,163,255,.4); transition:width .2s ease, border-radius .2s ease, background .2s ease; }
.dot.active::before{ width:22px; border-radius:5px; background:var(--neutral); box-shadow:0 0 8px rgba(77,163,255,.8); }
.dot:focus-visible{ outline:2px solid var(--gold-hi); outline-offset:-3px; border-radius:8px; }

/* ===== ปุ่ม CTA ===== */
.cta{ display:flex; flex-direction:column; gap:12px; }
.btn-register, .btn-line{
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:16px; border-radius:14px; text-decoration:none;
  font-family:inherit; font-weight:800; font-size:18px;
  position:relative; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-register{
  color:var(--ink);
  background:linear-gradient(135deg, #dff3ff 0%, var(--neutral) 45%, var(--warning-main) 100%);
  border:1px solid rgba(223,243,255,.9);
  box-shadow:0 8px 24px rgba(59,130,246,.35), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn-register .arrow{ color:var(--ink); animation:arrowMove 1.2s ease-in-out infinite; }
@keyframes arrowMove{ 0%,100%{ transform:translateX(0); opacity:.7;} 50%{ transform:translateX(4px); opacity:1;} }
.btn-line{
  color:var(--white); font-size:17px;
  background:linear-gradient(135deg, #10b981, #0f9f73);
  border:1px solid rgba(16,185,129,.8);
  box-shadow:0 8px 22px rgba(16,185,129,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.line-mark{ display:inline-grid; place-items:center; min-width:34px; height:22px; padding:0 5px; border-radius:6px; background:#fff; color:#006b4f; font-size:10px; font-weight:900; }
.btn-register:hover, .btn-line:hover{ transform:translateY(-2px); filter:brightness(1.06); }
.btn-register:active, .btn-line:active{ transform:scale(.98); }

/* ===== ข้อมูลบริการและโปรโมชั่น ===== */
.info-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.info-card{
  padding:18px 12px; text-align:center;
  background:linear-gradient(180deg, var(--panel-2), var(--panel));
  border:1.5px solid rgba(77,163,255,.5);
  box-shadow:0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(223,243,255,.12);
}
.service-icon{
  display:grid; place-items:center; width:42px; height:42px; margin:0 auto 10px; border-radius:50%;
  color:var(--ink); font-size:18px; background:radial-gradient(circle at 40% 30%, var(--gold-hi), var(--neutral) 55%, var(--warning-main));
  box-shadow:0 4px 12px rgba(77,163,255,.5);
}
.info-card h2{ color:var(--neutral); font-size:15px; line-height:1.3; }
.info-card p{ margin-top:7px; color:var(--muted); font-size:12px; line-height:1.5; }
.promo-overview, .faq-section{
  padding:22px 18px; border:1.5px solid rgba(77,163,255,.45);
  background:linear-gradient(180deg, rgba(16,45,70,.96), rgba(9,28,46,.96));
  box-shadow:0 8px 22px rgba(0,0,0,.45);
}
.promo-overview h2{ color:var(--gold-hi); font-size:20px; line-height:1.35; }
.promo-overview p{ margin-top:10px; color:var(--muted); font-size:14px; line-height:1.65; }
.promo-overview ul{ margin:14px 0 0 19px; color:var(--text); font-size:14px; line-height:1.75; }
.promo-overview .notice{ color:var(--gold-hi); font-size:13px; }

/* ===== แบนเนอร์คู่ ===== */
.banners{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.banner{ display:block; overflow:hidden; border-radius:16px; border:2px solid var(--neutral);
  box-shadow:0 8px 22px rgba(0,0,0,.5), 0 0 16px rgba(77,163,255,.18); transition:transform .2s ease; }
.banner img{ display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:1/1; }
.banner:hover{ transform:translateY(-3px) scale(1.02); }

/* ===== คำถามที่พบบ่อย ===== */
.section-title{
  text-align:center; font-size:20px; font-weight:800; color:var(--gold-hi); margin-bottom:14px;
  text-shadow:0 2px 10px rgba(77,163,255,.5);
}
.faq-mark{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; margin-right:4px; color:var(--ink); background:var(--neutral); font-size:14px; text-shadow:none; }
.faq-section details{
  padding:13px 0; border-top:1px solid rgba(77,163,255,.25);
}
.faq-section details:first-of-type{ border-top:0; }
.faq-section summary{ cursor:pointer; color:var(--text); font-weight:700; line-height:1.45; }
.faq-section summary::marker{ color:var(--neutral); }
.faq-section details p{ margin:8px 20px 0; color:var(--muted); font-size:14px; line-height:1.65; }

/* ===== ฟุตเตอร์ ===== */
.footer{ text-align:center; font-size:12px; letter-spacing:.3px; color:rgba(223,243,255,.65); padding:14px 0 4px; }

@media (max-width:380px){
  .btn-register, .btn-line{ font-size:16px; }
  .info-card{ padding:14px 8px; }
  .info-card h2{ font-size:13px; }
  .info-card p{ font-size:11px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; }
}
