/* The genesis mint, on top of /style.css and /app.css.
   --holo  the turning skull (192 x 192 art pixels): 1x on phones, 2x from 700 px
   --won   a summoned portrait (32 x 32): 6x on phones, 8x from 700 px */

.mint-page { --holo: 192px; --won: 192px; }
@media (min-width: 700px) { .mint-page { --holo: 384px; --won: 256px; } }

.mint { padding: 40px 0 48px; }
.mint-grid { display: grid; gap: 28px; justify-items: center; margin-top: 28px; }
@media (min-width: 1000px) { .mint-grid { grid-template-columns: auto minmax(0, 480px); justify-content: center; align-items: center; gap: 48px; } }

.holo { display: grid; justify-items: center; gap: 12px; }
.holo img { display: block; width: var(--holo); height: var(--holo); }
.holo-note { min-height: 1.5em; margin: 0; color: var(--g2); text-align: center; }
.holo.summoning img { animation: summon 0.24s steps(2) infinite; }
@keyframes summon { 50% { filter: brightness(1.6); } }

.panel { width: 100%; max-width: 480px; padding: 12px 16px 16px; border: 12px solid transparent; border-image: var(--stone); background: var(--panel) padding-box; }
.panel .closed { margin: 8px auto; }
.count { margin: 0; font-size: 24px; line-height: 1.2; color: var(--muted); }
.count b { font-weight: 400; color: var(--g2); }
.progress { height: 12px; margin: 10px 0 0; background: var(--deep); box-shadow: inset 0 0 0 2px var(--s3); }
.progress div { width: 0; height: 100%; background: var(--g2); }
.facts { display: grid; gap: 4px; margin: 18px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.when { margin: 16px 0 0; color: var(--lav); }
.when:empty, .you:empty { display: none; }
.you { margin: 12px 0 0; color: var(--muted); }
.qty { display: flex; gap: 16px; margin: 18px 4px 0; }
.qty:empty { display: none; }
.qty button { min-width: 56px; padding: 6px 12px; border: 0; cursor: pointer; background: var(--deep); color: var(--muted); font: 400 calc(2 * var(--j)) / 1 var(--display); box-shadow: 0 0 0 4px var(--s3); }
.qty button[aria-checked="true"] { color: var(--deep); background: var(--g2); box-shadow: 0 0 0 4px var(--g1); }
.qty button:disabled { opacity: 0.4; cursor: default; }
.go { margin: 22px 4px 0; }
.go .btn { width: 100%; }
.buy { margin: 16px 0 0; }
.status { margin: 16px 0 0; }
.status:empty { display: none; }
.status .error { margin-top: 10px; }

.reveal { margin-top: 56px; }
.reveal .subtitle { margin-top: 0; }
.reveal-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.reveal-list li { width: calc(var(--won) + 40px); padding: 12px 8px 16px; border: 12px solid transparent; border-image: var(--stone); background: var(--panel) padding-box; text-align: center; animation: arrive 0.5s steps(4) both; }
.reveal-list li:nth-child(2) { animation-delay: 0.25s; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
.reveal-list img { display: block; width: var(--won); height: var(--won); margin: 0 auto; background: var(--deep); }
.reveal-list h3 { margin: 12px 0 8px; font: 400 calc(2 * var(--j)) / 1 var(--display); color: var(--g2); }
.reveal-list dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; text-align: left; }
.reveal-list dt { color: var(--muted); }
.reveal-list dd { margin: 0; }
.reveal-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 28px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .holo.summoning img, .reveal-list li { animation: none; }
}
