/* TripTrick - shared styles. Paper, black typography and three coin colors: lime, magenta, cyan. */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f0e6;
  --bg-2: #ebe5d6;
  --card: #fffdf7;
  --ink: #16140f;
  --ink-2: #3a362d;
  --muted: #736c5e;
  --line: #ddd5c3;
  --line-2: #cfc5ae;
  /* the three coins (fills, always with dark text on top) */
  --lime: #c6f432;
  --magenta: #ff3da5;
  --cyan: #2bd9fe;
  /* the same hues dark enough for text on paper */
  --lime-ink: #557000;
  --magenta-ink: #c20f72;
  --cyan-ink: #00779a;
  --hi: var(--lime);
  --accent: var(--magenta-ink);
  --good: #11a86b;
  --warn: #c76a00;
  --bad: #d43a2f;
  --shadow: 0 1px 0 rgba(22, 20, 15, 0.06), 0 12px 32px -18px rgba(22, 20, 15, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11100d;
    --bg-2: #18160f;
    --card: #1c1a15;
    --ink: #f4f0e6;
    --ink-2: #d9d2c2;
    --muted: #9c9483;
    --line: #2e2a21;
    --line-2: #3d382c;
    --lime-ink: var(--lime);
    --magenta-ink: #ff6fbd;
    --cyan-ink: var(--cyan);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11100d;
  --bg-2: #18160f;
  --card: #1c1a15;
  --ink: #f4f0e6;
  --ink-2: #d9d2c2;
  --muted: #9c9483;
  --line: #2e2a21;
  --line-2: #3d382c;
  --lime-ink: var(--lime);
  --magenta-ink: #ff6fbd;
  --cyan-ink: var(--cyan);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* paper grain: three dot grids with prime periods read as irregular grain (no images) */
  --g1: rgba(22, 20, 15, 0.08);
  --g2: rgba(22, 20, 15, 0.07);
  --g3: rgba(255, 255, 255, 0.5);
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: radial-gradient(var(--g1) 1px, transparent 1px), radial-gradient(var(--g2) 0.8px, transparent 1.3px), radial-gradient(var(--g3) 0.7px, transparent 1.2px);
  background-size: 3px 3px, 7px 7px, 11px 11px;
  background-position: 0 0, 1px 3px, 5px 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body::before { --g1: rgba(255, 255, 255, 0.04); --g2: rgba(255, 255, 255, 0.05); --g3: rgba(0, 0, 0, 0.35); }
}
:root[data-theme="dark"] body::before { --g1: rgba(255, 255, 255, 0.04); --g2: rgba(255, 255, 255, 0.05); --g3: rgba(0, 0, 0, 0.35); }
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #16140f; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c1 { --c: var(--lime); --ci: var(--lime-ink); }
.c2 { --c: var(--magenta); --ci: var(--magenta-ink); }
.c3 { --c: var(--cyan); --ci: var(--cyan-ink); }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 18px/1 var(--display); letter-spacing: 0.02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--magenta); }
.top .spacer { flex: 1; }
.net-badge {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  color: var(--muted);
}
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--b);
  background: var(--b);
  color: var(--bg);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.3, 1.8, 0.45, 1), box-shadow 0.2s ease, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--magenta); }
.btn:active { transform: translateY(2px) scale(0.95); box-shadow: none; transition-duration: 0.06s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.lime { --b: var(--lime); color: #16140f; border-color: #16140f; }
.btn.lime:hover { box-shadow: 0 6px 0 -2px var(--ink); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 6.6vw, 82px); }
h2 { font-size: clamp(28px, 4.2vw, 48px); }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--lime) 0 33%, var(--magenta) 33% 66%, var(--cyan) 66%); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 56ch; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--lime) 85%, transparent) 62%); padding: 0 0.08em; }

section { padding: clamp(56px, 9vw, 110px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head p { margin: 10px 0 0; max-width: 56ch; color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 span.line { display: block; }
.hero .lead { margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 60ch; }

/* three coins on three legs */
.stage { position: relative; aspect-ratio: 1 / 0.92; perspective: 900px; }
.tripod {
  position: absolute;
  inset: auto 4% 4% 4%;
  height: 80%;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: end;
  gap: 10px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.leg { display: flex; flex-direction: column; justify-content: end; height: 100%; gap: 34px; }
.pile {
  position: relative;
  border: 1.5px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
  background: repeating-linear-gradient(180deg, var(--c) 0 13px, color-mix(in srgb, var(--c) 62%, #16140f) 13px 15px);
  display: grid;
  place-items: center;
  font: 900 clamp(30px, 5.5vw, 58px)/1 var(--display);
  color: #16140f;
  box-shadow: 0 10px 0 -2px var(--ink);
}
.pile::before {
  /* top face of the stack */
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: -20px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: color-mix(in srgb, var(--c) 78%, #ffffff);
}
.pile span { position: relative; padding-top: 18px; }
.pile.p1 { height: 58%; min-height: 150px; }
.pile.p2 { height: 42%; min-height: 112px; }
.pile.p3 { height: 32%; min-height: 88px; }

.coin {
  --w: 124px;
  position: relative;
  width: var(--w);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 1.5px solid #16140f;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c) 45%, #ffffff), var(--c) 62%);
  box-shadow: 0 7px 0 0 color-mix(in srgb, var(--c) 55%, #16140f), 0 7px 0 1.5px #16140f, 0 22px 30px -16px rgba(0, 0, 0, 0.55);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: #16140f;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.coin::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(22, 20, 15, 0.45); z-index: -1; }
.coin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.6) 48%, transparent 58%);
  background-size: 260% 100%;
  background-position: var(--gx, 100%) 0;
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.coin .cl { font: 500 calc(var(--w) * 0.085)/1 var(--mono); letter-spacing: 0.08em; }
.coin .cs { font: 900 calc(var(--w) * 0.125)/1.05 var(--display); max-width: 84%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.02em; }
.coin .cs.long { font-size: calc(var(--w) * 0.088); }
.coin.sm { --w: 64px; box-shadow: 0 4px 0 0 color-mix(in srgb, var(--c) 55%, #16140f), 0 4px 0 1.5px #16140f; }
.coin.sm .cs { font-size: 22px; }
.float { animation: float 5s ease-in-out infinite; }
.float.d2 { animation-delay: -1.6s; }
.float.d3 { animation-delay: -3.1s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: -60% 0; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); overflow: hidden; }
.marquee .track { display: flex; width: max-content; padding: 12px 0; animation: marquee 44s linear infinite; font: 500 14px/1 var(--mono); will-change: transform; }
.marquee .track span { padding-right: 48px; flex: none; } /* padding, not gap: the two halves stay exactly equal, so the loop is seamless */
.marquee:hover .track { animation-play-state: paused; }
.marquee .track span b { font-weight: 500; color: var(--lime); }
.marquee .track span:nth-child(3n + 2) b { color: var(--magenta); }
.marquee .track span:nth-child(3n) b { color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .k { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stat .v { font: 700 clamp(20px, 2.4vw, 28px)/1.1 var(--display); margin-top: 10px; overflow-wrap: anywhere; }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat.countdown .v { color: var(--accent); }

/* ---------- this hour's top 3 ---------- */
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t3 { position: relative; display: grid; gap: 14px; padding: 0 0 18px; text-decoration: none; overflow: hidden; transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.15s, box-shadow 0.25s ease; }
a.t3:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--ink); box-shadow: 0 12px 0 -3px var(--c), 0 12px 0 -1.5px var(--ink), 0 26px 40px -22px rgba(0, 0, 0, 0.5); }
.t3 .band { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--c); color: #16140f; border-bottom: 1.5px solid var(--ink); font: 900 14px/1 var(--display); letter-spacing: 0.04em; }
.t3 .band b { font: 900 28px/1 var(--display); }
.t3 .tok { padding: 0 18px; }
.t3 .rows { display: grid; gap: 6px; padding: 0 18px; font-size: 14px; }
.t3 .rows div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 6px; }
.t3 .rows b { font: 500 14px/1.3 var(--mono); }
.t3.empty-slot { color: var(--muted); }
.t3-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- token race ---------- */
.race { display: grid; gap: 10px; }
.race-head, .race-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.2fr) 0.9fr minmax(180px, 2fr) 1fr 1fr 28px;
  gap: 16px;
  align-items: center;
}
.race-head { padding: 0 18px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.race-row { padding: 14px 18px; text-decoration: none; transition: transform 0.12s, border-color 0.12s; }
.race-row:hover { transform: translateX(3px); border-color: var(--ink); }
.c-fund { font: 500 13px/1.3 var(--mono); }
.c-fund small { display: block; color: var(--muted); font-size: 11px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tok img, .tok .ph { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--ink); object-fit: cover; flex: none; background: var(--bg-2); }
.tok .ph { display: grid; place-items: center; font: 900 16px/1 var(--display); }
.tok > div { min-width: 0; }
.tok .n { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tok .t { font: 500 12px/1.2 var(--mono); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.chip.curve::before, .chip.amm::before, .chip.hot::before, .chip.main::before, .chip.top::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.curve { color: var(--warn); }
.chip.amm { color: var(--good); }
.chip.hot { color: var(--accent); border-color: currentColor; }
.chip.main { color: var(--lime-ink); border-color: currentColor; }
.chip.top { color: var(--cyan-ink); border-color: currentColor; }
.chip.ok { color: var(--good); border-color: currentColor; }
.meter { position: relative; height: 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--bg-2); overflow: hidden; }
.meter > i { --s1: var(--lime); --s2: #e1ff7a; position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; background: repeating-linear-gradient(-45deg, var(--s1) 0 8px, var(--s2) 8px 16px); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter.full > i { --s1: var(--good); --s2: #3fd394; }
.meter-label { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/1 var(--mono); color: var(--muted); margin-top: 6px; }
.go { font: 900 18px/1 var(--display); }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- rate ladder and calculator ---------- */
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.rungs { display: grid; gap: 5px; }
.rung { display: grid; grid-template-columns: 48px 1fr 64px minmax(96px, auto); align-items: center; gap: 12px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.rung .place { font: 900 14px/1 var(--display); }
.rung .bar { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.rung .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--lime)); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rung .pc { font: 500 13px/1 var(--mono); text-align: right; }
.rung .amt { font: 500 12px/1 var(--mono); text-align: right; color: var(--muted); }
.rung.active { border-color: var(--ink); box-shadow: 0 4px 0 -1px var(--ink); }
.rung.active .place { color: var(--magenta-ink); }
.calc { position: sticky; top: 90px; }
.calc .big { font: 900 clamp(30px, 4.4vw, 50px)/1.05 var(--display); margin: 8px 0; overflow-wrap: anywhere; }
.calc .mid { font: 900 clamp(20px, 2.4vw, 26px)/1.1 var(--display); margin: 14px 0 6px; }
.calc input[type="range"] { width: 100%; accent-color: var(--magenta-ink); }
.calc .field-label { display: block; font-weight: 800; font-size: 14px; margin-top: 14px; }
.calc .hold { display: flex; gap: 10px; align-items: center; margin: 12px 0 4px; flex-wrap: wrap; }
.calc .hold .input { flex: 1 1 140px; width: auto; }
.calc .rows { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
.calc .rows div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.calc .rows b { text-align: right; }
.calc .note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.seg { display: inline-flex; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); gap: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg.sm button { padding: 6px 10px; font-size: 13px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.stepc { padding: 22px; position: relative; }
.stepc::before { counter-increment: s; content: "0" counter(s); font: 500 12px/1 var(--mono); color: var(--muted); }
.stepc h3 { margin: 14px 0 10px; }
.stepc p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stepc .glyph { width: 44px; height: 44px; margin-top: 16px; }

/* ---------- fee split ---------- */
.split { display: flex; height: 64px; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; margin: 18px 0 12px; }
.split div { display: grid; place-items: center; font: 700 13px/1.1 var(--display); text-align: center; padding: 4px; border-right: 1.5px solid var(--ink); min-width: 0; overflow: hidden; color: #16140f; }
.split div:last-child { border-right: 0; }
.split .m { background: var(--bg-2); color: var(--ink); flex: 20; }
.split .f { background: linear-gradient(90deg, var(--lime) 0 33.3%, var(--magenta) 33.3% 66.6%, var(--cyan) 66.6%); flex: 60; }
.split .f span { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 10px; }
.split .p { background: var(--card); color: var(--ink); flex: 20; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.legend b { font-family: var(--mono); font-weight: 500; }
.fly { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.fly h3 { margin-top: 10px; }

/* ---------- recent payouts ---------- */
.feed { display: grid; gap: 10px; }
.feed-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) 2fr auto; gap: 16px; align-items: center; padding: 14px 18px; }
.feed-row .when { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.feed-row .sym { font: 900 16px/1.2 var(--display); text-decoration: none; }
.feed-row .what { font-size: 14px; color: var(--ink-2); }
.buys { display: flex; gap: 6px; flex-wrap: wrap; }
.buy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--c, var(--bg-2)); color: #16140f; font: 500 12px/1 var(--mono); white-space: nowrap; }
.buy:not(.c1):not(.c2):not(.c3) { color: var(--ink); }
.tx { font: 500 12px/1 var(--mono); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 900 20px/1 var(--display); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }
.faq details p:last-child { margin-bottom: 18px; }
.faq h3 { font-size: 15px; margin: 18px 0 4px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- call to action ---------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: var(--bg); }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.cta-band .coins { display: flex; justify-content: center; gap: 14px; }
.cta-band .coin { --w: 108px; }

/* ---------- footer ---------- */
.foot { border-top: 1.5px solid var(--ink); padding: 52px 0 28px; margin-top: 40px; color: var(--muted); font-size: 14px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.foot a { color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr; gap: 32px; align-items: start; }
.foot-brand .brand { font-size: 20px; color: var(--ink); }
.foot-brand .brand svg { width: 38px; height: 38px; }
.tagline { margin: 14px 0 0; max-width: 36ch; color: var(--ink-2); font-size: 15px; }
.tagline b { color: var(--ink); }
.foot-h { display: block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.foot-links { display: grid; gap: 10px; justify-items: start; }
.foot-links a { text-decoration: none; font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color 0.15s, color 0.15s; }
.foot-links a:hover { color: var(--ink); border-color: var(--magenta); }
.foot-prog p { margin: 12px 0 0; font-size: 13px; }
.prog-copy { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); cursor: pointer; box-shadow: 0 3px 0 -1px var(--ink); transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.45, 1), box-shadow 0.2s; }
.prog-copy:hover { transform: translateY(-2px); box-shadow: 0 5px 0 -1px var(--magenta); }
.prog-copy:active { transform: translateY(1px); box-shadow: none; }
.prog-copy .pc-k { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.prog-copy .mono { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-copy svg { width: 16px; height: 16px; flex: none; }
.prog-copy .ck { display: none; }
.prog-copy.copied { border-color: var(--good); }
.prog-copy.copied .cp { display: none; }
.prog-copy.copied .ck { display: block; color: var(--good); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.built { display: inline-flex; align-items: center; gap: 10px; }
.built b { color: var(--ink); font-weight: 800; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: 14px; }
.field .hint, .hint { font-size: 13px; color: var(--muted); }
.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 3px 0 -1px var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop-zone { display: grid; place-items: center; gap: 8px; min-height: 160px; border: 1.5px dashed var(--line-2); border-radius: 16px; cursor: pointer; text-align: center; padding: 16px; color: var(--muted); background: var(--card); }
.drop-zone.has { border-style: solid; border-color: var(--ink); }
.drop-zone img { width: 120px; height: 120px; object-fit: cover; border-radius: 16px; border: 1.5px solid var(--ink); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.presets button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 500 13px/1 var(--mono); }
.presets button.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.err { color: var(--bad); font-size: 14px; min-height: 20px; }

/* ---------- wallet modal and toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10, 9, 7, 0.55); padding: 16px; }
.modal .box { width: min(420px, 100%); background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 20px 0 -6px var(--ink); }
.modal h3 { margin-bottom: 14px; }
.modal .box > .btn.block { margin-top: 14px; }
.wlist { display: grid; gap: 8px; }
.wlist button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--bg); cursor: pointer; font-weight: 800; text-align: left; }
.wlist button:hover { border-color: var(--ink); }
.wlist img { width: 28px; height: 28px; border-radius: 8px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 0 -3px var(--lime); }
.toast.bad { box-shadow: 0 8px 0 -3px var(--bad); }

/* ---------- token page ---------- */
.tok-page, .rewards-page { padding-top: clamp(28px, 4vw, 48px); }
.tok-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px; }
.tok-hero img, .tok-hero .ph { width: 96px; height: 96px; border-radius: 24px; border: 1.5px solid var(--ink); object-fit: cover; background: var(--bg-2); display: grid; place-items: center; font: 900 34px/1 var(--display); }
.tok-hero h1 { font-size: clamp(26px, 4.5vw, 46px); overflow-wrap: anywhere; }
.tok-hero .ca { font: 500 13px/1.3 var(--mono); color: var(--muted); overflow-wrap: anywhere; cursor: pointer; margin-top: 6px; }
.tok-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.kv > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(3n) { border-right: 0; }
.kv > div:nth-last-child(-n + 3) { border-bottom: 0; }
.kv .k { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.kv .v { font: 700 18px/1.2 var(--display); margin-top: 8px; overflow-wrap: anywhere; }
.kv .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.board td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board td.num, .board th.num { text-align: right; font-family: var(--mono); }
.board tr.me td { background: color-mix(in srgb, var(--lime) 24%, transparent); }
a.buy { text-decoration: none; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font: 900 12px/1 var(--display); background: var(--bg-2); }
.addr { font-family: var(--mono); font-size: 13px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.big-meter .meter { height: 22px; }
.big-meter .num { font: 900 clamp(26px, 3.8vw, 40px)/1 var(--display); margin: 10px 0 14px; }
.board-card { margin-top: 18px; }
.sec-head.small { margin-bottom: 14px; }
.sec-head.small h2 { font-size: clamp(22px, 3vw, 32px); }
.mt { margin: 10px 0 8px; }
.paid-in { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.drops { display: grid; gap: 0; }
.drop-row { padding: 14px 0; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; font-size: 14px; }
.drop-row .top-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

/* ---------- rewards page ---------- */
.connect-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 24px; }
.mini-coins { display: flex; }
.mini-coins .coin { --w: 56px; box-shadow: 0 4px 0 0 color-mix(in srgb, var(--c) 55%, #16140f), 0 4px 0 1.5px #16140f; }
.mini-coins .coin .cs { font-size: 19px; }
.mini-coins .coin + .coin { margin-left: -14px; }
.connect-card h3 { margin-bottom: 8px; }
.small-gap { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-input { width: min(380px, 100%); min-height: 38px; padding: 6px 10px; font-size: 13px; }
.viewing { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.rew-summary { grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
.pos-list { display: grid; gap: 8px; margin-top: 12px; }
.pos { display: grid; grid-template-columns: 40px minmax(110px, 1fr) 36px auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--bg); }
.pos:hover { border-color: var(--ink); }
.pos img, .pos .ph { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--ink); object-fit: cover; display: grid; place-items: center; font: 900 14px/1 var(--display); background: var(--bg-2); }
.pos .pm { font: 500 13px/1.35 var(--mono); text-align: right; }
.pos .pm small { display: block; color: var(--muted); }
.section-card { margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .ladder, .fly, .cta-band, .grid2 { grid-template-columns: 1fr; }
  .stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc { position: static; }
  .top3 { grid-template-columns: 1fr; }
  .race-head { display: none; }
  .race-row { grid-template-columns: 1fr auto; grid-template-areas: "tok go" "meter meter" "info info"; }
  .race-row .c-tok { grid-area: tok; }
  .race-row .c-go { grid-area: go; }
  .race-row .c-meter { grid-area: meter; }
  .race-row .c-stage, .race-row .c-next, .race-row .c-fund { display: none; }
  .race-row .c-info { grid-area: info; display: flex !important; gap: 8px; flex-wrap: wrap; }
  .feed-row { grid-template-columns: 1fr auto; }
  .feed-row .buys { grid-column: 1 / -1; }
  .feed-row .what { grid-column: 1 / -1; grid-row: 2; }
  .rew-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 981px) {
  .race-row .c-info { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-grid; place-items: center; }
}
@media (max-width: 720px) {
  .top .wrap { gap: 10px; }
  .top .net-badge { display: none; }
  .steps, .row2, .legend { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; }
  .stat.countdown { grid-column: 1 / -1; }
  .tok-hero { grid-template-columns: auto 1fr; padding: 18px; gap: 16px; }
  .tok-hero img, .tok-hero .ph { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
  .tok-hero .actions { grid-column: 1 / -1; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .kv > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .kv > div:nth-child(2n) { border-right: 0; }
  .kv > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .kv > div:last-child { border-bottom: 0; }
  .rung { grid-template-columns: 40px 1fr 56px 78px; gap: 8px; padding: 6px 10px; }
  .cta-band .coins .coin:nth-child(3) { display: none; }
  .split div { font-size: 11px; }
  .split .f span { padding: 4px 6px; }
  .connect-card { grid-template-columns: 1fr; justify-items: start; }
  .pos { grid-template-columns: 40px 1fr auto; }
  .pos .pm, .pos .chip { grid-column: 2 / -1; text-align: left; justify-self: start; }
  .board th, .board td { padding: 10px 8px; }
  .stage { aspect-ratio: 1 / 1.05; }
  .stage .coin { --w: 86px; }
  .leg { gap: 28px; }
  .pile.p1 { min-height: 112px; }
  .pile.p2 { min-height: 84px; }
  .pile.p3 { min-height: 64px; }
  .tripod { height: 86%; }
}

/* ================= effects (fx.js) ================= */
html.fx [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
html.fx [data-reveal].in { opacity: 1; transform: none; }

/* hero: the stacks rise, the coins drop in */
html.fx .tripod .pile { animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; transform-origin: bottom; }
html.fx .tripod .leg:nth-child(1) .pile { animation-delay: 0.15s; }
html.fx .tripod .leg:nth-child(2) .pile { animation-delay: 0s; }
html.fx .tripod .leg:nth-child(3) .pile { animation-delay: 0.3s; }
/* the big coins: drop in, float, and now and then flip over on their edge (rotate: y composes with the float transform) */
.tripod .leg, .cta-band .coins { perspective: 640px; }
html.fx .tripod .leg .coin { animation: dropin 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both, float 5s ease-in-out 1.2s infinite, flip 9s ease-in-out 2s infinite; }
html.fx .tripod .leg:nth-child(1) .coin { animation-delay: 0.55s, 1.4s, 5s; }
html.fx .tripod .leg:nth-child(2) .coin { animation-delay: 0.4s, 1.2s, 2s; }
html.fx .tripod .leg:nth-child(3) .coin { animation-delay: 0.7s, 1.6s, 8s; }
html.fx .cta-band .coin { animation: float 5s ease-in-out infinite, flip 9s ease-in-out 3s infinite; }
html.fx .cta-band .coin.d2 { animation-delay: -1.6s, 6s; }
html.fx .cta-band .coin.d3 { animation-delay: -3.1s, 9s; }
@keyframes rise { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
@keyframes dropin { from { transform: translateY(-140px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flip { 0%, 84% { rotate: y 0deg; } 100% { rotate: y 360deg; } }

/* hero copy: lines rise one by one, the highlight is drawn like a marker */
html.fx .hero h1 .line { animation: lineup 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html.fx .hero h1 .line:nth-child(2) { animation-delay: 0.09s; }
html.fx .hero h1 .line:nth-child(3) { animation-delay: 0.18s; }
html.fx .hero .hl { background-repeat: no-repeat; background-size: 0% 100%; animation: marker 0.7s cubic-bezier(0.6, 0, 0.3, 1) 0.75s forwards; }
html.fx .hero .eyebrow, html.fx .hero .lead, html.fx .hero .cta, html.fx .hero .fine { animation: lineup 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html.fx .hero .lead { animation-delay: 0.3s; }
html.fx .hero .cta { animation-delay: 0.4s; }
html.fx .hero .fine { animation-delay: 0.5s; }
@keyframes lineup { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }
@keyframes marker { to { background-size: 100% 100%; } }

/* hero: canvas of falling mini coins behind the content */
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.coin-rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* a coin dropped onto a stack (fx.js) */
.drop-coin {
  position: absolute;
  top: 0;
  left: 27%;
  width: 46%;
  aspect-ratio: 2.4 / 1;
  translate: 0 -58%;
  border-radius: 50%;
  border: 1.5px solid #16140f;
  background: radial-gradient(ellipse at 40% 35%, color-mix(in srgb, var(--c) 45%, #ffffff), var(--c) 65%);
  box-shadow: 0 4px 0 0 color-mix(in srgb, var(--c) 55%, #16140f), 0 4px 0 1.5px #16140f;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
/* shared overlay for coin bursts and showers */
.fx-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

/* buttons: a shine sweeps across primary buttons now and then */
.btn.lime { position: relative; overflow: hidden; isolation: isolate; }
.btn.lime::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75) 50%, transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: btnshine 6s ease-in-out 1.5s infinite;
  pointer-events: none;
  z-index: -1;
}
.btn.lime:hover::after { animation-duration: 1.6s; animation-delay: 0s; }
@keyframes btnshine { 0%, 72% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
.seg button { transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.45, 1), background 0.15s, color 0.15s; }
.seg button:active { transform: scale(0.92); transition-duration: 0.06s; }

/* hourly ring */
.countdown-v { display: flex; align-items: center; gap: 10px; }
.ring { width: 34px; height: 34px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .arc { stroke: var(--magenta); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.stat.countdown { transition: background 0.4s; }
.stat.countdown.ending { animation: hourglow 1.2s ease-in-out infinite; }
.stat.countdown.ending .ring { animation: ringpulse 1.2s ease-in-out infinite; }
.stat.countdown.rolled .ring { animation: ringpop 0.8s cubic-bezier(0.3, 1.7, 0.5, 1); }
@keyframes ringpulse { 0%, 100% { scale: 1; } 50% { scale: 1.16; } }
@keyframes hourglow { 0%, 100% { background: transparent; } 50% { background: color-mix(in srgb, var(--magenta) 9%, transparent); } }
@keyframes ringpop { from { scale: 0.4; rotate: -200deg; } to { scale: 1; rotate: 0deg; } }

/* top 3: dealt like cards, the #1 card gets a slow shimmer */
.top3.fx-deal > .t3 { opacity: 0; }
.top3.dealing > .t3 { animation: deal 0.85s cubic-bezier(0.2, 0.85, 0.25, 1.08) both; }
.top3.dealing > .t3:nth-child(2) { animation-delay: 0.17s; }
.top3.dealing > .t3:nth-child(3) { animation-delay: 0.34s; }
@keyframes deal {
  from { opacity: 0; transform: perspective(900px) translate3d(70px, -90px, 0) rotate(9deg) rotateY(-80deg); }
  45% { opacity: 1; }
  to { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotate(0deg) rotateY(0deg); }
}
a.t3.c1::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.12) 54%, transparent 62%);
  transform: translateX(-110%);
  animation: sweep 5.5s ease-in-out 1.8s infinite;
  pointer-events: none;
}
@keyframes sweep { 0%, 58% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.t3.c1::after { opacity: 0.35; } }
:root[data-theme="dark"] a.t3.c1::after { opacity: 0.35; }

/* live lists (fx.js): hidden until first seen, then revealed with a stagger */
.fx-pre { opacity: 0; }
.fx-pre .meter > i, .fx-pre .bar i, .fx-pre-meter > i { width: 0 !important; }
.big-meter .meter > i { transition-duration: 1.3s; }
/* meter stripes keep moving; one horizontal period of a 16px stripe at 45deg is 22.63px */
.meter > i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -22.63px;
  right: 0;
  background: repeating-linear-gradient(-45deg, var(--s1) 0 8px, var(--s2) 8px 16px);
  animation: stripes 1.1s linear infinite;
}
@keyframes stripes { to { transform: translateX(22.63px); } }
/* a token above the volume goal glows softly */
.race-row { position: relative; }
.race-row:has(.meter.full)::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 70%, transparent), 0 0 26px 2px color-mix(in srgb, var(--lime) 60%, transparent);
  opacity: 0.25;
  animation: qualglow 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes qualglow { to { opacity: 0.9; } }

/* how it works: icons draw their strokes, then fill (fx.js sets --dash, --off, --gd) */
html.fx .glyph .draw { stroke-dasharray: var(--dash); stroke-dashoffset: var(--off); fill-opacity: 0; transition: stroke-dashoffset 1.1s cubic-bezier(0.6, 0.1, 0.3, 1) var(--gd, 0ms), fill-opacity 0.5s ease calc(var(--gd, 0ms) + 650ms); }
html.fx .in .glyph .draw { stroke-dashoffset: 0; fill-opacity: 1; }
html.fx .stepc.in .glyph { animation: glyphpop 0.6s cubic-bezier(0.3, 1.7, 0.5, 1) 1.5s both; transform-origin: 50% 70%; }
@keyframes glyphpop { 0% { transform: none; } 45% { transform: scale(1.14) rotate(-5deg); } 100% { transform: none; } }

/* FAQ answers ease in */
.faq details[open] > p { animation: faqin 0.35s ease both; }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* small coins (rewards, launch preview) bob gently */
html.fx .mini-coins .coin { animation: float 4.6s ease-in-out infinite; }
html.fx .mini-coins .coin:nth-child(2) { animation-delay: -1.5s; }
html.fx .mini-coins .coin:nth-child(3) { animation-delay: -3s; }

/* launch page: progress steps pulse, success card pops in */
.steps-mini div.active::before { animation: steppulse 1s ease-in-out infinite; }
.steps-mini div.ok::before { animation: steppop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes steppulse { 0%, 100% { scale: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent); } 50% { scale: 1.1; box-shadow: 0 0 0 6px transparent; } }
@keyframes steppop { from { scale: 0.3; } to { scale: 1; } }
html.fx .done:not([hidden]) { animation: popin 0.7s cubic-bezier(0.25, 1.5, 0.45, 1) both; }
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .float, .coin, .coin::after, .marquee .track, .meter > i::after, .btn.lime::after, a.t3.c1::after, .race-row::before, .stat.countdown, .ring, .mini-coins .coin, .steps-mini div::before { animation: none !important; }
  html.fx [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.fx .tripod .pile, html.fx .tripod .leg .coin { animation: none !important; }
  html.fx .hero .hl { background-size: 100% 100%; }
  .coin-rain, .fx-layer, .drop-coin { display: none; }
}

/* ================= extras (site.js): header pill, theme toggle, blobs, ticker, timeline, comparison, mascot, footer, share ================= */

/* drifting color blobs behind everything (soft radial gradients, transform-only animation) */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; width: clamp(440px, 64vmax, 1000px); height: clamp(440px, 64vmax, 1000px); border-radius: 50%; opacity: 0.34; will-change: transform; animation: drift 46s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { left: -24vmax; top: -22vmax; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 75%, transparent) 0%, transparent 62%); }
.blobs i:nth-child(2) { right: -28vmax; top: 18vh; background: radial-gradient(circle, color-mix(in srgb, var(--magenta) 42%, transparent) 0%, transparent 62%); animation-duration: 58s; animation-delay: -20s; }
.blobs i:nth-child(3) { left: 6vw; bottom: -38vmax; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 48%, transparent) 0%, transparent 62%); animation-duration: 52s; animation-delay: -34s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(9vw, 7vh, 0) scale(1.12); } 100% { transform: translate3d(-5vw, 13vh, 0) scale(0.94); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blobs i { opacity: 0.16; } }
:root[data-theme="dark"] .blobs i { opacity: 0.16; }

/* smooth color change when the theme is switched */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease, fill 0.45s ease, stroke 0.45s ease !important; }

/* header: next-hour pill */
.hour-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; flex: none;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 -1px var(--ink);
  transition: transform 0.4s cubic-bezier(0.3, 1.8, 0.45, 1), box-shadow 0.2s, border-color 0.2s;
}
.hour-pill:hover { transform: translateY(-2px); box-shadow: 0 5px 0 -1px var(--magenta); }
.hp-coin { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #16140f; background: radial-gradient(circle at 34% 30%, #ecffa8, var(--lime) 62%); animation: hpflip 6s ease-in-out infinite; }
.hp-coin::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1px dashed rgba(22, 20, 15, 0.55); }
.hp-label { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hp-time { font: 500 13px/1 var(--mono); font-feature-settings: "zero", "tnum"; min-width: 5ch; }
.hour-pill.ending { border-color: var(--magenta); animation: pillpulse 1.2s ease-in-out infinite; }
.hour-pill.ending .hp-coin { background: radial-gradient(circle at 34% 30%, #ffc2e2, var(--magenta) 62%); }
.hour-pill.ending .hp-time { color: var(--magenta-ink); }
.hour-pill.rolled .hp-coin { animation: hppop 0.9s cubic-bezier(0.3, 1.7, 0.5, 1); }
@keyframes hpflip { 0%, 78% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes hppop { from { transform: scale(0.3) rotate(-220deg); } to { transform: none; } }
@keyframes pillpulse { 0%, 100% { box-shadow: 0 3px 0 -1px var(--ink), 0 0 0 0 color-mix(in srgb, var(--magenta) 45%, transparent); } 50% { box-shadow: 0 3px 0 -1px var(--ink), 0 0 0 6px transparent; } }

/* header: theme toggle */
.theme-btn { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; padding: 0; transition: border-color 0.15s, transform 0.45s cubic-bezier(0.3, 1.8, 0.45, 1); }
.theme-btn:hover { border-color: var(--ink); transform: rotate(-14deg); }
.theme-btn svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.25s; }
.theme-btn .sun-core { fill: var(--lime); }
.theme-btn .moon-body { fill: var(--cyan); }
.theme-btn .moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }
.theme-btn.flip { animation: themeflip 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes themeflip { from { transform: rotate(-120deg) scale(0.7); } to { transform: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
  :root:not([data-theme="light"]) .theme-btn .moon { opacity: 1; transform: none; }
}
:root[data-theme="dark"] .theme-btn .sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
:root[data-theme="dark"] .theme-btn .moon { opacity: 1; transform: none; }

@media (min-width: 1081px) and (max-width: 1240px) {
  .top .net-badge { display: none; }
  .hp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 560px) {
  .top .wrap { gap: 8px; }
  .brand .word { display: none; }
  .hp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hour-pill { gap: 6px; padding: 0 10px 0 5px; height: 34px; }
  .hp-coin { width: 20px; height: 20px; }
  .hp-time { font-size: 12px; }
  .theme-btn { width: 34px; height: 34px; }
  .menu-btn { width: 38px; height: 38px; }
  .top .btn.sm { padding: 0 12px; }
}
@media (max-width: 374px) {
  .hour-pill { display: none; }
}

/* any loop marked data-loop (and the marquees) pauses while off-screen */
.paused .track, .paused .tk-track, .marquee.paused .track { animation-play-state: paused !important; }

/* pointer glint on cards */
.glint { --mx: 50%; --my: 50%; }
@media (hover: hover) and (pointer: fine) {
  .glint:hover { background-image: radial-gradient(280px circle at var(--mx) var(--my), color-mix(in srgb, var(--lime) 20%, transparent), transparent 70%); }
}

/* section divider with three tiny coins */
.coin-rule { display: flex; align-items: center; gap: 16px; margin-block: calc(-1 * clamp(16px, 4vw, 48px)); }
.coin-rule::before, .coin-rule::after { content: ""; flex: 1; border-top: 1.5px dashed var(--line-2); }
.cr-coins { display: inline-flex; align-items: center; }
.cr-coins i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #16140f; background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--c) 45%, #ffffff), var(--c) 62%); box-shadow: 0 2.5px 0 0 color-mix(in srgb, var(--c) 55%, #16140f), 0 2.5px 0 1.5px #16140f; }
.cr-coins i + i { margin-left: -4px; }
.cr-coins i:nth-child(2) { transform: translateY(-5px); }
html.fx .coin-rule.in .cr-coins i { animation: crdrop 0.75s cubic-bezier(0.25, 1.6, 0.45, 1) both; }
html.fx .coin-rule.in .cr-coins i:nth-child(2) { animation-name: crdrop2; animation-delay: 0.12s; }
html.fx .coin-rule.in .cr-coins i:nth-child(3) { animation-delay: 0.24s; }
@keyframes crdrop { from { transform: translateY(-34px) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes crdrop2 { from { transform: translateY(-40px) rotate(30deg); opacity: 0; } to { transform: translateY(-5px); opacity: 1; } }

/* live payouts ticker */
.ticker { display: flex; align-items: stretch; height: 48px; margin-top: 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; box-shadow: 0 4px 0 -1px var(--ink); }
.tk-label { flex: none; display: flex; align-items: center; gap: 9px; padding: 0 18px 0 16px; background: var(--ink); color: var(--bg); font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: livedot 1.8s ease-out infinite; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.tk-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.tk-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee var(--dur, 40s) linear infinite; will-change: transform; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track { animation-play-state: paused; }
.ticker.tk-idle .tk-track { animation: none; width: auto; }
.tk-run { display: flex; align-items: center; flex: none; }
.tk-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; white-space: nowrap; text-decoration: none; font-size: 14px; color: var(--ink-2); border-right: 1.5px dashed var(--line-2); }
.tk-item:hover .tk-sym { color: var(--magenta-ink); }
.tk-sym { font: 900 14px/1 var(--display); color: var(--ink); }
.tk-sol { font: 500 13px/1 var(--mono); color: var(--ink); }
.tk-arrow { color: var(--muted); }
.tk-buys { display: inline-flex; gap: 8px; }
.tk-buy { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/1 var(--mono); color: var(--ink); }
.tk-buy i, .tk-coins i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #16140f; background: var(--c, var(--bg-2)); flex: none; }
.tk-ago { font: 500 11px/1 var(--mono); color: var(--muted); }
.tk-empty { display: inline-flex; align-items: center; gap: 12px; padding: 0 18px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.tk-empty small { font-weight: 400; color: var(--muted); font-size: 13px; }
.tk-coins { display: inline-flex; }
.tk-coins i + i { margin-left: -4px; }
html.fx .ticker.tk-idle .tk-coins i { animation: float 3.6s ease-in-out infinite; }
html.fx .ticker.tk-idle .tk-coins i:nth-child(2) { animation-delay: -1.2s; }
html.fx .ticker.tk-idle .tk-coins i:nth-child(3) { animation-delay: -2.4s; }

/* "Life of a drop" timeline (geometry of the line is set by site.js) */
.life-track { --p: 0; position: relative; margin-top: 12px; }
.life-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.life-line { position: absolute; left: 10%; top: 32px; width: 80%; height: 8px; transform: translateY(-50%); z-index: 0; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 9px, transparent 9px 16px); }
.life-fill { position: absolute; inset: -1px; border-radius: 8px; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--lime), var(--magenta) 55%, var(--cyan)); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 8px); }
.life-runner { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 26px; height: 26px; translate: -50% -50%; perspective: 200px; }
.life-runner i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #16140f; background: radial-gradient(circle at 34% 30%, #ecffa8, var(--lime) 62%); box-shadow: 0 3px 0 0 #8fb21c, 0 3px 0 1.5px #16140f; }
.life-track.running .life-runner i { animation: runspin 0.7s linear infinite; }
@keyframes runspin { to { transform: rotateY(360deg); } }
.life-step { text-align: center; min-width: 0; }
.life-node {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 0 5px 0 -1px var(--ink);
  transition: background 0.35s ease, color 0.35s ease, transform 0.55s cubic-bezier(0.3, 1.8, 0.45, 1), box-shadow 0.35s;
}
.life-node svg { width: 30px; height: 30px; }
.life-node .num { position: absolute; top: -8px; right: -10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 500 11px/1 var(--mono); }
.life-step.on .life-node { background: var(--c); color: #16140f; transform: translateY(-5px) scale(1.06); box-shadow: 0 7px 0 -1px var(--ink), 0 0 0 7px color-mix(in srgb, var(--c) 28%, transparent); }
.life-step.on .life-node::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c); animation: lifering 0.9s ease-out both; pointer-events: none; }
@keyframes lifering { from { transform: scale(1); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }
.life-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; border: 1px dashed var(--line-2); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.life-tag b { font-weight: 500; color: var(--ink); }
.life-step.on .life-tag { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--card); }
.life-step h3 { font-size: 17px; margin: 12px 0 6px; }
.life-step p { margin: 0; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.life-step.on p { color: var(--ink-2); }
.life-note { margin: 28px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.life-track.vertical .life-steps { grid-template-columns: 1fr; gap: 26px; }
.life-track.vertical .life-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; align-items: start; }
.life-track.vertical .life-node { grid-row: 1 / span 3; margin: 0; }
.life-track.vertical .life-tag { justify-self: start; }
.life-track.vertical .life-step h3 { margin-top: 10px; }
.life-track.vertical .life-line { width: 8px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, var(--line-2) 0 9px, transparent 9px 16px); }
.life-track.vertical .life-fill { background: linear-gradient(180deg, var(--lime), var(--magenta) 55%, var(--cyan)); clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0 round 8px); }
.life-track.vertical .life-runner { top: calc(var(--p) * 100%); left: 50%; }
@media (max-width: 900px) {
  .life-steps { grid-template-columns: 1fr; gap: 26px; }
  .life-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; align-items: start; }
  .life-node { grid-row: 1 / span 3; margin: 0; }
  .life-tag { justify-self: start; }
}

/* "Why TripTrick" comparison */
.why { padding: 10px; overflow: hidden; }
.why-row { display: grid; grid-template-columns: 1fr 1.25fr 1.1fr; }
.why-row > * { display: flex; align-items: center; gap: 12px; padding: 15px 18px; min-width: 0; }
.why-row + .why-row > * { border-top: 1px dashed var(--line-2); }
.why-k { font-weight: 800; color: var(--ink); }
.why-us { background: color-mix(in srgb, var(--lime) 14%, var(--card)); border-inline: 2px solid var(--ink); font-weight: 700; color: var(--ink); }
.why-them { color: var(--muted); }
.why-head > * { padding-block: 16px; }
.why-head .why-us { background: var(--lime); color: #16140f; border-top: 2px solid var(--ink); border-radius: 16px 16px 0 0; font: 900 16px/1.1 var(--display); }
.why-head .why-us svg { width: 26px; height: 26px; flex: none; }
.why-head .why-them { font: 700 14px/1.1 var(--display); }
.why-row:last-child .why-us { border-bottom: 2px solid var(--ink); border-radius: 0 0 16px 16px; box-shadow: 0 6px 0 -2px var(--ink); }
.yes, .no { position: relative; flex: none; display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #16140f; }
.yes { background: var(--lime); box-shadow: 0 2px 0 0 #16140f; }
.yes::after { content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 5.5px; height: 10.5px; border: solid #16140f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.no { background: var(--bg-2); border-color: var(--line-2); }
.no::before, .no::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2.5px; border-radius: 2px; background: var(--muted); transform: translate(-50%, -50%) rotate(45deg); }
.no::after { transform: translate(-50%, -50%) rotate(-45deg); }
html.fx .why:not(.in) .yes { transform: scale(0); }
html.fx .why.in .yes { animation: yespop 0.55s cubic-bezier(0.3, 1.9, 0.5, 1) both; }
html.fx .why.in .why-row:nth-child(2) .yes { animation-delay: 0.3s; }
html.fx .why.in .why-row:nth-child(3) .yes { animation-delay: 0.42s; }
html.fx .why.in .why-row:nth-child(4) .yes { animation-delay: 0.54s; }
html.fx .why.in .why-row:nth-child(5) .yes { animation-delay: 0.66s; }
html.fx .why.in .why-row:nth-child(6) .yes { animation-delay: 0.78s; }
@keyframes yespop { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.why-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.why-cta p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 720px) {
  .why { padding: 6px; }
  .why-row { grid-template-columns: 1fr 1fr; gap: 0 8px; padding: 12px 6px; }
  .why-row + .why-row { border-top: 1px dashed var(--line-2); }
  .why-row + .why-row > * { border-top: 0; }
  .why-row > * { padding: 9px 10px; font-size: 14px; align-items: flex-start; gap: 8px; }
  .why-k { grid-column: 1 / -1; padding: 0 4px 6px !important; font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
  .why-us { border: 1.5px solid var(--ink) !important; border-radius: 12px !important; box-shadow: none !important; }
  .why-head { padding-bottom: 0; }
  .why-head > span:first-child { display: none; }
  .why-head .why-us, .why-head .why-them { justify-content: center; font-size: 13px; padding: 12px 8px; }
  .why-head .why-us svg { width: 20px; height: 20px; }
  .yes, .no { width: 20px; height: 20px; }
  .yes::after { left: 6px; top: 2.5px; width: 5px; height: 9.5px; border-width: 0 2.2px 2.2px 0; }
  .no::before, .no::after { width: 9px; }
}

/* the mascot coin (sizes in em: font-size scales the whole thing) */
.mascot { --ex: 0; --ey: 0; position: absolute; left: 0; top: 0; z-index: 3; width: 8.4em; font-size: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-coin { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #16140f; background: radial-gradient(circle at 34% 28%, #ecffa8, var(--lime) 62%); box-shadow: 0 0.6em 0 0 #8fb21c, 0 0.6em 0 2px #16140f, 0 1.8em 2.4em -1.4em rgba(0, 0, 0, 0.55); }
.m-coin::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed rgba(22, 20, 15, 0.4); }
.m-coin::after { content: ""; position: absolute; left: 15%; top: 12%; width: 22%; height: 9%; border-radius: 50%; background: rgba(255, 255, 255, 0.85); transform: rotate(-35deg); }
.m-eyes { position: absolute; left: 50%; top: 42%; display: flex; gap: 0.55em; transform: translate(-50%, -50%); }
.m-eyes i { display: grid; place-items: center; width: 1.9em; height: 2.3em; border-radius: 50%; border: 2px solid #16140f; background: #ffffff; transition: transform 0.08s ease; }
.m-eyes b { position: relative; width: 0.95em; height: 0.95em; border-radius: 50%; background: #16140f; transform: translate(calc(var(--ex) * 0.36em), calc(var(--ey) * 0.5em)); transition: transform 0.14s ease-out; }
.m-eyes b::after { content: ""; position: absolute; left: 20%; top: 18%; width: 32%; height: 32%; border-radius: 50%; background: #ffffff; }
.mascot.blink .m-eyes i { transform: scaleY(0.12); }
.m-mouth { position: absolute; left: 50%; top: 66%; width: 1.8em; height: 0.9em; transform: translateX(-50%); border: 2px solid #16140f; border-top: 0; border-radius: 0 0 1em 1em; background: #16140f; overflow: visible; }
.m-mouth::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 45%; border-radius: 1em 1em 0 0; background: var(--magenta); }
.m-blush { position: absolute; top: 58%; width: 1.1em; height: 0.6em; border-radius: 50%; background: rgba(255, 61, 165, 0.5); }
.m-blush.l { left: 17%; }
.m-blush.r { right: 17%; }
.m-spark { position: absolute; width: 1.8em; height: 1.8em; }
.m-spark.s1 { right: -1.4em; top: -0.6em; }
.m-spark.s2 { left: -1.2em; bottom: 0.4em; width: 1.2em; height: 1.2em; }
html.fx .mascot .m-coin { animation: mfloat 4.4s ease-in-out infinite; }
html.fx .mascot .m-spark { animation: twinkle 2.6s ease-in-out infinite; }
html.fx .mascot .m-spark.s2 { animation-delay: -1.3s; }
html.fx .mascot.hop .m-coin { animation: mhop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes mfloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-0.8em) rotate(4deg); } }
@keyframes mhop { 0% { transform: none; } 30% { transform: translateY(-2.4em) rotate(-14deg) scale(1.05, 0.95); } 60% { transform: translateY(0) scale(1.12, 0.86); } 100% { transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.4; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.stage .mascot { left: 1%; top: 1%; }
html.fx .stage .mascot { animation: dropin 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.9s both; }
@media (max-width: 720px) { .stage .mascot { font-size: 7px; } }

/* rewards page: share */
.viewing .share-btn { margin-left: auto; }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-btn.busy { opacity: 0.7; pointer-events: none; }
.share-box { width: min(720px, 100%) !important; max-height: calc(100vh - 32px); overflow: auto; }
.share-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.share-top h3 { margin: 0 !important; }
.x-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); font: 900 20px/1 var(--display); cursor: pointer; }
.x-btn:hover { border-color: var(--ink); }
.share-preview img { width: 100%; height: auto; border-radius: 14px; border: 1.5px solid var(--ink); box-shadow: 0 8px 0 -3px var(--ink); }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.share-modal .hint { margin: 12px 0 0; }
html.fx .share-modal .box { animation: popin 0.5s cubic-bezier(0.25, 1.5, 0.45, 1) both; }
@media (max-width: 560px) {
  .viewing .share-btn { margin-left: 0; width: 100%; }
  .share-actions .btn { flex: 1 1 100%; }
}

/* 404 */
.nf { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 100px); text-align: center; }
.nf-code { display: flex; justify-content: center; align-items: center; gap: 0.08em; font: 900 clamp(100px, 22vw, 210px)/1 var(--display); letter-spacing: -0.04em; }
.nf-code > span { display: inline-block; }
.nf .mascot { position: relative; left: auto; top: auto; font-size: clamp(11px, 2.2vw, 20px); margin: 0 0.04em; }
.nf h1 { font-size: clamp(28px, 4.6vw, 48px); margin-top: 26px; }
.nf .eyebrow { margin-top: 18px; }
@media (max-width: 560px) { .foot-brand .brand .word { display: inline; } }
.nf p { color: var(--muted); max-width: 52ch; margin: 14px auto 28px; }
.nf .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
html.fx .nf-code > span { animation: lineup 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html.fx .nf-code > span:last-child { animation-delay: 0.15s; }
html.fx .nf .mascot { animation: dropin 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.25s both; }

/* footer, responsive */
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .tk-label .tk-word { display: none; }
  .tk-empty small { display: none; }
  .ticker { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .blobs i, .hp-coin, .hour-pill, .tk-dot, .tk-track, .tk-coins i, .life-runner i, .life-node::after, .mascot, .mascot .m-coin, .m-spark, .cr-coins i, .yes, .theme-btn { animation: none !important; }
  .life-runner { display: none; }
  html.fx .why .yes { transform: none; }
  .tk-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}