/* touch.css — companion of js/touch-tap-fix.js: how a finger is treated on this site.
 * Applies only on devices used with a finger (no hover, or a coarse pointer); a mouse is untouched.
 */
@media (hover: none), (pointer: coarse) {
    /* One tap should act at once: the third-of-a-second wait exists only so the browser can
       watch for a second tap (zoom). `*` has no specificity, so anything with its own
       touch-action (the book's pages, the drag handle, pan-y areas) keeps it. */
    * { touch-action: manipulation; }

    /* No grey flash on tap, and no text selected by a finger — except where text is
       meant to be read or edited. */
    * { -webkit-tap-highlight-color: transparent; }
    body { -webkit-user-select: none; user-select: none; }
    input, textarea, select, [contenteditable],
    .chat-messages, .chat-text, .swal2-html-container, pre, code {
        -webkit-user-select: text; user-select: text;
    }
}

/* The way back from a pinch (made and placed by touch-tap-fix.js, shown only while the
   page is zoomed in). One fixed palette: white glyph on slate-900 with a light ring, like
   the close button, so it reads on any page. */
.rk-unzoom {
    display: none; position: fixed; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(15,23,42,0.85); color: #ffffff;
    font-size: 18px; align-items: center; justify-content: center; padding: 0; cursor: pointer;
    transform-origin: top left; z-index: 2147483000; -webkit-tap-highlight-color: transparent;
}
.rk-unzoom.show { display: flex; }
