/* MNTD app prototype. Same language as the site: one soft light on a dark page, a white bar across the top,
   outlines instead of filled panels, and no divider lines. */
:root { --bg: #0a0a0b; --bone: #ece7db; --dim: #9b978d; --soft: #bdb8ab; --edge: #3a3a40; --edge2: #4a4a52; --good: #6dff9c; --warn: #ffd35f;
  --display: "Rinter", "Helvetica Neue", Arial, sans-serif; --text: "Rinter", "Helvetica Neue", Arial, sans-serif; --mono: "DM Mono", "SF Mono", Menlo, monospace; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 75% 60% at 50% 45%, #1e1e22 0%, transparent 72%) fixed, var(--bg); color: var(--bone); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; }
h2 { font-size: 20px; }
h3 { font-size: 15px; letter-spacing: .02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid #5fd8ff; outline-offset: 3px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.dim { color: var(--dim); } .soft { color: var(--soft); }

/* header: a floating bar in the slab's clear acrylic, white lettering */
header { position: sticky; top: 14px; z-index: 20; margin: 14px auto 0; width: min(1184px, calc(100% - 56px)); height: 54px; padding: 0 16px 0 30px; display: flex; align-items: center; gap: 34px; color: #fff; border-radius: 999px;
  background: rgba(130,130,136,.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: none; }
.logo { font-family: "Nivra", "Bigger Display", sans-serif; font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: 0; text-decoration: none; }
body { font-synthesis-weight: none; }
nav { display: flex; gap: 26px; font-size: 14px; font-weight: 600; letter-spacing: .04em; flex: 1; }
nav a { text-decoration: none; padding: 4px 0; }

#wallet { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; padding-right: 10px; }
#wallet .bal { font-family: var(--mono); font-weight: 500; }
#wallet .btn { margin-right: -10px; }
.proto { margin: 0; padding: 9px 28px; font-size: 13px; color: var(--dim); text-align: center; }

main { max-width: 1240px; margin: 0 auto; padding: 36px 28px 80px; outline: none; }
.head { margin-bottom: 30px; max-width: 46em; }
.head h1 { margin: 10px 0 12px; }
footer { padding: 0 28px 40px; text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bone); background: var(--bone); color: var(--bg); font: 600 15px var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--edge2); }
.btn.ghost:hover { border-color: var(--bone); background: transparent; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.dark { background: #fff; color: var(--bg); border-color: #fff; height: 34px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--dim); cursor: pointer; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* containers: outline only */
.box { border: 1px solid var(--edge); border-radius: 16px; padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.chip { display: inline-block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--edge2); color: var(--soft); white-space: nowrap; }
.chip.on { border-color: var(--bone); color: var(--bone); }
.chip.good { border-color: #6dff9c66; color: var(--good); }
button.chip { background: none; cursor: pointer; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--soft); } .kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--dim); }

/* mint flow */
.steps { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.steps span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--edge); color: var(--dim); }
.steps span.on { border-color: var(--bone); color: var(--bone); }
.steps span.done { color: var(--good); border-color: #6dff9c55; }
.nft { border: 1px solid var(--edge); border-radius: 16px; padding: 14px; text-align: left; background: none; color: inherit; font: inherit; cursor: pointer; display: block; width: 100%; }
.nft:hover, .nft.on { border-color: var(--bone); }
.nft img { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; margin-bottom: 12px; object-fit: cover; }
.nft img.pixel { image-rendering: pixelated; }
.nft b { display: block; } .nft small { color: var(--dim); font-size: 13px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.two .preview { position: sticky; top: 80px; }
.pops { display: flex; gap: 10px; flex-wrap: wrap; }
.pops button, .pops input { height: 52px; min-width: 76px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge2); background: transparent; color: var(--bone); font: 400 17px var(--display); cursor: pointer; }
.pops input { width: 120px; cursor: text; font-size: 15px; }
.pops input::placeholder { color: var(--dim); font-family: var(--text); }
.pops button:hover { border-color: var(--bone); }
.pops button[aria-pressed="true"] { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.sum { display: flex; align-items: center; gap: 10px; margin: 18px 0 26px; flex-wrap: wrap; }
.sum > div { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 16px; min-width: 120px; }
.sum > div.out { border-color: var(--bone); }
.sum span { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.sum b { font: 400 17px var(--display); }
.sum i { font-style: normal; color: var(--dim); font-size: 20px; }
label.check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bone); flex: none; }

/* slab tiles: marketplace, portfolio, packs */
.tile { border: 1px solid var(--edge); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile.pickable { cursor: pointer; } .tile.picked { border-color: var(--bone); }
.tile .slabbox { width: 100%; max-width: 190px; margin: 0 auto; }
.tile .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tile .meta b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nums { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); font-variant-numeric: tabular-nums; }
.tile .nums b { color: var(--bone); font-size: 16px; }
.tile .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tile .actions .btn { flex: 1; }
.up { color: var(--warn); } .down { color: var(--good); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.group { margin-bottom: 44px; }
.group .ghead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.empty { border: 0; background: rgba(130,130,136,.18); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border-radius: 16px; padding: 44px 24px; text-align: center; color: var(--soft); }
.empty .btn { margin-top: 18px; }
.inline { display: flex; gap: 8px; align-items: center; width: 100%; }
.inline input, .field input { flex: 1; min-width: 0; height: 34px; border-radius: 999px; border: 1px solid var(--edge2); background: transparent; color: var(--bone); padding: 0 14px; font: 14px var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field input { height: 44px; font-size: 16px; }
.field span { font-size: 14px; color: var(--soft); }
.tabs { display: flex; gap: 8px; margin-bottom: 26px; }

/* pack card */
.pack { border: 1px solid var(--edge); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pack .stack { display: flex; height: 84px; }
.pack .stack img { width: 84px; height: 84px; border-radius: 10px; border: 2px solid var(--bg); margin-right: -30px; object-fit: cover; background: #222; }

/* toast + modal */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #fff; color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; max-width: calc(100vw - 40px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,6,.86); display: flex; align-items: center; justify-content: center; padding: 24px; }
#modal[hidden] { display: none; }
#modal .card { width: 100%; max-width: 420px; text-align: center; }
#modal .slabbox { width: 260px; margin: 22px auto; animation: reveal .7s cubic-bezier(.2,.8,.2,1); }
@keyframes reveal { from { opacity: 0; transform: translateY(30px) scale(.9) rotate(-4deg); } }

@media (max-width: 860px) {
  header { gap: 16px; padding: 0 14px 0 22px; } nav { gap: 14px; font-size: 13px; overflow-x: auto; } #wallet .bal { display: none; }
  main { padding: 24px 16px 60px; } .two { grid-template-columns: 1fr; } .two .preview { position: static; max-width: 260px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { #modal .slabbox { animation: none; } #toast { transition: none; } }

/* buttons, globally: either solid white, or the same clear glass as the header. Nothing else. */
.btn, .btn.dark, .pops button[aria-pressed="true"], button.chip.on { background: #fff; border-color: #fff; color: var(--bg); }
.btn:hover, .btn.dark:hover { background: var(--bone); border-color: var(--bone); }
.btn.ghost, .pops button, .pops input, button.chip, .nft { background: rgba(130,130,136,.24); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border-color: transparent; color: #fff; }
.btn.ghost:hover, .pops button:hover, button.chip:hover, .nft:hover { background: rgba(165,165,172,.34); border-color: transparent; }
.pops button[aria-pressed="true"]:hover, button.chip.on:hover { background: var(--bone); }
.nft.on { background: rgba(165,165,172,.34); }
.pops input::placeholder { color: rgba(255,255,255,.6); }

/* packs: land on the experience. One pack in the middle of the page, opened in place. */
.packnav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.packstage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-bottom: 20px; }
.packstage h1 { margin-top: -4px; }
.packstage .soft { max-width: 32em; margin-bottom: 10px; }
.packart { position: relative; width: 270px; aspect-ratio: 270 / 400; margin: 0 0 22px; padding: 0; border: 0; cursor: pointer; color: #fff; font: inherit; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: linear-gradient(115deg, #2a2a30 0%, #55555e 28%, #2f2f36 50%, #6a6a74 72%, #2a2a30 100%);
  /* crimped top and bottom edges, like a sealed foil pack */
  clip-path: polygon(0 3%, 4% 0, 8% 3%, 12% 0, 16% 3%, 20% 0, 24% 3%, 28% 0, 32% 3%, 36% 0, 40% 3%, 44% 0, 48% 3%, 52% 0, 56% 3%, 60% 0, 64% 3%, 68% 0, 72% 3%, 76% 0, 80% 3%, 84% 0, 88% 3%, 92% 0, 96% 3%, 100% 0,
    100% 97%, 96% 100%, 92% 97%, 88% 100%, 84% 97%, 80% 100%, 76% 97%, 72% 100%, 68% 97%, 64% 100%, 60% 97%, 56% 100%, 52% 97%, 48% 100%, 44% 97%, 40% 100%, 36% 97%, 32% 100%, 28% 97%, 24% 100%, 20% 97%, 16% 100%, 12% 97%, 8% 100%, 4% 97%, 0 100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.packart::before { content: ""; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .55; pointer-events: none;
  background: linear-gradient(115deg, #ff5fa2, #ffd35f, #6dff9c, #5fd8ff, #8f7bff, #ff5fa2); animation: packsheen 9s linear infinite; }
.packart:hover:not([disabled]) { transform: translateY(-8px) rotate(-1.5deg) scale(1.02); }
.packart > span { position: relative; z-index: 1; }
.pk-logo { font-family: "Nivra", "Bigger Display", sans-serif; font-size: 26px; margin-top: 44px; }
.pk-name { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin-top: -40px; }
.pk-art { display: flex; }
.pk-art img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; margin: 0 -14px; border: 3px solid rgba(255,255,255,.85); background: #333; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }
.pk-art img:nth-child(1) { transform: rotate(-8deg); } .pk-art img:nth-child(2) { transform: translateY(-8px); z-index: 1; } .pk-art img:nth-child(3) { transform: rotate(8deg); }
.pk-foot { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 40px; }
.packart.opening { animation: packopen .9s cubic-bezier(.4,0,.2,1) forwards; }
.pulled { width: 250px; margin-bottom: 10px; animation: reveal .7s cubic-bezier(.2,.8,.2,1); }
@keyframes packsheen { to { filter: hue-rotate(360deg); } }  /* the colours cycle in place, so there is no moving seam */
@keyframes packopen { 0%, 100% { } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(-3deg); } 40% { transform: rotate(3deg) scale(1.03); } 55% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1.5) translateY(-30px); opacity: 0; filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) { .packart::before, .pulled { animation: none; } .packart { transition: none; } }
nav a[hidden] { display: none; }

/* glass panels: the header's clear material, used for marketplace tiles and the order book */
.glass, .tile { background: rgba(130,130,136,.18); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 0; border-radius: 16px; }
a.tile { text-decoration: none; color: inherit; transition: background .2s; }
a.tile:hover { background: rgba(165,165,172,.28); }
.tile.picked { background: rgba(200,200,206,.34); }
.grid.mk { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kv.sm { gap: 6px 20px; font-size: 15px; }
.book { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 22px; }
.bookslab { position: sticky; top: 90px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stats > div { padding: 14px 16px; border-radius: 12px; }
.stats span { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.stats b { font: 400 18px var(--display); white-space: nowrap; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.side { padding: 22px; }
.side h2 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.side h2 small { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ob { display: grid; grid-template-columns: 1.1fr .7fr 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ob b { font-weight: 400; } .ob .btn { min-width: 64px; }
@media (max-width: 1000px) { .book { grid-template-columns: 1fr; gap: 26px; } .bookslab { position: static; max-width: 240px; margin: 0 auto; } .stats { grid-template-columns: repeat(2, 1fr); } .sides { grid-template-columns: 1fr; } }

/* no underlines anywhere for hover or selected states: a soft rounded fill instead */
nav { gap: 4px; }
nav a:not(.btn) { padding: 7px 13px; border-radius: 999px; text-decoration: none; transition: background .18s; }
nav a:not(.btn):hover, nav a:not(.btn)[aria-current="page"] { text-decoration: none; background: rgba(255,255,255,.13); }
.link { text-decoration: none; padding: 5px 10px; margin: -5px -10px; border-radius: 999px; transition: background .18s, color .18s; display: inline-block; }
.link:hover { background: rgba(255,255,255,.13); color: var(--bone); }
main a:not(.btn):not(.tile) { text-decoration: none; }
.note a { color: var(--bone); padding: 2px 8px; margin: 0 -4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.note a:hover { background: rgba(255,255,255,.13); }

/* marketplace tile: the ask is the price; one coloured line says where it sits against FMV */
.tile .price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.tile .price b { font: 400 22px var(--display); }
.tile .price span { font-size: 14px; white-space: nowrap; }
.up { color: #ff6b6b; } .down { color: var(--good); }
.grid.mk .tile .slabbox { margin-bottom: 16px; }  /* breathing room between the slab and its details */
.grid.mk .tile { padding: 20px 18px 18px; }

/* breadcrumbs: the only page header */
.crumbs { display: flex; align-items: center; gap: 4px; margin: 0 -10px 26px; font-size: 14px; color: var(--dim); }
.crumbs a, .crumbs .crumb { color: var(--dim); text-decoration: none; padding: 5px 10px; border-radius: 999px; background: none; border: 0; font: inherit; cursor: pointer; transition: background .18s, color .18s; }
.crumbs a:hover, .crumbs .crumb:hover { background: none; color: var(--bone); }
.crumbs span { color: var(--bone); padding: 5px 10px; }
.crumbs i { font-style: normal; opacity: .5; }
main { padding-top: 26px; }

/* ---------- packs: the opening sequence, ported from the Prized Packs demo and reskinned ----------
   price panel | pack | odds, then the pack fans onto a clock face, spins, brakes at twelve, tears open, and the slab comes up */
main { overflow-x: clip; }
.rip { --ph: min(52vh, 420px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 56px; align-items: center; }
.rip-centre { position: relative; display: flex; flex-direction: column; align-items: center; }
.rip-packwrap { position: relative; height: var(--ph); aspect-ratio: 270 / 400; z-index: 2; }
.rip-tilt { position: absolute; inset: 0; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.rip .packart { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; cursor: default; }
.rip .packart:hover { transform: none; }
.pk-half { position: absolute; inset: 0; }
.pk-body { clip-path: inset(17% 0 0 0); z-index: 2; }
.pk-lid { clip-path: inset(0 0 83% 0); z-index: 3; }
.rip-slab { position: absolute; left: 50%; top: 50%; width: 80%; transform: translate(-50%, -50%); opacity: 0; z-index: 1; transition: opacity 200ms ease; }
.rip-ring { position: absolute; left: 50%; top: 0; width: 100vw; margin-left: -50vw; height: var(--ph); pointer-events: none; opacity: 0; z-index: 3; }
.ring-item { position: absolute; left: 50%; top: 50%; height: var(--ph); aspect-ratio: 270 / 400; margin-top: calc(var(--ph) * -.5); margin-left: calc(var(--ph) * -.3375); will-change: transform, opacity; opacity: 0; }
.ring-item .packart::before { animation: none; }
.rip.is-ring .rip-ring { opacity: 1; }
.rip.is-ring .rip-packwrap { opacity: 0; }
.rip.is-ring .rip-side { opacity: .25; transition: opacity 400ms ease; }
.rip.is-landed .ring-item:not(.is-front) { opacity: 0 !important; transition: opacity 450ms ease; }
.rip.is-landed .ring-item.is-front { opacity: 0 !important; transition: opacity 150ms ease 400ms; }
.rip.is-landed .rip-packwrap { opacity: 1; transition: opacity 150ms ease 350ms; }
.rip.is-rip .rip-packwrap { animation: gs-shake 520ms ease-in-out; }
.rip.is-rip .pk-lid { animation: gs-tear 620ms 480ms cubic-bezier(.3,.8,.3,1) forwards; }
.rip.is-rip .pk-body { animation: gs-slide 900ms 980ms cubic-bezier(.5,0,.8,.4) forwards; }
.rip.is-rip .rip-slab { opacity: 1; transition-delay: 1000ms; animation: gs-pop 520ms 1650ms cubic-bezier(.2,.7,.2,1) both; }
.rip.is-open .pk-half { opacity: 0; pointer-events: none; }
.rip.is-open .rip-slab { opacity: 1; }
.rip.is-open .rip-side { opacity: 1; }
@keyframes gs-shake { 0% { transform: rotate(0); } 15% { transform: rotate(-3deg) scale(1.02); } 30% { transform: rotate(3deg) scale(1.03); } 45% { transform: rotate(-4deg) scale(1.04); } 60% { transform: rotate(4deg) scale(1.04); } 80% { transform: rotate(-2deg) scale(1.02); } 100% { transform: rotate(0); } }
@keyframes gs-tear { 0% { transform: none; opacity: 1; } 35% { transform: translate(6px, -12px) rotate(-5deg); opacity: 1; } 100% { transform: translate(-50px, -130px) rotate(-22deg); opacity: 0; } }
@keyframes gs-slide { 0% { transform: none; opacity: 1; } 60% { opacity: 1; } 100% { transform: translateY(70%); opacity: 0; } }
@keyframes gs-pop { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.07); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes gs-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gs-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rip-tag { min-height: 70px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rip-tag > * { animation: gs-in 450ms cubic-bezier(.2,.7,.2,1) both; }
.rip-tag b { font: 400 20px var(--display); }
.rip-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; min-height: 44px; }
.rip-actions > * { animation: gs-in 450ms cubic-bezier(.2,.7,.2,1) both; }
/* the two panels either side of the pack: price on the left, odds on the right */
.rip-side { display: flex; flex-direction: column; gap: 18px; }
.rip-left { align-items: flex-end; text-align: right; }
.rip-head { display: flex; flex-direction: column; gap: 4px; }
.rip-head b { font: 400 18px var(--display); }
.rip-price { font: 400 46px var(--display); letter-spacing: -.02em; line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rip-foot { display: grid; grid-template-columns: auto auto; gap: 14px 28px; }
.rip-foot div { display: flex; flex-direction: column; gap: 4px; }
.rip-foot span, .odd-name, .odd-p, .feed-head .live { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rip-foot b { font-weight: 400; font-size: 16px; }
.odd { display: grid; grid-template-columns: minmax(0, 190px) minmax(40px, 1fr) 40px; align-items: center; gap: 12px; }
.odd-name em { display: block; font: 400 15px var(--text); letter-spacing: 0; text-transform: none; color: var(--bone); margin-bottom: 3px; }
.odd-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.odd-bar i { display: block; height: 100%; border-radius: 999px; background: #fff; transform-origin: left; animation: gs-bar 700ms 300ms cubic-bezier(.2,.7,.2,1) both; }
.odd-p { text-align: right; color: var(--bone); }
/* recent pulls */
.feed { margin-top: 46px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.feed-head b { font-weight: 400; }
.live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; animation: gs-live 1.6s ease-out infinite; }
@keyframes gs-live { 0% { box-shadow: 0 0 0 0 rgba(190,190,196,.5); } 100% { box-shadow: 0 0 0 8px rgba(190,190,196,0); } }
.feed-row { display: flex; gap: 8px; }
.pull { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; font-size: 14px; background: rgba(130,130,136,.18); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); animation: gs-in 400ms both; }
.pull .av { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font: 500 11px var(--mono); font-style: normal; }
.pull .what { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pull b { font-weight: 400; white-space: nowrap; }
.pull.is-you { background: rgba(200,200,206,.3); }
@media (max-width: 1000px) {
  .rip { grid-template-columns: 1fr; gap: 26px; --ph: min(44vh, 340px); }
  .rip-centre { order: -1; } .rip-left { align-items: flex-start; text-align: left; } .feed-row { flex-direction: column; } .pull { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .odd-bar i, .rip-tag > *, .rip-actions > *, .pull, .live i { animation: none; } }

/* Rinter's letters sit high in their line box (tall descender space, short ascender), so text in buttons and pills
   reads above centre. Padding the top by a fifth of the type size drops it back to the optical middle. */
.btn, .pops button { padding-top: .3em; }
nav a:not(.btn) { padding: 10px 13px 6px; }
.crumbs a, .crumbs .crumb, .crumbs span { padding: 7px 10px 3px; }

/* item page, on OpenSea's pattern */
.book h1 { margin: 0 0 12px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; margin-bottom: 20px; }
.byline .coll { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; }
.tick { width: 17px; height: 17px; color: #2081e2; flex: none; position: relative; top: -3px; vertical-align: middle; }  /* the one colour on the site: a verified collection's blue check, raised to sit level with the text */
.facts { display: flex; gap: 34px; margin-bottom: 22px; }
.facts span { display: grid; gap: 5px; }
.facts em, .buybox .lab { font: 500 11px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.facts b { font: 400 18px var(--display); font-variant-numeric: tabular-nums; }
.buybox { padding: 22px 24px; display: grid; gap: 18px; }
.buybox .price { display: flex; align-items: baseline; gap: 14px; margin-top: 8px; }
.buybox .price b { font: 400 clamp(30px, 4vw, 42px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
.buybox .price b.dim { font-size: 22px; color: var(--dim); }
.buybox .row { display: flex; gap: 10px; flex-wrap: wrap; } .buybox .row .btn { flex: 1 1 160px; }
.panel { display: grid; gap: 30px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.panel h2 small { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.panel .pad { padding: 20px 22px; }
.traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.traits > div { padding: 13px 15px; border-radius: 12px; display: grid; gap: 6px; }
.traits span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.traits b { font-weight: 400; font-size: 15px; }
.hist svg { display: block; width: 100%; height: 150px; }
.histax { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.act { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.act b { font-weight: 400; } .act span:last-child { text-align: right; min-width: 70px; }

/* item page: collection, slabber, rarity and pop sit in the same small glass tiles as the numbers below them */
.stats.facts { display: grid; gap: 10px; margin-bottom: 10px; }
.stats.facts span { display: block; } .stats.facts b { font: 400 18px var(--display); display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; }
.book h1 { margin-bottom: 18px; }

/* packs page: top hits (three rows of six) and the live row of recent pulls */
.hits { margin-top: 44px; }
.hits h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hits .live { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.live i { background: #b4b4ba; }
.hitgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile.hit { padding: 14px 12px 12px; gap: 8px; }
.tile.hit .meta b { font-weight: 400; font-size: 14px; }
.tile.hit .price b { font-size: 17px; }
.tile.hit .note { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.hit.is-new { animation: hit-in 520ms cubic-bezier(.2,.7,.2,1) both; }
.tile.hit.is-you { background: rgba(200,200,206,.3); }
@keyframes hit-in { from { opacity: 0; transform: translateX(-24px) scale(.96); } }
@media (max-width: 700px) { .hitgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #recent .tile:nth-child(n+3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .tile.hit.is-new { animation: none; } }
.tile.hit .price { flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tile.hit .price b { white-space: nowrap; }
.tile.hit .price .chip { font-size: 9px; padding: 3px 7px; }

/* header: the links sit on the right, beside the wallet, as on the homepage */
header nav { justify-content: flex-end; }

/* item page tabs, after OpenSea: text tabs on one line, each section a card with its own header, orders and activity as full-width tables */
.tabbar { display: flex; gap: 4px; margin: 36px 0 16px; }
.tab { border: 0; background: none; color: var(--dim); font: 400 17px var(--display); padding: 11px 18px 7px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s, color .18s; }
.tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.tab.on { color: #fff; background: rgba(255,255,255,.13); }
.tab i { font: 500 11px var(--mono); font-style: normal; color: var(--dim); background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px 7px; }
.tab.sm { font-size: 14px; padding: 8px 13px 5px; }
.panel { gap: 12px; }
.icard { padding: 0; overflow: hidden; }
.icard > .chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; min-height: 52px; }
.icard > .chead h2 { font-size: 17px; margin: 0; }
.icard .count { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.icard > :not(.chead) { margin: 14px 22px 22px; }
.icard .filters { display: flex; gap: 2px; margin-right: -8px; }
.icard .traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.icard .traits > div { padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; gap: 6px; }
.rows { margin: 0; } .rows > div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; font-size: 15px; }
.rows dt { color: var(--soft); } .rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.icard .tbl { margin: 8px 0 10px; }
.tbl .th, .tbl .tr { display: grid; align-items: center; gap: 12px; padding: 0 22px; font-variant-numeric: tabular-nums; }
.tbl .th { height: 34px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tbl .tr { min-height: 54px; font-size: 15px; transition: background .15s; }
.tbl .tr:hover { background: rgba(255,255,255,.05); }
.tbl .tr b { font-weight: 400; } .tbl .tr .btn { justify-self: end; min-width: 76px; }
.t-list .th, .t-list .tr { grid-template-columns: 1.2fr .8fr .8fr 1fr 96px; }
.t-offer .th, .t-offer .tr { grid-template-columns: 1.2fr .8fr 1.8fr 96px; }
.t-act .th, .t-act .tr { grid-template-columns: 1.5fr 1fr 1fr 1fr 80px; }
.t-act .th span:last-child, .t-act .tr > span:last-child { text-align: right; }
.ev { display: flex; align-items: center; gap: 12px; } .ev small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.evi { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255,255,255,.09); flex: none; }
.panel > .note { margin: 2px 4px 6px; }
@media (max-width: 700px) { .t-list .th span:nth-child(4), .t-list .tr > :nth-child(4), .t-act .th span:nth-child(4), .t-act .tr > :nth-child(4) { display: none; }
  .t-list .th, .t-list .tr { grid-template-columns: 1.2fr .8fr .8fr 88px; } .t-act .th, .t-act .tr { grid-template-columns: 1.5fr 1fr 1fr 70px; } .tbl .th, .tbl .tr { padding: 0 16px; } }

/* packs: a thin bar of collection logos above the rip; the chosen one gets the flat rounded tint */
.colbar { display: flex; align-items: center; gap: 4px; padding: 5px; margin-bottom: 12px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.colbar .col { flex: 1 1 0; min-width: 84px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: #fff; opacity: .6; cursor: pointer; transition: background .18s, opacity .18s; font: 400 15px var(--display); }
.colbar .col:hover { opacity: 1; background: rgba(255,255,255,.07); }
.colbar .col.on { opacity: 1; background: rgba(255,255,255,.16); }
.colbar .col span { padding-top: .3em; }
.colbar .col i { display: block; width: 78px; height: 22px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.colbar .col img { display: block; height: 26px; width: auto; }
.tile.hit { padding: 18px 16px 16px; gap: 10px; } .tile.hit .slabbox { max-width: 180px; }
.tile.hit .meta b { font-size: 15px; } .tile.hit .price b { font-size: 20px; } .tile.hit .price .chip { font-size: 10px; padding: 4px 8px; } .tile.hit .note { font-size: 13px; }

/* header: logo left, wallet right, the links centred between them */
header nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; }
#wallet { margin-left: auto; }
@media (max-width: 760px) { header nav { position: static; transform: none; flex: 1; } }

/* footer, as on the homepage: menu columns, the wordmark as wide as the page content, the small print */
footer { max-width: 1240px; margin: 0 auto; padding: 60px 28px 36px; text-align: left; font-size: 15px; color: var(--dim); }
.fnav { position: static; transform: none; display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 70px; font-size: 15px; font-weight: 400; letter-spacing: 0; }
.fnav div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fnav h3 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7d796f; margin: 0 0 10px; }
.fnav a, .fnav a:not(.btn) { color: #fff; padding: 7px 12px 4px; margin: 0 -12px; border-radius: 999px; text-decoration: none; display: inline-block; background: none; }
.fnav a:hover { background: rgba(255,255,255,.13); }
.fmark { display: block; color: #fff; text-decoration: none; }
.fmark span { display: block; width: max-content; font-family: "Nivra", "Bigger Display", sans-serif; font-size: 100px; line-height: 1; white-space: nowrap; }
footer .fine { margin-top: 30px; font-size: 13px; color: #7d796f; }
@media (max-width: 700px) { .fnav { grid-template-columns: 1fr 1fr; } }

/* footer v2: copyright left, menu columns right, and the wordmark in the glass tint with its feet on the bottom of the page */
footer { padding-bottom: 0 !important; overflow: hidden; }
.ftop { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 64px; }
.ftop .fine { margin: 0; max-width: 300px; font-size: 15px; color: #fff; display: grid; gap: 12px; }
.ftop .fine small { font-size: 12px; line-height: 1.5; color: #7d796f; }
.fnav { display: flex; gap: 72px; margin: 0; }
.fmark { color: rgba(130,130,136,.34); transition: color .3s; }
.fmark:hover { color: rgba(165,165,172,.5); }
@media (max-width: 760px) { .ftop { flex-direction: column; } .fnav { flex-wrap: wrap; gap: 32px 48px; } }
.fnav { flex: none; }
.colbar { margin: 12px 0 0; }
.colbar .col { flex: 1 0 auto; min-width: 0; padding: 0 18px; white-space: nowrap; }

/* item page: collection, slabber, rarity and pop on one line under the name, no containers */
.factline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 0 0 22px; font-size: 16px; font-variant-numeric: tabular-nums; }
.factline span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.factline em { font-style: normal; color: var(--dim); }
.book h1 { margin-bottom: 12px; }
.pfp { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(255,255,255,.1); }
.pfp.px { image-rendering: pixelated; }
.factline .coll { gap: 8px; }
.factline .pfp { position: relative; top: -2px; }

/* marketplace: collection filter with each collection's image */
.colfilter { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 22px; }
.colfilter .tab { gap: 8px; } .colfilter .pfp { width: 22px; height: 22px; position: relative; top: -2px; }

/* item page: the valuation, one comp per row, the one the estimate came from brighter */
.rows.val > div { align-items: baseline; color: var(--soft); } .rows.val dt { color: inherit; display: grid; gap: 3px; }
.rows.val small { font-size: 12.5px; color: var(--dim); } .rows.val .top, .rows.val .sumrow { color: var(--ink, #fff); } .rows.val .top dt, .rows.val .sumrow dt { color: #fff; }
.rows.val .sumrow { margin-top: 6px; padding-top: 14px; } .rows.val .sumrow + .sumrow { margin-top: 0; padding-top: 9px; } .rows.val dd { white-space: nowrap; }
.icard .traits small { font-size: 12px; color: var(--dim); }

/* ---- deposit flow ---- */
.mtop { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 30px; } .mtop .crumbs { margin-bottom: 0; }
.msteps { display: inline-flex; gap: 2px; margin-right: -6px; }
.msteps span { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 5px 7px; border-radius: 999px; color: var(--dim); font-size: 15px; white-space: nowrap; }
.msteps i { font: 500 11px var(--mono); font-style: normal; width: 24px; height: 24px; margin-top: -4px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.msteps i svg { width: 13px; height: 13px; }
.msteps .on { background: rgba(255,255,255,.14); color: #fff; } .msteps .on i { background: #fff; color: var(--bg); }
.msteps .done { color: var(--soft); } .msteps .done i { background: rgba(255,255,255,.2); color: #fff; }
.mlabel { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.mlabel i { font-style: normal; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px 7px; margin-left: 6px; }
.mpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mpick { position: relative; padding: 14px 14px 18px; text-align: left; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 10px; transition: background .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.mpick:hover { background: rgba(165,165,172,.3); transform: translateY(-4px); }
.mpick .art { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block; margin-bottom: 4px; }
.mpick .art.pixel { image-rendering: pixelated; }
.mpick .coll, .mcoll, .msupported span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.mpick .pfp, .mcoll .pfp, .msupported .pfp { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; position: relative; top: -2px; }
.mpick b { font: 400 21px var(--display); }
.mpick .est { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 15px; }
.mpick .est span { display: grid; gap: 3px; } .mpick em { font: 500 10.5px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mpick .go { position: absolute; right: 22px; top: 22px; background: #fff; color: var(--bg); border-radius: 999px; padding: 9px 14px 5px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.mpick:hover .go, .mpick:focus-visible .go { opacity: 1; transform: none; }
.msupported { display: flex; flex-wrap: wrap; gap: 8px; } .msupported span { padding: 9px 14px 6px 9px; border-radius: 999px; color: var(--bone); }
.mtwo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.mtwo > div > section, .mtwo .mcheck, .mtwo .mtx { margin-bottom: 14px; }
.mside { position: sticky; top: 96px; text-align: center; } .mside .note { margin-top: 14px; }
.mstage { position: relative; padding: 26px 22px; }
.mside.busy .mstage > div { animation: mfloat 2.4s ease-in-out infinite; }
@keyframes mfloat { 50% { transform: translateY(-8px); } }
.mpop { padding: 22px 22px 18px; margin-bottom: 10px; display: grid; gap: 20px; }
.mpophead { display: flex; align-items: center; gap: 18px; }
.mpophead > b { font: 400 54px/1 var(--display); min-width: 1.2em; position: relative; top: .06em; }
.mpophead > div { display: grid; gap: 3px; flex: 1; min-width: 0; } .mpophead span { font-size: 19px; } .mpophead small { font-size: 13.5px; color: var(--dim); }
.mpophead em { font-style: normal; font-size: 14px; color: var(--dim); text-align: right; white-space: nowrap; } .mpophead em i { display: block; font-style: normal; font: 400 21px var(--display); color: #fff; }
.mpop input[type=range] { width: 100%; margin: 0; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); outline-offset: 6px; }
.mpop input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.mpop input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; cursor: grab; }
.mpills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mpills button { height: 40px; padding: .3em 15px 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 15px var(--text); cursor: pointer; transition: background .18s; }
.mpills button:hover { background: rgba(255,255,255,.18); } .mpills button[aria-pressed="true"] { background: #fff; color: var(--bg); }
.msum, .mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; } .mstats { grid-template-columns: repeat(4, 1fr); margin: 26px 0; }
.msum > div, .mstats > div { padding: 16px 18px 14px; display: grid; gap: 5px; }
.msum span, .mstats span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.msum b { font: 400 24px var(--display); white-space: nowrap; } .mstats b { font: 400 18px var(--display); white-space: nowrap; } .msum small { font-size: 12.5px; color: var(--dim); }
.msum .out { background: rgba(200,200,206,.3); }
.mnav { margin-top: 26px; } .mnav .btn { height: 50px; padding-left: 26px; padding-right: 26px; }
.mnext, .mtx { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; } .icard > .mnext { margin: 16px 22px 24px; }
.mnext li, .mtx li { display: flex; gap: 14px; align-items: flex-start; } .mnext div, .mtx div { display: grid; gap: 2px; }
.mnext i, .mtx i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font: 500 12px var(--mono); font-style: normal; }
.mnext b, .mtx b { font-weight: 400; font-size: 17px; padding-top: 3px; } .mnext span, .mtx div span { font-size: 14px; color: var(--dim); }
label.mcheck { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; padding: 18px 22px; cursor: pointer; } label.mcheck input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.1) center / 15px 15px no-repeat; cursor: pointer; transition: background-color .18s; }
label.mcheck:hover input { background-color: rgba(255,255,255,.18); }
label.mcheck input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
label.mcheck input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mcheck span { padding-top: .12em; }
.mtx { padding: 26px 24px; gap: 26px; } .mtx li { color: var(--dim); transition: color .3s; } .mtx li.on, .mtx li.done { color: #fff; }
.mtx li.done i { background: #fff; color: var(--bg); } .mtx i svg { width: 15px; height: 15px; } .mtx li.done div span { font-family: var(--mono); font-size: 12.5px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: mspin .8s linear infinite; } @keyframes mspin { to { transform: rotate(360deg); } }
.mdone { max-width: 760px; margin: 0 auto; text-align: center; } .mdone h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 14px; } .mdone .row { justify-content: center; margin-top: 26px; } .mdone .mstats { text-align: left; }
/* several slabs picked: fanned out from a point below them, opening a little wider on hover */
.sfan { aspect-ratio: 1 / 1.08; padding: 0; --a: 7deg; --x: 34px; }
.sfan > div { position: absolute; left: 25%; top: 7%; width: 50%; --o: calc(var(--i) - (var(--n) - 1) / 2); transform-origin: 50% 115%; transform: rotate(calc(var(--o) * var(--a))) translateX(calc(var(--o) * var(--x))); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sfan:hover { --a: 9deg; --x: 40px; }
.mside.busy .sfan > div { animation: none; }
@media (prefers-reduced-motion: reduce) { .sfan > div { transition: none; } }
.mfan { position: relative; height: 470px; margin: 0 auto 48px; width: 260px; animation: mrise .9s cubic-bezier(.2,.8,.2,1) both; }
.mfan > div { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 120%; }
.mfan .f1 { transform: rotate(-11deg) translateX(-34px); } .mfan .f2 { transform: rotate(11deg) translateX(34px); } .mfan .f0 { z-index: 2; }
.mfan:hover .f1 { transform: rotate(-16deg) translateX(-60px); } .mfan:hover .f2 { transform: rotate(16deg) translateX(60px); }
@keyframes mrise { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@media (max-width: 1000px) { .mtwo { grid-template-columns: 1fr; gap: 30px; } .mside { position: static; max-width: 300px; margin: 0 auto; order: -1; } .mpophead { flex-wrap: wrap; } .msum { grid-template-columns: 1fr; } .mstats { grid-template-columns: repeat(2, 1fr); } .msteps span { padding-right: 12px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .mside.busy .mstage > div, .mfan, .spin { animation: none; } }

/* header, connected: the balance, then a white button with your picture and name that opens your portfolio */
#wallet { padding-right: 0; gap: 12px; }
#wallet .me { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 4px; margin-right: -4px; border-radius: 999px; background: #fff; color: var(--bg); text-decoration: none; font: 600 14px var(--text); transition: background .18s; }
#wallet .me:hover { background: var(--bone); }
#wallet .me img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; } #wallet .me img.pixel { image-rendering: pixelated; }
#wallet .me span { padding-top: .3em; }

/* rows with a line of explanation under the label, and a rate beside the amount */
.rows.sub > div { align-items: baseline; } .rows.sub dt { display: grid; gap: 3px; color: var(--bone); } .rows.sub small { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.rows.sub dd { white-space: nowrap; display: flex; align-items: baseline; gap: 10px; } .rows.sub dd em { font: 500 11px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px 8px 3px; }
.rows > div[hidden] { display: none; }

/* ---- creator terms: one control per rate ---- */
.mterms { margin-top: 26px; }
.mtermgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mterm { padding: 20px 20px 16px; display: grid; gap: 18px; align-content: start; }
.mtermhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mtermhead > div { display: grid; gap: 5px; } .mtermhead span { font-size: 18px; } .mtermhead small { font-size: 12.5px; line-height: 1.4; color: var(--dim); min-height: 4.2em; }
.mtermhead b { font: 400 34px/1 var(--display); white-space: nowrap; position: relative; top: .08em; }
.mterm input[type=range] { width: 100%; margin: 0; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); outline-offset: 6px; }
.mterm input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.mterm input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; cursor: grab; }
.mterm .mpills { grid-template-columns: repeat(3, 1fr); }
/* ---- Studio ---- */
.sstats { margin: 0 0 22px; }
.srun { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; padding: 26px; margin-bottom: 16px; align-items: start; }
.srunslab { position: sticky; top: 96px; }
.srunhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.srunhead h2 { font-size: 26px; margin-bottom: 6px; }
.sgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 26px; }
.sgrid > div { padding: 12px 14px 10px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; gap: 4px; }
.sgrid span { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); } .sgrid b { font: 400 18px var(--display); white-space: nowrap; }
.srun .mterm { background: rgba(255,255,255,.06); -webkit-backdrop-filter: none; backdrop-filter: none; }
.srun .mtermgrid { margin-bottom: 26px; }
.searn .rows { margin: 0; }
@media (max-width: 1000px) { .mtermgrid { grid-template-columns: 1fr; } .mtermhead small { min-height: 0; } .srun { grid-template-columns: 1fr; } .srunslab { position: static; max-width: 220px; margin: 0 auto; } .sgrid { grid-template-columns: repeat(3, 1fr); } }

/* Studio: the sell-back fund */
.sfund { padding: 26px; margin-bottom: 16px; }
.sfundhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; } .sfundhead h2 { font-size: 22px; margin-bottom: 6px; } .sfundhead .note { max-width: 34em; }
.sfundhead > b { font: 400 40px/1 var(--display); white-space: nowrap; position: relative; top: .06em; }
.sgrid.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.sfundform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sfundform input { height: 44px; width: 190px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 15px var(--text); padding: .25em 18px 0; }
.sfundform input::placeholder { color: rgba(255,255,255,.5); } .sfundform .note { margin-left: 8px; }
@media (max-width: 1000px) { .sgrid.three { grid-template-columns: 1fr; } .sfundhead { flex-direction: column; } }

/* ---- Studio: packs and the pack builder ---- */
.spacks { padding: 26px; margin-bottom: 16px; } .spacks .tbl { margin: 0; }
.sptbl .th, .sptbl .tr { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 1fr auto; gap: 14px; align-items: center; }
.pbtbl .th, .pbtbl .tr { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr 110px 90px; gap: 12px; align-items: center; }
.sptbl .th, .pbtbl .th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 0 0 10px; }
.sptbl .tr, .pbtbl .tr { padding: 11px 0; font-size: 15px; } .sptbl .tr > span:first-child, .pbtbl .tr > span:first-child { display: grid; gap: 2px; min-width: 0; }
.sptbl b, .pbtbl b { font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sptbl small, .pbtbl small { font-size: 12.5px; color: var(--dim); }
.pbtbl input { width: 70px; height: 36px; margin-right: 5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 15px var(--text); text-align: center; padding-top: .25em; }
.pbtbl input.set { background: rgba(255,255,255,.24); } .pbtbl .chip { font-style: normal; }
.pbpick { display: grid; gap: 6px; }
.pbrow { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: 14px; transition: background .18s; } .pbrow.on { background: rgba(255,255,255,.07); }
.pbrow img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: none; } .pbrow img.pixel { image-rendering: pixelated; }
.pbrow > div:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 2px; } .pbrow b { font-weight: 400; font-size: 16px; } .pbrow small { font-size: 12.5px; color: var(--dim); }
.pbstep { display: flex; align-items: center; gap: 6px; } .pbstep > b { min-width: 30px; text-align: center; font: 400 17px var(--display); padding-top: .2em; }
.pbstep button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font: 400 18px/1 var(--text); cursor: pointer; transition: background .18s; }
.pbstep button:hover:not([disabled]) { background: rgba(255,255,255,.2); } .pbstep button[disabled] { opacity: .35; cursor: default; }
.pbstep button.all { width: auto; padding: .3em 14px 0; border-radius: 999px; font-size: 13px; margin-left: 4px; }
.pbrisk { margin-bottom: 22px !important; display: grid; gap: 12px; } .pbrisk label { font-size: 15px; } .pbrisk div { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pbrisk input { width: 100%; margin: 0; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); outline-offset: 6px; }
.pbrisk input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.pbrisk input::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; cursor: grab; }
.pbside { text-align: left; } .pb.mtwo { grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.pbform { display: grid; gap: 14px; } .pbform label { display: grid; gap: 7px; } .pbform label span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pbform input { height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 16px var(--text); padding: .25em 18px 0; width: 100%; } .pbform input::placeholder { color: rgba(255,255,255,.45); }
.pbform .btn { justify-self: start; } .pbact { display: flex; gap: 8px; } .pbact .btn { flex: 1; height: 48px; }
@media (max-width: 1000px) { .pb.mtwo { grid-template-columns: 1fr; } .pbtbl .th, .pbtbl .tr { grid-template-columns: minmax(0, 1.6fr) 1fr 100px; } .pbtbl .th > :nth-child(2), .pbtbl .tr > :nth-child(2), .pbtbl .th > :nth-child(5), .pbtbl .tr > :nth-child(5) { display: none; } .sptbl .th, .sptbl .tr { grid-template-columns: minmax(0, 1.6fr) 1fr auto; } .sptbl .th > :nth-child(3), .sptbl .tr > :nth-child(3), .sptbl .th > :nth-child(4), .sptbl .tr > :nth-child(4) { display: none; } }

/* ---- profile ---- */
.phead { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; flex-wrap: wrap; }
.phead > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; } .phead > img.pixel { image-rendering: pixelated; }
.pname { flex: 1; min-width: 180px; } .pname h1 { margin-bottom: 4px; }
.pstats { display: flex; gap: 8px; flex-wrap: wrap; } .pstats > div { padding: 12px 16px 10px; border-radius: 12px; background: rgba(130,130,136,.18); display: grid; gap: 4px; min-width: 104px; }
.pstats span { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); } .pstats b { font: 400 18px var(--display); white-space: nowrap; }
.ptabs { margin-bottom: 24px; } .ptabs .tab { text-decoration: none; } .pintro { margin: -6px 0 22px; max-width: 46em; }
/* item page: the slabs of this NFT that you hold */
.yours { margin-bottom: 14px; } .t-yours .tr { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 16px; font-size: 15px; }
.t-yours b { font-weight: 400; } .t-yours .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .t-offer .tr small { display: block; font-size: 12px; color: var(--dim); }
@media (max-width: 700px) { .t-yours .tr { grid-template-columns: 1fr; gap: 6px; } .t-yours .acts { justify-content: flex-start; } }

/* ---- Studio, simplified: fund and packs side by side, then a line per NFT that opens to its terms ---- */
.stwo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.scard { padding: 22px 24px; display: grid; gap: 14px; align-content: start; margin-bottom: 14px; } .stwo .scard { margin-bottom: 0; }
.schead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; } .schead h2 { font-size: 20px; } .schead > b { font: 400 28px/1 var(--display); white-space: nowrap; position: relative; top: .06em; }
.schead .count { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.scard .sfundform input { height: 34px; width: 150px; font-size: 14px; padding: .25em 14px 0; }
.slist { display: grid; gap: 4px; } .slist > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; } .slist span { display: grid; gap: 2px; min-width: 0; } .slist b { font-weight: 400; } .slist small { font-size: 12.5px; color: var(--dim); }
.sruns { display: grid; gap: 4px; margin: 0 -10px; }
.srow { border-radius: 16px; transition: background .18s; } .srow.open { background: rgba(255,255,255,.05); }
.srowhead { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1.6fr) repeat(3, minmax(0, .7fr)) minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .18s; }
.srowhead:hover { background: rgba(255,255,255,.06); }
.srowhead img { width: 48px; height: 48px; border-radius: 9px; object-fit: cover; } .srowhead img.pixel { image-rendering: pixelated; }
.srowhead .nm { display: grid; gap: 2px; min-width: 0; } .srowhead .nm b { font-weight: 400; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .srowhead small { font-size: 12.5px; color: var(--dim); }
.srowhead .st { display: grid; gap: 3px; font-size: 15px; white-space: nowrap; } .srowhead em { font: 500 10px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); justify-self: center; margin-top: -4px; opacity: .6; transition: transform .2s; } .srow.open .chev { transform: rotate(-135deg); margin-top: 4px; }
.srowbody { padding: 8px 14px 18px; display: grid; gap: 14px; } .srowbody .mtermgrid { margin: 0; } .srowbody .mterm { background: rgba(255,255,255,.06); -webkit-backdrop-filter: none; backdrop-filter: none; } .srowbody .searn { padding: 0 6px; }
@media (max-width: 1000px) { .stwo { grid-template-columns: 1fr; } .srowhead { grid-template-columns: 48px minmax(0, 1fr) auto 24px; } .srowhead .st:not(:last-of-type) { display: none; } }

/* ---- Ship to me: the pre-order checkout ---- */
.shrun { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 16px 22px; margin-bottom: 16px; }
.shrun > div:first-child { display: grid; gap: 2px; } .shrun b { font-weight: 400; font-size: 17px; } .shrun span { font-size: 13px; color: var(--dim); }
.shrun .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; } .shrun .bar i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.shrun em { font: 500 12px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.shitems { display: grid; gap: 6px; } .shfee { display: grid; gap: 2px; text-align: right; white-space: nowrap; } .shfee b { font-weight: 400; font-size: 16px; } .shfee small { font-size: 12.5px; color: var(--dim); }
.shform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .shform label { display: grid; gap: 7px; } .shform label.wide { grid-column: 1 / -1; }
.shform label span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.shform input, .shform select { height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 16px var(--text); padding: .25em 18px 0; width: 100%; outline-offset: 2px; }
.shform select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.shform select option { color: #000; } .shform .bad { background-color: rgba(255,255,255,.2); outline: 2px solid #fff; }
.shmeth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shmeth button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .18s; }
.shmeth button:hover { background: rgba(255,255,255,.12); } .shmeth button[aria-pressed="true"] { background: #fff; color: var(--bg); }
.shmeth span { display: grid; gap: 2px; } .shmeth b { font-weight: 400; } .shmeth small { font-size: 12.5px; opacity: .6; } .shmeth em { font-style: normal; font-size: 17px; }
#shsum .tot { margin-top: 6px; padding-top: 12px; align-items: flex-start; } #shsum .tot dt { display: grid; gap: 3px; color: #fff; } #shsum .tot small { font-size: 12.5px; color: var(--dim); }
#shsum .tot dd { display: grid; gap: 2px; text-align: right; } #shsum .tot b { font: 400 24px var(--display); }
.shipdone { max-width: 720px; } .shipsteps { text-align: left; padding: 24px; margin: 28px 0; }
.pcart { margin-left: auto; align-self: center; }
.sorder .shitems { margin: 0 -8px; } .sorderfoot { justify-content: space-between; }
.mpills button[disabled] { opacity: .35; cursor: default; } .mterm input[disabled] { opacity: .4; }
.srowhead { grid-template-columns: 48px minmax(0, 1.5fr) repeat(4, minmax(0, .7fr)) minmax(0, 1fr) 24px; }
@media (max-width: 1000px) { .shrun { grid-template-columns: 1fr; gap: 10px; } .shform, .shmeth { grid-template-columns: 1fr; } .srowhead { grid-template-columns: 48px minmax(0, 1fr) auto 24px; } }

/* ---- phone ---- */
#shsum .tot b { white-space: nowrap; }
@media (max-width: 1000px) { .pbside { order: 0; max-width: none; margin: 0; } .ptabs { flex-wrap: wrap; row-gap: 8px; } .pcart { margin-left: 0; } }
@media (max-width: 720px) {
  header { height: auto; flex-wrap: wrap; row-gap: 4px; padding: 9px 10px 9px 20px; border-radius: 28px; width: calc(100% - 24px); }
  header nav { position: static; transform: none; order: 3; width: 100%; flex: none; justify-content: center; gap: 2px; overflow: visible; font-size: 14px; }
  main { padding-left: 16px; padding-right: 16px; }
  .msteps span:not(.on) { font-size: 0; gap: 0; padding-right: 7px; } .msteps { margin-right: 0; }
  .phead > img { width: 64px; height: 64px; } .pstats > div { min-width: 0; flex: 1 1 40%; }
  .mtermhead b { font-size: 28px; } .mpophead > b { font-size: 44px; } .mpophead { flex-wrap: wrap; }
  .t-list .tr, .t-list .th, .t-offer .tr, .t-offer .th { font-size: 14px; }
}
.mfee { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 14px; } .mfee span { display: grid; gap: 3px; font-size: 17px; } .mfee small { font-size: 13px; color: var(--dim); } .mfee b { font: 400 22px var(--display); white-space: nowrap; }
.sval { padding: 0 6px; } .sval summary { cursor: pointer; font-size: 15px; color: var(--soft); list-style: none; padding: 6px 0; } .sval summary::-webkit-details-marker { display: none; } .sval summary:hover { color: #fff; } .sval[open] summary { color: #fff; margin-bottom: 6px; }

/* small buttons and the round +/- buttons: Rinter's caps sit high in the line, so nudge them down to centre like the full-size buttons */
.btn.sm, .btn.dark { padding-top: .3em; } .pbstep button { padding-top: .28em; }

/* ---- custody: cert page, void, in-person transfer ---- */
.certpage .bookslab { position: sticky; } .certpage .isvoid > div { opacity: .32; filter: grayscale(1); }
.voidstamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-14deg); font: 400 44px/1 "Nivra Black", "Nivra", var(--display); letter-spacing: .04em; color: #fff; padding: .28em .5em .12em; border: 3px solid #fff; border-radius: 12px; white-space: nowrap; pointer-events: none; }
.certpage h1 { margin: 10px 0 12px; } .certline { max-width: 38em; margin-bottom: 22px; } .certpage .icard { margin-bottom: 18px; }
.chip.dead { background: #fff; color: var(--bg); border-color: #fff; }
.certnote { margin: 22px 0 12px; }
.certlook { display: flex; gap: 8px; flex-wrap: wrap; } .certlook input { height: 34px; width: 190px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 14px var(--text); padding: .25em 16px 0; } .certlook input::placeholder { color: rgba(255,255,255,.5); }
.voidq { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
.voidq select { height: 34px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 13px var(--text); padding: .25em 12px 0; } .voidq select option { color: #000; }
.t-yours form.inline input[type=text] { width: 190px; }
.sorder .pbrow .chip { margin-left: auto; }

/* ---- cert lookup ---- */
.certhome { max-width: 760px; margin: 0 auto; padding-top: 18px; text-align: center; } .certhome h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 14px; } .certhome .soft { max-width: 34em; margin: 0 auto 26px; }
.certbig { display: flex; gap: 8px; padding: 8px; border-radius: 999px; margin-bottom: 14px; }
.certbig input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: #fff; font: 400 22px var(--display); letter-spacing: .06em; padding: .22em 22px 0; outline: none; } .certbig input::placeholder { color: rgba(255,255,255,.4); letter-spacing: 0; }
.certbig .btn { height: 52px; padding-left: 28px; padding-right: 28px; font-size: 16px; }
.certmiss { padding: 16px 20px; margin: 0 0 14px; text-align: left; color: var(--soft); } .certmiss b { color: #fff; font-weight: 400; }
.certkey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0; text-align: left; } .certkey > div { padding: 16px 18px; display: grid; gap: 6px; align-content: start; } .certkey b { font-weight: 400; font-size: 17px; } .certkey span { font-size: 13.5px; color: var(--dim); line-height: 1.45; }
.certhome .mlabel { text-align: left; } .certtry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.certtry a { padding: 14px 18px 12px; display: grid; gap: 3px; text-decoration: none; color: inherit; transition: background .18s; } .certtry a:hover { background: rgba(165,165,172,.3); } .certtry b { font: 400 18px var(--display); letter-spacing: .04em; } .certtry span { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .certkey, .certtry { grid-template-columns: 1fr; } .certbig input { font-size: 18px; padding-left: 16px; } .certbig .btn { padding-left: 18px; padding-right: 18px; } }

/* ---- mint: four population tiers, each with its print cost and its plate ---- */
.mtiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mtiers button { padding: 18px 16px 16px; text-align: left; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 5px; align-content: start; transition: background .18s; }
.mtiers button:hover { background: rgba(165,165,172,.3); }
.mtiers b { font: 400 34px/1 var(--display); margin-bottom: 4px; } .mtiers span { font-size: 16px; } .mtiers em { font-style: normal; font-size: 15px; margin-top: 8px; } .mtiers small { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.mtiers .plate { display: block; height: 5px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; margin: 10px 0 2px; } .mtiers .plate i { display: block; height: 100%; border-radius: 999px; background: #fff; }
.mtiers button[aria-pressed="true"] { background: #fff; color: var(--bg); } .mtiers button[aria-pressed="true"] small { color: rgba(10,10,11,.62); }
.mtiers button[aria-pressed="true"] .plate { background: rgba(10,10,11,.16); } .mtiers button[aria-pressed="true"] .plate i { background: var(--bg); }
.mplate { margin: 0 2px; max-width: 46em; }
.icard .rows .tot { margin-top: 6px; padding-top: 12px; align-items: flex-start; } .icard .rows .tot dt { color: #fff; } .icard .rows .tot dd { display: grid; gap: 2px; text-align: right; } .icard .rows .tot b { font: 400 22px var(--display); } .icard .rows .tot small { font-size: 12.5px; color: var(--dim); }
@media (max-width: 1000px) { .mtiers { grid-template-columns: repeat(2, 1fr); } }

/* v1 header: the links sit on the right, beside the connect button */
header nav { position: static; transform: none; margin-left: auto; flex: none; }
#wallet { margin-left: 0; }
@media (max-width: 760px) { header nav { order: 0; width: auto; margin-left: auto; } #wallet .me span { display: none; } #wallet .me { padding: 0 4px; margin-right: 0; } }
@media (max-width: 720px) { header { flex-wrap: nowrap; gap: 6px; padding: 9px 10px 9px 18px; border-radius: 999px; } header nav { gap: 0; font-size: 13px; letter-spacing: 0; } header nav a:not(.btn) { padding-left: 9px; padding-right: 9px; white-space: nowrap; } }

/* an offer form sitting directly in a card keeps inside the card's padding */
.icard > form.inline { width: auto; } .offerform input { height: 38px; } .offerform .btn { white-space: nowrap; }
/* the cert page is what a phone opens on a tap: in one column the slab scrolls with the page instead of sticking behind it */
@media (max-width: 1000px) { .certpage .bookslab { position: static; } }

/* review and order: the NFT as one line, then the print plate as 40 card-shaped places */
.onft { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.onft > img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; } .onft > img.pixel { image-rendering: pixelated; }
.onft > div { display: grid; gap: 5px; } .onft b { font: 400 20px var(--display); }
.plate40 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.plate40 > i { position: relative; display: block; aspect-ratio: 727 / 1018; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
/* a place on the plate shows only the card from the slab renderer: the slab, label and back are hidden, and the
   card (727 wide at 200, 508 in the slab's own pixels) is scaled to fill the place */
.plate40 [data-pcard] { position: absolute; inset: 0; display: block; }
.cardonly .stage { width: 100%; height: 100%; margin: 0; perspective: none; cursor: default; pointer-events: none; }
.cardonly .stage .comp { left: calc(-200px * var(--s) * 1.2435); top: calc(-508px * var(--s) * 1.2435); transform: scale(calc(var(--s) * 1.2435)); }
.cardonly .stage .card { transform: none; border-radius: 0; }
.cardonly .stage .slab, .cardonly .stage .glare, .cardonly .stage .cardfill, .cardonly .stage .winfill, .cardonly .stage .label, .cardonly .stage .face.back, .cardonly .stage .holo { display: none; }
.plate40 .in [data-pcard] { opacity: .32; }

.plate40 .me em { z-index: 5; position: absolute; left: 0; right: 0; bottom: 0; padding: .45em 0 .2em; background: #fff; color: #0a0a0b; font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; font-style: normal; }
#plategrid .note { margin-top: 14px; }
@media (max-width: 720px) { .plate40 { gap: 4px; } .plate40 .me em { font-size: 7px; } }

/* choosing: several NFTs can be picked, each marked with the same grey circle and white tick as the steps */
.mpick { position: relative; } .mpick[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; }
.mpick .sel { position: absolute; top: 22px; right: 22px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(60,60,64,.86); display: grid; place-items: center; }
.mpick .sel svg { width: 15px; height: 15px; color: #fff; opacity: 0; } .mpick[aria-pressed="true"] .sel svg { opacity: 1; }
.mgo { margin-top: 22px; } .onfts { display: grid; gap: 12px; margin: 0 0 18px; } .onfts .onft { margin: 0; }

.shto { margin: 6px 22px 0 !important; line-height: 1.55; color: #fff; }

/* choose: the print run sits under the wallet, and a line to ask for a collection we don't cover yet */
.mplatecard { margin-top: 22px; } .mreq { margin-top: 12px; max-width: 520px; } .mreq input { height: 38px; }

/* the card creator: which card you're on, four layouts drawn with your own NFT, and the card colour */
.dnfts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.dnfts button { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 400 14px var(--text); cursor: pointer; }
.dnfts button[aria-pressed="true"] { background: #fff; color: var(--bg); } .dnfts img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; } .dnfts img.pixel { image-rendering: pixelated; } .dnfts span { padding-top: .3em; }
.dlays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.dlays button { display: grid; gap: 10px; padding: 12px 12px 10px; border: 0; border-radius: 16px; color: #fff; font: 400 14px var(--text); cursor: pointer; text-align: center; }
.dlays button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff; } .dlays b { font-weight: 400; padding-top: .2em; }
.dcard { position: relative; display: block; aspect-ratio: 727 / 1018; border-radius: 6px; overflow: hidden; } .dcard > span { position: absolute; inset: 0; display: block; }
.dtones { margin-bottom: 14px; max-width: 420px; } .dall { margin: 4px 0 0; }
@media (max-width: 720px) { .dlays { grid-template-columns: repeat(2, 1fr); } }

.dnote { margin: -4px 0 18px; } .dlays button { padding: 9px 9px 8px; }

/* two art options, side by side */
.dlays { grid-template-columns: repeat(2, minmax(0, 250px)); }
@media (max-width: 720px) { .dlays { grid-template-columns: repeat(2, 1fr); } }

/* the plate's places are <i> elements: keep the cards drawn inside them upright */
.plate40 > i { font-style: normal; }

/* the order as what you get, each line ticked, with the one price at the foot. (The selector is this specific so it
   beats the row's own layout for its right-hand cell, which would otherwise pin the tick to the corner.) */
.rows.sub.oget dd.otick { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; gap: 0; border-radius: 50%; background: rgba(255,255,255,.12); flex: none; line-height: 0; }
.rows.sub.oget dd.otick svg { display: block; width: 14px; height: 14px; color: #fff; }
.rows.sub.oget > div { align-items: center; }

/* header, v1: Cert lookup, the white Start submission button, then the profile at the far right: your picture when
   connected, a plain person when not. The profile sits outside any pill. */
header { gap: 14px; padding-right: 9px; }
header nav { margin-left: auto; }
header .hsub { height: 36px; padding: .3em 18px 0; font-size: 14px; white-space: nowrap; flex: none; }
#wallet { padding: 0; gap: 0; }
#wallet .pf { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; flex: none; }
#wallet .pf:hover { background: rgba(255,255,255,.24); }
#wallet .pf img { display: block; width: 100%; height: 100%; object-fit: cover; } #wallet .pf img.pixel { image-rendering: pixelated; }
#wallet .pf svg { display: block; width: 19px; height: 19px; }
/* on a phone the logo, the button and the profile fit on one row; Cert lookup stays in the footer */
@media (max-width: 720px) { header nav { display: none; } header .hsub { margin-left: auto; padding: .3em 15px 0; font-size: 13px; } header { gap: 8px; padding-right: 8px; } }

/* the header links sit in the centre: dead centre on a wide screen, and centred in the space between the logo and
   the button on a narrower one, where dead centre would run into the button */
header { position: sticky; }
header nav { margin: 0 auto; }
@media (min-width: 1040px) { header nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; } header .hsub { margin-left: auto; } }

/* the card pre-check: a caveat or a block on an NFT in the wallet, and the same result in words on the Design step */
.mpick .pcheck { display: block; margin-top: 12px; padding: 10px 12px 9px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 13px; line-height: 1.4; color: #cfcabd; text-align: left; }
.mpick .pcheck b { display: block; font-weight: 400; color: #fff; margin-bottom: 2px; }
.mpick.blocked { cursor: not-allowed; } .mpick.blocked .art, .mpick.blocked .coll, .mpick.blocked > b { opacity: .38; } .mpick.blocked .sel { display: none; }
.dcheck { display: grid; gap: 3px; margin: 0 0 14px; padding: 12px 14px 11px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; line-height: 1.4; color: #cfcabd; max-width: 520px; }
.dcheck:empty { display: none; } .dcheck b { font-weight: 400; color: #fff; }

/* the registry's runs: a tab per run, then its 40 places as real cards; hovering one says who minted and owns it */
.runreg { max-width: 980px; margin: 34px auto 0; }
.rtabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.rtab { height: 34px; padding: 0 14px; line-height: 1; border: 0; border-radius: 999px; background: rgba(130,130,136,.18); color: #cfcabd; font: 500 12px var(--mono); letter-spacing: .1em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s; }
.rtab:hover { background: rgba(165,165,172,.3); } .rtab[aria-pressed="true"] { background: #fff; color: #0a0a0b; }
.rtab i { font-style: normal; font-size: 10px; opacity: .6; }
.rbox { padding: 22px; } .rbox .chead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; } .rbox .chead h2 { margin: 0; font-size: 20px; font-weight: 400; } .rbox .chead .count { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); } .rbox .note { margin: 16px 0 0; text-align: center; }
.rgrid40 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.rcell { position: relative; display: block; aspect-ratio: 727 / 1018; border-radius: 6px; color: inherit; text-decoration: none; outline: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.rcell > i { position: absolute; inset: 0; display: block; border-radius: 6px; overflow: hidden; font-style: normal; background: rgba(255,255,255,.06); }
.rcell [data-rcard] { position: absolute; inset: 0; display: block; }
.rcell.open { background: rgba(255,255,255,.05); display: grid; place-items: center; } .rcell.open em { font: 500 11px var(--mono); font-style: normal; letter-spacing: .08em; color: rgba(255,255,255,.22); }
a.rcell:hover, a.rcell:focus-visible { transform: translateY(-4px); z-index: 6; } a.rcell { cursor: pointer; }
.rtip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); min-width: 190px; padding: 12px 14px 10px; border-radius: 12px; background: rgba(38,38,42,.96); display: grid; gap: 3px; text-align: left; font-size: 13px; line-height: 1.35; color: #cfcabd; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 7; }
.rtip b { font-weight: 400; font-size: 15px; color: #fff; } .rtip small { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--dim); margin-bottom: 4px; }
.rcell.tl .rtip { left: 0; transform: translateY(4px); } .rcell.tr .rtip { left: auto; right: 0; transform: translateY(4px); }
a.rcell:hover .rtip, a.rcell:focus .rtip { opacity: 1; transform: translateX(-50%); } a.rcell.tl:hover .rtip, a.rcell.tl:focus .rtip, a.rcell.tr:hover .rtip, a.rcell.tr:focus .rtip { transform: none; }
@media (max-width: 720px) { .rgrid40 { grid-template-columns: repeat(5, 1fr); gap: 6px; } .rbox { padding: 14px; } .rcell.tl .rtip, .rcell.tr .rtip, .rtip { left: 50%; right: auto; } }
@media (prefers-reduced-motion: reduce) { .rcell, .rtip { transition: none; } }

/* the card creator's one choice: two small buttons, glass with the chosen one solid white */
.dseg { display: flex; gap: 8px; margin: 0 0 22px; }
.dseg button { height: 38px; min-width: 92px; padding: .25em 20px 0; border: 0; border-radius: 999px; background: rgba(130,130,136,.18); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); color: #fff; font: 400 15px var(--text); cursor: pointer; transition: background .18s; }
.dseg button:hover { background: rgba(165,165,172,.3); } .dseg button[aria-pressed="true"] { background: #fff; color: #0a0a0b; }

/* the run browser's heading: run and status together on the left, back and forward arrows on the right */
.rbox .chead { align-items: center; } .rtitle { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rnavs { display: flex; gap: 6px; }
.rnav { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .18s; }
.rnav:hover:not(:disabled) { background: rgba(255,255,255,.2); } .rnav:disabled { opacity: .3; cursor: default; } .rnav svg { width: 18px; height: 18px; display: block; }

/* cert page tiles share the full width, however many there are */
@media (min-width: 1001px) { .certpage .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.certpage .factline { margin-bottom: 16px; } .certpage .stats { margin-bottom: 18px; }

.certnum { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.certwait { margin: 0 0 18px; }

/* the offer pop-up: one big amount field, what an offer means, then the two buttons */
.certact { margin: 0 0 18px; }
#modal .omodal { max-width: 440px; padding: 30px 28px 26px; text-align: left; }
.omodal h2 { margin: 0 0 6px; font-size: 26px; font-weight: 400; } .omodal .soft { margin: 0 0 20px; }
.oamt { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; border-radius: 16px; background: rgba(255,255,255,.1); margin-bottom: 10px; }
.obal { margin: 0 0 16px; font-size: 14px; color: var(--dim); } .obal b { font-weight: 400; color: #fff; margin-left: 6px; }
.oamt input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: #fff; font: 400 28px var(--display); padding: .2em 0 0; -moz-appearance: textfield; appearance: textfield; }
.oamt input::-webkit-outer-spin-button, .oamt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .oamt input::placeholder { color: rgba(255,255,255,.3); }
.oamt span { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--dim); }
.omodal .note { margin: 0 0 10px; } .omodal .row { justify-content: flex-end; margin-top: 20px; }

.certact { display: inline-flex; margin: 0 8px 18px 0; vertical-align: top; } .certact + .row { display: inline-flex; vertical-align: top; }

/* a slab on your profile: the name large, then its cert with the status to the right */
.tile .pname { font: 400 22px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .pline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* the slab page: every block has room around it, and the owner's actions are one row of buttons */
.slabpage .factline { margin-bottom: 18px; } .slabpage .stats { margin-bottom: 18px; }
.slabpage .icard { margin-bottom: 16px; padding-bottom: 6px; } .slabpage .icard > .note, .slabpage .icard > .soft { padding: 0 22px 16px; margin: 0; }
.slabpage .icard > .traits, .slabpage .icard > .rows, .slabpage .icard > .tbl { padding: 4px 22px 16px; margin: 0; } .slabpage .icard > .tbl { padding-left: 6px; padding-right: 6px; }
.sacts { margin: 0 0 12px; } .sacts .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .sacts .voidq { justify-content: flex-start; }
.snote { margin: 0 0 22px; max-width: 46em; }
@media (min-width: 1001px) { .slabpage .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } .slabpage .bookslab { position: sticky; top: 96px; } }

/* the one slab page: owner pop-ups and the quiet void link */
.certpage .certact { gap: 8px; } .certpage .certact .btn { height: 46px; padding-left: 26px; padding-right: 26px; font-size: 16px; }
.certpage .certact .btn:disabled { opacity: .45; cursor: default; }
.olist { margin: 0 -10px 14px; } .olist .tr { grid-template-columns: auto minmax(0, 1fr) auto; }
.osel { height: 50px; } .osel select { flex: 1; height: 100%; border: 0; background: none; color: #fff; font: 400 16px var(--text); outline: none; } .osel select option { color: #000; }
.voidline { margin: 4px 0 0; } .linkbtn { border: 0; background: none; padding: 0; color: #fff; font: inherit; cursor: pointer; opacity: .85; } .linkbtn:hover { opacity: 1; }
#modal .omodal { max-width: 480px; }

.olist .tr:has(.voidq) { grid-template-columns: 1fr; } .olist .tr:has(.voidq) > b, .olist .tr:has(.voidq) > .dim { display: none; } .olist .voidq { justify-content: flex-start; line-height: 1.4; }

/* the slab page's main actions run the full width; the extra information sits behind tabs */
.certpage .certact { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 0 0 22px; }
.certpage .certact .btn { height: 58px; font-size: 17px; width: 100%; justify-content: center; }
.ctabs { margin: 0 0 12px; } .certpage .cpane { padding: 20px 22px; } .certpage .cpane > div > * { margin: 0; padding: 0; }

.certpage .cpane .traits, .certpage .cpane .rows, .certpage .cpane .soft { padding: 0; margin: 0; }

.certpage .cpane > [data-cpane] { margin: 0; }

/* cert page: the facts line and the tiles sit together in one glass box, like the tab panel below */
.certpage .certbox { padding: 20px 22px; margin: 0 0 18px; border-radius: 16px; }
.certpage .certbox .factline { margin: 0 0 18px; }
.certpage .certbox .stats { margin: 0; gap: 8px; }
.certpage .certbox .stats > div { background: rgba(255,255,255,.06); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; border-radius: 10px; padding: 12px 14px; }
.certpage .certbox .stats > div { display: flex; flex-direction: column; justify-content: space-between; }

/* cert page, Activity tab: last sale and floor on one quiet line, then a plain table of events in the manner of a marketplace feed */
.hist .hfacts { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 2px 0 18px; font-size: 16px; font-variant-numeric: tabular-nums; }
.hist .hfacts em { font-style: normal; color: var(--dim); margin-right: 8px; }
.hist .hrow { display: grid; grid-template-columns: minmax(150px, 1.5fr) 1fr 1fr 1fr 80px; gap: 16px; align-items: center; height: 56px; margin: 0 -12px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-variant-numeric: tabular-nums; transition: background .15s; }
.hist .hrow:not(.hhead):hover { background: rgba(255,255,255,.05); }
.hist .hrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hist .hrow > span:last-child { text-align: right; }
.hist .hhead { height: 32px; font-size: 13px; color: var(--dim); }
.hist .hev { display: flex; align-items: center; gap: 12px; }
.hist .hev i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
@media (max-width: 700px) { .hist .hrow { grid-template-columns: minmax(130px, 1.5fr) 1fr 1fr 64px; gap: 10px; } .hist .hrow > :nth-child(3) { display: none; } }
.hist .hev i svg { width: 16px; height: 16px; display: block; }
.certnum span + span { margin-left: .28em; }

/* Registry landing: as wide as the header. Title and a compact lookup on the left, the newest slab on the right. */
.reghead { max-width: 1184px; margin: 0 auto; padding-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 48px; align-items: center; }
.reghead .certhome { max-width: none; margin: 0; padding: 0; text-align: left; } .reghead .certhome .soft { margin: 0 0 22px; }
.reghead .certbig { max-width: 440px; padding: 6px; } .reghead .certbig input { height: 42px; font-size: 17px; padding-left: 16px; padding-right: 10px; } .reghead .certbig .btn { height: 42px; padding-left: 22px; padding-right: 22px; font-size: 15px; }
.reghead .note { max-width: 34em; margin: 0; } .reghead .certmiss { max-width: 440px; }
.reglast { display: block; color: inherit; } .reglast > span { display: block; margin-top: 12px; text-align: center; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.runreg { max-width: 1184px; }
@media (max-width: 820px) { .reghead { grid-template-columns: 1fr; gap: 26px; } .reglast { max-width: 200px; margin: 0 auto; } }

/* Registry landing: a rendered scene of slabs fills the right. Its black is screened out against the page, and its
   edges are masked, so there is no visible rectangle whatever the background does. */
.reghead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; position: relative; } .reghead .certhome h1 { white-space: nowrap; }
.reghead .certhome { position: relative; z-index: 1; }
.regscene { margin: -70px -90px -60px -60px; pointer-events: none; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 62% 62% at 52% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 52% 50%, #000 62%, transparent 100%); }
.regscene img { display: block; width: 100%; height: auto; }
.runreg { position: relative; z-index: 1; }
@media (max-width: 820px) { .reghead { grid-template-columns: 1fr; } .regscene { margin: -10px -20px -20px; } }

/* Registry scene, larger: its right edge sits on the header's right edge and its top fades out just under the header. */
.reghead { display: block; position: relative; min-height: 400px; padding-top: 34px; }
.reghead .certhome { max-width: 46%; }
.regscene { position: absolute; z-index: 0; right: 0; top: -92px; width: min(66%, 800px); margin: 0; -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%); }
@media (max-width: 820px) { .reghead { min-height: 0; padding-top: 18px; } .reghead .certhome { max-width: none; } .regscene { position: static; width: auto; margin: 0 -20px -20px; } }

/* Registry scene, fitted: it sets the height of the top section, so it sits the same distance from the header above
   as from the runs box below, fading out at both. The text is centred against it on the left. */
@media (min-width: 821px) {
  .reghead { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 0; align-items: center; min-height: 0; padding-top: 0; margin-top: -84px; }
  .reghead .certhome { max-width: none; padding-top: 84px; }
  .regscene { position: relative; top: auto; right: auto; width: auto; margin: 0 0 0 -16%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%); }
  .reghead + .runreg { margin-top: -1px; }
}
