/* สถานะเมนูที่กำลังดู (scroll-spy), ปุ่มกลับขึ้นบน และโหมดลดการเคลื่อนไหว (ต้องโหลดไฟล์นี้หลังสุด) */

/* ---------- Scroll-spy (เมนูที่กำลังอยู่) ---------- */
.spy-top.is-active { color: #ffe08a; position: relative; }
.spy-top.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ffe08a, #f5b301); box-shadow: none; }
.spy-menu.is-active { color: #ffe08a; background: rgba(245,179,1,.12); box-shadow: inset 0 0 0 1px rgba(255,224,138,.55); }
.spy-bottom { position: relative; transition: color .2s ease; }
.spy-bottom.is-active { color: #ffe08a; }
.spy-bottom.is-active::before { content: ""; position: absolute; top: -6px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #ffe08a, #f5b301); box-shadow: none; }
.cat-btn.is-active .icon3d { border-color: #ffe08a; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -8px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(255,224,138,.5), 0 0 18px rgba(245,179,1,.45); }
.cat-btn.is-active > span:last-child { color: #ffe08a; }
#secLabel .dot { box-shadow: 0 0 8px #f5b301; }

/* ---------- ปุ่มกลับขึ้นบน / อื่น ๆ ---------- */
#toTop { transition: opacity .3s ease, transform .3s ease; }
#toTop.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .lift:hover, .game-card:hover { transform: none; }
}
