/* predictit.fun
   The page is a departure board at night: black panel, off-white lettering, and split-flap tiles for every number
   that matters. One colour, amber, for the side you picked, your leverage and the button that acts on them. Green
   and red are kept for money won and lost. Prices do not fade or slide when they change: their tiles flip.
   The token names below are also read by app.js for the charts, so they stay six-digit hex colours. */
:root {
  --ink-0: #0b0b0a; --ink-1: #121211; --ink-2: #1c1c1a; --ink-3: #2a2a27;
  --line: #34342f; --line-soft: #23231f; --ink: #f1efe8;
  --fg: #f1efe8; --muted: #a5a297; --dim: #6f6c63;
  --a: #ffb200; --a-soft: rgba(255, 178, 0, .12);
  --b: #f1efe8; --b-soft: rgba(241, 239, 232, .1);
  --lev: #ffb200; --lev-soft: rgba(255, 178, 0, .14);
  --up: #3ecf8e; --down: #ff5a4d; --down-soft: rgba(255, 90, 77, .12);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --top-h: 60px;
  --rule: 1.5px solid var(--line);
  --hair: 1px solid var(--line-soft);
  --hatch: repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 7px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cur: auto; --cur-go: pointer;
  color-scheme: dark;
}
html { cursor: var(--cur); }
a, button, summary, select, label[for], input[type="range"], input[type="submit"], [role="button"] { cursor: var(--cur-go); }
button:disabled, select:disabled, input:disabled { cursor: var(--cur); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--fg); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lev); outline-offset: 2px; }
.up { color: var(--up); } .down { color: var(--down); }
::selection { background: var(--lev); color: var(--ink); }
* { scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
canvas { display: block; width: 100%; }

/* drawing labels: every small heading is set like the lettering on a plan */
h2, h3, .h { font: 500 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.unit { color: var(--dim); }
.empty { color: var(--muted); padding: 18px; }
.lev { font: 600 12px var(--mono); color: var(--lev); white-space: nowrap; }
.lev.flat { color: var(--dim); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: stretch; gap: 0; padding: 0 0 0 22px; background: var(--ink-0); border-bottom: var(--rule); }
.logo { display: flex; align-items: center; gap: 10px; padding-right: 26px; text-decoration: none; color: var(--fg); font: 900 27px/1 var(--display); font-stretch: 112%; letter-spacing: -.055em; }
.logo svg { width: 38px; height: 38px; translate: 0 2px; }
.tabs { display: flex; border-left: var(--rule); }
.tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 20px; border-right: var(--hair); color: var(--muted); text-decoration: none; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color .15s, background-color .15s; }
.tabs a:hover { color: var(--fg); background: var(--ink-1); }
.tabs a[aria-current="page"] { color: var(--ink-0); background: var(--ink); }
.tabs b { font: 600 11px var(--mono); color: var(--lev); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-right: 22px; }
.xlink { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--muted); transition: color .15s; }
.xlink:hover { color: var(--fg); }
.net { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.acct { display: flex; align-items: center; gap: 8px; }
.bal { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding-left: 16px; border-left: var(--hair); }
.bal span { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bal strong { font-size: 16px; font-weight: 600; }
.seg { display: inline-flex; border: var(--rule); }
.seg button { border: 0; background: none; padding: 5px 11px; cursor: var(--cur-go); color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: color .15s, background-color .15s; }
.seg button + button { border-left: var(--hair); }
.seg button:hover:not(:disabled) { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-0); }
.seg button:disabled { opacity: .35; cursor: var(--cur); }
.seg.small button { padding: 3px 9px; font-size: 11.5px; }

.btn { white-space: nowrap; border: var(--rule); background: transparent; padding: 7px 14px; cursor: var(--cur-go); font: 600 13.5px var(--sans); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s, translate .1s; }
.btn:hover:not(:disabled) { background: var(--ink); color: var(--ink-0); }
.btn:active:not(:disabled) { translate: 0 1px; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--ink-0); }
.btn.primary:hover:not(:disabled) { background: var(--lev); border-color: var(--lev); color: var(--ink); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .4; cursor: var(--cur); }
.btn.cta { width: 100%; min-height: 58px; padding: 0 20px; border: 0; justify-content: space-between; font: 800 19px/1 var(--display); letter-spacing: -.015em; color: var(--ink); background: var(--lev); transition: filter .15s, translate .1s; }
.btn.cta::after { content: "→"; font: 500 20px var(--mono); }
.btn.cta:hover:not(:disabled) { background: var(--lev); color: var(--ink); filter: brightness(1.07); }
.btn.cta:disabled { background: var(--ink-2); color: var(--muted); opacity: 1; }
.btn.cta:disabled::after { content: ""; }

input:not([type="range"]), select { background: var(--ink-1); border: var(--hair); border-color: var(--dim); padding: 8px 10px; min-width: 0; transition: border-color .15s; }
input:not([type="range"]):hover, select:hover { border-color: var(--ink); }
input:not([type="range"]):focus-visible, select:focus-visible { outline: 0; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--lev); }
input::placeholder { color: var(--dim); }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; font-family: var(--mono); }
input[type="number"]::-webkit-inner-spin-button { appearance: none; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field label .unit { letter-spacing: .04em; }
.err { color: var(--down); font-size: 13px; line-height: 1.45; border-left: 3px solid var(--down); background: var(--down-soft); padding: 9px 11px; }
.panel { min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head .hint { font-size: 12px; }

/* ---------- views ---------- */
.view[hidden] { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 44px 28px 80px; display: flex; flex-direction: column; gap: 44px; }
.trade { display: grid; grid-template-columns: 340px minmax(0, 1fr) 400px; height: calc(100dvh - var(--top-h)); }
.trade > * { min-height: 0; min-width: 0; }

/* ---------- the index of markets ---------- */
.mk { display: flex; flex-direction: column; border-right: var(--rule); }
.mk-head { padding: 16px 16px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: var(--rule); }
.mk-head h2 { display: flex; align-items: baseline; justify-content: space-between; }
.count { font: 500 11.5px var(--mono); color: var(--dim); letter-spacing: 0; }
.mk-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 74px; gap: 6px; }
.mk-filters input { grid-column: 1 / -1; }
.mk-filters select { font-size: 12.5px; padding: 6px 6px; color: var(--muted); }
.chips { display: flex; overflow-x: auto; margin: 2px -16px 0; padding: 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { position: relative; flex: none; border: 0; background: none; color: var(--muted); padding: 8px 7px 10px; font: 500 11.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; cursor: var(--cur-go); white-space: nowrap; }
.chips button:hover { color: var(--fg); }
.chips button[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--lev); }
.chips button small { font: 400 11px var(--mono); color: var(--dim); margin-left: 4px; }
.scan { font: 400 11px var(--mono); color: var(--dim); padding: 7px 16px; border-bottom: var(--hair); }
.scan:empty { display: none; }
.mk-list { overflow-y: auto; flex: 1; }
.mk-row { position: relative; width: 100%; text-align: left; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 16px 13px; border: 0; border-bottom: var(--hair); background: transparent; cursor: var(--cur-go); transition: background-color .12s;
  content-visibility: auto; contain-intrinsic-size: auto 70px; }
@supports not (content-visibility: auto) { .mk-row { contain: layout style paint; } }
.mk-row:hover { background: var(--ink-1); }
.mk-row[aria-current="true"] { background: var(--ink-1); box-shadow: inset 5px 0 0 var(--ink); }
.mk-row:focus-visible { outline-offset: -2px; }
.mk-body { min-width: 0; display: grid; gap: 4px; }
.mk-q { font-weight: 600; font-size: 14px; line-height: 1.25; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-meta { display: flex; gap: 6px; align-items: baseline; font: 500 12px var(--sans); font-stretch: 84%; color: var(--muted); white-space: nowrap; overflow: hidden; }
.mk-meta .lev { font-size: 11px; }
.mk-meta i { font-style: normal; color: var(--line); }
.mk-px { display: grid; justify-items: end; gap: 1px; font: 600 13px/1.25 var(--mono); }
.mk-px .pa { color: var(--fg); } .mk-px .pb { color: var(--dim); font-weight: 400; }
.mk-split { grid-column: 2 / -1; height: 3px; margin-top: 8px; background: var(--line); overflow: hidden; }
.mk-split i { display: block; height: 100%; background: var(--ink); }

/* market pictures: square, like stamps on the sheet */
.thumb { width: var(--s); height: var(--s); flex: none; object-fit: cover; background: var(--ink-2); display: block; filter: grayscale(1) contrast(1.05); }
.mk-row:hover .thumb, .mk-row[aria-current="true"] .thumb, .stage-head .thumb, .pos .thumb { filter: none; }
.thumb.tile { display: grid; place-items: center; font: 600 calc(var(--s) * .34)/1 var(--mono); color: var(--fg); background: var(--ink-2); border: var(--hair); filter: none; }
.mk-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mk-main .mk-q { min-width: 0; }

/* ---------- the sheet for one market ---------- */
.stage { overflow-y: auto; padding: 30px 34px 56px; display: flex; flex-direction: column; }
#stage-body { display: flex; flex-direction: column; gap: 26px; max-width: 940px; width: 100%; margin: 0 auto; }
.stage-empty { margin: auto; display: grid; justify-items: center; gap: 8px; color: var(--muted); text-align: center; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.beam-load { width: 132px; height: 84px; margin-bottom: 10px; overflow: visible; }
.beam-load #ld-beam { transform-box: view-box; transform-origin: 66px 44px; transition: rotate .6s var(--ease); }
#load-count { font-size: 12px; color: var(--dim); min-height: 18px; }
.stage-head { display: flex; gap: 18px; align-items: flex-start; }
#st-img { display: contents; }
.stage-meta { font: 400 12px var(--mono); color: var(--muted); margin-bottom: 8px; text-wrap: pretty; }
#st-cat { color: var(--fg); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
#st-cat::after { content: "/"; margin: 0 9px; color: var(--line); }
.when b { color: var(--fg); font-weight: 600; }
h1 { font: 800 clamp(26px, 2.6vw, 38px)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }

/* the two sides: the chosen one is inked in */
.duel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--rule); }
.duel-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 14px; padding: 16px 20px 15px; border: 0; background: var(--hatch); cursor: var(--cur-go); min-width: 0; text-align: left; color: var(--muted); transition: background-color .18s, color .18s; }
.duel-side + .duel-side { border-left: var(--rule); }
.duel-side:hover { color: var(--fg); }
.duel-side[aria-pressed="true"] { background: var(--ink); color: var(--ink-0); }
.duel-side:focus-visible { outline-offset: -4px; }
.duel-name { font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.duel-price { grid-row: 1 / span 2; grid-column: 2; font-size: 44px; font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.duel-side .lev { font-size: 11.5px; }
.duel-side[aria-pressed="false"] .lev { color: var(--dim); }
.roll { display: inline-block; }

/* chart */
.chart-panel { border-top: var(--rule); padding-top: 18px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-title { display: grid; gap: 5px; min-width: 0; }
.ohlc { font-size: 11.5px; color: var(--muted); min-height: 17px; display: flex; gap: 12px; flex-wrap: wrap; }
.ohlc b { color: var(--fg); font-weight: 500; margin-left: 4px; }
.ohlc b.up { color: var(--up); } .ohlc b.down { color: var(--down); }
.chart-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chart-wrap { position: relative; }
.chart-box { height: 360px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.chart-foot { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-top: 10px; align-items: baseline; }
.chart-foot a { color: var(--dim); font-size: 11.5px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font: 400 11.5px var(--mono); color: var(--muted); }
.lg b { color: var(--fg); font-weight: 600; margin-left: 4px; }
.lg.liq b { color: var(--down); }

.stage-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-top: var(--rule); }
.stage-row > .panel { padding: 18px 0 0; }
.stage-row > .panel + .panel { padding-left: 28px; margin-left: 28px; border-left: var(--hair); }
#depth { height: 218px; }
.room { display: flex; flex-direction: column; gap: 10px; }
.room-num strong { font: 600 28px var(--mono); letter-spacing: -.04em; }
.room-num span { color: var(--muted); margin-left: 8px; font: 400 12px var(--mono); }
.meter { height: 10px; background: var(--hatch); border: var(--hair); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; margin-top: auto; border-top: var(--hair); }
.facts dt { font: 400 11px var(--mono); color: var(--muted); } .facts dd { font-size: 15px; font-weight: 500; }

.more { display: grid; gap: 4px; border-top: var(--rule); padding-top: 18px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 28px; }
.more-card { position: relative; text-align: left; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: var(--hair); background: none; cursor: var(--cur-go); min-width: 0; }
.more-card:hover .mk-q { text-decoration: underline; text-underline-offset: 3px; }
.more-card:hover .thumb { filter: none; }

/* ---------- the ticket ---------- */
.ticket { border-left: var(--rule); overflow-y: auto; background: var(--ink-1); }
.ticket form { padding: 20px 22px 0; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.tk-wait { padding: 22px; display: grid; gap: 14px; }
.sk { height: 12px; background: var(--ink-2); }
.sk.tall { height: 46px; } .sk.w60 { width: 60%; } .sk.w40 { width: 40%; }
.cta-bar { position: sticky; bottom: 0; margin: auto -22px 0; padding: 14px 22px 22px; background: linear-gradient(transparent, var(--ink-1) 24%); display: grid; gap: 10px; }
.side-pick { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule); }
.side-pick button { padding: 10px 12px; border: 0; background: none; cursor: var(--cur-go); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; color: var(--muted); text-align: left; transition: background-color .15s, color .15s; }
.side-pick button + button { border-left: var(--rule); }
.side-pick button:hover { color: var(--fg); }
.side-pick button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.side-pick button small { font: 600 15px var(--mono); }
.side-pick [aria-pressed="true"] { background: var(--ink); color: var(--ink-0); }

/* the lever: drawn in fx.js. One part on the short arm holds as many parts as the leverage on the long arm. */
.lever { display: block; width: 100%; height: auto; overflow: visible; margin: -4px 0 -8px; }
.lever text { font-family: var(--mono); }
.lever .lab { font-size: 9.5px; font-weight: 500; letter-spacing: .09em; fill: var(--muted); }
.lever .dim { font-size: 10.5px; font-weight: 600; fill: var(--fg); }
.lever .dim.l { fill: var(--lev); }

#tk-margin { font: 600 26px var(--mono); padding: 10px 12px; width: 100%; letter-spacing: -.03em; }
.quick { display: flex; gap: 0; border: var(--hair); border-top: 0; }
.quick button { flex: 1; border: 0; background: none; padding: 6px 0; font: 500 12px var(--mono); color: var(--muted); cursor: var(--cur-go); transition: color .15s, background-color .15s; }
.quick button + button { border-left: var(--hair); }
.quick button:hover { color: var(--ink-0); background: var(--ink); }
.field:has(.quick) { gap: 0; } .field:has(.quick) label { margin-bottom: 7px; }

/* leverage: a ruler. Inked up to the chosen value, plain up to what is allowed now, hatched beyond. */
.lev-head { display: flex; align-items: baseline; justify-content: space-between; }
.lev-head output { font-size: 26px; font-weight: 600; color: var(--lev); letter-spacing: -.04em; line-height: 1; }
#tk-lev { --v: .25; --m: 1; --track: 8px; --thumb-w: 18px; --thumb-h: 24px; appearance: none; -webkit-appearance: none; width: 100%; height: 30px; margin: 0; padding: 0; border: 0; background: none; cursor: var(--cur-go); }
#tk-lev::-webkit-slider-runnable-track { height: var(--track); border: var(--hair); border-color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-1), var(--ink-1)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, var(--hatch), var(--ink-2); }
#tk-lev::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb-w); height: var(--thumb-h); margin-top: calc((var(--track) - var(--thumb-h)) / 2 - 1px); border: 0; background: var(--lev); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
#tk-lev::-moz-range-track { height: var(--track); border: var(--hair); border-color: var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--v) * 100%) 100% no-repeat, linear-gradient(var(--ink-1), var(--ink-1)) 0 0 / calc(var(--m) * 100%) 100% no-repeat, var(--hatch), var(--ink-2); }
#tk-lev::-moz-range-thumb { width: var(--thumb-w); height: var(--thumb-h); border: 0; border-radius: 0; background: var(--lev); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
#tk-lev:focus-visible { outline: 2px solid var(--lev); outline-offset: 4px; }
#tk-lev:disabled { opacity: .4; }
.lev-ticks { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); padding: 0 1px; }
.lev-ticks span.off { color: var(--line); }
#tk-lev-max { font: 400 11px var(--mono); color: var(--muted); }
#tk-lev-max:empty { display: none; }

/* where the price stands against the liquidation price */
.runway { display: grid; gap: 7px; }
.rw-track { position: relative; height: 10px; border: var(--hair); background: var(--hatch); }
.rw-fill { position: absolute; top: 0; bottom: 0; background: var(--ink-1); border-inline: 0; }
.rw-liq, .rw-now { position: absolute; top: -5px; bottom: -5px; width: 2.5px; translate: -50% 0; }
.rw-liq { background: var(--down); } .rw-now { background: var(--ink); }
.rw-labels { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--fg); }
.rw-labels span:first-child { color: var(--down); }
.gap { font-size: 13px; color: var(--muted); line-height: 1.5; }
.gap:empty { display: none; }
.gap b { color: var(--fg); font-family: var(--mono); font-weight: 600; }
.kv { display: grid; font-size: 13.5px; border-top: var(--rule); }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: var(--hair); }
.kv dt { color: var(--muted); } .kv dd { font: 500 13.5px var(--mono); text-align: right; }
.kv .total dt { color: var(--fg); font-weight: 600; } .kv .total dd { font-weight: 600; }

/* ---------- account pages ---------- */
.summary { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 26px 60px; align-items: end; padding-bottom: 30px; border-bottom: var(--rule); }
.sum-main span { display: block; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sum-main strong { display: block; font: 900 clamp(44px, 6.4vw, 84px)/.86 var(--display); font-stretch: 108%; letter-spacing: -.055em; }
.sum-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 16px 0; }
.sum-stats > div { padding-left: 16px; border-left: var(--hair); }
.sum-stats dt { font: 400 11px var(--mono); color: var(--muted); margin-bottom: 4px; }
.sum-stats dd { font: 600 16px var(--mono); }
.sum-note { grid-column: 1 / -1; max-width: 68ch; font-size: 14px; }
.h { margin: 0 0 16px; display: flex; align-items: baseline; gap: 8px; }
.h small { font: 500 11.5px var(--mono); color: var(--lev); }
.block { display: grid; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.pos { position: relative; background: var(--ink-1); border: var(--rule); padding: 18px; display: grid; gap: 14px; }
.pos.b { border-style: dashed; }
.pos-spark { width: 100%; height: 64px; display: block; }
.pos-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pos-q { font-weight: 600; line-height: 1.25; }
.pos-out { font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lev); margin-bottom: 3px; }
.pos-pnl { text-align: right; white-space: nowrap; }
.pos-pnl strong { display: block; font: 600 22px var(--mono); letter-spacing: -.03em; }
.pos-pnl span { font: 400 11px var(--mono); color: var(--muted); }
.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding-top: 14px; border-top: var(--hair); }
.pos-grid dt { font: 400 10.5px var(--mono); color: var(--muted); } .pos-grid dd { font: 500 13px var(--mono); }
.pos-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 48px 18px 52px; text-align: center; background: var(--hatch); border: var(--hair); }
.empty-state svg { width: 132px; height: 84px; margin-bottom: 10px; }
.empty-state b { font: 800 20px var(--display); letter-spacing: -.02em; }
.empty-state .btn { margin-top: 14px; background: var(--ink-0); }
.empty-state .btn:hover { background: var(--ink); }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th:first-child { min-width: 200px; }
.tbl th { text-align: left; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 14px 9px 0; white-space: nowrap; border-bottom: var(--rule); }
.tbl td { padding: 12px 14px 12px 0; border-bottom: var(--hair); vertical-align: top; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; white-space: nowrap; } .tbl td.r { font: 500 13px var(--mono); }
.tag { font: 400 12px var(--mono); color: var(--muted); }
.tag.liquidated { color: var(--down); } .tag.settled { color: var(--lev); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; }
.two > * { padding: 4px 0; }
.two > * + * { padding-left: 34px; margin-left: 34px; border-left: var(--hair); }
.two.wide { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.addr { display: block; font: 400 12.5px var(--mono); background: var(--ink-1); border: var(--hair); padding: 10px; word-break: break-all; margin: 10px 0; }
code { font-family: var(--mono); font-size: .93em; }
.mini { display: grid; gap: 7px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.panel form, form.panel { display: flex; flex-direction: column; gap: 14px; }
.panel > h2, .panel > h3 { margin-bottom: 12px; }
.row { display: flex; gap: 8px; } .row .btn { flex: 1; } .row input { flex: 2; min-width: 0; }
.manual { margin-top: 14px; font-size: 13px; color: var(--muted); }
.manual summary { cursor: var(--cur-go); }
.manual .hint { margin-top: 8px; }
.wal { margin: 4px 0 14px; padding: 12px 0; border-block: var(--hair); }
.wal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wal-row code { color: var(--fg); }
.wal-row b { font-size: 15px; font-weight: 600; color: var(--fg); }
.wal .hint { margin: 8px 0 0; }
.wal-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wal-acts .btn { padding: 5px 10px; font-size: 12.5px; }
.mid-num { font: 800 40px/1 var(--display); letter-spacing: -.04em; }

.log { display: grid; max-height: 320px; overflow-y: auto; font-size: 13px; color: var(--muted); border-top: var(--rule); }
.log li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: var(--hair); }
.log time { font: 400 11.5px var(--mono); color: var(--dim); padding-top: 1px; }
.op-login { max-width: 380px; }
#op-body { display: grid; gap: 34px; }
#op-body .two { padding-bottom: 30px; border-bottom: var(--rule); }
#op-body .kv { margin-top: 4px; } #op-body .mini { margin: 10px 0; } #op-body li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#op-body .mini li.check { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--fg); }
#op-body .mini li.check::before { content: ""; width: 8px; height: 8px; background: var(--up); }
#op-body .mini li.check.stop::before { background: var(--down); }
#op-body .panel > .btn { margin-top: 12px; }
#op-body .hint { margin-top: 10px; } #op-body .row { margin-top: 10px; }

/* lending model only (not shown in the margin model) */
.vault-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: var(--rule); }
.eyebrow { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.big-num { display: block; font: 900 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.05em; margin: 6px 0 12px; }
.lede { color: var(--muted); max-width: 60ch; }
.vh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 20px; }
.vh-stats span { display: block; font: 400 11px var(--mono); color: var(--muted); } .vh-stats b { font-size: 15px; font-weight: 600; }
.ring-wrap { position: relative; display: grid; place-items: center; }
#ring { width: 100%; max-width: 200px; rotate: -90deg; }
.ring-track { fill: none; stroke: var(--ink-3); stroke-width: 8; }
.ring-val { fill: none; stroke: var(--lev); stroke-width: 8; transition: stroke-dashoffset .6s var(--ease); }
.ring-cap { stroke: var(--down); stroke-width: 2; transform-origin: 100px 100px; }
.ring-read { position: absolute; display: grid; justify-items: center; }
.ring-read strong { font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.ring-read span { color: var(--muted); font-size: 12.5px; } .ring-read em { font-style: normal; font-size: 11px; color: var(--down); margin-top: 2px; }
.stake { align-content: start; }
#v-chart { height: 200px; }
#flow { width: 100%; height: auto; }
#flow text { font-family: var(--sans); fill: var(--muted); font-size: 12px; }
#flow text.v { font-family: var(--mono); fill: var(--fg); font-size: 14px; font-weight: 600; }

/* choosing a wallet */
.pick { width: min(440px, calc(100vw - 32px)); padding: 0; border: var(--rule); background: var(--ink-1); color: var(--fg); box-shadow: 10px 10px 0 var(--ink); }
.pick:modal { overscroll-behavior: contain; }
.pick::backdrop { background: rgba(22, 21, 15, .5); overflow: hidden; overscroll-behavior: contain; }
.pick form { padding: 20px 22px 22px; display: grid; gap: 16px; }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pick-list { display: grid; border-top: var(--rule); }
.pick-list:empty { display: none; }
.pick-item { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 10px; border: 0; border-bottom: var(--hair); background: none; cursor: var(--cur-go); text-align: left; font: 700 18px/1.1 var(--display); letter-spacing: -.015em; transition: background-color .12s, color .12s; }
.pick-item:hover, .pick-item:focus-visible { background: var(--ink); color: var(--ink-0); outline: 0; }
.pick-item img, .pick-item .pick-blank, .pick-item .pick-mail { width: 32px; height: 32px; display: block; }
.pick-item small { display: block; margin-top: 4px; font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; opacity: .7; }
.pick-item .pick-blank { background: var(--hatch); border: var(--hair); }
.pick-go { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lev); }
.pick-none { border-left: 3px solid var(--lev); padding: 9px 11px; background: var(--lev-soft); font-size: 13.5px; }

/* the pointer drawn by fx.js: it sits exactly on the mouse, never takes a click, and hides wherever the browser's
   own pointer is the better one (text fields, the login window, other frames) */
html.fx-cur, html.fx-cur * { cursor: none !important; }
#cur { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147483647; pointer-events: none; }
#cur > * { position: absolute; left: 0; top: 0; }
/* the exact spot */
.cur-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--lev); outline: 1.5px solid var(--ink-0); transition: scale .12s var(--ease); will-change: translate; }
#cur.down .cur-dot { scale: 1.5; }
/* the four marks: each an angle that sits outside its corner and points at the middle. The pale edge keeps them
   readable on ink. Their place and size are set by fx.js. */
.cur-box { width: 24px; height: 24px; transition: scale .12s var(--ease); will-change: translate, width, height; }
.cur-box i { position: absolute; width: 8px; height: 8px; border: 0 solid var(--ink); filter: drop-shadow(0 0 .6px var(--ink-0)) drop-shadow(0 0 .6px var(--ink-0)) drop-shadow(0 0 .6px var(--ink-0)); }
.cur-box i:nth-child(1) { right: 100%; bottom: 100%; border-right-width: 2px; border-bottom-width: 2px; }
.cur-box i:nth-child(2) { left: 100%; bottom: 100%; border-left-width: 2px; border-bottom-width: 2px; }
.cur-box i:nth-child(3) { right: 100%; top: 100%; border-right-width: 2px; border-top-width: 2px; }
.cur-box i:nth-child(4) { left: 100%; top: 100%; border-left-width: 2px; border-top-width: 2px; }
#cur.go .cur-box i { width: 11px; height: 11px; border-color: var(--lev); }
#cur.down .cur-box { scale: .9; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--ink); color: var(--ink-0); padding: 11px 16px; font: 500 13.5px var(--sans); z-index: 50; max-width: min(92vw, 520px); border-left: 6px solid var(--lev);
  transition: opacity .2s, translate .2s var(--ease), display .2s allow-discrete; }
@starting-style { .toast { opacity: 0; translate: -50% 8px; } }
.toast[hidden] { display: none !important; opacity: 0; translate: -50% 8px; }

/* ---------- moving between states ---------- */
@keyframes tick-up { from { color: var(--up); } }
@keyframes tick-down { from { color: var(--down); } }
.tick-up { animation: tick-up 1.1s ease-out; } .tick-down { animation: tick-down 1.1s ease-out; }
#st-q { view-transition-name: st-title; }
#st-img .thumb { view-transition-name: st-thumb; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
::view-transition-group(st-thumb) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-old(st-title), ::view-transition-new(st-title) { animation-duration: .2s; height: 100%; object-fit: none; object-position: left top; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .meter i, .beam-load #ld-beam, .toast, .btn { transition-duration: 0s; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1240px) {
  .trade { grid-template-columns: 312px minmax(0, 1fr); height: auto; }
  .mk { height: calc(100dvh - var(--top-h)); position: sticky; top: var(--top-h); }
  .ticket { grid-column: 2; border-left: 0; border-top: var(--rule); overflow: visible; }
  .stage { overflow: visible; }
}
@media (max-width: 760px) {
  .top { padding: 0 0 0 14px; height: auto; flex-wrap: wrap; }
  .logo { padding: 12px 14px 12px 0; font-size: 23px; }
  .tabs { order: 3; flex-basis: 100%; margin-left: -14px; border-left: 0; border-top: var(--rule); }
  .tabs a { padding: 12px 14px; flex: 1; justify-content: center; } .net { display: none; }
  .top-right { gap: 10px; padding-right: 14px; } .bal { padding-left: 10px; }
  .trade { grid-template-columns: minmax(0, 1fr); }
  .mk { position: static; height: auto; max-height: 64dvh; border-right: 0; border-top: var(--rule); order: 3; }
  .stage { padding: 20px 16px 26px; } .ticket { grid-column: 1; }
  .stage-row, .vault-hero, .two, .two.wide, .summary { grid-template-columns: minmax(0, 1fr); }
  .stage-row > .panel + .panel, .two > * + * { padding-left: 0; margin-left: 0; border-left: 0; border-top: var(--hair); margin-top: 24px; padding-top: 24px; }
  .sum-stats { grid-template-columns: 1fr 1fr; } .sum-stats > div { padding-left: 12px; }
  .pos-grid { grid-template-columns: repeat(2, 1fr); } .cards { grid-template-columns: minmax(0, 1fr); }
  .page { padding: 28px 16px 60px; gap: 32px; }
  .duel-side { padding: 12px 14px; } .duel-price { font-size: 32px; }
  .stage-head .thumb { --s: 44px !important; }
  .chart-box { height: 300px; }
}


/* =====================================================================================================
   predictit.fun: the board. Everything above gives the layout; this is what it looks like.
   ===================================================================================================== */
body { font: 15px/1.45 var(--sans); }
h2, h3, .h, .field label, .bal span, .sum-main span, .tbl th, .eyebrow, .stage-empty { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .14em; }
h1 { font: 700 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: .005em; text-transform: uppercase; }
::selection { background: var(--lev); color: var(--ink-0); }
:focus-visible { outline: 2px solid var(--lev); outline-offset: 2px; }

/* split-flap tiles: one tile per character, a seam through the middle, and a flip when the character changes */
.flaps { display: inline-flex; gap: var(--fg-gap, 3px); vertical-align: middle; }
.flaps > b { position: relative; display: grid; place-items: center; width: var(--fw, 22px); height: var(--fh, 32px); border-radius: 3px; background: linear-gradient(#23231f 0, #1c1c1a 49%, #060605 49%, #060605 52%, #181816 52%, #141412 100%); font: 600 var(--ff, 22px)/1 var(--display); color: var(--fg); font-style: normal; }
.flaps > b.sp { background: none; width: calc(var(--fw, 22px) * .38); }
.flaps > b.pt { width: calc(var(--fw, 22px) * .55); }
.flaps.am > b { color: var(--lev); }
@keyframes flap { 0% { transform: perspective(240px) rotateX(0); } 49% { transform: perspective(240px) rotateX(-88deg); filter: brightness(.55); } 51% { transform: perspective(240px) rotateX(88deg); filter: brightness(.55); } 100% { transform: perspective(240px) rotateX(0); } }
.flaps > b.flip { animation: flap .34s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .flaps > b.flip { animation: none; } }

/* top bar */
.top { background: var(--ink-0); border-bottom: var(--rule); }
.logo { gap: 0; padding-right: 22px; font: inherit; letter-spacing: 0; }
.logo .flaps { --fw: 17px; --fh: 27px; --ff: 19px; --fg-gap: 2px; }
.logo .flaps + .flaps { margin-left: 5px; }
.tabs { border-left: var(--rule); }
.tabs a { font: 600 15px var(--display); letter-spacing: .14em; border-right: var(--hair); }
.tabs a:hover { background: var(--ink-1); }
.tabs a[aria-current="page"] { background: none; color: var(--lev); box-shadow: inset 0 -3px 0 var(--lev); }
.seg { border: var(--rule); }
.seg button { font: 600 14px var(--display); letter-spacing: .1em; }
.seg button[aria-pressed="true"] { background: var(--ink-3); color: var(--fg); }
.btn { border: var(--rule); border-radius: 4px; font: 600 15px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.btn:hover:not(:disabled) { background: var(--ink-2); color: var(--fg); border-color: var(--dim); }
.btn.primary { background: var(--fg); color: var(--ink-0); border-color: var(--fg); }
.btn.primary:hover:not(:disabled) { background: var(--lev); border-color: var(--lev); color: var(--ink-0); }
.btn.cta { border-radius: 6px; min-height: 60px; font: 700 23px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-0); background: var(--lev); justify-content: center; }
.btn.cta::after { content: none; }
.btn.cta:hover:not(:disabled) { background: var(--lev); color: var(--ink-0); filter: brightness(1.08); }
.btn.cta:disabled { background: var(--ink-2); color: var(--dim); }
input:not([type="range"]), select { background: var(--ink-1); border: var(--rule); border-radius: 4px; }
input:not([type="range"]):hover, select:hover { border-color: var(--dim); }
input:not([type="range"]):focus-visible, select:focus-visible { border-color: var(--lev); box-shadow: none; }
.err { border-left: 3px solid var(--down); }

/* the list of markets: lines on the board */
.mk { border-right: var(--rule); }
.mk-head { border-bottom: var(--rule); }
.chips button { font: 600 14px var(--display); letter-spacing: .12em; }
.mk-row { border-bottom: var(--hair); }
.mk-row:hover { background: var(--ink-1); }
.mk-row[aria-current="true"] { background: linear-gradient(90deg, var(--lev-soft), transparent 70%); box-shadow: inset 4px 0 0 var(--lev); }
.mk-q { font: 500 15px/1.25 var(--sans); letter-spacing: 0; }
.mk-meta { font: 500 13.5px var(--display); letter-spacing: .08em; text-transform: uppercase; font-stretch: normal; }
.mk-px { font: 600 17px/1.2 var(--display); letter-spacing: .04em; }
.mk-px .pa { color: var(--lev); } .mk-px .pb { color: var(--muted); font-weight: 500; }
.mk-split { height: 2px; background: var(--line); } .mk-split i { background: var(--lev); }
.thumb { border-radius: 4px; } .thumb.tile { font-family: var(--display); border: var(--hair); }
.legal { padding: 10px 16px 12px; border-top: var(--hair); font-size: 11.5px; line-height: 1.4; color: var(--dim); }

/* the two sides: big tiles; the side you picked is amber */
.duel { border: 0; gap: 12px; }
.duel-side { border: var(--rule); border-radius: 8px; background: var(--ink-1); padding: 16px 18px; align-items: center; }
.duel-side + .duel-side { border-left: var(--rule); }
.duel-side:hover { border-color: var(--dim); }
.duel-side[aria-pressed="true"] { background: var(--ink-1); color: var(--fg); border-color: var(--lev); box-shadow: inset 0 0 0 1px var(--lev); }
.duel-name { font: 600 17px var(--display); letter-spacing: .14em; }
.duel-price { font-size: 0; letter-spacing: 0; }
.duel-price.flaps { --fw: 36px; --fh: 54px; --ff: 40px; --fg-gap: 4px; }
.duel-side[aria-pressed="true"] .duel-price.flaps > b { color: var(--lev); }
.duel-side .lev { font: 500 13.5px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.chart-panel, .stage-row, .more { border-top: var(--rule); }
.room-num strong { font: 600 34px var(--display); letter-spacing: .02em; }
.meter { height: 8px; border: 0; background: var(--ink-2); border-radius: 2px; } .meter i { background: var(--lev); }
.legend, .ohlc, .stage-meta, .facts dt, .scan, .count { font-family: var(--sans); }
#st-cat { font: 600 14px var(--display); letter-spacing: .14em; color: var(--lev); }

/* the ticket */
.ticket { background: var(--ink-0); border-left: var(--rule); }
.cta-bar { background: linear-gradient(transparent, var(--ink-0) 24%); }
.side-pick { border: 0; gap: 8px; }
.side-pick button { border: var(--rule); border-radius: 6px; padding: 10px 12px; }
.side-pick button + button { border-left: var(--rule); }
.side-pick button span { font: 600 15px var(--display); letter-spacing: .12em; }
.side-pick button small { font: 600 17px var(--display); }
.side-pick [aria-pressed="true"] { background: none; color: var(--lev); border-color: var(--lev); }
/* the ticket's own little board: what you put in, how hard you lever it, what you hold */
.tboard { display: grid; gap: 12px; padding: 16px 16px 18px; border: var(--rule); border-radius: 8px; background: var(--ink-1); }
.tboard div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.tboard span { font: 600 13.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tboard .flaps { --fw: 24px; --fh: 36px; --ff: 26px; }
#tk-margin { font: 600 26px var(--mono); }
.quick { border: 0; gap: 6px; margin-top: 8px; }
.quick button { border: var(--hair); border-radius: 4px; font: 600 14px var(--display); letter-spacing: .08em; }
.quick button + button { border-left: var(--hair); }
.quick button:hover { color: var(--ink-0); background: var(--fg); }
.lev-head output { font: 700 30px/1 var(--display); letter-spacing: .02em; color: var(--lev); }
#tk-lev::-webkit-slider-runnable-track { height: var(--track); border: 0; border-radius: 4px;
  background: linear-gradient(var(--lev), var(--lev)) 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(--hatch), var(--ink-1); }
#tk-lev::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: calc((var(--track) - 20px) / 2); border-radius: 50%; background: var(--fg); border: 4px solid var(--ink-0); box-shadow: 0 0 0 1.5px var(--fg); clip-path: none; }
#tk-lev::-moz-range-track { height: var(--track); border: 0; border-radius: 4px;
  background: linear-gradient(var(--lev), var(--lev)) 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(--hatch), var(--ink-1); }
#tk-lev::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 4px solid var(--ink-0); clip-path: none; }
.lev-ticks { font: 500 13.5px var(--display); letter-spacing: .08em; } .lev-ticks span.off { color: var(--ink-3); }
.rw-track { height: 8px; border: 0; border-radius: 2px; } .rw-fill { background: var(--ink-3); } .rw-now { background: var(--fg); }
.kv { border-top: var(--rule); } .kv > div { border-bottom: var(--hair); }

/* account pages */
.summary { border-bottom: var(--rule); }
.sum-main strong { font: 700 clamp(48px, 7vw, 92px)/.9 var(--display); letter-spacing: .01em; font-stretch: normal; }
.sum-stats dd, .pos-grid dd, .tbl td.r, .kv dd { font-family: var(--mono); }
.pos { background: var(--ink-1); border: var(--rule); border-radius: 8px; } .pos.b { border-style: solid; }
.pos-out { font: 600 14px var(--display); letter-spacing: .12em; }
.empty-state { border: var(--rule); border-radius: 8px; background: var(--hatch); }
.empty-state .flaps { --fw: 26px; --fh: 38px; --ff: 28px; margin-bottom: 14px; }
.empty-state b { font: 700 24px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.empty-state .btn { background: var(--ink-0); }
.tbl th { border-bottom: var(--rule); } .tbl td { border-bottom: var(--hair); }
.mid-num { font: 700 46px/1 var(--display); letter-spacing: .01em; }
.log { border-top: var(--rule); } .log li { border-bottom: var(--hair); }
.addr { border: var(--hair); border-radius: 4px; }
.pick { border: var(--rule); border-radius: 10px; box-shadow: none; }
.pick::backdrop { background: rgba(0, 0, 0, .72); }
.pick-item { font: 600 21px/1.1 var(--display); letter-spacing: .04em; }
.pick-item:hover, .pick-item:focus-visible { background: var(--ink-2); color: var(--fg); }
.toast { background: var(--fg); color: var(--ink-0); border-left: 6px solid var(--lev); border-radius: 4px; font: 500 14.5px var(--sans); }

/* loading: the board waking up */
.stage-empty .flaps { --fw: 30px; --fh: 44px; --ff: 32px; margin-bottom: 16px; }
.ld-track { width: 220px; height: 4px; background: var(--ink-2); border-radius: 2px; overflow: hidden; margin: 2px 0 8px; }
.ld-track i { display: block; height: 100%; width: 0; background: var(--lev); transition: width .5s var(--ease); }

/* the pointer: an amber dot on the exact spot and a ring that follows it and wraps whatever can be pressed */
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--lev); outline: 0; }
.cur-box { border: 1.5px solid rgba(241, 239, 232, .7); border-radius: 999px; transition: scale .12s var(--ease), border-radius .18s var(--ease), border-color .15s; }
.cur-box i { display: none; }
#cur.go .cur-box { border-radius: 8px; border-color: var(--lev); }

/* the coin, in the top bar once it is switched on: ticker, address to copy, pump.fun */
.coin { display: flex; align-items: stretch; border-right: var(--hair); }
.coin[hidden] { display: none; }
.coin > * { display: flex; align-items: center; gap: 7px; padding: 0 16px; border-left: var(--hair); white-space: nowrap; }
.coin > :first-child { border-left: 0; }
.coin-tk { font: 700 17px var(--display); letter-spacing: .08em; color: var(--lev); }
.coin-ca { background: none; border: 0; border-left: var(--hair); color: var(--muted); font: 500 12.5px var(--mono); letter-spacing: .02em; cursor: var(--cur-go); transition: color .15s, background-color .15s; }
.coin-ca:hover, .coin-pump:hover { color: var(--fg); background: var(--ink-1); }
.coin-ca:focus-visible, .coin-pump:focus-visible { outline: 2px solid var(--lev); outline-offset: -2px; }
.coin-pump { color: var(--muted); text-decoration: none; font: 600 15px var(--display); letter-spacing: .1em; text-transform: uppercase; transition: color .15s, background-color .15s; }
.coin-tk { text-decoration: none; transition: filter .15s; } .coin-tk:hover { filter: brightness(1.15); }
.coin-tk:focus-visible { outline: 2px solid var(--lev); outline-offset: -2px; }
@media (min-width: 761px) and (max-width: 1180px) {
  .coin-pump { display: none; } .tabs a { padding: 0 14px; } .coin > * { padding: 0 12px; }
  #coin-ca-t { font-size: 0; } #coin-ca-t::before { content: "CA"; font: 600 15px var(--display); letter-spacing: .1em; }
}
@media (max-width: 760px) {
  .coin { order: 4; flex-basis: 100%; margin-left: -14px; border-right: 0; border-top: var(--hair); }
  .coin > * { padding: 10px 14px; } .coin-pump { display: flex; margin-left: auto; }
}
