/* ============================================================
   SkinSignal / the landing's packs and vitrine (index.html #packShowcase)
   The calling cards section's language (css/cards-showcase.css): near
   black ground, the art is the light. Five EXAMPLE packs stand on the
   dashboard's own pack shelf (assets/locker/locker-shelf, its measured
   risers), the treasure light behind them cycling the rarity finishes
   (the rays sprites, cross-fading by opacity). The vitrine is the
   dashboard's own: the case, the brass plaque with the matched finish in
   its inlay, the vault dial with its finish ring; the item bobs, the
   case tilts to the pointer, sparkles catch in the glass. Opacity and
   transform only; every loop rests off screen and in a hidden tab;
   reduced motion keeps everything still.
   ============================================================ */

.lp {
  --lp-gold: #e4ae39;
  --lp-ink: #f1f3f6;
  --lp-ink-2: #b9bfca;
  --lp-ink-3: #8a919e;
  --pad: clamp(20px, 3.8vw, 76px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 6vw, 112px) 0 clamp(56px, 5vw, 96px);
  background:
    radial-gradient(42% 50% at 72% 34%, rgba(146, 100, 238, 0.06), rgba(146, 100, 238, 0) 70%),
    radial-gradient(40% 46% at 30% 80%, rgba(228, 174, 57, 0.05), rgba(228, 174, 57, 0) 70%),
    #05080d;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.lp__inner { padding: 0 var(--pad); }
.lp__top { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 3vw, 56px); }

.lp__eyebrow { margin: 0 0 clamp(14px, 1.2vw, 20px); font-family: var(--font-display); font-stretch: 100%; font-weight: 600; font-size: clamp(12px, 0.8vw, 15px); letter-spacing: 0.3em; text-transform: uppercase; color: #c9d2e3; }
.lp__eyebrow span { margin: 0 0.5em; color: var(--lp-ink-3); }
.lp__eyebrow--sm { margin-bottom: 10px; color: var(--lp-gold); }
.lp__title { margin: 0; font-family: var(--font-display); font-stretch: 90%; font-weight: 800; font-size: clamp(42px, 4.1vw, 84px); line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; color: var(--lp-ink); }
.lp__line { display: block; white-space: nowrap; }
.lp__line--gold { color: var(--lp-gold); background: linear-gradient(180deg, #f6d27a 0%, #e8b544 52%, #c98a1c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp__body { margin: clamp(16px, 1.4vw, 24px) 0 0; max-width: 520px; font-family: var(--font-body); font-size: clamp(15px, 1vw, 19px); line-height: 1.55; color: var(--lp-ink-2); }
.lp__body--sm { margin-top: 10px; font-size: clamp(14px, 0.92vw, 17px); }
.lp__try { margin: clamp(18px, 1.6vw, 26px) 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #9fb8e6; }
.lp__try span { margin-right: 6px; font-size: 9px; }

/* THE SHELF: the dashboard's pack shelf picture, a pack on each riser. */
.lp__shelf { position: relative; padding: clamp(40px, 3.4vw, 60px) clamp(10px, 1.6vw, 26px) clamp(52px, 5vw, 72px); border: 1px solid rgba(0, 0, 0, 0.8); border-radius: 10px; overflow: hidden; background: radial-gradient(70% 70% at 50% 100%, rgba(255, 236, 190, 0.05), rgba(255, 236, 190, 0) 70%), linear-gradient(180deg, #0b0e14, #06080b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 70px rgba(0, 0, 0, 0.55); }
.lp__stamp { position: absolute; right: 14px; top: 14px; z-index: 3; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 3px; background: rgba(5, 8, 13, 0.75); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #c9cfda; }
/* THE TREASURE LIGHT: the five rarity rays, one at a time, cross-fading. */
.lp__treasure { position: absolute; left: 50%; bottom: 8%; z-index: 0; width: min(78%, 520px); aspect-ratio: 360 / 480; transform: translateX(-50%); pointer-events: none; }
.lp__ray { position: absolute; inset: 0; display: block; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0; animation: lpRay 15s linear infinite; animation-delay: calc(var(--j) * 3s - 15s); }
@keyframes lpRay { 0% { opacity: 0; } 6% { opacity: 0.62; } 20% { opacity: 0.62; } 26% { opacity: 0; } 100% { opacity: 0; } }
.lp__stage { position: relative; z-index: 1; padding-top: 24%; }
.lp__base { position: relative; aspect-ratio: 1100 / 109; }
.lp__shelfimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp__row { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.lp__row > li { position: absolute; top: 11.14%; width: 15%; transform: translate(-50%, -100%); }
.lp__pack { position: relative; display: grid; justify-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.lp__pack:focus-visible { outline: 2px solid rgba(118, 166, 255, 0.85); outline-offset: 6px; border-radius: 6px; }
.lp__packimg { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 320 / 515; transform: translateY(0); transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.7)); }
.lp__pack:hover .lp__packimg,
.lp__pack:focus-visible .lp__packimg { transform: translateY(-8px); }
/* The rarity's light round the pack. */
.lp__glow { position: absolute; left: -40%; right: -40%; top: -10%; bottom: 0; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--fxs), 0.34), rgba(var(--fxs), 0)); opacity: 0.8; transition: opacity 260ms ease, transform 260ms ease; }
.lp__pack:hover .lp__glow,
.lp__pack:focus-visible .lp__glow { opacity: 1; transform: scale(1.15); }
/* The name under the shelf: the finish as a bar above it. */
.lp__label { position: absolute; left: 50%; top: calc(100% + clamp(30px, 3.4vw, 50px)); z-index: 2; width: max-content; transform: translateX(-50%); padding: 4px 9px 3px; border-radius: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lbl); background: linear-gradient(180deg, #05070a, #0c0f14); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.07); text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.9), 0 0 10px rgba(var(--fxs), 0.45); }
.lp__label::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 1px; border-radius: 1px; background: var(--fx) 0 50% / 72px 72px, rgb(var(--fxs)); box-shadow: 0 0 6px rgba(var(--fxs), 0.7); }
/* EACH LABEL IN ITS OWN FINISH, engraved in a recessed plate so none is
   lost in its neighbour's light (the fix pass). Every colour is a light
   tint of its finish and reads at AA or better on the plate (measured
   against its lighter end, #0c0f14): legendary emerald 10.2:1, epic
   doppler 8.7:1, rare sapphire 9.1:1, common steel 13.8:1, rank case
   hardened 10.8:1. */
.lp__pack--legendary { --lbl: #4fd3a0; }
.lp__pack--epic      { --lbl: #b9a0ff; }
.lp__pack--rare      { --lbl: #86b4ff; }
.lp__pack--common    { --lbl: #d5dbe5; }
.lp__pack--rank      { --lbl: #a9c4ea; }
.lp__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lp__pack[aria-busy="true"] .lp__packimg { opacity: 0.7; }

/* EARN: the knife blade, filling through four real tier finishes in turn.
   Each finish is revealed from the handle by two opposite translations
   (the window and the picture), then fades for the next: transform and
   opacity only. */
.lp__earn { margin-top: clamp(22px, 2vw, 34px); max-width: 520px; }
.lp__earnk { margin: 0 0 10px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa3b2; }
.lp__earnk i { font-style: normal; opacity: 0.6; }
.lp__earnx { margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 3px; font-size: 9px; letter-spacing: 0.2em; color: #c9cfda; }
.lp__blade { position: relative; aspect-ratio: 1000 / 192; }
.lp__blsteel { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0.9; }
.lp__bl { position: absolute; inset: 0; opacity: 0; animation: lpBl 16s linear infinite; animation-delay: calc(var(--b) * 4s - 16s); }
.lp__blw { position: absolute; inset: 0; overflow: hidden; transform: translateX(-100%); animation: lpBlWin 16s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: inherit; }
.lp__blw img { display: block; width: 100%; height: 100%; transform: translateX(100%); animation: lpBlPic 16s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: inherit; }
.lp__bln { position: absolute; right: 0; top: 100%; margin-top: 6px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #8d97a8; white-space: nowrap; }
.lp__bln b { font-weight: 500; color: #f1f3f6; }
.lp__bln i { font-style: normal; opacity: 0.6; }
.lp__earn { padding-bottom: 22px; }
@keyframes lpBl { 0% { opacity: 0; } 2% { opacity: 1; } 23% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lpBlWin { 0% { transform: translateX(-100%); } 15% { transform: translateX(0); } 100% { transform: translateX(0); } }
@keyframes lpBlPic { 0% { transform: translateX(100%); } 15% { transform: translateX(0); } 100% { transform: translateX(0); } }
.lp.is-off .lp__bl, .lp.is-off .lp__blw, .lp.is-off .lp__blw img,
.fx-hidden .lp__bl, .fx-hidden .lp__blw, .fx-hidden .lp__blw img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .lp__bl, .lp__blw, .lp__blw img { animation: none; }
  .lp__bl { opacity: 0; }
  .lp__bl[style*="--b:1"] { opacity: 1; }
  .lp__bl[style*="--b:1"] .lp__blw, .lp__bl[style*="--b:1"] .lp__blw img { transform: none; }
}

/* THE VITRINE BAND: the dashboard's case, plaque and dial. */
.lp__vitrine { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 4vw, 72px); margin-top: clamp(48px, 5vw, 88px); }
.lp__vt { position: relative; width: 100%; max-width: 880px; perspective: 1100px; }
.lp__tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lp__vt.is-hot .lp__tilt { transition-duration: 0.12s; }
.lp__case { position: relative; aspect-ratio: 520 / 305; max-width: 880px; }
.lp__caseimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp__strip { position: absolute; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(255, 236, 190, 0), #fff3d4 50%, rgba(255, 236, 190, 0)); box-shadow: 0 0 14px rgba(255, 220, 150, 0.6); opacity: 0.85; }
.lp__lining { position: absolute; overflow: hidden; opacity: 0.55; mix-blend-mode: screen; }
.lp__lining img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp__bob { position: absolute; left: 50%; top: 52%; z-index: 1; display: block; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); animation: lpBob 3.6s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }
@keyframes lpBob { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, calc(-50% - 7px)); } }
.lp__item { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1; transform: rotate(-28deg); filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.65)); }
.lp__sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lp__sparks i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%), linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)) 50% 50% / 100% 1px no-repeat, linear-gradient(0deg, rgba(255, 255, 255, 0), #fff 50%, rgba(255, 255, 255, 0)) 50% 50% / 1px 100% no-repeat; opacity: 0; transform: scale(0.4); animation: lpSpark 4.2s ease-in-out infinite; animation-delay: calc(var(--s) * 0.7s); }
@keyframes lpSpark { 0%, 70%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 80% { opacity: 0.9; transform: scale(1) rotate(45deg); } 90% { opacity: 0; transform: scale(0.6) rotate(90deg); } }
.lp__glassv { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.lp__glassv i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0)); transform: translateX(-120%); animation: lpSheen 9s ease-in-out infinite; }
@keyframes lpSheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }
.lp__stamp--case { right: 7%; top: 18%; }
/* The plaque under the case: its inlay in the matched finish, the item engraved. */
.lp__plaque { position: relative; width: 86%; margin: -1.5% auto 0; aspect-ratio: 560 / 113; }
.lp__plaqueimg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp__inlay { position: absolute; border-radius: 1px; background: url(/assets/finishes/finish-fade.webp) 0 50% / 120px auto; box-shadow: 0 0 8px rgba(206, 112, 168, 0.6); }
.lp__ptext { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
/* ENGRAVED, BUT READABLE (the fix pass): cut into the brass, the letters
   lit cream with the cut's shadow above them. Dark brown on brass read
   2.1:1; cream reads 7.2:1 against the brightest 5% of the plaque. */
.lp__ptext b { font-family: var(--font-display); font-weight: 700; font-size: clamp(13px, 1.15vw, 19px); letter-spacing: 0.08em; text-transform: uppercase; color: #fff1d2; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 226, 160, 0.22), 0 0 10px rgba(0, 0, 0, 0.5); }
.lp__ptext .mono { font-size: clamp(10px, 0.72vw, 12px); letter-spacing: 0.14em; text-transform: uppercase; color: #f3e2bb; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75), 0 0 8px rgba(0, 0, 0, 0.55); }
.lp__ptext i { font-style: normal; opacity: 0.6; }
/* The vault dial, beside the case: its ring in the item's finish. */
.lp__dial { position: absolute; right: -6%; bottom: 4%; z-index: 3; width: 28%; aspect-ratio: 400 / 401; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }
.lp__dialimg, .lp__dialface { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lp__dialtext { position: absolute; inset: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.lp__dialtext b { font-size: clamp(11px, 0.9vw, 15px); font-weight: 500; letter-spacing: 0.08em; color: #f1e6f2; }
.lp__dialtext span { font-size: clamp(7.5px, 0.5vw, 9px); letter-spacing: 0.22em; text-transform: uppercase; color: #a9b1bf; }
/* Every loop rests off screen (js/landing-packs.js) and in a hidden tab. */
.lp.is-off .lp__ray, .lp.is-off .lp__bob, .lp.is-off .lp__sparks i, .lp.is-off .lp__glassv i,
.fx-hidden .lp__ray, .fx-hidden .lp__bob, .fx-hidden .lp__sparks i, .fx-hidden .lp__glassv i { animation-play-state: paused; }
.lp__vtitle { margin: 0; font: 800 clamp(26px, 2.4vw, 44px)/1.02 var(--font-display); font-stretch: 90%; letter-spacing: -0.01em; text-transform: uppercase; color: var(--lp-ink); }

@media (max-width: 960px) {
  .lp__top, .lp__vitrine { grid-template-columns: minmax(0, 1fr); }
  .lp__line { white-space: normal; }
}
@media (max-width: 560px) {
  .lp__row > li { width: 16.5%; }
  .lp__label { padding: 3px 4px 2px; font-size: 8px; letter-spacing: 0.08em; }
  .lp__dial { right: -1%; bottom: 26%; width: 24%; }
  .lp__plaque { width: 92%; }
  .lp__ptext b { font-size: 12px; }
  .lp__ptext .mono { font-size: 8.5px; letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
  .lp__packimg, .lp__glow, .lp__tilt { transition: none; }
  .lp__pack:hover .lp__packimg, .lp__pack:focus-visible .lp__packimg { transform: none; }
  .lp__ray { animation: none; }
  .lp__ray--legendary { opacity: 0.5; }
  .lp__bob, .lp__sparks i, .lp__glassv i { animation: none; }
  .lp__tilt { transform: none; }
}

/* The opening, on the landing: the page behind it is busier than the
   dashboard's, so its dim is deeper and the headline never reads through
   the card's name. Only the demo's scope (js/pack-open.js .pko-scope). */
.dash--climb.pko-scope .pko__dim { background: radial-gradient(70% 70% at 50% 45%, rgba(5, 8, 13, 0.93), rgba(5, 8, 13, 0.99)); }

/* Inside the calling cards section (index.html #callingCards): its own
   band below the story panels, on that section's ground and padding. */
.cc .lp { margin-top: clamp(56px, 5vw, 96px); padding: clamp(48px, 4.4vw, 84px) 0 0; overflow: visible; background: none; }
.cc .lp__inner { padding: 0; }

/* THE VITRINE'S COPY (the fix pass): beside the larger case, what the
   case holds, in three engraved lines. */
.lp__vlist { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp__vlist li { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; line-height: 1.45; color: #b9bfca; }
.lp__vlist b { font-family: var(--font-mono, "JetBrains Mono", monospace); font-weight: 500; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #e9d3a6; }
