/* tug. One light theme. UP green and DOWN red are the only strong colours; everything else is paper and ink. */
:root {
  --bg: #f3f2ee;
  --bg-2: #ffffff;
  --bg-3: #ebe9e3;
  --line: #e1ded6;
  --line-2: #cdc9bf;
  --ink: #15140f;
  --ink-2: #4d4a43;
  --ink-3: #736f67;
  --up: #0b8a52;
  --up-2: #14b06a;
  --down: #d23b3b;
  --down-2: #ec5b5b;
  --grid: rgba(21, 20, 15, 0.045);
  --shadow: 0 24px 48px -32px rgba(21, 20, 15, 0.38);
  --shadow-sm: 0 10px 24px -20px rgba(21, 20, 15, 0.4);
  --r: 18px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
img,
svg {
  display: block;
}
code {
  font-family: var(--mono);
}
[hidden] {
  display: none !important;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- phase switching: loading / pre (no mint yet) / live ---------- */
html[data-phase="loading"] .only-live,
html[data-phase="loading"] .only-pre,
html[data-phase="pre"] .only-live,
html[data-phase="live"] .only-pre {
  display: none !important;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.section {
  margin-top: 88px;
}
@media (min-width: 960px) {
  .section {
    margin-top: 120px;
  }
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.sec-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.sec-head p {
  margin-top: 8px;
  max-width: 34rem;
  color: var(--ink-2);
}

/* ---------- small type helpers ---------- */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.muted {
  color: var(--ink-3);
}
.up-t {
  color: var(--up);
}
.down-t {
  color: var(--down);
}

/* Brand text that is still loading: a quiet grey block instead of a jump. */
.sk:empty {
  display: inline-block;
  min-width: 4.5em;
  height: 0.9em;
  vertical-align: -0.08em;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-3), #f6f5f1, var(--bg-3));
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
}

.sk-line {
  display: block;
  width: 92%;
  height: 0.78em;
  margin: 0.14em 0 0.22em;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--bg-3), #f6f5f1, var(--bg-3));
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
}
.sk-line.short {
  width: 55%;
}

/* Addresses: full on wide screens, middle-shortened on phones. */
.a-short {
  display: none;
}
@media (max-width: 559px) {
  .a-full {
    display: none;
  }
  .a-short {
    display: inline;
  }
  .hide-sm {
    display: none;
  }
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.nav {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}
.nav a,
.nav-m a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover,
.nav-m a:hover {
  color: var(--ink);
  background: var(--bg-3);
}
.nav a[aria-current="page"],
.nav-m a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-3);
}
.hdr-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-m {
  display: flex;
  gap: 2px;
  padding: 4px 10px 6px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  overflow: hidden;
}
.nav-m a {
  min-height: 40px;
  padding: 0 10px;
}
@media (min-width: 820px) {
  .nav {
    display: flex;
  }
  .nav-m {
    display: none;
  }
}

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.15s, color 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s var(--ease);
}
.btn:hover svg.go {
  transform: translateX(3px);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(21, 20, 15, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-ink:hover {
  background: #2c2a23;
}
.btn-ghost {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--line-2);
  background: #fbfaf8;
}
.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 14px;
}
.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 11px;
}
.btn.is-off {
  background: var(--bg-3);
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.btn.is-off:active {
  transform: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  color: var(--ink-3);
}
.dot.live {
  background: var(--up-2);
  color: var(--up-2);
  animation: ping 2s ease-out infinite;
}
.dot.warn {
  background: #c28a12;
  color: #c28a12;
}
.dot.off {
  background: var(--line-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chip svg {
  width: 10px;
  height: 10px;
}
.chip-up {
  color: var(--up);
  background: color-mix(in srgb, var(--up-2) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 22%, transparent);
}
.chip-down {
  color: var(--down);
  background: color-mix(in srgb, var(--down-2) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 22%, transparent);
}
.chip-skip {
  color: var(--ink-3);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: lowercase;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.link:hover {
  text-decoration-color: var(--ink);
}
.link svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ---------- top: intro, live round, loop ---------- */
.top {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "live" "loop";
  gap: 20px;
  padding-top: 40px;
}
.top::before,
.top::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -64px;
  width: 100vw;
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
}
.top::before {
  background:
    radial-gradient(520px 320px at 8% 18%, color-mix(in srgb, var(--up-2) 9%, transparent), transparent 70%),
    radial-gradient(520px 320px at 96% 10%, color-mix(in srgb, var(--down-2) 7%, transparent), transparent 70%);
}
.top::after {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: radial-gradient(900px 520px at 50% 18%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(900px 520px at 50% 18%, #000 15%, transparent 72%);
}
.intro {
  grid-area: intro;
  padding-bottom: 20px;
}
.live {
  grid-area: live;
}
.loop {
  grid-area: loop;
}
@media (min-width: 960px) {
  .top {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "intro loop" "live live";
    column-gap: 48px;
    row-gap: 40px;
    padding-top: 72px;
  }
  .intro {
    padding-bottom: 0;
    align-self: center;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.kicker .num {
  color: var(--ink);
}
.intro {
  container-type: inline-size;
}
/* One sentence per line, sized to the column so it never breaks mid sentence. */
.intro h1 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 7.7cqi, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.intro h1 .l {
  display: block;
  text-wrap: balance;
}
.intro h1 .l:last-child:not(:first-child) {
  color: var(--ink-3);
}
.intro h1 .w-up {
  color: var(--up);
}
.intro h1 .w-down {
  color: var(--down);
}
.intro h1 .soft {
  display: block;
  color: var(--ink-3);
}
.lead {
  margin-top: 20px;
  max-width: 36rem;
  font-size: 17px;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .lead {
    font-size: 18px;
  }
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  min-height: 52px;
}
@media (max-width: 479px) {
  .cta .btn {
    flex: 1 1 100%;
  }
}
.ca {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-top: 18px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  font-size: 13px;
}
.ca .eyebrow {
  margin-right: 6px;
}
.ca code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}
.ca-pre {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

/* copy button: big tap area, small icon */
.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: color 0.15s, background-color 0.15s;
}
.copy:hover {
  color: var(--ink);
  background: var(--bg-3);
}
.copy svg {
  width: 16px;
  height: 16px;
}
.copy .ok {
  display: none;
  color: var(--up);
}
.copy.done .ok {
  display: block;
}
.copy.done .cp {
  display: none;
}

/* ---------- the loop (4 steps) ---------- */
.loop {
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.loop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spec {
  margin-top: 12px;
}
.spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec > div:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.spec dt {
  color: var(--ink-3);
  white-space: nowrap;
}
.spec dd {
  text-align: right;
  font-weight: 500;
  color: var(--ink);
}
.spec b {
  font-weight: 600;
}
@media (min-width: 960px) {
  .loop {
    padding: 26px 26px 22px;
  }
}

/* ---------- live round ---------- */
.live {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.live-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-title h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.live-window {
  font-size: 13px;
  color: var(--ink-3);
}
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.live-main {
  padding: 22px 18px 20px;
}
.live-trades {
  border-top: 1px solid var(--line);
  padding: 18px 18px 18px;
  background: color-mix(in srgb, var(--bg) 45%, var(--bg-2));
}
@media (min-width: 640px) {
  .live-head,
  .live-main,
  .live-trades {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 960px) {
  .live-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .live-main {
    padding: 28px 32px 28px;
  }
  .live-trades {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
  }
}

.count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 16px;
}
.count .eyebrow {
  grid-column: 1 / -1;
}
.count-num {
  font-size: clamp(3.25rem, 2.2rem + 4vw, 4.5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.count-num.locked {
  color: var(--ink-3);
}
.count-side {
  padding-bottom: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}
.prog {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--bg-3);
  overflow: hidden;
}
.prog > i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
html.ready .prog > i {
  transition: transform 1s linear;
}

/* ---------- the rope ---------- */
.tug {
  margin-top: 26px;
  --band: #d9412c;
  --band-2: #b8321f;
  --pull-ease: cubic-bezier(0.22, 0.9, 0.25, 1);
}
.tug-lead {
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  min-height: 20px;
  transition: color 0.4s;
}
.tug[data-lead="UP"] .tug-lead {
  color: var(--up);
}
.tug[data-lead="DOWN"] .tug-lead {
  color: var(--down);
}
.rope-track {
  position: relative;
  overflow: hidden;
  height: 70px;
  margin-top: 4px;
}
.rope-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 40px;
  margin-top: -20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--down-2) 7%, var(--bg)),
    var(--bg) 50%,
    color-mix(in srgb, var(--up-2) 8%, var(--bg))
  );
}
.rope-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1.5px dashed var(--line-2);
}
.pull {
  position: absolute;
  top: 50%;
  width: 50%;
  height: 24px;
  margin-top: -12px;
  transform: scaleX(0);
}
.pull-up {
  left: 50%;
  transform-origin: left center;
  background: color-mix(in srgb, var(--up-2) 24%, transparent);
}
.pull-down {
  right: 50%;
  transform-origin: right center;
  background: color-mix(in srgb, var(--down-2) 22%, transparent);
}
.rope {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  border-radius: 99px;
  background-color: #4a463d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M0 10L6 0h6L6 10z' fill='%2315140f'/%3E%3C/svg%3E");
  background-size: 12px 10px;
  box-shadow: 0 2px 4px -2px rgba(21, 20, 15, 0.5);
  transition: opacity 0.4s;
}
html.ready .tug[data-lead="UP"]:not(.is-low) .rope {
  animation: rope-up 0.9s linear infinite;
}
html.ready .tug[data-lead="DOWN"]:not(.is-low) .rope {
  animation: rope-down 0.9s linear infinite;
}
.tug.is-low .rope,
.tug.is-idle .rope {
  opacity: 0.55;
}
.rope-end {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: -8px;
}
.rope-end svg {
  width: 11px;
  height: 11px;
}
.rope-end.down {
  left: 4px;
  color: var(--down);
}
.rope-end.up {
  right: 4px;
  color: var(--up);
}
.knot-pos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.knot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 30px;
  margin: -15px 0 0 -6px;
  border-radius: 4px;
  background: var(--band);
  box-shadow: 0 0 0 2.5px var(--bg-2), 0 8px 16px -8px rgba(21, 20, 15, 0.6);
}
.knot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 10px;
  height: 13px;
  margin-left: -5px;
  background: var(--band-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 68%, 0 100%);
}
html.ready .knot-pos,
html.ready .pull {
  transition: transform 1.4s var(--pull-ease);
}
.tug-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.tug-lbl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink-3);
}
.tug-lbl b {
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tug-lbl .sep {
  color: var(--line-2);
}
.tug-sol {
  display: inline-block;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.tug-side.down b,
.tug-side.down .tug-sol {
  color: var(--down);
}
.tug-side.up b,
.tug-side.up .tug-sol {
  color: var(--up);
}
.tug-side.up .tug-lbl {
  justify-content: flex-end;
}
.tug-side.up {
  text-align: right;
}
.tug-n {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.tug-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
@media (max-width: 439px) {
  .tug-lbl .sep {
    display: none;
  }
  .tug-lbl b {
    flex-basis: 100%;
  }
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  min-height: 46px;
}
.note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
}
.note.warn {
  background: color-mix(in srgb, #e7b43c 11%, var(--bg-2));
  border-color: color-mix(in srgb, #c28a12 30%, var(--line));
}
.note.warn svg {
  color: #a8760c;
}

.mkt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.mkt > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.mkt dt {
  color: var(--ink-3);
  white-space: nowrap;
}
.mkt dd {
  text-align: right;
  min-width: 0;
}
.mkt dd a {
  min-height: 40px;
}

/* trades list */
.trades-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trades-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.trades-head .count-pill {
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--bg-3);
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-2);
}
.trades-head .src {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.trades {
  margin-top: 10px;
}
.trade {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.trade:last-child {
  border-bottom: 0;
}
.tr-body {
  min-width: 0;
}
.tr-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
}
.tr-top b {
  font-weight: 600;
}
.tr-verb {
  font-size: 12.5px;
  color: var(--ink-3);
}
.tr-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.tr-who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 500;
}
.tr-who.addr {
  font-family: var(--mono);
  font-weight: 400;
}
.tr-time {
  margin-left: auto;
  flex: none;
}
.tr-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: color 0.15s, background-color 0.15s;
}
.tr-link:hover {
  color: var(--ink);
  background: var(--bg-3);
}
.tr-link svg {
  width: 14px;
  height: 14px;
}
.tr-link.none {
  visibility: hidden;
}
.trade.new {
  animation: rise 0.5s var(--ease) both;
}
.empty {
  margin-top: 12px;
  padding: 26px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}
.more {
  margin-top: 12px;
  width: 100%;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}
.stats > div {
  background: var(--bg-2);
  padding: 16px 16px 16px;
  min-width: 0;
}
.stats .v {
  margin-top: 8px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats .v small {
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
}
.stats .s {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.stats .big {
  grid-column: 1 / -1;
  padding: 20px 16px;
  background: var(--bg-2);
}
.stats .big .v {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
}
@media (min-width: 720px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats > div {
    padding: 20px 22px;
  }
  .stats .big {
    grid-column: span 1;
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
  }
}
@media (min-width: 1040px) {
  .stats {
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  }
  .stats .big {
    grid-row: span 2;
  }
}
.record {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg-3);
}
.record i {
  display: block;
  height: 100%;
  transition: flex-grow 0.6s var(--ease);
}
.record .w {
  background: var(--up-2);
}
.record .l {
  background: var(--down-2);
}
.record .k {
  background: var(--line-2);
}

/* ---------- rounds table ---------- */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 1040px) {
  .board {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
.tbl {
  overflow: hidden;
}
.tbl-head {
  display: none;
}
.rrow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas:
    "id time res"
    "flow flow flow"
    "call pos pos";
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.rrow:last-child {
  border-bottom: 0;
}
.rrow > [data-c="id"] {
  grid-area: id;
  font-weight: 600;
}
.rrow > [data-c="time"] {
  grid-area: time;
  color: var(--ink-3);
}
.rrow > [data-c="flow"] {
  grid-area: flow;
}
.rrow > [data-c="call"] {
  grid-area: call;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rrow > [data-c="pos"] {
  grid-area: pos;
  text-align: right;
  color: var(--ink-2);
  min-width: 0;
}
.rrow > [data-c="res"] {
  grid-area: res;
  text-align: right;
  white-space: nowrap;
}
.rrow.new {
  animation: rise 0.5s var(--ease) both;
}
.vbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vbar .mini {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg-3);
  min-width: 48px;
}
.vbar .mini i {
  display: block;
  height: 100%;
}
.vbar .mini .u {
  background: var(--up-2);
}
.vbar .mini .d {
  background: var(--down-2);
}
.vbar .lbl {
  flex: none;
  font-size: 13px;
  color: var(--ink-2);
}
.reason {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-won {
  color: var(--up);
  font-weight: 600;
}
.res-lost {
  color: var(--down);
  font-weight: 600;
}
.res-sub {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}
.res-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .tbl-head,
  .rrow {
    grid-template-columns: 52px 48px minmax(150px, 1fr) 200px minmax(112px, 0.8fr) 80px;
    grid-template-areas: "id time flow call pos res";
    gap: 14px;
    padding: 0 20px;
  }
  .rrow {
    min-height: 60px;
  }
  .tbl-head {
    display: grid;
    align-items: center;
    height: 42px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .tbl-head > span {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .tbl-head > span:nth-child(5),
  .tbl-head > span:nth-child(6) {
    text-align: right;
  }
}

/* ---------- burns ---------- */
.burns {
  padding: 18px 18px 10px;
}
.burns-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}
.burns-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.burn {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.burn .ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--ink-2);
}
.burn .ic svg {
  width: 15px;
  height: 15px;
}
.burn .t {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.burn .t > span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burn .t .badge {
  flex: none;
}
.burn .m {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.burn a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px;
  margin-right: -8px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}
.burn a:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.burn a svg {
  width: 12px;
  height: 12px;
}
.burn.new {
  animation: rise 0.5s var(--ease) both;
}
.burns .empty {
  margin: 6px 0 10px;
}
/* ---------- how it decides ---------- */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 960px) {
  .how-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
  }
}
}
.steps {
  counter-reset: s;
  padding: 8px 18px;
}
.steps > li {
  counter-increment: s;
  position: relative;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid var(--line);
}
.steps > li:last-child {
  border-bottom: 0;
}
.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.steps h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding-top: 4px;
}
.steps p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .steps {
    padding: 8px 26px;
  }
}
.rules {
  padding: 22px 20px;
}
@media (min-width: 640px) {
  .rules {
    padding: 26px 26px;
  }
}
.rules h3 {
  font-size: 16px;
  font-weight: 600;
}
.rule-list {
  margin-top: 12px;
}
.rule-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 15px;
  color: var(--ink-2);
}
.rule-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.rule-list b {
  color: var(--ink);
  font-weight: 600;
}
.examples {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.ex {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}
.ex code {
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ex .res {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ex svg {
  width: 16px;
  height: 16px;
}
.ex .y {
  color: var(--up);
}
.ex .n {
  color: var(--down);
}

/* ---------- wallets ---------- */
.wallets {
  overflow: hidden;
}
.wrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 12px 14px 18px;
  border-bottom: 1px solid var(--line);
}
.wrow:last-child {
  border-bottom: 0;
}
.wrow .lbl {
  font-size: 14px;
  font-weight: 600;
}
.wrow > div:first-child {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.wrow .lbl span {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12.5px;
}
.wrow code {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wrow .acts {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 2px;
}
.wrow .ext {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-3);
  transition: color 0.15s, background-color 0.15s;
}
.wrow .ext:hover {
  color: var(--ink);
  background: var(--bg-3);
}
.wrow .ext svg {
  width: 15px;
  height: 15px;
}
.wrow.pending code {
  font-family: var(--sans);
  color: var(--ink-3);
}
@media (min-width: 760px) {
  .wrow {
    grid-template-columns: 220px minmax(0, 1fr) auto;
    padding: 12px 14px 12px 22px;
    min-height: 64px;
  }
  .wrow code {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 14px;
  }
  .wrow .acts {
    grid-column: 3;
    grid-row: 1;
  }
}

/* ---------- closing band + footer ---------- */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 22px;
  background: var(--ink);
  color: #f3f2ee;
  border: 0;
  box-shadow: var(--shadow);
}
.band h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.band p {
  margin-top: 8px;
  color: #b9b6ad;
  max-width: 36rem;
}
.band .btn-ink {
  background: #fff;
  color: var(--ink);
}
.band .btn-ink:hover {
  background: #eceae4;
}
.band .btn.is-off {
  background: #2c2a23;
  color: #b9b6ad;
  border-color: #3a3830;
}
.band .w-up {
  color: var(--up-2);
}
.band .w-down {
  color: var(--down-2);
}
@media (min-width: 640px) {
  .band {
    padding: 40px 40px;
  }
}
@media (max-width: 479px) {
  .band .btn {
    width: 100%;
  }
}

.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 55%, var(--bg));
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.foot p {
  font-size: 14px;
  color: var(--ink-2);
}
.foot .legal {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 36rem;
  line-height: 1.6;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-left: -12px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}
.foot-links a:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.foot-links svg {
  width: 15px;
  height: 15px;
}
@media (min-width: 820px) {
  .foot-in {
    grid-template-columns: minmax(0, 1.3fr) auto;
    align-items: start;
  }
  .foot-links {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: -12px;
  }
}

/* ---------- connection toast ---------- */
.conn {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #f3f2ee;
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.conn.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- docs page ---------- */
.doc-hero {
  position: relative;
  isolation: isolate;
  padding: 48px 0 8px;
}
.doc-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -64px;
  width: 100vw;
  height: 420px;
  transform: translateX(-50%);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(760px 300px at 30% 10%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(760px 300px at 30% 10%, #000 10%, transparent 72%);
  pointer-events: none;
}
.doc-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.doc-hero > p:not(.kicker) {
  margin-top: 16px;
  max-width: 38rem;
  font-size: 17px;
  color: var(--ink-2);
}
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.toc {
  display: none;
}
@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
  }
  .toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .toc a {
    display: block;
    padding: 7px 12px;
    margin-left: -12px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink-2);
    transition: background-color 0.15s, color 0.15s;
  }
  .toc a:hover {
    background: var(--bg-3);
    color: var(--ink);
  }
  .toc a.on {
    color: var(--ink);
    background: var(--bg-3);
    font-weight: 500;
  }
}
.prose {
  max-width: 44rem;
}
.prose section + section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.prose h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose p {
  margin-top: 12px;
  color: var(--ink-2);
}
.prose p b,
.prose li b {
  color: var(--ink);
  font-weight: 600;
}
.prose b.up-t {
  color: var(--up);
}
.prose b.down-t {
  color: var(--down);
}
.prose .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.prose .rule-list {
  margin-top: 14px;
}
.prose code.k {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-3);
  font-size: 0.88em;
  color: var(--ink);
}
.timeline {
  margin-top: 18px;
  position: relative;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline .at {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-top: 2px;
}
.timeline p {
  margin: 0;
  font-size: 15px;
}
.split-demo {
  margin-top: 20px;
  padding: 20px;
}
.feebar {
  display: flex;
  gap: 3px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}
.feebar > div {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.feebar .pot {
  flex: 50;
  background: var(--ink);
  color: #fff;
}
.feebar .burn-f {
  flex: 20;
  background: #57544c;
  color: #fff;
}
.feebar .dev {
  flex: 30;
  background: var(--bg-3);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.fee-legend {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.fee-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.fee-legend i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: translateY(1px);
}
.fee-legend b {
  color: var(--ink);
}
.fee-legend .num {
  color: var(--ink);
  font-weight: 600;
}
.onchain {
  display: flex;
  gap: 3px;
  height: 8px;
  margin: 18px 0 8px;
  border-radius: 99px;
  overflow: hidden;
}
.onchain i:first-child {
  flex: 70;
  background: #8c887f;
}
.onchain i:last-child {
  flex: 30;
  background: var(--line-2);
}
.onchain-l {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}
.outcomes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .outcomes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.outcome {
  padding: 18px;
}
.outcome h3 {
  margin: 12px 0 0;
  font-size: 16px;
}
.outcome p {
  margin-top: 6px;
  font-size: 14px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
}
.prose .wallets {
  margin-top: 18px;
}
@media (min-width: 760px) {
  .prose .wrow {
    grid-template-columns: 170px minmax(0, 1fr) auto;
  }
}

/* ---------- motion ---------- */
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bump {
  0% {
    transform: none;
  }
  35% {
    transform: translateY(-3px);
  }
  100% {
    transform: none;
  }
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- mode: paper / paused keeper ---------- */
html:not([data-mode="paper"]) .only-paper {
  display: none !important;
}
.pill-paper {
  min-height: 24px;
  padding: 0 9px;
  border-style: dashed;
  border-color: var(--line-2);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.paper-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.live-title {
  flex-wrap: wrap;
}
.live .count,
.live .tug,
.live .trades,
.live .trades-head {
  transition: opacity 0.4s, filter 0.4s;
}
.live.is-paused .count,
.live.is-paused .tug,
.live.is-paused .trades,
.live.is-paused .trades-head,
.live.is-paused .empty {
  opacity: 0.42;
  filter: grayscale(1);
}
.stats .s.pending {
  color: var(--up);
}
.badge-win {
  color: var(--up);
  border-color: color-mix(in srgb, var(--up) 30%, var(--line));
  background: color-mix(in srgb, var(--up-2) 8%, var(--bg-2));
}


@keyframes rope-up {
  to {
    background-position: 12px 0;
  }
}
@keyframes rope-down {
  to {
    background-position: -12px 0;
  }
}
.flow-sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.intro h1 .l .w-up {
  color: var(--up);
}
.intro h1 .l .w-down {
  color: var(--down);
}

/* ---------------- launched on tug: coin pages, launch, coins ---------------- */
html[data-coin="pad"] .only-tug,
html:not([data-coin="pad"]) .only-pad {
  display: none !important;
}
.coin-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-3);
  margin: 4px 0 14px;
}
.pill-pad {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.band-pad {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.band-pad p {
  color: var(--ink-2);
}
.band-pad .btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.band-pad .btn-ink:hover {
  background: #2c2a23;
}
.band-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* launch page */
.pad-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 900px) {
  .pad-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }
}
.pad-form {
  padding: 22px;
  display: grid;
  gap: 16px;
}
.fld {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.fld small {
  font-weight: 400;
  color: var(--ink-3);
}
.fld input,
.fld textarea {
  font: inherit;
  font-weight: 400;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--ink);
}
.fld input:focus,
.fld textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.fld-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .fld-row {
    grid-template-columns: 1fr 1fr;
  }
}
.drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  cursor: pointer;
  background: var(--bg);
}
.drop img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-3);
}
.drop input {
  display: none;
}
.split-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}
.split-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}
.split-list dt {
  color: var(--ink-2);
}
.split-list dd {
  font-family: var(--mono);
  font-weight: 600;
}
.pad-side {
  padding: 20px;
}
.pad-side h3 {
  font-size: 1rem;
}
.pad-side p {
  color: var(--ink-2);
  font-size: 0.92rem;
  margin-top: 8px;
}
.pad-err {
  color: var(--down);
  font-size: 0.92rem;
}
.pad-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pad-steps li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.pad-steps li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex: none;
  transform: translateY(1px);
}
.pad-steps li.active {
  color: var(--ink);
  font-weight: 600;
}
.pad-steps li.active::before {
  border-color: var(--ink);
  background: var(--bg-3);
}
.pad-steps li.done {
  color: var(--ink-2);
}
.pad-steps li.done::before {
  background: var(--up);
  border-color: var(--up);
}
.pad-steps li.error {
  color: var(--down);
}
.pad-steps li.error::before {
  background: var(--down);
  border-color: var(--down);
}
.pad-steps li small {
  font-weight: 400;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.pad-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(21, 20, 15, 0.45);
}
.pad-modal[hidden] {
  display: none;
}
.pad-modal .card {
  width: min(28rem, 100%);
  padding: 22px;
  display: grid;
  gap: 16px;
}

/* coins page */
.coins {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .coins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .coins {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.coin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.coin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.coin-top {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.coin-top img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-3);
  flex: none;
}
.coin-top b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coin-top span {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.mini-rope {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: var(--bg-3);
  overflow: hidden;
}
.mini-rope i {
  position: absolute;
  top: 0;
  bottom: 0;
}
.mini-rope .d {
  right: 50%;
  background: var(--down-2);
}
.mini-rope .u {
  left: 50%;
  background: var(--up-2);
}
.coin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-2);
}
.pad-steps li {
  flex-wrap: wrap;
}
.pad-steps li small {
  flex-basis: 100%;
  padding-left: 19px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
