/* feeto — riso print system.
   two inks printed off-register: blue = the coin, pink = the person,
   where they overlap (multiply) = the fee. yellow is only for handle stickers. */

:root {
  --ink: #1B1B3A;
  --paper: #F2EDE1;
  --blue: #0078BF;
  --pink: #FF48B0;
  --yellow: #FFE800;
  --soft: #45455f;          /* secondary text on paper, 8.6:1 */
  --line: 2px solid var(--ink);
  --dash: 2px dashed var(--ink);
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --text: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --gutter: 16px;
  --max: 1560px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
/* paper grain: fractal noise, multiplied over everything, never catches clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .11 0 0 0 0 .23 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ------------------------------------------------------------ mark & wordmark */
.mark { display: inline-block; flex: none; }
.mark circle { mix-blend-mode: multiply; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand:hover { background: none; }
.wordmark, .print {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  line-height: .86;
  color: var(--pink);
  mix-blend-mode: multiply;
  isolation: auto;
}
.wordmark::after, .print::after {
  content: attr(data-ink);
  position: absolute;
  left: .055em;
  top: .035em;
  color: var(--blue);
  mix-blend-mode: multiply;
  pointer-events: none;
  white-space: inherit;
}
.wordmark { font-size: 30px; letter-spacing: -.5px; }
/* coin ticker: blue on top, pink offset — reads as ink */
.print { color: var(--blue); white-space: nowrap; }
.fit { container-type: inline-size; }
.fit .print { font-size: min(var(--max-fs, 230px), calc(100cqi / (var(--n, 6) * .62))); }
.print::after { color: var(--pink); }

/* ------------------------------------------------------------------- chrome */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; text-decoration: none; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
.top nav a.pill { border: var(--line); padding: 0 16px; margin-left: 6px; }
.top nav a.pill:hover { background: var(--ink); color: var(--paper); }
.more { position: relative; }
.more summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { text-decoration: underline; text-decoration-thickness: 3px; }
.more .menu { position: absolute; right: 0; top: 100%; z-index: 20; background: var(--paper); border: var(--line); display: grid; min-width: 180px; padding: 6px 0; }
.more .menu a { padding: 0 16px; min-height: 44px; display: flex; align-items: center; }

.foot { margin-top: 72px; border-top: var(--line); padding: 26px 0 34px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------------ stickers */
.sticker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 700;
  padding: .18em .5em;
  line-height: 1.25;
  transform: rotate(-2deg);
  overflow-wrap: anywhere;
  text-decoration: none;
  max-width: 100%;
}
a.sticker:hover { background: var(--yellow); outline: 2px solid var(--ink); }
.sticker.t2 { transform: rotate(3deg); }
.sticker.t3 { transform: rotate(-4deg); }
.sticker.t4 { transform: rotate(2deg); }
.sticker.blank { background: transparent; outline: 2px dashed var(--ink); outline-offset: -2px; font-weight: 400; }
.sticker.big { font-size: clamp(26px, 5vw, 44px); padding: .15em .45em; }
.tag { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 8px; border: var(--line); line-height: 1.4; }
.tag.fill { background: var(--ink); color: var(--paper); }
.tag.pink { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.tag.blue { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ------------------------------------------------------------------- buttons */
.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  font: 700 18px/1.1 var(--text);
  text-decoration: none;
  border: var(--line);
  cursor: pointer;
  border-radius: 0;
  text-align: center;
}
.btn { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--ink); color: var(--yellow); }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { background: var(--yellow); color: var(--ink); }
.btn:disabled, .btn-line:disabled { opacity: .55; cursor: not-allowed; }
.btn.small, .btn-line.small { min-height: 44px; font-size: 15px; padding: 0 14px; }
.btn.wide, .btn-line.wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; font: 700 15px var(--text); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* -------------------------------------------------------------------- fields */
label { font-weight: 700; }
.field { display: grid; gap: 6px; }
.field .hint { font-size: 14px; color: var(--soft); font-weight: 400; }
input[type=text], input[type=search], select {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: 400 18px var(--text);
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  border-radius: 0;
  appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder { color: #6b6b80; }
input[aria-invalid=true] { border-color: var(--pink); box-shadow: inset 6px 0 0 var(--pink); }

/* ----------------------------------------------------------------- messages */
.msg { border: var(--line); padding: 14px 16px; display: grid; gap: 8px; background: var(--paper); }
.msg b { font-size: 18px; }
.msg.bad { border-left: 10px solid var(--pink); }
.msg.good { border-left: 10px solid var(--blue); }
.msg.wait { border-style: dashed; }
.quiet { color: var(--soft); font-size: 15px; }
.mono-addr { font-family: var(--text); overflow-wrap: anywhere; word-break: break-all; }

/* --------------------------------------------------------------- section bits */
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.section { margin-top: 64px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: .5px; }
.box { border: var(--line); padding: 20px; background: var(--paper); }
.box.dashed { border-style: dashed; }
.lines { display: grid; }
.lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: var(--dash); align-items: baseline; }
.lines > div:first-child { border-top: 0; }
.lines dt, .lines .k { color: var(--soft); }
.lines .v { font-weight: 700; text-align: right; overflow-wrap: anywhere; min-width: 0; }
dl { margin: 0; }
dd { margin: 0; }

/* =================================================================== home */
.launcher { padding-top: 18px; padding-bottom: 8px; position: relative; }
.launcher .bigmark { display: none; }
@media (min-width: 1000px) { .launcher .bigmark { display: block; position: absolute; right: var(--gutter); top: 10px; width: 300px; height: 240px; pointer-events: none; } }
.sentence { display: grid; gap: 4px; }
.sentence .lead {
  display: flex; align-items: flex-end; gap: .12em; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(96px, 22vw, 260px); line-height: .8; letter-spacing: -2px;
}
.sentence .lead .fee { color: var(--pink); mix-blend-mode: multiply; }
.sentence .lead .to { color: var(--blue); mix-blend-mode: multiply; margin-left: -.06em; }
.who { position: relative; margin-top: 18px; display: grid; gap: 10px; }
.who input {
  font: 700 clamp(26px, 5vw, 46px)/1.1 var(--text);
  border: 0; border-bottom: 5px solid var(--ink);
  background: transparent; padding: 8px 0; min-height: 72px;
}
.who input:focus-visible { outline: none; border-bottom-color: var(--pink); }
.who .detected { min-height: 44px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 16px; }
.who .detected .sticker { font-size: 22px; }
.coin-fields { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 760px) { .coin-fields { grid-template-columns: 1.4fr 1fr; } .coin-fields .span { grid-column: 1 / -1; } }
.imgpick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.imgpick .thumb { width: 72px; height: 72px; border: var(--line); object-fit: cover; }
.imgpick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opts { border: var(--dash); padding: 0 16px; }
.opts summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.opts[open] { padding-bottom: 16px; }
.opts .field { margin-top: 4px; }
.print-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; }
.print-row .btn { min-height: 64px; font-size: 22px; padding: 0 34px; }
.status { margin-top: 20px; }

.how3 { display: grid; gap: 0; border: var(--line); counter-reset: s; }
.how3 li { list-style: none; padding: 18px 20px; border-top: var(--line); display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; font-size: 18px; }
.how3 li:first-child { border-top: 0; }
.how3 li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 44px; line-height: .9; color: var(--blue); mix-blend-mode: multiply; }
.how3 li:nth-child(2)::before { color: var(--pink); }
@media (min-width: 900px) { .how3 { grid-template-columns: repeat(3, 1fr); } .how3 li { border-top: 0; border-left: var(--line); } .how3 li:first-child { border-left: 0; } }
ol.how3 { padding: 0; margin: 0; }

/* =================================================================== wall */
.wall { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ticket {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px 14px 22px; border: var(--line); background: var(--paper);
  text-decoration: none; color: var(--ink); min-height: 108px;
}
.ticket::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; border-left: var(--dash); }
.ticket:hover { background: var(--paper); outline: 3px solid var(--ink); outline-offset: -1px; }
.ticket:nth-child(3n+2) { transform: rotate(.6deg); }
.ticket:nth-child(3n) { transform: rotate(-.5deg); }
.ticket .pic { width: 64px; height: 64px; border: var(--line); object-fit: cover; background: var(--blue); }
.ticket .pic.none { display: grid; place-items: center; background: var(--paper); }
.ticket .t { font-family: var(--display); font-size: calc(34px * 6 / var(--n, 6)); line-height: .95; color: var(--blue); white-space: nowrap; min-width: 0; }
.ticket .to { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 15px; }
.ticket .to .sticker { font-size: 14px; padding: .18em .38em; gap: .26em; }
.ticket .meta { font-size: 13px; color: var(--soft); margin-top: 6px; }
@media (max-width: 520px) {
  .wall { gap: 12px; }
  .ticket { grid-template-columns: 48px 1fr; min-height: 84px; padding: 10px 12px 10px 20px; }
  .ticket .pic { width: 48px; height: 48px; }
  .ticket .t { font-size: calc(28px * 6 / var(--n, 6)); }
  .ticket .to { margin-top: 4px; }
}
.empty {
  border: var(--dash); padding: 36px 22px; display: grid; gap: 12px; justify-items: start; text-align: left;
}
.empty .big { font-family: var(--display); font-size: clamp(40px, 8vw, 84px); line-height: .9; color: var(--pink); mix-blend-mode: multiply; }
.skeleton { height: 108px; border: var(--dash); }

/* =================================================================== coin */
.coin { display: grid; gap: 36px; padding-top: 10px; }
@media (min-width: 1000px) { .coin { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.coin .for { font-size: 18px; }
.coin .for .sticker { margin-top: 10px; }
.coin .ticker { margin-top: 24px; letter-spacing: -1px; line-height: .9; }
.coin .name { font-size: 20px; font-weight: 700; margin-top: 10px; }
.coin .art { width: 150px; height: 150px; border: var(--line); object-fit: cover; margin-top: 26px; }
.split { display: grid; grid-template-columns: 1fr; border: var(--line); margin-top: 30px; }
.split .bar { display: flex; height: 22px; border-bottom: var(--line); }
.split .bar .c { background: var(--pink); }
.split .bar .h { background: var(--blue); }
.split .legend { display: grid; grid-template-columns: 1fr 1fr; }
.split .legend > div { padding: 12px 14px; }
.split .legend > div + div { border-left: var(--line); }
.split .pct { font-family: var(--display); font-size: 40px; line-height: 1; }
.receipt { border: var(--line); padding: 22px; display: grid; gap: 14px; background: var(--paper); }
.receipt h2 { font-size: 20px; }
.copy { display: flex; gap: 8px; align-items: stretch; }
.copy code { flex: 1; min-width: 0; border: var(--line); padding: 10px 12px; font: 15px var(--text); overflow-wrap: anywhere; word-break: break-all; display: flex; align-items: center; }

/* =================================================================== person */
.person-head { display: grid; gap: 16px; padding-top: 10px; }
.person-head .sticker { font-size: clamp(30px, 7vw, 64px); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: var(--paper); padding: 22px; }
.cta p { font-size: 22px; font-weight: 700; }
.cta .btn { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: var(--line); }
.stat-strip > div { padding: 14px 16px; border-left: var(--line); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .n { font-family: var(--display); font-size: 40px; line-height: 1; }
@media (max-width: 520px) { .stat-strip > div { border-left: 0; border-top: var(--line); } .stat-strip > div:first-child { border-top: 0; } }

/* =================================================================== me */
.me-head { display: grid; gap: 6px; padding-top: 6px; }
.me-head .print { font-size: clamp(80px, 22vw, 180px); }
.signin { display: grid; gap: 12px; max-width: 460px; margin-top: 26px; }
.signin .btn, .signin .btn-line { justify-content: flex-start; width: 100%; }
.bal { display: grid; gap: 16px; }
.bal-card { border: var(--line); padding: 18px; display: grid; gap: 12px; }
.bal-card .amt { font-family: var(--display); font-size: 44px; line-height: 1; }
.bal-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.me-grid { display: grid; gap: 22px; }
@media (min-width: 980px) { .me-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.coinlist { display: grid; }
.coinlist a, .coinlist > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: var(--dash); text-decoration: none; align-items: baseline; }
.coinlist .t { font-family: var(--display); font-size: 24px; color: var(--blue); }

/* =================================================================== reading pages */
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 14vw, 150px); line-height: .85; letter-spacing: -1px; margin: 16px 0 26px; }
.page-title .p { color: var(--pink); mix-blend-mode: multiply; }
.page-title .b { color: var(--blue); mix-blend-mode: multiply; }
.faq details { border-top: var(--line); }
.faq details:last-child { border-bottom: var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; font-weight: 700; font-size: 18px; cursor: pointer; padding: 8px 0; }
.faq details > div { padding: 0 0 18px; display: grid; gap: 10px; max-width: 760px; }
.legal-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .legal-grid { grid-template-columns: 260px 1fr; } .legal-grid aside { position: sticky; top: 20px; align-self: start; } }
.legal-grid aside nav { display: grid; border: var(--line); }
.legal-grid aside nav a { padding: 0 14px; min-height: 48px; display: flex; align-items: center; border-top: var(--line); font-weight: 700; text-decoration: none; }
.legal-grid aside nav a:first-child { border-top: 0; }
.legal-grid aside nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* tables (fees, board, receipts, routes) */
.table-wrap { overflow-x: auto; border: var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-top: var(--dash); vertical-align: top; }
thead th { border-top: 0; border-bottom: var(--line); font-size: 14px; }
td.num, th.num { text-align: right; white-space: nowrap; }
.rank { font-family: var(--display); font-size: 28px; line-height: 1; }

/* ---------------------------------------------------- stacked list for phones */
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: grid; padding: 10px 12px; border-top: var(--line); }
  table.stack tr:first-child { border-top: 0; }
  table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  table.stack td::before { content: attr(data-k); color: var(--soft); font-weight: 400; }
  table.stack td.num { text-align: right; }
}

/* =================================================================== race */
.race-legs { display: grid; gap: 18px; }
@media (min-width: 860px) { .race-legs { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.leg { border: var(--line); padding: 18px; display: grid; gap: 10px; align-content: start; }
.leg.solana { box-shadow: inset 0 10px 0 var(--blue); padding-top: 26px; }
.leg.robinhood { box-shadow: inset 0 10px 0 var(--pink); padding-top: 26px; }
.vs { font-family: var(--display); font-size: 64px; line-height: 1; align-self: center; justify-self: center; }
.meter { height: 16px; border: var(--line); display: flex; }
.meter i { display: block; background: var(--ink); }

/* =================================================================== roadmap */
.road { display: grid; gap: 0; border: var(--line); }
.road > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; border-top: var(--line); }
.road > div:first-child { border-top: 0; }
@media (min-width: 760px) { .road > div { grid-template-columns: 220px 1fr; } }

/* =================================================================== overlay (obs) */
body.overlay { background: transparent; min-height: 0; }
body.overlay::after { display: none; }
.ov { display: inline-grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--paper); border: 3px solid var(--ink); padding: 12px 18px; margin: 12px; max-width: calc(100vw - 24px); }
.ov .print { font-size: 56px; }
.ov .line { font-size: 18px; font-weight: 700; }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .ticket.fresh { animation: drop .5s ease-out both; }
  @keyframes drop { from { transform: translateY(-10px) rotate(-2deg); opacity: 0; } }
}

/* nav: inline on wide screens, one menu on phones */
.nav-inline { display: none; }
@media (min-width: 900px) { .nav-inline { display: contents; } .nav-menu { display: none; } }

.page-title.for-you { font-size: clamp(120px, 36vw, 250px); margin: 4px 0 10px; }
.page-title.for-you .b { display: inline-block; margin-left: -.08em; transform: translateY(.12em); }
.me-grid > *, .bal > *, .coin > *, .bal-card > * { min-width: 0; }
.bal-card .amt { overflow-wrap: anywhere; }
.coinlist a > *, .coinlist > div > * { min-width: 0; }
.coinlist .quiet { text-align: right; }
.box > h2 { font-size: 22px; margin-bottom: 10px; }
@media (max-width: 520px) { .box, .receipt, .bal-card { padding: 16px; } }
.faq .section-head + details { border-top: 0; }
.leg .print-link { text-decoration: none; overflow: hidden; }
.leg .print-link:hover { background: none; }
.leg .print { font-size: clamp(40px, 7vw, 64px); }
.race-ticket .pic.none { font-family: var(--display); font-size: 26px; }

/* chips: a two/three-way choice, real radios underneath */
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.chips legend { font-weight: 700; padding: 0; margin-bottom: 8px; width: 100%; float: left; }
.chips > label { position: relative; font-weight: 700; }
.chips input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips > label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--line); cursor: pointer; background: var(--paper); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }
.chips > label span:hover { background: var(--yellow); color: var(--ink); }
.chips input:checked + span:hover { background: var(--ink); color: var(--yellow); }
.chips .pair-pick { width: 100%; }
.dest { width: 100%; font-size: 16px; }
.dest .tag { margin-right: 6px; }
#platforms legend { font-weight: 400; font-size: 15px; color: var(--soft); }

/* =================================================================== round 2: parity */
.section-gap { margin-top: 22px; }
.bignum { font-family: var(--display); font-size: clamp(44px, 8vw, 84px); line-height: .95; overflow-wrap: anywhere; }
.bignum.small { font-size: clamp(28px, 4.5vw, 40px); }
.bignote { font-family: var(--display); font-size: clamp(26px, 4vw, 38px); line-height: 1.05; margin-bottom: 18px; }
.tiny { font-size: 12px; }
.up { color: var(--blue); }
.down { color: #c4167c; }
.flat { color: var(--soft); }

/* button chips: a period / a tab / an order. same ink as the radio chips */
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: var(--line); background: var(--paper); color: var(--ink); font: 700 15px var(--text); cursor: pointer; border-radius: 0; }
.chip:hover { background: var(--yellow); }
.chip.on { background: var(--ink); color: var(--paper); }
.chip.on:hover { color: var(--yellow); }

/* rubber stamp: state of a route or a channel */
.stamp { display: inline-block; font: 700 13px var(--text); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; border: 2px solid var(--soft); color: var(--soft); transform: rotate(-3deg); }
.stamp.ok { border-color: var(--blue); color: var(--blue); }

/* ------------------------------------------------------------ header search */
.find { display: flex; align-items: stretch; }
.find input[type=search] { min-height: 44px; font-size: 15px; padding: 6px 10px; border: 0; border-bottom: var(--line); background: transparent; width: 190px; }
.find input[type=search]:focus-visible { outline: none; border-bottom-color: var(--pink); box-shadow: 0 3px 0 var(--pink); }
.find-go { min-width: 44px; min-height: 44px; border: 0; border-bottom: var(--line); background: transparent; font: 700 18px var(--text); cursor: pointer; color: var(--ink); }
.find-go:hover { background: var(--yellow); }
.find-inline { display: none; margin-right: 6px; }
@media (min-width: 1100px) { .find-inline { display: flex; } }
.find-menu { padding: 6px 16px 10px; }
.find-menu input[type=search] { width: 100%; }
@media (min-width: 900px) and (max-width: 1099px) { .nav-inline .more .menu::before { content: none; } }
.top nav a.pill.signed { background: var(--yellow); border-color: var(--yellow); transform: rotate(-2deg); max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 40px; }
.top nav a.pill.signed:hover { color: var(--ink); outline: 2px solid var(--ink); }
.find-board { max-width: 560px; }
.find-board input[type=search] { font-size: 20px; }

/* ------------------------------------------------------ home: where + stubs */
#where legend, #pairing legend { font-weight: 700; }
.stubs { display: grid; gap: 14px; }
@media (min-width: 760px) { .stubs.race { grid-template-columns: 1fr 1fr; } }
.stub { position: relative; border: var(--line); padding: 14px 16px 14px 26px; display: grid; gap: 6px; background: var(--paper); }
.stub::before { content: ""; position: absolute; left: 12px; top: 6px; bottom: 6px; border-left: var(--dash); }
.stub.solana { box-shadow: inset 6px 0 0 var(--blue); }
.stub.robinhood { box-shadow: inset 6px 0 0 var(--pink); }
.stub-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.stub .paused { font-style: italic; }
.dest { display: grid; gap: 10px; }

/* on the track: a racing programme, one card per race */
.track { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.program { border: var(--line); padding: 16px; display: grid; gap: 10px; text-decoration: none; background: var(--paper); }
.program:hover { background: var(--paper); outline: 3px solid var(--ink); outline-offset: -1px; }
.program-top { display: flex; justify-content: space-between; border-bottom: var(--dash); padding-bottom: 6px; }
.program-t .print { font-size: 44px; }
.lane { display: grid; grid-template-columns: 154px 1fr 64px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.lane .meter { height: 14px; }
.lane.solana .meter i { background: var(--blue); }
.lane.robinhood .meter i { background: var(--pink); }
.lane-pct { text-align: right; }
.lane-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* where the fee goes: a routing slip per route */
.flow { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.slipflow { border: var(--line); padding: 16px; display: grid; gap: 12px; align-content: start; }
.slipflow.solana { border-top: 10px solid var(--blue); }
.slipflow.robinhood { border-top: 10px solid var(--pink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; font-size: 15px; }
.steps li { border: var(--dash); padding: 4px 8px; }
.steps li + li::before { content: "→"; margin-right: 6px; border: 0; }
.steps li:last-child { background: var(--yellow); border-style: solid; }

/* print from anywhere: shops, each with its stamp */
.shops { list-style: none; margin: 0; padding: 0; display: grid; border: var(--line); }
.shop { display: grid; grid-template-columns: 1fr; gap: 6px 16px; padding: 14px 16px; border-top: var(--dash); align-items: center; }
.shop:first-child { border-top: 0; }
@media (min-width: 760px) { .shop { grid-template-columns: 140px 150px 1fr auto; } }
.shop-name { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }

/* ------------------------------------------------------------- coin page */
.curve-grid { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .curve-grid { grid-template-columns: 1.6fr 1fr; } }
.curve-graph, .candle-graph { border: var(--line); background: var(--paper); padding: 6px; }
.curve-graph svg, .candle-graph svg { display: block; width: 100%; height: 200px; }
.candle-graph svg { height: 220px; }
.race-legs.two .candle-graph svg { height: 170px; }
.trade-head { justify-content: space-between; margin: 14px 0; }
.stat-strip .n { overflow-wrap: anywhere; }
.race-legs.two { grid-template-columns: 1fr; }
@media (min-width: 860px) { .race-legs.two { grid-template-columns: 1fr 1fr; } }
.leg.win { outline: 4px solid var(--ink); outline-offset: -1px; }
.leg.open { border-style: dashed; box-shadow: none; }
.screen { position: relative; aspect-ratio: 16 / 9; border: var(--line); margin-top: 12px; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ask-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .ask-grid { grid-template-columns: 1fr 1fr; } }
.ask { margin: 10px 0 0; border-left: 8px solid var(--pink); padding: 6px 0 6px 16px; display: grid; gap: 10px; justify-items: start; }
.ask blockquote { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.thread { display: grid; gap: 8px; margin-top: 10px; }
.bubble { border: var(--dash); padding: 8px 12px; display: grid; gap: 2px; font-size: 15px; overflow-wrap: anywhere; }
.bubble .who { font-weight: 700; }
.bubble.bot { border-style: solid; background: var(--ink); color: var(--paper); }
.bubble.bot .quiet { color: #cfcfe0; }

/* the printed register: holders, the top earners */
table.register { font-variant-numeric: tabular-nums; }
table.register tbody tr:nth-child(odd) { background: rgba(27, 27, 58, .04); }
table.register td:first-child { width: 48px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: end; } .podium .p1 { order: 2; min-height: 240px; } .podium .p2 { order: 1; min-height: 200px; } .podium .p3 { order: 3; min-height: 170px; } }
.place { border: var(--line); padding: 16px; display: grid; gap: 8px; align-content: end; justify-items: start; }
.place.p1 { background: var(--yellow); }
.place .rank { font-size: 48px; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.people li { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.board-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.board-tools select { width: auto; min-width: 170px; }
.cap.live { font-weight: 700; color: var(--ink); }
.cap.live::before { content: "● "; color: var(--pink); }

/* ---------------------------------------------------------------- tote slip */
.slip { position: relative; max-width: 560px; border: var(--line); background: var(--paper); padding: 20px 20px 22px; display: grid; gap: 14px; }
.slip::before, .slip::after { content: ""; position: absolute; left: -2px; right: -2px; height: 10px; background: radial-gradient(circle at 8px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 16px 10px repeat-x; }
.slip::before { top: -10px; transform: scaleY(-1); }
.slip::after { bottom: -10px; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: var(--dash); padding-bottom: 8px; }
.slip-head b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--pink); mix-blend-mode: multiply; }
.slip .quiet { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- the wallet */
.wallet-card { border: var(--line); padding: 16px; display: grid; gap: 10px; }
.wallet-card > * { min-width: 0; }
.wallet-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.wallet-rows li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 8px 0; border-top: var(--dash); }
.wallet-rows li:first-child { border-top: 0; }
.wallet-rows b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.send { display: grid; gap: 12px; border-top: var(--line); padding-top: 12px; }
.export { display: grid; gap: 10px; }
.export-frame { border: var(--line); width: 100%; max-width: 460px; background: #fff; }

/* ---------------------------------------------------------------- overlay */
.ov-body { display: grid; gap: 6px; min-width: 0; }
.ov-meter { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; }
.ov-meter .meter { width: 180px; }
.ov-meter .meter i { background: var(--pink); }
.ov .line.small { font-size: 15px; }
.ov .line.tiny { font-size: 12px; font-weight: 400; color: var(--soft); }
.shop > .stamp, .shop > .btn-line { justify-self: start; }
.leg > .tag, .leg .row .tag { justify-self: start; }
@media (max-width: 520px) { .stat-strip .n { font-size: 30px; } .bignum { font-size: 44px; } }
#races > .ticker { margin: 16px 0 22px; line-height: .9; }
#races > .bignote { margin-top: 24px; }
.slip fieldset.chips legend { font-weight: 700; }
.more-tokens summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; border-top: var(--dash); }
.more-tokens[open] { display: grid; gap: 8px; }
.place.p1 { background: var(--paper); border-width: 3px; box-shadow: inset 0 14px 0 var(--pink); padding-top: 30px; }
.section-head select { width: auto; min-width: 190px; }
.page-title.for-you { margin-bottom: .22em; }

/* ------------------------------------------------------------ brand marks
   account marks (x, twitch, github, tiktok) are one-colour and follow the ink via
   currentColor; partner logos are their own files, sat flat on the paper.
   never stretched: fixed square box + object-fit. */
.bmark { flex: none; display: inline-block; vertical-align: -.14em; overflow: visible; }
.sticker:has(> .smark) { display: inline-flex; align-items: center; gap: .32em; }
.sticker .smark { width: .82em; height: .82em; }
.sticker .handle { overflow-wrap: anywhere; min-width: 0; }
.plogo { flex: none; display: inline-block; width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -.22em; }
.plabel { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; max-width: 100%; }
.plabel .plogo { vertical-align: 0; }
.chips > label span { gap: 8px; }
.chips > label span .bmark { width: 16px; height: 16px; }
.chips > label span.both .plogo + .plogo { margin-left: -4px; }
.chips > label span.both .plogo:last-of-type { margin-right: 4px; }
.chip { gap: 8px; }
.tag .plabel { gap: .35em; }
.tag.with-mark { display: inline-flex; align-items: center; gap: 6px; }
.tag.with-mark .bmark { width: 13px; height: 13px; }
.btn .plogo, .btn-line .plogo { width: 20px; height: 20px; }
.btn .bmark, .btn-line .bmark { width: 18px; height: 18px; }
.signin .signin-btn { gap: 14px; }
.signin .signin-btn .bmark { width: 22px; height: 22px; }
.foot nav a .bmark { width: 15px; height: 15px; margin-right: 8px; }
.foot .partners { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 700; }
.foot .partners .k { font-weight: 400; color: var(--soft); }
.foot .partners .plogo { width: 18px; height: 18px; }
.shop-name .bmark { width: .8em; height: .8em; margin-right: .25em; vertical-align: -.02em; }
.lines .v .plabel { justify-content: flex-end; white-space: normal; }
.lines .v .plogo { width: 18px; height: 18px; }
.ticket .meta .plogo { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.lane-name .plabel { max-width: 100%; overflow: hidden; }
.top nav a.pill.signed .smark { width: .85em; height: .85em; margin-right: .35em; vertical-align: -.1em; }

/* ------------------------------------------------ tell them (after a print)
   the coin is for someone else: the biggest thing on the success card is the
   offer to tell them. pink = the person; it opens x's own post box. */
.tell { display: grid; gap: 6px; justify-items: start; padding: 12px 0 4px; border-top: var(--dash); }
.tell .tell-btn { background: var(--pink); color: var(--ink); min-height: 60px; font-size: 20px; padding: 0 26px; box-shadow: 5px 5px 0 var(--ink); max-width: 100%; }
.tell .tell-btn span:first-of-type { overflow-wrap: anywhere; }
.tell .tell-btn:hover { background: var(--yellow); color: var(--ink); }
.tell .tell-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.tell .tell-btn .bmark { width: 20px; height: 20px; }
.tell p { margin: 4px 0 0; }

/* logos de parceiros dentro de texto corrido (docs) */
.inline-logo { vertical-align: -3px; }

/* split the fee with more people (22/09): one row per person, the first one is the box above */
.shares { display: grid; gap: 10px; margin-top: 8px; }
.shares[hidden], .split-head[hidden], .split-me[hidden], .split-add[hidden] { display: none; }
.split-head { margin: 0; font-size: 17px; }
.split-rows { display: grid; gap: 10px; }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px 44px; gap: 10px; align-items: center; }
.split-me .split-name { font-weight: 700; font-size: 18px; min-height: 44px; display: flex; align-items: center; padding: 0 12px; background: var(--yellow); border: var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shares .split-who { font: inherit; font-size: 18px; min-height: 0; height: 46px; padding: 0 12px; border: var(--line); background: var(--paper); color: var(--ink); min-width: 0; }
.pctbox { display: flex; align-items: center; border: var(--line); background: var(--paper); min-height: 44px; }
.pctbox .share-pct { font: inherit; font-size: 18px; min-height: 0; height: 40px; border: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; padding: 0 4px 0 10px; text-align: right; }
.pctbox i { font-style: normal; font-weight: 700; padding-right: 10px; }
.pctbox:focus-within, .shares .split-who:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.pctbox .share-pct:focus-visible { outline: none; }
.split-drop { min-height: 44px; min-width: 44px; border: var(--line); background: var(--paper); color: var(--ink); font-size: 22px; cursor: pointer; }
.split-drop:hover { background: var(--yellow); }
.split-add { justify-self: start; }
.split-note { margin: 0; min-height: 1.4em; font-size: 16px; line-height: 1.6; }
.split-note .part { white-space: nowrap; }
.split-note .bad { color: var(--ink); background: var(--yellow); padding: 2px 6px; font-weight: 700; }
@media (max-width: 520px) { .split-row { grid-template-columns: minmax(0, 1fr) 104px 44px; } }
.for.many p { margin: 0 0 10px; }
.for.many .people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.for.many .people li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* the CA while the chain confirms (22/09) */
.ca-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ca-row .ca { font-size: 15px; background: var(--paper); border: var(--line); padding: 8px 10px; word-break: break-all; flex: 1 1 280px; }

/* the zero-count in a tiny price: 0.0₈777 (22/09) */
sub.zeros { font-family: var(--text); font-weight: 700; font-size: .38em; vertical-align: baseline; position: relative; top: .18em; margin: 0 .06em; }

/* overlay on a phone (22/09): nothing runs past the screen */
.ov { box-sizing: border-box; }
.ov > * { min-width: 0; }
.ov .line, .ov .ov-meter, .ov .ov-meter span { overflow-wrap: anywhere; white-space: normal; max-width: 100%; }
@media (max-width: 480px) { .ov { grid-template-columns: auto minmax(0, 1fr); } .ov .print { font-size: 40px; } }

.fees-to-many { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.race-foot { margin-top: 14px; }

/* polymarket (22/09) */
.market-pick input { font: inherit; font-size: 18px; min-height: 46px; padding: 0 12px; border: var(--line); background: var(--paper); color: var(--ink); width: 100%; }
.market-preview { margin-top: 8px; display: grid; gap: 6px; font-size: 16px; }
.market-preview .odds { display: flex; gap: 18px; flex-wrap: wrap; }
.market-preview .bad { background: var(--yellow); padding: 2px 6px; font-weight: 700; justify-self: start; }
.mk-q { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.mk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mk-side { border: var(--line); padding: 14px 16px; background: var(--paper); }
.mk-side .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mk-side.s0 .meter i { background: var(--blue); }
.mk-side.s1 .meter i { background: var(--pink); }
@media (max-width: 600px) { .mk-sides { grid-template-columns: 1fr; } }
#market .mk-sides + .quiet { margin-top: 12px; }

/* polymarket race (22/09): yes vs no, one side per chain */
.mk-race-q { font-family: var(--display); font-size: clamp(28px, 5vw, 56px); line-height: 1.02; margin: 6px 0 14px; overflow-wrap: anywhere; }
.mk-race-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.mk-race-odds .mk-side { display: flex; flex-direction: column; gap: 4px; }
.mk-race-odds .mk-side .n { font-weight: 700; text-transform: lowercase; }
.mk-race-odds .mk-side.lead { box-shadow: 4px 4px 0 var(--ink); }
.mk-race-odds .mk-side.s0.lead { background: color-mix(in srgb, var(--blue) 14%, var(--paper)); }
.mk-race-odds .mk-side.s1.lead { background: color-mix(in srgb, var(--pink) 14%, var(--paper)); }
.mk-bar { grid-column: 1 / -1; height: 12px; border: var(--line); background: var(--pink); }
.mk-bar i { display: block; height: 100%; width: 50%; background: var(--blue); transition: width .5s cubic-bezier(.2,0,0,1); }
.tag.side { background: var(--ink); color: var(--paper); }
#market-preview .race-line { display: block; margin-top: 6px; }
.mk-side .row b .tag.side { margin-left: 8px; font-size: 11px; vertical-align: middle; }

/* bounty (22/09) */
.bounty-pick { margin-top: 14px; }
.bounty-toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.bounty-toggle input[type=checkbox] { flex: 0 0 20px; width: 20px !important; height: 20px !important; min-height: 0 !important; line-height: normal !important; font-size: 16px !important; border: 0 !important; margin: 2px 0 0; padding: 0; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--pink); }
.bounty-toggle span { flex: 1; }
.bounty-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 10px; }
.bounty-fields .bounty-rules { grid-column: 1 / -1; }
@media (max-width: 600px) { .bounty-fields { grid-template-columns: 1fr; } }
.bounty-q { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); line-height: 1.1; margin: 8px 0; overflow-wrap: anywhere; }
.bounty-q.big { font-size: clamp(26px, 4vw, 44px); }
.bounty-status { border: var(--line); padding: 14px 16px; background: var(--paper); margin: 12px 0; }
.bounty-status .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.proofs { padding-left: 20px; }
.proofs li { margin: 6px 0; overflow-wrap: anywhere; }
.proof-form { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.proof-form input { flex: 1 1 260px; min-width: 0; }
.team-item { display: block; margin: 12px 0; padding: 14px 16px; }
.team-item blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--ink); }
.launcher .bounty-pick label.bounty-toggle { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; }
.launcher .bounty-pick label.bounty-toggle > span { display: inline; flex: 1; margin: 0; padding: 0; border: 0; background: none; }

/* =================================================================== composer (22/09 redesign)
   the launcher uses the whole screen: steps on the left, a live preview of the coin on the right (sticky). */
.composer { width: 100%; max-width: 1560px; margin: 0 auto; padding: 22px var(--gutter) 10px; }
.composer-head { display: flex; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 5px solid var(--ink); }
.lead-sm { font-family: var(--display); font-size: clamp(64px, 9vw, 128px); line-height: .8; letter-spacing: -1px; display: flex; gap: .1em; }
.lead-sm .fee { color: var(--pink); mix-blend-mode: multiply; }
.lead-sm .to { color: var(--blue); mix-blend-mode: multiply; margin-left: -.06em; }
.composer-sub { font-size: clamp(16px, 1.6vw, 20px); max-width: 560px; margin: 0 0 6px; }
.composer-grid { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 1000px) { .composer-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 44px; } }
@media (min-width: 1400px) { .composer-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; } }
.steps { display: grid; gap: 22px; min-width: 0; }
.step { border: var(--line); background: color-mix(in srgb, var(--paper) 60%, transparent); padding: 22px 24px 24px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 520px) { .step { padding: 18px 16px 20px; } }
.step-h { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1; margin: 0; display: flex; align-items: center; gap: 14px; font-weight: 400; }
.step-h i { font-style: normal; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 20px; flex: 0 0 38px; }
.step .who { margin-top: 0; }
.step .who input { font-size: clamp(26px, 3.4vw, 42px); min-height: 64px; }
.coin-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .coin-row { grid-template-columns: 1.5fr 1fr; } }
.step .field input:not([type=file]):not([type=checkbox]), .step .field select { width: 100%; }
.step legend.sr, .step input[type=file] { width: 1px !important; max-width: 1px; overflow: hidden; }
/* where it prints: three big cards */
.cards { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cards > label { position: relative; }
.cards input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cards > label > span { display: grid; gap: 6px; align-content: start; min-height: 112px; padding: 16px 18px; border: var(--line); background: var(--paper); cursor: pointer; font-size: 18px; }
.cards > label > span small { font-size: 14px; opacity: .75; }
.cards > label > span:hover { background: var(--yellow); }
.cards input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--pink); }
.cards input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 3px; }
.cards svg, .cards img { width: 28px; height: 28px; }
/* extras */
.extras { padding: 0; }
.extras > summary { list-style: none; cursor: pointer; padding: 20px 24px; }
.extras > summary::-webkit-details-marker { display: none; }
.extras[open] > summary { border-bottom: var(--line); }
.extras-body { padding: 20px 24px 24px; display: grid; gap: 26px; }
.extras .bounty-pick { margin-top: 0; }
/* preview column */
.preview-col { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 1000px) { .preview-col { position: sticky; top: 16px; } }
.preview-card { border: 3px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); padding: 18px; display: grid; gap: 14px; }
.pv-kicker { font-size: 13px; text-transform: lowercase; letter-spacing: .06em; opacity: .7; margin: 0; }
.pv-art { aspect-ratio: 1 / 1; width: 100%; max-width: 360px; justify-self: center; border: 3px solid var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; background: var(--yellow); background-image: radial-gradient(currentColor 22%, transparent 24%); background-size: 22px 22px; }
.pv-art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pv-art .pv-t { font-family: var(--display); font-size: clamp(48px, 7cqi, 96px); color: var(--paper); -webkit-text-stroke: 3px var(--ink); text-shadow: 7px 7px 0 var(--pink); position: relative; padding: 0 10px; text-align: center; overflow-wrap: anywhere; line-height: .95; }
.pv-art .pv-n { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--paper); border: 2px solid var(--ink); padding: 4px 12px; font-weight: 700; font-size: 13px; text-transform: uppercase; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; box-shadow: 4px 4px 0 var(--ink); }
.pv-title { font-family: var(--display); font-size: clamp(34px, 3vw, 46px); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.pv-rows { display: grid; gap: 0; border-top: 2px dashed var(--ink); }
.pv-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 2px dashed var(--ink); font-size: 15px; align-items: center; }
.pv-rows > div > span:first-child { opacity: .7; }
.pv-rows > div > b { text-align: right; overflow-wrap: anywhere; }
.pv-split { display: grid; grid-template-columns: 4fr 1fr; border: 2px solid var(--ink); font-weight: 700; font-size: 14px; }
.pv-split span { padding: 8px 10px; }
.pv-split span:first-child { background: var(--pink); color: var(--paper); }
.pv-split span:last-child { background: var(--blue); color: var(--paper); text-align: center; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-col .print-row { margin-top: 0; display: grid; gap: 10px; }
.preview-col .print-row .btn { width: 100%; min-height: 72px; font-size: 26px; }
/* home sections below the composer use the same width */
.composer ~ .wrap { max-width: 1560px; }

/* bets (22/09) */
.bet-link { font: 700 clamp(18px, 2.2vw, 26px)/1.2 var(--text); border: 0; border-bottom: 5px solid var(--ink); background: transparent; padding: 10px 0; width: 100%; }
.bet-link:focus-visible { outline: none; border-bottom-color: var(--pink); }
.bet-market .odds { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.bet-q { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.bet-q.small { font-size: clamp(18px, 1.8vw, 24px); display: block; }
.bet-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bet-side { border: 3px solid var(--ink); padding: 14px; display: grid; gap: 4px; background: var(--paper); }
.bet-side.s0 { box-shadow: 6px 6px 0 #00AA6E; }
.bet-side.s1 { box-shadow: 6px 6px 0 #E6323C; }
.bet-out { font-weight: 700; text-transform: lowercase; }
.bet-t { font-family: var(--display); font-size: clamp(22px, 2vw, 30px); overflow-wrap: anywhere; line-height: 1; }
.how-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.bets-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.bet-card { display: grid; gap: 12px; padding: 18px; text-decoration: none; color: inherit; border: 3px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.bet-card:hover { background: var(--paper); box-shadow: 8px 8px 0 var(--pink); }
.score { display: grid; border: 2px solid var(--ink); }
.score-head, .score-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: center; }
.score-head > *, .score-row > * { padding: 8px 10px; border-left: 2px solid var(--ink); text-align: center; }
.score-head > :first-child, .score-row > :first-child { border-left: 0; text-align: left; opacity: .75; }
.score-row { border-top: 2px solid var(--ink); }
.score-head b.s0 { background: color-mix(in srgb, #00AA6E 22%, var(--paper)); }
.score-head b.s1 { background: color-mix(in srgb, #E6323C 22%, var(--paper)); }
.score-head b.won { outline: 3px solid var(--ink); outline-offset: -3px; }
.score-row b { font-family: var(--display); font-size: 24px; font-weight: 400; }
.score-row.tick a, .score-row.tick span { font-weight: 700; overflow-wrap: anywhere; }
#bet-one { margin-top: 28px; }
.bets-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.score-head, .score-row { align-items: stretch; }
.score-head > *, .score-row > * { display: flex; align-items: center; justify-content: center; min-width: 0; overflow-wrap: anywhere; }
.score-head > :first-child, .score-row > :first-child { justify-content: flex-start; }

/* code blocks (agents docs) */
.prose pre { background: var(--ink); color: var(--paper); padding: 16px 18px; overflow-x: auto; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--pink); font-size: 14px; line-height: 1.5; max-width: 100%; }
.prose pre code { font-family: var(--text); white-space: pre; }
.prose code { background: color-mix(in srgb, var(--yellow) 55%, transparent); padding: 0 4px; }
.prose pre code { background: none; padding: 0; }
.prose > * { min-width: 0; }
.prose code { overflow-wrap: anywhere; }
.prose pre { width: 100%; }
.agent-key .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.agent-key input { flex: 1 1 220px; min-width: 0; min-height: 48px; border: var(--line); background: var(--paper); padding: 0 12px; font: inherit; }

/* admin (22/09) */
.admin-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.code-in { font: 700 28px/1 var(--text); letter-spacing: .3em; width: 9ch; min-height: 56px; border: var(--line); background: var(--paper); padding: 0 12px; }
.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.admin-switch { border: 3px solid var(--ink); padding: 16px; display: grid; gap: 10px; background: var(--paper); }
.admin-switch.off { box-shadow: 6px 6px 0 var(--pink); }
.admin-kpi { border: 2px solid var(--ink); padding: 14px 16px; display: grid; gap: 4px; }
.admin-kpi b { font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table td { border-bottom: 1px dashed var(--ink); padding: 8px 6px; overflow-wrap: anywhere; }
.admin-table td.num { text-align: right; white-space: nowrap; }
.admin-table tr.bad-row { color: #b00020; }
.admin-confirm { border: 3px solid var(--ink); background: var(--yellow); padding: 16px; margin: 12px 0; }
