/* The copy moment: the effect layer, the stamp (the Tiles mark), the ink rings, the copy toast's look.
   Everything here is transform and opacity only, pointer-events none, and out of layout.
   The toast's slot (position, z-order) is .toast in shell.css. Tokens: --bg --t1 --t3 (see tokens.css). */

#fx { position: fixed; inset: 0; z-index: 260; pointer-events: none; overflow: hidden; contain: strict; }
#fx * { pointer-events: none; }
.fx-at, .fx-ptr, .fx-ptr2 { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.fx-at { z-index: 0; } .fx-ptr { z-index: 1; } .fx-ptr2 { z-index: 2; }   /* rings under the mark, the print over both */
/* no blanket will-change: animated transforms are promoted while they run, and idle layers cost memory */

/* while the pointer is the stamp the arrow steps aside; cursor.js sets cursor:none inline on the hovered chain only, so no document-wide restyle */

/* ink: rings that bloom from the pointer in the work's own colour. A ground-coloured line on both edges keeps them readable on any image. */
.fx-ring { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 5px solid var(--ink-c); box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 2px var(--bg); }
.fx-ring.thin { border-width: 2px; box-shadow: 0 0 0 1px var(--bg), inset 0 0 0 1px var(--bg); }
.fx-ring.dry { border: 2px solid var(--t3); box-shadow: 0 0 0 1px var(--bg), inset 0 0 0 1px var(--bg); left: -24px; top: -24px; width: 48px; height: 48px; }
.fx-ring.still { left: -32px; top: -32px; width: 64px; height: 64px; }   /* reduced motion: no travel, it only fades */

/* the stamp: the Tiles mark, solid text-1, on a ground-coloured circle so it holds on any image, light or dark; hot spot is its middle.
   Geometry is shared with cursor.js (MARK_PX 34, PUCK_R 31, PAD 5): the circle is centred on the mark's centre, r 31, and the tiles'
   travel is clamped so the farthest tile edge stays PAD px inside it. Even sizes keep the centre on a whole pixel at any DPR. */
.fx-stamp { --mark: 34px; --puck-r: 31px; position: absolute; left: calc(var(--mark) / -2); top: calc(var(--mark) / -2); width: var(--mark); height: var(--mark); transform-origin: 50% 50%; }
.fx-stamp::before { content: ""; position: absolute; left: calc(50% - var(--puck-r)); top: calc(50% - var(--puck-r)); width: calc(var(--puck-r) * 2); height: calc(var(--puck-r) * 2); border-radius: 50%; background: var(--s1); box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgba(0, 0, 0, .3); }
.fx-stamp svg { position: relative; display: block; width: var(--mark); height: var(--mark); overflow: visible; }
.fx-stamp .tile path { fill: var(--t1); }
.fx-stamp[data-state="dry"] .tile path { fill: var(--t3); }

/* the copy toast (built in js/copy.js inside the shared .toast slot, bottom centre): Tiles mark, one word, a thumbnail of what was copied */
.toast.copy-toast { gap: 10px; padding: 8px 10px 8px 14px; min-height: 0; background: var(--pop-bg); box-shadow: 0 0 0 1px var(--line-2), var(--pop-shadow); z-index: 270; }
.toast.copy-toast .cp-mark { flex: none; display: block; width: 18px; height: 18px; color: var(--text-1); }
.toast.copy-toast .cp-mark svg { display: block; width: 100%; height: 100%; }
.toast.copy-toast .cp-txt { min-width: 0; font-size: var(--t-14); line-height: 1.3; color: var(--text-2); }
.toast.copy-toast .cp-txt b { color: var(--text-1); font-weight: var(--w-semibold); }
.toast.copy-toast .cp-thumb { flex: none; display: block; width: 26px; height: 26px; border-radius: 6px; object-fit: cover; object-position: top; background: var(--surface-3); box-shadow: 0 0 0 1px var(--hover-ring); }
.toast.copy-toast.has-thumb { padding-right: 8px; }
.toast.copy-toast.err { white-space: normal; max-width: min(420px, calc(100% - var(--gutter) * 2)); padding: 10px 16px 10px 14px; align-items: flex-start; border-radius: 16px; }
.toast.copy-toast.err .cp-mark { margin-top: 1px; color: var(--text-3); }
.toast.copy-toast.err .cp-txt { color: var(--text-2); }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the old #slip is retired: every confirmation goes through the one .toast slot (js/copy.js showSlip) */
#slip { display: none !important; }
