* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Prompt", sans-serif;
}

body {
  background: #0a0f0a; 
  color: #fff;
}

.hero {
  width: 100%;
  padding: 0;
  margin: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}


.btn-gold {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 35px;
  background: linear-gradient(90deg, #c5a100, #ffe28a);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 30px;
  transition: 0.3s;
}

.btn-gold:hover {
  filter: brightness(1.15);
}


/* แถบเมนูหลัก */
.menu-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0px 0;      /* ลดจาก 25px → 12px */
  background: #1f1f1f;
  border-top: 1px solid #3b3b3b;
  border-bottom: 1px solid #3b3b3b;
}

/* ไอเทมแต่ละเมนู */
.menu-item {
  text-align: center;
  cursor: pointer;
}

/* ไอคอนเมนู */
.menu-item img {
  width: 30px;          /* ลดจาก 65px → 48px */
  height: 30px;
  object-fit: contain;
  margin-bottom: 4px;   /* ลดระยะห่าง */
  filter: drop-shadow(0px 0px 4px rgba(255, 214, 0, 0.4));
}

/* ภาษาไทย */
.menu-item .th {
  font-size: 14px;      /* ลดขนาด */
  font-weight: 600;
  margin: 0;
  line-height: 16px;
  color: #ffd86b;
}

/* ภาษาอังกฤษ */
.menu-item .en {
  font-size: 11px;      /* ลดขนาด */
  opacity: 0.7;
  margin: 0;
  line-height: 13px;
}

/* ปิดสีฟ้า + เส้นใต้ในเมนู */
.menu-bar a {
  text-decoration: none !important;
  color: inherit !important;  /* ใช้สีตาม .th และ .en */
}

/* เผื่อ hover */
.menu-bar a:hover {
  text-decoration: none !important;
  color: inherit !important;
}



.section-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 20px;
  color: #c8ff91;
}


.game-grid,
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.game-item,
.casino-item {
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.game-item:hover,
.casino-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #00ff6a35;
}

.game-item img,
.casino-item img {
  width: 100%;
  border-radius: 10px;
}

.game-item p,
.casino-item p {
  margin-top: 10px;
  color: #c8ff91;
  font-weight: 600;
}


.content {
  padding: 30px 20px;
  text-align: center;
  font-size: 18px;
  color: #d9ffd3;
  max-width: 900px;
  margin: auto;
}


footer {
  text-align: center;
  padding: 25px;
  font-size: 14px;
  color: #7fad7f;
  border-top: 1px solid #263d26;
  margin-top: 40px;
}

.btn-center {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.btn-register {
  display: inline-block;
  background: linear-gradient(180deg, #ffe9a3 0%, #d4a72f 60%, #b8860b 100%);
  padding: 14px 40px;
  color: #4a3500;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;       
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -3px 5px rgba(0, 0, 0, 0.25);
  transition: 0.25s;
}


.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.6s;
}


.btn-register:hover::before {
  left: 120%;
}

.btn-register:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* พื้นหลัง popup */
.popup-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* กล่อง popup */
.popup-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  animation: fadeIn .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ปุ่มใน popup */
.popup-btn {
  background: #0d6efd;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
