/* สไตล์ปุ่มเติมเงิน / ยอดเงิน / ไอคอน — ตั้งค่าที่หลังบ้าน → ແຕ່ງໜ້າເວັບ
   ใช้ทั้งหน้าแรก (.hm-hero) และตัวอย่างในหลังบ้าน (.sd-scope) */

.sd-emo{display:inline-block; font-size:1.15em; line-height:1; font-style:normal;}
.sd-icimg{width:1.35em; height:1.35em; object-fit:contain; border-radius:6px; display:inline-block;}
.wallet-add .sd-emo, .wallet-add .sd-icimg{font-size:15px;}
.bn-fab .sd-emo{font-size:26px;} .bn-fab .sd-icimg{width:30px; height:30px;}

/* ---------- ปุ่มเติมเงิน: สไตล์ ---------- */
:is(.hm-hero,.sd-scope) .sd-tu{position:relative; overflow:hidden; isolation:isolate;}
:is(.hm-hero,.sd-scope) .sd-tu.tu-white{background:linear-gradient(135deg,#fff 0%,#fff0f7 100%); color:var(--sea-2);}
:is(.hm-hero,.sd-scope) .sd-tu.tu-gradient{background:var(--sea-grad); color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.7), var(--sea-glow);}
:is(.hm-hero,.sd-scope) .sd-tu.tu-candy{
  background:repeating-linear-gradient(-45deg,#fff 0 10px,#ffe4f1 10px 20px); color:var(--sea-2);
  box-shadow:0 0 0 3px #fff, 0 0 0 5px rgba(var(--sea-rgb),.45), 0 8px 18px rgba(0,0,0,.18);
}
:is(.hm-hero,.sd-scope) .sd-tu.tu-glass{background:rgba(255,255,255,.18); color:#fff; border:1.5px solid rgba(255,255,255,.65);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 8px 22px rgba(0,0,0,.18);}
:is(.hm-hero,.sd-scope) .sd-tu.tu-gold{background:linear-gradient(135deg,#fff7d6 0%,#fcd34d 45%,#f59e0b 100%); color:#7c2d12;
  box-shadow:0 0 0 2px rgba(255,255,255,.8), 0 8px 22px rgba(217,119,6,.4);}
@keyframes sdCandy{to{background-position:56px 0;}}

/* ---------- ปุ่มเติมเงิน: แอนิเมชัน ---------- */
:is(.hm-hero,.sd-scope) .sd-tu.ta-none{animation:none;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-pulse{animation:topupPulse 2s ease-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-bounce{animation:sdBounce 1.6s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-wiggle{animation:sdWiggle 2.6s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-heartbeat{animation:sdBeat 1.4s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-shine{animation:none;}
:is(.hm-hero,.sd-scope) .sd-tu.ta-shine::after{content:''; position:absolute; top:-20%; bottom:-20%; width:40%; left:-60%; z-index:-1;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.75),transparent); transform:skewX(-18deg); animation:sdShine 2.8s ease-in-out infinite;}
/* candy ใช้ animation หลายตัว */
:is(.hm-hero,.sd-scope) .sd-tu.tu-candy.ta-bounce{animation:sdCandy 1.2s linear infinite, sdBounce 1.6s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.tu-candy.ta-wiggle{animation:sdCandy 1.2s linear infinite, sdWiggle 2.6s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.tu-candy.ta-heartbeat{animation:sdCandy 1.2s linear infinite, sdBeat 1.4s ease-in-out infinite;}
:is(.hm-hero,.sd-scope) .sd-tu.tu-candy:is(.ta-none,.ta-shine,.ta-pulse){animation:sdCandy 1.2s linear infinite;}
@keyframes sdBounce{0%,100%{transform:translateY(0);} 30%{transform:translateY(-6px);} 50%{transform:translateY(0);} 65%{transform:translateY(-2px);}}
@keyframes sdWiggle{0%,60%,100%{transform:rotate(0);} 65%{transform:rotate(-6deg) scale(1.04);} 72%{transform:rotate(6deg) scale(1.04);} 79%{transform:rotate(-4deg);} 86%{transform:rotate(3deg);}}
@keyframes sdBeat{0%,40%,100%{transform:scale(1);} 15%{transform:scale(1.09);} 28%{transform:scale(1.02);} 32%{transform:scale(1.07);}}
@keyframes sdShine{0%{left:-60%;} 55%,100%{left:130%;}}
@keyframes topupPulse{
  0%{box-shadow:0 0 0 0 rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.2);}
  70%{box-shadow:0 0 0 12px rgba(255,255,255,0), 0 6px 16px rgba(0,0,0,.2);}
  100%{box-shadow:0 0 0 0 rgba(255,255,255,0), 0 6px 16px rgba(0,0,0,.2);}
}

/* ---------- ยอดเงิน ---------- */
.sd-bal{display:flex; align-items:center; gap:10px; color:#fff; font-size:12px; min-width:0;}
.sd-bal .bl-txt{display:flex; flex-direction:column; line-height:1.2; color:rgba(255,255,255,.88);}
.sd-bal .bl-num{display:flex; align-items:center; gap:6px; font-size:20px; font-weight:900; color:#fff; font-variant-numeric:tabular-nums;}
.sd-bal .bl-coin{display:none; width:40px; height:40px; border-radius:50%; align-items:center; justify-content:center; font-size:20px; font-weight:900; flex-shrink:0;}
.sd-bal .bl-eye{width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px;
  background:rgba(255,255,255,.2); color:inherit; border:none; cursor:pointer; padding:0;}
.sd-bal.is-hidden .bl-val{letter-spacing:2px;}
.sd-bal.bs-card{padding:8px 14px 8px 8px; border-radius:18px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 8px 20px rgba(0,0,0,.12);}
.sd-bal.bs-card .bl-coin{display:flex; background:linear-gradient(135deg,#fff,#ffe4f1); color:var(--sea-2); box-shadow:0 4px 10px rgba(0,0,0,.15);
  animation:sdCoin 3.2s ease-in-out infinite;}
.sd-bal.bs-pill{padding:6px 16px 6px 6px; border-radius:999px; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.15);}
.sd-bal.bs-pill .bl-coin{display:flex; width:36px; height:36px; background:var(--sea-grad); color:#fff; font-size:17px; animation:sdCoin 3.2s ease-in-out infinite;}
.sd-bal.bs-pill .bl-txt{color:var(--muted);}
.sd-bal.bs-pill .bl-num{color:var(--sea-2); font-size:18px;}
.sd-bal.bs-pill .bl-eye{background:rgba(var(--sea-rgb),.12); color:var(--sea-2);}
@keyframes sdCoin{0%,70%,100%{transform:rotateY(0);} 85%{transform:rotateY(180deg);}}
.sd-bal .bl-val.pop{animation:sdPop .35s ease;}
@keyframes sdPop{50%{transform:scale(1.15);}}

/* ---------- แสดงเฉพาะรูป ---------- */
.hm-hero.img-only{aspect-ratio:var(--hm-ratio, 16/9); padding:0 !important; display:flex; flex-direction:column; justify-content:flex-end;}
.hm-hero.img-only > .hm-eyebrow, .hm-hero.img-only > h1, .hm-hero.img-only > p{display:none;}
.hm-hero.img-only .hm-hero-row{margin:0; padding:14px 16px 30px; background:linear-gradient(180deg,transparent,rgba(0,0,0,.35));}
.hm-hero.img-only .hm-hero-row:empty{display:none;}

/* ---------- ลูกเล่น ---------- */
.sd-fx-layer{position:fixed; inset:0; pointer-events:none; z-index:2147483000; overflow:hidden;}
.sd-fx-p{position:absolute; left:0; top:0; will-change:transform,opacity; line-height:1; user-select:none;}
.sd-fx-float{position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; border-radius:inherit;}
.sd-fx-float .sd-fx-p{top:auto;}
.sd-jelly{animation:sdJelly .45s ease !important;}
@keyframes sdJelly{0%{transform:scale(1,1);} 25%{transform:scale(.9,1.08);} 50%{transform:scale(1.07,.93);} 75%{transform:scale(.97,1.03);} 100%{transform:scale(1,1);}}

@media (prefers-reduced-motion: reduce){
  .sd-tu, .sd-tu::after, .sd-bal .bl-coin{animation:none !important;}
}
