/* Dowse
   A forked hazel dowsing rod over a summer field, the ground under it cut open like a trench wall, a vein of water
   in the gravel that rises where the rod dips. The page is the dry field in daylight; the top bar is the dark
   topsoil with the water running along its lower edge; the field appears under the two sides; the main button is
   the rod's own hazel bark; the ticket's little board is a page of a surveyor's field book.
   Headlines, big figures and the main button are Hahmlet (a sharp-wedged serif), everything you read or press is
   Radio Canada; addresses are Noto Sans Mono. Yes is spring water blue, No is dry clay red; up is leaf green.
   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: #ece5cc; --ink-1: #e3dbbd; --ink-2: #d3c9a6; --ink-3: #a59b7c;
  --paper: #fbf8ee;
  --line: #1f2118; --line-soft: #d8cfae; --ink: #1f2118;
  --fg: #1f2118; --muted: #5c5a49; --dim: #8f8a72;
  --a: #1f68b0; --a-soft: rgba(31, 104, 176, .1);
  --b: #b8462b; --b-soft: rgba(184, 70, 43, .1);
  --lev: #1f2118; --lev-soft: rgba(31, 33, 24, .08);
  --up: #2e7d3c; --down: #b8462b; --down-soft: rgba(184, 70, 43, .08);
  --loam: #2b2017; --loam-dk: #1b140e; --loam-lt: #3f2f22;
  --bark: #6f4129; --bark-dk: #3f2416; --bark-lt: #9a6642; --pith: #efe4bf;
  --water: #1f68b0; --water-dk: #174f88; --water-lt: #7cc0ea;
  --clay: #a8643a; --straw: #c1b067;
  --display: "Hahmlet", Georgia, "Times New Roman", serif;
  --sans: "Radio Canada", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--sans); /* the base layout sets small labels in --mono; Dowse uses its grotesque */
  --type: var(--sans);
  --addr: "Noto Sans Mono", ui-monospace, Menlo, monospace;
  --edge: 1.5px solid var(--line);
  --hair: 1px solid var(--line-soft);
  --shadow: 0 1px 0 rgba(31, 33, 24, .06), 0 18px 30px -22px rgba(63, 36, 22, .55);
  --r: 5px;
  /* hazel bark: pale lenticels scattered over the brown */
  --lenticels: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='40'%3E%3Cg stroke='%23d9b98a' stroke-width='1.3' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M8 9h5M37 25h6M66 12h4M20 33h5M79 30h5M52 4h4'/%3E%3C/g%3E%3C/svg%3E");
  /* topsoil: fine crumbs */
  --crumbs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23000' opacity='.22'%3E%3Ccircle cx='7' cy='11' r='1.1'/%3E%3Ccircle cx='31' cy='5' r='.8'/%3E%3Ccircle cx='48' cy='22' r='1.3'/%3E%3Ccircle cx='18' cy='38' r='.9'/%3E%3Ccircle cx='41' cy='49' r='1.1'/%3E%3Ccircle cx='55' cy='41' r='.7'/%3E%3C/g%3E%3Cg fill='%23a5835f' opacity='.18'%3E%3Ccircle cx='24' cy='19' r='.9'/%3E%3Ccircle cx='52' cy='8' r='.7'/%3E%3Ccircle cx='9' cy='52' r='1'/%3E%3Ccircle cx='35' cy='31' r='.8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
body { background: linear-gradient(180deg, #f3eedb 0, var(--ink-0) 460px) fixed; color: var(--fg); font: 450 15.5px/1.5 var(--sans); }
::selection { background: #cfe6f6; color: var(--fg); box-shadow: none; }

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

/* the split-flap tiles become printed figures */
.flaps { gap: 0; }
.flaps > b { width: auto; height: auto; min-width: 0; background: none; border-radius: 0; color: inherit; font: 800 var(--ff, 22px)/1 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.flaps > b.sp { width: .28em; } .flaps > b.pt { width: auto; }
.flaps > b.flip { animation: dip .42s cubic-bezier(.2, .8, .3, 1); }
@keyframes dip { 0% { opacity: 0; transform: translateY(-.22em); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flaps > b.flip { animation: none; } }

/* top bar: dark topsoil, the water vein running along its lower edge */
.top { background: var(--crumbs), linear-gradient(180deg, var(--loam-lt) 0, var(--loam) 55%, #241a12 100%);
  border-bottom: 0; color: var(--pith); padding-bottom: 5px; box-shadow: 0 8px 16px -12px rgba(27, 20, 14, .9); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none;
  background: linear-gradient(180deg, var(--water-lt) 0, var(--water) 55%, var(--water-dk) 100%);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .35), 0 2px 3px rgba(23, 79, 136, .35); }
.logo { gap: 12px; padding-right: 26px; font: 800 30px/1 var(--display); letter-spacing: -.01em; color: var(--pith); }
.logo .mark { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .35); }
.tabs { gap: 2px; }
.tabs a { border-radius: 0; padding: 0 14px; font: 600 15px var(--sans); color: rgba(239, 228, 191, .68); }
.tabs a:hover { background: rgba(255, 255, 255, .05); color: var(--pith); }
.tabs a[aria-current="page"] { color: #fffaf0; background: transparent; box-shadow: inset 0 -3px 0 var(--water-lt); }
.tabs b { font-family: var(--sans); font-weight: 700; color: var(--water-lt); }
.bal { border-left: 1px solid rgba(255, 255, 255, .12); }
.bal span { font: 600 12px var(--sans); color: rgba(239, 228, 191, .6); }
.bal strong { font: 800 22px/1 var(--display); color: var(--pith); font-variant-numeric: lining-nums tabular-nums; }
.net { color: rgba(239, 228, 191, .68); }
.top .btn { background: var(--pith); color: var(--loam-dk); border-color: var(--loam-dk); box-shadow: inset 0 -2px 0 #cdbf92; }
.top .btn:hover:not(:disabled) { background: #fbf3d8; }
.top .btn.ghost { background: transparent; color: var(--pith); border-color: rgba(239, 228, 191, .4); box-shadow: none; }
.top .btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.top .btn.primary { background: linear-gradient(180deg, #4a8fd0, var(--water) 60%, var(--water-dk)); color: #fff; border-color: #0f3560; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .22); }
.top .btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
.top .seg { background: rgba(0, 0, 0, .25); border-color: rgba(239, 228, 191, .36); }
.top .seg button { color: rgba(239, 228, 191, .75); }
.top .seg button[aria-pressed="true"] { background: var(--pith); color: var(--loam-dk); }

/* controls */
.btn { border: var(--edge); border-radius: var(--r); font: 700 14px 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: var(--ink-1); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--ink-2); }
.btn.primary { background: var(--lenticels), linear-gradient(180deg, var(--bark-lt), var(--bark) 50%, #5a321e); color: var(--pith); border-color: var(--bark-dk); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(0, 0, 0, .3); }
.btn.primary:hover:not(:disabled) { background: var(--lenticels), linear-gradient(180deg, #a77150, #7c4930 50%, #643822); }
/* the main button: a length of hazel, bark and lenticels, a pale cut end at each side */
.btn.cta { border: 1.5px solid var(--bark-dk); border-radius: 999px; min-height: 62px; font: 800 23px/1 var(--display); letter-spacing: -.005em; color: var(--pith);
  background:
    radial-gradient(ellipse 9px 22px at 10px 50%, #f3e9c8 0 60%, #c9ad7a 75%, transparent 78%),
    radial-gradient(ellipse 9px 22px at calc(100% - 10px) 50%, #f3e9c8 0 60%, #c9ad7a 75%, transparent 78%),
    var(--lenticels),
    linear-gradient(180deg, #3f2416 0, #a06a45 14%, #7a472c 42%, var(--bark) 62%, #4c2a19 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), 0 3px 0 var(--bark-dk), 0 10px 16px -10px rgba(63, 36, 22, .7);
  text-shadow: 0 1px 0 #2a170d, 0 2px 0 #2a170d; padding-left: 40px; padding-right: 40px; }
.btn.cta:hover:not(:disabled) { filter: brightness(1.07); }
.btn.cta:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 1px 0 var(--bark-dk); }
.btn.cta:disabled { background: var(--ink-2); color: var(--dim); border-color: var(--ink-3); box-shadow: none; text-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 13px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--pith); 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: 600; }
input:not([type="range"]):hover, select:hover { border-color: var(--fg); }
input:not([type="range"]):focus-visible, select:focus-visible { outline: 2px solid var(--water); outline-offset: 1px; border-color: var(--water); box-shadow: none; }
:focus-visible { outline-color: var(--water); }
.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(--fg); border-color: var(--fg); color: var(--pith); }

/* market list */
.mk { border-right: var(--edge); background: var(--paper); }
.mk-head { border-bottom: var(--hair); }
.mk-row { border-bottom: var(--hair); }
.mk-row:hover { background: #f4efdd; }
.mk-row[aria-current="true"] { background: #efe8d0; box-shadow: inset 4px 0 0 var(--bark); }
.mk-q { font: 600 15px/1.32 var(--sans); letter-spacing: -.003em; }
.mk-meta { font: 500 12.5px var(--sans); color: var(--muted); }
.mk-px { font: 700 17px/1.1 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.mk-px .pa { color: var(--a); } .mk-px .pb { color: var(--b); }
/* the split bar is a little strip of ground: water up to the price of Yes, dry clay after it */
.mk-split { height: 6px; border-radius: 3px; background: linear-gradient(180deg, #c98a5e, var(--clay)); box-shadow: inset 0 0 0 1px rgba(31, 33, 24, .14); }
.mk-split i { background: linear-gradient(180deg, var(--water-lt), var(--water)); border-radius: 3px 0 0 3px; box-shadow: 1.5px 0 0 var(--paper); }
.thumb { border-radius: 4px; }
.thumb.tile { font-family: var(--display); font-weight: 800; border: var(--edge); }
.legal { color: var(--muted); font: 450 12.5px/1.55 var(--sans); }

/* the two sides: two cards; the one you picked takes its colour */
.duel { gap: 12px; border: 0; background: transparent; box-shadow: none; }
.duel-side { border: var(--edge); border-radius: var(--r); background: var(--paper); padding: 14px 20px 16px; 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 15px 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: var(--a); border-color: #0f3560; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.duel-side.b[aria-pressed="true"] { background: var(--b); border-color: #6d2412; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.duel-side[aria-pressed="true"], .duel-side[aria-pressed="true"] .duel-name, .duel-side[aria-pressed="true"] .lev,
.duel-side[aria-pressed="true"] .duel-price.flaps > b { color: #fffaf0; }
.duel-price.flaps { --ff: 44px; }
.duel-price.flaps > b { line-height: 1; }
.duel-side .lev { font: 500 12.5px var(--sans); color: var(--muted); }
#st-cat { font: 700 12.5px var(--sans); color: var(--bark); box-shadow: none; }

/* the field under the two sides */
.dwb { margin-top: 14px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(31, 33, 24, .3), var(--shadow); background: #efe7cb; }
.dwb svg { display: block; width: 100%; height: auto; }
.dwb.wait { width: min(460px, 82vw); margin: 0 0 20px; }

.chart-panel, .stage-row, .more { border-top: var(--hair); }
.panel { border-radius: var(--r); }
.room-num strong { font: 800 32px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.meter { height: 6px; border-radius: 3px; background: var(--ink-2); } .meter i { background: var(--water); border-radius: 3px; }

/* the ticket */
.ticket { background: var(--paper); border-left: var(--edge); }
.cta-bar { background: linear-gradient(rgba(251, 248, 238, 0), var(--paper) 14px); }
.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 14px var(--sans); }
.side-pick button small { font: 800 21px/1.15 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.side-pick .a[aria-pressed="true"] { background: var(--a); border-color: #0f3560; color: #fffaf0; }
.side-pick .b[aria-pressed="true"] { background: var(--b); border-color: #6d2412; color: #fffaf0; }
/* the ticket's board is a page of a surveyor's field book: squared paper, a stitched spine down the left */
.tboard { gap: 8px; padding: 14px 18px 15px 34px; border: 1px solid #b9ae8c; border-radius: 2px 6px 6px 2px;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, #8a7552 6px 9px) 11px 8px / 1.4px calc(100% - 16px) no-repeat,
    linear-gradient(90deg, #e5dcc0 0 22px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(31, 104, 176, .13) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(31, 104, 176, .13) 0 1px, transparent 1px 12px),
    #fdfbf2;
  box-shadow: inset -1px 0 0 #fff, 0 10px 16px -12px rgba(63, 36, 22, .5); }
.tboard span { font: 600 13px var(--sans); color: var(--muted); }
.tboard .flaps { --ff: 26px; }
.tboard .flaps > b { color: var(--fg); }
.tboard .flaps.am > b { color: var(--bark); }
.flaps.am > b { color: var(--fg); }
#tk-margin { font: 800 26px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.quick { gap: 6px; border: 0; }
.quick button { border: 1px solid var(--ink-3); border-radius: var(--r); font: 700 15px var(--sans); background: var(--paper); }
.quick button:hover { border-color: var(--fg); background: var(--ink-1); }
.lev-head output { font: 800 36px/1 var(--display); letter-spacing: -.01em; color: var(--fg); font-variant-numeric: lining-nums; }
/* the leverage slider: water up to your leverage; the thumb is a little hazel peg with a pale cut top */
#tk-lev::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(var(--water), var(--water)) 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, var(--ink-1); }
#tk-lev::-moz-range-track { height: 8px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(var(--water), var(--water)) 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, var(--ink-1); }
#tk-lev::-webkit-slider-thumb { width: 16px; height: 28px; margin-top: -11px; background: linear-gradient(180deg, var(--pith) 0 22%, #c9ad7a 22% 27%, var(--bark-lt) 27%, var(--bark) 60%, var(--bark-dk) 100%); border: 1.5px solid var(--bark-dk); border-radius: 5px; box-shadow: 0 2px 3px rgba(31, 33, 24, .35); clip-path: none; }
#tk-lev::-moz-range-thumb { width: 14px; height: 26px; background: linear-gradient(180deg, var(--pith) 0 22%, #c9ad7a 22% 27%, var(--bark-lt) 27%, var(--bark) 60%, var(--bark-dk) 100%); border: 1.5px solid var(--bark-dk); border-radius: 5px; box-shadow: 0 2px 3px rgba(31, 33, 24, .35); clip-path: none; }
.lev-ticks { font: 700 14px var(--sans); } .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); }
.kv { border-top: var(--hair); } .kv > div { border-bottom: var(--hair); }
.err { border-left: 3px solid var(--down); background: #f6e4dc; border-radius: 2px; }

/* account pages */
.summary { border-bottom: 2px solid var(--line); box-shadow: 0 4px 0 -1px var(--ink-0), 0 7px 0 -1px var(--water); }
.sum-main span { font: 700 13px var(--sans); color: var(--muted); }
.sum-main strong { font: 800 clamp(46px, 7vw, 92px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.pos { background: var(--paper); border: var(--edge); border-radius: var(--r); 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: var(--r); background: var(--paper); }
.empty-state .flaps { --ff: 24px; margin-bottom: 10px; }
.empty-state .flaps > b { color: var(--ink-3); }
.empty-state b { font: 800 24px 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: 800 46px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.big-num { font-family: var(--display); font-weight: 800; font-variant-numeric: lining-nums tabular-nums; }
.addr { border: 1px solid var(--ink-3); border-radius: var(--r); background: var(--paper); font-family: var(--addr); font-size: 12.5px; }
.pick { border: var(--edge); border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(43, 32, 23, .55); background: var(--paper); }
.pick::backdrop { background: rgba(43, 32, 23, .45); }
.pick-item { font: 700 18px/1.2 var(--sans); border-radius: var(--r); }
.pick-item:hover, .pick-item:focus-visible { background: var(--ink-1); color: var(--fg); }
.toast { background: var(--loam); color: var(--pith); border-left: 5px solid var(--water-lt); border-radius: var(--r); font: 600 15.5px var(--sans); }

/* loading: the rod walks the line as the books are read */
.stage-empty .flaps { display: none; }
.stage-empty p:first-of-type { font: 800 24px var(--display); color: var(--fg); }
.stage-empty #load-count { font-family: var(--sans); font-weight: 700; font-size: 18px; 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(--water); }
.cur-box { border: 1.5px solid var(--water); border-radius: var(--r); }
#cur.go .cur-box { border-color: var(--bark); }

/* the coin in the top bar */
.coin > * { border-left: 1px solid rgba(255, 255, 255, .12); padding: 0 12px; }
.coin-tk { font: 800 18px var(--display); color: var(--water-lt); box-shadow: none; }
.coin-ca { font: 400 12.5px var(--addr); color: rgba(239, 228, 191, .7); }
.coin-ca:hover, .coin-pump:hover { background: rgba(255, 255, 255, .07); color: var(--pith); }
.coin-pump { font: 700 13px var(--sans); color: rgba(239, 228, 191, .7); }

@media (max-width: 760px) {
  .top { padding-bottom: 0; }
  .top::after { height: 4px; }
  .coin { border-top: 1px solid rgba(255, 255, 255, .12); }
  .logo { font-size: 26px; } .logo .mark { width: 32px; height: 32px; }
  .duel-price.flaps { --ff: 30px; }
  .duel-side { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px; }
  .duel-price { grid-column: 1; grid-row: auto; }
  .tabs a { padding: 12px 14px; }
  .bal strong { font-size: 18px; } .bal span { font-size: 10.5px; }
  .acct .btn, .seg button { padding-left: 10px; padding-right: 10px; }
  .duel-side { padding: 12px 14px; }
  .dwb { margin-top: 10px; }
  h1 { font-size: 23px; }
  .btn.cta { font-size: 21px; padding-left: 32px; padding-right: 32px; }
}

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

/* Live mode: before a wallet is connected the main button reads "Connect a wallet to trade". In the display face
   that line is wider than a phone, so the button may wrap and the bar never grows past the screen. */
.cta-bar { grid-template-columns: minmax(0, 1fr); }
.cta-bar > * { min-width: 0; }
.cta-bar .btn { white-space: normal; text-wrap: balance; line-height: 1.15; }
.btn.cta:disabled { font-size: 19px; }
