/* =========================
FILE: styles.css
All blocks (1–6) — Mobile layout + Kanit
ล็อกเป็นขนาดมือถือ: ทุกขนาดอิงความกว้างคอลัมน์ .app (สูงสุด 430px) ผ่านหน่วย cqw
บนจอคอมจะเห็นเป็นคอลัมน์มือถือกลางจอ
========================= */

:root{
  /* ธีม UFAB13 (ดำ-ทอง ตามหน้าเว็บ ufab13.com "GOLDEN LUXURY SPORTS") — เปลี่ยนสีเรืองทั้งหน้าได้ที่ 3 ค่านี้ (R G B) */
  --c1: 230 176 60;   /* ทอง #e6b03c — เรืองหลัก ขอบการ์ด */
  --c2: 255 214 102;  /* ทองอ่อน #ffd666 — เรืองรอง */
  --c3: 168 112 24;   /* ทองเข้ม/บรอนซ์ #a87018 — แสงเสริม */

  --white:#ffffff;
  --text:#fbf5e8;
  --panel:       rgba(14, 11, 6, 0.9);
  --panel-soft:  rgba(14, 11, 6, 0.7);
  --grad-text: linear-gradient(120deg, #ffe680, #ffc800 50%, #fff3b0);

  /* ความกว้างสูงสุดของคอลัมน์มือถือ */
  --app-w: 430px;

  /* ความชัดของรูปพื้นหลัง (0–1) */
  --bg-img-op: 0.5;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ background:#0a0805; }

body{
  min-height:100vh;
  font-family:"Kanit",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--white);
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
}

/* ===== Fixed Background Layer — พื้นหลังของ UFAB13 เต็มจอ (นิ่งตอนเลื่อน) ===== */
.bg-layer{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:linear-gradient(180deg, #0a0805, #1a1408 45%, #0a0805);
  transform:translateZ(0);
}
/* รูปพื้นหลัง (bgImage ของ ufab13.com สนามบอลสีทอง) */
.bg-layer::before{
  content:"";
  position:absolute;
  inset:-6px;
  background:url("assets/ufab/bg.webp") center 45%/cover no-repeat;
  opacity:var(--bg-img-op);
  filter:blur(2px) saturate(1.1);
}
/* แสงทองรอบขอบ + ขอบมืด */
.bg-layer::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 36%, rgba(0,0,0,.4)),
    radial-gradient(520px 380px at 8% -4%, rgb(var(--c1) / .34), transparent 62%),
    radial-gradient(460px 340px at 96% 8%, rgb(var(--c2) / .16), transparent 60%),
    radial-gradient(620px 460px at 50% 106%, rgb(var(--c3) / .34), transparent 65%),
    radial-gradient(700px 520px at 50% 45%, rgb(var(--c1) / .10), transparent 70%);
}
/* จอใหญ่ (แท็บเล็ต/คอม): รูปพื้นหลังความละเอียดสูง + แสงรอบขอบขนาดเท่าเว็บหลัก — เนื้อหายังเป็นคอลัมน์มือถือกลางจอ */
@media (min-width: 768px){
  .bg-layer::before{ background-image:url("assets/ufab/bg-1600.webp"); }
  .bg-layer::after{
    background:
      radial-gradient(ellipse at 50% 45%, transparent 36%, rgba(0,0,0,.4)),
      radial-gradient(900px 600px at 12% -5%, rgb(var(--c1) / .34), transparent 62%),
      radial-gradient(800px 560px at 95% 8%, rgb(var(--c2) / .16), transparent 60%),
      radial-gradient(1000px 700px at 50% 108%, rgb(var(--c3) / .34), transparent 65%),
      radial-gradient(1200px 800px at 50% 45%, rgb(var(--c1) / .10), transparent 70%);
  }
}

/* Mobile column */
.app{
  position:relative;
  z-index:1;
  width:min(100%, var(--app-w));
  margin:0 auto;
  container-type:inline-size;
}

/* Content layer */
.site{
  width:92cqw;
  margin:0 auto;
  padding: clamp(14px, 3.2cqw, 28px) 0 clamp(24px, 4cqw, 44px);
  display:flex;
  flex-direction:column;
  gap: clamp(12px, 2.5cqw, 18px);
}

.blk{ width:100%; background:transparent; }

/* =========================
BLOCK 1 — Logo
========================= */
.logo-stage{
  width:100%;
  display:flex;
  justify-content:center;
  padding:0;
}
.logo-link{ display:inline-block; line-height:0; text-decoration:none; }
.brand-logo{
  width:90cqw;
  height:auto;
  display:block;
  object-fit:contain;
  filter:
    drop-shadow(0 0 14px rgb(var(--c2) / .45))
    drop-shadow(0 0 24px rgb(var(--c1) / .35))
    drop-shadow(0 6px 18px rgba(0,0,0,.35));
  animation: glow 2.8s ease-in-out infinite, floaty 3s ease-in-out infinite;
  will-change: transform, filter;
  transform: translateZ(0);
}
@keyframes glow{
  0%,100%{
    filter:
      drop-shadow(0 0 12px rgb(var(--c2) / .38))
      drop-shadow(0 0 22px rgb(var(--c1) / .30))
      drop-shadow(0 6px 18px rgba(0,0,0,.35));
  }
  50%{
    filter:
      drop-shadow(0 0 22px rgb(var(--c2) / .9))
      drop-shadow(0 0 38px rgb(var(--c1) / .7))
      drop-shadow(0 6px 18px rgba(0,0,0,.35));
  }
}
@keyframes floaty{
  0%,100%{ transform: translateY(0) translateZ(0); }
  50%{    transform: translateY(-16px) translateZ(0); }
}
.logo-link:focus-visible{
  outline:2px solid rgb(var(--c2));
  outline-offset:6px;
  border-radius:12px;
}

/* =========================
BLOCK 2 — Enter button image
========================= */
.enter-stage{ display:flex; justify-content:center; }
.enter-link{
  position:relative;
  display:inline-block;
  width:100%;
  border-radius:22px;
  overflow:hidden;
  text-decoration:none;
  line-height:0;
  transform:translateZ(0);
  box-shadow:
    0 14px 36px rgba(0,0,0,.35),
    0 0 22px rgb(var(--c1) / .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.enter-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}
.enter-shine{
  position:absolute;
  inset:-40% -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-60%) rotate(8deg);
  opacity:0;
  pointer-events:none;
}
.enter-link:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 18px 44px rgba(0,0,0,.42),
    0 0 34px rgb(var(--c2) / .35),
    0 0 28px rgb(var(--c1) / .45);
  filter:saturate(1.05) brightness(1.02);
}
.enter-link:hover .enter-shine{
  opacity:1;
  animation: shine 1.1s ease-in-out forwards;
}
.enter-link:active{ transform: translateY(0px) scale(.995); }
@keyframes shine{
  0%{ transform: translateX(-70%) rotate(8deg); }
  100%{ transform: translateX(70%) rotate(8deg); }
}
/* จอสัมผัสไม่มี hover: ให้แสงวิ่งผ่านปุ่มเองทุก 3.6 วินาที (กวาด 1.1 วิ แล้วพัก) */
@media (hover: none){
  .enter-shine{
    opacity:1;
    animation: shineLoop 3.6s ease-in-out infinite;
  }
  .enter-link:hover{
    transform:none;
    box-shadow:
      0 14px 36px rgba(0,0,0,.35),
      0 0 22px rgb(var(--c1) / .35);
    filter:none;
  }
  .enter-link:hover .enter-shine{ animation: shineLoop 3.6s ease-in-out infinite; }
  .enter-link:active{ transform: scale(.985); }
}
@keyframes shineLoop{
  0%{ transform: translateX(-70%) rotate(8deg); }
  30.5%,100%{ transform: translateX(70%) rotate(8deg); }
}

/* =========================
JACKPOT — ป้ายกระจกสไตล์ iOS + ตัวเลขไหล
สีทั้งหมดอ่านจาก --c1 / --c2 จึงเข้ากับทุกธีม
========================= */
.jackpot-wrap{
  /* เงาขอบในของกระจก (ใช้ซ้ำใน hover / ตอนถึงยอดสูงสุด) */
  --jp-inset:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -1px 0 rgba(255,255,255,.1),
    inset 0 0 22px rgba(255,255,255,.05);
  --jp-shadow:
    0 12px 32px rgba(0,0,0,.38),
    0 0 26px rgb(var(--c1) / .22);

  position:relative;
  display:block;
  isolation:isolate;
  overflow:hidden;
  border-radius:26px;
  padding:12px 14px 14px;
  text-decoration:none;
  color:var(--white);
  background:
    radial-gradient(120% 90% at 50% -20%, rgb(var(--c2) / .22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.07) 55%, rgba(255,255,255,.1)),
    rgb(var(--c1) / .08);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  border:1px solid rgba(255,255,255,.22);
  box-shadow: var(--jp-inset), var(--jp-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
/* เงาสะท้อนครึ่งบนแบบกระจก */
.jackpot-wrap::before{
  content:"";
  position:absolute;
  inset:1px 1px 50% 1px;
  z-index:-1;
  border-radius:25px 25px 50% 50% / 25px 25px 20px 20px;
  background:linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.02));
  pointer-events:none;
}
/* แสงสะท้อนวิ่งผ่านกระจกทุก 5.5 วินาที */
.jackpot-wrap::after{
  content:"";
  position:absolute;
  top:-60%;
  bottom:-60%;
  left:0;
  width:38%;
  z-index:1;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform:translateX(-160%) rotate(18deg);
  animation: jpSheen 5.5s ease-in-out infinite;
  pointer-events:none;
}
@keyframes jpSheen{
  0%{ transform:translateX(-160%) rotate(18deg); }
  35%,100%{ transform:translateX(340%) rotate(18deg); }
}

.jackpot-wrap:hover{
  transform: translateY(-2px);
  box-shadow: var(--jp-inset), 0 16px 40px rgba(0,0,0,.45), 0 0 34px rgb(var(--c1) / .38);
}
@media (hover: none){
  .jackpot-wrap:hover{
    transform:none;
    box-shadow: var(--jp-inset), var(--jp-shadow);
  }
  .jackpot-wrap:active{ transform: scale(.985); }
}

.jp-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.jp-title{
  font-weight:800;
  font-style:italic;
  font-size:clamp(22px, 7cqw, 30px);
  letter-spacing:.14em;
  line-height:1.15;
  padding-right:.1em;
  background:linear-gradient(180deg, #ffffff 0%, rgb(var(--c2)) 55%, rgb(var(--c1)) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:
    drop-shadow(0 0 6px rgb(var(--c2) / .55))
    drop-shadow(0 0 14px rgb(var(--c1) / .35));
  animation: jpTitle 2.4s ease-in-out infinite;
}
@keyframes jpTitle{
  0%,100%{ filter: drop-shadow(0 0 6px rgb(var(--c2) / .5)) drop-shadow(0 0 14px rgb(var(--c1) / .3)); }
  50%{    filter: drop-shadow(0 0 10px rgb(var(--c2) / .95)) drop-shadow(0 0 24px rgb(var(--c1) / .7)); }
}
.jp-star{
  width:18px; height:18px;
  fill:rgb(var(--c2));
  filter: drop-shadow(0 0 6px rgb(var(--c2) / .9));
  animation: jpTwinkle 1.6s ease-in-out infinite;
}
.jp-star:last-child{ animation-delay:.8s; }
@keyframes jpTwinkle{
  0%,100%{ transform:scale(.75) rotate(0deg); opacity:.6; }
  50%{    transform:scale(1.1) rotate(72deg); opacity:1; }
}

/* ตัวเลขอยู่ในช่องกระจกเว้าลึก */
.jp-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  margin:6px auto 0;
  padding:2px 16px;
  border-radius:18px;
  background:rgba(0,0,0,.24);
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,.4),
    inset 0 -1px 0 rgba(255,255,255,.12);
  font-weight:700;
  font-size:clamp(32px, 11cqw, 48px);
  line-height:1;
  color:#fff;
  transition: color .3s ease;
}
.jp-cur,
.jp-digits{
  filter:
    drop-shadow(0 1px 1px rgba(0,0,0,.35))
    drop-shadow(0 0 10px rgb(var(--c1) / .55));
}
.jp-cur{
  font-size:.62em;
  color:rgb(var(--c2));
  margin-right:.2em;
}
.jp-digits{ display:inline-flex; align-items:center; }

/* หนึ่งช่อง = ตัวเลขหนึ่งตัว กว้างเท่ากันทุกช่อง (ตัวเลขไม่ขยับซ้ายขวา และไม่มีวันทับกัน)
   script.js วัดตัวเลขที่กว้างที่สุดของฟอนต์จริงแล้วใส่ --jp-cw / --jp-sw ให้ (Kanit ตัวหนา เลข 0 กว้าง ~.67em) */
.jp-cell{
  display:inline-block;
  width:var(--jp-cw, .72em);
  height:1.4em;
  line-height:1.4em;
  overflow:hidden;
  text-align:center;
  transition: width .4s ease, opacity .4s ease;
}
.jp-sep{
  display:inline-block;
  width:var(--jp-sw, .3em);
  height:1.4em;
  line-height:1.4em;
  overflow:hidden;
  text-align:center;
  transition: width .4s ease, opacity .4s ease;
}
.jp-cell.is-off,
.jp-sep.is-off{ width:0; opacity:0; }

/* ถึงยอดสูงสุด: กระจกเรืองตามสีธีม แล้วตัวเลขค่อยๆ กลับมาที่ค่าเริ่มต้น */
.jackpot-wrap.is-hit{ animation: jpHit .6s ease-in-out 3; }
.jackpot-wrap.is-hit .jp-num{ color:rgb(var(--c2)); }
@keyframes jpHit{
  0%,100%{
    box-shadow: var(--jp-inset), var(--jp-shadow);
    transform: scale(1);
  }
  50%{
    box-shadow: var(--jp-inset), 0 12px 32px rgba(0,0,0,.38), 0 0 34px rgb(var(--c2) / .9), 0 0 64px rgb(var(--c1) / .7);
    transform: scale(1.02);
  }
}
.jp-num.is-reset .jp-digits{ animation: jpIn .5s ease-out; }
@keyframes jpIn{
  from{ opacity:0; transform:translateY(8px); }
  to{   opacity:1; transform:none; }
}

/* ----- JACKPOT แบบกรอบรูป (config.js → jackpot.skin: "image") -----
   ตัวเลขวางในช่องแดงของ assets/ufab/jackpot-frame.webp (1085×363 กรอบเดียวกับ ufaza789) */
.jackpot-wrap.jp-skin-image{
  aspect-ratio:1085 / 363;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  margin:0 -4cqw; /* กรอบเต็มความกว้างคอลัมน์ */
  background:url("assets/ufab/jackpot-frame.webp") center/100% 100% no-repeat;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:none;
  animation: jpFrameGlow 2.8s ease-in-out infinite;
}
.jackpot-wrap.jp-skin-image:hover{ box-shadow:none; }
.jp-skin-image::before,
.jp-skin-image::after,
.jp-skin-image .jp-head{ display:none; }
@keyframes jpFrameGlow{
  0%,100%{ filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgb(var(--c2) / .25)); }
  50%{    filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgb(var(--c2) / .6)); }
}

/* ช่องตัวเลข = ช่องแดงในรูป */
.jp-skin-image .jp-num{
  position:absolute;
  left:10.5%;
  right:10.5%;
  top:42.5%;
  height:35%;
  width:auto;
  margin:0;
  padding:0;
  border-radius:14px / 40%;
  background:none;
  box-shadow:none;
  overflow:hidden;
  font-size:8cqw;
  font-weight:800;
}
/* ตัวเลขทองไล่เฉด — สีตายตัวให้เข้ากับกรอบรูปแดง-ทอง (เหมือน ufaza789) ไม่ตามสีธีม */
.jp-skin-image .jp-cell,
.jp-skin-image .jp-sep,
.jp-skin-image .jp-cur{
  background:linear-gradient(180deg, #ffffff 12%, #f5c518 48%, #ff8a00 88%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.jp-skin-image .jp-cur,
.jp-skin-image .jp-digits{
  filter:
    drop-shadow(0 2px 0 rgba(80,10,0,.9))
    drop-shadow(0 0 8px rgb(var(--c2) / .55));
}
/* แสงวิ่งผ่านช่องแดงทุก 4.5 วินาที */
.jp-skin-image .jp-num::after{
  content:"";
  position:absolute;
  top:-50%;
  bottom:-50%;
  left:0;
  width:30%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform:translateX(-160%) skewX(-18deg);
  animation: jpPanelSheen 4.5s ease-in-out infinite;
  pointer-events:none;
}
@keyframes jpPanelSheen{
  0%{ transform:translateX(-160%) skewX(-18deg); }
  40%,100%{ transform:translateX(460%) skewX(-18deg); }
}
/* ถึงยอดสูงสุด: กรอบเรืองแรง + ขยายเล็กน้อย */
.jackpot-wrap.jp-skin-image.is-hit{ animation: jpHitImg .6s ease-in-out 3; }
@keyframes jpHitImg{
  0%,100%{ transform:scale(1);    filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgb(var(--c2) / .3)); }
  50%{    transform:scale(1.03); filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) drop-shadow(0 0 26px rgb(var(--c2) / .95)); }
}

/* =========================
BLOCK 3 — Promotion + Carousel
========================= */
.promo-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  position:relative;
  z-index:0;
}

/* Promotion */
.promo-flicker-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0;
  margin:0;
  background:transparent;
}
.promo-flicker-text{
  margin:0 !important;
  padding:0;
  font-weight:800;
  font-size:clamp(20px,4.4cqw,32px);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff6df;
  text-align:center;
  display:inline-block;
  font-style: italic;
  text-shadow:
    0 0 4px  rgb(var(--c1)),
    0 0 10px rgb(var(--c1)),
    0 0 18px rgb(var(--c2)),
    0 0 28px #ffe08a;
  animation:promoFlicker 3.6s infinite steps(1,end);
}
@keyframes promoFlicker{
  0%{opacity:.15;text-shadow:none;}
  3%{opacity:1;}
  7%{opacity:.4;}
  10%{opacity:1;}
  13%{opacity:.2;}
  15%{opacity:1;}
  19%{opacity:.1;text-shadow:none;}
  22%{opacity:1;}
  28%{opacity:.35;}
  32%{opacity:1;}
  60%{opacity:1;}
  70%{opacity:.5;}
  78%{opacity:1;}
  86%{opacity:.3;}
  92%{opacity:1;}
  100%{opacity:.85;}
}

/* Carousel (3 การ์ด หมุนแบบ 3D) */
.mono-showcase-container{
  width:100%;
  display:flex;
  justify-content:center;
  padding:0;
  margin:0;
  background:transparent;
}
.mono-showcase-wrap{ position:relative; display:inline-block; max-width:100%; }
.mono-showcase-stage{
  position:relative;
  width:100cqw;
  height:clamp(300px, 92cqw, 520px);
  overflow-x:clip; /* การ์ดข้างล้นขอบคอลัมน์ — ตัดเฉพาะตรงนี้ แสงเรืองส่วนอื่นจะได้ไม่โดนตัด */
  overflow-y:visible;
  perspective:1200px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
}

.mono-showcase-card{
  position:absolute;
  top:54%;
  left:50%;
  width:72cqw;
  transform-style:preserve-3d;
  transition:transform .6s ease,opacity .6s ease,filter .6s ease;
}
.mono-card-link{ display:block; text-decoration:none; }
.mono-card-inner{
  position:relative;
  isolation:isolate;
  border-radius:18px;
  overflow:hidden;
  background:rgba(0,0,0,.25);
  aspect-ratio:1/1; /* การ์ด 1:1 */
  box-shadow:
    0 10px 26px rgba(0,0,0,.65),
    0 0 10px rgb(var(--c1) / .75);
}
/* เส้นแสงวิ่งรอบขอบ — แสดงเฉพาะการ์ดกลาง (ภาพเว้นขอบ 3px ให้เห็นเส้น) */
.mono-card-inner::before{
  content:"";
  position:absolute;
  inset:-50%;
  z-index:-1;
  background:conic-gradient(
    rgb(var(--c1) / .18) 0deg, rgb(var(--c2)) 38deg, #fff6c9 50deg, rgb(var(--c1) / .18) 96deg,
    rgb(var(--c1) / .18) 180deg, rgb(var(--c1)) 218deg, #ffe08a 230deg, rgb(var(--c1) / .18) 276deg);
  opacity:0;
  transition:opacity .6s ease;
  animation:monoBorderRun 3s linear infinite;
}
.mono-pos-center .mono-card-inner::before{ opacity:1; }
.mono-card-img{
  position:relative;
  width:calc(100% - 6px);
  height:calc(100% - 6px);
  margin:3px;
  border-radius:15px;
  display:block;
  object-fit:contain;
}

.mono-pos-center{
  transform:translate(-50%,-50%) scale(.98) rotateY(0deg);
  opacity:1; z-index:3; filter:brightness(1.05);
}
.mono-pos-left{
  transform:translate(-98%,-50%) scale(.56) rotateY(16deg);
  opacity:.65; z-index:2; filter:brightness(.9) saturate(.95);
}
.mono-pos-right{
  transform:translate(-2%,-50%) scale(.56) rotateY(-16deg);
  opacity:.65; z-index:2; filter:brightness(.9) saturate(.95);
}

.mono-pos-center .mono-card-inner{
  animation:monoCenterFloat 5.8s ease-in-out infinite;
  box-shadow:
    0 12px 30px rgba(0,0,0,.7),
    0 0 18px rgb(var(--c1) / .6);
}
.mono-pos-left .mono-card-inner,
.mono-pos-right .mono-card-inner{ animation:monoSideFloat 6.4s ease-in-out infinite; }

.mono-showcase-dots{
  position:absolute;
  bottom:8px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}
.mono-dot{
  width:6px; height:6px; border-radius:999px;
  background:rgba(255,255,255,.25);
  transition:width .3s ease,background .3s ease;
}
.mono-dot-active{
  width:16px;
  background:linear-gradient(90deg, rgb(var(--c1)), rgb(var(--c2)));
}

@keyframes monoCenterFloat{ 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }
@keyframes monoBorderRun{ to{ transform:rotate(360deg); } }
@keyframes monoSideFloat{ 0%{transform:translateY(0)} 50%{transform:translateY(-4px)} 100%{transform:translateY(0)} }

/* =========================
BLOCK 4 — Feature cards
========================= */
.feat-section{
  padding:18px 10px 22px;
  background:transparent;
}
.feat-inner{ margin:0 auto; }
.feat-heading{
  text-align:center;
  font-size:clamp(20px,3cqw,28px);
  font-weight:700;
  margin:0 0 clamp(8px,2.2cqw,14px);
  text-shadow:0 0 10px rgb(var(--c1) / 0.9), 0 0 20px rgb(var(--c2) / 0.75);
}
.feat-heading span{
  background:var(--grad-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.feat-subheading{
  text-align:center;
  font-size:clamp(13px,2.2cqw,15px);
  color:#e6dcc4;
  opacity:.95;
  margin:0 0 clamp(14px,2.4cqw,18px);
}
.nowrap{ white-space:nowrap; }

/* แถวไอคอน 3 ช่อง */
.feat-grid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(3, 1fr);
}

@keyframes featFlicker {
  0%{ box-shadow:0 0 18px rgb(var(--c1) / 0.7); border-color:rgb(var(--c1) / 1); }
  8%{ box-shadow:0 0 4px rgb(var(--c1) / 0.2); border-color:rgb(var(--c1) / 0.35); }
  12%{ box-shadow:0 0 22px rgb(var(--c2) / 0.9); border-color:rgb(var(--c2) / 1); }
  20%{ box-shadow:0 0 0 rgba(0,0,0,0); border-color:rgb(var(--c1) / 0.2); }
  30%{ box-shadow:0 0 20px rgb(var(--c1) / 0.8); border-color:rgb(var(--c1) / 0.9); }
  45%{ box-shadow:0 0 6px rgb(var(--c2) / 0.35); border-color:rgb(var(--c2) / 0.5); }
  55%{ box-shadow:0 0 24px rgb(var(--c1) / 1); border-color:rgb(var(--c1) / 1); }
  70%{ box-shadow:0 0 10px rgb(var(--c1) / 0.45); border-color:rgb(var(--c1) / 0.7); }
  100%{ box-shadow:0 0 18px rgb(var(--c1) / 0.8); border-color:rgb(var(--c1) / 0.9); }
}

.feat-card{
  position:relative;
  display:block;
  text-decoration:none;
  color:var(--text);
  background:var(--panel);
  border-radius:18px;
  padding:14px 6px 12px;
  border:1px solid rgb(var(--c1) / 0.8);
  box-shadow:0 0 18px rgba(0, 0, 0, 0.6);
  overflow:hidden;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  animation:featFlicker 3s infinite ease-in-out;
}
.feat-card:nth-child(2){ animation-delay:.7s; }
.feat-card:nth-child(3){ animation-delay:1.3s; }

.feat-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:
    radial-gradient(circle at 10% 0%,rgb(var(--c2) / 0.30) 0,transparent 55%),
    radial-gradient(circle at 90% 100%,rgb(var(--c3) / 0.20) 0,transparent 55%);
  opacity:.7;
  pointer-events:none;
  z-index:1;
}
.feat-card:hover{
  transform:translateY(-4px);
  background:var(--panel-soft);
  box-shadow:0 0 24px rgb(var(--c1) / 0.9), 0 0 40px rgb(var(--c2) / 0.75);
}
.feat-card-inner{ position:relative; z-index:2; text-align:center; }
.feat-card-title{
  font-size:14px;
  font-weight:600;
  line-height:1.25;
  margin-bottom:4px;
  background:var(--grad-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.feat-card-desc{ font-size:11.5px; line-height:1.4; color:#e6dcc4; margin:0; }

/* ไอคอนแบบแอป iOS — ไล่สีตามธีม (--c2 → --c1) */
.feat-card-icon{
  position:relative;
  width:58px; height:58px;
  margin:0 auto 10px;
  border-radius:16px;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, rgb(var(--c2)) 0%, rgb(var(--c1)) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -3px 6px rgba(0,0,0,.22),
    0 6px 14px rgba(0,0,0,.45),
    0 0 16px rgb(var(--c1) / .45);
  animation: featIconBob 3.2s ease-in-out infinite;
}
.feat-card:nth-child(2) .feat-card-icon{ animation-delay:.4s; }
.feat-card:nth-child(3) .feat-card-icon{ animation-delay:.8s; }
/* เงาสะท้อนครึ่งบน */
.feat-card-icon::before{
  content:"";
  position:absolute;
  inset:0 0 48% 0;
  border-radius:16px 16px 50% 50% / 16px 16px 12px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.05));
}
.feat-card-icon svg{
  position:relative;
  width:30px; height:30px;
  fill:none;
  stroke:rgb(0 0 0 / .78);
  stroke-width:2;
  stroke-linecap:round; stroke-linejoin:round;
}
@keyframes featIconBob{
  0%,100%{ transform:translateY(0); }
  50%{    transform:translateY(-3px); }
}

/* =========================
BLOCK 5 — Banner swap
========================= */
.banner-wrap{
  display:block;
  width:100%;
  border-radius:22px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:
    0 14px 34px rgba(0,0,0,.35),
    0 0 18px rgb(var(--c1) / .28);
}
.banner-img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.banner-wrap:hover .banner-img{
  filter:saturate(1.05) brightness(1.02);
  transform:scale(1.005);
}

/* =========================
BLOCK 6 — Logo + text
========================= */
.about-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--white);
  padding: clamp(14px, 3cqw, 22px);
  border-radius:22px;
  background: rgba(14, 11, 6, .38);
  border: 1px solid rgb(var(--c1) / .35);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.about-logo{
  width: clamp(180px, 48cqw, 520px);
  max-width: 92cqw;
  height:auto;
  display:block;
  object-fit:contain;
  filter: drop-shadow(0 0 18px rgb(var(--c1) / .35));
}
.about-title{
  margin:0;
  font-size: clamp(18px, 3.2cqw, 26px);
  font-weight:800;
  letter-spacing:.06em;
  background:var(--grad-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-align:center;
}
.about-desc{
  margin:0;
  font-size: clamp(13px, 2.6cqw, 16px);
  line-height:1.65;
  color:var(--text);
  text-align:center;
  opacity:.95;
  text-shadow:0 0 12px rgba(0,0,0,.18);
}
