/* no-select-1102 — กฎกลางที่เดียว: กดรัว/กดค้างแล้วไม่เลือกข้อความ/ไม่ขึ้นแว่นขยาย-เมนูคัดลอก/ไม่มีกรอบแตะ (ให้รู้สึกเป็นแอป)
 * สวิตช์: ?nosel=0 = แบบเดิม (จำในแท็บนี้ · ?nosel=1 คืน) — คลาส html.nosel ใส่จากสคริปต์หัว index.html
 * ยกเว้น (เลือก/คัดลอกได้): input · textarea · [contenteditable] · .selectable · ข้อความในแชท (#chat-log · จอสัมผัสเฉพาะตอนเปิดแชทเต็ม) · โค้ดผูกบัญชี/เชิญ (user-select:all เดิม)
 * ตั้งที่ราก + inherit — ลูกที่ตั้ง user-select:text/all เองยังชนะ (ตั้งตรงที่ตัวมันชนะ inherit เสมอ) */
html.nosel, html.nosel body, html.nosel #hud, html.nosel #windows, html.nosel canvas {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
/* ios-loupe-1108: ทุกชิ้น (ไม่พึ่ง inherit) — iOS ตรวจ -webkit-user-select ที่ตัวที่ถูกแตะ · :where = ความเฉพาะ 0 → กฎที่ตั้ง text/all เอง (ช่องพิมพ์ · โค้ด) ยังชนะ */
:where(html.nosel) * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.nosel canvas { touch-action: none; }
html.nosel :where(button, [role="button"], a, label, summary, select) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }  /* กันดับเบิลแตะซูม · :where = ไม่ทับที่ตั้ง touch-action เอง */
html.nosel :where(img, svg, canvas, video) { -webkit-user-drag: none; }
html.nosel :where(a, img) { -webkit-touch-callout: none; }
/* ช่องพิมพ์ + ที่ให้คัดลอก */
html.nosel :is(input, textarea, [contenteditable=""], [contenteditable="true"], [contenteditable=""] *, [contenteditable="true"] *, .selectable, .selectable *) {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default;
}
html.nosel :is(input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"], input[type="range"], input[type="file"]) { -webkit-user-select: none; user-select: none; }
/* แชท: ลากเลือก/กดค้างคัดลอกได้ (ดับเบิล/ทริปเปิลคลิกกันใน no-select.js) */
html.nosel #chat-log, html.nosel #chat-log * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html.nosel :is(.ig-code, .al-code) * { -webkit-user-select: inherit; user-select: inherit; }   /* โค้ดผูกบัญชี/เชิญ (user-select:all) — ลูกตามพ่อ ไม่โดนกฎทุกชิ้นตัด */
/* ios-loupe-1108 (ต้นเหตุหลัก): จอสัมผัส ตัวอย่างแชทลอยล่างกลางระหว่างจอยกับปุ่มสกิล (ui-land.css · pointer-events:auto แม้จางเป็น opacity 0)
 * ผู้เล่นแตะรัวตรงนั้น = แตะโดนข้อความที่เลือกได้ → iOS เลือกคำ + แว่นขยาย / Android แถบ "คัดลอก" · เลือก/คัดลอกได้เฉพาะตอนเปิดแชทเต็ม (.chat-open) */
html.nosel.touch-ui:not(.chat-open) #chat-log, html.nosel.touch-ui:not(.chat-open) #chat-log * {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
