/* Landing UI: mint card in the closing scene, the in-page sheet (gallery / my souls / market), dialogs, toasts. */

/* ---------- nav mint + explore as buttons ---------- */
.nav .nav-mint { background: linear-gradient(135deg, #fff1cc, #ffc65c); color: #2a1a05; box-shadow: 0 0 18px rgb(255 190 90 / .35); }
.nav .nav-mint:hover { background: linear-gradient(135deg, #fff6dc, #ffd27a); }
button.explore { cursor: pointer; border: 0; }
.ca .ca-go { cursor: pointer; border: 0; }

/* ---------- closing: mint card under the halo ---------- */
.mintcard {
  pointer-events: auto; width: min(420px, 100%); padding: 22px 22px 16px; border-radius: 26px;
  display: flex; flex-direction: column; gap: 12px; text-align: left; color: var(--ink);
  background: linear-gradient(180deg, rgb(22 18 36 / .62), rgb(12 10 22 / .74));
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgb(255 220 160 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 80px -30px rgb(255 170 80 / .35), 0 20px 60px rgb(0 0 0 / .35);
}
.mintcard small { color: var(--dawn); opacity: 1; }
.mintcard h2 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; margin-top: -4px; }
.mc-count { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); }
.mc-count b { font-size: 40px; line-height: 1; }
.mc-count span { color: var(--ink-muted); font-size: 14px; }
.mc-count em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--dawn); }
.mc-bar { height: 4px; border-radius: 999px; background: rgb(255 255 255 / .12); overflow: hidden; }
.mc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, var(--dawn)); box-shadow: 0 0 12px var(--dawn); transition: width .6s; }
.mc-row { display: flex; gap: 10px; align-items: stretch; }
.mc-kv { flex: 1; padding: 9px 12px; border-radius: 14px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); display: flex; flex-direction: column; gap: 2px; }
.mc-kv span { font-family: var(--display); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.mc-kv b { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.mc-qty { display: flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 14px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); }
.mc-qty button { width: 26px; height: 26px; border-radius: 50%; font-size: 16px; color: var(--ink); }
.mc-qty button:hover { background: rgb(255 255 255 / .12); }
.mc-qty output { font-family: var(--display); font-size: 20px; font-weight: 700; min-width: 20px; text-align: center; }
.mc-btn {
  width: 100%; padding: 14px 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(135deg, #fff6dc, #ffc65c 60%, #f0a640); color: #2a1a05; box-shadow: 0 12px 30px -10px rgb(255 190 90 / .75); transition: transform .2s, filter .2s;
}
.mc-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.mc-btn:disabled { background: rgb(255 255 255 / .1); color: var(--ink-muted); box-shadow: none; cursor: default; }
.mc-btn.ghost { background: rgb(255 255 255 / .1); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.mc-hint { min-height: 1.2em; font-size: 14px; color: var(--ink-muted); text-align: center; margin-top: -4px; }
.mc-hint a { color: var(--dawn); }
.mc-public { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-public:empty { display: none; }
.mc-public .mc-btn { flex: 1; padding: 11px 14px; font-size: 11px; }
.mc-links { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .08); }
.mc-links button { font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); transition: color .2s; }
.mc-links button:hover { color: var(--dawn); }
.mc-links i { width: 3px; height: 3px; border-radius: 50%; background: rgb(255 255 255 / .3); }

/* ---------- sheet: gallery / my souls / market over the scene ---------- */
body.sheet-open { overflow: hidden; }
body.sheet-open .top, body.sheet-open .dock, body.sheet-open .sound, body.sheet-open .rail, body.sheet-open .panels { visibility: hidden; }
.sheet {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; color: var(--ink);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgb(30 26 48 / .9), rgb(8 8 14 / .95));
  animation: sheetIn .45s cubic-bezier(.2, .8, .2, 1);
}
.sheet[hidden] { display: none; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } }
.sheet-bar { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.sheet-bar .logo.mark { margin-right: 6px; }
.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); margin-right: auto; }
.seg button { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; color: var(--ink-muted); }
.seg button.on { background: rgb(255 255 255 / .92); color: #1b1726; }
.sh-pill {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: var(--ink);
}
.sh-pill:hover:not(:disabled) { background: rgb(255 255 255 / .14); }
.sh-pill.gold { background: linear-gradient(135deg, #fff1cc, #ffc65c); color: #2a1a05; border-color: transparent; }
.sh-pill.small { padding: 7px 11px; font-size: 10px; }
.sh-pill.danger { color: #ff8a96; }
.sh-pill:disabled { opacity: .4; cursor: default; }
.sh-x { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.sh-x:hover { background: rgb(255 255 255 / .16); }
.sheet-body { position: relative; flex: 1; min-height: 0; }
.pane { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; background: transparent; }
.pane.on { display: block; }
.pane.scroll { overflow-y: auto; padding: 22px 22px 60px; }
.sh-top { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 6px 0 22px; }
.sh-chip { padding: 9px 16px; border-radius: 16px; min-width: 120px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.sh-chip small { display: block; font-family: var(--display); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.sh-chip b { font-family: var(--display); font-size: 18px; }
.sh-empty { text-align: center; color: var(--ink-muted); padding: 40px 0; font-size: 16px; }
.souls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; max-width: 1300px; margin: 0 auto; }
.soul { border-radius: 18px; padding: 8px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.soul img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.soul .meta { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 2px; font-family: var(--display); }
.soul .meta b { font-size: 15px; }
.soul .tier { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.soul .sub { padding: 0 4px; color: var(--ink-muted); font-size: 14px; }
.soul .row { display: flex; gap: 6px; margin-top: 8px; }
.soul .row .sh-pill { flex: 1; }

dialog.ask { margin: auto; border-radius: 22px; color: var(--ink); width: min(400px, calc(100% - 32px)); padding: 22px; background: rgb(24 20 36 / .96); border: 1px solid rgb(255 255 255 / .16); }
dialog.ask::backdrop { background: rgb(6 6 12 / .6); }
dialog.ask h4 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
dialog.ask p { color: var(--ink-muted); margin-bottom: 14px; font-size: 16px; }
dialog.ask input { width: 100%; margin-bottom: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; padding: 12px; color: var(--ink); font: inherit; font-size: 18px; }
.ask-row { display: flex; gap: 8px; }
.ask-row .sh-pill { flex: 1; }
#toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 16px; border-radius: 14px; font-size: 15px; max-width: min(520px, 92vw); background: rgb(24 20 36 / .92); border: 1px solid rgb(255 255 255 / .16); }
.toast.ok { border-color: rgb(45 255 176 / .6); }
.toast.err { border-color: rgb(255 138 150 / .7); }
.toast a { color: var(--dawn); }

@media (max-width: 760px) {
  .logo b { font-size: 18px; }
  .mint-stage { gap: 12px; padding: 64px 12px 78px; }
  .mintcard { padding: 18px 16px 12px; gap: 10px; }
  .mintcard h2 { font-size: 28px; }
  .mc-count b { font-size: 32px; }
  .mc-row { flex-wrap: wrap; }
  .mc-qty { flex: 1 0 100%; justify-content: center; padding: 4px; }
  .statement::before { left: -60px; width: 130vw; }
  .sheet-bar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .sheet-bar .logo.mark { display: none; }
  .seg button { padding: 7px 10px; font-size: 10px; letter-spacing: .08em; }
  .pane.scroll { padding: 16px 12px 50px; }
  .souls { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* pantheon: keep the tier art inside short viewports so the title never runs under the header */
.tier .tier-soul { aspect-ratio: auto; height: clamp(70px, calc(100vh - 640px), 300px); }
@media (max-width: 760px) { .tier .tier-soul { height: clamp(70px, calc(50vh - 260px), 160px); } }

/* where to get $SOUL */
.mc-buy { align-self: center; margin-top: -6px; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dawn); text-decoration: none; padding: 4px 8px; border-radius: 999px; transition: background .2s; }
.mc-buy:hover { background: rgb(255 198 92 / .12); }
.mc-buy i { font-style: normal; margin-left: 2px; }
.ca .ca-buy { pointer-events: auto; font-family: var(--display); font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 999px; color: inherit; text-decoration: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); transition: background .2s; }
.ca .ca-buy:hover { background: rgb(255 255 255 / .12); }
.ca .ca-buy i { font-style: normal; margin-left: 2px; }

/* "Your souls" strip inside the mint card */
.mc-mine { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 14px; text-align: left; color: var(--ink);
  background: linear-gradient(90deg, rgb(255 198 92 / .1), rgb(255 255 255 / .04)); border: 1px solid rgb(255 214 140 / .22); transition: background .2s; }
.mc-mine:hover { background: linear-gradient(90deg, rgb(255 198 92 / .18), rgb(255 255 255 / .06)); }
.mc-mine[hidden] { display: none; }
.mm-label { display: flex; flex-direction: column; line-height: 1.05; min-width: 66px; }
.mm-label small { font-family: var(--display); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--dawn); }
.mm-label b { font-family: var(--display); font-size: 20px; }
.mm-thumbs { display: flex; flex: 1; min-width: 0; }
.mm-thumbs img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1.5px solid var(--c, rgb(255 255 255 / .35)); margin-left: -8px; box-shadow: 0 0 10px -2px var(--c, rgb(255 214 140 / .5)); background: #111; }
.mm-thumbs img:first-child { margin-left: 0; }
.mm-thumbs em { font-style: normal; font-family: var(--display); font-size: 11px; color: var(--ink-muted); align-self: center; margin-left: 8px; }
.mc-mine > i { font-style: normal; color: var(--dawn); }

/* mint celebration */
.rise { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, rgb(34 24 10 / .96), rgb(4 4 8 / .985)); animation: riseIn .5s ease both; }
.rise[hidden] { display: none; }
@keyframes riseIn { from { opacity: 0; } }
.rise-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgb(255 246 220 / .95), rgb(255 200 110 / .35) 25%, transparent 60%); animation: riseFlash 1.6s ease-out both; }
@keyframes riseFlash { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.rise-ring { position: absolute; left: 50%; top: 42%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; pointer-events: none;
  border: 3px solid #ffe2a0; box-shadow: 0 0 40px #ffc65c, inset 0 0 30px #ffc65c; animation: riseRing 1.8s cubic-bezier(.15, .7, .2, 1) both; }
.rise-ring.r2 { animation-delay: .25s; border-color: #fff4d6; }
@keyframes riseRing { 0% { transform: scale(.2); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(9); opacity: 0; } }
.rise-motes i { position: absolute; left: var(--x); bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 10px 3px rgb(255 198 92 / .7);
  opacity: 0; animation: riseMote 3.2s ease-out var(--d) infinite; }
@keyframes riseMote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90vh); opacity: 0; } }
.rise-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; text-align: center; max-width: 920px; }
.rise-body small { font-family: var(--display); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dawn); opacity: 0; animation: riseUp .7s ease .5s both; }
.rise-body h3 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1; color: #fffaf0; text-shadow: 0 0 30px rgb(255 190 90 / .6);
  opacity: 0; animation: riseUp .8s ease .65s both; }
.rise-body p { color: var(--ink-muted); font-size: 16px; opacity: 0; animation: riseUp .7s ease 1.2s both; }
.rise-body .mc-btn { width: auto; padding: 13px 34px; opacity: 0; animation: riseUp .7s ease 1.4s both; }
.rise-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px 0; }
.rise-card { width: clamp(96px, 13vw, 150px); border-radius: 16px; padding: 6px; background: linear-gradient(180deg, rgb(255 214 140 / .16), rgb(255 214 140 / .05)); border: 1.5px solid rgb(255 214 140 / .65);
  box-shadow: 0 0 40px -4px var(--c, #ffc65c), inset 0 0 20px rgb(255 214 140 / .12); opacity: 0; animation: riseCard .9s cubic-bezier(.2, .8, .2, 1) calc(.8s + var(--i) * .12s) both; }
.rise-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.rise-card b { display: block; padding: 7px 2px 2px; font-family: var(--display); font-size: 13px; color: #fffaf0; }
.rise-more { align-self: center; font-family: var(--display); color: var(--dawn); font-size: 18px; opacity: 0; animation: riseUp .6s ease 1.3s both; }
@keyframes riseCard { 0% { opacity: 0; transform: translateY(60px) scale(.85); filter: brightness(3) blur(6px); } 60% { filter: brightness(1.4) blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes riseUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise *, .rise { animation-duration: .01s !important; animation-delay: 0s !important; } }
