/* Investuj Peniaze – interaktívna vrstva (k assets/js/interactive.js). */

/* mince */
.coin-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 120; pointer-events: none; }
.hero .frame.jar-jig .scene-front img { animation: jar-jig .55s var(--ease); }
@keyframes jar-jig { 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }

/* žiara hrán pod myšou */
.edge-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .35s ease; padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 226, 140, .95), rgba(237, 182, 54, .35) 35%, rgba(237, 182, 54, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.edge-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 226, 140, .12), rgba(255, 226, 140, 0) 60%); -webkit-mask: none; mask: none; }
:hover > .edge-glow { opacity: 1; }

/* hero: hĺbka podľa myši (homepage: stena, nápis a pohár zvlášť; akadémia: len nápis, fotka je jeden záber) */
.hero:not(.akad-hero) .scene-back img { translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }
.hero:not(.akad-hero) .scene-front img { translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 8px); }
.hero .hero-word { translate: calc(var(--px, 0) * -26px) calc(var(--py, 0) * -12px); }

/* zlatý prach v Horizonte */
/* .hz-stage je sticky (pripnutá scéna) – jej position sa nemení, prach sa pozicuje voči nej */
.gold-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hz-stage > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-word, .hero .scene-back img, .hero .scene-front img { translate: none; }
}
