/* === META-CARD OVERLAY === */
.meta-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.6s ease;
}

.meta-overlay.active {
  background: rgba(0, 0, 0, 0.85);
  pointer-events: auto;
}

/* === TAROT CARD === */
.tarot-card {
  width: 280px;
  height: 420px;
  perspective: 1000px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.meta-overlay.active .tarot-card {
  opacity: 1;
  transform: scale(1);
}

.tarot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.tarot-card.flipped .tarot-inner {
  transform: rotateY(180deg);
}

.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

/* === TAROT BACK (рубашка) === */
.tarot-back {
  background: linear-gradient(145deg, #1a1510, #0d0a07);
  border: 2px solid var(--gold-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.tarot-back-pattern {
  width: 200px;
  height: 300px;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tarot-back-pattern::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
}

.tarot-back-symbol {
  font-size: 48px;
  color: var(--gold-dim);
}

.tarot-back-hint {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* === TAROT FRONT === */
.tarot-front {
  background: linear-gradient(145deg, #1a1510, #0d0a07);
  border: 2px solid var(--gold);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.tarot-front-symbol {
  font-size: 36px;
  text-align: center;
  color: var(--gold);
  margin-bottom: 12px;
}

.tarot-front-name {
  font-size: 20px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 4px;
}

.tarot-front-label {
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 16px;
}

.tarot-front-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-y: auto;
  flex: 1;
}

/* === ASSEMBLY FLASH === */
@keyframes metaPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4); }
  50% { box-shadow: 0 0 40px 10px rgba(201, 169, 110, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
}

.meta-overlay.active .tarot-card {
  animation: metaPulse 1.5s ease-out;
}

/* === COLLECTION PAGE META-CARDS === */
.meta-card-collection {
  width: 180px;
  height: 270px;
  perspective: 800px;
  cursor: pointer;
}

.meta-card-collection .tarot-inner {
  width: 100%;
  height: 100%;
}

.meta-card-collection .tarot-face {
  border-radius: 12px;
}

.meta-card-collection .tarot-front {
  padding: 16px;
}

.meta-card-collection .tarot-front-symbol { font-size: 28px; margin-bottom: 8px; }
.meta-card-collection .tarot-front-name { font-size: 15px; margin-bottom: 4px; }
.meta-card-collection .tarot-front-text { font-size: 11px; line-height: 1.6; }

/* Locked meta-card silhouette */
.meta-locked {
  width: 180px;
  height: 270px;
  border: 1px dashed rgba(201, 169, 110, 0.15);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.4;
}

.meta-locked-symbol {
  font-size: 28px;
  color: var(--text-dim);
}

.meta-locked-name {
  font-size: 13px;
  color: var(--text-dim);
}

.meta-locked-progress {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-dim);
}
