/* POXY LORE — ЭТАП 2
   Sits inside .avm-ops, after .poxy-dna-traits. Additive only.
   Uses only existing asset-viewer tokens + CSS colour literals already
   present in the codebase. No new custom properties introduced. */

/* ── Wrapper ── */
.poxy-lore-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 16px;
}

/* Legendary / Mythic — decorative frame */
.poxy-lore-block--epic-frame {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

/* ── Ornament divider (CSS-only ✦) — Legendary / Mythic only ── */
.poxy-lore-ornament {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: 10px;
  user-select: none;
  line-height: 1;
}

/* ── Header row ── */
.poxy-lore-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.poxy-lore-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(196, 199, 200, 0.5);
  text-transform: uppercase;
  flex: 1;
}

.poxy-lore-tier-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Lore text — Common / Uncommon: single italic line ── */
.poxy-lore-short {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin: 0;
  opacity: 0;
  animation: loreFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.08s;
}

/* ── Lore text — Rare+: multi-line reveal ── */
.poxy-lore-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.poxy-lore-line {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
  /* delay set inline via JS */
  animation: loreLineIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Legendary / Mythic: slightly brighter text + extra leading */
.poxy-lore-block--epic-frame .poxy-lore-line {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ── Keyframes ── */
@keyframes loreFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes loreLineIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Accessibility — reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .poxy-lore-short,
  .poxy-lore-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── Mobile (390 px iOS Safari priority) ── */
@media (max-width: 420px) {
  .poxy-lore-short { font-size: 12px; }
  .poxy-lore-line  { font-size: 13px; }
  .poxy-lore-block--epic-frame .poxy-lore-line { font-size: 13.5px; }
}
