/* ─────────────────────────────────────────────────────────────
   Fomo Fantasy

   Rebuilt away from the Fomo ETF page. That one was drawn against usual.money's
   typeface and quietly inherited its whole rhythm, so a second site in the same
   family read as a reskin. The structure here is usual's actual one: full bleed
   slabs alternating black and bone, each slab starting with a rounded lip over
   the one before it, and every piece of content inside a large rounded card
   rather than a hairline panel.

   Centred, sentence case, and no full stops on headings. That last one is the
   quickest tell between this and the rentgpu family.
   ───────────────────────────────────────────────────────────── */

@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fragment+Mono&display=swap");

:root {
  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* dark slab */
  --ink: #080808;
  --ink-2: #101010;
  --card: #131313;
  --card-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.09);
  --on-ink: #f7f7f8;
  --on-ink-2: rgba(247, 247, 248, 0.62);
  --on-ink-3: rgba(247, 247, 248, 0.38);

  /* light slab */
  --bone: #f4f3ef;
  --bone-2: #ffffff;
  --on-bone: #0b0b0b;
  --on-bone-2: rgba(11, 11, 11, 0.62);
  --on-bone-3: rgba(11, 11, 11, 0.40);
  --line-bone: rgba(11, 11, 11, 0.11);

  --violet: #a06bff;
  --violet-hi: #c9a6ff;
  --violet-deep: #5b21b6;

  --up: #46d99a;
  --down: #ff6b84;

  --pad: clamp(20px, 5vw, 56px);
  --max: 1140px;
  --lip: 34px;
  --r-card: 26px;
  --r-in: 18px;
  --ease: cubic-bezier(.22, .9, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ink); color: var(--on-ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.032em; line-height: 1.03; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── slabs ──────────────────────────────────────────────────── */
.slab { position: relative; padding: clamp(64px, 8vw, 116px) 0; }
.slab.dark { background: var(--ink); color: var(--on-ink); }
.slab.light { background: radial-gradient(90% 60% at 50% 0%, #ffffff, var(--bone) 70%); color: var(--on-bone); }
/* the lip that makes each slab sit over the one before it */
[hidden] { display: none !important; }
.slab + .slab, footer {
  border-radius: var(--lip) var(--lip) 0 0;
  margin-top: calc(var(--lip) * -1);
  z-index: 1;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.mid { text-align: center; }
.mid .lede { margin-left: auto; margin-right: auto; }

/* ── type ───────────────────────────────────────────────────── */
h1 { font-size: clamp(42px, 6.2vw, 84px); letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: clamp(29px, 3.8vw, 48px); }
h3 { font-size: 19px; letter-spacing: -0.022em; }
.lede { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.55; max-width: 58ch; color: var(--on-ink-2); }
.light .lede { color: var(--on-bone-2); }
.note { font-size: 13.5px; color: var(--on-ink-3); }
.light .note { color: var(--on-bone-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.up { color: var(--up); }
.down { color: var(--down); }
.light .up { color: #0f8f5c; }
.light .down { color: #c22a45; }

/* faces set into a headline, the way usual sets coins into theirs */
.faces { display: inline-flex; vertical-align: -0.2em; margin: 0 .18em 0 .1em; }
.faces > * {
  width: 1.02em; height: 1.02em; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--ink); margin-left: -.2em; background: var(--card-2);
  display: grid; place-items: center; font-size: .4em; font-weight: 600; color: var(--violet-hi);
}
.light .faces > * { box-shadow: 0 0 0 3px var(--bone); }
.faces > *:first-child { margin-left: 0; }

/* ── header ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  padding: 13px var(--pad);
  display: flex; align-items: center; gap: 12px;
  background: rgba(8, 8, 8, .74); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.03em; font-size: 17px; }
.brand img { width: 28px; height: 28px; display: block; }
.brand span { color: var(--violet-hi); }
nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
nav a {
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--on-ink-2); transition: color .2s var(--ease), background .2s var(--ease);
}
nav a:hover, nav a[aria-current] { color: var(--on-ink); background: rgba(255, 255, 255, .07); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: var(--on-ink); color: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}
.pill:hover { transform: translateY(-1px); opacity: .88; }
.pill.line { background: var(--card); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.line:hover { background: var(--card-2); }
.light .pill { background: var(--on-bone); color: var(--bone); }
.light .pill.line { background: transparent; color: var(--on-bone); box-shadow: inset 0 0 0 1px var(--line-bone); }
.pill[disabled] { opacity: .32; cursor: not-allowed; transform: none; }

/* ── cards ──────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r-card); padding: 28px; position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 50px -30px rgba(0,0,0,.8); }
.light .card { background: var(--bone-2); box-shadow: 0 1px 0 rgba(11,11,11,.04), 0 12px 30px -24px rgba(11,11,11,.25); }
.light .card:hover { box-shadow: 0 30px 50px -30px rgba(11,11,11,.3); }
.card.glow {
  background: radial-gradient(130% 100% at 10% 0%, rgba(160, 107, 255, .42), transparent 62%), var(--card);
  box-shadow: inset 0 1px 0 rgba(201,166,255,.25), 0 0 0 1px rgba(160,107,255,.25);
}
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stat small { display: block; font-size: 13px; color: var(--on-ink-3); margin-bottom: 5px; }
.light .stat small { color: var(--on-bone-3); }
.stat b { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; display: block; }
.stat em { display: block; font-style: normal; font-size: 12.5px; color: var(--on-ink-3); margin-top: 4px; font-family: var(--mono); }
.light .stat em { color: var(--on-bone-3); }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(160, 107, 255, .15); color: var(--violet-hi);
}
.light .badge { background: rgba(91, 33, 182, .09); color: #5b21b6; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; font-style: normal; }

/* ── hero ───────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 7vw, 100px) 0 clamp(72px, 8vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -20%; width: 1100px; height: 900px;
  transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(160, 107, 255, .26), transparent 70%),
    radial-gradient(40% 30% at 30% 60%, rgba(91, 33, 182, .22), transparent 70%);
  filter: blur(30px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent 75%);
}
.hero .wrap { z-index: 1; }
.hero h1 { margin: 22px auto 20px; max-width: 16ch; }
.hero .lede { margin-bottom: 30px; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── the team sheet ─────────────────────────────────────────── */
.sheet {
  max-width: 560px; margin: clamp(48px, 5.5vw, 76px) auto 0;
  background: linear-gradient(180deg, #171717, #111 70%); border-radius: 32px; padding: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 8px #0c0c0c, 0 0 0 9px rgba(255, 255, 255, .05),
    0 60px 120px -40px rgba(160, 107, 255, .35), 0 50px 110px -50px #000;
  position: relative; text-align: left;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
/* the side notches usual puts on its device mock */
.sheet::before, .sheet::after {
  content: ""; position: absolute; top: 66px; bottom: 66px; width: 4px; border-radius: 4px;
  background: repeating-linear-gradient(var(--card-2) 0 26px, transparent 26px 58px);
}
.sheet::before { left: -10px; }
.sheet::after { right: -10px; }
.sheet .top { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.sheet .top h3 { font-size: 15.5px; }
.sheet .top .note { margin-left: auto; }
.meter { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 16px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet-deep), var(--violet)); transition: width 1s var(--ease); }

.slots { display: grid; gap: 8px; }
.slot {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px;
  padding: 11px 14px 11px 11px; border-radius: var(--r-in); min-height: 66px;
  background: var(--ink-2); transition: background .35s var(--ease), transform .35s var(--ease);
}
.slot.filled { background: var(--card-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.slot.filled:hover { transform: translateX(3px); }
.slot.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }
.slot .who { min-width: 0; }
.slot .who b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .who small { display: block; font-size: 12.5px; color: var(--violet-hi); opacity: .8; }
.slot .fig { text-align: right; font-family: var(--mono); font-size: 14px; }
.slot .fig b { display: block; font-weight: 400; }
.slot .fig small { color: var(--on-ink-3); font-size: 11.5px; }
.slot .empty { color: var(--on-ink-3); font-size: 14px; }
.slot .drop { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px dashed rgba(255,255,255,.1); }
.sheet .total {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.sheet .total span { font-size: 13.5px; color: var(--on-ink-3); }
.sheet .total b { margin-left: auto; font-family: var(--mono); font-size: 28px; font-weight: 400; letter-spacing: -0.03em; }

/* ── portraits ──────────────────────────────────────────────── */
.pf { width: 44px; height: 44px; border-radius: 14px; flex: none; object-fit: cover; background: var(--card-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.pf.pfx { display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--violet-hi); }
.light .pf { background: rgba(11, 11, 11, .07); }

/* ── board table ────────────────────────────────────────────── */
.boardcard { background: var(--card); border-radius: var(--r-card); overflow: hidden; min-width: 0; }
.boardbar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex-wrap: wrap; }
.boardbar .note { margin-right: auto; }
.seg { display: flex; gap: 3px; padding: 3px; background: var(--ink-2); border-radius: 999px; }
.seg button { padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--on-ink-3); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--card-2); color: var(--on-ink); }
.search input {
  background: var(--ink-2); border: 0; border-radius: 999px; padding: 9px 16px;
  color: var(--on-ink); font: inherit; font-size: 13.5px; width: 176px;
}
.search input::placeholder { color: var(--on-ink-3); }
.search input:focus { outline: 1px solid rgba(160, 107, 255, .5); }
/* The gutter is reserved rather than overlaid: without it the pick button in
   the last column sits under the scrollbar and cannot be clicked. */
/* The list scrolls with the page. An inner scroll box sat under the sticky
   header and hid its first rows behind it. */
.scroller { overflow-x: auto; min-width: 0; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; z-index: 2; background: var(--card);
  text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--on-ink-3); padding: 10px 12px;
}
thead th.r, td.r { text-align: right; }
tbody tr { transition: background .18s; }
tbody tr:hover { background: rgba(255, 255, 255, .035); }
tbody tr.picked { background: rgba(160, 107, 255, .14); }
tbody tr.locked { opacity: .34; }
td { padding: 12px 12px; font-size: 14.5px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.04); }
td.who { display: flex; align-items: center; gap: 12px; }
td.who b { font-weight: 500; letter-spacing: -0.02em; }
td.who small { display: block; font-size: 12.5px; color: var(--violet-hi); opacity: .75; }
td .bags { display: flex; gap: 5px; flex-wrap: nowrap; white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--on-ink-2); }
.tag.up { background: rgba(70, 217, 154, .13); color: var(--up); }
.tag.down { background: rgba(255, 107, 132, .13); color: var(--down); }
.pick {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .07);
  display: grid; place-items: center; color: var(--on-ink-2); font-size: 15px; line-height: 1;
  transition: all .18s var(--ease);
}
.pick:hover { background: var(--violet); color: #10061f; }
tr.picked .pick { background: var(--violet); color: #10061f; }
.price { font-family: var(--mono); font-size: 14px; }
td.price span { display: inline-block; padding: 4px 9px; border-radius: 999px; background: rgba(160,107,255,.14); color: var(--violet-hi); }

/* ── figures and lists ──────────────────────────────────────── */
.big { font-family: var(--mono); font-size: clamp(32px, 4.2vw, 48px); font-weight: 400; letter-spacing: -0.04em; line-height: 1.06; }
.body { margin-top: 8px; font-size: 14.5px; color: var(--on-ink-2); }
.light .body { color: var(--on-bone-2); }
.card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.card li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.card li .price { margin-left: auto; font-size: 13px; color: var(--on-ink-3); }
.light .card li .price { color: var(--on-bone-3); }
.rowlist { display: grid; }
.rowlist div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.light .rowlist div { border-color: var(--line-bone); }
.rowlist div:last-child { border-bottom: 0; }
.rowlist span { color: var(--on-ink-3); }
.light .rowlist span { color: var(--on-bone-3); }
.rowlist b { margin-left: auto; font-family: var(--mono); font-weight: 400; }
.rowlist .sum { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 4px; padding-top: 14px; }
.light .rowlist .sum { border-color: var(--line-bone); }

/* ── the band of big numbers ────────────────────────────────── */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.band > div { padding: 26px 26px 22px; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.band b { display: block; font-family: var(--mono); font-size: clamp(34px, 4vw, 54px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.band small { display: block; margin-top: 10px; font-size: 13.5px; color: var(--on-ink-3); }
.band .tight b { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; }
.cols-2.single { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── the fifty, as a strip ──────────────────────────────────── */
.strip { position: relative; overflow: hidden; margin-top: clamp(40px, 5vw, 64px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip .track { display: flex; gap: 10px; width: max-content; animation: slide 90s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); white-space: nowrap; }
.chip .pf { width: 32px; height: 32px; border-radius: 50%; }
.chip b { font-size: 14px; font-weight: 500; }
.chip small { font-size: 12px; color: var(--on-ink-3); margin-left: 2px; }
.chip.dim { opacity: .45; }

/* ── numbered blocks ────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps > div { background: var(--card); border-radius: var(--r-card); padding: 24px; text-align: left; }
.light .steps > div { background: var(--bone-2); }
.steps > div::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 12.5px; color: var(--violet); margin-bottom: 14px;
}
.light .steps > div::before { color: var(--violet-deep); }
.steps h3 { margin-bottom: 7px; font-size: 17px; }
.steps p { font-size: 14px; color: var(--on-ink-2); }
.light .steps p { color: var(--on-bone-2); }

/* ── footer ─────────────────────────────────────────────────── */
footer { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 6vw, 84px) 0 44px; position: relative; }
.fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.fcols h4 { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-3); margin-bottom: 13px; }
.fcols p, .fcols a { display: block; font-size: 14px; color: var(--on-ink-2); padding: 3px 0; }
.fcols a:hover { color: var(--on-ink); }
.wordmark { margin-top: 56px; display: flex; align-items: center; gap: .12em; font-size: clamp(56px, 12vw, 150px); font-weight: 700; letter-spacing: -0.05em; line-height: .85; color: rgba(255,255,255,.05); user-select: none; }
.wordmark img { height: .78em; width: auto; opacity: .35; }
.smallprint { margin-top: 42px; font-size: 12.5px; color: var(--on-ink-3); max-width: 78ch; line-height: 1.6; }

/* ── motion ─────────────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rise.in { opacity: 1; transform: none; }
/* children of a grid stagger on their own; the grid itself does not fade */
.stagger > * { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms }
.stagger.in > *:nth-child(2) { transition-delay: 90ms }
.stagger.in > *:nth-child(3) { transition-delay: 180ms }
.stagger.in > *:nth-child(4) { transition-delay: 270ms }
.stagger.in > *:nth-child(5) { transition-delay: 360ms }
.stagger.in > *:nth-child(6) { transition-delay: 450ms }
/* the slab lip lifts a touch as it arrives */
.slab.lift { transform: translateY(14px); transition: transform .9s var(--ease); }
.slab.lift.in { transform: none; }
/* board rows arrive in sequence the first time the table is drawn */
tbody tr.row-in { animation: rowin .5s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-6px) } to { opacity: 1; transform: none } }
header { transition: padding .25s var(--ease), background .25s var(--ease); }
header.stuck { padding-top: 9px; padding-bottom: 9px; background: rgba(8, 8, 8, .86); }

@media (prefers-reduced-motion: reduce) {
  .rise, .stagger > *, .slab.lift, .slot, .meter i { transition: none !important; opacity: 1 !important; transform: none !important; }
  .slot.pop, tbody tr.row-in, .sheet, .strip .track { animation: none !important; }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cols-3, .steps, .band { grid-template-columns: 1fr 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --lip: 26px; }
  nav a.hide-sm { display: none; }
  .cols-3, .cols-2, .steps { grid-template-columns: 1fr; }
  .band, .statrow { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero::before { width: 700px; height: 600px; }
  .sheet::before, .sheet::after { display: none; }
  td.bagcell, th.bagcell, td.bookcell, th.bookcell { display: none; }
  .fcols { grid-template-columns: 1fr 1fr; }
}
