/* LUNAR HAZE — CASE EFFECTS (see assets/js/case-fx.js) */
.cfx { position: relative; max-width: 520px; margin: 0 auto; }
.cfx-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: #000; touch-action: pan-y; }
.cfx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.cfx-btn { display: block; margin: 12px auto 0; padding: 9px 16px; font: 700 14px "Courier Prime", "Courier New", monospace; color: #2B2A5E; background: #E1F66B; border: 2px solid #2B2A5E; box-shadow: 3px 3px 0 #2B2A5E; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cfx-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #2B2A5E; }

/* 🌙 Glow: lights go out fast, the glow starts bright and fades slowly */
.cfx-glow .cfx-day { transition: opacity .35s ease, filter .35s ease; }
.cfx-glow .cfx-glowimg { opacity: 0; transition: opacity .25s ease .15s; }
.cfx-glow.is-off .cfx-day { opacity: 0; filter: brightness(.2); }
.cfx-glow.is-off .cfx-glowimg { opacity: 1; }
.cfx-glow .cfx-glowimg.is-fading { animation: cfx-fade 16s cubic-bezier(.2, .7, .3, 1) .2s forwards; }
@keyframes cfx-fade { 0% { filter: brightness(1.35) saturate(1.1); } 100% { filter: brightness(.42) saturate(.9); } }
.cfx-glow.is-off .cfx-btn { background: #2B2A5E; color: #E1F66B; border-color: #E1F66B; box-shadow: 3px 3px 0 #000; }

/* ✦ Lenticular: one canvas (the stripes), a slight 3D tilt, fine ridges and a moving shine.
   The tilt and the shine only use transform, so the graphics card moves them without repainting. */
.cfx-lenticular { max-width: 360px; }
.cfx-lenticular .cfx-stage { perspective: 900px; background: transparent; overflow: visible; }
.cfx-card { position: absolute; inset: 0; will-change: transform; transform-style: flat; }
.cfx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cfx-skin { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transform: translateZ(0); }   /* (the card's own shape: set from the picture) */
.cfx-ridges { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.05) 1px 3px, transparent 3px 6px); }
.cfx-ud .cfx-ridges { background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, rgba(0,0,0,.05) 1px 3px, transparent 3px 6px); }
.cfx-sheen { position: absolute; inset: -40%; will-change: transform; background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,.14) 49%, rgba(190,230,255,.08) 52%, transparent 60%); }
.cfx-ud .cfx-sheen { background: linear-gradient(190deg, transparent 40%, rgba(255,255,255,.14) 49%, rgba(190,230,255,.08) 52%, transparent 60%); }
.cfx-lenticular .cfx-btn.is-on { background: #fff; }
.cfx-ud .cfx-stage { touch-action: none; }   /* (a finger dragged up and down on the picture flips it instead of scrolling) */
.cfx-hint { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: #6F6496; }
@media (prefers-reduced-motion: reduce) { .cfx-glow .cfx-glowimg.is-fading { animation-duration: .01s; } }
/* The ✦ try it window on product pages */
.fx-win { padding: 14px 14px 16px; }
.fx-say { margin: 0 0 12px; text-align: center; font-size: 13.5px; color: #5E3F7A; text-wrap: balance; }   /* (one line on desktop; two even lines on phones) */
/* While someone's using the lenticular, everything else on the page holds still so it stays smooth */
html.cfx-busy body :not(.cfx):not(.cfx *), html.cfx-busy body :not(.cfx):not(.cfx *)::before, html.cfx-busy body :not(.cfx):not(.cfx *)::after { animation-play-state: paused !important; }
/* ✨ Sparkle / holographic: the art, a soft rainbow (moved with transform) and a canvas of star glints */
.cfx-sparkle { max-width: 520px; }
.cfx.cfx-tall { max-width: 360px; }   /* (tall cards, like the phone or the lamb: all the same size) */
.cfx-sparkle .cfx-stage { background: transparent; touch-action: none; perspective: 900px; overflow: visible; border-radius: 0; }
.cfx-sparkle .cfx-card { border-radius: 10px; overflow: hidden; }
.cfx-glints { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cfx-holo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .32; transform: translateZ(0); }
.cfx-holo-in { position: absolute; inset: -50%; will-change: transform; background: linear-gradient(115deg, transparent 38%, rgba(255,110,199,.7) 43%, rgba(255,230,110,.8) 47%, rgba(110,255,168,.8) 50%, rgba(110,200,255,.8) 53%, rgba(200,110,255,.7) 57%, transparent 62%); }   /* (a narrow band, like light catching the foil) */
.cfx-sparkle .cfx-btn.is-on { background: #fff; }
/* 👃 Scratch and sniff: the art, a canvas for smell lines / puffs / scratch marks, a scent meter and the label */
.cfx-scent .cfx-stage { background: transparent; touch-action: none; cursor: grab; overflow: visible; }
.cfx-scent .cfx-glints { top: -30%; height: 130%; }   /* (room above the art for the emojis to float into) */
.cfx-meter { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; max-width: 420px; margin: 14px auto 0; font: 700 11px "Courier Prime", "Courier New", monospace; color: #5E3F7A; letter-spacing: .06em; }
.cfx-meter span { grid-column: 1; }
.cfx-meter em { grid-column: 2; display: block; height: 14px; border: 2px solid #2B2A5E; background: #fff; overflow: hidden; }
.cfx-meter i { display: block; height: 100%; transform-origin: left; transform: scaleX(.12); background: repeating-linear-gradient(90deg, #F48BBE 0 10px, #fff 10px 12px); }   /* (Y2K loading bar blocks) */
.cfx-meter b { grid-column: 1 / -1; text-align: center; font-size: 12px; color: #D2508F; min-height: 1.3em; }
.cfx-label { max-width: 420px; margin: 12px auto 0; padding: 10px 14px; background: #fff; border: 2px solid #2B2A5E; box-shadow: 3px 3px 0 #D2508F; text-align: center; font: 13.5px/1.45 "Courier Prime", "Courier New", monospace; color: #2B2A5E; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.cfx-label.in { opacity: 1; transform: none; }
.cfx-label b { display: block; font-size: 14.5px; }
.cfx-label small { display: block; margin-top: 6px; font-size: 12px; color: #6F6496; }
