/**
 * Notebook gate effects restore + no-drag (PC + notebook)
 */

/* ── คืนเอฟเฟกต์หน้าเกตบนโน้ตบุ๊ก ── */
@media (min-width: 768px) and (max-width: 1023px) {
  html.gate-locked #heroCanvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  html.gate-locked .hero-grid-bg {
    display: block !important;
    opacity: 0.55 !important;
  }

  html.gate-locked .hero-radial {
    display: block !important;
    opacity: 1 !important;
  }

  /* อย่าให้ perf-lite ฆ่าแสงชื่อบนโน้ตบุ๊ก */
  html.gate-locked.perf-lite .hero-title-glow {
    animation: glowPulse 3.5s ease-in-out infinite !important;
    opacity: 0.7 !important;
  }

  html.gate-locked .css-snow {
    display: block !important;
    z-index: 1 !important;
    opacity: 0.85;
  }
}

/* แล็ปท็อปจอเตี้ยที่ถูกจัดเป็น desktop ก็ต้องเห็นเอฟเฟกต์ */
@media (min-width: 1024px) and (max-height: 900px) {
  html.gate-locked #heroCanvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ── ห้ามลาก / ห้ามคลิกซ้ายลากทั้งคอม+โน้ตบุ๊ก (≥768) ── */
@media (min-width: 768px) {
  html, body {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
  }

  img, a, button, .btn, .sf-btn, .store-pill-nav-btn,
  .nav-logo, .hero-cta, .hero-logo-wrap, .sf-card, .sf-img,
  .purchase-feed-card, .live-stat-card, .goatx-inner, canvas {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    draggable: false;
  }

  img {
    -webkit-user-drag: none !important;
    pointer-events: auto;
  }

  /* ช่องกรอกยังเลือกข้อความได้ */
  input, textarea, [contenteditable="true"],
  input *, textarea * {
    -webkit-user-select: text !important;
    user-select: text !important;
  }
}
