/* Continuum mint — case-file chrome (extends studio.css tokens) */

.mint-hero {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2rem;
}
@media (min-width: 820px) {
  .mint-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.countdown-panel {
  text-align: center;
  padding: 1.25rem 1.1rem;
}
.countdown-panel .countdown {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.countdown-panel .countdown[data-open="1"] { color: var(--watch); }
.countdown-panel .countdown[data-open="dev"] { color: var(--danger); }

.wallet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
}
.wallet-bar .shop-buy { margin-left: auto; }

.chain-warn {
  width: 100%;
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--danger);
  background: rgba(168, 72, 72, 0.12);
  color: var(--fg);
  font-size: 0.9rem;
}
.chain-warn[hidden] { display: none !important; }

.mint-status {
  min-height: 1.4em;
  margin: 0 0 1.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.92rem;
}
.mint-status:empty { display: none; }
.mint-status[data-kind="ok"] { border-color: var(--watch); }
.mint-status[data-kind="error"] { border-color: var(--danger); color: #e8c0c0; }
.mint-status[data-kind="pending"] { border-color: var(--bone); }

.mint-grid {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.25rem;
}
@media (min-width: 760px) {
  .mint-grid { grid-template-columns: 1fr 1fr; }
}

.mint-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.2rem 1.15rem;
}
.mint-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mint-card .cover {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0.25rem 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(62, 54, 72, 0.8);
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #0a080a;
}
.mint-card .price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--bone);
}
.mint-card .usd-face {
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
  margin-top: auto;
  padding-top: 0.5rem;
}
.mint-actions label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.mint-actions input[type="number"],
.faction-select {
  appearance: none;
  min-width: 4.5rem;
  padding: 0.4rem 0.55rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.faction-select { min-width: 11rem; }

.claim-block {
  margin: 0 0 2rem;
  padding: 1.25rem 1.2rem;
}
.claim-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.75rem;
}

.token-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.token-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(16, 14, 18, 0.7);
}
.token-list li.is-claimed { opacity: 0.55; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--bone);
}

.inv-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.inv-grid h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.card-plate-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.55rem;
}
.card-plate-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--fg-muted);
}
.card-plate-list img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
}

.facts {
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
}
.facts ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--fg-muted);
}
.facts li { margin: 0.25rem 0; }

.danger { color: #e8c0c0; }

#reveal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(7, 6, 8, 0.86);
}
#reveal-modal[hidden] { display: none !important; }
.reveal-sheet {
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1.25rem 1.2rem 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
}
.reveal-sheet header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reveal-sheet h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
#reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}
.reveal-card {
  margin: 0;
  animation: reveal-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
}
.reveal-card figcaption {
  margin-top: 0.4rem;
  display: grid;
  gap: 0.15rem;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-card { animation: none; }
}

.dev-flag {
  margin: 0 0 1rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--danger);
}
.dev-flag[hidden] { display: none !important; }

/* Faction deck covers (square) + sealed pack tier covers (16:9) */
.mint-card .cover.cover-square { aspect-ratio: 1/1; height: auto; object-fit: cover; }
.token-list li.has-thumb { flex-wrap: nowrap; }
.inv-thumb {
  flex: none;
  display: block;
  border: 1px solid var(--border);
  background: #0a080a;
  border-radius: 0.25rem;
}
.inv-thumb.deck { width: 48px; height: 48px; object-fit: cover; }
.inv-thumb.pack { width: 72px; height: 40px; object-fit: cover; }
.rarity-badge {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.rarity-badge[data-rarity="rare"] { color: #9fc3e8; border-color: #9fc3e8; }
.rarity-badge[data-rarity="epic"] { color: #c7a2f0; border-color: #c7a2f0; }
.rarity-badge[data-rarity="legendary"] { color: #e8c46a; border-color: #e8c46a; }
.rarity-badge[data-rarity="1of1"] { color: #0a080a; background: #e8c46a; border-color: #e8c46a; }
#reveal-pack { display: flex; justify-content: center; margin: 0 0 0.75rem; }
.reveal-pack { margin: 0; text-align: center; }
.reveal-pack img {
  display: block;
  width: min(320px, 80vw);
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid rgba(62, 54, 72, 0.8);
  border-radius: 0.4rem;
  background: #0a080a;
}
.reveal-pack figcaption { margin-top: 0.35rem; display: flex; gap: 0.5rem; justify-content: center; align-items: center; }

/* Pack 1/1 still-life previews under sealed pack hero */
.pack-1of1-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.65rem 0 0.25rem;
}
.pack-1of1-strip img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #0a080a;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.pack-1of1-caption { margin: 0 0 0.5rem; }


/* Free-claim toolbar: Claim all / Retry / manual tokenId */
.claim-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.55rem 0 0.75rem;
}
.claim-toolbar.claim-all-row {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  background: rgba(168, 136, 88, 0.08);
}
.claim-toolbar.claim-manual {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.claim-toolbar label.fine {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.claim-toolbar input[type="number"] {
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0.25rem 0.4rem;
}


/* Inventory inspect modal (pack / deck / card) */
#inspect-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 4, 8, 0.78);
}
#inspect-modal[hidden] { display: none !important; }
.inspect-sheet {
  width: min(720px, 96vw);
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
}
.inspect-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.inspect-sheet h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.inspect-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .inspect-layout { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: start; }
}
.inspect-art {
  margin: 0;
  background: #0a080a;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  overflow: hidden;
}
.inspect-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.inspect-art.pack img { aspect-ratio: 16/9; }
.inspect-art.deck img { aspect-ratio: 1/1; }
.inspect-art.card img { aspect-ratio: 3/4; }
.inspect-copy h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.inspect-rules {
  margin: 0.5rem 0;
  color: var(--fg-muted);
  line-height: 1.45;
}
.inspect-facts {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
}
.inspect-facts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.inspect-facts span { color: var(--fg-muted); }
.inspect-attrs {
  margin: 0.65rem 0;
  display: grid;
  gap: 0.35rem;
}
.inspect-attrs > div {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  padding: 0.2rem 0;
}
.inspect-attrs dt { margin: 0; color: var(--fg-muted); }
.inspect-attrs dd { margin: 0; }
.inspect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
a.inspect-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.inspect-slots {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  max-height: 12rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
}
.inspect-slots li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.inspect-slots li:last-child { border-bottom: 0; }
.inv-clickable {
  cursor: pointer;
}
.inv-clickable:hover,
.inv-clickable:focus-visible {
  outline: 1px solid var(--fg-muted);
  outline-offset: 2px;
}
.card-plate-list .inv-clickable:hover img {
  border-color: var(--fg-muted);
}
#inv-cards-more {
  margin-top: 0.65rem;
}


/* ── Pack open ceremony (ported from PackOpenCeremony.tsx / continuum-pack-rip) ── */
#reveal-modal.ceremony-live .reveal-sheet {
  width: min(960px, 100%);
  max-height: min(94vh, 960px);
  background: #0b0a0c;
  border-color: rgba(196, 184, 176, 0.28);
}
#reveal-modal.ceremony-live .reveal-sheet > header h2 { letter-spacing: 0.04em; }
.pack-ceremony {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 52vh;
  padding: 0.35rem 0 0.75rem;
  isolation: isolate;
  width: 100%;
}
.pack-ceremony--juice-epic { animation: mint-pack-shake 0.85s ease-in-out; }
.pack-ceremony--juice-legendary { animation: mint-pack-shake-loud 1.05s ease-in-out; }
@keyframes mint-pack-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-9px) rotate(-0.55deg); }
  36% { transform: translateX(9px) rotate(0.55deg); }
  54% { transform: translateX(-6px); }
  72% { transform: translateX(6px); }
}
@keyframes mint-pack-shake-loud {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-12px) rotate(-0.7deg); }
  24% { transform: translateX(12px) rotate(0.7deg); }
  36% { transform: translateX(-8px) rotate(-0.4deg); }
  50% { transform: translateX(8px); }
  66% { transform: translateX(-5px); }
  82% { transform: translateX(5px); }
}
.pack-ceremony--vignette::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(8, 6, 10, 0.55) 78%, rgba(4, 2, 6, 0.78) 100%);
  animation: mint-pack-vignette 0.9s ease-out forwards;
}
@keyframes mint-pack-vignette {
  from { opacity: 0; }
  to { opacity: 1; }
}
.pack-seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  z-index: 1;
}
.pack-seal-glow {
  position: absolute;
  inset: 4% 12% 18%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(196, 184, 176, 0.72) 0%, rgba(196, 184, 176, 0.22) 42%, transparent 72%);
  filter: blur(22px);
  animation: mint-sodium-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes mint-sodium-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}
.pack-ceremony .pack-cover {
  position: relative;
  z-index: 1;
  width: min(320px, 78vw);
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.65rem;
  border: 1px solid rgba(196, 184, 176, 0.35);
  box-shadow:
    0 0 56px rgba(196, 184, 176, 0.38),
    0 0 18px rgba(168, 136, 88, 0.22),
    0 24px 48px rgba(0, 0, 0, 0.55);
  user-select: none;
  background: #0a080a;
}
.pack-tear-cta {
  position: relative;
  z-index: 2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border: 0;
  background: #c4a574;
  color: #0b0c0f;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(196, 165, 116, 0.35);
}
.pack-tear-cta:hover { filter: brightness(1.05); }
.pack-tear {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  z-index: 1;
}
.pack-cover--tearing {
  animation: mint-pack-tear-split 1.15s ease-in forwards;
}
@keyframes mint-pack-tear-split {
  0% { transform: scale(1) rotate(0); opacity: 1; filter: brightness(1); }
  40% { transform: scale(1.04) rotate(-1.2deg); filter: brightness(1.35); }
  100% { transform: scale(1.18) rotate(2deg); opacity: 0; filter: brightness(1.8); }
}
.pack-tear-burst {
  position: absolute;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 212, 170, 0.55) 0%, rgba(196, 165, 116, 0.18) 38%, transparent 70%);
  animation: mint-pack-burst 1.15s ease-out forwards;
  pointer-events: none;
}
@keyframes mint-pack-burst {
  0% { transform: scale(0.4); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.pack-tear-sparks {
  position: absolute;
  inset: 10% 15%;
  background:
    radial-gradient(circle at 20% 40%, #e8d4aa 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, #c4a574 0 2px, transparent 3px),
    radial-gradient(circle at 45% 75%, #fff6df 0 1.5px, transparent 3px),
    radial-gradient(circle at 80% 65%, #c4a574 0 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, #e8d4aa 0 1.5px, transparent 3px);
  animation: mint-pack-tear-sparks 1.15s ease-out forwards;
  pointer-events: none;
}
@keyframes mint-pack-tear-sparks {
  0% { opacity: 0; transform: scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}
.pack-reveal { width: 100%; display: flex; flex-direction: column; gap: 0.85rem; z-index: 1; }
.pack-reveal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pack-reveal-toolbar .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted, #9a9588);
}
.pack-skip-btn {
  background: transparent;
  border: 1px solid var(--border, #3e3648);
  color: var(--fg-muted, #9a9588);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pack-rarity-banner {
  text-align: center;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: mint-banner-in 0.45s ease-out both;
}
.pack-rarity-banner--rare { color: #9fc3e8; text-shadow: 0 0 24px rgba(159, 195, 232, 0.45); }
.pack-rarity-banner--epic { color: #c7a2f0; text-shadow: 0 0 28px rgba(199, 162, 240, 0.5); }
.pack-rarity-banner--legendary { color: #e8c46a; text-shadow: 0 0 32px rgba(232, 196, 106, 0.6); }
@keyframes mint-banner-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.pack-focus {
  display: grid;
  place-items: center;
  min-height: 280px;
  position: relative;
}
.pack-focus--rare .pack-focus-card { box-shadow: 0 0 36px rgba(159, 195, 232, 0.35); }
.pack-focus--epic .pack-focus-card { box-shadow: 0 0 48px rgba(199, 162, 240, 0.45); }
.pack-focus--legendary .pack-focus-card { box-shadow: 0 0 56px rgba(232, 196, 106, 0.55); }
.pack-focus-card {
  position: relative;
  width: min(220px, 58vw);
  margin: 0;
}
.pack-focus-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.45rem;
  border: 1px solid rgba(196, 184, 176, 0.4);
  background: #0a080a;
}
.pack-focus-card figcaption {
  margin-top: 0.45rem;
  text-align: center;
  display: grid;
  gap: 0.1rem;
}
.pack-focus-card--facedown,
.pack-slot-back {
  width: min(220px, 58vw);
  aspect-ratio: 3/4;
  border-radius: 0.45rem;
  border: 1px solid rgba(196, 184, 176, 0.28);
  background:
    linear-gradient(145deg, rgba(196, 184, 176, 0.12), transparent 42%),
    radial-gradient(circle at 50% 40%, rgba(196, 165, 116, 0.18), #0a080a 70%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.55);
}
.pack-focus--anticipating .pack-focus-card--facedown {
  animation: mint-anticipate 0.65s ease-in-out infinite alternate;
}
@keyframes mint-anticipate {
  from { transform: scale(0.98); filter: brightness(0.85); }
  to { transform: scale(1.02); filter: brightness(1.15); }
}
.pack-flip-in { animation: mint-pack-flip 0.48s ease-out; }
@keyframes mint-pack-flip {
  from { opacity: 0; transform: rotateY(70deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.pack-sparks {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, #fff 0 1.5px, transparent 3px),
    radial-gradient(circle at 78% 28%, #e8d4aa 0 2px, transparent 3px),
    radial-gradient(circle at 30% 78%, #c4a574 0 1.5px, transparent 3px),
    radial-gradient(circle at 70% 72%, #fff6df 0 2px, transparent 3px);
  animation: mint-pack-sparks 1.15s ease-out;
}
.pack-sparks--epic { filter: hue-rotate(40deg); animation-duration: 1.45s; }
.pack-sparks--legendary { filter: saturate(1.4); animation-duration: 1.7s; }
@keyframes mint-pack-sparks {
  0% { opacity: 0; transform: scale(0.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}
.pack-hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--fg-muted, #9a9588);
}
.pack-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}
.pack-rail--finale { margin-top: 0.35rem; }
.pack-slot {
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.pack-slot.is-hidden { opacity: 0.35; }
.pack-slot.is-shown { opacity: 1; }
.pack-slot.is-focus { transform: translateY(-4px); }
.pack-slot.is-premium.is-shown {
  box-shadow: 0 0 18px rgba(199, 162, 240, 0.28);
  border-radius: 0.4rem;
}
.pack-slot.is-best-pull {
  outline: 1px solid rgba(232, 196, 106, 0.65);
  outline-offset: 2px;
  border-radius: 0.4rem;
}
.pack-slot .pack-slot-back {
  width: 100%;
  aspect-ratio: 3/4;
}
.pack-slot figure { margin: 0; }
.pack-slot img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid rgba(196, 184, 176, 0.3);
  background: #0a080a;
}
.pack-slot figcaption {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  text-align: center;
  color: var(--fg-muted, #9a9588);
  line-height: 1.25;
}
.pack-best-pull {
  display: block;
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c46a;
}
.pack-finale-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  transition: opacity 0.35s ease;
}
.pack-finale-actions.is-holding { opacity: 0.35; pointer-events: none; }
.pack-finale-actions.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pack-seal-glow,
  .pack-cover--tearing,
  .pack-tear-burst,
  .pack-tear-sparks,
  .pack-flip-in,
  .pack-sparks,
  .pack-ceremony--juice-epic,
  .pack-ceremony--juice-legendary,
  .pack-rarity-banner,
  .pack-focus--anticipating .pack-focus-card--facedown,
  .pack-ceremony--vignette::before {
    animation: none !important;
  }
  .pack-cover--tearing { opacity: 0; }
  .pack-finale-actions.is-holding { opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) {
  .pack-rail { gap: 0.35rem; }
  .pack-slot figcaption { display: none; }
}


/* ── Claim → Open hop (mint night dopamine pointer) ── */
.pack-row-new {
  outline: 1px solid rgba(232, 196, 106, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.15), 0 0 18px rgba(232, 196, 106, 0.18);
  border-radius: 8px;
  animation: pack-new-row-pulse 1.6s ease-in-out infinite;
}
.pack-open-new {
  background: linear-gradient(180deg, #f0d27a 0%, #c9a24a 100%) !important;
  color: #0a080a !important;
  border-color: #e8c46a !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: pack-new-btn-pulse 1.2s ease-in-out infinite;
}
.pack-new-badge {
  display: inline-block;
}
@keyframes pack-new-row-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.2), 0 0 12px rgba(232, 196, 106, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(232, 196, 106, 0.55), 0 0 22px rgba(232, 196, 106, 0.28); }
}
@keyframes pack-new-btn-pulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.08); transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .pack-row-new, .pack-open-new { animation: none; }
}

/* Finale haul: force all 5 cards visible (art + name + rarity) */
.pack-rail--finale {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  align-items: start;
}
@media (max-width: 720px) {
  .pack-rail--finale {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pack-rail--finale .pack-slot.is-shown figure {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pack-rail--finale .pack-slot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}
.pack-rail--finale .pack-slot figcaption {
  display: block !important;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}
