/* The whole look of the page, drawn like a soft picture book: cream paper, dark brown ink lines, flat pastel colours
   and round letters. One accent (butter yellow, --buy) sits only on what you buy or claim; every text colour is
   measured against its background (tools/shots.mjs: at least 7:1). Cards are 2:3 portraits with the art, an ink
   outline, a name label and a small rarity mark. */

/* ---- fonts: self-hosted copies of Google Fonts files, SIL Open Font License 1.1 (fonts/OFL-fredoka.txt) */
@font-face { font-family: 'Fredoka Fallback'; src: local('Arial'); size-adjust: 103%; ascent-override: 94%; descent-override: 23%; line-gap-override: 0%; }
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('fonts/fredoka-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- tokens */
:root {
  color-scheme: light;

  --bg: #fbf7ea;        /* the page: cream paper */
  --raise: #fffdf7;     /* a box: lighter paper */
  --panel: #ffffff;     /* the box you act in */
  --well: #fffefb;      /* inputs */
  --ink: #4a3530;       /* the brown of the drawings' outlines */
  --ink-rgb: 74, 53, 48;
  --line: rgba(74, 53, 48, 0.16);
  --line-2: rgba(74, 53, 48, 0.34);

  /* text, with its contrast on --bg / on --raise */
  --text: #3d2b26;      /* 12.4 / 13.1 */
  --text-2: #594640;    /* 8.4 / 8.9 */
  --text-3: #594640;    /* small labels: nothing on the page is dimmer */
  --paper: #fffaf0;     /* text on ink */

  /* the one accent: what you buy or claim. Butter yellow, a softer cousin of BNB's yellow, always with ink on it */
  --buy: #ffd56a;
  --buy-hi: #ffe18f;
  --buy-deep: #f2b632;  /* the accent as a line (a squiggle, a chart), where the pale yellow wouldn't show */
  --buy-ink: #3d2b26;
  --buy-rgb: 255, 213, 106;
  --due: var(--buy);
  --due-rgb: var(--buy-rgb);

  /* the sea of the pictures and a blush: soft colours for what is live and for decoration, never for text */
  --aqua: #a9eae3;
  --aqua-2: #74d3c8;
  --aqua-soft: #e6f8f4;
  --blush-soft: #fff0ea;

  /* rarity colours: pastel, stepped so that neighbours stay apart; a name always stands beside the colour */
  --common: #bcb3a7;
  --rare: #6aaef5;
  --epic: #a983ea;
  --legendary: #f4a62a;
  --void: #2e2940;

  --wrap: 1160px;
  --gutter: 24px;
  --stroke: 2px;                 /* the ink line round boxes and buttons */
  --drop: 0 4px 0 var(--ink);    /* a box's hard shadow, as if cut out of paper */
  --r: 22px;                     /* a box's corner */
  --sans: 'Fredoka', 'Fredoka Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;

  /* hand-drawn bits, as pictures: a wavy rule between sections, a squiggle under a title, a sparkle, the sea */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 6Q15 1 30 6T60 6T90 6T120 6' fill='none' stroke='%234a3530' stroke-opacity='.3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='14' viewBox='0 0 100 14'%3E%3Cpath d='M4 8Q14 2 24 8T44 8T64 8T84 8T96 7' fill='none' stroke='%23f2b632' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-10C1.6-2.4 2.4-1.6 10 0 2.4 1.6 1.6 2.4 0 10-1.6 2.4-2.4 1.6-10 0-2.4-1.6-1.6-2.4 0-10Z' fill='%23ffd56a' stroke='%234a3530' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  --sea: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='120' viewBox='0 0 480 120'%3E%3Cpath d='M0 30C60 20 120 36 180 28S300 18 360 28S440 36 480 30V104C420 112 360 100 300 106S180 114 120 106S40 100 0 104Z' fill='%23d6f5f1'/%3E%3Cpath d='M0 52C70 44 130 58 200 50S330 42 400 51S440 56 480 52V104C420 112 360 100 300 106S180 114 120 106S40 100 0 104Z' fill='%23c2efea'/%3E%3Cpath d='M0 78C80 70 150 84 230 76S370 68 430 77S440 82 480 78V104C420 112 360 100 300 106S180 114 120 106S40 100 0 104Z' fill='%23afe8e2'/%3E%3Cpath d='M40 64C70 61 100 63 130 62M290 40C320 37 345 39 370 38' stroke='%23effcfa' stroke-width='4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M250 92C290 89 330 92 370 90M60 94C90 91 120 93 150 92' stroke='%23effcfa' stroke-width='4.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

/* ---- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html:not(.ready) body { visibility: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:lang(zh) body { line-height: 1.75; }
a { color: inherit; }
p { margin: 0; }
code { font-family: var(--mono); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
::selection { background: rgba(var(--buy-rgb), 0.7); color: var(--text); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font: 600 clamp(36px, 4.2vw, 54px)/1.1 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
/* a yellow squiggle under each section's title, as if underlined by hand */
h2::after { content: ''; display: block; width: 100px; height: 14px; margin-top: 12px; background: var(--squiggle) left center / 100px 14px no-repeat; }
h3 { font: 600 19px/1.35 var(--sans); }
:lang(zh) h2 { font: 600 clamp(30px, 3.4vw, 44px)/1.25 var(--sans); letter-spacing: 0; }

.lead { margin-top: 16px; max-width: 64ch; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.label { margin: 0; font: 600 12.5px/1.35 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
:lang(zh) .label { font-size: 13px; letter-spacing: 0.04em; }
.unit { font-size: 0.52em; font-weight: 500; letter-spacing: 0.01em; color: var(--text-2); }
.hint { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.hint:empty { display: none; }
.empty { margin-top: 24px; font-size: 16.5px; color: var(--text-2); }

/* ---- buttons, inputs: round, with an ink line and a small hard shadow, pressed down when clicked */
.btn {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px;
  border: var(--stroke) solid var(--ink); border-radius: 999px;
  background: var(--raise); color: var(--text);
  font: 600 15.5px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, translate 0.12s, box-shadow 0.12s;
}
.btn:hover { background: #fff; translate: 0 -1px; box-shadow: 0 4px 0 var(--ink); }
.btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { cursor: not-allowed; translate: none; border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--text-3); box-shadow: none; }
.btn--quiet { box-shadow: none; }
.btn--quiet:hover { box-shadow: none; translate: none; background: #fff; }
.btn--buy { background: var(--buy); color: var(--buy-ink); }
.btn--buy:hover { background: var(--buy-hi); }
.btn--buy:disabled { background: transparent; color: var(--text-3); }
.btn--buyline { background: rgba(var(--buy-rgb), 0.35); }
.btn--buyline:hover { background: rgba(var(--buy-rgb), 0.55); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 17px; }
body.busy .btn { pointer-events: none; }

/* a small label over a mark, on hover and on keyboard focus (the chance bar) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 6; left: 50%; bottom: calc(100% + 12px); translate: -50% 0;
  padding: 8px 12px; border-radius: 999px; background: var(--ink);
  font: 500 13.5px/1 var(--sans); color: var(--paper); white-space: nowrap; pointer-events: none;
}

/* a meter: a round bar with an ink line, filled in a soft colour */
.meter { position: relative; display: block; height: 12px; border-radius: 999px; background: #f2ead7; overflow: hidden; }
.meter::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--ink); pointer-events: none; }
.meter__fill { display: block; height: 100%; border-radius: inherit; background: #cdbfa8; }

.input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px;
  border: var(--stroke) solid var(--line-2); border-radius: 14px;
  background: var(--well); color: var(--text);
  font: 400 14px/1 var(--mono);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); font-family: var(--sans); font-size: 15px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(var(--buy-rgb), 0.55); }
.field { display: flex; gap: 10px; }
.field--wide { margin-top: 32px; max-width: 760px; }

.linkbtn {
  appearance: none; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 14.5px/1.4 var(--sans); color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.linkbtn:hover { text-decoration-color: var(--ink); }
a.linkbtn:not([href]) { cursor: default; }

/* ---- the rarity mark: a dot of the rarity's colour with an ink ring */
.mark { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--common); box-shadow: 0 0 0 1.5px var(--ink); }
.mark--rare { background: var(--rare); }
.mark--epic { background: var(--epic); }
.mark--legendary { background: var(--legendary); }
.mark--void { background: var(--void); }

/* ---- the card: the art inside a thick ink outline, a name label, a small rarity mark */
.card {
  --top: #efe9de; --bottom: #ddd4c6;
  position: relative; display: block; margin: 0;
  width: 100%; aspect-ratio: 2 / 3;
  border: var(--card-line, 3px) solid var(--ink);
  border-radius: var(--card-radius, 16px);
  overflow: hidden; isolation: isolate;
  background: var(--bottom);
  box-shadow: 0 var(--card-drop, 0px) 0 var(--ink);
  container-type: inline-size;
}
.card::after { /* the rarity's band, inside the outline and over the art */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: max(0px, calc(var(--card-radius, 16px) - var(--card-line, 3px)));
}
.card--rare { --top: #d8eafd; --bottom: #acd0f7; }
.card--epic { --top: #e8ddfa; --bottom: #c9b3f0; }
.card--legendary { --top: #ffe4ad; --bottom: #f7c76e; }
.card--void { --top: #3a3450; --bottom: #221e36; }

.card__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tier .card, .cardcell .card, .void__card .card { transition: translate 0.25s ease, box-shadow 0.25s ease; }
.tier:hover .card, .cardcell:hover .card, .void__card:hover .card { translate: 0 -5px; box-shadow: 0 calc(var(--card-drop, 0px) + 5px) 0 var(--ink); }

/* the card back, where a rarity has no art yet: that rarity's soft colour, polka dots and the game's initial on a
   round paper badge */
.card__back {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1.3cqw, transparent 1.5cqw) 0 0 / 11cqw 11cqw,
    linear-gradient(180deg, var(--top), var(--bottom));
}
.card--void .card__back { /* night with a few stars */
  background:
    radial-gradient(circle at 21% 17%, rgba(255, 250, 240, 0.9) 0 0.6cqw, transparent 0.7cqw),
    radial-gradient(circle at 70% 11%, rgba(255, 250, 240, 0.7) 0 0.5cqw, transparent 0.6cqw),
    radial-gradient(circle at 84% 36%, rgba(255, 250, 240, 0.8) 0 0.6cqw, transparent 0.7cqw),
    radial-gradient(circle at 13% 52%, rgba(255, 250, 240, 0.55) 0 0.5cqw, transparent 0.6cqw),
    radial-gradient(circle at 62% 71%, rgba(255, 250, 240, 0.7) 0 0.5cqw, transparent 0.6cqw),
    radial-gradient(circle at 33% 80%, rgba(255, 250, 240, 0.5) 0 0.45cqw, transparent 0.55cqw),
    linear-gradient(180deg, var(--top), var(--bottom));
}
.card__emblem {
  position: absolute; left: 50%; top: 43%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 38cqw; aspect-ratio: 1; border-radius: 50%;
  border: max(1.5px, 1.2cqw) solid var(--ink); background: var(--paper);
  font: 600 21cqw/1 var(--sans); color: var(--ink);
}
/* the name on a dark round label at the foot of the card (a white picture behind it would still leave 10:1) */
.card__line {
  position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 3.4cqw 5cqw 3.4cqw 6.5cqw;
  border-radius: 999px;
  background: rgba(61, 43, 38, 0.92);
  font: 500 clamp(12px, 6.4cqw, 15px)/1.2 var(--sans); letter-spacing: 0.01em; color: var(--paper);
}
.card__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__line .mark { width: clamp(8px, 4.6cqw, 11px); height: clamp(8px, 4.6cqw, 11px); box-shadow: 0 0 0 1.5px var(--paper); }
@container (max-width: 118px) { .card__line { display: none; } }

/* every rarity above Common has a band of its own colour inside the outline, and on a card wide enough its name on a
   paper tag: a card's rarity is plain at a glance, on any picture */
.card--rare::after { box-shadow: inset 0 0 0 max(2.5px, 2.1cqw) var(--rare), inset 0 0 0 calc(max(2.5px, 2.1cqw) + 1.5px) rgba(var(--ink-rgb), 0.6); }
.card--epic::after { box-shadow: inset 0 0 0 max(2.5px, 2.1cqw) var(--epic), inset 0 0 0 calc(max(2.5px, 2.1cqw) + 1.5px) rgba(var(--ink-rgb), 0.6); }
.card--void::after { box-shadow: inset 0 0 0 max(2.5px, 2.1cqw) var(--void), inset 0 0 0 calc(max(2.5px, 2.1cqw) + 1.5px) rgba(255, 250, 240, 0.7); }
/* Legendary: a band of warm gold (a gradient cut to a ring) and a fine line inside it */
.card--legendary::after {
  padding: max(2.5px, 2.4cqw);
  background: linear-gradient(140deg, #ffe7a6 0%, #f0a930 30%, #ffe2a0 52%, #e8982a 76%, #ffd884 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.card--legendary::before {
  content: ''; position: absolute; z-index: 1; inset: max(2.5px, 2.4cqw); pointer-events: none;
  border: 1.5px solid rgba(var(--ink-rgb), 0.6); border-radius: calc(var(--card-radius, 16px) * 0.62);
}
.card__tag {
  position: absolute; z-index: 2; left: 6cqw; top: 6cqw; display: none; align-items: center; gap: 7px;
  padding: 6px 10px 6px 8px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink);
  font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.card__tag .mark { width: 8px; height: 8px; }
.card--legendary .card__tag { left: 7.5cqw; top: 7.5cqw; }
@container (min-width: 140px) {
  .card__tag { display: inline-flex; }
  .card__line--same { display: none; }
}
@container (max-width: 118px) { .card--legendary::before { display: none; } }

/* ---- the demo label */
.demo-bar { position: sticky; top: 0; z-index: 45; border-bottom: 2px dashed rgba(var(--ink-rgb), 0.3); background: #fff4cf; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.demo-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 0; }
.demo-bar__states { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; }
.demo-bar__states a { color: var(--text-2); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.demo-bar__states a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
.demo-bar__label { flex: none; padding: 5px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--raise); color: var(--text); font: 600 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
:lang(zh) .demo-bar__label { font-size: 13px; letter-spacing: 0.06em; }

/* ---- header */
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 600 29px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand::before { content: ''; flex: none; width: 20px; height: 20px; background: var(--sparkle) center / contain no-repeat; }
.nav { display: flex; gap: 30px; margin: 0 auto 0 44px; }
.nav a { font: 500 15px/1 var(--sans); color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--buy-deep); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.head__right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--raise); }
.lang a { display: grid; place-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: var(--text-2); text-decoration: none; }
.lang a[aria-current] { background: var(--aqua); color: var(--text); font-weight: 600; }
.connect { position: relative; }
.connect .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn--on { font-family: var(--mono); font-weight: 500; }
.menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 220px; padding: 12px; border: var(--stroke) solid var(--ink); border-radius: 18px; background: var(--panel); box-shadow: var(--drop); display: grid; gap: 4px; }
.menu .label { margin-bottom: 6px; }
.menu__item { appearance: none; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 500 15px/1.2 var(--sans); cursor: pointer; }
.menu__item:hover { background: var(--aqua-soft); }

/* ---- 1. the top */
.top { position: relative; padding: 4px 0 0; }
.top:has(> .strip[hidden]) { padding-bottom: 72px; }
.top::before { /* soft watercolour spots behind the cards; they carry no information */
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -76px 0 auto 0; height: 820px;
  background:
    radial-gradient(34% 44% at 76% 34%, rgba(169, 234, 227, 0.5), rgba(169, 234, 227, 0) 70%),
    radial-gradient(22% 28% at 92% 62%, rgba(255, 213, 106, 0.22), rgba(255, 213, 106, 0) 70%),
    radial-gradient(20% 26% at 58% 64%, rgba(247, 193, 191, 0.25), rgba(247, 193, 191, 0) 70%);
}
.top__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; align-items: center; min-height: 500px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--raise); font: 600 14px/1 var(--sans); }
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--aqua-2); box-shadow: 0 0 0 1.5px var(--ink); }
.pill--off .pill__dot { background: transparent; }
.pill--demo { border-style: dashed; }
.top__name {
  margin-top: 22px; font: 600 clamp(84px, 11vw, 160px)/0.92 var(--sans); letter-spacing: -0.02em; color: var(--ink);
  text-shadow: 0.035em 0.04em 0 var(--buy); /* a yellow print under the ink, like a sticker */
}
.top__season { margin-top: 22px; font: 600 15px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
:lang(zh) .top__season { letter-spacing: 0.03em; }
.top__sentence { margin-top: 14px; max-width: 34ch; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--text-2); }
:lang(zh) .top__sentence { max-width: 22em; line-height: 1.6; }
.top__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* three plain facts under the buttons, each with a small tick in a sea-coloured circle */
.top__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; font-size: 15px; color: var(--text-2); }
.top__facts li { display: inline-flex; align-items: center; gap: 9px; }
.top__facts li::before {
  content: ''; flex: none; width: 19px; height: 19px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink);
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%234a3530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.top__cards { position: relative; height: 470px; --card-radius: 20px; --card-line: 3.5px; --card-drop: 7px; --mx: 0; --my: 0; }
.top__cards .card {
  position: absolute; left: 50%; top: 50%; width: 236px;
  /* the cards lean towards the pointer (app.mjs sets --mx and --my, -1 to 1), the middle one a little more */
  translate: calc(var(--mx) * var(--lean, 9px)) calc(var(--my) * var(--lean, 9px));
  transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.3s ease;
}
.top__cards .card:hover { scale: 1.03; }
.top__cards::before { /* two sparkles over the cards */
  content: ''; position: absolute; inset: -10px -14px; pointer-events: none;
  background: var(--sparkle) 2% 9% / 30px 30px no-repeat, var(--sparkle) 96% 4% / 22px 22px no-repeat;
}
.top__cards::after { /* the water the cards stand in: a soft sea-coloured pool */
  content: ''; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: 6px; height: 56px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(116, 211, 200, 0.55), rgba(116, 211, 200, 0) 72%);
}

.top__card--0 { transform: translate(-122%, -46%) rotate(-7deg); }
.top__card--1 { z-index: 2; width: 264px !important; transform: translate(-50%, -52%); --lean: 16px; }
.top__card--2 { transform: translate(22%, -46%) rotate(7deg); }
/* the right card lies under the middle one on its left: its tag and name go to its right side, where they show */
.top__card--2 .card__tag { left: auto; right: 6cqw; }
.top__card--2 .card__line { left: auto; }

/* the numbers: a paper tile each, the pot's on a blush */
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr 2.05fr; gap: 14px; margin-top: 14px; }
.stat { min-width: 0; padding: 22px 24px 20px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.stat__value { margin-top: 10px; font: 600 clamp(30px, 2.8vw, 40px)/1.1 var(--sans); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.stat__sub { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.stat__link { color: var(--text); font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--line-2); text-decoration-thickness: 2px; }
.stat__link::after { content: ' \2197'; }
.stat__link:hover { text-decoration-color: var(--ink); }
.stat--pot { display: grid; grid-template-columns: auto auto; grid-template-areas: 'amount clock' 'meter meter' 'line line'; justify-content: space-between; column-gap: 24px; background: var(--blush-soft); }
.pot__amount { grid-area: amount; }
.pot__clock { grid-area: clock; text-align: right; }
.pot__line { grid-area: line; }
.pot__last, .pot__rule { display: block; }
.pot__last { color: var(--text); font-weight: 500; }
.pot__meter { grid-area: meter; margin-top: 14px; height: 12px; }
.pot__meter .meter__fill { background: var(--aqua-2); transition: width 1s linear; }
.notice { margin-top: 20px; padding: 14px 20px; border: var(--stroke) solid var(--ink); border-radius: 16px; background: var(--blush-soft); font-size: 16.5px; color: var(--text); }

/* the opening: while it runs the token can't be bought or sold on PancakeSwap. When it ends, by time or by cards,
   with the nearer of the two tagged; the plain rules under it. On the sea's colour: nothing here is bought */
.trade {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 48px; align-items: center;
  margin-top: 16px; padding: 24px 28px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--aqua-soft); box-shadow: var(--drop);
}
.trade--wide { grid-template-columns: minmax(0, 1fr); }
.trade--wide .trade__when { max-width: 62ch; }
.trade__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.trade__state { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--raise); font: 600 13.5px/1.2 var(--sans); color: var(--text); }
.trade__state::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua-2); box-shadow: 0 0 0 1.5px var(--ink); }
.trade__when { margin-top: 14px; max-width: 44ch; font: 600 clamp(19px, 1.7vw, 22px)/1.4 var(--sans); letter-spacing: -0.005em; color: var(--ink); }
.trade__notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.trade__notes li { position: relative; padding-left: 20px; }
.trade__notes li::before { content: ''; position: absolute; left: 1px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-2); box-shadow: 0 0 0 1.5px var(--ink); }
.trade__meters { display: grid; gap: 22px; }
.trade__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; }
.trade__what { font-size: 14.5px; color: var(--text-2); }
.trade__tag { display: none; margin-left: 4px; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--aqua); font: 600 12px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); vertical-align: 1px; white-space: nowrap; }
:lang(zh) .trade__tag { font-size: 12px; letter-spacing: 0.04em; }
.trade__row.is-nearer .trade__tag { display: inline-block; }
.trade__left { font: 600 19px/1.3 var(--sans); color: var(--ink); text-align: right; white-space: nowrap; }
.trade__meter { grid-column: 1 / -1; margin-top: 10px; background: var(--raise); }
.trade__row.is-nearer .meter__fill { background: var(--aqua-2); }
/* only the time ends the opening (a card limit of 100,000 or more): its row leads, with no "Nearer" tag */
.trade--time .trade__row.is-nearer .trade__tag { display: none; }

/* the price chart, under the numbers: an ink line over a yellow wash; its words are in the text colours */
.chartbox { margin-top: 16px; padding: 22px 28px 14px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.chartbox__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.seg { display: inline-flex; flex: none; padding: 3px; border: var(--stroke) solid var(--ink); border-radius: 999px; white-space: nowrap; }
.seg__btn { appearance: none; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 500 13.5px/1 var(--sans); cursor: pointer; }
.seg__btn[aria-pressed="true"] { background: var(--aqua); color: var(--text); font-weight: 600; }
.chart { position: relative; margin-top: 8px; outline-offset: 6px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart__grid { stroke: rgba(var(--ink-rgb), 0.12); stroke-width: 1; }
.chart__grid--launch { stroke: rgba(var(--ink-rgb), 0.35); stroke-dasharray: 3 5; }
.chart__tick, .chart__time { fill: var(--text-3); font: 500 12.5px/1 var(--sans); }
.chart__tick { paint-order: stroke; stroke: var(--raise); stroke-width: 5px; stroke-linejoin: round; } /* a paper halo where a label meets the line */
.chart__area { fill: var(--buy); opacity: 0.45; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--buy); stroke: var(--ink); stroke-width: 2; }
.chart__end { fill: var(--text); font: 600 14.5px/1 var(--sans); }
.chart__cross { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 4; }
.chart__tip { position: absolute; z-index: 3; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--panel); box-shadow: 0 3px 0 var(--ink); pointer-events: none; white-space: nowrap; font-size: 13px; line-height: 1.3; color: var(--text-2); }
.chart__tip strong { display: block; font: 600 15px/1.25 var(--sans); color: var(--text); }
.chart__empty { padding: 30px 0 34px; font-size: 15.5px; color: var(--text-2); }

/* the art, passing by along the sea: every picture twice, so the loop has no seam */
.strip {
  margin-top: 56px; padding: 6px 0 46px; overflow: hidden; --card-radius: 14px; --card-line: 2.5px; --card-drop: 4px;
  background: var(--sea) left bottom / 480px 120px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track { display: flex; width: max-content; animation: pass var(--strip-seconds, 100s) linear infinite; }
.strip__track .card { flex: none; width: 132px; margin-right: 16px; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes pass { to { transform: translateX(-50%); } }

/* ---- sections: a hand-drawn wavy rule between them */
.section { padding: 104px 0; background: var(--wave) center top / 120px 12px repeat-x; }
.top + .section { background: none; } /* the sea already closes the top */

/* ---- 2. play with your agent */
.paste {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
  margin-top: 34px; padding: 28px 30px;
  border: 2.5px solid var(--ink); border-radius: 26px; background: var(--panel); box-shadow: 0 5px 0 var(--ink);
}
.paste__text { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.paste__copy { height: 54px; padding: 0 32px; font-size: 17px; }
.paste--off { border-style: dashed; box-shadow: none; }
.paste--off .paste__text { color: var(--text-2); }
.note { margin-top: 18px; max-width: 84ch; font-size: 15.5px; color: var(--text-2); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.panel { min-width: 0; padding: 28px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.panel__text { margin: 8px 0 18px; font-size: 15.5px; color: var(--text-2); }
/* the invite link on one line, then two equal buttons */
.linkout { display: block; height: 46px; margin-top: 10px; padding: 0 16px; border: var(--stroke) dashed var(--line-2); border-radius: 14px; background: var(--well); font-size: 14px; line-height: 42px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
a.btn { text-decoration: none; }

.wallet { display: grid; gap: 14px; }
.wallet__line { font-size: 15.5px; color: var(--text-2); }
.wallet > .btn { justify-self: start; }
.buyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding-top: 16px; border-top: var(--stroke) dashed var(--line); }
.buyrow__name { font-weight: 600; }
.buyrow__sub { font-size: 14.5px; color: var(--text-2); }
.buyrow > .btn:last-child { grid-column: -2 / -1; }
.stepper { display: inline-flex; align-items: center; height: 46px; padding: 0 3px; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--well); }
.stepper__btn, .stepper__btn:hover, .stepper__btn:active { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; box-shadow: none; translate: none; font-size: 19px; font-weight: 600; }
.stepper__btn { background: transparent; }
.stepper__btn:hover { background: var(--aqua-soft); }
.stepper__btn:disabled { background: transparent; }
.stepper__n { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* the free card, in the opening only: what it is and its three steps (round number badges) beside the form, the
   server's answer under the form. On a pale yellow, as a gift; the mint and copy buttons wear the accent: they claim
   the card */
.free {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: start;
  margin-top: 44px; padding: 30px 32px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: #fff7df; box-shadow: var(--drop);
}
.free__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.free__left { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font: 600 13.5px/1.2 var(--sans); color: var(--text); }
.free__left::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.free__left.is-open::before { background: var(--due); box-shadow: 0 0 0 1.5px var(--ink); }
.free__title { margin-top: 16px; font: 600 32px/1.15 var(--sans); color: var(--ink); }
:lang(zh) .free__title { font: 600 24px/1.35 var(--sans); }
.free__text { margin-top: 12px; max-width: 54ch; font-size: 15.5px; color: var(--text-2); }
.free__steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; color: var(--text); }
.free__steps li { counter-increment: step; position: relative; min-height: 28px; padding-left: 40px; }
.free__steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px;
  border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--aqua); font: 600 13.5px/1 var(--sans); color: var(--ink);
}
.free__main > .btn { margin-top: 22px; }
.free__form { display: grid; gap: 8px; min-width: 0; }
.free__form .label { margin-top: 12px; }
.free__form .label:first-child { margin-top: 0; }
.free__form > .btn { justify-self: start; margin-top: 12px; }
.free__msg { margin-top: 6px; font-size: 15.5px; color: var(--text); }
.free__result { display: grid; gap: 12px; margin-top: 10px; padding-top: 18px; border-top: var(--stroke) dashed var(--line-2); }
.free__result > .btn { justify-self: start; }
.free__ok { font-size: 15.5px; color: var(--text); }
.free__paste { display: grid; gap: 14px; padding: 16px 18px; border: var(--stroke) solid var(--ink); border-radius: 16px; background: var(--panel); }
.free__pastetext { font: 400 13px/1.6 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.free__paste .btn { justify-self: start; }
.free__gone { align-self: center; font: 600 clamp(19px, 1.7vw, 22px)/1.4 var(--sans); color: var(--ink); }

/* ---- 3. how it works: four paper tiles, each with a round number badge */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { padding: 24px 22px 24px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--aqua); font: 600 22px/1 var(--sans); color: var(--ink); }
.step:nth-child(2) .step__n { background: #ffe3a3; }
.step:nth-child(3) .step__n { background: #f9cfcb; }
.step:nth-child(4) .step__n { background: #d9cdf6; }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
.step .chip { display: inline-block; margin-top: 16px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font: 600 13.5px/1.2 var(--sans); color: var(--text); }

/* where a card's BNB goes: a row for each share, each a bar against the whole price. The share that buys the
   token wears the accent; the others are a quiet sand */
.split { margin-top: 56px; padding: 28px 30px 24px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.split__rows { list-style: none; margin: 16px 0 0; padding: 0; }
.split__row { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 150px; align-items: center; gap: 24px; padding: 13px 0; border-top: var(--stroke) dashed var(--line); }
.split__name { font-size: 16.5px; color: var(--text); }
.split__meter { height: 14px; }
.split__row--pool .split__meter { background: rgba(var(--due-rgb), 0.25); }
.split__row--pool .meter__fill { background: var(--due); }
.split__value { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; font: 600 18px/1.2 var(--sans); color: var(--ink); }
.split__bnb { font: 400 13px/1.2 var(--mono); color: var(--text-2); white-space: nowrap; }
.split__note { margin-top: 16px; }

/* ---- 4. the cards */
.rarity { margin-top: 44px; }
/* the chances as one bar of round beads: a bead for each rarity, as wide as its chance */
.odds { display: flex; gap: 5px; height: 16px; margin-bottom: 32px; }
.odds__seg { flex: 1 1 0; min-width: 16px; border-radius: 999px; background: var(--common); box-shadow: inset 0 0 0 1.5px var(--ink); transition: filter 0.15s; }
.odds__seg::before { content: ''; position: absolute; inset: -12px 0; } /* easier to point at */
.odds__seg:last-child::before { left: -14px; }
.odds__seg:last-child::after { left: auto; right: 0; translate: none; } /* the label of the last one stays inside the page */
.odds__seg--rare { background: var(--rare); }
.odds__seg--epic { background: var(--epic); }
.odds__seg--legendary { background: var(--legendary); }
.odds__seg:hover, .odds__seg:focus-visible { filter: brightness(1.08) saturate(1.1); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; --card-radius: 18px; --card-drop: 6px; }
.tier { min-width: 0; }
.tier__head { display: flex; align-items: center; gap: 10px; margin-top: 20px; font: 600 19px/1.3 var(--sans); }
.tier__facts { margin: 12px 0 0; padding-top: 12px; border-top: var(--stroke) dashed var(--line-2); display: grid; gap: 10px; }
/* a narrow tile puts the number under its label, still on the right */
.tier__fact { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.tier__fact dd { margin: 0 0 0 auto; font: 600 20px/1.1 var(--sans); color: var(--ink); white-space: nowrap; }
.rarity > .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; margin-top: 40px; padding-top: 28px; border-top: var(--stroke) dashed var(--line); }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 14px 0 14px 16px; border-bottom: var(--stroke) dashed var(--line); text-align: left; font-size: 17px; font-weight: 400; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table thead th { padding-top: 0; padding-bottom: 12px; font: 600 12.5px/1.35 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border-bottom: var(--stroke) solid var(--ink); white-space: normal; vertical-align: bottom; }
:lang(zh) .table thead th { font-size: 13px; letter-spacing: 0.04em; }
.table tbody th { font-weight: 500; }
.table tbody th .mark { margin-right: 12px; }
.table .num { text-align: right; }
.table--plain [data-live] { display: none; }

.notes, .rules { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; color: var(--text-2); }
.notes li, .rules li { position: relative; padding-left: 22px; }
.notes li::before, .rules li::before { content: ''; position: absolute; left: 1px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 1.5px var(--ink); }
.rules { margin-top: 18px; font-size: 16px; }
.rules .rules__strong { color: var(--text); font-weight: 600; }

.void { display: grid; grid-template-columns: 196px minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 72px; padding-top: 64px; background: var(--wave) center top / 120px 12px repeat-x; --card-radius: 16px; --card-drop: 6px; }
.void h3 { font: 600 32px/1.15 var(--sans); color: var(--ink); }
:lang(zh) .void h3 { font: 600 26px/1.25 var(--sans); }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 14px 18px; border: var(--stroke) solid var(--ink); border-radius: 16px; background: var(--raise); }
.slot__state { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.slot__state::before { content: ''; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); }
.slot--open .slot__state::before { background: var(--due); box-shadow: 0 0 0 1.5px var(--ink); }
.prices { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: 14.5px; color: var(--text-2); }

/* ---- 5. recent openings */
.openings { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(9, auto); grid-auto-flow: column; column-gap: 64px; }
.opening { display: grid; grid-template-columns: 34px minmax(0, 1.15fr) minmax(0, 1.15fr) 104px 84px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: var(--stroke) dashed var(--line); font-size: 15.5px; }
.opening--head { padding: 0 0 12px; border-bottom: var(--stroke) solid var(--ink); }
.opening--head .label:last-child { text-align: right; }
.opening__amount .unit { display: none; }
.opening__thumb { --card-radius: 7px; --card-line: 1.5px; }
.opening__what { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 500; }
.opening__mult { font-weight: 400; color: var(--text-2); font-variant-numeric: tabular-nums; }
.opening__amount { min-width: 0; font-variant-numeric: tabular-nums; }
.opening__parts { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.opening__who { font: 400 13px/1.3 var(--mono); color: var(--text-2); }
.opening__when { text-align: right; font-size: 14.5px; color: var(--text-2); white-space: nowrap; }

/* ---- 6. my cards */
.mine__group { margin-top: 44px; }
.mine__group > h3 { margin-bottom: 18px; }
.voidlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.voidrow { display: grid; grid-template-columns: 88px minmax(0, 1.25fr) minmax(0, 0.95fr) 212px; align-items: center; gap: 32px; padding: 22px 26px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); }
.voidrow__thumb { --card-radius: 10px; --card-line: 2px; }
.voidrow__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.voidrow__id { font: 400 14px/1 var(--mono); color: var(--text-2); }
.voidrow__total { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.parts { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; max-width: 340px; margin: 14px 0 8px; }
.part { display: block; height: 11px; border-radius: 4px; background: #f2ead7; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.45); }
.part--paid { background: var(--ink); box-shadow: none; }
.part--due { background: var(--due); box-shadow: inset 0 0 0 1.5px var(--ink); }
.voidrow__paid, .voidrow__extended { font-size: 14.5px; color: var(--text-2); }
.voidrow__amount { margin-top: 6px; font: 600 26px/1.15 var(--sans); letter-spacing: -0.015em; color: var(--ink); }
.voidrow__amount .unit { font-size: 13px; }
/* what is yours to claim: ink on a stroke of the accent, like a highlighter (yellow letters wouldn't read on paper) */
.voidrow__amount--due { justify-self: start; width: fit-content; padding: 0 4px; background: linear-gradient(transparent 50%, rgba(var(--due-rgb), 0.85) 50%, rgba(var(--due-rgb), 0.85) 92%, transparent 92%); }
.voidrow__next, .voidrow__done { margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.voidrow__actions { display: grid; gap: 10px; }
.mine__group > .hint { margin-top: 14px; }

.cardgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; --card-drop: 5px; }
.cardcell__what { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 15.5px; font-weight: 500; }
.cardcell__got { margin-top: 2px; font-size: 14.5px; color: var(--text-2); }
.mine__more { margin-top: 28px; }

/* ---- the home page's past seasons: a row each, its name and token, its dates, a link to its page */
.seasonlist { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.seasonrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 28px; padding: 18px 22px; border: var(--stroke) solid var(--ink); border-radius: 18px; background: var(--raise); box-shadow: var(--drop); }
.seasonrow__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 600 18px/1.3 var(--sans); }
.seasonrow__ticker { font: 500 14px/1.3 var(--mono); color: var(--text-2); }
.seasonrow__when { font-size: 14.5px; color: var(--text-2); white-space: nowrap; }
#seasons .empty { max-width: 64ch; }

/* ---- 7. contracts and plain facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; margin-top: 44px; }
.addresses { margin: 0; }
.addresses dt { margin-bottom: 8px; }
.addresses dd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin: 0 0 18px; padding-bottom: 18px; border-bottom: var(--stroke) dashed var(--line); }
.addresses code { font-size: 14px; overflow-wrap: anywhere; }
.addresses__tools { display: inline-flex; gap: 16px; }
.facts__addresses .empty { margin-top: 0; }
.factlist { list-style: none; margin: 0; padding: 22px 26px; display: grid; gap: 18px; border: var(--stroke) solid var(--ink); border-radius: var(--r); background: var(--raise); box-shadow: var(--drop); font-size: 17px; line-height: 1.55; align-self: start; }
.factlist li { position: relative; padding-left: 32px; }
.factlist li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink);
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%234a3530' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---- footer, toast */
.foot { padding: 34px 0 96px; background: var(--wave) center top / 120px 12px repeat-x; font-size: 14.5px; color: var(--text-2); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--line-2); text-decoration-thickness: 2px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; translate: -50% 0; width: max-content; max-width: min(560px, 100% - 32px); padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15.5px; box-shadow: 0 4px 0 rgba(var(--ink-rgb), 0.35); }

/* ---- narrower screens */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat--pot { grid-column: 1 / -1; }
  .nav { display: none; }
  .tiers { gap: 20px; }
  .tier__fact dd { font-size: 17px; }
  .steps { gap: 16px; }
  .rarity > .notes { grid-template-columns: minmax(0, 1fr); }
  .void { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
  .void__side { grid-column: 1 / -1; }
  .voidrow { grid-template-columns: 88px minmax(0, 1fr) minmax(0, 0.8fr); }
  .voidrow__actions { grid-column: 2 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cardgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .openings { column-gap: 40px; }
  .opening { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 84px; }
  .opening > :nth-child(4) { display: none; } /* the buyer */
}

@media (max-width: 860px) {
  .trade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .free { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .top__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
  .top__cards { height: 330px; }
  .top__cards .card { width: 160px; }
  .top__card--1 { width: 180px !important; }
  .duo, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts { gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .split__meter { grid-column: 1 / -1; grid-row: 2; }
  .openings { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .opening--more, .opening--head ~ .opening--head { display: none; }
}

/* four rarity tiles in a row hold down to here; narrower, two rows of two */
@media (max-width: 720px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --r: 20px; }
  .head__in { height: 62px; }
  .brand { font-size: 25px; gap: 7px; }
  .brand::before { width: 17px; height: 17px; }
  .head__right { gap: 8px; }
  .lang a { height: 30px; padding: 0 9px; }
  .connect .btn { height: 38px; padding: 0 12px; font-size: 13.5px; }

  .top { padding: 2px 0 0; }
  .top:has(> .strip[hidden]) { padding-bottom: 48px; }
  .top__cta { margin-top: 26px; }
  .top__facts { margin-top: 22px; gap: 8px 18px; font-size: 14.5px; }
  .chartbox { padding: 16px 16px 10px; }
  .trade { padding: 18px; gap: 20px; }
  .trade__when { margin-top: 12px; font-size: 18px; }
  .trade__notes { font-size: 14.5px; }
  .trade__meters { gap: 18px; }
  /* a row in three lines: what and the tag, what is left, the bar (side by side the tag would wrap on its own) */
  .trade__row { grid-template-columns: minmax(0, 1fr); }
  .trade__left { margin-top: 2px; font-size: 17px; text-align: left; }
  .top__cta .btn { flex: 1 1 auto; }
  .strip { margin-top: 40px; padding-bottom: 34px; --card-radius: 11px; --card-line: 2px; --card-drop: 3px; background-size: 360px 90px; }
  .strip__track .card { width: 104px; margin-right: 12px; }
  .split { margin-top: 40px; padding: 22px 18px 16px; }
  .tiers { gap: 28px 14px; --card-radius: 14px; --card-drop: 5px; }
  .tier__head { margin-top: 16px; font-size: 17.5px; }
  .odds { margin-bottom: 26px; }
  .top__name { margin-top: 20px; font-size: 84px; }
  .top__sentence { margin-top: 12px; font-size: 18px; }
  .top__cards { height: 272px; margin-top: 6px; --card-radius: 14px; --card-line: 2.5px; --card-drop: 5px; }
  .top__cards .card { width: 128px; }
  .top__card--1 { width: 146px !important; }
  .top__cards::before { inset: -6px 0; background-size: 22px 22px, 16px 16px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { padding: 14px 18px; box-shadow: 0 3px 0 var(--ink); }
  .stat:not(.stat--pot) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label value' 'sub value'; align-items: center; column-gap: 14px; }
  .stat:not(.stat--pot) > .label { grid-area: label; align-self: end; }
  .stat:not(.stat--pot) > .stat__value { grid-area: value; margin-top: 0; font-size: 29px; }
  .stat:not(.stat--pot) > .stat__sub { grid-area: sub; align-self: start; margin-top: 4px; }
  .stat--pot { padding: 18px; }
  .stat--pot .stat__value { margin-top: 8px; font-size: 31px; }
  .stat--pot > .stat__sub { margin-top: 12px; }

  .section { padding: 72px 0; }
  h2::after { width: 84px; height: 12px; margin-top: 10px; background-size: 84px 12px; }
  .lead { font-size: 17.5px; }
  .paste { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; padding: 22px 20px; border-radius: 22px; }
  .paste__copy { width: 100%; }
  .duo { margin-top: 32px; gap: 18px; }
  .panel { padding: 22px 18px; }
  .field { flex-wrap: wrap; }
  .field .input { flex-basis: 100%; }
  .field .btn { flex: 1 1 0; }
  .buyrow { grid-template-columns: auto minmax(0, 1fr); }
  .buyrow__what { grid-column: 1 / -1; }
  .buyrow > .btn:last-child { grid-column: auto / -1; }
  .buyrow > .btn:only-of-type:not(.stepper + .btn) { grid-column: 1 / -1; }
  .free { margin-top: 32px; padding: 22px 18px; }
  .free__title { font-size: 28px; }
  .free__main > .btn, .free__form > .btn, .free__result > .btn, .free__paste .btn { justify-self: stretch; width: 100%; }
  .free__paste { padding: 14px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 34px; }
  .step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .step__n { grid-row: 1 / span 3; }
  .step h3 { margin-top: 9px; }
  .step p, .step .chip { grid-column: 2; }
  .step .chip { justify-self: start; }

  .rarity { margin-top: 34px; }
  .table th, .table td { font-size: 16px; padding: 13px 0 13px 12px; }
  .void { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; padding-top: 48px; }
  .void__card { width: 150px; }

  .opening { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 2px; padding: 11px 0; }
  .opening--head { display: none; }
  .opening__thumb { grid-row: 1 / span 2; }
  .opening__amount { grid-column: 2; grid-row: 2; font-size: 14.5px; color: var(--text-2); }
  .opening__amount .unit { display: inline; font-size: 12px; }
  .opening > :nth-child(4) { display: block; grid-column: 3; grid-row: 2; text-align: right; }
  .opening__when { grid-column: 3; grid-row: 1; }

  .field--wide { margin-top: 26px; }
  .voidrow { grid-template-columns: 72px minmax(0, 1fr); gap: 16px 18px; padding: 18px 16px; align-items: start; }
  .voidrow__claim { grid-column: 1 / -1; padding-top: 14px; border-top: var(--stroke) dashed var(--line); }
  .voidrow__actions { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }

  .facts { margin-top: 34px; }
  .factlist { padding: 18px; font-size: 16px; gap: 14px; }
  .factlist li { padding-left: 30px; }
  .seasonrow { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .seasonrow .btn { justify-self: start; }
  .top__season { margin-top: 18px; font-size: 14px; }
  .demo-bar { font-size: 13px; }
  .demo-bar__in { gap: 12px; }
}

/* the three cards at the top arrive spread from the middle one */
@keyframes arrive { from { opacity: 0; transform: translate(-50%, -48%) rotate(0deg) scale(0.94); } }

@media (prefers-reduced-motion: no-preference) {
  html.ready .top__cards .card { animation: arrive 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  html.ready .top__card--0 { animation-delay: 0.12s; }
  html.ready .top__card--2 { animation-delay: 0.2s; }
  /* each block of a section comes up a little as it scrolls into view. The browser drives it from the scroll
     position itself: where that isn't built in, the blocks simply stand where they are */
  @supports (animation-timeline: view()) {
    .section .wrap > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 34%; }
    @keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a, .card, .odds__seg, .pot__meter .meter__fill { transition: none !important; }
  /* the strip stands still, and can be scrolled by hand */
  .strip { overflow-x: auto; }
  .strip__track { animation: none; }
}
