/* Navbar Glow Custom Styles */
.navbar-glow {
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 2px 16px 0 #000a, 0 0 32px 0 #d4af3733;
  padding: 0;
  min-height: 90px;
  position: relative;
}
.navbar-glow .nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  gap: 40px;
  padding: 18px 0 8px 0;
}
.navbar-glow .nav-item {
  text-align: center;
  min-width: 140px;
}
.navbar-glow .nav-link {
  display: inline-block;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px #d4af37cc, 0 0 2px #fff;
  transition: color 0.2s, text-shadow 0.3s, transform 0.2s;
  position: relative;
  padding: 0;
  background: none;
  border: none;
  outline: none;
  border-radius: 1.5em;
  text-decoration: none !important;
}
.navbar-glow .nav-link .en {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffe066;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #d4af37cc;
  margin-top: 2px;
  text-decoration: none !important;
}
/* ปรับระยะห่างเมนูซ้าย-ขวา */
.nav-left, .nav-right {
  gap: 80px !important;
}
@media (max-width: 991px) {
  .nav-left, .nav-right {
    gap: 32px !important;
    justify-content: center !important;
  }
}

/* เพิ่มระยะห่างเมนูแต่ละฝั่งออกจากโลโก้ */
.nav-left {
  margin-right: 120px;
}
.nav-right {
  margin-left: 120px;
}
@media (max-width: 1200px) {
  .nav-left, .nav-right {
    margin-right: 40px;
    margin-left: 40px;
  }
}
@media (max-width: 991px) {
  .nav-left, .nav-right {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ขอบไฟวิ่งเฉพาะข้อความหลัก (ไทย) */
.navbar-glow .nav-link {
  position: relative;
  z-index: 1;
}
.navbar-glow .nav-link span.en {
  position: relative;
  z-index: 2;
}
.navbar-glow .nav-link .th-glow {
  position: relative;
  z-index: 2;
  display: inline-block;
}
/* ตัวอักษรหลักชัดเจน สีทอง-ขาว มีเงาเล็กน้อย */
.navbar-glow .nav-link .th-glow {
  color: #fffbe6;
  text-shadow: 0 2px 8px #d4af37cc, 0 0 2px #fff, 0 0 1px #ff2a00cc;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}
/* ขอบไฟวิ่งบางลง ไม่บดบังตัวอักษร */
.navbar-glow .nav-link .th-glow::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1;
  color: transparent !important;
  -webkit-text-stroke: 2px #d4af37;
  text-stroke: 2px #d4af37;
  text-shadow:
    0 0 8px #ff2a00,
    0 0 12px #d4af37,
    0 0 2px #fffbe6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.navbar-glow .nav-link:hover .th-glow::before,
.navbar-glow .nav-link:focus .th-glow::before {
  opacity: 1;
}
@keyframes borderFireText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ซ่อนขอบปุ่มเดิม */
.navbar-glow .nav-link::before,
.navbar-glow .nav-link::after {
  display: none !important;
}
.navbar-glow .nav-link:hover, .navbar-glow .nav-link:focus {
  color: #ffe066;
  text-shadow: 0 0 32px #ffe066, 0 0 12px #fff, 0 0 4px #d4af37;
  transform: scale(1.13) translateY(-3px);
}
.navbar-glow .nav-link:hover::before, .navbar-glow .nav-link:focus::before {
  opacity: 1;
  background: linear-gradient(120deg, #d4af37, #ff2a00 40%, #111 80%, #d4af37 100%);
  background-size: 300% 300%;
  animation: borderFire 1.2s linear infinite;
  box-shadow: 0 0 24px 6px #d4af37cc, 0 0 32px 8px #ff2a00cc;
}
@keyframes borderFire {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ซ่อนขีดเส้นใต้เดิม */
.navbar-glow .nav-link::after {
  display: none !important;
}
.navbar-glow {
  position: relative;
  z-index: 10;
}
.navbar-glow .logo-center {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%) translateY(0);
  z-index: 20;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
}
.navbar-glow .logo-center img {
  height: 140px;
  filter: drop-shadow(0 0 32px #ffe066) drop-shadow(0 0 16px #d4af37cc);
  animation: spinlogo 3.5s linear infinite;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fffbe6, 0 0 16px 4px #d4af37cc, 0 0 32px 0 #fffbe6aa inset;
  background: none;
  position: relative;
  z-index: 2;
}
.navbar-glow .logo-center::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 60%, rgba(255, 140, 0, 0.7) 0%, rgba(255, 69, 0, 0.4) 40%, rgba(0,0,0,0) 70%);
  filter: blur(8px) brightness(1.2) saturate(1.5);
  animation: fireGlow 1.2s infinite alternate;
  opacity: 0.85;
}
@keyframes fireGlow {
  0% { filter: blur(8px) brightness(1.2) saturate(1.5); opacity: 0.85; }
  50% { filter: blur(14px) brightness(1.5) saturate(2); opacity: 1; }
  100% { filter: blur(8px) brightness(1.2) saturate(1.5); opacity: 0.85; }
}
@keyframes spinlogo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media (max-width: 991px) {
  .navbar-glow .nav {
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 0 12px 0;
  }
  .navbar-glow .logo-center img {
    height: 70px;
  }
  .navbar-glow .logo-center {
    padding: 6px 16px;
  }
}
@media (max-width: 600px) {
  .navbar-glow .nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .navbar-glow .nav-item {
    min-width: 100px;
    margin-bottom: 8px;
  }
} 
/* ให้แฟนเพจ/เติมเงิน ห่างโลโก้มากขึ้น */
.nav-left .nav-item:last-child {
  margin-right: 60px;
}
.nav-right .nav-item:first-child {
  margin-left: 60px;
}
@media (max-width: 1200px) {
  .nav-left .nav-item:last-child,
  .nav-right .nav-item:first-child {
    margin-right: 20px;
    margin-left: 20px;
  }
}
@media (max-width: 991px) {
  .nav-left .nav-item:last-child,
  .nav-right .nav-item:first-child {
    margin-right: 0;
    margin-left: 0;
  }
} 
/* Hamburger button */
.mobile-menu-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255,255,255,0.2);
}

.mobile-menu-btn span {
  display: block;
  width: 32px;
  height: 4px;
  margin: 4px 0;
  background: linear-gradient(90deg, #fffbe6 0%, #d4af37 100%);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: -100%;
  right: 0; bottom: 0;
  width: 100%;
  background: rgba(10,10,10,0.99);
  backdrop-filter: blur(10px) saturate(1.5);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  gap: 18px;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu.open {
  display: flex;
  left: 0;
}
.mobile-menu .nav-link {
  font-size: 1.5rem;
  margin: 0;
  padding: 15px 0;
  text-align: center;
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.3;
  text-decoration: none !important;
}

.mobile-menu .nav-link:hover {
  background-color: rgba(255, 230, 0, 0.1);
}

.mobile-menu .nav-link .th-glow {
  font-weight: 800;
  color: #fffbe6;
  text-shadow: 0 2px 8px #d4af37cc, 0 0 2px #fff;
  transition: color 0.3s;
}

.mobile-menu .nav-link .en {
  font-size: 1rem;
  font-weight: 600;
  color: #ffe066;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #d4af37cc;
  margin-top: 4px;
  transition: color 0.3s;
}

.mobile-menu .nav-link:hover .th-glow {
  color: #ffe600;
  text-shadow: 0 0 12px #ffe600, 0 0 4px #fff;
}
.mobile-menu .nav-link:hover .en {
  color: #fff;
}

.mobile-logo {
  position: absolute;
  top: 40px;
  margin-bottom: 18px;
  text-align: center;
}
.mobile-logo img {
  height: 80px;
  filter: drop-shadow(0 0 24px #ffe066) drop-shadow(0 0 12px #d4af37cc);
}

@media (max-width: 991px) {
  .navbar-glow .nav,
  .nav-left,
  .nav-right {
    display: none !important;
  }
  .logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    transform: none;
    padding: 15px 0;
  }
  .logo-center img {
    height: 80px;
    box-shadow: none;
    background: none;
    animation: none;
  }
  .logo-center::after {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-menu {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }
} 
/* Lightning SVG BG effect */
.navbar-glow {
  position: relative;
  overflow: visible;
  min-height: 90px;
}
.lightning-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}
.lightning-anim {
  stroke-dasharray: 60 30 20 40 50 30 40 60 30 50 60 40 30 20 50 30 40 60 30 50;
  stroke-dashoffset: 0;
  animation: lightningMove 2.2s linear infinite, lightningFlash 1.5s ease-in-out infinite alternate;
}
@keyframes lightningMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 300; }
}
@keyframes lightningFlash {
  0%, 100% { opacity: 0.7; filter: blur(0.5px); }
  50% { opacity: 1; filter: blur(2.5px); }
} 
/* Footer Glow */
.footer-glow {
  width: 100%;
  background: #111;
  border-top: 4px solid #d4af37;
  box-shadow: 0 -2px 24px 0 #ffe06655, 0 -2px 8px 0 #d4af37cc;
  padding: 0;
  margin-top: 48px;
}
.footer-glow .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 0 12px 0;
  text-align: center;
}
.footer-glow span {
  color: #ffe066;
  font-family: 'Prompt', 'Kanit', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #d4af37cc, 0 0 2px #fff;
} 
/* Centered Ran.png image */
.center-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  margin: 32px 0 32px 0;
  width: 100%;
}
.center-image {
  max-width: 100vw;
  max-height: 95vh;
  object-fit: contain;
} 
/* Main Action Bar (Download, Login, Register) */
.main-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 8vh auto 8vh auto;
  max-width: 900px;
  flex-wrap: wrap;
  z-index: 2;
}
.action-btn {
  display: flex;
  align-items: center;
  min-width: 180px;
  padding: 18px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 2px #fff1 inset;
  font-family: 'Prompt', 'Kanit', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 2;
}
.action-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 32px 0 #d4af3755, 0 0 0 2px #fffbe6 inset;
}
.download-btn {
  background: linear-gradient(90deg, #7ed957 0%, #b4ec51 100%);
  color: #fff;
  box-shadow: 0 4px 32px 0 #7ed95755, 0 0 0 2px #fffbe6 inset;
}
.download-btn .action-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #222a, 0 0 2px #fff;
}
.download-btn .action-desc {
  color: #eaffc1;
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 2px;
}
.black-btn {
  background: #181818;
  color: #fffbe6;
  box-shadow: 0 4px 24px 0 #000a, 0 0 0 2px #d4af37cc inset;
}
.black-btn .action-title {
  color: #fffbe6;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #d4af37cc, 0 0 2px #fff;
}
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-right: 18px;
  color: #fffbe6;
  filter: drop-shadow(0 0 8px #d4af37cc);
}
.download-btn .icon-wrap {
  color: #fff;
  filter: drop-shadow(0 0 12px #7ed957cc);
}
.action-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 700px) {
  .main-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 98vw;
  }
  .action-btn {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 16px;
  }
  .icon-wrap {
    font-size: 1.5rem;
    margin-right: 10px;
  }
} 
.topup-btn {
  background: linear-gradient(90deg, #ffe066 0%, #ff2a00 100%);
  color: #222;
  border: 2.5px solid transparent;
  border-image: linear-gradient(90deg, #ffe066 0%, #ff2a00 100%);
  border-image-slice: 1;
  box-shadow: 0 0 32px 0 #ffe06699, 0 0 16px 0 #ff2a00aa;
  animation: topupPulse 1.2s infinite alternate, topupBounce 2.2s cubic-bezier(.68,-0.55,.27,1.55) infinite;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  position: relative;
  z-index: 3;
  transform: scale(1.08);
}
.topup-btn .icon-wrap {
  color: #ff2a00;
  filter: drop-shadow(0 0 12px #ffe066cc);
}
.topup-btn .action-title {
  color: #ff2a00;
  text-shadow: 0 2px 8px #ffe066cc, 0 0 2px #fff;
  font-size: 1.35rem;
}
.topup-btn .action-desc {
  color: #fffbe6;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2px;
  text-shadow: 0 0 8px #ff2a00cc;
}
@keyframes topupPulse {
  0% { box-shadow: 0 0 32px 0 #ffe06699, 0 0 16px 0 #ff2a00aa; }
  50% { box-shadow: 0 0 64px 8px #ffe066cc, 0 0 32px 8px #ff2a00cc; }
  100% { box-shadow: 0 0 32px 0 #ffe06699, 0 0 16px 0 #ff2a00aa; }
}
@keyframes topupBounce {
  0%, 100% { transform: scale(1.08) translateY(0); }
  20% { transform: scale(1.13) translateY(-6px); }
  40% { transform: scale(1.08) translateY(0); }
  60% { transform: scale(1.13) translateY(-4px); }
  80% { transform: scale(1.08) translateY(0); }
} 
/* เด่นเฉพาะปุ่มเติมเงินใน navbar */
.navbar-glow .nav-link.topup-navbar-btn {
  background: linear-gradient(90deg, #ffe066 0%, #ff2a00 100%);
  color: #222 !important;
  border-radius: 1.8em;
  box-shadow: 0 0 16px 0 #ffe06699, 0 0 8px 0 #ff2a00aa;
  border: 2px solid #ffe066;
  font-weight: 900;
  padding: 0.25em 1.8em;
  font-size: 1.15em;
  position: relative;
  z-index: 3;
  animation: topupPulse 1.2s infinite alternate, topupBounce 2.2s cubic-bezier(.68,-0.55,.27,1.55) infinite;
  transition: box-shadow 0.2s, transform 0.2s;
}
.navbar-glow .nav-link.topup-navbar-btn .th-glow,
.navbar-glow .nav-link.topup-navbar-btn .en {
  color: #ff2a00 !important;
  text-shadow: 0 2px 8px #ffe066cc, 0 0 2px #fff;
}
.navbar-glow .nav-link.topup-navbar-btn:hover, .navbar-glow .nav-link.topup-navbar-btn:focus {
  box-shadow: 0 0 32px 8px #ffe066cc, 0 0 16px 8px #ff2a00cc;
  transform: scale(1.09) translateY(-2px);
} 
/* --- Slider Section --- */
.slider-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 24px 0;
}
.slider-container {
  position: relative;
  width: 480px;
  max-width: 90vw;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px #0008, 0 0 0 2px #FFD70055;
  background: #111a;
}
.slider {
  position: relative;
  width: 100%;
  height: 240px;
}
.slide {
  display: none;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 0.5s;
}
.slide.active {
  display: block;
  opacity: 1;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #FFD700;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.slider-btn:hover {
  background: #FFD700;
  color: #222;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0 0;
  width: 100%;
  position: relative;
  z-index: 10;
}
.main-slider-col .slider-dots {
  margin-top: 22px;
  margin-bottom: 0;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFD70055;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px #FFD70033;
}
.dot.active {
  background: #FFD700;
  box-shadow: 0 0 16px #FFD70099;
}

/* --- Intro Section --- */
.intro-section {
  text-align: center;
  margin: 24px 0 12px 0;
}
.intro-section h1 {
  font-size: 2.2rem;
  color: #FFD700;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px #000a;
}
.intro-section p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 480px;
  text-shadow: 0 1px 6px #0008;
}

/* --- Features Section --- */
.features-section {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 18px 0 12px 0;
}
.feature {
  color: #FFD700;
  background: #222a;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px #0004;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- How to Play Section --- */
.howto-section {
  text-align: center;
  margin: 18px 0 12px 0;
}
.howto-section h2 {
  color: #FFD700;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.howto-section ol {
  display: inline-block;
  text-align: left;
  color: #fff;
  background: #222a;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0004;
}
.howto-section li {
  margin-bottom: 4px;
}

/* --- News Section --- */
.news-section {
  text-align: center;
  margin: 18px 0 24px 0;
}
.news-section h2 {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.news-section ul {
  display: inline-block;
  text-align: left;
  color: #fff;
  background: #222a;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0004;
}
.news-section li {
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .slider-container { width: 98vw; }
  .slider, .slide { height: 160px; }
  .features-section { flex-direction: column; gap: 12px; }
} 
/* --- Main Row Section: Slider Left, Content Right --- */
.main-row-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 32px 0;
  min-height: 520px;
}
.main-row-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px; /* Add some padding to avoid touching screen edges */
}
.main-slider-col {
  flex: 0 0 68%;
  min-width: 420px;
  max-width: 820px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.main-content-col {
  max-width: 500px;
  margin: 80px auto 0 auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  color: #fff;
  text-align: center;
  position: relative;
  z-index: 2;
  top: -50px;
  border: none;
  animation: fadeInDown 1s cubic-bezier(.77,0,.18,1) 0.1s both;
}

/* --- Slider: Bigger, Fade Effect --- */
.slider-container {
  width: 900px;
  max-width: 100vw;
  min-height: 520px;
  border: none;
  border-radius: 32px;
  background: none;
  box-shadow: none;
  background-clip: unset;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}
.slider-container::before {
  display: none !important;
}
.slider {
  width: 100%;
  height: 520px;
  position: relative;
}
.slide {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 32px;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.slider-btn {
  display: none !important;
}
.slider-caption {
  position: absolute;
  top: 32px;
  left: 40px;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 2.6rem;
  font-family: 'Prompt', 'Kanit', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  animation: caption-slide-in 1.1s cubic-bezier(.4,0,.2,1);
}
.caption-main {
  color: #fff;
  text-shadow: 0 0 12px #FFD700, 0 0 2px #fff;
  animation: caption-glow 2.2s infinite alternate;
}
.caption-sub {
  color: #FFD700;
  text-shadow: 0 0 8px #fff, 0 0 2px #FFD700;
  animation: caption-glow2 2.2s infinite alternate;
}
@keyframes caption-slide-in {
  0% { opacity: 0; transform: translateY(-32px) scale(0.95); }
  100% { opacity: 1; transform: none; }
}
@keyframes caption-glow {
  0% { text-shadow: 0 0 12px #FFD700, 0 0 2px #fff; }
  100% { text-shadow: 0 0 24px #fff, 0 0 8px #FFD700; }
}
@keyframes caption-glow2 {
  0% { text-shadow: 0 0 8px #fff, 0 0 2px #FFD700; }
  100% { text-shadow: 0 0 24px #FFD700, 0 0 8px #fff; }
}
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0 0;
  width: 100%;
  position: relative;
  z-index: 10;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFD70055;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active {
  background: #FFD700;
}

/* --- Content Right --- */
.intro-section h1 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #ffe600;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px #000, 0 0 8px #ffe60099;
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) 0.2s both;
}

.intro-section p {
  font-size: 1.13rem;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 1px 6px #000a;
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) 0.3s both;
}

.features-section {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feature {
  flex: 1;
  background: rgba(40,40,40,0.85);
  border-radius: 12px;
  padding: 14px 6px;
  font-size: 1.05rem;
  color: #ffe600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.feature:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 18px rgba(255,230,0,0.18);
  background: rgba(60,60,30,0.95);
}

.feature i {
  margin-right: 8px;
  color: #ff9800;
  font-size: 1.2em;
}

.howto-section h2,
.news-section h2 {
  font-size: 1.13rem;
  color: #ff9800;
  margin: 10px 0 6px 0;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.howto-section ol {
  text-align: left;
  margin: 0 auto 10px auto;
  padding-left: 1.2em;
  color: #fff;
  font-size: 1.05rem;
}

.howto-section ol li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.news-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #ffe600;
  font-size: 1.02rem;
}

.news-section ul li {
  margin-bottom: 6px;
  background: rgba(40,40,40,0.7);
  border-radius: 8px;
  padding: 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  border: 1px solid #ffec80;
}

@media (max-width: 1100px) {
  .main-row-container { gap: 18px; }
  .slider-container { width: 98vw; min-height: 320px; }
  .slider, .slide { height: 320px; }
  .slider-caption { font-size: 1.3rem; top: 12px; left: 12px; }
}
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
}
#main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main-row-section {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.main-row-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-glow {
  flex-shrink: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .main-row-container { flex-direction: column; gap: 24px; align-items: center; }
  .main-slider-col, .main-content-col { max-width: 98vw; min-width: 0; width: 100%; }
  .slider-container { width: 98vw; min-height: 180px; }
  .slider, .slide { height: 180px; }
  .main-row-section { min-height: unset; margin: 0; }
  .slider-dots { margin-top: 12px; }
}
@media (max-width: 600px) {
  .main-row-section { margin: 0; }
  .slider-container { border-radius: 10px; }
  .slide { border-radius: 10px; }
  .main-content-col { gap: 10px; }
} 
.serverinfo-section {
  background: rgba(20, 20, 20, 0.85);
  border-radius: 14px;
  box-shadow: 0 2px 12px #0006;
  padding: 18px 24px 14px 24px;
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  max-width: 340px;
  min-width: 220px;
  position: fixed;
  left: 32px;
  bottom: 32px;
  z-index: 50;
}
@media (max-width: 700px) {
  .serverinfo-section {
    left: 4px;
    bottom: 4px;
    max-width: 98vw;
    padding: 10px 8px 8px 8px;
    font-size: 0.98rem;
  }
}
.serverinfo-section h2 {
  color: #FFD700;
  font-size: 1.15rem;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.serverinfo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.serverinfo-list li {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
}
.serverinfo-list li i {
  color: #FFD700;
  min-width: 18px;
  text-align: center;
}
.serverinfo-list li span {
  color: #FFD700;
  font-weight: 600;
} 
.navbar-glow {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s, backdrop-filter 0.3s, background 0.3s;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(0px);
}
.navbar-glow.scrolled {
  box-shadow: 0 4px 24px 0 rgba(255,200,50,0.18), 0 1.5px 0 #ffe600;
  background: rgba(20,20,20,0.85);
  backdrop-filter: blur(6px) saturate(1.2);
  animation: navbarFadeIn 0.5s;
}
@keyframes navbarFadeIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
} 
.button-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 18px;
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) 0.4s both;
}
.button-feature {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 0;
  border-radius: 16px;
  font-size: 1.18rem;
  font-weight: bold;
  box-shadow: 0 2px 16px #0005, 0 0px 0 #fff0;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, filter 0.18s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: popIn 0.7s cubic-bezier(.77,0,.18,1) 0.5s both;
}
.button-feature img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px #fff8);
  animation: popIn 0.7s cubic-bezier(.77,0,.18,1) 0.6s both;
}
.button-feature.refill-btn {
  background: linear-gradient(135deg, #b71c1c 60%, #ff5252 100%);
  box-shadow: 0 2px 16px #b71c1c55, 0 0px 0 #fff0;
}
.button-feature.download-btn {
  background: linear-gradient(135deg, #388e3c 60%, #69f0ae 100%);
  box-shadow: 0 2px 16px #388e3c55, 0 0px 0 #fff0;
}
.button-feature:hover {
  transform: scale(1.07) translateY(-3px) rotate(-1deg);
  box-shadow: 0 8px 32px #ffe60055, 0 0px 0 #fff0;
  filter: brightness(1.12) saturate(1.3) drop-shadow(0 0 8px #ffe60099);
  z-index: 2;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.howto-section, .news-section {
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) 0.25s both;
}
.news-section ul li, .howto-section ol li {
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
}
.news-section ul li:hover, .howto-section ol li:hover {
  background: #ffe600;
  color: #222;
  box-shadow: 0 2px 12px #ffe60055;
  transform: scale(1.03);
} 
.main-row-section {
  margin-top: 80px;
} 
.main-title-pro {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffe600;
  text-shadow: 0 2px 16px #000, 0 0 8px #ffe60099;
  margin-bottom: 16px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-fill-color: unset;
  filter: none;
  animation: glowTitle 1.2s cubic-bezier(.77,0,.18,1) 0.1s both;
}
@keyframes glowTitle {
  from { opacity: 0; filter: blur(8px) brightness(1.5); transform: scale(0.95); }
  to { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); }
}

.pro-btn-row {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  justify-content: center;
  gap: 32px;
}
/* New Button Styles - Professional & Dynamic */
.pro-btn-ani {
  min-width: 280px;
  padding: 24px 0;
  border: none;
  font-weight: bold;
  transition: transform 0.2s cubic-bezier(.25,.8,.25,1), filter 0.2s;
  animation: popIn 0.7s cubic-bezier(.77,0,.18,1) 0.2s both, 
             floating-effect 4s ease-in-out 1s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  overflow: visible;
  color: #fff;
  text-decoration: none;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
}
.pro-btn-ani.refill-btn {
  background: linear-gradient(145deg, #F92C50 0%, #AC1C44 100%);
}
.pro-btn-ani.download-btn {
  background: linear-gradient(145deg, #00C67F 0%, #00925F 100%);
  animation: popIn 0.7s cubic-bezier(.77,0,.18,1) 0.2s both, 
             floating-effect 4s ease-in-out 1.5s infinite;
}
.pro-btn-ani .btn-text-wrapper {
  text-align: left;
}
.pro-btn-ani img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #000a);
  transition: transform 0.2s;
}
.pro-btn-ani .btn-text-wrapper > div:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffffcc;
}
.pro-btn-ani .btn-text-wrapper > div:last-child {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
.pro-btn-ani:hover {
  transform: scale(1.12) translateY(-8px);
  filter: brightness(1.25);
  animation-play-state: paused;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 10px 30px #ffe600aa;
}
.pro-btn-ani:hover img {
  transform: scale(1.1);
}
.pro-btn-ani::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px;
  right: -3px; bottom: -3px;
  z-index: -1;
  background: linear-gradient(145deg, #ffe600, #ff9800);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.pro-btn-ani:hover::before {
  opacity: 1;
  animation-play-state: paused;
  box-shadow: 0 0 15px 5px #ffe60055;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
} 
.server-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.92);
  border-radius: 14px;
  padding: 12px 28px 8px 28px;
  margin-top: 2px;
  box-shadow: 0 2px 16px #000a, 0 0 0 #fff0;
  gap: 18px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s cubic-bezier(.77,0,.18,1) 0.1s both;
}
.status-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}
.status-label {
  font-size: 1.13rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px #000a;
  transition: color 0.2s;
}
.status-divider {
  color: #ffe600;
  font-size: 1.3rem;
  font-weight: 900;
  text-shadow: 0 1px 8px #ffe60099;
}
.status-online {
  color: #00e676;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px #00e67699, 0 0 4px #fff8;
  animation: onlineGlow 1.2s infinite alternate;
}
@keyframes onlineGlow {
  from { text-shadow: 0 1px 8px #00e67699, 0 0 4px #fff8; }
  to { text-shadow: 0 2px 16px #00ffb0cc, 0 0 12px #fff; }
}
.server-status-bar-progress {
  height: 5px;
  width: 80%;
  margin: 8px auto 0 auto; /* เพิ่มระยะห่างด้านบน และจัดกลาง */
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1.5px 8px #ffe60055;
}

.server-status-bar-progress > div {
  height: 100%;
  width: 100%; /* ทำให้เส้นเต็มหลอด */
  background: linear-gradient(90deg,#ffe600 0%,#ff5252 100%);
  border-radius: 3px;
  box-shadow: 0 1.5px 8px #ff525299;
  animation: progressBarGlow 2.2s infinite alternate;
}
@keyframes progressBarGlow {
  from { box-shadow: 0 1.5px 8px #ff525299; }
  to { box-shadow: 0 2.5px 16px #ffe600cc; }
} 
/* =================================================================
   Responsive Design
================================================================= */

/* Medium Devices (Tablets, smaller desktops) - 992px and down */
@media (max-width: 992px) {
  .main-row-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  
  .main-content-col {
    top: 0;
    margin-top: 20px;
    max-width: 600px;
  }

  .fusion-row {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    margin-top: 40px;
  }

  /* Navbar adjustments */
  .navbar-glow .nav-left, .navbar-glow .nav-right {
    display: none;
  }
  .mobile-menu-btn {
    display: flex; /* Show hamburger */
  }
  
  .logo-center {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
  }
}

/* Small Devices (Portrait Tablets, Large Phones) - 768px and down */
@media (max-width: 768px) {
  .main-title-pro {
    font-size: 2rem;
  }
  
  .pro-btn-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .pro-btn-ani {
    min-width: auto;
    width: 100%;
  }
  
  .server-status-bar, .status-block {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px 15px;
  }
  
  .status-divider {
    display: none; /* Hide dividers in vertical layout */
  }

  .fusion-content-col img {
      display: none; /* Hide large character images on smaller screens */
  }
}

/* Extra Small Devices (Phones) - 600px and down */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  
  .main-row-section {
    margin-top: 40px;
  }

  .main-title-pro {
    font-size: 1.8rem;
  }
  
  .intro-section p {
    font-size: 1rem;
  }
  
  .pro-btn-ani {
    padding: 20px 0;
  }

  .pro-btn-ani img {
    height: 40px;
    width: 40px;
  }

  .pro-btn-ani .btn-text-wrapper > div:last-child {
    font-size: 1.4rem;
  }

  .fusion-status-col, .fusion-content-col {
      padding: 20px;
  }
  
  .footer-inner span {
    font-size: 0.8rem;
  }
} 