:root {
  --paper: #f3eee4;
  --card: #fbf8f2;
  --field: #fffdf9;
  --ink: #17140f;
  --body: #2f2a22;
  --muted: #6c655a;
  --line: #d8cfbf;
  --line-strong: #c9bda6;
  --accent: #d2563b;
  --accent-soft: #f6e0d8;
  --jade: #1e6b52;
  --jade-soft: #d9ebe2;
  --gold: #c99a2e;
  --gold-soft: #f3e6c4;
  --gold-ink: #6e5214;
  --bad: #b3261e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow-1: 0 1px 2px rgba(40, 30, 10, 0.05), 0 4px 14px -6px rgba(40, 30, 10, 0.1);
  --shadow-2: 0 22px 46px -26px rgba(60, 40, 10, 0.42), 0 2px 6px rgba(40, 30, 10, 0.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.03; text-wrap: balance; }
h1 em { font-style: italic; color: var(--accent); white-space: nowrap; }
h2 { font-size: 30px; }
h3 { font-size: 20px; }
p { text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.88em; background: #ebe3d4; padding: 1px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.good { color: var(--jade); font-weight: 600; }
.bad { color: var(--bad); font-weight: 600; }
.ok { display: flex; align-items: center; gap: 6px; color: var(--jade); font-weight: 600; margin: 12px 0 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 26px; padding: 12px 32px;
  background: rgba(243, 238, 228, 0.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.top nav a:hover { color: var(--ink); background: rgba(23, 20, 15, 0.05); }
.top nav a.on { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.acct { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

.netpick { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color 0.15s; }
.netpick:hover { border-color: var(--line-strong); }
.netpick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.netpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.netdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.2); flex: none; }
.netpick.net-live .netdot { background: var(--jade); box-shadow: 0 0 0 3px rgba(30, 107, 82, 0.18); }
.nettag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); }
.netpick.net-live .nettag { background: var(--jade-soft); color: var(--jade); }

/* ------------------------------------------------------------------ controls */
select, input { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4z' fill='%236c655a'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input:hover, select:hover { border-color: var(--line-strong); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210, 86, 59, 0.16); }
input::placeholder { color: #a39a8a; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; cursor: pointer; border: 0; border-radius: 999px;
  padding: 11px 20px; background: var(--accent); color: #fff; margin: 10px 8px 0 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 18px -10px rgba(210, 86, 59, 0.75); transition: transform 0.12s, filter 0.15s, box-shadow 0.15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn.big { padding: 15px 24px; font-size: 16px; }
.btn.dark { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(23, 20, 15, 0.7); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: rgba(23, 20, 15, 0.04); filter: none; }
.btn.connect { margin: 0; height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.connect .sm { display: none; }
button:disabled, .btn:disabled { opacity: 0.45; cursor: default; filter: none; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cta-row .btn { margin: 0; }

/* ------------------------------------------------------------------ layout */
.page { max-width: 1160px; margin: 0 auto; padding: 40px 32px 64px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: 18px; line-height: 1.62; max-width: 640px; color: var(--body); }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 22px 0 34px; }
.story { margin: 0; display: flex; flex-direction: column; align-items: center; }
.story svg { width: 100%; max-width: 430px; height: auto; overflow: visible; }
.story-track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 7; }
.story-spoke { stroke: #e4dac8; stroke-width: 1.5; }
.story-spoke.flow { stroke: #d6c18b; stroke-dasharray: 2 6; animation: flow 0.9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.story-initial { font: 600 17px var(--sans); fill: #fff; pointer-events: none; }
.story-name { font: 600 12.5px var(--sans); fill: var(--ink); }
.story-pot-t { font: 700 10.5px var(--mono); letter-spacing: 0.14em; fill: #4a360a; }
.story-pot-v { font: 700 30px var(--serif); fill: var(--ink); }
.story-pot-s { font: 500 10.5px var(--mono); letter-spacing: 0.06em; fill: #4a360a; }
.story-halo { fill: none; stroke: var(--accent); stroke-width: 3; animation: halo 1.1s ease-in-out infinite alternate; }
@keyframes halo { from { stroke-opacity: 0.95; } to { stroke-opacity: 0.35; } }
.story-badge circle { fill: var(--jade); stroke: var(--paper); stroke-width: 2.5; }
.story-badge path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.story figcaption { margin-top: 4px; text-align: center; min-height: 54px; }
.story-round { display: block; font: 700 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.story-line { display: block; font-family: var(--serif); font-size: 19px; margin-top: 5px; }

.trust { list-style: none; margin: 4px 0 40px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 10px 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251, 248, 242, 0.75); }
.trust li a, .trust li span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #3a342b; text-decoration: none; }
.trust li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.trust svg { color: var(--jade); flex: none; }
.trust svg.ext { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 0 0 56px; }
.step { padding: 24px 24px 28px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.step .num { display: block; font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.1em; }
.step h3 { margin: 6px 0 8px; }
.step p { margin: 0; color: #3a342b; line-height: 1.55; font-size: 15px; }

/* ------------------------------------------------------------------ circle list */
.list-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow-1); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .mode { display: inline-flex; align-items: center; gap: 5px; }
.card h3 { margin: 12px 0 14px; font-size: 21px; }
.card-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.card-nums b { display: block; font-family: var(--serif); font-size: 20px; }
.card-nums span { font-size: 12px; color: var(--muted); }
.seat-stack { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; }
.seat-stack > * { margin-left: -6px; }
.seat-stack > *:first-child { margin-left: 0; }
.seat-av { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }
.seat-av.won { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.seat-av.def { opacity: 0.4; }
.seat-open { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed var(--line-strong); background: var(--card); }
.avatar { display: inline-block; flex: none; vertical-align: middle; border-radius: 50%; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pill.p0 { background: var(--gold-soft); color: var(--gold-ink); }
.pill.p1 { background: var(--jade-soft); color: var(--jade); }
.pill.p2 { background: #e7e0d2; color: var(--ink); }
.pill.p3 { background: #ece6dc; color: var(--muted); }

.empty { padding: 24px; border: 1.5px dashed #d3c7b1; border-radius: 16px; color: #4a4339; background: rgba(251, 248, 242, 0.6); }
.empty p { margin: 0; line-height: 1.6; }
.empty-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 30px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(251, 248, 242, 0.92), rgba(246, 240, 229, 0.92)); }
.empty-copy h3 { font-size: 24px; margin-bottom: 10px; }
.empty-copy p { line-height: 1.62; color: #3a342b; max-width: 520px; margin: 0 0 6px; }

.showcase { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-2); }
.showcase-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.showcase h3 { font-size: 22px; margin: 6px 0 4px; }
.showcase p { margin: 0; }
.payouts { list-style: none; margin: 14px 0 16px; padding: 0; border-top: 1px solid var(--line); }
.payouts li { display: grid; grid-template-columns: 30px 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payouts .round-no { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--accent); }
.payouts .addr, .payouts .amt { font-family: var(--mono); font-size: 13px; }
.payouts .amt { text-align: right; white-space: nowrap; }
.showcase .btn { margin: 0; }

.skeleton i { display: block; height: 14px; border-radius: 7px; margin: 10px 0; background: linear-gradient(90deg, #ece4d6 25%, #f6f0e5 50%, #ece4d6 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card.skeleton { min-height: 170px; }
.page-skeleton { max-width: 640px; }

/* ------------------------------------------------------------------ create form */
.create { margin-top: 64px; padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); }
.create-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.create > .muted { margin: 10px 0 0; line-height: 1.55; }
.real-money { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold-ink); background: var(--gold-soft); padding: 5px 11px; border-radius: 999px; }
.create .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.wide { grid-column: span 2; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field-box { position: relative; display: flex; align-items: center; }
.field-box input, .field-box select { width: 100%; min-width: 0; height: 46px; }
.field-box .unit { position: absolute; right: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); pointer-events: none; }
.field-box input:has(+ .unit) { padding-right: 58px; }
.summary { font-size: 16px; line-height: 1.55; color: var(--body); margin: 0 0 6px; }

/* ------------------------------------------------------------------ circle page */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--ink); }
.circle-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin: 18px 0 30px; align-items: start; }
.circle-head .eyebrow { line-height: 1.6; }
.circle-head .eyebrow svg { vertical-align: -2px; margin-right: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; }
.facts span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.facts b { font-family: var(--serif); font-size: 22px; }
.status { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-1); }
.status p { margin: 10px 0 0; line-height: 1.5; }
.status .round { font-family: var(--serif); font-size: 34px; margin-top: 12px; }
.status .round span { font-size: 18px; color: var(--muted); }
.meter { height: 8px; border-radius: 999px; background: #ebe3d4; overflow: hidden; margin-top: 12px; }
.meter i { display: block; height: 100%; background: var(--jade); border-radius: inherit; transition: width 0.6s; }
.circle-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; }
.big-ring { width: 100%; max-width: 460px; height: auto; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.ring-progress { fill: none; stroke: var(--jade); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray 0.6s; }
.spoke { stroke: transparent; stroke-width: 2; }
.spoke.on { stroke: var(--accent); stroke-dasharray: 3 5; animation: flow 1s linear infinite; }
.seat-empty-ring { fill: rgba(251, 248, 242, 0.85); stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 3; }
.seat-plus { font: 600 16px var(--sans); fill: #a99c84; }
.seat-halo { fill: none; stroke: var(--accent); stroke-width: 3; animation: halo 1.1s ease-in-out infinite alternate; }
.seat-ring { fill: none; stroke-width: 3; }
.seat-ring.paid { stroke: var(--jade); }
.seat-ring.def { stroke: var(--bad); stroke-dasharray: 4 3; }
.seat-badge rect { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.seat-badge text { font: 700 10px var(--mono); fill: #fff; }
.me-t { font: 700 13px var(--mono); fill: var(--accent); }
.pot-t { font: 700 12px var(--mono); letter-spacing: 0.12em; fill: #4a360a; }
.pot-v { font: 700 30px var(--serif); fill: var(--ink); }
.pot-s { font: 500 12px var(--mono); fill: #4a360a; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.legend .lg-paid { box-shadow: inset 0 0 0 3px var(--jade); }
.legend .lg-won { width: 22px; border-radius: 7px; background: var(--ink); }
.legend .lg-def { box-shadow: inset 0 0 0 3px var(--bad); }
.legend .lg-open { border: 1.5px dashed var(--line-strong); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-1); }
.panel h3 { margin-bottom: 8px; }
.panel > p { margin: 6px 0; }
.seat-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.seat-facts span { display: block; font-size: 12px; color: var(--muted); }
.seat-facts b { font-size: 15px; }
.bid { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row input { flex: 1; min-width: 0; }
.row .btn { margin: 0; }
.members { margin-top: 36px; }
.members h3 { margin-bottom: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; background: #f6f1e7; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td { font-family: var(--mono); font-size: 13px; }
td.who a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
td.who a:hover { text-decoration: underline; text-underline-offset: 3px; }
tbody tr:hover td { background: #f8f3ea; }
tr.me td { background: #f6e3dc; }
tr.empty-row td { color: var(--muted); font-style: italic; }
.contract-line { margin-top: 18px; }
.contract-line a { display: inline-flex; align-items: center; gap: 4px; }
.addr-short { display: none; }

/* ------------------------------------------------------------------ live feed and send-on */
.live { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-1); }
.live h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.live-sub { font-family: var(--sans); font-weight: 400; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.live-dot.on { background: var(--jade); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 107, 82, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(30, 107, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 107, 82, 0); } }
.live > p { margin: 0; }
.live ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.live li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.live li:first-child { border-top: 0; }
.live li.fresh { animation: live-in 0.6s ease-out; }
@keyframes live-in { from { background: rgba(210, 86, 59, 0.12); } to { background: transparent; } }
.live .when { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.live .what { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.live .proof { flex-basis: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--muted); word-break: break-all; }
.live .proof code { font-size: 11.5px; }
.live .tail { display: flex; align-items: center; gap: 8px; }
.live .tail a { display: inline-flex; align-items: center; gap: 2px; }
.live .state { font-family: var(--mono); font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.live .state.pending { color: var(--accent); }
.live .state.final { color: var(--jade); }
.send-home { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.send-home .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.send-home .row input:first-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------------ score */
.score-page .search { max-width: 640px; margin: 22px 0 10px; }
.example { color: var(--muted); margin: 0 0 8px; }
.example a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); color: var(--ink); }
.score-card { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; max-width: 760px; box-shadow: var(--shadow-1); }
.score-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.gauge { width: 240px; max-width: 100%; height: auto; }
.gauge-track { fill: none; stroke: #e6ddcc; stroke-width: 16; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: url(#gaugeFill); stroke-width: 16; stroke-linecap: round; }
.gauge-v { font: 700 40px var(--serif); fill: var(--ink); }
.gauge-s { font: 500 11px var(--mono); letter-spacing: 0.08em; fill: var(--muted); }
.score-who { display: flex; align-items: center; gap: 12px; }
.score-who b { display: block; font-family: var(--mono); font-size: 15px; }
.score-page .empty { margin-top: 18px; max-width: 760px; }

/* ------------------------------------------------------------------ toast and footer */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px;
  width: max-content; max-width: min(92vw, 560px); font-size: 14px; line-height: 1.4; z-index: 30; box-shadow: 0 16px 40px -12px rgba(23, 20, 15, 0.5); cursor: pointer; animation: toast-in 0.25s ease-out; }
.toast svg { flex: none; }
.toast.err { background: var(--bad); }
.toast.ok svg { color: #8fd1b2; }
.toast a { display: inline-flex; align-items: center; gap: 4px; color: #ffd9a8; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { max-width: 1160px; margin: 24px auto 0; padding: 22px 32px 44px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { display: inline-flex; align-items: center; gap: 4px; color: #4a4339; }
footer p { margin: 8px 0 0; }

/* ------------------------------------------------------------------ practice page */
.practice-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; }
.practice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-areas: 'steps side' 'log side'; gap: 0 36px; align-items: start; }
.pg-steps { grid-area: steps; min-width: 0; }
.pg-side { grid-area: side; position: sticky; top: 84px; margin-top: 16px; }
.pg-log { grid-area: log; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; box-shadow: var(--shadow-1); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-head h3 { margin: 0; font-size: 18px; }
.side-card .big-ring { display: block; max-width: 330px; margin: 4px auto 0; }
.side-status { margin: 2px 0 10px; text-align: center; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.5; }
.side-card .legend { margin: 0 0 2px; }
.seat-name { font: 700 13px var(--mono); fill: var(--ink); }
.practice .steps-list { list-style: none; padding: 0; margin: 16px 0; max-width: 860px; }
.practice .steps-list li { position: relative; padding: 12px 16px 12px 54px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--card); line-height: 1.45; font-size: 15px; }
.step-n { position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; background: var(--card); }
.practice .steps-list li.done { opacity: 0.58; padding: 8px 16px 8px 54px; }
.practice .steps-list li.done h3 { margin: 0; font-size: 15px; }
.practice .steps-list li.done .step-n { top: 8px; width: 24px; height: 24px; }
.practice .steps-list li.done .step-n { background: var(--jade); border-color: var(--jade); color: #fff; }
.practice .steps-list li.now { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(210, 86, 59, 0.12); }
.practice .steps-list li.now .step-n { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------ compact: the whole practice flow fits on one screen */
.page.practice { padding-top: 24px; padding-bottom: 48px; }
.practice h1 { font-size: clamp(26px, 2.9vw, 40px); }
.practice .eyebrow { margin-bottom: 6px; }
.practice .lede { font-size: 15px; line-height: 1.5; margin: 4px 0 0; max-width: 720px; }
.practice .steps-list li h3 { font-size: 16px; }
.practice .steps-list li p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.step-actions .btn { margin: 0; }
.inline-link { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; text-underline-offset: 3px; }
.round-box { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.round-head { display: flex; gap: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.round-box .row { margin-top: 10px; flex-wrap: wrap; }
.round-box .row input { max-width: 120px; }
.log { font-family: var(--mono); font-size: 12.5px; background: #1b1812; color: #efe8da; padding: 16px 18px; border-radius: 14px; max-width: 860px; max-height: 320px; overflow: auto; line-height: 1.7; }
.log .muted { color: #9d9486; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .practice-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'steps' 'side' 'log'; }
  .pg-side { position: static; margin: 0 0 20px; }
  .side-card .big-ring { max-width: 300px; }
}
@media (max-width: 960px) {
  .top { gap: 16px; padding: 12px 20px; }
  .top nav a { padding: 8px 10px; }
}
@media (max-width: 860px) {
  .page { padding: 26px 16px 44px; }
  .hero, .circle-head, .circle-body, .empty-showcase, .practice-split { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 20px; }
  .story svg { max-width: 380px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step + .step { padding: 22px 18px 22px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .create { padding: 24px 18px; }
  .create .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-showcase { padding: 20px; }
  footer { padding: 20px 16px 36px; }
}
@media (max-width: 760px) {
  .top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'brand right' 'nav nav'; gap: 8px 10px; padding: 10px 14px 8px; }
  .brand { grid-area: brand; }
  .top .right { grid-area: right; justify-self: end; gap: 8px; min-width: 0; }
  .top nav { grid-area: nav; overflow-x: auto; gap: 2px; margin: 0 -6px; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .netpick { height: 38px; padding: 0 11px; }
  .netpick .nettag { display: none; }
  .btn.connect { height: 38px; padding: 0 14px; }
  .btn.connect .lg { display: none; }
  .btn.connect .sm { display: inline; }
  .acct { height: 38px; font-size: 12px; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable thead { display: none; }
  .rtable { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .rtable tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 10px 14px 12px; }
  .rtable td { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border-bottom: 0; padding: 6px 0; white-space: normal; min-width: 0; }
  .rtable td::before { content: attr(data-label); font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .rtable td.who { grid-column: 1 / -1; order: -1; flex-direction: row; align-items: center; justify-content: space-between; border-bottom: 1px solid #ece4d6; padding: 2px 0 10px; margin-bottom: 4px; }
  .rtable td[data-label="#"] { display: none; }
  .rtable tbody tr:hover td { background: transparent; }
  .rtable tr.me { background: #f6e3dc; }
  .rtable tr.me td { background: transparent; }
  .rtable tr.empty-row { display: block; }
  .rtable tr.empty-row td[colspan] { padding: 4px 0; }
  .rtable tr.empty-row td[colspan]::before { content: none; }
  .addr-full { display: none; }
  .addr-short { display: inline; }
  .live { padding: 16px; }
  .live li { grid-template-columns: minmax(0, 1fr) auto; }
  .live .when { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  h1 { font-size: 40px; }
  .lede { font-size: 17px; }
  .create .grid { grid-template-columns: minmax(0, 1fr); }
  .field.wide { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(even) { padding: 20px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .btn.big { width: 100%; white-space: normal; text-align: center; }
  .cta-row { flex-direction: column; }
  .trust { flex-direction: column; gap: 10px; }
  .circle-head .facts { gap: 12px 22px; }
  .facts b { font-size: 20px; }
  .score-card { padding: 20px; }
  .payouts li { grid-template-columns: 26px 20px minmax(0, 1fr); }
  .payouts .amt { grid-column: 3; text-align: left; }
}
@media (max-width: 380px) {
  .netpick .netname { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand span { font-size: 20px; }
}
@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; }
}

/* ------------------------------------------------------------ zappot sats additions */
.loading { color: var(--muted); padding: 48px 0; }
.invoice-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--field); }
.invoice-box code { display: block; word-break: break-all; font-size: 12px; max-height: 110px; overflow: auto; margin: 8px 0; padding: 8px; border-radius: 8px; background: #ebe3d4; }
.flags { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.flags li { font-size: 14px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); line-height: 1.45; }
.flags li.warn { border-left-color: var(--accent); }
.flags li.info { border-left-color: var(--jade); }
.reminder { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: #5a2a1c; font-size: 15px; line-height: 1.5; }
.avatar { display: inline-block; vertical-align: middle; border-radius: 50%; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; }
.who-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.who-line .mono { font-family: var(--mono); font-size: 13px; }
.note { font-size: 14px; line-height: 1.6; color: var(--body); margin: 10px 0 0; }
.note.bad { color: var(--bad); }
.create .practice-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); margin-top: 6px; }
.create .practice-toggle input { width: 16px; height: 16px; padding: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* The toast is display:flex, which beats the UA rule for [hidden]; without this an empty toast
   shows as a black pill at the bottom of every page. */
.toast[hidden] { display: none; }
.netpick .netname { white-space: nowrap; }
.brand { min-width: 0; }
.brand span { white-space: nowrap; }
@media (max-width: 560px) {
  .top .netpick { width: 38px; padding: 0; justify-content: center; }
  .top .netpick .netname, .top .netpick .nettag { display: none; }
}

/* ---------------------------------------------------- matching the on-chain app's chrome */
.brand svg { width: 22px; height: 22px; flex: none; }
.netpick .chev { color: var(--muted); margin-left: 2px; flex: none; }
.btn.connect svg { flex: none; }
.btn.connect .lg { display: inline; }
.btn.connect .sm { display: none; }
@media (max-width: 760px) {
  .btn.connect .lg { display: none; }
  .btn.connect .sm { display: inline; }
}
.trust li span.warn { color: var(--bad); font-weight: 600; }
.story-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.story-fig svg { width: 100%; max-width: 430px; height: auto; overflow: visible; }
.practice .pg-side .legend { margin: 0; }
.side-body { display: flex; justify-content: center; }
.side-body svg { width: 100%; height: auto; max-width: 300px; }
.story-fig figcaption { margin-top: 4px; text-align: center; min-height: 54px; }
.empty.bad p { color: var(--bad); }
.empty.bad { border-color: rgba(178, 58, 40, 0.35); background: rgba(178, 58, 40, 0.05); }
