/* Grimoire — motion. Menu UI moves crisply and briefly; scene atmosphere drifts
   slowly and never stops. Nothing bounces, nothing overshoots more than 2%. */
:root {
  --dur-instant: 90ms; /* @kind other */
  --dur-fast: 130ms;   /* @kind other */
  --dur-base: 210ms;   /* @kind other */
  --dur-slow: 380ms;   /* @kind other */
  --dur-scene: 720ms;  /* @kind other */
  --dur-drift: 9s;     /* @kind other */
  --dur-pulse: 2.4s;   /* @kind other */

  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);   /* @kind other */
  --ease-plate: cubic-bezier(0.16, 0.84, 0.44, 1);  /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);        /* @kind other */
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);         /* @kind other */
  --ease-drift: cubic-bezier(0.45, 0, 0.55, 1);     /* @kind other */

  /* Interaction deltas — apply these, don't invent new ones.
     Hover LIGHTENS (never opacity-fades). Press DARKENS and sinks 1px. */
  --lift-hover: translateY(-1px); /* @kind other */
  --sink-press: translateY(1px); /* @kind other */
  --scale-press: 0.985; /* @kind other */
  --scale-pop: 1.03;     /* @kind other */
  --brighten-hover: brightness(1.09) saturate(1.04); /* @kind other */
  --dim-press: brightness(0.92); /* @kind other */
  --dim-disabled: 0.42; /* @kind other */
}

@keyframes grimoire-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--aqua-300), 0 0 14px rgba(143, 227, 240, 0.3); }
  50% { box-shadow: 0 0 0 2px var(--aqua-200), 0 0 26px rgba(143, 227, 240, 0.6); }
}
@keyframes grimoire-drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-1.5%, -2.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes grimoire-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes grimoire-shimmer {
  from { background-position: -140% 0; }
  to { background-position: 240% 0; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-base: 1ms; /* @kind other */ --dur-slow: 1ms; /* @kind other */ --dur-scene: 1ms; /* @kind other */ }
}
