/* the open web: HIS X visuals as the look (the cobalt orb, the signal bridge): soft white studio
   light, matte white and glossy cobalt objects, a glowing line with a yellow node, a geometric
   lowercase wordmark. Every surface is a generated picture nine-sliced (white panel, blue window,
   pills, the recessed field); no drawn CSS panels. */
:root {
  --bg: #f3f5f9;
  --ink: #0f1115;
  --blue: #1f4fe0;
  --blue-ink: #1a3fb8;
  --green: #2fa84f;
  --red: #d8342b;
  --yellow: #f2b705;
  --muted: #5f6674;
  --line: #d9dde5;
  --display: "Satoshi", "Segoe UI", sans-serif;
  --text: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Consolas, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page: min(1220px, calc(100vw - 32px));
}
@font-face { font-family: "Satoshi"; src: url(/fonts/satoshi-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(/fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(/fonts/satoshi-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(/fonts/satoshi-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 500 16.5px/1.6 var(--text); font-synthesis: none; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: var(--blue-ink); text-underline-offset: 3px; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
code, .mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- pills (generated) */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px;
  color: var(--ink); text-decoration: none; cursor: pointer; background: none; white-space: nowrap; user-select: none;
  font: 600 15px/1 var(--text); letter-spacing: .01em;
  border-style: solid; border-width: 13px 22px 15px 22px;
  border-image: url(/art2/btn_white.png) 40 66 46 66 fill / 13px 22px 15px 22px stretch;
  font-weight: 700; position: relative; overflow: visible;
  transition: transform .35s var(--spring), filter .25s var(--ease);
}
.key:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(31, 79, 224, .2)); }
.key:active { transform: translateY(2px) scale(.97); filter: drop-shadow(0 1px 2px rgba(31, 79, 224, .2)); transition-duration: .08s; }
.key-blue, .key.on { color: #fff; border-image-source: url(/art2/btn_blue.png); }
.key[aria-disabled="true"], .key:disabled { cursor: not-allowed; opacity: .5; filter: grayscale(.6); transform: none; }
.key.small { min-height: 40px; font-size: 13px; }
.key img { display: block; }
.key-blue img[src*="pump"] { background: #fff; border-radius: 50%; padding: 2px; }

/* ---------------------------------------------------------------- panels (generated white plate / blue window) */
.win {
  position: relative; margin: 0 0 24px; border-style: solid;
  border-width: 22px 22px 26px 22px;
  border-image: url(/art2/plate_white.png) 100 60 70 100 fill / 50px 30px 35px 50px stretch;
}
.win-blue { border-width: 44px 20px 28px 20px; border-image: url(/art2/plate_blue.png) 88 40 58 130 fill / 44px 20px 29px 65px stretch; }
.win.in { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.win > .bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 28px; min-height: 28px; font: 700 19px/1.15 var(--display); letter-spacing: -.01em; }
.win-blue > .bar { position: absolute; left: 66px; right: 16px; top: -40px; height: 36px; margin: 0; color: #fff; font-size: 16px; }
.win > .bar img { height: 30px; width: auto; }
.win-blue > .bar img { height: 26px; }
.win > .bar .right { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--muted); }
.win-blue > .bar .right { color: #dfe6ff; }
.win > .body { padding: 2px 6px 4px; min-width: 0; }
.win-blue > .body { padding: 10px 12px 6px; }
.win h3 { font: 700 18px/1.2 var(--display); margin: 2px 0 6px; }

/* ---------------------------------------------------------------- cover */
.cover { position: relative; padding-bottom: 8px; overflow-x: clip; }
/* a mind's page has its own live window: the bridge and the tagline step aside */
body.inner-mind .bridge, body.inner-mind .tag { display: none; }
body.inner-mind .lockup h1 { font-size: clamp(36px, 5.4vw, 72px); }
body.inner-mind .orb { width: clamp(44px, 5vw, 72px); }
body.inner-mind .label { margin-top: 18px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 16px 0; }
.keys .key { min-width: 104px; }
.lockup { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px); margin: clamp(20px, 4vw, 44px) auto 0; padding: 0 16px; }
.lockup h1 { margin: 0; font: 700 clamp(46px, 9vw, 132px)/1 var(--display); letter-spacing: -.04em; }
.lockup h1 .w { display: inline-block; animation: rise .9s var(--ease) both; }
.lockup h1 .w:nth-child(2) { animation-delay: .08s; } .lockup h1 .w:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
.orb { animation: orb 9s ease-in-out infinite, pop .9s var(--spring) both; transition: transform .6s var(--spring); }
.lockup:hover .orb { transform: rotate(-24deg) scale(1.06); }
@keyframes orb { 50% { translate: 0 -6px; rotate: 8deg; } }
@keyframes pop { from { opacity: 0; scale: .6; } }
.orb { width: clamp(54px, 8vw, 116px); height: auto; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%); mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 66%); }
.tag { animation: rise 1s .25s var(--ease) both; text-align: center; margin: 10px auto 0; padding: 0 16px; font: 500 clamp(15px, 1.6vw, 19px)/1.5 var(--text); color: var(--muted); max-width: 46ch; }

.bridge { position: relative; width: min(1320px, 100vw); margin: 6px auto 0; aspect-ratio: 3 / 1; animation: rise 1.1s .3s var(--ease) both; }
/* a light running along the line, under the node */
.b-streak { position: absolute; height: 3px; top: calc(var(--ly, 57.75%) - 1px); left: 31%; width: calc(var(--fx, 55.5%) - 31%); border-radius: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 35%, rgba(120, 170, 255, .95) 50%, transparent 65% 100%) 0 0 / 300% 100%; animation: streak 2.4s linear infinite; filter: blur(.5px); }
@keyframes streak { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.screen.live::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 0 45%, rgba(31, 79, 224, .07) 50%, transparent 55%) 0 0 / 100% 300%; animation: scan 3s linear infinite; }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.bridge-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-composite: intersect; }
.screen {
  position: absolute; display: block; overflow: hidden; background: #fff; text-decoration: none; color: var(--muted);
  left: var(--sl, 56.75%); top: var(--st, 27.38%); width: var(--sw, 31.21%); height: var(--sh, 47.12%); border-radius: 3px;
}
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s; }
.screen img.on { opacity: 1; }
.screen-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; text-align: center; font: 500 clamp(11px, 1.2vw, 15px)/1.45 var(--mono); }
.screen.live .screen-text { display: none; }
.b-node { position: absolute; width: clamp(14px, 1.7vw, 24px); height: auto; top: calc(var(--ly, 57.75%) - clamp(7px, .85vw, 12px)); left: 31%; animation: travel 3.6s cubic-bezier(.5, 0, .5, 1) infinite; filter: drop-shadow(0 0 8px rgba(242, 183, 5, .8)); pointer-events: none; }
@keyframes travel { 0% { left: 31%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(var(--fx, 55.5%) - 1.2%); opacity: 0; } }
.b-order { position: absolute; left: 6%; top: 80%; width: 32%; display: grid; gap: 2px; text-align: center; }
.b-mind { position: absolute; left: var(--fx, 55.5%); top: 80%; width: var(--fw, 33.6%); display: flex; gap: 8px; align-items: center; justify-content: center; font: 500 12px/1.35 var(--mono); color: var(--muted); }
.b-label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.b-text { font: 600 14px/1.35 var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.b-mind #tape-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.b-mind .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #b9c0cc; }
.b-mind.live .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(47, 168, 79, .18); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47, 168, 79, .05); } }

.label {
  width: min(880px, calc(100vw - 24px)); margin: 4px auto 0; display: grid; gap: 12px; justify-items: center; text-align: center;
  border-style: solid; border-width: 26px 26px 30px 26px;
  border-image: url(/art2/plate_white.png) 100 60 70 100 fill / 50px 30px 35px 50px stretch;
}
.label-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: center; color: var(--muted); font-size: 14px; max-width: 64ch; }
.ticker { font: 800 26px/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.ca { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; font: 500 12px/1.45 var(--mono); }
.ca-label { color: var(--muted); }
.ca-addr { color: var(--ink); word-break: break-all; user-select: all; font-size: 14px; }
.ca-msg { color: var(--green); min-width: 6ch; }
.links { display: flex; gap: 8px; justify-content: center; }

/* ---------------------------------------------------------------- pages */
main { outline: none; }
main:focus { outline: none; }
.title-row { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.title-row img { width: 52px; height: auto; }
.title-row h2 { margin: 0; font: 700 clamp(30px, 4.4vw, 50px)/1.05 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.lead { font-size: 17px; max-width: 64ch; margin: 0 0 20px; color: #2b303a; }

.mind { text-decoration: none; color: inherit; display: block; }
.mind .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 10px; background: #fff; border-radius: 4px; }
.mind .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 1.2s var(--ease); }
.mind:hover .thumb img { transform: scale(1.04) translateY(-2%); }
.mind .thumb .empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font: 500 11px/1.45 var(--mono); padding: 12px; text-align: center; }
.mind .who { display: flex; gap: 10px; align-items: center; }
.mind .who img.coin { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.mind .who b { font: 700 19px/1.1 var(--display); letter-spacing: -.01em; }
.mind .topic { font-size: 14px; margin: 6px 0; color: #3a404c; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px/1.45 var(--mono); color: var(--muted); }
.stats span b { color: var(--ink); }
.mind .win { transition: transform .45s var(--spring), filter .3s var(--ease); }
.mind:hover .win, .mind:focus-visible .win { transform: translateY(-4px); filter: drop-shadow(0 10px 18px rgba(31, 79, 224, .16)); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-weight: 600; }
.feed a { word-break: break-all; }
.feed .meta { font: 500 11px/1.45 var(--mono); color: var(--muted); }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font: 500 12px/1.35 var(--mono); color: #3a404c; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input, select, textarea { font: 16px/1.4 var(--text); color: var(--ink); }
.field {
  width: 100%; min-height: 50px; padding: 4px 6px; background: transparent; outline-offset: 2px;
  border-style: solid; border-width: 14px 18px 14px 18px;
  border-image: url(/art2/field.png) 60 70 60 70 fill / 14px 18px 14px 18px stretch;
}
select.field { appearance: none; -webkit-appearance: none; cursor: pointer; }
textarea.field { min-height: 100px; resize: vertical; }
.pillfield { display: block; border-style: solid; border-width: 14px 18px 14px 18px; border-image: url(/art2/field.png) 60 70 60 70 fill / 14px 18px 14px 18px stretch; }
.pillfield textarea { width: 100%; border: 0; background: transparent; resize: none; min-height: 70px; padding: 4px 4px; outline: none; }
.pillfield:focus-within, .field:focus { filter: drop-shadow(0 0 6px rgba(31, 79, 224, .35)); }
.counter { font: 500 12px var(--mono); color: var(--muted); text-align: right; }
.note { font: 500 11px/1.6 var(--mono); color: var(--muted); }
.err { color: var(--red); font: 500 12px/1.45 var(--mono); }
.okmsg { color: var(--green); font: 500 12px/1.45 var(--mono); }
.statusline { min-height: 1.5em; }

.enterbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; min-width: 260px; padding: 0 18px; cursor: pointer; background: none; color: #fff; font: 700 20px/1 var(--display); letter-spacing: -.01em;
  border-style: solid; border-width: 18px 30px 20px 30px; border-image: url(/art2/btn_blue.png) 40 66 46 66 fill / 18px 30px 20px 30px stretch; transition: transform .35s var(--spring), filter .25s; }
.enterbtn img { width: 30px; height: auto; }
.enterbtn:hover:not(:disabled) { transform: translateY(-3px); filter: drop-shadow(0 12px 20px rgba(31, 79, 224, .35)); }
.enterbtn:active:not(:disabled) { transform: translateY(2px) scale(.97); transition-duration: .08s; }
.enterbtn:disabled { opacity: .5; filter: grayscale(.6); cursor: not-allowed; }
.gobtn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; cursor: pointer; background: none; color: #fff; font: 700 17px/1 var(--display);
  border-style: solid; border-width: 14px 24px 16px 24px; border-image: url(/art2/btn_blue.png) 40 66 46 66 fill / 14px 24px 16px 24px stretch; }
.gobtn img { width: 28px; height: auto; }
.gobtn { transition: transform .35s var(--spring), filter .25s; }
.gobtn:hover:not(:disabled) { transform: translateY(-2px); filter: drop-shadow(0 10px 16px rgba(31, 79, 224, .3)); }
.gobtn:active:not(:disabled) { transform: translateY(2px) scale(.97); transition-duration: .08s; }
.gobtn:hover img { animation: nod .6s var(--ease); }
@keyframes nod { 40% { transform: translateX(4px) scale(1.12); } }
.gobtn:disabled { opacity: .5; cursor: not-allowed; }

.livewin { max-width: 680px; margin: 0 auto 24px; position: relative; border-style: solid; border-width: 44px 20px 28px 20px; border-image: url(/art2/plate_blue.png) 88 40 58 130 fill / 44px 20px 29px 65px stretch; }
.livewin .screen { position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.livewin .cap { position: absolute; left: 66px; right: 14px; top: -38px; height: 32px; display: flex; align-items: center; justify-content: space-between; color: #fff; font: 600 14px/1 var(--display); }
.log { list-style: none; margin: 0; padding: 0; font: 500 12px/1.5 var(--mono); max-height: 320px; overflow: auto; }
.log li { display: grid; grid-template-columns: 50px 104px minmax(0, 1fr); gap: 8px; padding: 3px 0; }
.log li .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3a404c; }
.log li.bad { color: var(--red); }

.order { padding: 10px 0; border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order .q { font-weight: 600; overflow-wrap: anywhere; }
.order .a { margin: 6px 0 0; padding-left: 12px; border-left: 3px solid var(--blue); white-space: pre-wrap; overflow-wrap: anywhere; color: #2b303a; }
.order .a.refused { border-left-color: var(--red); }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--mono); margin: 0 10px 0 0; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9c0cc; }
.chip.y::before { background: var(--yellow); } .chip.g::before { background: var(--green); } .chip.r::before { background: var(--red); } .chip.b::before { background: var(--blue); }
.chip.y { color: #8a6700; } .chip.g { color: #1f7a3a; } .chip.r { color: var(--red); } .chip.b { color: var(--blue-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font: 500 12px/1.5 var(--mono); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.bars { display: grid; gap: 9px; }
.barline { display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px; gap: 10px; align-items: center; font: 500 12px var(--mono); }
.barline .track { height: 8px; background: #e6e9ef; border-radius: 4px; overflow: hidden; }
.barline .fill { height: 100%; border-radius: 4px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font: 800 30px/1 var(--display); color: var(--blue); letter-spacing: -.03em; }
.steps h3 { margin: 2px 0 4px; font: 700 18px/1.2 var(--display); }
.steps p { margin: 0; color: #3a404c; }
table.nums { width: 100%; border-collapse: collapse; font: 500 12px/1.5 var(--mono); }
table.nums td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.nums td:last-child { text-align: right; }
.risk { font: 500 12px/1.5 var(--mono); color: var(--muted); margin: 18px 0 0; }

.walletlist { display: grid; gap: 10px; margin-bottom: 12px; min-width: min(360px, 78vw); }
.walletlist button img { width: 22px; height: 22px; }
dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(15, 17, 21, .35); backdrop-filter: blur(3px); }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
  .bridge { margin-bottom: 70px; }
  .b-order { top: calc(100% + 4px); left: 4%; width: 44%; }
  .b-mind { top: calc(100% + 4px); left: 52%; width: 44%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 12px 10px 0; }
  .keys .key { min-width: 0; font-size: 13px; padding: 0 2px; border-width: 12px 16px 14px 16px; border-image-width: 12px 16px 14px 16px; }
  .bridge { width: 118vw; margin-left: -9vw; margin-bottom: 92px; }
  .b-order { left: 9%; width: 38%; } .b-mind { left: 53%; width: 38%; }
  .b-text { font-size: 12px; }
  .win:not(.win-blue) { border-width: 20px 16px 22px 16px; }
  .win:not(.win-blue) > .bar { margin-left: 30px; font-size: 17px; }
  .log li { grid-template-columns: 40px 90px minmax(0, 1fr); font-size: 12px; }
  .barline { grid-template-columns: 84px minmax(0, 1fr) 84px; }
  .enterbtn { min-width: 220px; }
}
@media (max-width: 360px) { .keys .key { font-size: 12px; } }

/* ---------------------------------------------------------------- picture drop zone (replaces the browser's file button) */
.drop { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; min-height: 104px; cursor: pointer;
  border-style: solid; border-width: 16px 18px 18px 18px; border-image: url(/art2/field.png) 60 70 60 70 fill / 16px 22px 18px 22px stretch;
  transition: transform .35s var(--spring), filter .25s var(--ease); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .pic { width: 76px; height: 76px; display: grid; place-items: center; }
.drop .pic img { max-width: 76px; max-height: 76px; transition: transform .4s var(--spring); }
.drop .pic img.preview { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.drop b { display: block; font: 700 16px/1.25 var(--display); }
.drop span { font: 500 11px/1.5 var(--mono); color: var(--muted); }
.drop:hover, .drop.over { transform: translateY(-2px); filter: drop-shadow(0 10px 18px rgba(31, 79, 224, .2)); }
.drop:hover .pic img:not(.preview), .drop.over .pic img:not(.preview) { transform: rotate(-8deg) scale(1.1); }
.drop:focus-within { filter: drop-shadow(0 0 7px rgba(31, 79, 224, .45)); }
.drop .clear { position: relative; z-index: 2; margin-top: 6px; }

/* selects: a chevron that is a character, not a drawing */
.selectwrap { position: relative; display: block; }
.selectwrap::after { content: "\2304"; position: absolute; right: 22px; top: 50%; translate: 0 -62%; font: 700 18px/1 var(--text); color: var(--blue); pointer-events: none; }

/* toast (copy, sent) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 140%; opacity: 0; color: #fff; font: 700 15px/1 var(--display); padding: 0 8px; min-height: 48px; display: inline-flex; align-items: center;
  border-style: solid; border-width: 13px 22px 15px 22px; border-image: url(/art2/btn_blue.png) 40 66 46 66 fill / 13px 22px 15px 22px stretch; transition: translate .5s var(--spring), opacity .3s; pointer-events: none; }
.toast.on { translate: -50% 0; opacity: 1; }

/* loading skeleton */
.skel { height: 14px; border-radius: 7px; margin: 10px 0; background: linear-gradient(90deg, #e3e7ee 0 40%, #f1f3f7 50%, #e3e7ee 60% 100%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* count-up numbers keep their width */
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.toc { position: sticky; top: 18px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 10px 7px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font: 600 14px/1.3 var(--text); transition: color .2s, border-color .2s, padding .3s var(--spring); }
.toc a:hover { color: var(--ink); padding-left: 18px; }
.toc a.on { color: var(--blue-ink); border-left-color: var(--blue); }
.doc h2 { font: 700 30px/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 8px; scroll-margin-top: 20px; }
.doc h3 { font: 700 18px/1.3 var(--display); margin: 20px 0 6px; }
.doc p, .doc li { color: #2b303a; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol.plain { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc code { font-size: .86em; background: #e9edf4; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.doc .sec { margin-bottom: var(--g); }
.doc .sec .head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px 28px; }
.doc .sec .head img { width: 40px; height: auto; }
.doc table.nums { margin: 6px 0 12px; }
@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; gap: 10px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: 0; padding: 4px 0; font-size: 13px; }
  .toc a::after { content: " ·"; color: var(--line); }
}

/* ================================================================ the grid
   12 columns inside 1200 px, gutter 24, spacing on an 8 px scale (8 16 24 32 48 72).
   Rows are made of panels of EQUAL HEIGHT: r2 = 7 + 5 columns, r1 = 12; cards are 3 / 2 / 1 up;
   tall content scrolls inside its panel so a row never grows lopsided. */
:root { --g: 24px; --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s9: 72px; --page: min(1200px, calc(100vw - 32px)); }
main { width: var(--page); margin: var(--s6) auto var(--s9); }
.win { display: flex; flex-direction: column; margin: 0; }
.win > .body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.win > .bar { min-height: 30px; }

.sh { display: flex; align-items: center; gap: 12px; margin: var(--s9) 0 var(--s3); }
main > .sh:first-child, main > .tiles + .sh { margin-top: 0; }
.tiles + .sh { margin-top: var(--s6) !important; }
.sh img { width: 44px; height: 44px; object-fit: contain; }
.sh h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--display); letter-spacing: -.03em; }
.sh-meta { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--muted); text-align: right; }
.lead { margin: calc(-1 * var(--s1)) 0 var(--s3); max-width: 64ch; font-size: 17px; color: #3a404c; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.tile { display: grid; gap: 6px; align-content: end; min-height: 124px; padding: 22px 0 0 14px; border-style: solid; border-width: 20px 22px 24px 22px;
  border-image: url(/art2/plate_white.png) 100 60 70 100 fill / 50px 30px 35px 50px stretch; }
.tile b { font: 900 34px/1 var(--display); letter-spacing: -.03em; }
.tile > span { font: 500 11px/1.2 var(--mono); color: var(--muted); }
.tile b .num { font: inherit; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); align-items: stretch; }
.cards > .mind, .cards > .win { height: 100%; }
.mind .win { height: 100%; }
.mind .topic { min-height: 2.9em; }
.mind .stats { margin-top: auto; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6ff08f; box-shadow: 0 0 0 3px rgba(111, 240, 143, .3); margin-right: 8px; animation: pulse 1.2s ease-in-out infinite; }

.r1, .r2 { display: grid; gap: var(--g); margin-top: var(--g); align-items: stretch; }
.r2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.r2 > div { display: flex; flex-direction: column; min-width: 0; }
.r2 > div > .win { flex: 1; }
.r2.top { margin-top: 0; }
.r2 > .sh, .r2 > div > .sh { margin-top: var(--s9); }
.cards + .r2 > div > .sh { margin-top: var(--s9); }
.scrollbox { max-height: 380px; overflow: auto; overscroll-behavior: contain; padding-right: 6px; }
.scrollbox.tall { max-height: 560px; }
.scrollbox::-webkit-scrollbar { width: 8px; } .scrollbox::-webkit-scrollbar-thumb { background: #cfd5df; border-radius: 4px; }

.livewin { max-width: none; margin: 0; display: flex; flex-direction: column; }
.livewin .screen { flex: 1; aspect-ratio: auto; min-height: 300px; }
.livewin .screen img { object-position: left top; }

.coinhead { display: grid; grid-template-columns: 88px 1fr; gap: var(--s3); align-items: center; margin: 0 0 var(--s4); }
.coinhead .coinpic, .coinhead > img { width: 88px; height: 88px; object-fit: cover; border-radius: 22px; }
.coinhead h2 { margin: 0 0 4px; font: 700 clamp(30px, 4vw, 48px)/1.05 var(--display); letter-spacing: -.03em; }
.coinhead .tick { font: 700 .45em/1 var(--mono); color: var(--blue-ink); letter-spacing: 0; vertical-align: middle; }
.coinhead p { margin: 0 0 4px; color: #3a404c; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); }
.amt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: var(--s1); align-items: center; }
.form-label { display: grid; gap: 6px; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .r2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r2 > div > .sh { margin-top: var(--s6); }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .sh { margin: var(--s6) 0 var(--s2); }
  .sh img { width: 36px; height: 36px; }
  .pair { grid-template-columns: 1fr; }
  .amt { grid-template-columns: 1fr 1fr 1fr; }
  .amt .field { grid-column: 1 / -1; }
  .tile { min-height: 96px; } .tile b { font-size: 26px; }
  .coinhead { grid-template-columns: 64px 1fr; gap: var(--s2); }
  .coinhead .coinpic, .coinhead > img { width: 64px; height: 64px; border-radius: 16px; }
  .livewin .screen { min-height: 200px; }
}
.r1 > *, .r2 > *, .cards > * { min-width: 0; }
