/* Probs
   A Galton board in a walnut case: steel balls fall through brass pins into narrow bins, Yes left of the centre slat,
   No right of it, one ball per cent, so the pile is the probability. The page is the museum card the instrument stands
   on: warm paper, ink, a little grain. The top bar is the walnut case's top rail, with a brass inlay and a row of brass
   pins along its foot. Everything you press to act is a polished brass bar with an engraved border and a pin head at
   each end. The open tab has a steel ball resting under it. The side you take is lit in its enamel colour. The ticket's
   figures sit behind the case's glass: walnut frame, cream backboard, ink numerals. The leverage slider is a brass rod
   with a steel ball on it.
   Figures, the wordmark and headings in Unna, everything you read (and addresses) in Martel Sans.
   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 six-digit hex colours. */
:root {
  --ink-0: #f3efe6; --ink-1: #ebe5d8; --ink-2: #ddd4c2; --ink-3: #a99c87;
  --paper: #fbf9f3;
  --line: #1f1712; --line-soft: #e0d8c8; --ink: #1f1712;
  --fg: #1f1712; --muted: #5f5246; --dim: #93877a;
  --a: #23704f; --a-soft: rgba(35, 112, 79, .1);
  --b: #b8402c; --b-soft: rgba(184, 64, 44, .1);
  --lev: #8a6524; --lev-soft: rgba(138, 101, 36, .1);
  --up: #23704f; --down: #b8402c; --down-soft: rgba(184, 64, 44, .08);
  --walnut: #4a2e1c; --walnut-dk: #2b190d; --brass: #c39a45; --brass-dk: #6d4c19; --cream: #f5f0e3; --steel: #c9ced4;
  --display: Unna, Georgia, "Times New Roman", serif;
  --numf: Unna, Georgia, "Times New Roman", serif;
  --sans: "Martel Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martel Sans", "Helvetica Neue", Arial, sans-serif; /* the base layout sets small labels in --mono; Probs uses its sans */
  --addr: "Martel Sans", "Helvetica Neue", Arial, sans-serif; /* wallet and contract addresses */
  --edge: 1.5px solid var(--line);
  --hair: 1px solid var(--line-soft);
  --shadow: 0 1px 0 rgba(31, 23, 18, .05), 0 18px 30px -22px rgba(43, 25, 13, .5);
  --r: 4px;
  /* polished brass, lit from the upper left */
  --brassg: linear-gradient(170deg, #f6e3a8, #d7b264 40%, #b38a3f 70%, #94692a);
  /* a pin head at each end of a brass bar */
  --pins: radial-gradient(circle at 35% 30%, #fff4cf 0 1px, #c9a14f 1.6px, #6d4c19 3.1px, transparent 3.6px) left 10px center / 8px 8px no-repeat,
          radial-gradient(circle at 35% 30%, #fff4cf 0 1px, #c9a14f 1.6px, #6d4c19 3.1px, transparent 3.6px) right 10px center / 8px 8px no-repeat;
  --walnutg: linear-gradient(#5d3b25, var(--walnut) 55%, #34200f);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='300'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .07' numOctaves='3' seed='12' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .05 0 0 0 0 .02 0 0 0 -2.3 1.3'/%3E%3C/filter%3E%3Crect width='1200' height='300' filter='url(%23f)' opacity='.8'/%3E%3C/svg%3E");
  --paperg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* the museum card: warm paper with a faint grain */
html { background: #ece7dd; }
body { background: var(--paperg), linear-gradient(#efeae0, #e7e1d5); background-attachment: scroll, fixed; color: var(--fg); font: 400 16px/1.55 var(--sans); }
.num, .flaps > b, .kv dd, .tbl td.r, output { font-variant-numeric: tabular-nums lining-nums; }
::selection { background: #ecd8a0; color: var(--fg); }

h2, h3, .h { font: 700 15.5px/1.3 var(--sans); letter-spacing: 0; color: var(--fg); text-transform: none; }
h1 { font: 700 clamp(26px, 2.4vw, 36px)/1.12 var(--display); letter-spacing: -.005em; 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); }

/* figures: the split-flap tiles become printed figures; a new figure drops in from above, like a ball into its bin */
.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(--numf); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.005em; }
.flaps > b.sp { width: .26em; } .flaps > b.pt { width: auto; }
.flaps > b.flip { animation: drop .34s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes drop { 0% { transform: translateY(-.35em); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flaps > b.flip { animation: none; } }

/* top bar: the case's walnut top rail, a brass inlay and a row of brass pins along its foot */
.top { background: var(--grain), var(--walnutg); border-bottom: 0; color: #efe2cc; box-shadow: inset 0 1px 0 rgba(255, 235, 200, .12), inset 0 -1px 0 rgba(0, 0, 0, .35); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #fff1c2 0 .8px, #cfa653 1.4px, #6d4c19 2.6px, transparent 3px) 10px 2px / 22px 7px repeat-x,
              linear-gradient(#6d4c19 0 1px, #e6c87d 1px 2px, #a77d34 2px 3px, transparent 3px);
  filter: drop-shadow(0 3px 3px rgba(43, 25, 13, .3)); }
main { padding-top: 9px; }
.logo { gap: 11px; padding-right: 24px; font: 700 32px/1 var(--display); letter-spacing: -.01em; color: #f7ead2; }
.logo .mark { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 1px 0 rgba(255, 235, 200, .15); }
.logo:hover { color: #fff; }
.tabs { gap: 0; border-left: 1px solid rgba(255, 228, 190, .12); }
.tabs a { position: relative; border-radius: 0; padding: 0 18px; font: 600 16px var(--sans); color: #d6c3a4; border-right: 1px solid rgba(255, 228, 190, .09); }
.tabs a:hover { background: rgba(255, 235, 200, .06); color: #fff; }
.tabs a[aria-current="page"] { color: #fff; background: rgba(255, 235, 200, .07); box-shadow: none; }
/* the open tab: a steel ball resting under it */
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, #e3e7ea 28%, #8a9198 70%, #3a3f44); box-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.tabs b { font: 700 14px var(--display); color: #e6c87d; }
.bal { border-left: 1px solid rgba(255, 228, 190, .12); }
.bal span { font: 600 12.5px var(--sans); color: #cdb894; }
.bal strong { font: 700 25px var(--numf); font-variant-numeric: tabular-nums lining-nums; color: #fbf1df; }
.net { color: #cdb894; }
.top .seg { background: rgba(255, 235, 200, .05); border: 1px solid rgba(255, 228, 190, .28); }
.top .seg button { color: #e8d8bd; }
.top .seg button[aria-pressed="true"] { background: var(--brassg); color: var(--walnut-dk); box-shadow: none; }
.top .btn.ghost { background: transparent; color: #f1e4cd; border-color: rgba(255, 228, 190, .35); box-shadow: none; }
.top .btn.ghost:hover:not(:disabled) { background: rgba(255, 235, 200, .08); color: #fff; }
.top .btn.primary { background: var(--pins), var(--brassg); color: var(--walnut-dk); border-color: #3b2610; box-shadow: inset 0 1px 0 rgba(255, 248, 220, .7), 0 2px 0 #2b190d; }
.top .btn.primary:hover:not(:disabled) { background: var(--pins), var(--brassg); filter: brightness(1.07); color: var(--walnut-dk); }

/* controls: paper with an ink edge; the main buttons are polished brass bars with a pin head at each end */
.btn { border: var(--edge); border-radius: var(--r); font: 700 15.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, filter .15s; }
.btn:hover:not(:disabled) { background: #fff; color: var(--fg); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--ink-2); }
.btn.primary { background: var(--pins), var(--brassg); color: var(--walnut-dk); border: 1px solid #5e4114; padding-left: 36px; padding-right: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, .8), inset 0 0 0 3px rgba(255, 240, 200, .18), inset 0 0 0 4px rgba(109, 76, 25, .35), 0 2px 0 #5e4114; }
.btn.primary:hover:not(:disabled) { background: var(--pins), var(--brassg); border-color: #5e4114; filter: brightness(1.07); color: var(--walnut-dk); }
.btn.primary:active:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 248, 220, .6), inset 0 0 0 4px rgba(109, 76, 25, .35), 0 1px 0 #5e4114; }
.btn.cta { border: 1px solid #4d3410; border-radius: 6px; min-height: 62px; gap: 12px; padding-left: 46px; padding-right: 46px; font: 700 26px/1 var(--display); letter-spacing: -.005em; color: var(--walnut-dk);
  background: radial-gradient(circle at 35% 30%, #fff4cf 0 1.4px, #c9a14f 2.2px, #6d4c19 4.2px, transparent 4.8px) left 14px center / 11px 11px no-repeat,
              radial-gradient(circle at 35% 30%, #fff4cf 0 1.4px, #c9a14f 2.2px, #6d4c19 4.2px, transparent 4.8px) right 14px center / 11px 11px no-repeat, var(--brassg);
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, .85), inset 0 0 0 5px rgba(255, 240, 200, .14), inset 0 0 0 6px rgba(109, 76, 25, .4), inset 0 -3px 0 rgba(77, 52, 16, .35), 0 3px 0 #4d3410, 0 12px 18px -10px rgba(43, 25, 13, .55); }
.btn.cta::after { content: none; }
.btn.cta:hover:not(:disabled) { background: radial-gradient(circle at 35% 30%, #fff4cf 0 1.4px, #c9a14f 2.2px, #6d4c19 4.2px, transparent 4.8px) left 14px center / 11px 11px no-repeat,
  radial-gradient(circle at 35% 30%, #fff4cf 0 1.4px, #c9a14f 2.2px, #6d4c19 4.2px, transparent 4.8px) right 14px center / 11px 11px no-repeat, var(--brassg); filter: brightness(1.07); color: var(--walnut-dk); }
.empty-state .btn:hover { background: #fff; color: var(--fg); }
.btn.cta:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 248, 220, .7), inset 0 0 0 6px rgba(109, 76, 25, .4), 0 1px 0 #4d3410; }
.btn.cta:disabled { background: var(--ink-2); color: var(--dim); border-color: var(--ink-3); box-shadow: none; filter: 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: 3px; font: 700 14px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--walnutg); color: #f7ead2; box-shadow: inset 0 1px 0 rgba(255, 235, 200, .15); }
input:not([type="range"]), select { background: #fff; border: 1px solid var(--ink-3); border-radius: var(--r); font-family: var(--sans); font-weight: 700; }
input:not([type="range"]):hover, select:hover { border-color: var(--fg); }
input:not([type="range"]):focus-visible, select:focus-visible { outline: 2px solid var(--walnut); outline-offset: 1px; border-color: var(--fg); box-shadow: 0 0 0 4px rgba(195, 154, 69, .35); }
:focus-visible { outline-color: var(--walnut); }
.chips button { font: 700 14px var(--sans); border-radius: var(--r); border: 1px solid var(--ink-3); background: var(--paper); }
.chips button[aria-pressed="true"] { background: var(--walnutg); border-color: var(--walnut-dk); color: #f7ead2; }

/* market list: paper, the market you look at marked by a walnut edge with a brass line beside it */
.mk { border-right: var(--edge); background: var(--paper); }
.mk-head { border-bottom: var(--hair); }
.mk-row { border-bottom: var(--hair); }
.mk-row:hover { background: #f5f1e8; }
.mk-row[aria-current="true"] { background: #f1ebdf; box-shadow: inset 4px 0 0 var(--walnut), inset 6px 0 0 var(--brass); }
.mk-q { font: 700 15px/1.35 var(--sans); letter-spacing: 0; }
.mk-meta { font: 600 12.5px var(--sans); color: var(--muted); }
.mk-px { font: 700 19px/1.15 var(--numf); font-variant-numeric: tabular-nums lining-nums; }
.mk-px .pa { color: var(--a); } .mk-px .pb { color: var(--b); }
.mk-split { height: 4px; border-radius: 2px; background: var(--b); } .mk-split i { background: var(--a); border-radius: 2px 0 0 2px; box-shadow: 2px 0 0 var(--paper); }
.thumb { border-radius: 4px; }
.thumb.tile { font-family: var(--display); font-weight: 700; border: var(--edge); }
.legal { color: var(--muted); font: 400 12.5px/1.6 var(--sans); }

/* the two sides: the one you take is lit in its enamel colour */
.duel { gap: 12px; border: 0; background: transparent; box-shadow: none; }
.duel-side { border: var(--edge); border-radius: 8px; background: var(--paper); padding: 16px 20px 18px; box-shadow: inset 0 -3px 0 var(--ink-2); transition: background-color .18s, color .18s, transform .08s; }
.duel-side:hover { background: #fff; }
.duel-side:active { transform: translateY(1px); }
.duel-name { font: 700 16px var(--sans); }
.duel-side.a .duel-name { color: var(--a); } .duel-side.b .duel-name { color: var(--b); }
.duel-side.a[aria-pressed="true"] { background: linear-gradient(#2f8a63, #1b5a3f); border-color: #0e3624; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.duel-side.b[aria-pressed="true"] { background: linear-gradient(#cc5238, #963222); border-color: #4f160c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .2); }
.duel-side[aria-pressed="true"], .duel-side[aria-pressed="true"] .duel-name, .duel-side[aria-pressed="true"] .lev { color: #fff; }
.duel-side[aria-pressed="true"] .duel-price.flaps > b { color: #fff; }
.duel-price.flaps { --ff: 52px; }
.duel-side .lev { font: 600 13.5px var(--sans); color: var(--muted); }
#st-cat { font: 700 13.5px var(--sans); color: var(--lev); box-shadow: none; }

/* the board under the two sides */
.pbb { margin-top: 14px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px rgba(43, 25, 13, .35), var(--shadow); background: var(--walnut); }
.pbb svg { display: block; width: 100%; height: auto; }
.pbb.wait { width: 340px; margin: 0 0 22px; }

.chart-panel, .stage-row, .more { border-top: var(--hair); }
.panel { border-radius: var(--r); }
.room-num strong { font: 700 36px var(--numf); font-variant-numeric: tabular-nums lining-nums; }
.meter { height: 6px; border-radius: 3px; background: var(--ink-2); } .meter i { background: var(--walnut); border-radius: 3px; }

/* the ticket */
.ticket { background: var(--paper); border-left: var(--edge); }
.cta-bar { background: linear-gradient(rgba(251, 249, 243, 0), var(--paper) 24%); }
.side-pick { gap: 8px; border: 0; }
.side-pick button { border: var(--edge); border-radius: var(--r); padding: 10px 12px; background: var(--paper); }
.side-pick button span { font: 700 14.5px var(--sans); }
.side-pick button small { font: 700 26px var(--numf); font-variant-numeric: tabular-nums lining-nums; }
.side-pick .a[aria-pressed="true"] { background: linear-gradient(#2f8a63, #1b5a3f); border-color: #0e3624; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.side-pick .b[aria-pressed="true"] { background: linear-gradient(#cc5238, #963222); border-color: #4f160c; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
/* the ticket's board: behind the case's glass, a walnut frame round a cream backboard, ink figures, a streak of light */
.tboard { position: relative; gap: 10px; padding: 18px 18px 18px; border: 1px solid #1e1109; border-radius: 4px; color: var(--fg);
  background: linear-gradient(118deg, transparent 52%, rgba(255, 255, 255, .55) 56%, transparent 61%), linear-gradient(#fbf7ee, #ebe2cd);
  box-shadow: inset 0 2px 5px rgba(43, 25, 13, .3), 0 0 0 6px #4a2e1c, 0 0 0 7px #2b190d, 0 0 0 8px rgba(195, 154, 69, .55), 0 10px 18px -6px rgba(43, 25, 13, .5); margin: 9px 9px 14px; }
.tboard span { font: 700 12.5px var(--sans); color: var(--muted); letter-spacing: .01em; }
.tboard .flaps { --ff: 30px; }
.tboard .flaps > b { color: var(--fg); }
.tboard .flaps.am > b { color: var(--lev); }
.flaps.am > b { color: var(--fg); }
#tk-margin { font: 700 30px var(--numf); font-variant-numeric: tabular-nums lining-nums; }
.quick { gap: 6px; border: 0; }
.quick button { border: 1px solid var(--ink-3); border-radius: var(--r); font: 700 18px var(--numf); font-variant-numeric: tabular-nums; background: var(--paper); }
.quick button:hover { border-color: var(--fg); background: #fff; }
.lev-head output { font: 700 44px/1 var(--numf); color: var(--lev); font-variant-numeric: tabular-nums lining-nums; }
/* the leverage slider: a brass rod, polished up to your leverage, with a steel ball on it */
#tk-lev::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; border: 1px solid var(--brass-dk); background: linear-gradient(#f0d58f, #b38a3f) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, #fff; }
#tk-lev::-moz-range-track { height: 6px; border-radius: 3px; border: 1px solid var(--brass-dk); background: linear-gradient(#f0d58f, #b38a3f) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, #fff; }
#tk-lev::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 10%, #e3e7ea 26%, #8a9198 70%, #3a3f44); box-shadow: 1px 3px 4px rgba(43, 25, 13, .45); clip-path: none; }
#tk-lev::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 10%, #e3e7ea 26%, #8a9198 70%, #3a3f44); box-shadow: 1px 3px 4px rgba(43, 25, 13, .45); clip-path: none; }
.lev-ticks { font: 700 15px var(--numf); } .lev-ticks span.off { color: var(--ink-3); }
.rw-track { height: 6px; border-radius: 3px; } .rw-fill { background: var(--ink-3); } .rw-now { background: var(--fg); } .rw-liq { background: #a3301f; }
.kv { border-top: var(--hair); } .kv > div { border-bottom: var(--hair); }
.err { border-left: 3px solid var(--down); background: var(--down-soft); border-radius: 3px; }

/* account pages */
.summary { border-bottom: var(--edge); }
.sum-main span { font: 700 13.5px var(--sans); color: var(--muted); }
.sum-main strong { font: 700 clamp(52px, 7.4vw, 104px)/.95 var(--numf); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.pos { background: var(--paper); border: var(--edge); border-radius: 8px; box-shadow: inset 0 -3px 0 var(--ink-2); }
.pos-out { font: 700 12.5px var(--sans); }
.empty-state { border: 1.5px dashed var(--ink-3); border-radius: 8px; background: var(--paper); }
.empty-state .es-mark { width: 64px; height: 64px; margin-bottom: 6px; filter: drop-shadow(1px 3px 2px rgba(43, 25, 13, .3)); }
.empty-state b { font: 700 30px var(--display); }
.tbl th { border-bottom: var(--edge); font: 700 12.5px var(--sans); color: var(--fg); }
.tbl td { border-bottom: var(--hair); }
.mid-num { font: 700 50px/1 var(--numf); font-variant-numeric: tabular-nums lining-nums; }
.big-num { font-family: var(--numf); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.addr { border: 1px solid var(--ink-3); border-radius: var(--r); background: #fff; font-family: var(--addr); font-size: 12.5px; }
.pool-gap { margin-top: 36px; }
.pick { border: var(--edge); border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(43, 25, 13, .5); background: var(--paper); }
.pick::backdrop { background: rgba(43, 25, 13, .5); }
.pick-item { font: 700 18px/1.2 var(--sans); border-radius: var(--r); }
.pick-item:hover, .pick-item:focus-visible { background: var(--ink-0); color: var(--fg); box-shadow: inset 4px 0 0 var(--walnut), inset 6px 0 0 var(--brass); }
.toast { background: var(--grain), var(--walnutg); color: #fbf1df; border-left: 6px solid var(--brass); border-radius: var(--r); font: 700 15.5px var(--sans); }

/* loading: the bins fill as the books come in */
.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: 3px; }

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

/* the coin in the top bar */
.coin > * { border-left: 1px solid rgba(255, 228, 190, .12); padding: 0 12px; }
.coin-tk { font: 700 22px var(--display); color: #fbf1df; }
.coin-ca { font: 400 12.5px var(--addr); color: #e0cfb2; }
.coin-ca:hover, .coin-pump:hover { background: rgba(255, 235, 200, .08); color: #fff; }
.coin-pump { font: 700 13.5px var(--sans); color: #e0cfb2; }

@media (max-width: 760px) {
  .coin { border-top: 1px solid rgba(255, 228, 190, .12); }
  .logo { font-size: 28px; gap: 9px; } .logo .mark { width: 31px; height: 31px; }
  .tabs a[aria-current="page"]::after { bottom: 3px; }
  .duel-price.flaps { --ff: 32px; }
  .tabs a { padding: 12px 14px; }
  .bal strong { font-size: 20px; } .bal span { font-size: 11px; }
  .acct .btn, .seg button { padding-left: 10px; padding-right: 10px; }
  .duel-side { padding: 13px 14px; }
  .pbb { margin-top: 10px; }
  .pbb.wait { width: 290px; }
  h1 { font-size: 25px; }
  .btn.primary { padding-left: 28px; padding-right: 28px; }
}

/* the base layout sets labels in spaced capitals; Probs writes 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, .btn, .mk-meta, .duel-side .lev,
.tboard span, .coin-pump {
  text-transform: none; letter-spacing: 0; }
h1, .empty-state b { text-transform: none; }
.net, .stage-empty { font-family: var(--sans); font-weight: 700; }
.field label, .eyebrow, .pick-go { font: 700 13.5px var(--sans); }
@media (max-width: 760px) { .tabs a[aria-current="page"] { background: rgba(255, 235, 200, .07); } }

/* Live mode: before a wallet is connected the main button reads "Connect a wallet to trade". The bar never grows past
   the screen and the button may wrap. */
.cta-bar { grid-template-columns: minmax(0, 1fr); }
.cta-bar > * { min-width: 0; }
@media (max-width: 760px) { .cta-bar .btn { white-space: normal; text-wrap: balance; line-height: 1.12; padding-left: 38px; padding-right: 38px; } }

/* the main button reads as a sentence on the brass; an error sits on solid paper so the ticket scrolling under the bar
   never shows through it */
.btn.cta { text-transform: none; }
.cta-bar .err { background: linear-gradient(var(--down-soft), var(--down-soft)), var(--paper); }
