/* =========================================================================
   Wolvesville landing page - avatar customize showcase styles
   Split out of landing.css. Uses the design tokens (:root vars) from landing.css.
   ========================================================================= */
/* ----------------------------- Customize avatar ----------------------------- */
.customize {
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(255,64,129,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
/* Three preview frames side by side, each cycling its own outfits (staggered). */
.cz-stage { position: relative; max-width: 860px; margin-inline: auto; }
.cz-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.8vw, 20px);
  width: 100%;
}
.cz-card {
  position: relative; aspect-ratio: 1 / 1.24;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .3s ease;
  touch-action: pan-y;
}
.cz-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 30px 72px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
}
.cz-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.cz-scrim { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,24,.30) 0%, rgba(10,10,24,.30) 45%, rgba(10,10,24,.66) 100%); }
.cz-glow {
  position: absolute; left: 50%; bottom: 5%; width: 88%; aspect-ratio: 1; z-index: 1;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.16), transparent 62%);
}
.cz-viewport { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
/* Layers (wings, hair, hats) are intentionally wider than the card; opt out of the global
   img max-width:100% clamp so their width % and bottom-anchored alignment stay correct. */
.cz-viewport img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: block; max-width: none; }

/* Static skin base (body + head + skin-mouth) per card; the outfit slides over it. */
.cz-layer, .cz-base { position: absolute; inset: 0; }
/* Each equipped item is its own layer; a look swaps with a snappy staggered per-item peel. */
.cz-wrap { position: absolute; inset: 0; opacity: 0; }
.cz-wrap.is-active { opacity: 1; }
/* will-change only while animating, so idle layers aren't permanently promoted to compositor layers */
.cz-wrap.is-anim { transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .26s ease; will-change: transform, opacity; }

/* Force-switch arrows, placed + styled like the role carousel arrows */
.cz-arrow {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font-size: 1.6rem; line-height: 1; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: background .15s ease, border-color .15s ease;
}
.cz-arrow:hover { background: var(--surface-2); border-color: rgba(255,255,255,.25); }
.cz-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cz-arrow.prev { left: -10px; }
.cz-arrow.next { right: -10px; }
@media (min-width: 768px) { .cz-arrow { display: flex; } }

/* Entrance: the card frames rise + fade in, staggered, as the section scrolls into view (customize.js
   adds .is-in). `backwards` fill holds the hidden from-state through each delay then reverts to the
   natural state, so no lingering transform clobbers the :hover lift. The avatars then dress in (JS reveal). */
.js .cz-grid:not(.is-in) .cz-card { opacity: 0; }
.cz-grid.is-in .cz-card { animation: czRise .7s cubic-bezier(.22, 1, .36, 1) backwards; }
.cz-grid.is-in .cz-card:nth-child(2) { animation-delay: .12s; }
.cz-grid.is-in .cz-card:nth-child(3) { animation-delay: .24s; }
@keyframes czRise { from { opacity: 0; transform: translateY(30px) scale(.965); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .cz-grid:not(.is-in) .cz-card { opacity: 1; }
  .cz-grid.is-in .cz-card { animation: none; }
}
