/* The Monxchine.
 *
 * A precise machine on a white wall. Two typefaces: Mona Sans (wide and
 * heavy for titles, normal for text) and Geist Mono for anything the
 * machine computes: hashes, slots, odds. Spray paint only where it counts:
 * the headline, the halo behind the machine, and the result.
 *
 * Blue #02A5E8 is paint and light; small blue text uses --monx-ink for
 * contrast. One deliberate look, white, whatever the viewer's theme.
 */

:root {
  color-scheme: light;

  --bg: #FFFFFF;
  --ink: #0B0D0F;
  --ink-2: #3F474D;
  --ink-3: #6E767C;
  --ink-4: #A2AAB0;
  --line: #E6EAED;
  --soft: #F4F6F7;
  --monx: #02A5E8;
  --monx-ink: #00709F;
  --gold: #E3A500;
  --steel: #7D8A94;
  --alarm: #D13B3B;
  --on-dark: #FFFFFF;

  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(104px, 11vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* what sits above the first view, so the machine can fill the rest */
  --top-h: 68px;
  --demo-h: 0px;
  --view: calc(100svh - var(--top-h) - var(--demo-h));

  /* The machine's outline, traced from the video: everything outside it is
     the studio backdrop, so masking it off stands the machine on the wall. */
  --machine-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M175,115 A40,40 0 0 1 215,75 L775,75 A40,40 0 0 1 815,115 L815,913 A20,20 0 0 1 795,933 L771,933 L771,951 L214,951 L214,933 L195,933 A20,20 0 0 1 175,913 Z'/%3E%3C/svg%3E");

  /* icons */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.3 12.5 4.9' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5 11.5 11.5M11.5 4.5 4.5 11.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
html.demo { --demo-h: 52px; }
@media (max-width: 560px) {
  :root { --top-h: 60px; }
  html.demo { --demo-h: 58px; }
}

* { box-sizing: border-box; }

/* Class rules like `.sheet { display: grid }` would otherwise beat the
   browser's own [hidden] rule and show hidden things. */
[hidden] { display: none !important; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.demo body { padding-bottom: var(--demo-h); }

main { overflow-x: clip; }
img, video, svg { max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--monx-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--monx); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Browsers that draw their own play button over a video that hasn't
   started: never on this site, the page starts them itself. */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

/* ── type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 {
  font: 800 clamp(40px, 4.8vw, 68px)/.98 var(--sans);
  font-stretch: 125%;
  letter-spacing: -.028em;
}
h3 { font: 650 17px/1.3 var(--sans); }
code, .mono { font-family: var(--mono); }
b, strong { font-weight: 650; }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font: 600 16px/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), translate .2s var(--ease), scale .1s;
}
.btn:hover { background: var(--monx); color: var(--ink); box-shadow: 0 12px 28px -14px rgb(2 165 232 / .9); translate: 0 -1px; }
.btn:active { scale: .98; translate: 0 0; }
.btn[disabled] { background: #CDD3D8; color: #fff; box-shadow: none; translate: none; cursor: not-allowed; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 18px; }
.btn-sm { height: 38px; padding: 0 17px; font-size: 14.5px; }
.btn-price {
  padding-left: 14px;
  border-left: 1px solid currentColor;
  font: 500 .86em/1 var(--mono);
  opacity: .75;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  font: 500 15px/1.2 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.text-link {
  color: var(--monx-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }
.link-btn.text-link { padding: 2px 0; }
.ext::after { content: "↗"; margin-left: 3px; font-family: var(--sans); text-decoration: none; display: inline-block; }

/* ── header ───────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: var(--top-h);
}

.logo {
  font: 850 21px/1 var(--sans);
  font-stretch: 125%;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo .monx { color: var(--monx); }

.nav { justify-self: center; display: flex; gap: clamp(22px, 2.8vw, 40px); }
.nav a { padding: 8px 0; font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.top-actions { display: flex; align-items: center; gap: 22px; }
.net { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.net[data-state="live"] i { background: var(--monx); box-shadow: 0 0 0 3px rgb(2 165 232 / .18); animation: breathe 2.4s ease-in-out infinite; }
.net[data-state="down"] i { background: var(--alarm); }
.net .fake { color: var(--alarm); }
@keyframes breathe { 50% { box-shadow: 0 0 0 5px rgb(2 165 232 / .06); } }
.pulls-btn { color: var(--ink); }
.pulls-btn .short { display: none; }
.x-link { gap: 0; color: var(--ink); white-space: nowrap; }
.x-link .short { display: none; font-weight: 700; }
.pulls-btn .count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 11px;
  background: var(--soft);
  font: 600 12.5px/1 var(--mono);
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .top-row { grid-template-columns: auto auto; justify-content: space-between; }
}
@media (max-width: 560px) {
  .top-row { gap: 12px; }
  .net, .pulls-btn .long, .x-link .long { display: none; }
  .pulls-btn .short, .x-link .short { display: inline; }
  .logo { font-size: 18px; }
  .top-actions { gap: 16px; }
}

.offline { margin-block: 16px 0; padding-block: 12px; border-left: 3px solid var(--alarm); background: rgb(209 59 59 / .06); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero-grid {
  --floor-gap: 28px;
  /* the tallest the machine can be and still stand on the floor in view */
  --fit: max(420px, calc(var(--view) - 36px - var(--floor-gap)));
  /* The machine is square: 52% of the row, or --fit if that's smaller. */
  --scene-w: min(52%, 700px, var(--fit));
  /* The same size in pixels, for padding (where a % means the page's width). */
  --scene-px: min((min(100%, var(--max)) - 2 * var(--gutter)) * .52, 700px, var(--fit));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--scene-w);
  align-items: end;
  gap: 0 clamp(24px, 3vw, 56px);
  /* The air above. On a laptop the machine is as tall as the window allows,
     this comes to 36px, and the floor lands at the bottom of the view. On a
     tall window the machine stops growing first, so the air stops too: the
     machine stays up beside the headline, and the next section shows below. */
  padding-top: clamp(0px, calc(var(--view) - var(--floor-gap) - var(--scene-px)), clamp(36px, 4svh, 64px));
  padding-bottom: var(--floor-gap);
}

.pitch {
  /* the headline's width */
  --hw: clamp(280px, min(37vw, calc(var(--view) * .62)), 540px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(16px, 3vh, 40px) clamp(24px, 4.4vh, 56px);
}

/* The headline is paint: one image of the letters, one of the runs. The
   letters spray on left to right, then the paint runs. */
.headline { --hide: 8.53%; position: relative; width: var(--hw); margin: 0 0 22px calc(var(--hw) * -.044); }
.headline img, .shout img { display: block; width: 100%; height: auto; }
.headline .runs, .shout .runs { position: absolute; inset: 0; }
.headline img, .shout img {
  -webkit-mask: linear-gradient(100deg, #000 42%, transparent 58%) 100% 0 / 280% 100% no-repeat;
  mask: linear-gradient(100deg, #000 42%, transparent 58%) 100% 0 / 280% 100% no-repeat;
  animation: spray-on 1s cubic-bezier(.45, .1, .3, 1) .15s both;
}
.headline .runs, .shout .runs {
  animation: spray-on 1s cubic-bezier(.45, .1, .3, 1) .15s both, run-down 3.4s cubic-bezier(.2, .55, .3, 1) 1.1s both;
}
@keyframes spray-on {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes run-down {
  from { clip-path: inset(0 0 var(--hide) 0); }
  to { clip-path: inset(0 0 -2% 0); }
}

.lede { max-width: 34ch; margin: 0; font: 450 clamp(16.5px, 1.25vw, 19px)/1.5 var(--sans); color: var(--ink-2); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(24px, 3.6vh, 36px); }

.stats { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 22px 0 0; font: 450 13px/1.5 var(--mono); color: var(--ink-3); }
/* separators trail each item, so a wrapped line never starts with one */
.stats span:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--ink-4); }
.stats span:empty { display: none; }
/* No dot before an empty last part (sold out: there are no odds to show). */
.stats span:has(+ span:empty:last-child)::after { content: none; }

.scene { position: relative; isolation: isolate; align-self: end; width: 100%; }
.scene::after {
  /* the floor, where the wall meets the ground */
  content: "";
  position: absolute;
  z-index: -3;
  left: -100vw;
  right: -100vw;
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.halo {
  position: absolute;
  z-index: -2;
  left: -6.5%;
  top: -1%;
  width: 112%;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.machine { position: relative; width: 100%; aspect-ratio: 1; translate: 0 4.9%; pointer-events: none; }
.machine::after {
  /* contact shadow on the floor */
  content: "";
  position: absolute;
  z-index: -1;
  left: 13%;
  right: 13.5%;
  bottom: 3.3%;
  height: 3.6%;
  background: radial-gradient(closest-side, rgb(11 13 15 / .38), rgb(11 13 15 / 0));
}
.cutout, .machine .loop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  -webkit-mask: var(--machine-mask) center / 100% 100% no-repeat;
  mask: var(--machine-mask) center / 100% 100% no-repeat;
}
.machine .loop-img { position: absolute; inset: 0; }

.loop-toggle {
  position: absolute;
  right: 4%;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / .9);
  color: var(--ink-3);
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, color .2s;
}
.loop-toggle:hover, .loop-toggle:focus-visible { opacity: 1; color: var(--ink); }
.loop-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loop-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.loop-toggle[aria-pressed="true"] .i-pause { display: none; }
.loop-toggle[aria-pressed="true"] .i-play { display: inline; }

/* Short laptop screens: a notch smaller, so the machine still stands on the
   floor in the first view. */
@media (min-width: 901px) and (max-height: 820px) {
  .pitch { --hw: clamp(260px, min(37vw, calc(var(--view) * .56)), 540px); padding-block: 8px 16px; }
  .lede { font-size: 16px; }
  .cta { margin-top: 18px; }
  .btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
  .stats { margin-top: 16px; }
}

/* Phones and small tablets: the headline, the machine, then the button. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pitch { --hw: min(100%, 500px); display: contents; }
  .headline { order: 1; margin: clamp(18px, 4vw, 32px) 0 6px calc(var(--hw) * -.044); }
  .scene { order: 2; width: min(100%, 540px); justify-self: center; }
  .cta { order: 3; margin-top: 34px; }
  .lede { order: 4; margin-top: 22px; }
  .stats { order: 5; margin-bottom: 8px; }
  .hero-grid { padding-block: 0; }
}
@media (max-width: 560px) {
  .cta .btn-lg { width: 100%; }
  .cta { justify-content: center; }
}

/* ── sections ─────────────────────────────────────────────────────────── */

.section { padding-top: var(--section); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 4.4vw, 60px); }
.sec-head p { max-width: 46ch; margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ── the deck ─────────────────────────────────────────────────────────── */

.deck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 980px) { .deck-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .feed li:nth-child(n + 9) { display: none; } }

.dots { position: relative; margin: 0; }
.deck-count { margin: 0 0 22px; font: 450 13.5px/1.4 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.deck-count b { font-weight: 600; color: var(--ink); }
.deck-count .sep { margin-inline: 6px; color: var(--ink-4); }

.grid { display: grid; grid-template-columns: repeat(var(--cols, 35), minmax(0, 1fr)); gap: var(--gap, 8px); }
.grid i, .k { display: block; aspect-ratio: 1; border-radius: 50%; background: #C8CFD4; }
.grid i.o, .k.o { background: #EEF1F3; }
.grid i.b, .k.b { background: none; box-shadow: inset 0 0 0 1.5px #A9B2B8; }
.grid i.t-grail, .grid i.t-major, .grid i.t-standard, .grid i.t-common,
.k.t-grail, .k.t-major, .k.t-standard, .k.t-common { background: var(--tier-color); }
.grid i.n { background: var(--monx); animation: next-up 1.6s ease-in-out infinite; }
@keyframes next-up { 0%, 100% { box-shadow: 0 0 0 0 rgb(2 165 232 / .5); } 60% { box-shadow: 0 0 0 6px rgb(2 165 232 / 0); } }
.grid i[data-hash] { cursor: pointer; }
.grid i[data-hash]:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.k { width: 10px; height: 10px; }

.grid-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-dark);
  font: 500 13px/1.4 var(--sans);
  white-space: nowrap;
  pointer-events: none;
  translate: -50% calc(-100% - 10px);
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / .6);
}
.grid-tip b { color: #7FD6FF; font-weight: 650; }

.latest h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); color: var(--ink-3); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--monx); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.feed { margin: 0; padding: 0; list-style: none; max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.feed li + li { border-top: 1px solid var(--line); }
.feed button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.feed .slot { font: 450 13px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feed .what { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.feed .what::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tier-color, transparent); }
.feed .blank .what { font-weight: 450; color: var(--ink-3); }
.feed .blank .what::before { box-shadow: inset 0 0 0 1.5px #A9B2B8; }
.feed .who { font: 450 12.5px/1 var(--mono); color: var(--ink-3); text-align: right; }
.feed button:hover { background: var(--soft); }
.feed li.fresh { animation: fresh 2.2s ease-out; }
@keyframes fresh { from { background: rgb(2 165 232 / .12); } to { background: rgb(2 165 232 / 0); } }
.feed .empty { padding: 14px 4px; color: var(--ink-3); }

/* ── what's inside ────────────────────────────────────────────────────── */

.t-grail { --tier-color: var(--gold); }
.t-major { --tier-color: var(--monx); }
.t-standard { --tier-color: var(--ink); }
.t-common { --tier-color: var(--steel); }

.rates-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.rates td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rates .num { text-align: right; }
.rates td.num { font: 500 16px/1 var(--mono); }
.rates td.about { color: var(--ink-3); font-weight: 450; }
.rates .tier { display: flex; align-items: center; gap: 14px; font: 750 22px/1 var(--sans); font-stretch: 112%; letter-spacing: -.015em; }
.rates .tier::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tier-color); }
.rates .tier-note { display: block; margin: 8px 0 0 26px; font: 450 12.5px/1.3 var(--mono); color: var(--ink-3); }
.rates .left { font: 500 16px/1 var(--mono); }
.rates .left small { font-size: .82em; color: var(--ink-3); }
.meter-col { width: 34%; }
.meter { display: block; width: calc(100% - 48px); height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--tier-color); transition: width .8s var(--ease); }
.rates tr.gone td { color: var(--ink-4); }
.rates tr.gone .tier { color: var(--ink-4); }
@media (max-width: 700px) {
  .meter-col, .rates td.meter-cell, .rates th:last-child, .rates td.about { display: none; }
  .rates .tier { font-size: 18px; }
}

.rares { margin-top: clamp(64px, 7vw, 104px); }
.rares-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.rares-head p { margin: 0; font: 450 13.5px/1 var(--mono); color: var(--ink-3); }
.rare-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 700px) { .rare-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rare {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 16px 16px 15px;
  border-radius: 12px;
  background: var(--soft);
}
.rare::before { content: ""; grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--tier-color); }
.rare .no { font: 600 15px/1 var(--mono); }
.rare .name { font-size: 13.5px; line-height: 1.2; color: var(--ink-3); }
.rare.pulled { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.rare.pulled::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.rare.pulled .no { color: var(--ink-4); text-decoration: line-through; }
/* With its picture, the NFT replaces the dot. */
.rare.has-art { padding: 12px 14px 12px 12px; }
.rare.has-art::before { display: none; }
.rare .art { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--line); box-shadow: 0 0 0 2px var(--tier-color); }
.rare .no { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rare.pulled .art { filter: grayscale(1); opacity: .5; box-shadow: none; }
/* What a grail really is: at a glance it's just a Monx in a gold ring. */
.rares-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 68ch;
  margin: -4px 0 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgb(227 165 0 / .11);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.rares-note::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .48em; border-radius: 50%; background: var(--gold); }
.rares-note b { color: var(--ink); font-weight: 650; }

.everything { margin-top: 32px; }
.everything summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
  font: 600 15.5px/1 var(--sans);
}
.everything summary::-webkit-details-marker { display: none; }
.everything summary::after { content: "+"; font: 400 20px/1 var(--sans); transition: rotate .3s var(--ease); }
.everything[open] summary::after { rotate: 45deg; }
.everything summary span { font: 450 13.5px/1 var(--mono); color: var(--ink-3); }
#tiles { padding-top: 22px; }
.shelf { display: grid; gap: 12px; margin-bottom: 26px; }
.shelf-k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); }
.shelf-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tier-color); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.tiles li {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 6px;
  background: var(--soft);
  font: 500 12px/1 var(--mono);
  color: var(--ink-2);
}
.tiles li.pulled { background: none; color: var(--ink-4); text-decoration: line-through; }

/* ── the proof ────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.step-k { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.steps b { font: 800 26px/1.05 var(--sans); font-stretch: 125%; letter-spacing: -.02em; }
.steps p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.steps em { font-style: normal; color: var(--ink); text-decoration: underline; text-decoration-color: var(--monx); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.anchor-block { display: grid; gap: 12px; margin-top: clamp(48px, 6vw, 80px); padding: clamp(22px, 3vw, 34px); border-radius: 16px; background: var(--soft); }
.anchor-k { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.anchor-hash { font: 500 clamp(15px, 1.7vw, 22px)/1.5 var(--mono); letter-spacing: .02em; word-spacing: .4em; color: var(--ink); overflow-wrap: anywhere; }
.anchor-tx { font-size: 14.5px; color: var(--ink-3); }
.anchor-tx a { color: var(--monx-ink); }

.verify { display: grid; gap: 20px; max-width: 760px; margin-top: clamp(48px, 6vw, 80px); }
.verify-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.verify-head h3 { font: 800 26px/1 var(--sans); font-stretch: 125%; letter-spacing: -.02em; }
.verify form { display: flex; gap: 8px; flex-wrap: wrap; }
.verify input {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #D3D9DE;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 450 13.5px/1 var(--mono);
}
.verify input::placeholder { font-family: var(--sans); font-size: 15px; color: var(--ink-4); }
.verify input:focus { outline: none; border-color: var(--ink); }
.hint { margin: 0; font-size: 14px; color: var(--ink-3); }

.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; line-height: 1.55; }
.checks code { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); word-break: break-all; }
.mark, .tick {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink-4);
}
.checks .mark { margin-top: 1px; }
.mark::after, .tick::after { content: ""; position: absolute; inset: 3px; background: var(--on-dark); -webkit-mask: var(--i, none) center / contain no-repeat; mask: var(--i, none) center / contain no-repeat; }
.wait .mark, .tick.wait { animation: blink 1.4s infinite; }
.ok .mark, .tick.ok { background: var(--monx); box-shadow: none; --i: var(--i-check); }
.bad .mark, .tick.bad { background: var(--alarm); box-shadow: none; --i: var(--i-cross); }
.skip .mark, .tick.skip { background: #DCE1E5; box-shadow: none; --i: var(--i-dash); }

/* ── questions ────────────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 56px); margin: 0; }
@media (max-width: 960px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq div { padding-top: 16px; border-top: 1px solid var(--line); }
.faq dt { margin-bottom: 8px; font: 650 17px/1.35 var(--sans); }
.faq dd { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { margin-top: var(--section); padding-block: 28px 36px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0; }
.foot-brand .logo { font-size: 17px; }
.foot-meta { font: 450 13px/1 var(--mono); color: var(--ink-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-note { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--ink-4); }

/* ── the spin: pay ────────────────────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: max(56px, env(safe-area-inset-top, 0px)) 16px max(32px, env(safe-area-inset-bottom, 0px), calc(var(--demo-h) + 16px));
  background: rgb(11 13 15 / .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  animation: fade .25s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.panel { position: relative; width: min(100%, 440px); }
.panel .close { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: var(--gutter); z-index: 2; color: rgb(255 255 255 / .85); }
.panel .close:hover { color: var(--on-dark); }
#sheet-body { display: grid; gap: 16px; }

.pay {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .55);
  animation: rise .35s var(--ease);
}
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pay-head h2 { font-size: 28px; }
.pay-head .clock { font: 500 14px/1 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pay-head .clock.expired { color: var(--alarm); }
.fields { display: grid; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.field .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-k { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.field-k .req { margin-left: 8px; padding: 3px 6px; border-radius: 4px; background: rgb(2 165 232 / .12); color: var(--monx-ink); letter-spacing: .02em; }
.field .value { font: 500 13.5px/1.45 var(--mono); word-break: break-all; }
.field.big .value, .field.tag .value { font: 600 30px/1.05 var(--mono); letter-spacing: -.01em; word-break: normal; }
.copy {
  padding: 4px 0;
  border: 0;
  background: none;
  font: 600 13px/1 var(--sans);
  color: var(--monx-ink);
  cursor: pointer;
  white-space: nowrap;
}
.copy:hover { color: var(--ink); }
.qr { display: grid; justify-items: center; gap: 10px; text-align: center; }
.qr svg { display: block; width: 176px; height: auto; }
/* Which QR: Xaman reads the tag from the code, Joey and the rest don't. */
.wallet-pick { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.wallet-pick button {
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  font: 600 14px/1 var(--sans);
  color: var(--ink-2);
  cursor: pointer;
}
.wallet-pick button:hover { color: var(--ink); }
.wallet-pick button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.qr p { margin: 0; max-width: 32ch; font-size: 13.5px; color: var(--ink-3); }
.watch { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.watch.expired { background: rgb(209 59 59 / .07); }
.watch.dead { background: rgb(209 59 59 / .09); color: var(--alarm); }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--monx); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(2 165 232 / .55); } 50% { box-shadow: 0 0 0 7px rgb(2 165 232 / 0); } }
.fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.sheet .actions { display: flex; justify-content: center; gap: 24px; }
.sheet .actions .link-btn { color: rgb(255 255 255 / .85); }
.sheet .actions .link-btn:hover { color: var(--on-dark); }

/* After the reveal: the result has the whole wall. */
.sheet.stage { align-items: start; padding: 0; background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet.stage .panel {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: max(80px, calc(env(safe-area-inset-top, 0px) + 64px)) var(--gutter) max(56px, env(safe-area-inset-bottom, 0px), calc(var(--demo-h) + 32px));
}
.sheet.stage #sheet-body { width: 100%; justify-items: center; }
.sheet.stage .close { color: var(--ink-2); }
.sheet.stage .close:hover { color: var(--ink); }
/* The stage is white: its links go back to ink (the dark backdrop's white would vanish). */
.sheet.stage .actions .link-btn { color: var(--ink-2); }
.sheet.stage .actions .text-link { color: var(--monx-ink); }
.sheet.stage .actions .link-btn:hover { color: var(--ink); }

.result {
  --shout-k: clamp(.3px, .042vw, .6px);
  container-type: inline-size;
  width: min(100%, 820px);
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.result-k { margin: 0; font: 500 12.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
/* The result, sprayed on the wall in the tier's colour; the paint runs. */
.result .shout {
  --sw: min(100cqw, calc(var(--w) * var(--shout-k) * var(--k, 1)));
  position: relative;
  width: var(--sw);
  margin-bottom: calc(var(--sw) * var(--tuck) * -1);
}
.result .sub { position: relative; max-width: 42ch; margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.result .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }

.prize-box {
  position: relative;
  width: min(100%, 600px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 22px;
  padding: 22px;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -36px rgb(11 13 15 / .45);
  text-align: left;
}
.prize-box .body { display: grid; gap: 8px; min-width: 0; }
.prize-box h3 { font: 800 22px/1.1 var(--sans); font-stretch: 125%; letter-spacing: -.02em; }
.prize-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.prize-box .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 4px; font-size: 14px; }
.prize-box .row code { font-size: 13px; }
.prize-box .prize-name { margin-top: -2px; font-size: 17px; font-weight: 650; color: var(--ink); }
.prize-box .bounty-note { padding: 10px 12px; border-radius: 10px; background: rgb(227 165 0 / .13); }
.prize-box .bounty-note b { color: var(--ink); font-weight: 650; }
/* The NFT itself, once its picture is in, with the tier on a tab. */
.prize-art { position: relative; margin: 0; width: 148px; }
.prize-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: var(--soft); box-shadow: 0 0 0 3px var(--tier-color), 0 18px 40px -24px rgb(11 13 15 / .5); }
.prize-art figcaption {
  position: absolute;
  left: 50%;
  bottom: -11px;
  translate: -50% 0;
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: var(--tier-color);
  color: var(--badge-ink, var(--ink));
  font: 600 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 560px) { .prize-art { width: 132px; margin-bottom: 6px; } }
@media (max-width: 560px) { .prize-box { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* the tier, as the machine would print it on the capsule */
.badge {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tier-color);
  color: var(--badge-ink, var(--ink));
  text-align: center;
}
.badge.t-standard, .prize-art.t-standard { --badge-ink: var(--on-dark); }
.badge b { font: 600 17px/1 var(--mono); }
.badge span { font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* the proof, compact */
.proof {
  width: min(100%, 600px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.proof .ticks { display: inline-flex; gap: 6px; }
.proof .tick { width: 18px; height: 18px; }
.proof.bad .proof-text { color: var(--alarm); font-weight: 650; }
.proof-note { white-space: pre; color: var(--ink-3); }
@media (max-width: 560px) {
  .proof-text { text-align: center; }
  .proof-note { display: block; }
  .proof-note .dot { display: none; }
}

/* ── the reveal ───────────────────────────────────────────────────────── */

.reveal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #05070A; }
.reveal video { width: 100%; height: 100%; object-fit: contain; }
.reveal .flash { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.reveal.flashing .flash { opacity: 1; }
.reveal-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .12); }
.reveal-progress i { display: block; width: 0; height: 100%; background: var(--monx); }
.reveal .controls { position: absolute; right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; }
.reveal .controls button {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  color: var(--on-dark);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.reveal .controls button:hover { background: var(--on-dark); color: var(--ink); }

/* ── your pulls ───────────────────────────────────────────────────────── */

.drawer {
  position: fixed;
  z-index: 45;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: var(--demo-h);
  background: var(--bg);
  box-shadow: -40px 0 90px -40px rgb(11 13 15 / .4);
  animation: slide-in .35s var(--ease);
}
@keyframes slide-in { from { translate: 24px 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.drawer ol { margin: 0; padding: 0 26px; list-style: none; overflow-y: auto; }
.drawer li + li { border-top: 1px solid var(--line); }
.drawer li button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 16px 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.drawer .what { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; }
.drawer .what::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tier-color, var(--ink-4)); }
.drawer .what:has(.thumb)::before { display: none; }
.drawer .what .thumb { flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: var(--soft); box-shadow: 0 0 0 2px var(--tier-color, var(--line)); }
.drawer .when { font: 450 12.5px/1.4 var(--mono); color: var(--ink-3); }
.drawer .go { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 14px; font-weight: 600; color: var(--monx-ink); }
.drawer li button[disabled] { cursor: default; }
.drawer li button[disabled] .what { color: var(--ink-3); }
.drawer .empty { padding: 22px 0; color: var(--ink-3); }

/* ── demo controls + toast ────────────────────────────────────────────── */

/* Above the spin sheet (50), under the reveal (60), so a test can start
   straight from a result. */
.tester {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  min-height: var(--demo-h);
  padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: rgb(255 255 255 / .7);
  font-size: 14px;
}
.tester p { margin: 0; }
.tester b { color: var(--on-dark); font-weight: 650; }
.tester-btns { display: flex; gap: 6px; }
.tester button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / .2);
  border-radius: 999px;
  background: none;
  color: var(--on-dark);
  font: 600 13.5px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.tester button:hover { background: var(--monx); border-color: var(--monx); color: var(--ink); }
@media (max-width: 700px) {
  .tester { justify-content: space-between; gap: 10px; font-size: 13px; }
  .tester .long { display: none; }
  .tester button { padding: 0 11px; }
}
@media (max-width: 460px) { .tester .mid { display: none; } }

.toast {
  position: fixed;
  left: var(--gutter);
  bottom: calc(var(--demo-h) + max(20px, env(safe-area-inset-bottom, 0px)));
  z-index: 70;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-dark);
  font: 500 14px/1.4 var(--sans);
  opacity: 0;
  translate: 0 8px;
  transition: opacity .2s, translate .2s;
  pointer-events: none;
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / .5);
}
.toast.show { opacity: 1; translate: 0 0; }
@media (max-width: 600px) { .toast { left: 16px; right: 16px; max-width: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .headline img, .shout img { animation: none; -webkit-mask: none; mask: none; clip-path: none; }
  .net i, .live i, .pulse, .feed li.fresh, .grid i.n, .drawer, .sheet, .pay, .wait .mark, .tick.wait { animation: none; }
  html { scroll-behavior: auto; }
}
