@font-face { font-family: "Nivra"; src: url("assets/fonts/Nivra-Regular.ttf") format("truetype"); font-display: swap; }  /* test-licence font: for trials only */
@font-face { font-family: "Nivra Black"; src: url("assets/fonts/Nivra-Black.ttf") format("truetype"); font-display: swap; }  /* the tier word behind a pull (test licence) */
@font-face { font-family: "Bigger Display"; src: url("assets/fonts/BiggerDisplay.otf") format("opentype"); font-display: swap; }
/* Rinter draws every numeral itself, its own 1 included. Both faces below cover every weight, so text set in 600 or
   700 still uses Rinter (one weight) instead of dropping to a bold system font. */
@font-face { font-family: "Rinter"; src: url("assets/fonts/Rinter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00B6, U+00B8-2025, U+2027-2211, U+2213-FFFF; }  /* also leaves out the middle dot, ellipsis and minus, which Rinter draws blank */
/* Rinter stand-ins: the characters left out above, drawn by a system face registered under the same family name
   and for every weight, so they never come out bold beside Rinter's letters. */
@font-face { font-family: "Rinter"; src: local("HelveticaNeue"), local("Helvetica Neue"), local("Arial"), local("Liberation Sans"); font-weight: 100 900; font-display: swap; unicode-range: U+00B7, U+2026, U+2212; }
/* MNTD slab: clear label + clean card. Laid out in slab-render pixels (1100 x 1700) and scaled by --s,
   which slab.js sets on each .stage from the width of its container. */
.stage { --s: .42; --bone: #ece7db; --ink: #141414;
  --display: "Rinter", "Helvetica Neue", Arial, sans-serif; --text: "Rinter", "Helvetica Neue", Arial, sans-serif; --mono: "DM Mono", "SF Mono", Menlo, monospace;
  width: calc(904px * var(--s)); height: calc(1536px * var(--s)); position: relative; perspective: 1600px; cursor: pointer; margin: 0 auto; }
.stage * { box-sizing: border-box; }
.stage { font-synthesis-weight: none; text-align: left; }  /* never inherit a page's centred text into the label */  /* Rinter has one weight: never fake a bold */
.stage .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.stage .flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 800ms cubic-bezier(.3,.7,.2,1); }
.stage.flipped .flip { transform: rotateY(180deg); }
.stage .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.stage .face.back { transform: rotateY(180deg); }
.stage .comp { position: absolute; width: 1100px; height: 1700px; left: calc(-98px * var(--s)); top: calc(-82px * var(--s)); transform: scale(var(--s)); transform-origin: top left; }
.stage .slab { position: absolute; left: 0; top: 0; width: 1100px; height: 1700px; pointer-events: none; }
.stage .back .slab { transform: scaleX(-1); }
.stage .glare { position: absolute; left: 98px; top: 82px; width: 904px; height: 1536px; border-radius: 26px; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 58%); background-size: 250% 250%; background-position: var(--gx, 50%) var(--gy, 50%); }
/* the render's label window is clearer than its frame; this underlay lifts it to the frame's tone on a dark page */
/* same for the card window (x 188-912, y 504-1491): without it the gap round the card shows the dark page and reads as a shadow */
.stage .cardfill { position: absolute; left: 186px; top: 502px; width: 728px; height: 991px; background: rgba(90,90,90,.31); border-radius: 22px; }
.stage .winfill { position: absolute; left: 155px; top: 136px; width: 789px; height: 235px; background: rgba(90,90,90,.31); border-radius: 6px; }

/* ---------- card: 2.5 x 3.5 in ---------- */
.stage .card { position: absolute; left: 200px; top: 508px; transform: scale(.9615); transform-origin: 0 0; /* render's clear window is x 188-912, y 504-1491: fit inside it with a small margin */ width: 727px; height: 1018px; border-radius: 30px; overflow: hidden; background: var(--c-bg, #0b0b0c); color: var(--c-ink, var(--bone)); }
.stage .card.front { padding: 24px; display: flex; flex-direction: column; }
.stage .c-art { position: relative; width: 100%; aspect-ratio: 1; flex: none; border-radius: 14px; overflow: hidden; }
.stage .c-art img { width: 100%; height: 100%; display: block; transform: scale(1.02); }  /* hides rounded transparent corners baked into source art */
/* holographic foil on the artwork only; tracks the tilt */
.stage .holo { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: overlay; opacity: 0; transition: opacity .35s ease;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.7) 50%, transparent 60%),
    repeating-linear-gradient(125deg, #ff5fa2 0%, #ffd35f 8%, #6dff9c 16%, #5fd8ff 24%, #8f7bff 32%, #ff5fa2 40%);
  background-size: 220% 220%, 300% 300%; background-position: var(--gx, 50%) var(--gy, 50%), var(--gx, 30%) var(--gy, 40%); }
.stage:hover .holo { opacity: .62; }  /* the foil only catches the light when the slab is handled */
.stage .holo::after { content: ""; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 2px, transparent 2px 7px); }
.stage .c-art.pixel img { image-rendering: pixelated; transform: none; }  /* CryptoPunks are 24px pixel art on a flat colour */
.stage .c-marktext { font-family: "Barlow", "Helvetica Neue", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.stage .card.rear .c-marktext { font-size: 70px !important; }
.stage .card.rear .c-backlogo { width: 330px; height: 330px; }
.stage .card.rear .c-backlogo.wide { width: 520px; height: 260px; }
.stage .c-plate { position: absolute; left: 50%; top: 673px; transform: translateX(-50%); z-index: 4; display: block; }
.stage .c-head { flex: 1; display: flex; align-items: center; justify-content: center; }
/* a logo printed in the card's ink: the file's shape masks a block of currentColor */
.stage .c-mask { display: block; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.stage .c-lockup { width: 100%; height: 170px; }
.stage .c-fine { display: flex; justify-content: space-between; position: absolute; left: 26px; right: 26px; bottom: 26px;
  font-family: var(--mono); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.stage .card.rear { display: flex; align-items: center; justify-content: center; }


/* ---------- label: 788 x 223, white ink on clear ---------- */
.stage .label { position: absolute; left: 156px; top: 148px; width: 788px; height: 223px; overflow: hidden; color: var(--label-ink, #fff); font-family: var(--text); }
.stage .label.mirror { transform: scaleX(-1); }  /* clear ink on clear acrylic: the back shows the front in reverse */
.stage .l-main { position: absolute; left: 34px; top: 26px; }
.stage .l-line { font-size: 23px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; line-height: 1; }
.stage .l-title { font-family: var(--display); font-size: 96px; line-height: 1; margin-top: 16px; letter-spacing: -.03em; white-space: nowrap; }
.stage .l-nfc { position: absolute; right: 34px; top: 26px; display: flex; flex-direction: column; align-items: flex-end; }
/* every line on the label is one size; only the token number is larger */
.stage .l-nfc .l-line { margin-right: -.16em; }  /* sits on the same line as the collection name */
/* same height as the "#8" digits in Rinter at 96px (70px tall, top at y=64 in the label) and level with them */
.stage .l-nfc svg { height: 70px; width: auto; display: block; margin: 15px 0 0 0; }
/* reverse-printed bar across the full width of the label, wordmark knocked out in the middle */
.stage .l-brand { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; }
.stage .l-brand svg { display: block; }

/* ---------- alternative card layouts ---------- */
.stage .c-num { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.stage .c-num small { font-family: var(--mono); font-size: 19px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.stage .c-num b { font-family: "Barlow", "Helvetica Neue", sans-serif; font-weight: 700; font-size: 78px; letter-spacing: -.01em; }
.stage .c-logo-s { width: 300px; height: 84px; -webkit-mask-position: right center; mask-position: right center; }
.stage .c-top.centre .c-logo-s { -webkit-mask-position: center; mask-position: center; }
.stage .c-top .c-marktext, .stage .c-bot .c-marktext { font-size: 30px !important; }
.stage .c-top { height: 118px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 14px; }
.stage .c-top.centre { justify-content: center; }
.stage .c-bot { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 34px; }
.stage .c-cap { flex: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; font-family: var(--mono); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.stage .lay-caption .c-plate { top: calc(24px + 118px + 679px - 30px); }
.stage .card.rear.small .c-backlogo { width: 190px; height: 190px; }
.stage .card.rear.small .c-backlogo.wide { width: 300px; height: 150px; }
.stage .card.rear.small .c-marktext { font-size: 40px !important; }
/* layout B: equal space above and below the art, so it sits centred on the card */
.stage .lay-header .c-top { height: 146px; padding: 0 6px; }
.stage .lay-header .c-num b { font-size: 86px; }
.stage .lay-footer .c-num b { font-size: 86px; }
/* a logo shown in its own colours, sized like the masked ones */
.stage img.c-img { display: block; object-fit: contain; }
.stage img.c-lockup { width: 100%; height: 170px; }
.stage .card.rear img.c-backlogo.wide { width: 520px; height: 260px; }
.stage img.c-logo-s { width: 300px; height: 84px; object-position: right center; }

/* ---------- the Minted card: no collection logo, our own type ---------- */
.stage .c-pub { font-family: "Nivra", var(--display); font-size: 40px; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.stage .c-pub.big { font-size: 150px; }
.stage .c-coll { font-family: var(--display); font-size: 40px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.stage .c-bignum { font-family: var(--display); font-size: 168px; letter-spacing: -.04em; line-height: .86; white-space: nowrap; }
.stage .c-head.col { flex-direction: column; gap: 16px; padding-top: 34px; }
.stage .c-under { flex: 1; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; }
.stage .card.plain .c-num small { font-family: var(--display); font-size: 30px; letter-spacing: -.01em; text-transform: none; opacity: 1; }
.stage .card.plain .c-num b { font-family: var(--display); font-weight: 400; font-size: 104px; letter-spacing: -.04em; }
.stage .lay-gallery .c-top { height: 146px; padding: 0 6px; }
.stage .lay-minimal .c-plate { top: calc(24px + 118px + 679px - 30px); }
.stage .c-fine.two { bottom: 48px; }
.stage .c-note { position: absolute; left: 26px; right: 26px; bottom: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; opacity: .7; white-space: nowrap; }

/* full art. The art lies across the whole card and one line with rounded corners is drawn over it, just inside the
   edge: the line frames the card but never cuts the art. Fill covers the card (pixel art is sized by slab.js so the
   whole figure shows); Fit keeps the whole image inside the line, standing on it. The line, the corner type and the
   number's pill share one colour, white or black, chosen by the owner. */
.stage .card.lay-full { padding: 0; display: block; }
.stage .card.ink-white { --l: #fff; } .stage .card.ink-black { --l: #141414; }
/* The art's box is always the whole card, so the foil sheen that lies over it covers the card edge to edge; the image
   inside is what gets placed and shaped. Behind it is the card's own colour. */
.stage .lay-full .c-art { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; background: none; }
.stage .lay-full .c-art img { position: absolute; left: 0; top: 0; width: 100%; transform: none; background: var(--a-bg, transparent); }
.stage .lay-full .c-art.pixel img { background: none; }
/* Fill, Apes and other full-frame art: the image stands on the bottom line. For the top three quarters of the card it
   runs past the line to the card's edge; in the bottom quarter it is held inside the line, following its rounded
   corners. (The shape is in card pixels: 727 wide, line 34 in; the image box is 984 tall, its bottom quarter from 763.) */
.stage .lay-full.fit-fill .c-art:not(.pixel) img { height: calc(100% - 34px); object-fit: cover; clip-path: path("M0 0H727V763H693V958A26 26 0 0 1 667 984H60A26 26 0 0 1 34 958V763H0Z"); }
/* Fill, Punks: every Punk at one size, standing on the bottom line, with nothing clipped. Across the collection the
   figures sit within columns 2 to 22 of the 24 pixel image, so those 21 columns are set to the card's width (less a
   little air): 33.86 card pixels to the pixel. */
.stage .lay-full.fit-fill .c-art.pixel img { left: -59.7px; top: auto; bottom: 34px; width: 812.6px; height: 812.6px; max-width: none; object-fit: fill; }
/* Fit: the whole image standing on a label. The label sits at the foot of the frame, with the same 28px between it
   and the line as the corner type has, and runs the frame's width less that padding; it carries the name and number
   in large type. The image's bottom edge is flush with the label's top, so the label lifts the image up the card.
   (Frame: 659 wide, from 34 to 984 down. Label: 603 by 88, top at 868. Image: 659 square, top at 209.) */
.stage .lay-full.fit-fit .c-art img { left: 34px; top: 209px; width: 659px; height: 659px; object-fit: contain; object-position: center bottom; }
/* The art file's outer edge can differ a shade from the rest of its background, which would print as a faint box.
   On a card matched to the art the image's top and sides fade into the card over a few pixels; on a Dark or Light
   card, where the art is meant to read as a panel, the outermost pixels are simply trimmed. */
.stage .lay-full.fit-fit.tone-backdrop .c-art:not(.pixel) img { -webkit-mask-image: linear-gradient(to bottom, transparent 2px, #000 34px), linear-gradient(to right, transparent 2px, #000 34px, #000 calc(100% - 34px), transparent calc(100% - 2px)); mask-image: linear-gradient(to bottom, transparent 2px, #000 34px), linear-gradient(to right, transparent 2px, #000 34px, #000 calc(100% - 34px), transparent calc(100% - 2px)); -webkit-mask-composite: source-in; mask-composite: intersect; }
.stage .lay-full.fit-fit:not(.tone-backdrop) .c-art:not(.pixel) img { clip-path: inset(3px 3px 0 3px); }
/* a card matched to art whose background is not one flat colour is painted with that background, carried on past the image */
.stage .card.lay-full.tone-backdrop { background-image: var(--c-grad, none); background-size: 100% 100%; }
/* art whose figure runs off its bottom-right corner (a tail, say) is moved left, so the image's right edge sits just inside
   the label's right end (651 across the card, where the label's flat top begins to round off) and the tail comes down onto the label instead of past it */
.stage .lay-full.fit-fit.shift-r .c-art:not(.pixel) img { left: -8px; }
/* that right edge is where the tail meets the label's end, so it isn't faded: only the top and left blend into the card */
.stage .lay-full.fit-fit.shift-r.tone-backdrop .c-art:not(.pixel) img { -webkit-mask-image: linear-gradient(to bottom, transparent 2px, #000 34px), linear-gradient(to right, transparent 2px, #000 34px); mask-image: linear-gradient(to bottom, transparent 2px, #000 34px), linear-gradient(to right, transparent 2px, #000 34px); }
.stage .lay-full.fit-fit .c-fnum { bottom: auto; top: 868px; width: 603px; height: 88px; justify-content: center; padding: .16em 14px 0; border-radius: 26px; font-size: 57px; }  /* one size for every card: the longest name here, "Pudgy Penguin #8888", fits */
.stage .lay-full .c-fname { display: none; } .stage .lay-full.fit-fit .c-fname { display: inline; }
.stage .lay-full .c-frame { position: absolute; inset: 34px; z-index: 2; border: 2px solid var(--l, #fff); border-radius: 26px; }
.stage .lay-full .c-in { position: absolute; z-index: 3; color: var(--l, #fff); font-family: var(--mono); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.stage .lay-full .c-in.tl { left: 28px; top: 28px; font-family: var(--display); font-size: 27px; letter-spacing: -.01em; text-transform: none; }
.stage .lay-full .c-in.tr { right: 28px; top: 25px; } .stage .lay-full .c-in.tr .c-pub { font-size: 29px; }
/* the second line under each top label: the year under the collection, the copyright under our mark */
.stage .lay-full .c-in small { display: block; margin-top: 12px; font-family: var(--mono); font-size: 17px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.stage .lay-full .c-in.tr { text-align: right; } .stage .lay-full .c-in.tr small { margin-top: 10px; }
/* the number: a pill in the line's colour, centred on the bottom line, with the number in the card's own colour */
.stage .lay-full .c-fnum { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 5px; height: 58px; display: flex; align-items: center; padding: .16em 28px 0; border-radius: 999px;
  background: var(--l, #fff); color: var(--c-bg, #0b0b0c); font-family: var(--display); font-size: 46px; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
/* the back of a Minted card: our mark, then what the card is and whose art it carries */
.stage .card.rear.plain { flex-direction: column; gap: 46px; }
.stage .c-backnote { font-family: var(--mono); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.9; text-align: center; opacity: .75; }
/* finish: foil shows its sheen at rest and more when handled; matte has none */
/* at rest the foil is only a hint; it shows properly when the slab is handled */
.stage .card.foil .holo { opacity: .07; } .stage:hover .card.foil .holo { opacity: .7; } .stage .card.matte .holo { display: none; }
/* On a Minted card the foil lies over everything: the art, the line, the corner type and the label. The sheen is an
   overlay, which leaves pure white and pure black untouched, so the label carries a second pass of the same rainbow:
   multiplied onto a white label, screened onto a black one. */
.stage .lay-full .c-art { z-index: auto; } .stage .lay-full .holo { z-index: 6; }
.stage .lay-full.foil .c-fnum { overflow: hidden; }
.stage .lay-full.foil .c-fnum::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; transition: opacity .35s ease;
  background: linear-gradient(115deg, #ff7ab8 0%, #ffd36b 20%, #7dffb2 40%, #6bd0ff 60%, #b58bff 80%, #ff7ab8 100%); background-size: 220% 220%; background-position: var(--gx, 50%) var(--gy, 50%); }
.stage .lay-full.foil.ink-white .c-fnum::after { mix-blend-mode: multiply; opacity: .08; }
.stage .lay-full.foil.ink-black .c-fnum::after { mix-blend-mode: screen; opacity: .07; }
.stage:hover .lay-full.foil .c-fnum::after { opacity: .6; }

