/* ==========================================================================
   acceleryate.com — "What's inside": a peek into the real pack on every card
   The previews are small flattened JPGs rendered from the pack file
   (img/inside/), so they show what's in the pack without handing out
   usable layers: no transparency, low resolution, and a faint
   "acceleryate" watermark pressed into the artwork. Every peek sits on
   Photoshop's dark canvas grey.
   ========================================================================== */
.pc-peek {
  --ps: #232323;
  position: relative; height: 176px; margin: -34px -34px 26px;
  background: var(--ps); border-bottom: 1px solid var(--border);
  overflow: hidden; isolation: isolate; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.pc-peek img { display: block; max-width: none; pointer-events: none; -webkit-user-drag: none; }
/* soft edges so every peek fades into the card */
.pc-peek::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ps), rgba(35,35,35,0) 9%, rgba(35,35,35,0) 91%, var(--ps)),
    linear-gradient(180deg, rgba(35,35,35,0) 70%, rgba(35,35,35,.75));
}
.pack-card.wide .pc-peek { height: 200px; }
@media (max-width: 768px) { .pc-peek { margin: -24px -24px 22px; height: 164px; } }

/* 01 — the Layers panel, scrolling through the real folders */
.peek-layers { font: 500 12px/1 var(--font); color: #d6d6d6; }
.peek-layers::after { background: linear-gradient(180deg, rgba(35,35,35,0) 62%, var(--ps)); }
.pk-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; height: 32px; padding: 0 14px; background: #2b2b2b; border-bottom: 1px solid #191919; color: #8f8f8f; font-size: 11px; }
.pk-head b { color: #ececec; font-weight: 600; }
.pk-head i { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: #7a7a7a; }
.pk-list { position: absolute; left: 0; right: 0; top: 32px; margin: 0; padding: 0; list-style: none; }
.pk-list li { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px; border-bottom: 1px solid #1c1c1c; white-space: nowrap; }
.pk-list li::before { content: ""; flex: none; width: 14px; height: 14px; opacity: .75; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfcfcf' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.pk-list li span { flex: none; width: 16px; height: 13px; border-radius: 2px; background: #7d8a99; clip-path: polygon(0 0, 42% 0, 52% 18%, 100% 18%, 100% 100%, 0 100%); }
.pk-list li em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: #8a8a8a; }
.pk-list li.sel { background: rgba(16,185,129,.2); color: #fff; }
.pk-list li.sel span { background: var(--green-light); }

/* 02 — UI mocks arriving like notifications */
.peek-ui .ui { position: absolute; z-index: 1; left: 50%; top: 50%; max-width: min(66%, 270px); max-height: 136px; width: auto; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.8); transform: translate(-50%, -50%); opacity: 0; }
.peek-ui .ui:first-child { opacity: 1; }

/* 03 — backgrounds on an endless strip */
.peek-bgs { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bg-row { display: flex; gap: 10px; width: max-content; }
.bg-row img { width: 140px; height: 79px; border-radius: 7px; object-fit: cover; }
.bg-row.rev { margin-left: -75px; }

/* 04 — FX + elements as selected layers on the canvas */
.peek-fx .fx { position: absolute; height: auto; border-radius: 6px; outline: 1px solid rgba(16,185,129,.7); outline-offset: 2px; }
.peek-fx .fx-boxes { left: 3%; top: 6%; width: 19%; }
.peek-fx .fx-fire { left: 2%; bottom: 4%; width: 28%; }
.peek-fx .fx-cash { left: 31%; top: 14%; width: 19%; }
.peek-fx .fx-crate { left: 52%; bottom: 10%; width: 16%; }
.peek-fx .fx-arrow { right: 4%; top: 10%; width: 20%; }
.peek-fx .fx-chart { right: 5%; bottom: 9%; width: 18%; }

/* 05 — AI prompt templates: names on show, prompts stay in the pack */
.peek-ai { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 22px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-chips span { padding: 6px 10px; border-radius: 100px; background: #2e2e2e; border: 1px solid #3a3a3a; color: #cfcfcf; font: 600 11.5px/1 var(--font); letter-spacing: -.005em; }
.ai-chips span.on { background: rgba(16,185,129,.18); border-color: rgba(52,211,153,.55); color: #fff; }
.ai-box { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; background: #1b1b1b; border: 1px solid #333; font: 500 11px/1 var(--mono); color: #8c8c8c; }
.ai-box b { color: var(--green-light); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.ai-redact { flex: 1; height: 9px; border-radius: 4px; background: repeating-linear-gradient(90deg, #5d5d5d 0 34px, transparent 34px 42px, #5d5d5d 42px 58px, transparent 58px 66px, #5d5d5d 66px 110px, transparent 110px 118px); filter: blur(2.5px); opacity: .8; }
.ai-lock { display: inline-flex; align-items: center; gap: 6px; color: #b5b5b5; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ai-lock::before { content: ""; width: 10px; height: 11px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5b5b5' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }

/* 06 — emoji packs */
.peek-emoji { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.peek-emoji img { height: 46px; width: auto; }

/* 07 — thumbnail templates; the last ones stay blurred */
.peek-tpl { display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.peek-tpl img { flex: 1 1 0; min-width: 0; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; outline: 1px solid #3a3a3a; box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.peek-tpl img:nth-child(n+5) { filter: blur(3px) brightness(.8); }
.peek-tpl .more { position: absolute; right: 30px; top: 50%; z-index: 5; transform: translateY(-50%); padding: 7px 12px; border-radius: 100px; background: rgba(20,20,20,.85); border: 1px solid #444; color: #e6e6e6; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.peek-tpl .more i { font-style: normal; }
@media (max-width: 680px) {
  .peek-tpl { gap: 10px; padding: 0 18px; }
  .peek-tpl img:nth-child(n+4) { display: none; }
  .peek-tpl img:nth-child(3) { filter: blur(3px) brightness(.8); }
  .peek-tpl .more { right: calc(18px + (100% - 56px) / 6); transform: translate(50%, -50%); }
  .peek-tpl .more i { display: none; }
}

/* motion (off for reduced motion: every peek then rests on its first frame) */
@media (prefers-reduced-motion: no-preference) {
  .pk-list { animation: pk-scroll 46s linear infinite; }
  .peek-ui .ui { animation: ui-cycle 16s var(--ease) infinite; }
  .peek-ui .ui:nth-child(2) { animation-delay: 2s; }
  .peek-ui .ui:nth-child(3) { animation-delay: 4s; }
  .peek-ui .ui:nth-child(4) { animation-delay: 6s; }
  .peek-ui .ui:nth-child(5) { animation-delay: 8s; }
  .peek-ui .ui:nth-child(6) { animation-delay: 10s; }
  .peek-ui .ui:nth-child(7) { animation-delay: 12s; }
  .peek-ui .ui:nth-child(8) { animation-delay: 14s; }
  .peek-ui .ui:first-child { opacity: 0; }
  .bg-row { animation: bg-marquee 40s linear infinite; }
  .bg-row.rev { animation-direction: reverse; animation-duration: 48s; }
  .peek-fx .fx { animation: fx-float 6s ease-in-out infinite alternate; }
  .peek-fx .fx:nth-child(2) { animation-delay: -1.5s; animation-duration: 7s; }
  .peek-fx .fx:nth-child(3) { animation-delay: -3s; animation-duration: 5.5s; }
  .peek-fx .fx:nth-child(4) { animation-delay: -2s; animation-duration: 6.5s; }
  .peek-fx .fx:nth-child(5) { animation-delay: -4s; animation-duration: 7.5s; }
  .peek-fx .fx:nth-child(6) { animation-delay: -.5s; animation-duration: 5s; }
  .ai-chips span { animation: ai-pick 11.2s steps(1) infinite; }
  .ai-chips span.on { background: #2e2e2e; border-color: #3a3a3a; color: #cfcfcf; }
  .ai-chips span:nth-child(2) { animation-delay: 1.6s; }
  .ai-chips span:nth-child(3) { animation-delay: 3.2s; }
  .ai-chips span:nth-child(4) { animation-delay: 4.8s; }
  .ai-chips span:nth-child(5) { animation-delay: 6.4s; }
  .ai-chips span:nth-child(6) { animation-delay: 8s; }
  .ai-chips span:nth-child(7) { animation-delay: 9.6s; }
  .ai-redact { animation: ai-type 1.6s steps(6) infinite; }
  .peek-emoji img { animation: emoji-bob 3.2s ease-in-out infinite alternate; }
  .peek-emoji img + img { animation-delay: -1.6s; }
  .pack-card:hover .peek-tpl img:nth-child(-n+4) { transform: translateY(-4px); }
  .peek-tpl img { transition: transform .35s var(--ease); }
}
@keyframes pk-scroll { to { transform: translateY(-50%); } }
@keyframes ui-cycle {
  0% { opacity: 0; transform: translate(-50%, -22%) scale(.94); }
  3%, 11% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  14%, 100% { opacity: 0; transform: translate(-50%, -78%) scale(.94); }
}
@keyframes bg-marquee { to { transform: translateX(-50%); } }
@keyframes fx-float { from { transform: translateY(-4px) rotate(-1deg); } to { transform: translateY(5px) rotate(1deg); } }
@keyframes ai-pick { 0% { background: rgba(16,185,129,.18); border-color: rgba(52,211,153,.55); color: #fff; } 14.2857%, 100% { background: #2e2e2e; border-color: #3a3a3a; color: #cfcfcf; } }
@keyframes ai-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes emoji-bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
