/* TRIX / solabordanja.si – Main stylesheet: ONLY @keyframes (approved exception, skill etch-studio hard rule 3).
   Everything else lives in the BEM class styles (etch/styles.mjs). Source of truth: etch/main.css → build.mjs. */

/* goggle hero (scroll-driven, animation-timeline: scroll(root)) */
@keyframes trix-gh-open {
  60% { opacity: 1; }
  to { scale: 4.2; opacity: 0; }
}
@keyframes trix-gh-rim {
  45% { opacity: 0; }
  to { scale: 4.2; opacity: 0; }
}
@keyframes trix-gh-photo {
  to { scale: 1.46; translate: 0 calc(3cqh + var(--gh-shift, 0px) + var(--ih) * 0.0215); }
}
@keyframes trix-gh-badge {
  to { opacity: 1; }
}
@keyframes trix-gh-fade {
  to { opacity: 0; translate: 0 -40px; visibility: hidden; }
}

/* header pill on phones: up to the screen edge while scrolling */
@keyframes trix-header-top {
  to { inset-block-start: 3px; }
}

/* .to-top appears after the hero (scroll-driven, see animation-range) */
@keyframes trix-appear {
  to { opacity: 1; visibility: visible; translate: 0 0; }
}

/* finder result / level panel when they switch */
@keyframes trix-rise {
  from { opacity: 0; translate: 0 12px; }
}

/* LevelPath: "Čestitamo!" stamp lands on the checklist */
@keyframes trix-stamp {
  from { opacity: 0; scale: 1.8; }
  60% { opacity: 1; scale: 0.94; }
  to { opacity: 1; scale: 1; }
}
