/* Eclairs, Toffee and Royale: product arrivals (replacing the films) and flavour interactions.
   Packaging images are shown exactly as supplied; they are only moved, scaled and turned. */

/* The oversized collection name behind the packs, as in KAKO: very faint, never competing with the packaging. */
.arrival__ghost {
  position: absolute; left: 50%; top: 44%; z-index: 0; margin: 0;
  font-family: var(--font-display); font-weight: 400; font-size: min(24vw, 46vh); line-height: 0.8;
  letter-spacing: 0.04em; white-space: nowrap; color: rgb(231 220 206 / 0.055);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; user-select: none;
  will-change: transform, opacity;
}
.arrival { position: absolute; inset: 0; z-index: 1; perspective: 1600px; perspective-origin: 50% 45%; pointer-events: none; }
.arrival__pack {
  position: absolute; left: 0; top: 0; display: block; object-fit: contain; opacity: 0;
  transform-origin: 50% 50%; backface-visibility: hidden; user-select: none; will-change: transform, opacity;
}
/* A soft contact shadow under the arriving packs; it fades as they settle into the line-up. */
.arrival__shadow {
  position: absolute; left: 0; top: 0; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0));
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.scene--arrival .scene__head, .scene--arrival .toffee-hero__head { z-index: 2; }

/* Flavours: point at one (or tap it on a phone) and it comes forward while the others step back. */
.lineup__img, .shelf__img { transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), opacity 320ms ease; }
.shelf__img { pointer-events: auto; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .shelf:has(.shelf__img:hover) .shelf__img { opacity: 0.72; }
  .shelf:has(.shelf__img:hover) .shelf__img:hover { opacity: 1; transform: scale(1.035) translateY(-4px); }
}
.lineup.has-pick .lineup__inner { opacity: 0.72; }
.lineup.has-pick .lineup__inner.is-picked { opacity: 1; transform: scale(1.03); }
.shelf.has-pick .shelf__img { opacity: 0.72; }
.shelf.has-pick .shelf__img.is-picked { opacity: 1; transform: scale(1.035) translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .lineup__img, .shelf__img { transition: opacity 200ms linear; }
  .shelf:has(.shelf__img:hover) .shelf__img:hover, .shelf.has-pick .shelf__img.is-picked { transform: none; }
}
