/* ============================================================
   GTAVI INSIDER — holographic visual layer (holo.css)
   Neon-noir Vice City foil treatment. Pure CSS fallback tier:
   iridescent sheen overlays + chromatic shimmer. The WebGL tier
   (holo.js) only ADDS a canvas; nothing here blocks first paint.
   All motion disabled under prefers-reduced-motion.
   ============================================================ */

/* Hero becomes a positioned stage for the holo canvas (non-destructive). */
.hero { position: relative; }
.holo-stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;               /* hero content keeps its own stacking */
  opacity: .9;
}
.hero > * { position: relative; z-index: 1; }

/* ---------- Foil sheen: book covers, brand mark, hero board ----------
   Apply via: .cover-wrap.holo-sheen, .product.holo-sheen,
   .hero-board.holo-sheen, or any [data-holo] element. */
.holo-sheen { position: relative; isolation: isolate; overflow: hidden; }
.holo-sheen::after {
  content: ""; position: absolute; inset: -40%;
  pointer-events: none; z-index: 2;
  background:
    linear-gradient(115deg,
      transparent 20%,
      rgba(255,46,136,.28) 32%,
      rgba(200,107,255,.34) 42%,
      rgba(0,229,255,.34) 52%,
      rgba(117,245,22,.22) 62%,
      transparent 74%),
    conic-gradient(from 200deg at 70% 30%,
      rgba(255,46,136,.14), rgba(0,229,255,.14),
      rgba(200,107,255,.14), rgba(255,46,136,.14));
  background-size: 220% 220%, 160% 160%;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .6s ease;
}
.holo-sheen.holo-on::after { opacity: 1; animation: holo-foil 9s ease-in-out infinite alternate; }
@keyframes holo-foil {
  from { background-position: 0% 20%, 30% 60%; transform: translateX(-6%) rotate(-2deg); }
  to   { background-position: 100% 80%, 70% 20%; transform: translateX(6%) rotate(2deg); }
}
/* Chromatic edge on sheen targets */
.holo-sheen.holo-on::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.35), inset 0 0 22px rgba(200,107,255,.18);
}

/* ---------- Chromatic aberration shimmer: hero headline ---------- */
.holo-chroma { position: relative; }
.holo-chroma.holo-on {
  animation: holo-chroma 7s ease-in-out infinite;
}
@keyframes holo-chroma {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  25% { text-shadow: -2px 0 0 rgba(255,46,136,.55), 2px 0 0 rgba(0,229,255,.55); }
  50% { text-shadow: -3px 0 1px rgba(0,229,255,.5), 3px 0 1px rgba(200,107,255,.5); }
  75% { text-shadow: -1px 0 0 rgba(200,107,255,.55), 1px 0 0 rgba(255,46,136,.55); }
}

/* ---------- Floating holo cards (WebGL tier adds these divs) ---------- */
.holo-card {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(90px, 12vw, 170px); aspect-ratio: 3 / 4.4;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255,46,136,.22), rgba(200,107,255,.22),
      rgba(0,229,255,.22), rgba(117,245,22,.14));
  border: 1px solid rgba(0,229,255,.4);
  box-shadow: 0 0 24px rgba(0,229,255,.25), inset 0 0 18px rgba(200,107,255,.25);
  backdrop-filter: blur(1px);
  opacity: 0; transition: opacity 1.2s ease;
  will-change: transform;
}
.holo-card.holo-on { opacity: .8; }

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .holo-sheen.holo-on::after { animation: none; opacity: .55; }
  .holo-chroma.holo-on { animation: none; }
  .holo-card { display: none; }
  .holo-stage { display: none; }
}
