/* =========================================================
   GUCCI889 — Link in Bio
   ธีมสีอิงจาก https://lobby.gucci889.com/login (brown-theme)
   ========================================================= */
:root{
  /* --- พาเลตต์หลักจากเว็บ GUCCI889 (brown-theme) --- */
  --primary-main : #251e19;  /* น้ำตาลเข้ม  : พื้นการ์ด            */
  --primary-minor: #b85f01;  /* ส้มทอง      : ไล่เฉดปุ่ม/ฟุตเตอร์  */
  --secondary    : #160e00;  /* ดำน้ำตาล    : พื้นหลังสำรอง        */
  --third-main   : #a71c59;  /* ชมพูเข้ม    : ปุ่มติดต่อ           */
  --third-minor  : #ef497b;  /* ชมพู                              */
  --shade-minor  : #a86e61;  /* น้ำตาลนวล   : ข้อความรอง          */
  --neutral      : #ffca61;  /* ทอง         : เส้นขอบ/ไฮไลต์       */
  --warning-main : #e59200;  /* อำพัน                             */
  --gold-hi      : #ffe9b8;  /* ทองสว่าง                          */
  --gold-lo      : #d6af03;  /* ทองเข้ม                           */
  --ink          : #2a1503;  /* น้ำตาลไหม้  : ตัวอักษรบนพื้นทอง    */
  --white        : #ffffff;
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; }

body{
  font-family:'Noto Sans Thai','Kanit',sans-serif;
  min-height:100dvh;
  padding:26px 16px 40px;
  position:relative; overflow-x:hidden;
  color:var(--white);
  /* พื้นหลัง : ภาพลาย Gucci monogram + เงาไล่ทองอ่อน ๆ (ตรึงไว้ตอนเลื่อน) */
  background:
    radial-gradient(70% 45% at 50% 0%,  rgba(255,202,97,.12), rgba(0,0,0,0) 60%),
    radial-gradient(60% 50% at 85% 90%, rgba(184,95,1,.18),  rgba(0,0,0,0) 60%),
    linear-gradient(160deg, rgba(37,30,25,.55), rgba(22,14,0,.78)),
    url('bg.webp') center top/cover no-repeat fixed,
    var(--secondary);
}

/* ===== กล่องคอนเทนต์ที่เลื่อนได้ ===== */
.wrap{
  position:relative; z-index:1;
  width:100%; max-width:420px;
  margin:0 auto;
  display:flex; flex-direction:column; align-items:stretch;
}

/* ===== เอฟเฟกต์พื้นหลัง ===== */
.fx{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.bokeh{ position:absolute; border-radius:50%;
  background:radial-gradient(circle, rgba(255,224,150,.9) 0%, rgba(255,202,97,.4) 38%, rgba(255,202,97,0) 70%);
  animation:drift var(--d,14s) ease-in-out infinite; opacity:0; }
@keyframes drift{
  0%   { opacity:0; transform:translateY(20px) scale(.85); }
  40%  { opacity:var(--o,.35); }
  60%  { opacity:var(--o,.35); }
  100% { opacity:0; transform:translateY(-40px) scale(1.1); }
}
.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(255,224,150,.9));
  opacity:0; animation:twinkle var(--d,3.4s) ease-in-out infinite; transform-origin:center;
}
@keyframes twinkle{
  0%,100%{ opacity:0; transform:scale(.3) rotate(0deg); }
  50%    { opacity:1; transform:scale(1) rotate(45deg); }
}

/* ===== การ์ดหลัก ===== */
.card{
  position:relative; z-index:1;
  width:100%; max-width:420px;
  padding:30px 24px 24px;
  text-align:center;
  border-radius:24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(184,95,1,.28), rgba(0,0,0,0) 60%),
    linear-gradient(160deg, #302620 0%, var(--primary-main) 55%, #1c1611 100%);
  border:2px solid var(--neutral);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5),
    0 0 34px rgba(255,202,97,.28),
    0 26px 60px rgba(0,0,0,.6),
    inset 0 2px 10px rgba(255,224,150,.15),
    inset 0 -14px 34px rgba(0,0,0,.45);
  animation:cardIn .8s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes cardIn{ from{ opacity:0; transform:translateY(26px) scale(.97);} to{ opacity:1; transform:none; } }
.card::before{
  content:""; position:absolute; top:0; left:-60%; width:55%; height:100%;
  background:linear-gradient(110deg, transparent, rgba(255,224,150,.18), transparent);
  transform:skewX(-18deg); border-radius:24px; pointer-events:none;
  animation:cardSheen 6s ease-in-out 1.2s infinite;
}
@keyframes cardSheen{ 0%{ left:-60%; } 18%,100%{ left:160%; } }

/* ===== โลโก้ ===== */
.logo-zone{ position:relative; width:min(72%,260px); margin:2px auto 10px; }
.halo{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:92%; height:92%; border-radius:50%; z-index:0;
  background:radial-gradient(circle, rgba(255,224,150,.6) 0%, rgba(255,202,97,.28) 45%, rgba(255,202,97,0) 72%);
  filter:blur(8px); animation:halo 3.4s ease-in-out infinite;
}
@keyframes halo{ 0%,100%{ opacity:.4; transform:translate(-50%,-50%) scale(.92);} 50%{ opacity:.95; transform:translate(-50%,-50%) scale(1.06);} }
.logo{
  position:relative; z-index:1;
  width:100%; height:auto; display:block;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.55));
  animation:floaty 4s ease-in-out infinite, logoIn 1s ease both;
}
.logo-zone .spark{ z-index:2; }
.logo-zone .s1{ width:22px;height:22px; top:-6px;  left:-2px;  --d:3.0s; animation-delay:.2s; }
.logo-zone .s2{ width:16px;height:16px; top:8px;   right:-4px; left:auto; --d:3.6s; animation-delay:1.1s; }
.logo-zone .s3{ width:26px;height:26px; bottom:14px; right:6px; left:auto; --d:3.3s; animation-delay:.6s; }
.logo-zone .s4{ width:15px;height:15px; bottom:24px; left:2px; --d:3.8s; animation-delay:1.6s; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-9px); } }
@keyframes logoIn{ from{ opacity:0; transform:scale(.8) translateY(-10px);} to{ opacity:1; } }

/* ===== ป้ายโปรโมชัน ===== */
.promo{
  display:inline-block; margin:4px 0 8px;
  padding:8px 18px; border-radius:999px;
  font-size:14px; font-weight:700; color:var(--ink); text-decoration:none;
  background:linear-gradient(180deg, var(--gold-hi), var(--neutral) 55%, var(--warning-main));
  box-shadow:0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 #fff6df;
  border:1px solid #fff3cf;
  animation:pulseBadge 2.2s ease-in-out infinite;
}
@keyframes pulseBadge{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.05);} }

.line-id{ font-size:15px; font-weight:500; color:var(--gold-hi); margin:8px 0 18px; }
.line-id b{ color:var(--neutral); }

/* ===== ปุ่ม ===== */
.btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:15px 18px; margin-bottom:13px;
  border:1px solid transparent; border-radius:999px; cursor:pointer;
  font-family:inherit; font-weight:700; font-size:16.5px;
  text-decoration:none; position:relative; overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  animation:btnIn .6s ease both;
}
.btn:nth-of-type(1){ animation-delay:.15s; }
.btn:nth-of-type(2){ animation-delay:.28s; }
.btn:nth-of-type(3){ animation-delay:.41s; }
@keyframes btnIn{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:none;} }
.btn:active{ transform:scale(.98); }
.btn:hover{ transform:translateY(-2px); filter:brightness(1.06); }

/* ปุ่มทอง (CTA หลัก) */
.btn-gold{
  color:var(--ink);
  background:linear-gradient(180deg, var(--gold-hi) 0%, var(--neutral) 45%, var(--warning-main) 100%);
  border-color:#fff3cf;
  box-shadow:0 8px 22px rgba(184,95,1,.45), inset 0 1px 0 #fff6df;
}
/* ปุ่มน้ำตาล→ทอง (สไตล์ปุ่มเข้าสู่ระบบของเว็บ) */
.btn-brown{
  color:var(--white);
  background:linear-gradient(45deg, var(--primary-main) 0%, var(--primary-minor) 100%);
  border-color:rgba(255,202,97,.55);
  box-shadow:0 8px 22px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,224,150,.25);
}
/* ปุ่มชมพู (สไตล์ปุ่มสมัครสมาชิกของเว็บ) */
.btn-pink{
  color:var(--white);
  background:linear-gradient(45deg, var(--third-main) 0%, var(--third-minor) 100%);
  border-color:rgba(255,255,255,.25);
  box-shadow:0 8px 22px rgba(167,28,89,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn::after{
  content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background:linear-gradient(110deg, transparent, rgba(255,255,255,.5), transparent);
  transform:skewX(-20deg); animation:btnShine 4.5s ease-in-out infinite;
}
.btn:hover::after{ animation:none; left:130%; transition:left .6s ease; }
@keyframes btnShine{ 0%{ left:-120%; } 22%,100%{ left:150%; } }

/* ===== ตัวชี้ให้เลื่อนลง ===== */
.scroll-hint{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  margin:16px 0 4px; color:var(--neutral);
  font-size:13px; font-weight:500; letter-spacing:.5px;
  text-shadow:0 1px 6px rgba(0,0,0,.6);
}
.scroll-hint .chev{ font-size:26px; line-height:1; animation:bounce 1.6s ease-in-out infinite; }
@keyframes bounce{ 0%,100%{ transform:translateY(0); opacity:.7; } 50%{ transform:translateY(6px); opacity:1; } }

/* ===== หัวข้อส่วน ===== */
.sec-title{
  margin:22px 0 14px; text-align:center;
  font-size:19px; font-weight:800; letter-spacing:.4px;
  color:var(--gold-hi);
  text-shadow:0 2px 10px rgba(184,95,1,.55), 0 0 2px rgba(0,0,0,.6);
  position:relative;
}
.sec-title::before, .sec-title::after{
  content:""; position:absolute; top:50%; width:34px; height:2px;
  background:linear-gradient(90deg, transparent, var(--neutral));
}
.sec-title::before{ left:6px; transform:scaleX(-1); }
.sec-title::after { right:6px; }

/* ===== แบนเนอร์โปรโมชัน ===== */
.banner{
  display:block; position:relative; overflow:hidden;
  border-radius:18px; margin-bottom:14px;
  border:2px solid var(--neutral);
  background:var(--primary-main);
  box-shadow:0 10px 26px rgba(0,0,0,.55), 0 0 18px rgba(255,202,97,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}
.banner img{ display:block; width:100%; height:auto; }
.banner::after{
  content:""; position:absolute; top:0; left:-130%; width:55%; height:100%;
  background:linear-gradient(110deg, transparent, rgba(255,255,255,.28), transparent);
  transform:skewX(-20deg); pointer-events:none;
  animation:btnShine 5.5s ease-in-out infinite;
}
.banner:hover{
  transform:translateY(-3px) scale(1.015);
  box-shadow:0 16px 34px rgba(0,0,0,.6), 0 0 26px rgba(255,202,97,.4);
}

/* แถวคู่ 2 รูป */
.banner-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.banner-row .banner{ margin-bottom:14px; }

/* ===== ปุ่ม LINE ลอย ===== */
.fab{
  position:fixed; right:16px; bottom:18px; z-index:5;
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 18px; border-radius:999px;
  font-family:inherit; font-weight:700; font-size:15px; text-decoration:none;
  color:var(--white);
  background:linear-gradient(45deg, var(--third-main), var(--third-minor));
  border:1.5px solid var(--neutral);
  box-shadow:0 8px 22px rgba(0,0,0,.5), 0 0 16px rgba(239,73,123,.5);
  animation:fabPulse 2.4s ease-in-out infinite;
}
.fab:active{ transform:scale(.96); }
.fab-ic{ font-size:18px; }
@keyframes fabPulse{ 0%,100%{ box-shadow:0 8px 22px rgba(0,0,0,.5), 0 0 12px rgba(239,73,123,.4);} 50%{ box-shadow:0 8px 22px rgba(0,0,0,.5), 0 0 24px rgba(239,73,123,.85);} }

/* ===== ฟุตเตอร์ ===== */
.footer{
  margin-top:18px; margin-bottom:60px; text-align:center;
  font-size:11px; letter-spacing:.3px;
  color:rgba(255,224,150,.65);
}

/* ===== เอฟเฟกต์ค่อย ๆ โผล่ตอนเลื่อน (ซ่อนเฉพาะตอน JS พร้อม) ===== */
.js .reveal{ opacity:0; transform:translateY(26px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.8,.25,1); }
.js .reveal.in{ opacity:1; transform:none; }

@media (max-width:360px){
  .fab-tx{ display:none; }
  .fab{ padding:14px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; }
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}
