/* =============================================
✨ Winlaos168 — Premium Glow V2 (Soft Gold Aura)
By JR x Top | Inspired by Winlaos UI
============================================= */

/* 🌌 พื้นหลังรวม */
body {
  background: radial-gradient(1000px at 50% -10%, rgba(255, 210, 50, 0.12), transparent 70%),
              linear-gradient(180deg, #070707 0%, #0b0a09 50%, #000000 100%);
  font-family: 'Kanit', 'Noto Sans Lao', sans-serif;
  overflow-x: hidden;
  color: #fff;
}

/* 🌟 เอฟเฟกต์ทองเรืองแบบภาพ */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.9); }
}

@keyframes textShine {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
  50% { text-shadow: 0 0 25px rgba(255, 215, 0, 0.85); }
}

/* ✨ เงาเรืองรอบกรอบปุ่ม */
button, .popup-btn, .gold-btn {
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.03));
  color: #ffd700;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px 22px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 215, 0, 0.15);
  animation: goldPulse 3s ease-in-out infinite;
  transition: all 0.25s ease;
}

button:hover, .popup-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.85);
}

/* 💫 เอฟเฟกต์เส้นทองวิ่งผ่าน (reflection move) */
button::before, .popup-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,200,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: reflectionMove 5s infinite;
}

@keyframes reflectionMove {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* 🧱 กล่องข้อมูล / stat */
.gbox, .stat-box {
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.02));
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.12), 0 0 30px rgba(255, 215, 0, 0.08);
  border-radius: 16px;
  animation: goldPulse 4s ease-in-out infinite;
}

/* 🔢 ตัวเลขหลัก ๆ */
#jackpotNumber, #onlineNumber {
  color: #ffd700;
  font-weight: 800;
  letter-spacing: 1px;
  animation: textShine 3s ease-in-out infinite;
}

/* 🧩 โลโก้เรืองแสง */
.logo-glow {
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.7))
          drop-shadow(0 0 20px rgba(255,215,0,0.5));
  animation: goldPulse 3s ease-in-out infinite;
}

/* 🌠 รูปโปรโมชัน */
#promoTopImg, #promoBottomImg {
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(255,215,0,0.15);
  transition: all 0.4s ease;
}
#promoTopImg:hover, #promoBottomImg:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255,215,0,0.6);
}

/* 💬 Toast แจ้งเตือน */
.toast {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255,215,0,0.5);
  color: #FFD700;
  box-shadow: 0 0 25px rgba(255,215,0,0.2);
}

/* 📱 Responsive */
@media (max-width: 600px) {
  button, .popup-btn {
    font-size: 15px;
    padding: 10px 18px;
  }
}
/* 🌟 Premium Glow Hamburger Menu — FINAL FIX JR x Top */
.menu-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2000; /* ✅ สูงสุดในหน้า */
  width: 38px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
  touch-action: manipulation; /* ✅ ไม่มี delay */
  -webkit-tap-highlight-color: transparent; /* ✅ ป้องกัน iOS blink */
}

.menu-btn:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.menu-btn .bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #FFD700, #ffb300);
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* ✅ เอฟเฟกต์เปิด */
.menu-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ✅ Dropdown */
.dropdown {
  position: fixed;
  top: 62px;
  left: 16px;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.1);
  padding: 12px 0;
  flex-direction: column;
  width: 210px;
  z-index: 1500;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.35s ease;
}

.dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ✅ ลิงก์ในเมนู */
.dropdown a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
  transform: translateX(3px);
}

/* ✅ Responsive */
@media (max-width: 480px) {
  .menu-btn {
    top: 12px;
    left: 12px;
    width: 30px;
    height: 22px;
  }
  .dropdown {
    top: 55px;
    width: 180px;
    backdrop-filter: blur(10px);
  }
  .dropdown a {
    padding: 10px 14px;
    font-size: 15px;
  }
}


/* ✅ พรีวิวบทความในหน้าแรก */
.article-preview {
  background: rgba(255, 215, 0, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.05);
}

.article-preview h2 {
  color: #FFD700;
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.article-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 215, 0, 0.05);
  padding: 12px;
  border-radius: 12px;
  transition: all 0.25s ease;
  margin-bottom: 12px;
}

.article-card:hover {
  background: rgba(255, 215, 0, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.article-card img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.article-card .info h3 {
  font-size: 16px;
  color: #FFD700;
  margin: 0 0 6px;
}

.article-card .info p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}

.article-card .info .date {
  font-size: 12px;
  color: #aaa;
}
.article-body {
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,215,0,.1), transparent 60%), linear-gradient(180deg,#0a0a0e,#050507 55%, #0b0a09);
  color: #fff;
  font-family: 'Noto Sans Lao','Kanit',sans-serif;
}

.article-body .wrap {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
}

.article-body h1 {
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 10px;
}


.article-body h2 {
  font-size: 20px;
  margin-top: 30px;
  color: #ffcc33;
}

.article-body p, .article-body li {
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}

.article-cover {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.back-home {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg,#FFD700,#ffb300);
  color: #000;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: .25s;
}

.back-home:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,215,0,.6);
}
/* ✅ จัดปุ่มให้อยู่ตรงกลางทุกกรณี */
.center {
  text-align: center;
}

.center .gold-button {
  display: inline-block;
  margin: 0 auto;
}
/* ✅ ใช้กับ register-popup.js */
.popup-hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: all 0.3s ease;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
.fade-out {
  animation: fadeOut 0.3s ease forwards;
}
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ✅ Popup Overlay Fix */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.popup-box {
  background: #111;
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255,215,0,0.3);
  transform: scale(1);
}
/* ==============================================
✨ Winlaos168 — Stats Layout Alignment (JR x Top)
============================================== */

/* กล่องรวมสถิติ */
.stat-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
}

/* กล่องทองหลัก */
.stat-box {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  width: 85%;
  max-width: 420px;
  margin: 0 auto;
}

/* กล่องย่อย 2 ช่อง */
.stat-subbox-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.stat-subbox {
  flex: 1 1 180px;
  min-width: 160px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
  border-radius: 14px;
  text-align: center;
  padding: 10px 5px;
}

/* ตัวเลขและข้อความ */
.stat-number {
  font-size: 26px;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 0 12px rgba(255, 230, 80, 0.8);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 15px;
  color: #e8e6c5;
}

/* กล่องจำนวนผู้ชนะ */
.winner-count {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 14px;
  padding: 10px 20px;
  margin-top: 8px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
  font-weight: 600;
  color: #FFD700;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .stat-box { width: 95%; }
  .stat-number { font-size: 22px; }
  .stat-label { font-size: 14px; }
  .winner-count { font-size: 15px; padding: 8px 12px; }
}

/* ✅ ผู้ชนะล่าสุด - วิ่งต่อเนื่อง + Fade Smooth */
#winnerTicker {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 34px;
  line-height: 34px;
  color: #FFD700;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.05);
  padding: 0 10px;
  text-align: left;
}

#winnerTicker .scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: tickerLoop 40s linear infinite;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

/* เอฟเฟกต์ตอน fade เปลี่ยนชุดข้อความ */
#winnerTicker.fade-out .scroll-text {
  opacity: 0;
}

/* ✅ เคลื่อนไหวข้อความ */
@keyframes tickerLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ✅ ปรับรีวิวลูกค้าให้ขนาดเล็กลง ~20% แบบพรีเมียม */
#review-list .review-box {
  background: linear-gradient(180deg, #0b0b0b 0%, #101010 100%);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 10px;
  padding: 8px 12px; /* ↓ ลด padding ลง */
  margin-bottom: 10px; /* ↓ ลดช่องว่างระหว่างกล่อง */
  color: #fff;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 8px; /* ↓ ลดระยะระหว่างรูปกับข้อความ */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#review-list .review-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.12);
}

/* ✅ ลดขนาดรูปโปรไฟล์ลง ~20% */
#review-list .review-box img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.2px solid #ffd700;
}

/* ✅ ปรับข้อความให้กระชับลง */
#review-list .review-box p {
  margin: 2px 0;
  line-height: 1.25; /* ↓ ลด line height */
  font-size: 13px; /* ↓ ลดขนาดฟอนต์ */
  color: #d8d8d8;
}

#review-list .review-box strong,
#review-list .review-box .name {
  color: #FFD700;
  font-weight: 600;
  font-size: 13px; /* ↓ ลดขนาดฟอนต์ */
}

#review-list .review-box .stars {
  color: #FFD700;
  font-size: 12.5px; /* ↓ ลดขนาดดาว */
}

#review-list .review-box small {
  color: #aaa;
  font-size: 12px;
}

/* ✅ Responsive (มือถือ) */
@media (max-width: 480px) {
  #review-list .review-box {
    padding: 7px 10px;
    border-radius: 8px;
    gap: 6px;
  }
  #review-list .review-box img {
    width: 30px;
    height: 30px;
  }
  #review-list .review-box p {
    font-size: 12.5px;
  }
}
/* ======================================================
✨ Winlaos168 Premium Motion — Gold Button Glow
By JR x Top | Safe Add-on (ไม่แตะส่วนเดิม)
====================================================== */

.gold-button {
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.gold-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 215, 0, 0.5),
    rgba(255, 255, 255, 0.1)
  );
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.gold-button:hover::before {
  left: 125%;
}

.gold-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ======================================================
✨ Winlaos168 Premium Motion — Dropdown Smooth
By JR x Top | Add-on (ปลอดภัย ไม่แตะเมนูเดิม)
====================================================== */

#dropdownMenu {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease-in-out;
}

#dropdownMenu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ======================================================
✨ Winlaos168 Premium Motion — Popup Zoom & Fade
By JR x Top | Safe CSS Only (ไม่แตะ JS)
====================================================== */

/* เริ่มซ่อนด้วยเอฟเฟกต์จางและย่อเล็ก */
#signupPopup {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* แสดงพร้อมซูมเบา ๆ และ fade in */
#signupPopup.show {
  opacity: 1;
  transform: scale(1);
}

/* กล่องด้านในเคลื่อนไหวอิสระ */
#signupPopup .popup-box {
  animation: popupIn 0.4s ease forwards;
}

@keyframes popupIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ปรับปิดให้จางลง */
#signupPopup.popup-hidden {
  opacity: 0;
  transform: scale(0.95);
}

/* ======================================================
✨ Winlaos168 Premium Motion — Header Glow Pulse
By JR x Top | Light Touch Effect
====================================================== */

header h1 {
  background: linear-gradient(90deg, #FFD700, #fff4b3, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: headerGlow 5s ease-in-out infinite;
  font-weight: 700;
}

@media (max-width: 480px) {
  header h1 .brand {
    font-size: 1.4rem;
  }
  header h1 .tagline {
    font-size: 1rem;
  }
}


@keyframes headerGlow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4),
                 0 0 12px rgba(255, 215, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.7),
                 0 0 30px rgba(255, 255, 180, 0.4);
  }
}

/* ✅ โลโก้กระพริบเงาทองเบา ๆ */
.site-logo {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
  transition: filter 0.5s ease;
}
.site-logo:hover {
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.6));
}

/* ✨ ปรับกล่องแจ้งถอนเงินให้ดูหรูขึ้น (JR x Top Premium Glow) */
#notifications .notification {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 580px !important;
  padding: 14px 18px !important;
  background: radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.08), transparent 80%),
              linear-gradient(180deg, #0b0b0b 0%, #111 100%) !important;
  border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.1) !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  transition: all 0.35s ease !important;
}

#notifications .notification:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.35), inset 0 0 12px rgba(255, 215, 0, 0.25) !important;
}

#notifications .notification img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 10px !important;
  border: 1.5px solid #FFD700 !important;
  background: rgba(255, 215, 0, 0.08) !important;
  padding: 5px !important;
  transition: transform 0.3s ease !important;
}

#notifications .notification img:hover {
  transform: scale(1.07);
}

#notifications .notification p {
  margin: 4px 0 !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
  color: #eee !important;
}

#notifications .notification strong {
  color: #FFD700 !important;
  font-weight: 600 !important;
}
/* ===========================================================
🍏 JR x Top — Apple Smooth UX Layer (non-destructive)
Version: 2025.10.17
=========================================================== */

/* ✅ ปรับ motion & interaction ทั้งเว็บให้ลื่นระดับ macOS */
:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.25);
  --glow-gold: 0 0 18px rgba(255, 215, 0, 0.35);
}

/* ✅ ให้ทุก element เคลื่อนไหวอย่างนุ่มนวล */
* {
  transition:
    background-color 0.45s var(--ease-smooth),
    color 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth),
    transform 0.45s var(--ease-smooth);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ✅ ปรับ motion ของ hover ให้เหมือน macOS */
button:hover, a:hover, .gold-button:hover, .review-box:hover, .game-card:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.05);
}

/* ✅ Shadow / Glow แสงแบบ Apple (Soft Layer) */
.gold-button,
.review-box,
.game-card,
.notification,
.popup-box {
  box-shadow: var(--shadow-soft);
  will-change: transform, box-shadow;
}
.gold-button:hover,
.review-box:hover,
.game-card:hover {
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
}

/* ✅ ปรับ motion popup ให้เข้าออกลื่นขึ้น */
.popup-box.show {
  animation: popupSmoothIn 0.45s var(--ease-smooth);
}
.popup-hidden {
  animation: popupSmoothOut 0.35s var(--ease-smooth);
}

@keyframes popupSmoothIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes popupSmoothOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(-12px);
    filter: blur(4px);
  }
}

/* ✅ ปรับการ scroll / touch ให้ลื่นเหมือน iPhone */
html, body {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ✅ ภาพและโลโก้จะเคลื่อนไหวแบบลื่น (GPU optimize) */
img, .bank-logo, .game-card .img {
  will-change: transform, opacity;
  transition: transform 0.45s var(--ease-smooth), opacity 0.45s var(--ease-smooth);
}
img:hover {
  transform: scale(1.03);
}

/* ✅ เอฟเฟกต์พิเศษเฉพาะบนจอ Retina / OLED */
@supports (backdrop-filter: blur(10px)) {
  .popup-box, .review-box, .notification {
    backdrop-filter: blur(14px) saturate(140%);
    background: rgba(10, 10, 10, 0.82);
  }
}

/* ✅ เพิ่มความรู้สึก depth ระหว่าง section */
section {
  perspective: 1200px;
}

/* ===========================================================
⚡ JR x Top — Dynamic Gold Flow Button (Apple Motion Premium)
=========================================================== */
#signupPopup .popup-box button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.25), rgba(255, 190, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffde66;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  font-weight: 600;
}

/* 🌟 เอฟเฟกต์แสงทองไหลผ่านกลางปุ่ม */
#signupPopup .popup-box button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 200, 0.3) 45%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 200, 0.3) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 🪩 เปิด motion ตอน hover */
#signupPopup .popup-box button:hover::before {
  opacity: 1;
  animation: goldLightMove 2.2s ease-in-out infinite;
}

/* 💫 แสงทองเคลื่อนไหวลื่น */
@keyframes goldLightMove {
  0% { left: -150%; }
  50% { left: 100%; }
  100% { left: 150%; }
}

/* 🪶 ปุ่มตอบสนองนุ่มมือ */
#signupPopup .popup-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
  color: #fff3b0;
}

/* 👆 เอฟเฟกต์ตอนกด */
#signupPopup .popup-box button:active {
  transform: scale(0.97);
  box-shadow: 0 1px 5px rgba(255, 215, 0, 0.2);
}


/* ===========================================================
🎨 JR x Top Gold Harmony Text Tone
(ปรับฟ้อนต์ popup ให้กลืนกับปุ่มทอง)
=========================================================== */



/* สีหัวข้อหลัก */
#signupPopup h2 {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}

/* label และข้อความหัวข้อ */
#signupPopup label {
  color: #ffd700;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.25);
}

/* placeholder ภายใน input */
#signupPopup input::placeholder {
  color: rgba(255, 215, 0, 0.5);
}

/* ข้อความธรรมดาใน popup (รวมถึง text ต่าง ๆ) */
#signupPopup p,
#signupPopup span,
#signupPopup select,
#signupPopup option {
  color: #ffe07a;
}

/* highlight เล็ก ๆ ตอน hover ปุ่ม */
#signupPopup .popup-box button:hover {
  color: #fff8d6;
}
/* 🚫 ปิดเอฟเฟกต์ปุ่ม Close */
#signupPopup #closePopup {
  background: rgba(255,255,255,0.08) !important;  /* พื้นเทาเรียบ */
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #ccc !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#signupPopup #closePopup::before {
  display: none !important; /* ตัดแสงทองไหลออก */
}

#signupPopup #closePopup:hover {
  transform: none !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/*เพอิ่มสมูท*/
@keyframes popupFadeUp {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
#signupPopup .popup-box {
  animation: popupFadeUp 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}


/* ===========================================================
🌌 JR x Top — Cinematic Smooth UX Pack (Final Apple Edition)
Version: 2025.10.17
=========================================================== */

/* ✅ Motion Response เพิ่มความนุ่ม + Inertia Effect */
* {
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

/* ✅ ปรับ hover ทุก element ให้มี inertia */
button:hover, 
a:hover, 
.gold-button:hover, 
.review-box:hover, 
.game-card:hover, 
.notification:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.07) saturate(110%);
  transition-duration: 0.5s;
}

/* ✅ เอฟเฟกต์ Fade+Slide สำหรับทุก element ที่เข้าหน้า (entry animation) */
@keyframes elementEnter {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
section, .wrap, .review-box, .game-card, .notification {
  animation: elementEnter 0.8s ease forwards;
  animation-delay: 0.1s;
}

/* ✅ Scroll-Depth Parallax เบาๆ เหมือนเว็บ Apple */
[data-depth] {
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-depth]:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateZ(6px);
}

/* ✅ Smooth Blur Transition เวลา popup ขึ้น */
.popup-box {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}
.popup-box.show {
  backdrop-filter: blur(16px) saturate(160%);
  transform: scale(1.02);
}
.popup-hidden {
  backdrop-filter: blur(0);
  transform: scale(0.98);
  opacity: 0.8;
}

/* ✅ แสงทองเคลื่อนไหวแบบไหล (Subtle Gold Flow) */
@keyframes goldFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.gold-button, .review-stars, .highlight {
  background: linear-gradient(90deg, #fff2b5, #ffd700, #ffb300, #fff2b5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldFlow 5s linear infinite;
}

/* ✅ ปรับแสงเงาและ depth ให้นุ่มแบบ OLED Display */
body {
  background-color: #060606;
  background-image: radial-gradient(800px at 50% -20%, rgba(255,215,0,0.1), transparent 70%),
                    linear-gradient(180deg, #0a0a0e, #050505 60%, #080808);
  transition: background 1.2s ease;
}

/* ✅ GPU Accelerate เพิ่ม frame rate การ render */
#notifications, .popup-box, .review-box, .game-card {
  will-change: transform, opacity, filter;
  transform: translateZ(0);
}
header h1 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: max-content; /* ให้กว้างเท่าข้อความ ไม่ขยายเต็ม */
}
/* 🌙 Winlaos168 — Premium Live Glow (Dark Mode Boost) */
header h1 .brand {
  position: relative;
  background: linear-gradient(90deg, #a67c00, #FFD700, #fff4b3, #FFD700, #a67c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300%;
  animation:
    goldShine 14s linear infinite,   /* วิ่งช้า ลื่น */
    goldPulse 8s ease-in-out infinite; /* หายใจเรือง */
  text-shadow:
    0 0 10px rgba(255, 220, 100, 0.7),
    0 0 22px rgba(255, 215, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.3);  /* เพิ่มคอนทราสต์เรืองรอบตัวอักษร */
  font-weight: 800;
}

/* ✨ แสงทองวิ่ง */
@keyframes goldShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 💛 หายใจเรืองแสง */
@keyframes goldPulse {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 220, 100, 0.7),
      0 0 22px rgba(255, 215, 0, 0.5),
      0 0 40px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow:
      0 0 16px rgba(255, 240, 160, 0.9),
      0 0 35px rgba(255, 230, 120, 0.7),
      0 0 55px rgba(255, 215, 0, 0.5);
  }
}

/* 🌟 ข้อความบรรทัดล่าง (ภาษาลาว หรือ tagline) */
h2 {
  font-family: 'Kanit', 'Noto Sans Lao', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 8px 0 0;
  text-align: center;
  width: 100%;
  line-height: 1.3;
  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.4),
    0 0 14px rgba(255, 215, 0, 0.2);
}

/* 📱 ปรับขนาดอัตโนมัติสำหรับมือถือ */
@media (max-width: 480px) {
  h1 { font-size: 38px; }
  h2 { font-size: 18px; }
}

