/* =========================================================================
   Gacha Mint page (/v2/mint) — Iteration 10
   Namespace: .mpv2m-*

   Two-phase layout:
     1. Pre-mint hero  — cover art + price + supply counter + CTA
     2. Reveal card    — shown after the claim returns; big character
                        portrait + rarity-tiered border + "Mint again" CTA
   ========================================================================= */

.mpv2m-body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(127, 90, 240, 0.22), transparent 55%),
    radial-gradient(800px 500px at 85% 110%, rgba(44, 182, 125, 0.14), transparent 60%),
    var(--mpv2-bg, #0b0d1a);
}

.mpv2m-main { padding: 0 0 80px; }

/* -------------------------------------------------------------------- */
/* Shell                                                                */
/* -------------------------------------------------------------------- */
.mpv2m-shell {
  max-width: 960px;
  margin: 32px auto 0;
  padding: 0 24px;
}

.mpv2m-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(17, 18, 34, 0.7);
  border: 1px solid rgba(127, 90, 240, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.mpv2m-picker label { color: var(--mpv2-text-dim); font-size: 13px; }
.mpv2m-select {
  background: rgba(11, 13, 26, 0.7);
  border: 1px solid rgba(127, 90, 240, 0.3);
  color: var(--mpv2-text);
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 220px;
}

/* -------------------------------------------------------------------- */
/* Hero card                                                            */
/* -------------------------------------------------------------------- */
.mpv2m-hero {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 24px;
  padding: 28px;
  background: rgba(17, 18, 34, 0.72);
  border: 1px solid rgba(127, 90, 240, 0.24);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.mpv2m-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.35), rgba(44, 182, 125, 0.3));
}
.mpv2m-hero-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mpv2m-collection {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(120deg, #7f5af0, #2cb67d);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mpv2m-tagline { color: var(--mpv2-text-dim); font-size: 14px; line-height: 1.5; margin: 0; }

.mpv2m-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.mpv2m-stat {
  padding: 10px 12px;
  background: rgba(11, 13, 26, 0.55);
  border: 1px solid rgba(127, 90, 240, 0.16);
  border-radius: 12px;
}
.mpv2m-stat-label {
  font-size: 11px;
  color: var(--mpv2-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.mpv2m-stat-value { font-size: 17px; font-weight: 600; color: #fff; margin-top: 3px; }

.mpv2m-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.mpv2m-btn {
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms, filter 120ms;
}
.mpv2m-btn-primary {
  background: linear-gradient(120deg, #7f5af0, #2cb67d);
  color: #fff;
  box-shadow: 0 14px 30px rgba(127, 90, 240, 0.35);
}
.mpv2m-btn-primary:hover { filter: brightness(1.07); }
.mpv2m-btn-primary:active { transform: translateY(1px); }
.mpv2m-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--mpv2-text);
  border: 1px solid rgba(127, 90, 240, 0.25);
}
.mpv2m-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.mpv2m-status {
  margin-top: 14px;
  color: var(--mpv2-text-dim);
  font-size: 13px;
  min-height: 18px;
}
.mpv2m-status.err { color: #fda4af; }
.mpv2m-status.ok  { color: #7ad9b0; }

/* -------------------------------------------------------------------- */
/* Reveal                                                               */
/* -------------------------------------------------------------------- */
.mpv2m-reveal {
  margin-top: 32px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(17, 18, 34, 0.78);
  border: 2px solid rgba(127, 90, 240, 0.35);
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 24px;
  animation: mpv2m-reveal-in 420ms cubic-bezier(0.2, 1.2, 0.4, 1);
}
.mpv2m-reveal[hidden] { display: none; }
.mpv2m-reveal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(127, 90, 240, 0.35), rgba(44, 182, 125, 0.3));
}
.mpv2m-reveal-name {
  font-size: 30px;
  margin: 0;
  background: linear-gradient(120deg, #7f5af0, #2cb67d);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.mpv2m-reveal-flavour { color: var(--mpv2-text-dim); line-height: 1.55; margin: 10px 0 14px; }

.mpv2m-reveal-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mpv2m-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(127, 90, 240, 0.18);
  color: #cbd5ff;
}

.mpv2m-rarity-legendary { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5), 0 20px 60px rgba(245, 158, 11, 0.25); border-color: rgba(245, 158, 11, 0.55); }
.mpv2m-rarity-epic      { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5), 0 20px 60px rgba(167, 139, 250, 0.25); border-color: rgba(167, 139, 250, 0.55); }
.mpv2m-rarity-rare      { box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5), 0 20px 60px rgba(96, 165, 250, 0.25); border-color: rgba(96, 165, 250, 0.55); }
.mpv2m-rarity-uncommon  { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.45), 0 20px 60px rgba(52, 211, 153, 0.22); border-color: rgba(52, 211, 153, 0.55); }
.mpv2m-rarity-common    { box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35); border-color: rgba(148, 163, 184, 0.4); }

@keyframes mpv2m-reveal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* -------------------------------------------------------------------- */
/* History                                                              */
/* -------------------------------------------------------------------- */
.mpv2m-history {
  margin-top: 36px;
}
.mpv2m-history-title {
  margin: 0 0 12px;
  color: #fff; font-size: 18px;
}
.mpv2m-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.mpv2m-history-card {
  padding: 12px;
  background: rgba(17, 18, 34, 0.6);
  border: 1px solid rgba(127, 90, 240, 0.18);
  border-radius: 14px;
  color: var(--mpv2-text);
  font-size: 13px;
}
.mpv2m-history-card img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(11, 13, 26, 0.7);
}

/* -------------------------------------------------------------------- */
/* Responsive                                                           */
/* -------------------------------------------------------------------- */
@media (max-width: 720px) {
  .mpv2m-hero, .mpv2m-reveal { grid-template-columns: 1fr; }
  .mpv2m-shell { padding: 0 14px; }
}
