/*
 * 讓遊戲畫面摸起來像應用程式、不像網頁（2026-09-22）：
 *   - 文字不能反白框選、圖片與連結不能拖出視窗、手機長按不跳「複製／儲存圖片」、
 *     點按沒有瀏覽器的灰藍閃光、滑鼠停在文字上不會變成 I 字游標。
 *   - 輸入框、多行輸入、可編輯區照常能選字、貼上；要特別開放選取的區塊加 class="selectable"。
 * 由 app.py:inject_native_feel_assets 注入到每個玩家頁面；CMS、法務頁與贊助頁不載入。
 * 右鍵選單與拖曳的攔截在 static/js/native-feel.js。
 */
html, body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
}

/* 可以打字的地方照舊：能選字、能貼上、游標是 I 字。 */
input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="image"]),
textarea,
[contenteditable]:not([contenteditable="false"]) {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    cursor: text;
}

/* 想讓玩家抄下來的東西（例如代碼、帳號）：包一層 class="selectable"。 */
.selectable,
.selectable * {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* 圖片、連結、畫布拖不出去（Chrome／Safari／Edge 認這個，Firefox 由 native-feel.js 擋 dragstart）。 */
img, svg, video, canvas, picture, a {
    -webkit-user-drag: none;
}
