:root {
  /* พื้นหลังหลักและกล่องการ์ดตามกราฟิก */
  --bg-black: #000000;
  --bg-card: #191919;
  --bg-card-inner: #222222;
  --border-card: #2f2f2f;
  --border-gold-subtle: rgba(243, 186, 47, 0.35);

  /* โทนสีทอง Warm & Lemon Gold แบบ PG Official */
  --gold-text: #f5cf22;
  --gold-title: #f7df43;
  --gold-btn-gradient: linear-gradient(180deg, #f7d337 0%, #e5a90e 100%);
  --gold-btn-border: #ffd747;
  --gold-glow: 0 0 15px rgba(245, 207, 34, 0.3);

  /* ข้อความ */
  --text-pure: #ffffff;
  --text-body: #d2d2d2;
  --text-muted: #9a9a9a;

  /* สีสถานะกล่องข้อดี/ข้อควรรู้ */
  --border-green: #25a244;
  --border-red: #d90429;
}

body {
  background-color: var(--bg-black);
  color: var(--text-body);
  font-family:
    "Kanit",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* แถบ Header Navbar */
.navbar {
  background: #000000 !important;
  border-bottom: 1px solid #1f1f1f;
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-link {
  color: #e0e0e0 !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding-left: 12px !important;
  padding-right: 12px !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-text) !important;
}

/* ปุ่มกดสไตล์ Capsule/Pill ตามภาพ */
.btn-gold {
  background: var(--gold-btn-gradient);
  color: #000000 !important;
  font-weight: 700;
  border: 1px solid var(--gold-btn-border);
  border-radius: 50rem;
  padding: 8px 24px;
  box-shadow: var(--gold-glow);
  transition: all 0.25s ease;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffe066 0%, #f5cf22 100%);
  box-shadow: 0 0 20px rgba(245, 207, 34, 0.6);
  transform: translateY(-2px);
  color: #000000 !important;
}

.btn-pill-dark {
  background: #111111;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 50rem;
  padding: 8px 22px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-pill-dark:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background: #1a1a1a;
}

/* หัวข้อและ Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif !important;
  font-weight: 600;
  color: var(--text-pure);
  letter-spacing: -0.01em;
}

.text-gold {
  color: var(--gold-title) !important;
}

.lead,
p.lead {
  color: #b5b5b5 !important;
  font-size: 1rem;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* กล่องการ์ดตามกราฟิกต้นฉบับ */
.custom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.custom-card:hover {
  border-color: var(--border-gold-subtle);
  transform: translateY(-3px);
}

/* ป้ายชื่อเกมสีทองทรงมน (Game Pill Badge) */
.game-title-badge {
  background: var(--gold-btn-gradient);
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50rem;
  padding: 6px 18px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border: 1px solid #ffe266;
}

.game-title-badge:hover {
  color: #000000;
  filter: brightness(1.1);
}

/* กรอบข้อดี (Green Border) และ ข้อควรรู้ (Red Border) */
.card-pros {
  background-color: #121212;
  border: 1.5px solid var(--border-green) !important;
  border-radius: 14px;
}

.card-cons {
  background-color: #121212;
  border: 1.5px solid var(--border-red) !important;
  border-radius: 14px;
}

/* ตารางข้อมูล */
.table-dark {
  --bs-table-bg: var(--bg-card);
  --bs-table-striped-bg: #141414;
  --bs-table-border-color: #2b2b2b;
  border-color: #2b2b2b;
  color: var(--text-body);
}

.table thead th {
  background-color: #0f0f0f !important;
  color: var(--gold-title) !important;
  border-bottom: 2px solid var(--border-card);
  padding: 12px 16px;
  font-weight: 700;
}

/* Footer ตามมู้ดภาพ */
footer {
  background: #000000;
  border-top: 1px solid #1a1a1a;
}

/* ==============================================================================
   MOBILE BOTTOM NAVIGATION (DARK & GOLD LUXURY)
   ============================================================================== */

@media (min-width: 992px) {
  #account-actions-mobile {
    display: none !important;
  }
}

#account-actions-mobile {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  pointer-events: none;
}

#account-actions-mobile .outer-wrapper {
  display: flex;
  align-items: flex-end;
  pointer-events: auto;
  position: relative;
  filter: drop-shadow(0 -5px 20px rgba(0, 0, 0, 0.85));
}
#account-actions-mobile .left-wrapper,
#account-actions-mobile .right-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  z-index: 2;
  height: 64px;
  padding-bottom: 4px;
  background: linear-gradient(180deg, #18191f 0%, #0d0e12 100%);
  border-top: 1.5px solid rgba(255, 210, 104, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

#account-actions-mobile .left-wrapper {
  border-top-left-radius: 18px;
  border-top-right-radius: 28px;
}

#account-actions-mobile .right-wrapper {
  border-top-right-radius: 18px;
  border-top-left-radius: 28px;
}
#account-actions-mobile .center-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 3;
  width: 68px;
  height: 68px;
  margin: 0 4px 14px;
  padding-bottom: 6px;
  background: linear-gradient(145deg, #ffe066 0%, #f5af19 50%, #e65c00 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 4px 15px rgba(245, 175, 25, 0.5),
    0 0 25px rgba(245, 175, 25, 0.3),
    inset 0 2px 3px rgba(255, 255, 255, 0.6);
  border: 2px solid #fff2a8;
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.25s;
  animation: pulse-glow 2.5s infinite ease-in-out;
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 4px 15px rgba(245, 175, 25, 0.5),
      0 0 15px rgba(245, 175, 25, 0.3);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 4px 22px rgba(245, 175, 25, 0.8),
      0 0 30px rgba(255, 224, 102, 0.6);
    transform: translateY(-2px);
  }
}
#account-actions-mobile .center-wrapper:active {
  transform: scale(0.92);
}
#account-actions-mobile .center-wrapper .selected {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  border-radius: 50%;
}

.selected img {
  width: 44px !important;
  max-width: 44px !important;
  height: auto;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}

.center-wrapper:hover .selected img {
  transform: translateX(-50%) scale(1.08);
}

#account-actions-mobile .center-wrapper p {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #120900 !important;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-bottom: 2px !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

#account-actions-mobile .fake-center-bg-wrapper {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 50px;
  overflow: hidden;
}

#account-actions-mobile .fake-center-bg-wrapper svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 108px;
  transform: translateX(-50%);
}

#account-actions-mobile .fake-center-bg-wrapper svg path {
  fill: #121318;
}
#account-actions-mobile .item-wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.ic-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.ic-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ic-img img {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 3px;
  padding-bottom: 0;
  filter: drop-shadow(0 2px 6px rgba(255, 210, 104, 0.35));
  transition: all 0.2s ease;
}

/* เอฟเฟกต์เมื่อแตะปุ่ม */
.ic-img a:active img,
#account-actions-mobile .item-wrapper:active .ic-img img {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 0 10px rgba(255, 210, 104, 0.8));
}

#account-actions-mobile .item-wrapper .text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #c0c5d0;
  transition: all 0.2s ease;
  position: static;
  transform: none;
  white-space: nowrap;
  line-height: 1.2;
}

#account-actions-mobile .item-wrapper:hover .text,
#account-actions-mobile .item-wrapper:active .text {
  color: #ffd268 !important;
  text-shadow: 0 0 8px rgba(255, 210, 104, 0.6);
  font-weight: 600;
}
/*  */
/* กรอบตัดรูปภาพเกมให้มนและรองรับ Hover Zoom */
.game-thumb-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 210, 104, 0.25);
  background: #0d0e12;
}

.game-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease-in-out;
}

.custom-card:hover .game-thumb {
  transform: scale(1.06);
}
@media (max-width: 991.98px) {
  body {
    padding-bottom: 75px !important;
  }
}
@media (max-width: 767.98px) {
  .hero-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero-btn-group .btn-main-action {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
  }
  .hero-btn-sub {
    display: flex;
    gap: 8px;
  }
  .hero-btn-sub a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.88rem;
  }
}
.game-icon-card {
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.game-icon-img {
  width: 105px !important;
  height: 110px !important;
  max-width: 105px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}
.game-icon-card:hover .game-icon-img,
.game-icon-card:active .game-icon-img {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 18px rgba(245, 207, 34, 0.4);
  filter: brightness(1.1);
}
/* 1. กรอบเวทีแสดงหน้าจอเกมจำลอง */
.live-demo-stage {
    background-color: #050608;
    border: 1.5px solid rgba(255, 200, 59, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 
                0 0 25px rgba(245, 207, 34, 0.15);
    position: relative;
    overflow: hidden;
}
.live-demo-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: slow-zoom-demo 14s infinite alternate ease-in-out;
    filter: brightness(0.8);
    will-change: transform;
}

@keyframes slow-zoom-demo {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1.5%, -1%);
    }
}
.light-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 215, 0, 0.03) 40%,
        rgba(255, 215, 0, 0.28) 50%,
        rgba(255, 215, 0, 0.03) 60%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: sweep-light-shimmer 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes sweep-light-shimmer {
    0%, 30% {
        left: -150%;
    }
    60%, 100% {
        left: 150%;
    }
}

.live-demo-content {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 12, 16, 0.45) 0%, rgba(5, 6, 8, 0.88) 100%);
    backdrop-filter: blur(1.5px);
    z-index: 3;
}
.live-badge {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(34, 197, 94, 0.55);
    padding: 4px 14px;
    border-radius: 50rem;
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: live-blink-glow 1.5s infinite ease-in-out;
}

@keyframes live-blink-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

.title-glow {
    color: var(--gold-title, #f7df43) !important;
    text-shadow: 0 0 16px rgba(245, 207, 34, 0.65), 0 2px 5px rgba(0, 0, 0, 0.95);
}

.text-shadow {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.btn-electric {
    box-shadow: 0 0 15px rgba(245, 175, 25, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-electric:hover {
    box-shadow: 0 0 25px rgba(255, 200, 59, 0.85);
    transform: translateY(-2px) scale(1.02);
}
.text-muted {
    color: #b0b4be !important; 
}
#account-actions-mobile .item-wrapper .text {
    color: #d1d5db;
}