/* Polls
   The count at a polling station: a black steel ballot box stencilled BALLOT BOX and POLLS, shut with a violet
   numbered seal, a ballot paper going into its slot with a pencil X; beside it, on a plywood trestle table, the votes
   counted into one stack of ballot papers per outcome, each exactly as high as its price, banded in tens, with a tent
   card on top; an A-board "Polling station" sign in front. The page takes its materials from that hall: a pale wall for
   the ground, white ballot paper with black printed rules for every panel, black steel for the header's lower edge and
   for every button you press (a steel plate with a slot cut into it, a ballot paper waiting above the slot), a pencil X
   in a printed box for whatever you choose, and the seal's violet for the few things that are yours (the open tab, the
   liquidation flag). Green is Yes, red is No. Wordmark and big figures stencilled in Stardos Stencil, everything
   printed in Epilogue, Reddit Mono only for addresses. Loaded after /styles.css, which gives the layout; this file only
   gives the look. The token names below are also read by app.js for the charts, so they stay hex. */
:root {
  --ink-0: #f1f0ec; --ink-1: #e8e6e0; --ink-2: #d9d6ce; --ink-3: #a29f98;
  --paper: #ffffff;
  --line: #141417; --line-soft: #dedcd6; --ink: #141417;
  --fg: #141417; --muted: #5b5a60; --dim: #8c8a90;
  --a: #157347; --a-soft: rgba(21, 115, 71, .1);
  --b: #c4372b; --b-soft: rgba(196, 55, 43, .1);
  --lev: #141417; --lev-soft: rgba(20, 20, 23, .08);
  --up: #157347; --down: #c4372b; --down-soft: rgba(196, 55, 43, .08);
  --graphite: #3b3b40; --steel: #1c1c21; --steel-hi: #34343b; --steel-lo: #0e0e11;
  --violet: #5a33d6; --violet-soft: #ece7fd; --ply: #d9b98a; --ply-edge: #b98d55;
  --display: "Stardos Stencil", "Arial Black", serif;
  --sans: "Epilogue", Arial, "Helvetica Neue", sans-serif;
  --mono: "Epilogue", Arial, sans-serif; /* the base layout sets small labels in --mono; Polls prints them in Epilogue */
  --addr: "Reddit Mono", ui-monospace, Menlo, monospace;
  --edge: 1.5px solid var(--line);
  --hair: 1px solid var(--line-soft);
  /* a pencil X, as you mark a ballot */
  --x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M7 7Q19 19 34 34M34 6Q20 20 6 33' fill='none' stroke='%233b3b40' stroke-width='4.4' stroke-linecap='round'/%3E%3C/svg%3E");
  /* black steel: lit from above, brushed */
  --steel-face: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), linear-gradient(180deg, #3a3a42 0%, #24242a 30%, #1a1a1f 70%, #111114 100%);
  /* paper edge of a counted stack, ten sheets to a bundle */
  --sheets: repeating-linear-gradient(0deg, rgba(150, 146, 137, .55) 0 1px, transparent 1px 3px);
  --shadow: 0 1px 0 rgba(20, 20, 23, .05), 0 18px 30px -24px rgba(20, 20, 30, .5);
  --r: 3px;
  color-scheme: light;
}
body { background: linear-gradient(180deg, #f5f4f0 0, rgba(245, 244, 240, 0) 340px), var(--ink-0); color: var(--fg); font: 400 15px/1.5 var(--sans); }
::selection { background: var(--violet-soft); color: var(--fg); }

/* type */
h2, h3, .h { font: 700 14px/1.2 var(--sans); letter-spacing: 0; color: var(--fg); text-transform: none; }
h1 { font: 700 clamp(25px, 2.3vw, 33px)/1.16 var(--sans); letter-spacing: -.02em; text-transform: none; }
.num, .sum-stats dd, .pos-grid dd, .tbl td.r, .kv dd { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.hint, .empty, .stage-empty, .empty-state p { font-family: var(--sans); color: var(--muted); }

/* the split-flap tiles become stencilled figures; a changed figure drops in like a card set down */
.flaps { gap: 0; }
.flaps > b { width: auto; height: auto; min-width: 0; background: none; border-radius: 0; color: inherit; font: 700 var(--ff, 22px)/1 var(--display); letter-spacing: 0; }
.flaps > b.sp { width: .25em; }
.flaps > b.pt { width: auto; }
.flaps > b.flip { animation: setdown .32s cubic-bezier(.2, .8, .3, 1); }
@keyframes setdown { 0% { transform: translateY(-.35em); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flaps > b.flip { animation: none; } }

/* top bar: white paper over the lid of the ballot box, a black steel strip with its slot along the bottom */
.top { background: linear-gradient(90deg, transparent calc(50% - 90px), #030304 calc(50% - 90px) calc(50% + 90px), transparent calc(50% + 90px)) 0 calc(100% - 4px) / 100% 3px no-repeat, var(--steel-face) 0 100% / 100% 10px no-repeat, var(--paper); border-bottom: 1px solid var(--steel-lo); padding-bottom: 10px; }
.logo { gap: 11px; padding-right: 26px; font: 700 32px/1 var(--display); letter-spacing: .02em; font-stretch: normal; color: var(--fg); }
.logo span { padding-top: 4px; }
.logo .mark { width: 40px; height: 40px; }
.tabs { gap: 0; border-left: var(--edge); }
.tabs a { border-radius: 0; border-right: var(--hair); padding: 0 20px; font: 700 15px var(--sans); color: var(--muted); }
.tabs a:hover { background: #f6f5f2; color: var(--fg); }
/* the open tab carries the seal's violet underneath */
.tabs a[aria-current="page"] { color: var(--fg); background: linear-gradient(var(--violet), var(--violet)) 50% calc(100% - 7px) / calc(100% - 30px) 3px no-repeat; }
.tabs b { font: 700 12px var(--sans); color: var(--paper); background: var(--violet); border-radius: 3px; min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 4px; }
.bal { border-left: var(--hair); }
.bal span { font: 700 12px var(--sans); color: var(--muted); }
.bal strong { font: 700 25px var(--display); }
.net { color: var(--muted); }

/* controls. The buttons you press are a black steel plate like the box's front: a slot cut near the top edge with a
   ballot paper waiting above it, the label stencilled in white. Hovering slides the paper down to the slot, pressing
   posts it and pushes the plate down. */
.btn { border: var(--edge); border-radius: var(--r); font: 700 14.5px var(--sans); background: var(--paper); color: var(--fg); box-shadow: inset 0 -2px 0 var(--ink-2); transition: transform .08s, box-shadow .08s, background-color .15s; }
.btn:hover:not(:disabled) { background: #f6f5f2; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--ink-2); }
.btn.primary, .btn.cta { --sl: min(46%, 110px); position: relative; isolation: isolate; color: #f4f3ee; border: 0; border-radius: var(--r); padding-top: 14px; font: 700 16px var(--display); letter-spacing: .03em; background: var(--steel-face);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 3px 0 #050506, 0 8px 14px -6px rgba(20, 20, 23, .45); }
/* the slot */
.btn.primary::before, .btn.cta::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 6px; width: var(--sl); height: 4px; translate: -50% 0; border-radius: 2px; background: #020203; box-shadow: inset 0 1px 1px #000, 0 1px 0 rgba(255, 255, 255, .16); }
/* the ballot paper above it */
.btn.primary::after, .btn.cta::after { content: ""; position: absolute; z-index: 0; left: 50%; bottom: calc(100% - 7px); width: calc(var(--sl) - 14px); height: 6px; translate: -50% 0; border-radius: 1px 1px 0 0; background: linear-gradient(90deg, transparent 22%, #3b3b40 22% 26%, transparent 26%) 0 2px / 100% 1px no-repeat, #fff; box-shadow: 0 0 0 1px #c9c6be; transform: translateY(-3px); transition: transform .18s, opacity .18s; }
.btn.primary:hover:not(:disabled), .btn.cta:hover:not(:disabled) { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), linear-gradient(180deg, #45454e 0%, #2b2b32 30%, #1f1f25 70%, #141418 100%); }
.btn.primary:hover:not(:disabled)::after, .btn.cta:hover:not(:disabled)::after { transform: translateY(1px); }
.btn.primary:active:not(:disabled), .btn.cta:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 0 #050506, 0 3px 6px -3px rgba(20, 20, 23, .4); }
.btn.primary:active:not(:disabled)::after, .btn.cta:active:not(:disabled)::after { transform: translateY(6px); opacity: 0; }
.btn.primary:focus-visible, .btn.cta:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.btn.cta { --sl: min(40%, 160px); min-height: 64px; padding-top: 18px; font: 700 27px/1 var(--display); }
.btn.cta::before { top: 8px; height: 5px; }
.btn.cta::after { height: 8px; bottom: calc(100% - 9px); }
.btn.cta:disabled { background: linear-gradient(180deg, #e9e8e4, #d6d4ce); color: var(--muted); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn.cta:disabled::before { background: #a9a69f; box-shadow: none; }
.btn.cta:disabled::after { display: none; }
.btn.ghost { background: var(--paper); box-shadow: none; border-color: var(--ink-3); }
.btn.ghost:active:not(:disabled) { transform: none; }
.btn.small { box-shadow: none; border-width: 1px; }
.seg { border: var(--edge); border-radius: var(--r); padding: 2px; background: var(--paper); }
.seg button { border-radius: 2px; font: 700 13px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--steel-face); color: #f4f3ee; box-shadow: none; }
input:not([type="range"]), select { background: var(--paper); border: 1px solid var(--ink-3); border-radius: var(--r); font-family: var(--sans); font-weight: 400; }
input:not([type="range"]):hover, select:hover { border-color: var(--fg); }
input:not([type="range"]):focus-visible, select:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; border-color: var(--fg); box-shadow: 0 0 0 5px var(--violet-soft); }
:focus-visible { outline-color: var(--violet); }
.chips button { font: 700 13px var(--sans); border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--paper); }
.chips button[aria-pressed="true"] { background: var(--violet-soft); border-color: var(--violet); color: var(--fg); box-shadow: inset 0 -2px 0 var(--violet); }

/* market list: a printed register, the current row ticked off with the seal's violet */
.mk { border-right: var(--edge); background: var(--paper); }
.mk-head { border-bottom: var(--edge); }
.mk-row { border-bottom: 1px solid var(--line-soft); }
.mk-row:hover { background: #f8f7f4; }
.mk-row[aria-current="true"] { background: linear-gradient(90deg, var(--violet-soft), rgba(236, 231, 253, .25)); box-shadow: inset 4px 0 0 var(--violet); }
.mk-q { font: 700 15px/1.3 var(--sans); letter-spacing: -.01em; }
.mk-meta { font: 400 12.5px var(--sans); color: var(--muted); }
.mk-px { font: 700 18px/1.15 var(--display); }
.mk-px .pa { color: var(--a); } .mk-px .pb { color: var(--b); }
/* the split bar under each market: the two piles laid side by side, a white line every ten */
.mk-split { height: 7px; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255, 255, 255, .75) calc(10% - 1px) 10%), var(--b); box-shadow: none; }
.mk-split i { background: var(--a); border-radius: 0; box-shadow: none; }
.thumb { border-radius: 2px; }
.thumb.tile { font-family: var(--display); font-weight: 700; border: var(--edge); }
.legal { color: var(--muted); font: 400 12.5px/1.55 var(--sans); }

/* the two sides: the lines of a ballot paper, a printed box on each; the one you chose has a pencil X in its box */
.duel { gap: 12px; border: 0; background: transparent; box-shadow: none; }
.duel-side { position: relative; border: var(--edge); border-radius: var(--r); background: var(--paper); padding: 16px 20px 18px 74px; box-shadow: inset 0 -3px 0 var(--ink-2); transition: background-color .18s, transform .08s, box-shadow .18s; }
.duel-side::before { content: ""; position: absolute; left: 22px; top: 50%; width: 32px; height: 32px; translate: 0 -50%; border: 2.5px solid var(--fg); border-radius: 1px; background: var(--paper) center / 0 0 no-repeat; transition: background-size .22s cubic-bezier(.3, .8, .3, 1.2); }
.duel-side:hover { background: #fbfaf8; }
.duel-side:hover::before { background-color: #f4f3ef; }
.duel-side:active { transform: translateY(1px); }
.duel-name { font: 700 15px var(--sans); }
.duel-side.a .duel-name, .duel-side.a .duel-price { color: var(--a); } .duel-side.b .duel-name, .duel-side.b .duel-price { color: var(--b); }
.duel-side[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 -3px 0 var(--ink-2), inset 0 0 0 1.5px var(--fg), inset 7px 0 0 var(--violet); }
.duel-side[aria-pressed="true"]::before { background-image: var(--x); background-size: 30px 30px; background-color: var(--paper); }
.duel-price.flaps { --ff: 52px; }
.duel-side.a[aria-pressed="true"] .duel-price.flaps > b { color: var(--a); } .duel-side.b[aria-pressed="true"] .duel-price.flaps > b { color: var(--b); }
.duel-side .lev { font: 400 12.5px var(--sans); color: var(--muted); }
#st-cat { font: 700 12.5px var(--sans); color: var(--muted); box-shadow: none; }

/* the count under the two sides */
.plz { margin-top: 14px; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); background: #efeee9; }
.plz svg { display: block; width: 100%; height: auto; }
.plz.wait { width: min(460px, 86vw); margin: 0 0 22px; }

.chart-panel, .stage-row, .more { border-top: var(--hair); }
.panel { border-radius: var(--r); }
.room-num strong { font: 700 34px var(--display); }
.meter { height: 8px; border-radius: 0; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--ink-3); }
.meter i { background: var(--sheets), var(--steel); border-radius: 0; }

/* the ticket */
.ticket { background: var(--paper); border-left: var(--edge); }
.side-pick { gap: 8px; border: 0; }
.side-pick button { position: relative; border: var(--edge); border-radius: var(--r); padding: 10px 12px 10px 44px; background: var(--paper); }
.side-pick button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; border: 2px solid var(--fg); background: var(--paper) center / 0 0 no-repeat; transition: background-size .2s; }
.side-pick button span { font: 700 14px var(--sans); }
.side-pick button small { font: 700 23px var(--display); }
.side-pick .a span, .side-pick .a small { color: var(--a); } .side-pick .b span, .side-pick .b small { color: var(--b); }
.side-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--fg), inset 5px 0 0 var(--violet); }
.side-pick button[aria-pressed="true"]::before { background-image: var(--x); background-size: 20px 20px; }
/* the ticket's board: the counterfoil of a ballot paper, torn along its perforation, figures stencilled */
.tboard { position: relative; gap: 0; padding: 6px 16px 6px 30px; border: var(--edge); border-radius: var(--r); background: var(--paper); box-shadow: 3px 3px 0 var(--ink-2); }
.tboard::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 4px; background: radial-gradient(circle, var(--ink-3) 1.4px, transparent 1.8px) 0 0 / 4px 8px repeat-y; }
.tboard > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tboard > div:last-child { border-bottom: 0; }
.tboard .flaps > b { color: var(--fg); font: 700 var(--ff) / 1 var(--display); }
.tboard span { font: 700 12.5px var(--sans); color: var(--fg); }
.tboard .flaps { --ff: 30px; }
.tboard .flaps.am > b, .flaps.am > b { color: var(--fg); }
#tk-margin { font: 700 28px var(--display); }
.quick { gap: 6px; border: 0; }
.quick button { border: 1px solid var(--ink-3); border-radius: var(--r); font: 700 15px var(--sans); font-variant-numeric: tabular-nums; background: var(--paper); }
.quick button:hover { border-color: var(--fg); background: #f6f5f2; }
.lev-head output { font: 700 44px/1 var(--display); letter-spacing: 0; color: var(--fg); }
/* the leverage slider: a stack's paper edge laid flat, filled up to your leverage; the thumb is the violet seal tag */
#tk-lev::-webkit-slider-runnable-track { height: 10px; border-radius: 0; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 10% 100% repeat-x, linear-gradient(var(--steel), var(--steel)) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, var(--paper); }
#tk-lev::-moz-range-track { height: 10px; border-radius: 0; border: 1px solid var(--line); background: linear-gradient(var(--steel), var(--steel)) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, var(--paper); }
#tk-lev::-webkit-slider-thumb { width: 22px; height: 28px; margin-top: -10px; border: 0; border-radius: 4px; background: radial-gradient(circle at 50% 24%, #2b1a6e 2.6px, transparent 3.2px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 4px) 0 100% / 100% 46% no-repeat, linear-gradient(135deg, #8065ea, var(--violet) 50%, #3c1fa3); box-shadow: 0 0 0 1.5px var(--line), 0 2px 3px rgba(20, 20, 23, .4); }
#tk-lev::-moz-range-thumb { width: 20px; height: 26px; border: 0; border-radius: 4px; background: linear-gradient(135deg, #8065ea, var(--violet) 50%, #3c1fa3); box-shadow: 0 0 0 1.5px var(--line), 0 2px 3px rgba(20, 20, 23, .4); }
.lev-ticks { font: 700 13px var(--sans); } .lev-ticks span.off { color: var(--ink-3); }
.rw-track { height: 6px; border-radius: 0; } .rw-fill { background: var(--ink-3); } .rw-now { background: var(--fg); } .rw-liq { background: var(--violet); }
.kv { border-top: var(--edge); } .kv > div { border-bottom: 1px solid var(--line-soft); }
.err { border-left: 3px solid var(--down); background: var(--down-soft); border-radius: 2px; }

/* account pages */
.summary { border-bottom: 2px solid var(--line); }
.sum-main span { font: 700 13px var(--sans); color: var(--muted); }
.sum-main strong { font: 700 clamp(52px, 7vw, 100px)/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pos { background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink-2); }
.pos-out { font: 700 12.5px var(--sans); }
/* empty states and dialogs are a ballot paper: a heavy printed rule at the top, the counterfoil down the left side
   behind a perforated line */
.empty-state, .pick { position: relative; overflow: visible; background: radial-gradient(circle, var(--ink-3) 1.5px, transparent 2px) 34px 0 / 4px 9px repeat-y, linear-gradient(90deg, #f6f5f1 0 36px, var(--paper) 36px) padding-box; border: var(--edge); border-top: 8px solid var(--fg); border-radius: 2px; box-shadow: 0 1px 0 var(--ink-2), 0 22px 40px -26px rgba(20, 20, 23, .55); padding-left: 56px; }
.empty-state .es-mark { width: 64px; height: 64px; margin-bottom: 6px; }
.empty-state b { font: 700 30px var(--display); }
.empty-state .hint { color: var(--muted); }
.tbl th { border-bottom: var(--edge); font: 700 12.5px var(--sans); color: var(--fg); }
.tbl td { border-bottom: 1px solid var(--line-soft); }
.mid-num { font: 700 50px/1 var(--display); font-variant-numeric: tabular-nums; }
.big-num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.addr { border: 1px solid var(--ink-3); border-radius: var(--r); background: var(--paper); font-family: var(--addr); font-size: 13px; }
.pick { padding-top: 10px; box-shadow: 0 30px 60px -20px rgba(20, 20, 23, .55); }
.pick::backdrop { background: rgba(20, 20, 23, .44); }
.pick-item { font: 700 18px/1.2 var(--sans); border-radius: var(--r); }
.pick-item:hover, .pick-item:focus-visible { background: var(--violet-soft); color: var(--fg); }
.toast { background: var(--steel-face); color: #f4f3ee; border-left: 6px solid var(--violet); border-radius: var(--r); font: 400 15px var(--sans); }

/* loading: the first stack is counted up as the order books are read */
.stage-empty .flaps { display: none; }
.stage-empty p:first-of-type { font: 700 28px var(--display); color: var(--fg); }
.stage-empty #load-count { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; }
.ld-track { display: none; }
.sk { background: linear-gradient(90deg, var(--ink-1), var(--ink-2), var(--ink-1)); background-size: 200% 100%; border-radius: 2px; }

/* the pointer */
.cur-dot { background: var(--graphite); }
.cur-box { border: 1.5px solid var(--fg); border-radius: var(--r); }
#cur.go .cur-box { border-color: var(--violet); }

/* the coin in the top bar */
.coin > * { border-left: var(--hair); padding: 0 12px; }
.coin-tk { font: 700 22px var(--display); color: var(--fg); box-shadow: none; }
.coin-ca { font: 400 13px var(--addr); color: var(--muted); }
.coin-ca:hover, .coin-pump:hover { background: #f6f5f2; color: var(--fg); }
.coin-pump { font: 700 13px var(--sans); color: var(--muted); }

@media (max-width: 760px) {
  .coin { border-top: var(--hair); }
  .logo { font-size: 27px; padding-right: 12px; } .logo .mark { width: 32px; height: 32px; }
  .duel-price.flaps { --ff: 30px; }
  .duel-side { padding: 12px 10px 12px 44px; }
  .duel-side::before { left: 11px; width: 22px; height: 22px; border-width: 2px; }
  .duel-side[aria-pressed="true"]::before { background-size: 20px 20px; }
  .side-pick button { padding-left: 36px; }
  .side-pick button::before { left: 9px; width: 18px; height: 18px; }
  .side-pick button[aria-pressed="true"]::before { background-size: 16px 16px; }
  .duel-side .lev { font-size: 11.5px; }
  .tabs a { padding: 12px 14px; }
  .tabs a[aria-current="page"] { background-position: 50% calc(100% - 4px); background-size: calc(100% - 22px) 3px; }
  .bal strong { font-size: 19px; } .bal span { font-size: 10.5px; }
  .acct .btn, .seg button { padding-left: 10px; padding-right: 10px; }
  .plz { margin-top: 10px; }
  h1 { font-size: 23px; }
}

/* the base layout sets labels in spaced capitals; Polls prints them as words */
h2, h3, .h, .tabs a, .net, .bal span, .seg button, .field label, .chips button, .stage-empty, .stage-empty p, #st-cat, .duel-name,
.side-pick button span, .sum-main span, .pos-out, .tbl th, .eyebrow, .pick-go, h1, .btn, .mk-meta, .duel-side .lev,
.tboard span, .empty-state b, .coin-pump {
  text-transform: none; letter-spacing: 0; }
.btn.primary, .btn.cta { letter-spacing: .03em; }
.net, .stage-empty { font-family: var(--sans); font-weight: 700; }
.field label, .eyebrow, .pick-go { font: 700 13px var(--sans); }

/* Live mode: before a wallet is connected the main button reads "Connect a wallet to trade". On a phone that line may
   wrap, and the bar never grows past the screen. The bar behind it is solid, so a message above the button never sits
   on the figures scrolling under it. */
.cta-bar { grid-template-columns: minmax(0, 1fr); background: var(--paper); box-shadow: 0 -1px 0 var(--line-soft); }
.cta-bar > * { min-width: 0; }
.btn.cta, .btn.cta:disabled { text-transform: none; white-space: normal; text-wrap: balance; line-height: 1.08; padding-bottom: 12px; }
@media (max-width: 420px) { .duel-price.flaps { --ff: 22px; } .btn.cta { font-size: 23px; } .side-pick button small { font-size: 19px; } }
