/* vibe 层：用户钦定的增补动效（waiver 理由见 tools/00_plan.md）
   —— Lenis 平滑滚动 / 自定义光标+磁性按钮 / WebGL 页间转场。
   全部只在 (pointer:fine) 且无 prefers-reduced-motion 时生效；触屏与降级环境零改动。 */

/* —— 自定义光标 —— */
@media (hover: hover) and (pointer: fine) {
  html.vibe-on, html.vibe-on a, html.vibe-on button, html.vibe-on [data-peek-to] { cursor: none; }
  .vibe-cursor { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
    mix-blend-mode: difference; will-change: transform; }
  .vibe-cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
  .vibe-cursor__ring { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(255,255,255,.85);
    border-radius: 50%; mix-blend-mode: difference; will-change: transform;
    transition: width .18s ease, height .18s ease, margin .18s ease, opacity .18s ease; }
  html.vibe-hover .vibe-cursor__ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; opacity: .9; }
}
@media (hover: none), (pointer: coarse) { .vibe-cursor, .vibe-cursor__ring { display: none; } }

/* —— 磁性按钮 —— */
[data-magnetic] { will-change: transform; }

/* —— WebGL 页间转场画布 —— */
.vibe-veil { position: fixed; inset: 0; z-index: 2147482900; pointer-events: none; opacity: 0; }
.vibe-veil.is-live { opacity: 1; }
.vibe-veil canvas { width: 100%; height: 100%; display: block; }
