:root {
  --paper: #f3ecdf;
  --screen: #fffaf1;
  --ink: #17140f;
  --body: #3a352b;
  --soft: #6b6355;
  --line: #17140f26;
  --hot: #fdcd04;   /* the yellow of the profile picture. Never use it for text on the cream page: it can't be read */
  --display: "Rubik", system-ui, sans-serif;   /* closest free match to the lettering in the $FOOD wordmark */
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
main { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
code { font-family: var(--mono); font-size: .9em; }

/* header */
.top {
  max-width: 1160px; margin-inline: auto; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--ink); }   /* the ticker: same face and weight as the rest of the wordmark */
.top-search { flex: 1 1 220px; max-width: 420px; }
.top-search input {
  width: 100%; font: inherit; font-size: 1rem; color: inherit; background: #17140f0d; border: 0;
  border-radius: 999px; padding: 10px 18px;
}
.top-search input::placeholder { color: var(--soft); }
.top-search input:focus { outline: 2px solid var(--ink); }
.top nav { display: flex; gap: 22px; font-size: 1rem; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--soft); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 3px; }

/* type */
h1 { font-size: clamp(2.6rem, 5.3vw, 4.6rem); line-height: .98; letter-spacing: -.03em; font-weight: 900; }
h1 em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 56%, var(--hot) 56%); padding: 0 .06em; }
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .line > span { display: block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
h1 .line:nth-child(2) > span { animation-delay: .1s; }
h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } }
.say { background: linear-gradient(var(--hot), var(--hot)) 0 100% / 0 38% no-repeat; color: var(--ink); font-weight: 600; animation: mark .7s .9s ease-out forwards; padding: 0 .1em; }
.say:nth-of-type(2) { animation-delay: 1.2s; }
.say:nth-of-type(3) { animation-delay: 1.5s; }
@keyframes mark { to { background-size: 100% 38%; } }
.kicker { font-size: 1.15rem; color: var(--soft); margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; }
h3 { font-size: 1.4rem; letter-spacing: -.02em; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: var(--body); }

.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; text-align: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background .15s;
}
.btn:hover, .btn.done { background: var(--hot); color: var(--ink); }
.btn.wide { display: block; width: 100%; }
.quiet { color: var(--soft); text-decoration: underline; font-size: 1rem; }
.quiet:hover { color: var(--ink); }
.copy-inline { font-size: .85em; text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.hero .lede { margin-top: 28px; }
.actions { margin-top: 28px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* hero walkthrough */
.hero-demo { justify-self: center; width: min(100%, 340px); margin-top: 84px; }   /* headroom so the peeking logo clears the menu */
.stage { position: relative; --mx: 0; --my: 0; }
.float-card {
  position: absolute; z-index: 0; width: 150px; aspect-ratio: 1.586; border-radius: 12px; background: var(--c); color: var(--t);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; letter-spacing: -.04em;
  box-shadow: 0 18px 30px -18px #17140f80;
  translate: calc(var(--mx) * var(--depth) * 1px) calc(var(--my) * var(--depth) * 1px);
  animation: bob 7s ease-in-out infinite; transition: translate .4s ease-out;
}
.fc1 { --depth: -46; top: 40px; left: -112px; rotate: -14deg; }
.fc2 { --depth: 34; top: 250px; right: -118px; rotate: 11deg; animation-delay: -2.5s; }
.fc3 { --depth: -24; bottom: 10px; left: -84px; rotate: 8deg; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(2deg); } }
.phone { z-index: 1; }
.phone {
  position: relative; height: 560px; background: #06060f; border: 10px solid var(--ink);
  border-radius: 44px; overflow: hidden; box-shadow: 14px 14px 0 var(--hot);
}
.scene {
  position: absolute; inset: 0; padding: 26px 20px; display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .35s; pointer-events: none;
  font-size: .95rem;
}
.scene.active { opacity: 1; transform: none; }
.scene-title { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.scene small { font-size: .78rem; color: var(--soft); display: block; }
.scene i { font-style: normal; }
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.reveal.on { opacity: 1; transform: none; }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-tile {
  background: var(--c); color: var(--t); border-radius: 8px; aspect-ratio: 1.6; display: grid; place-items: center;
  font-weight: 800; letter-spacing: -.03em; font-size: 1.05rem; transition: transform .25s, box-shadow .25s;
}
.mini-tile.on { transform: scale(.94); box-shadow: 0 0 0 3px var(--screen), 0 0 0 6px var(--ink); }
.mini-tile.wide { aspect-ratio: auto; padding: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.mini-tile.wide small { color: inherit; font-family: var(--mono); font-weight: 600; font-size: .85rem; }
.mini-values { display: flex; gap: 14px; font-family: var(--mono); font-size: .9rem; color: var(--soft); padding-top: 4px; }
.mini-values .pick { transition: color .2s, box-shadow .2s; }
.mini-values .pick.on { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--hot); }
.mini-note { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mini-note code { font-weight: 600; font-size: .82rem; }
.mini-copy, .send-btn {
  background: var(--ink); color: var(--screen); border-radius: 999px; text-align: center; font-weight: 600;
  padding: 10px; transition: background .2s, transform .2s;
}
.mini-copy.on, .send-btn.on { background: var(--hot); transform: scale(.97); }

/* scenes styled after the FOMO app: near-black sheet, big $ amount, keypad, slide to send */
.scene.fomo {
  --f-bg: #06060f; --f-panel: #15151f; --f-mute: #8b8b9a; --f-blue: #5466ff; --f-green: #22c55e;
  background: var(--f-bg); color: #fff; font-family: "DM Sans", system-ui, sans-serif; font-size: .85rem;
  padding: 12px 16px 16px; gap: 0;
}
.scene.fomo small { color: var(--f-mute); font-size: .7rem; }
.scene.fomo .mini-tile small { color: inherit; }
.sheet-handle { width: 34px; height: 4px; border-radius: 4px; background: #3a3a48; align-self: center; margin-bottom: 14px; flex: none; }
.f-head { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.f-head b { font-weight: 600; font-size: .9rem; display: block; }
.f-right { margin-left: auto; text-align: right; }
.f-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--hot); color: #17140f; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: -.03em;
}
.f-avatar.sm { width: 24px; height: 24px; font-size: .55rem; }
.f-avatar.pfp { overflow: hidden; background: none; }   /* a real trader's profile picture, shown with their permission */
.f-avatar.pfp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-avatar.brand { background: #fff3df; overflow: hidden; }   /* the coin's logo as its profile picture */
.f-avatar.brand img { width: 86%; height: 86%; object-fit: contain; display: block; }
.f-avatar.you { background: var(--f-blue); color: #fff; }
.f-amt { font-size: 3rem; font-weight: 500; letter-spacing: -.03em; text-align: center; line-height: 1; margin-top: 30px; }
.f-sub { text-align: center; color: var(--f-mute); font-size: .75rem; margin-top: 8px; text-transform: uppercase; letter-spacing: .02em; }
.f-note {
  margin: 18px 0 14px; background: var(--f-panel); border-radius: 10px; padding: 9px 12px; min-height: 36px;
  display: flex; align-items: center; transition: box-shadow .3s;
}
.f-note .ph { color: var(--f-mute); }
.f-note code { font-size: .82rem; font-weight: 600; display: none; }
.f-note.on .ph { display: none; }
.f-note.on code { display: block; }
.f-note.on { box-shadow: 0 0 0 1.5px var(--f-blue); }
.f-note.on code::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--f-blue); animation: blink 1s steps(2) infinite; }
.f-note.typed { box-shadow: none; }
.f-note.typed code::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.f-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.f-chips span { background: var(--f-panel); border-radius: 7px; text-align: center; padding: 4px 0; font-weight: 600; font-size: .72rem; }
.f-keys { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; flex: 1; align-items: center; }
.f-keys span { text-align: center; font-size: 1.15rem; font-weight: 500; padding: 5px 0; border-radius: 10px; transition: background .15s; }
.f-keys span.hit { background: #ffffff24; }
.f-info { display: flex; justify-content: space-between; color: var(--f-mute); font-size: .72rem; margin-bottom: 8px; }
.f-slide {
  position: relative; background: var(--f-panel); border-radius: 10px; height: 44px; display: grid; place-items: center;
  font-weight: 600; flex: none; overflow: hidden;
}
.f-knob {
  position: absolute; left: 4px; top: 4px; bottom: 4px; width: 40px; border-radius: 8px; background: var(--f-blue);
  display: grid; place-items: center; font-size: 1rem; transition: left .6s cubic-bezier(.5, 0, .2, 1), background .3s;
}
.f-slide.on .f-knob { left: calc(100% - 44px); background: var(--f-green); }

.f-done { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.f-check { width: 52px; height: 52px; border-radius: 50%; background: var(--f-green); color: #06060f; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.f-done-label { font-size: 1.1rem; font-weight: 500; }
.f-done .f-amt { margin: 0; font-size: 1.9rem; font-weight: 600; }
.f-to { color: var(--f-mute); }
.f-to b { color: #fff; font-weight: 600; }
.f-quote { margin-top: 12px; background: var(--f-panel); border-radius: 10px; padding: 8px 12px; font-size: .68rem; }
.f-bar { background: var(--f-green); color: #06060f; border-radius: 10px; height: 44px; padding: 0 16px; display: flex; justify-content: center; gap: 10px; align-items: center; font-weight: 600; flex: none; }

.scene.feed { padding: 0 0 16px; }
.f-tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; border-bottom: 1px solid #ffffff1a; color: var(--f-mute); font-weight: 500; margin-bottom: 4px; }
.f-tabs span { padding: 16px 0 10px; }
.f-tabs .on { color: #fff; box-shadow: 0 2px 0 var(--f-blue); }
.f-item { padding: 12px 14px; border-bottom: 1px solid #ffffff14; }
.f-line { display: flex; align-items: center; gap: 8px; color: var(--f-mute); font-size: .78rem; }
.f-line b { color: #fff; font-weight: 600; }
.f-line small { margin-left: auto; }
.f-card { background: var(--f-panel); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0 32px; display: flex; flex-direction: column; gap: 5px; }
.f-card code { font-size: .68rem; }
.f-card .code { font-size: .95rem; font-weight: 600; color: var(--f-green); min-height: 1.5em; }
.f-card .mini-tile { font-family: var(--display); padding: 10px 12px; font-size: .95rem; }
.f-push {
  position: absolute; z-index: 2; top: 8px; left: 8px; right: 8px; background: #26262fF2; border-radius: 14px; padding: 10px 12px;
  display: flex; gap: 10px; align-items: center; line-height: 1.25; font-size: .74rem; transform: translateY(-130%);
}
.f-push b { display: block; font-weight: 600; }
.f-push > small { margin-left: auto; align-self: flex-start; }
.f-push.on { animation: f-push 2.6s ease both; }
@keyframes f-push { 0% { transform: translateY(-130%); } 12%, 80% { transform: none; } 100% { transform: translateY(-130%); } }

.hero-steps { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-steps button {
  width: 100%; text-align: left; font-size: .85rem; line-height: 1.25; color: var(--soft);
  border-top: 3px solid var(--line); padding-top: 8px; transition: color .2s, border-color .2s;
}
.hero-steps button b { display: block; font-family: var(--mono); }
.hero-steps button.active { color: var(--ink); border-color: var(--hot); }
.hero-steps button.past { border-color: var(--ink); }
.hero-demo.static .hero-steps button { color: var(--ink); border-color: var(--ink); cursor: default; }

/* category rail */
.cat-rail { display: flex; gap: 8px 28px; flex-wrap: wrap; padding-block: 18px; border-block: 1px solid var(--line); }
.cat-rail a { text-decoration: none; font-weight: 600; }
.cat-rail a:hover { color: var(--hot); }
.cat-rail span { font-family: var(--mono); font-size: .75rem; color: var(--soft); font-weight: 400; }

/* gift card tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.tile { text-decoration: none; display: block; }
.tile-face {
  position: relative; display: grid; place-items: center; aspect-ratio: 1.586; border-radius: 12px;
  background: var(--c); color: var(--t); padding: 12px; text-align: center; transition: transform .2s;
}
.tile { perspective: 700px; }
.tile-face { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 10px 22px -16px #17140f99; overflow: hidden; }
.tile-face::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), #ffffff55, transparent 55%);
}
.tile:hover .tile-face { box-shadow: 0 22px 30px -18px #17140fb3; }
.tile:hover .tile-face::after { opacity: 1; }
/* brand mark: single-colour SVG used as a mask so it takes the tile's text colour */
.logo-mark {
  display: block; width: 34%; max-width: 64px; aspect-ratio: 1; background: var(--t, currentColor);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.tile-face, .wall-card, .float-card { align-content: center; justify-items: center; gap: 8px; }
.tile-face .tile-name, .wall-card > span:last-child, .float-card { font-size: .95rem; }
.tile-face .logo-mark { width: 44%; max-width: 96px; }
.logo-imgs { display: flex; align-items: center; justify-content: center; gap: 9%; width: 78%; height: 54%; }
.logo-img { display: block; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; flex: 0 1 auto; }
.tile-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile-face .tile-full + .tile-name,
.tile-face .logo-imgs + .tile-name,
.tile-face .logo-mark + .tile-name { display: none; }  /* the name already sits under the tile */
.tile-face.big .logo-mark { max-width: 120px; }
.tile-name { font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.04em; line-height: 1; }
.tile-face.big { width: 100%; max-width: 260px; }
.tile-face.big .tile-name { font-size: 1.4rem; }
.badge {
  position: absolute; top: 8px; left: 8px; background: var(--hot); color: var(--ink); font-family: var(--mono);
  font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.tile-info { display: block; margin-top: 10px; line-height: 1.3; }
.tile-info b { display: block; font-weight: 600; }
.tile-info span { font-size: .85rem; color: var(--soft); }

.shelf { padding-block: 64px 24px; }
.shelf .tiles { grid-template-columns: repeat(6, 1fr); }
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll reveals (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* wall of cards */
.wall { padding-block: 28px 36px; overflow: hidden; rotate: -2deg; margin-inline: -3vw; display: grid; gap: 14px; }
.wall-track { display: flex; gap: 14px; width: max-content; animation: drift 46s linear infinite; }
.wall-row.reverse .wall-track { animation-direction: reverse; animation-duration: 54s; }
.wall:hover .wall-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 7px)); } }
.wall-card {
  position: relative; flex: none; width: clamp(150px, 17vw, 230px); aspect-ratio: 1.586; border-radius: 12px; background: var(--c); color: var(--t);
  display: grid; place-items: center; text-decoration: none; font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(1.1rem, 1.9vw, 1.6rem); transition: transform .25s;
}
.wall-card:hover { transform: translateY(-6px) rotate(2deg); }

/* note builder */
.builder { padding-block: clamp(72px, 10vw, 140px); }
.madlib { font-size: clamp(2rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.12; max-width: 17em; }
.blank { display: inline-block; position: relative; color: var(--ink); }
.blank::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .13em; background: var(--hot); border-radius: 1em; z-index: -1; }
.blank select {
  font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border: 0; padding: 0 .05em; cursor: pointer;
  appearance: none; -webkit-appearance: none; max-width: 100%; field-sizing: content;
}
.blank select:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.blank option { font-size: 1rem; font-weight: 400; color: var(--ink); letter-spacing: 0; }
.built { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 24px; }
.built-label { color: var(--soft); font-size: 1rem; }
.built-note { font-family: var(--mono); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.6rem); letter-spacing: -.03em; min-height: 1.6em; }
.built-note span::after { content: "\258D"; color: var(--ink); animation: blink 1s steps(2) infinite; }
.built-note .copy-inline { font-family: var(--display); font-size: .95rem; font-weight: 400; letter-spacing: 0; margin-left: 18px; color: var(--soft); }
.built-send { grid-column: 2; max-width: 36em; color: var(--body); }

/* FOMO Food */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 64px; width: auto; display: block; margin-block: -8px; }   /* the $FOOD wordmark; rays and tongue overhang the letters, so it sits taller than the row */
.peek-logo {
  /* the face is nearly square: sit it high enough that the eyes clear the phone and the mouth stays hidden behind it */
  position: absolute; z-index: 0; top: -132px; left: 50%; width: 210px; height: auto; translate: -50% 0; rotate: -4deg;
  filter: drop-shadow(0 10px 14px #17140f40);
  animation: peek-up 1.1s 1.1s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes peek-up { from { transform: translateY(170px); } }


.countries { padding-block: 32px 96px; }
.countries h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.countries .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wall-card { overflow: hidden; }
.wall-card .tile-full, .tile-face .tile-full { z-index: 1; }
.alts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 24px; }
.alts button { color: var(--soft); font-weight: 600; padding: 4px 0; }
.alts button:hover { color: var(--ink); }
.alts button[aria-pressed="true"] { color: var(--ink); box-shadow: 0 2px 0 var(--hot); }

/* leaderboard */
.board-page { padding-block: clamp(32px, 6vw, 72px) 96px; }
.board-page h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); }
.board-page .lede { margin-top: 24px; }
.periods { display: flex; gap: 6px 26px; flex-wrap: wrap; margin-top: 36px; }
.periods button { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--soft); padding: 2px 0; transition: color .15s; }
.periods button:hover { color: var(--ink); }
.periods button[aria-pressed="true"] { color: var(--ink); box-shadow: 0 3px 0 var(--hot); }
.mock-banner { background: var(--ink); color: var(--paper); text-align: center; font-size: .95rem; padding: 10px 16px; }
.mock-banner a { color: var(--hot); white-space: nowrap; }
.board .who { display: flex; align-items: center; gap: .55em; min-width: 0; }
.board .who img { width: 1.5em; height: 1.5em; border-radius: 50%; object-fit: cover; flex: none; }
.board .who .av {   /* generated avatar: food emoji on a colour picked from the trader's name */
  width: 1.5em; height: 1.5em; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: hsl(var(--h, 30) 75% 84%); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1;
}
.board .who .av { font-size: 1em; }
.board .who .av::first-letter { font-size: .78em; }
.board .who .anon-av { background: #17140f14; color: var(--soft); font-family: var(--mono); font-size: .8em; width: 1.9em; height: 1.9em; }
.board-totals { margin-top: 28px; font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 34em; }
.board-totals b { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 56%, var(--hot) 56%); padding: 0 .06em; }
.board { list-style: none; padding: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.board li {
  display: grid; grid-template-columns: clamp(56px, 9vw, 120px) 1fr auto clamp(80px, 12vw, 140px); gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem;
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(min(var(--i), 12) * 60ms);
}
.board.in li { opacity: 1; transform: none; }
.board .rank { font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; color: var(--soft); line-height: 1; }
.board .who { font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.board .who.anon { color: var(--soft); font-style: italic; font-weight: 400; }
.board .count { color: var(--body); white-space: nowrap; }
.board .count b { font-family: var(--mono); color: var(--ink); }
.board .spent { font-family: var(--mono); font-weight: 600; text-align: right; }
.board .podium { padding: 26px 0; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.board .podium .rank { font-size: clamp(3rem, 8vw, 5.6rem); color: var(--hot); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.board .podium .who { font-weight: 800; letter-spacing: -.03em; }
.board-page .checked { margin-top: 56px; }
@media (max-width: 520px) {
  .board li { grid-template-columns: 44px 1fr auto; }
  .board .count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .board li { opacity: 1; transform: none; transition: none; } }

/* themed dropdown (replaces the browser's select menu) */
.dd { position: relative; display: inline-block; }
.dd-native { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.dd-btn { font: inherit; letter-spacing: inherit; color: inherit; text-align: left; padding: 0 .75em 0 .05em; position: relative; }
.dd-btn::after {
  content: ""; position: absolute; right: .12em; top: 50%; width: .3em; height: .3em; border: solid currentColor;
  border-width: 0 .09em .09em 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.dd.open .dd-btn::after { transform: translateY(-20%) rotate(-135deg); }
.dd-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.dd-list {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 10px); margin: 0; padding: 8px; list-style: none;
  min-width: max(100%, 200px); width: max-content; max-width: min(88vw, 360px); max-height: 320px; overflow-y: auto;
  background: var(--ink); color: var(--paper); border-radius: 14px; box-shadow: 0 24px 40px -18px #17140fcc;
  font: 600 1.05rem/1.3 var(--display); letter-spacing: -.01em;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .16s, transform .16s cubic-bezier(.2, .8, .2, 1), visibility .16s;
  scrollbar-width: thin; scrollbar-color: #f3ecdf55 transparent;
}
.dd-list.flip { left: auto; right: 0; transform-origin: top right; }
.dd.open .dd-list { opacity: 1; visibility: visible; transform: none; }
.dd-list li { padding: 9px 14px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; }
.dd-list li.active { background: #f3ecdf1f; }
.dd-list li[aria-selected="true"] { color: var(--hot); }
.dd-list li[aria-selected="true"]::after { content: "\2713"; }

.order-hint { font-size: .85rem; color: var(--soft); margin-top: 10px; }

@media (max-width: 900px) {
  .hero-demo { margin-top: 118px; }   /* room for the logo peeking over the phone */
  .peek-logo { width: 170px; top: -106px; }
  .float-card { width: 110px; font-size: 1rem; }
  .fc1 { left: -40px; top: -18px; }
  .fc2 { right: -44px; }
  .fc3 { left: -30px; bottom: -14px; }
  .built { grid-template-columns: 1fr; }
  .built-send { grid-column: 1; } .shelf .tiles { grid-template-columns: repeat(3, 1fr); } }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.shelf-head a { font-size: 1rem; white-space: nowrap; }

/* real video, when there is one */
.watch { padding-block: 64px 0; }
.vsl { width: 100%; margin-top: 28px; display: block; background: var(--ink); aspect-ratio: 16 / 9; border-radius: 12px; }

/* steps */
.steps { padding-block: 72px 96px; }
.steps ol { list-style: none; padding: 0; margin-top: 28px; }
.steps li {
  display: grid; grid-template-columns: clamp(64px, 14vw, 160px) 1fr; gap: 16px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.num { font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 800; line-height: .8; letter-spacing: -.05em; color: var(--hot); }
.steps li p { margin-top: 8px; max-width: 36em; color: var(--body); }

/* fees strip */
.strip { background: var(--hot); color: var(--ink); padding-block: clamp(56px, 9vw, 110px); }
.strip h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 12em; }
.strip-lede { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 38em; margin-top: 24px; }
.flow {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 44px 0;
  font-family: var(--mono); font-weight: 600; font-size: clamp(1rem, 2.3vw, 1.7rem); letter-spacing: -.03em;
}
.flow i { font-style: normal; animation: nudge 1.6s ease-in-out infinite; }
.flow i:nth-of-type(2) { animation-delay: .25s; }
.flow i:nth-of-type(3) { animation-delay: .5s; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.strip-sub { font-size: 1rem; max-width: 40em; }

/* faq */
.faq { padding-block: 72px; }
.faq dl { margin-top: 28px; }
.faq dl > div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.faq dt { font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.faq dd { color: var(--body); }

.foot { padding-top: 32px; border-top: 1px solid var(--ink); font-size: .9rem; color: var(--soft); overflow: hidden; }
.foot.wrap { padding-bottom: 56px; }
.foot p { max-width: 52em; }

/* catalogue */
.catalogue { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding-block: 32px 96px; align-items: start; }
.catalogue aside { position: sticky; top: 24px; }
.catalogue h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cat-sub { color: var(--body); margin: 14px 0 36px; max-width: 36em; }
.country-pick { display: block; font-size: .9rem; color: var(--soft); margin-bottom: 28px; }
.country-pick .blank { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-top: 2px; width: fit-content; }
.checked { margin-top: 40px; font-size: .85rem; color: var(--soft); }
.cats { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cats button { color: var(--soft); font-size: 1rem; text-align: left; }
.cats button:hover { color: var(--ink); }
.cats button[aria-pressed="true"] { color: var(--ink); font-weight: 600; box-shadow: 0 2px 0 var(--hot); }
.empty { color: var(--soft); max-width: 40em; }

/* single card */
.product { padding-block: 24px 96px; }
.crumbs { font-size: .9rem; color: var(--soft); margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.product h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.facts { list-style: none; padding: 0; margin: 20px 0 36px; color: var(--body); font-size: 1rem; }
.facts li::before { content: "▸ "; color: var(--ink); }
.chooser { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 24px; align-items: start; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.denoms button {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 10px; text-align: center; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.denoms button b { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.denoms button span { font-family: var(--mono); font-size: .75rem; color: var(--soft); }
.denoms button:hover { border-color: var(--ink); }
.denoms button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.denoms button[aria-pressed="true"] span { color: #ffffffa6; }

.order { position: sticky; top: 24px; border-top: 3px solid var(--ink); padding-top: 18px; }
.order-title { font-weight: 600; }
.order-price { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 8px; }
.order-price i { font-style: normal; font-size: 1rem; font-weight: 400; color: var(--soft); letter-spacing: 0; }
.order-price s { font-size: 1rem; font-weight: 400; color: var(--soft); letter-spacing: 0; }
.order-label { font-size: .95rem; color: var(--body); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-note { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; margin: 10px 0 14px; overflow-wrap: anywhere; user-select: all; }
.order-wallet { font-size: .85rem; margin-top: 8px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hero-demo { margin-top: 118px; }   /* room for the logo peeking over the phone */
  .peek-logo { width: 170px; top: -106px; }
  .float-card { width: 110px; font-size: 1rem; }
  .fc1 { left: -40px; top: -18px; }
  .fc2 { right: -44px; }
  .fc3 { left: -30px; bottom: -14px; }
  .built { grid-template-columns: 1fr; }
  .built-send { grid-column: 1; }
  .hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .order { position: static; }
  .catalogue { grid-template-columns: 1fr; gap: 24px; }
  .catalogue aside { position: static; }
  .cats { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .faq dl > div { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1.05rem; }
  .wrap, .top { padding-inline: 16px; }
  .top nav { margin-left: 0; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .chooser { grid-template-columns: 1fr; }
  .phone { box-shadow: 8px 8px 0 var(--hot); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dd-list, .dd-btn::after { transition: none; }
  .peek-logo { animation: none; }
  .scene, .reveal, .tile-face, .js [data-reveal], .float-card { transition: none; }
  h1 .line > span, .float-card, .wall-track, .built-note span::after { animation: none; }
  .say { animation: none; background-size: 100% 38%; }
  .wall { overflow-x: auto; }
  .flow i, .f-note.on, .f-push.on { animation: none; }
  .f-knob { transition: none; }
}

/* open spots on the top 10 */
.board .who .open-av { background: transparent; border: 1px dashed var(--line); }
.board li.open { color: var(--soft); }
.board li.open .who { font-weight: 500; font-style: italic; }
.board li.open .rank { color: var(--line); }

/* order screen */
.orders-screen { background: #100e0c; color: #f3ecdf; min-height: 100vh; }
.orders-screen .screen-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px 0;
}
.orders-screen .logo img { height: 42px; width: auto; filter: invert(1) hue-rotate(180deg); }
.orders-screen .screen-live {
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--hot);
}
.orders-screen .screen-live::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em;
  border-radius: 50%; background: var(--hot); vertical-align: 0.05em;
}
.orders-screen .screen {
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px);
}
.orders-screen .lane { padding: 28px 36px 48px; }
.orders-screen .lane-done { background: #1c1916; }
.orders-screen .lane h1 {
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: #f3ecdf66; margin-bottom: 18px;
}
.orders-screen .lane-done h1 { color: var(--hot); }
.orders-screen .lane ol { list-style: none; padding: 0; }
.orders-screen .lane li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0 14px; border-top: 1px solid #f3ecdf18;
  font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em;
}
.orders-screen .lane .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.orders-screen .lane .val { font-family: var(--mono); font-weight: 600; font-size: .62em; }
.orders-screen .quiet-ticket {
  border-top: 0; padding-top: 6px; color: #f3ecdf33;
  font-size: .95rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.orders-screen .miss {
  order: 2; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 11px/1.2 var(--display); letter-spacing: .04em; text-transform: none;
  color: #f3ecdf44; text-decoration: none;
}
.orders-screen .miss:hover { color: #f3ecdf; }
.orders-screen .miss:disabled { cursor: default; color: #f3ecdf66; }
.orders-screen .miss-reply {
  order: 3; max-width: 16rem; text-align: right;
  font: 500 11px/1.35 var(--display); color: #f3ecdfaa;
}
@media (max-width: 720px) {
  .orders-screen .screen { grid-template-columns: 1fr; }
  .orders-screen .screen-top, .orders-screen .lane { padding-inline: 20px; }
}

.admin { padding-bottom: 80px; }
.admin h1 { margin-bottom: 12px; }
.admin .lede { margin-bottom: 28px; }
.admin-card {
  max-width: 640px; display: grid; gap: 14px; margin-top: 28px;
  padding: 22px; background: var(--screen); border-radius: 18px;
}
.admin-card h2 { font-size: 1.35rem; }
.admin-card label { font-weight: 600; }
.admin-card input {
  font: inherit; font-size: 1rem; color: inherit; background: #17140f0d; border: 0;
  border-radius: 12px; padding: 12px 14px;
}
.admin-card input:focus { outline: 2px solid var(--ink); }
.admin-note { color: var(--soft); font-size: 1rem; min-height: 1.4em; }
.admin-preview {
  font-family: var(--mono); font-size: .92rem; line-height: 1.45;
  background: #17140f0d; border-radius: 12px; padding: 12px 14px;
}
.admin-coins { display: grid; gap: 8px; }
.admin-coin {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  text-align: left; padding: 14px 16px; border-radius: 14px; background: #17140f0d;
}
.admin-coin.on { background: var(--ink); color: var(--paper); }
.admin-coin code { font-size: .85rem; }
.admin-card .btn { justify-self: start; }
