/**
 * CW Animations - Base Styles
 * Handles initial visibility and GPU hints.
 */

/* Hide elements before animation to prevent flash of unstyled content */
[data-cw-anim]:not([data-cw-anim=""]) {
  visibility: hidden;
}

/* Reveal after animation enters */
[data-cw-anim].cw-anim-entered,
[data-cw-anim].cw-anim-complete {
  visibility: visible;
}

/* Builder: always visible so elements are selectable and editable */
.breakdance-builder [data-cw-anim],
[data-cw-anim][data-breakdance-editor] {
  visibility: visible !important;
}
