/* the focus cursor (assets/js/focus.js): corners + a circle in the middle; green when focus locks */
.focus-cur { --fc: var(--ink, #0d0d0f); --fc-lock: var(--ok, #0f9f5f); position: fixed; left: 0; top: 0; z-index: 2147483000; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
:root[data-lights="off"] .focus-cur { --fc-lock: #3dff8b; }
.focus-cur.on { opacity: 1; }
.focus-cur.on.text { opacity: 0; }
/* the real pointer hides everywhere, also over things with their own (zoom-in photos, the draggable wall),
   so there are never two cursors at once; text fields keep theirs, and the reticle hides there */
.has-focus-cur body, .has-focus-cur body * { cursor: none !important; }
.has-focus-cur :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]) { cursor: text !important; }
/* open <dialog>s sit above everything, the cursor too: give the real pointer back while one is open */
.has-focus-cur body:has(dialog[open]), .has-focus-cur body:has(dialog[open]) * { cursor: auto !important; }
.has-focus-cur body:has(dialog[open]) :is(a, button, label, select, summary, [role="button"]) { cursor: pointer !important; }
.has-focus-cur body:has(dialog[open]) .focus-cur { display: none; }
/* one cursor: the lens ring from core.js steps aside, its words show under the reticle instead */
.has-focus-cur .lens-cur { display: none !important; }

.fc-ret { position: absolute; left: 0; top: 0; width: 34px; height: 34px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 1.5px var(--bg, #fff)); transition: width .3s cubic-bezier(.2, .7, .1, 1), height .3s cubic-bezier(.2, .7, .1, 1); }
.fc-ret i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--fc); transition: border-color .2s; }
.fc-ret i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.fc-ret i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.fc-ret i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.fc-ret i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.fc-ret b { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid var(--fc); transition: border-color .2s, transform .3s; }
.fc-lbl { position: absolute; left: 0; top: 34px; transform: translateX(-50%); font: 600 10px var(--f-mono, monospace); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--fc-lock); opacity: 0; transition: opacity .2s; }

.focus-cur.hunt .fc-ret { width: 64px; height: 64px; animation: fc-hunt .42s ease-in-out; }
.focus-cur.lock .fc-ret { width: 52px; height: 52px; }
.focus-cur.lock .fc-ret i, .focus-cur.lock .fc-ret b { border-color: var(--fc-lock); }
.focus-cur.lock .fc-ret b { transform: scale(1.4); }
.focus-cur.lock .fc-lbl { opacity: 1; }
.focus-cur.snap .fc-ret { width: 22px; height: 22px; }
@keyframes fc-hunt { 0% { transform: translate(-50%, -50%) scale(1.25); } 40% { transform: translate(-50%, -50%) scale(.85); } 70% { transform: translate(-50%, -50%) scale(1.06); } 100% { transform: translate(-50%, -50%) scale(1); } }
