/* ==========================================================
   MUIN777 — ปุ่มหลากสีสดใส
   โหลดเป็นไฟล์ "สุดท้าย" ต่อจาก muin-red-gold.css
   ========================================================== */

/* ---------- ปุ่มหัวเว็บ ---------- */
/* สมัครสมาชิก = เขียวนีออน (ตัดกับพื้นแดงชัดที่สุด) */
.top-register {
  background: linear-gradient(180deg, #b8ff7a, #3fe03a 50%, #14a01c);
  border: 2px solid #e2ffd0;
  color: #04350a;
  text-shadow: 0 1px 0 #ffffff88;
  box-shadow: 0 3px 0 #0b6a12, 0 6px 14px #00000055;
  animation: pulseGreen 2.2s ease-in-out infinite;
}
/* เข้าสู่ระบบ = ฟ้าสด */
.top-login {
  background: linear-gradient(180deg, #6ddcff, #1f8cf0 55%, #1250c7);
  border: 2px solid #c8ecff;
  color: #fff;
  text-shadow: 0 1px 2px #0a2a6a99;
  box-shadow: 0 3px 0 #0a3a96, 0 6px 14px #00000055;
}
@keyframes pulseGreen {
  0%,100% { box-shadow: 0 3px 0 #0b6a12, 0 0 0 0 #7dff5aaa }
  50%     { box-shadow: 0 3px 0 #0b6a12, 0 0 0 10px #7dff5a00 }
}

/* ---------- ปุ่มในแบนเนอร์ ---------- */
/* ดูผลหวยล่าสุด = ชมพูแมเจนต้า */
.hero-links .primary-link {
  background: linear-gradient(180deg, #ff8ccf, #ff2d8a 55%, #c2105f);
  border: 2px solid #ffd0e8;
  color: #fff;
  text-shadow: 0 1px 2px #6a0a3a99;
  box-shadow: 0 3px 0 #7d0a40, 0 6px 14px #00000055;
  animation: pulseMagenta 2.4s ease-in-out infinite;
}
/* เลือกเกม = ม่วงไวโอเลต */
.hero-links .soft-link {
  background: linear-gradient(180deg, #c8a0ff, #7a3df0 55%, #4a1bb8);
  border: 2px solid #e6d4ff;
  color: #fff;
  text-shadow: 0 1px 2px #2a0a6a99;
  box-shadow: 0 3px 0 #2c0e7a, 0 6px 14px #00000055;
}
@keyframes pulseMagenta {
  0%,100% { box-shadow: 0 3px 0 #7d0a40, 0 0 0 0 #ff4fa0aa }
  50%     { box-shadow: 0 3px 0 #7d0a40, 0 0 0 10px #ff4fa000 }
}

/* ---------- ปุ่มกรองประเภทหวย (คนละสีต่อปุ่ม) ---------- */
.results-section .filter:nth-child(1)  { --c1:#fff0a6; --c2:#ffb300; --c3:#a86a00; --cb:#fff6c9; --t:#6b0a0f }  /* ทุกประเภท: ทอง */
.results-section .filter:nth-child(2)  { --c1:#6ddcff; --c2:#1f6fe0; --c3:#0a3a96; --cb:#c8ecff; --t:#fff }     /* รัฐบาล: ฟ้า */
.results-section .filter:nth-child(3)  { --c1:#ff9ccf; --c2:#e0287f; --c3:#8a0a48; --cb:#ffd0e8; --t:#fff }     /* ออมสิน: ชมพู */
.results-section .filter:nth-child(4)  { --c1:#8aef6a; --c2:#1fa832; --c3:#0b6a1a; --cb:#d4ffc4; --t:#fff }     /* ธ.ก.ส.: เขียว */
.results-section .filter:nth-child(5)  { --c1:#ffc060; --c2:#ff7a00; --c3:#a84a00; --cb:#ffe2b0; --t:#fff }     /* หุ้นไทย: ส้ม */
.results-section .filter:nth-child(6)  { --c1:#c8a0ff; --c2:#7a3df0; --c3:#3e1aa0; --cb:#e6d4ff; --t:#fff }     /* หุ้นต่างประเทศ: ม่วง */
.results-section .filter:nth-child(7)  { --c1:#5ef0e0; --c2:#0fb5a8; --c3:#07726c; --cb:#c4fff6; --t:#04332f }  /* ลาว: เขียวมิ้นต์ */
.results-section .filter:nth-child(8)  { --c1:#8ea2ff; --c2:#4a52e8; --c3:#262a9a; --cb:#d0d6ff; --t:#fff }     /* ฮานอย: น้ำเงินอินดิโก้ */
.results-section .filter:nth-child(9)  { --c1:#e6ff6a; --c2:#a8d800; --c3:#5f7a00; --cb:#f4ffb8; --t:#2f3d00 }  /* เลขชุด: เขียวมะนาว */
.results-section .filter:nth-child(10) { --c1:#ff8ab0; --c2:#d4144f; --c3:#7a0a2c; --cb:#ffc4d6; --t:#fff }     /* ยี่กี VIP: กุหลาบ */

.results-section .filter,
.results-section .filter.active,
.results-section .filter:hover {
  background: linear-gradient(180deg, var(--c1, #ffd84a), var(--c2, #e0a100));
  border: 2px solid var(--cb, #fff6c9);
  color: var(--t, #fff);
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 3px 0 var(--c3, #8a5a00), 0 5px 10px #00000044;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.results-section .filter { filter: saturate(.85) brightness(.94); }
.results-section .filter:hover { filter: saturate(1.1) brightness(1.05); transform: translateY(-2px); }
.results-section .filter.active {
  filter: none;
  transform: translateY(-2px) scale(1.05);
  border-color: #fff;
  box-shadow: 0 3px 0 var(--c3, #8a5a00), 0 0 0 3px #ffffff55, 0 0 18px var(--c1, #ffd84a);
}

/* ---------- การ์ดเกม: ไอคอนคนละสี ---------- */
.games-section .game-card:nth-child(1) .game-icon {
  background: radial-gradient(circle at 30% 25%, #c8a0ff, #7a3df0 60%, #3e1aa0);
  box-shadow: 0 4px 0 #26106a, 0 0 16px #7a3df099;
}
.games-section .game-card:nth-child(2) .game-icon {
  background: radial-gradient(circle at 30% 25%, #ffc060, #ff7a00 60%, #a84a00);
  box-shadow: 0 4px 0 #6a3000, 0 0 16px #ff7a0099;
}
.games-section .game-card:nth-child(3) .game-icon {
  background: radial-gradient(circle at 30% 25%, #ff9ccf, #e0287f 60%, #8a0a48);
  box-shadow: 0 4px 0 #56062c, 0 0 16px #e0287f99;
}
.games-section .game-card:nth-child(4) .game-icon {
  background: radial-gradient(circle at 30% 25%, #8aef6a, #1fa832 60%, #0b6a1a);
  box-shadow: 0 4px 0 #064210, 0 0 16px #1fa83299;
}
.games-section .game-card:nth-child(1) { border-color: #9b6bff; }
.games-section .game-card:nth-child(2) { border-color: #ff9a3d; }
.games-section .game-card:nth-child(3) { border-color: #ff6aa8; }
.games-section .game-card:nth-child(4) { border-color: #5ee06a; }

/* ---------- ปุ่มลิงก์โปรโมชั่น / ข่าว ---------- */
.promo-section .promo-link {          /* ดูโปรโมชั่นทั้งหมด = ส้มสด */
  background: linear-gradient(180deg, #ffc060, #ff7a00 55%, #d45500);
  border: 2px solid #ffe2b0;
  color: #fff;
  text-shadow: 0 1px 2px #6a300099;
  box-shadow: 0 3px 0 #8a3a00, 0 6px 12px #00000055;
}
.updates-section .promo-link {        /* อ่านข่าวทั้งหมด = มิ้นต์-ฟ้า */
  background: linear-gradient(180deg, #5ef0e0, #0fb5a8 55%, #07847e);
  border: 2px solid #c4fff6;
  color: #fff;
  text-shadow: 0 1px 2px #04403c99;
  box-shadow: 0 3px 0 #055a56, 0 6px 12px #00000055;
}
.promo-section .promo-link:hover,
.updates-section .promo-link:hover { filter: brightness(1.1); }

/* ---------- การ์ดข่าว: แถบบนคนละสี ---------- */
.updates-section .story-card:nth-child(1) { border-top-color: #ff6aa8; }
.updates-section .story-card:nth-child(2) { border-top-color: #6ddcff; }
.updates-section .story-card:nth-child(3) { border-top-color: #8aef6a; }
.updates-section .story-card:nth-child(1) span { color: #ff9ccf; }
.updates-section .story-card:nth-child(2) span { color: #8ee4ff; }
.updates-section .story-card:nth-child(3) span { color: #a8f58a; }

@media (prefers-reduced-motion: reduce) {
  .top-register, .hero-links .primary-link { animation: none; }
}