/* Omen
   The augur's field at dusk in winter: a pale ash sky going warm toward the horizon, a ploughed field, a bare oak, the
   augur's curved staff and a flock of rooks crossing the sky. The page is that sky: pale ash ground, panels of fog-white
   paper ruled in a warm hairline, rook black for the ink and for everything you press, with the blue-violet sheen a
   rook's back shows in low light along its edge. Headlines and big figures are set in Vollkorn (a dark, robust book
   serif, always with lining figures), everything you read or press in Ysabeau Office, addresses in Ubuntu Mono.
   Yes is ivy green, No rosehip red. Plum, the sheen on the rook's wing, marks what you set: the active tab, your
   leverage, the slider. The top bar is the sky with a telegraph wire along its foot and a rook perched on it.
   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: #e9e7e2; --ink-1: #dfddd7; --ink-2: #d0cdc5; --ink-3: #aaa59d;
  --paper: #f9f7f2;
  --line: #18161b; --line-soft: #dcd6cc; --ink: #18161b;
  --fg: #18161b; --muted: #5b5660; --dim: #8e8a90;
  --a: #2c6b47; --a-soft: rgba(44, 107, 71, .1);
  --b: #b5372b; --b-soft: rgba(181, 55, 43, .1);
  --lev: #6b3d73; --lev-soft: rgba(107, 61, 115, .09);
  --up: #2c6b47; --down: #b5372b; --down-soft: rgba(181, 55, 43, .08);
  --plum: #6b3d73; --plum-lt: #b78fbf; --plum-dk: #3f2245;
  --rook: #18161b; --rook-lt: #3a3540; --peach: #f1d2b0; --wood: #8a6a46;
  --display: "Vollkorn", Georgia, "Times New Roman", serif;
  --sans: "Ysabeau Office", "Helvetica Neue", Arial, sans-serif;
  --mono: "Ysabeau Office", "Helvetica Neue", Arial, sans-serif; /* the base layout sets small labels in --mono; Omen uses its sans */
  --addr: "Ubuntu Mono", ui-monospace, Menlo, monospace; /* only wallet and contract addresses */
  --edge: 1.5px solid var(--line);
  --hair: 1px solid var(--line-soft);
  --shadow: 0 1px 0 rgba(24, 22, 27, .05), 0 18px 30px -22px rgba(40, 30, 26, .5);
  --r: 6px;
  color-scheme: light;
}
/* the sky over the field: ash grey at the top of the page, warming toward peach the way the sky does near the horizon */
body { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .1 .55 0 0 0 -.3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E"), linear-gradient(#e2e4e4, #e9e7e2 520px, #eee5d9); background-attachment: scroll, fixed; background-color: var(--ink-0); color: var(--fg); font: 500 15.5px/1.5 var(--sans); font-variant-numeric: lining-nums; }
* { font-variant-numeric: lining-nums; }
.num, .flaps > b, .kv dd, .tbl td.r, output { font-variant-numeric: tabular-nums lining-nums; }
::selection { background: #e7c9b0; color: var(--fg); }

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

/* the split-flap tiles become figures that settle in like a bird landing: a short drop, then still */
.flaps { gap: 0; }
.flaps > b { width: auto; height: auto; min-width: 0; background: none; border-radius: 0; color: inherit; font: 700 var(--ff, 22px)/1 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.flaps > b.sp { width: .26em; } .flaps > b.pt { width: auto; }
.flaps > b.flip { animation: alight .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes alight { 0% { opacity: .15; transform: translateY(-.18em); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flaps > b.flip { animation: none; } }

/* top bar: the sky, ash at the left warming to peach, a telegraph wire along its foot with one rook perched on it */
.top { background: linear-gradient(90deg, #e3e6e7, #ebe6df 55%, #f1dfcb); border-bottom: 0; box-shadow: none; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none; background: var(--rook); box-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 6px 10px -6px rgba(40, 30, 26, .35); }
.top::before { content: ""; position: absolute; right: 34%; bottom: -1px; width: 30px; height: 31px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 34'%3E%3Cpath d='M1 10.5L8.5 8.6C9.5 5.4 12.5 3.8 15.5 4.4C18.6 5 20.4 7.6 21.4 10.4C24.6 14.6 29 20.6 34.2 30.6L31.2 31.4L26 26.6C23.8 27.8 20.4 28.6 17.4 28C13.2 27 10 22.6 9.6 17.6C9.4 15.2 9.6 13.6 9 12.2Z' fill='%2318161b'/%3E%3Cpath d='M15.6 27.6L14.6 33.4M18.4 28L19 33.4' stroke='%2318161b' stroke-width='1.3'/%3E%3Cpath d='M13.6 13C18 15.5 24 20 30 28' fill='none' stroke='%236a5a86' stroke-width='.9' opacity='.8'/%3E%3Ccircle cx='13.6' cy='7.6' r='.7' fill='%238f8a95'/%3E%3C/svg%3E") no-repeat center / contain; }
main { padding-top: 2px; }
.logo { gap: 10px; padding-right: 24px; font: 800 31px/1 var(--display); letter-spacing: -.015em; color: var(--fg); }
.logo .mark { width: 40px; height: 40px; }
.tabs { gap: 2px; }
.tabs a { border-radius: 0; padding: 0 14px; font: 700 15px var(--sans); color: var(--muted); }
.tabs a:hover { background: rgba(255, 255, 255, .45); color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--fg); background: transparent; box-shadow: inset 0 -3px 0 var(--plum); }
.tabs b { font-family: var(--sans); font-weight: 800; color: var(--plum); }
.bal { border-left: 1px solid var(--ink-3); }
.bal span { font: 700 12px var(--sans); color: var(--muted); }
.bal strong { font: 700 23px var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.net { color: var(--muted); }

/* controls: paper with an ink edge; the main buttons are rook black with the blue-violet sheen along the top edge */
.btn { border: var(--edge); border-radius: var(--r); font: 700 14.5px var(--sans); background: var(--paper); color: var(--fg); box-shadow: inset 0 -2px 0 var(--ink-2); transition: transform .08s, box-shadow .08s, background-color .15s; }
.btn:hover:not(:disabled) { background: #fffdf8; color: var(--fg); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--ink-2); }
.btn.primary { background: linear-gradient(170deg, #3d3646, var(--rook) 45%, #0d0c0f); color: #f6f0e6; border-color: #0a090b; box-shadow: inset 0 1px 0 #7a6a92, inset 0 -2px 0 #000; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(170deg, #4a4256, #222026 45%, #131216); color: #fff; }
.btn.cta { border: 1.5px solid #070608; border-radius: var(--r); min-height: 60px; font: 700 25px/1 var(--display); letter-spacing: -.01em; color: #f8f2e8;
  background: linear-gradient(168deg, #4a3f5c 0%, #2a2531 22%, #18161b 52%, #0c0b0e 100%);
  box-shadow: inset 0 1.5px 0 rgba(160, 140, 200, .55), inset 0 0 0 3px rgba(12, 11, 14, .6), inset 6px 0 14px -8px rgba(90, 120, 140, .55), inset 0 -4px 0 rgba(0, 0, 0, .5), 0 3px 0 #070608, 0 10px 18px -10px rgba(24, 22, 27, .7); text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.btn.cta:hover:not(:disabled) { background: linear-gradient(168deg, #574b6b 0%, #332d3b 22%, #1f1c23 52%, #121014 100%); color: #fff; }
.btn.cta:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1.5px 0 rgba(160, 140, 200, .55), inset 0 0 0 3px rgba(12, 11, 14, .6), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 1px 0 #070608; }
.btn.cta:disabled { background: var(--ink-2); color: var(--dim); border-color: var(--ink-3); box-shadow: none; text-shadow: 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: 4px; font: 700 13px var(--sans); }
.seg button[aria-pressed="true"] { background: var(--rook); color: #f6f0e6; box-shadow: inset 0 1px 0 #6a5a86; }
input:not([type="range"]), select { background: #fffdf8; 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(--plum); outline-offset: 1px; border-color: var(--fg); box-shadow: none; }
:focus-visible { outline-color: var(--plum); }
.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(--rook); border-color: var(--rook); color: #f6f0e6; }

/* market list: the augur's notebook */
.mk { border-right: var(--edge); background: var(--paper); }
.mk-head { border-bottom: var(--hair); }
.mk-row { border-bottom: var(--hair); }
.mk-row:hover { background: #f2eee6; }
.mk-row[aria-current="true"] { background: #ece7de; box-shadow: inset 4px 0 0 var(--plum); }
.mk-q { font: 650 15.5px/1.3 var(--sans); letter-spacing: 0; }
.mk-meta { font: 600 12.5px var(--sans); color: var(--muted); }
.mk-px { font: 700 18px/1.15 var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.mk-px .pa { color: var(--a); } .mk-px .pb { color: var(--b); }
/* the bar under each market: Yes ivy from the left, No rosehip */
.mk-split { height: 5px; border-radius: 3px; background: var(--b); } .mk-split i { background: var(--a); border-radius: 3px 0 0 3px; box-shadow: 1.5px 0 0 var(--paper); }
.thumb { border-radius: 5px; }
.thumb.tile { font-family: var(--display); font-weight: 700; border: var(--edge); }
.legal { color: var(--muted); font: 500 12.5px/1.55 var(--sans); }

/* the two sides: two paper cards; the one you picked is filled in 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: 16px 20px 18px; box-shadow: inset 0 -3px 0 var(--ink-2); transition: background-color .18s, color .18s, transform .08s; }
.duel-side:hover { background: #fffdf8; }
.duel-side:active { transform: translateY(1px); }
.duel-name { font: 800 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: #133a24; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.duel-side.b[aria-pressed="true"] { background: var(--b); border-color: #6a1a12; 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: #fbf7f0; }
.duel-price.flaps { --ff: 54px; }
.duel-side .lev { font: 650 12.5px var(--sans); color: var(--muted); }
#st-cat { font: 800 13.5px var(--sans); color: var(--plum); box-shadow: none; }

/* the augur's sky under the two sides */
.omz { margin-top: 14px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--rook), var(--shadow); background: #e4e3df; }
.omz svg { display: block; width: 100%; height: auto; }
.omz.wait { width: 300px; margin: 0 0 22px; }

.chart-panel, .stage-row, .more { border-top: var(--hair); }
.panel { border-radius: var(--r); }
.room-num strong { font: 700 34px var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.meter { height: 6px; border-radius: 3px; background: var(--ink-2); } .meter i { background: var(--plum); border-radius: 3px; }

/* the ticket */
.ticket { background: var(--paper); border-left: var(--edge); }
.cta-bar { background: linear-gradient(rgba(249, 247, 242, 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: 800 14px var(--sans); }
.side-pick button small { font: 700 22px var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.side-pick .a[aria-pressed="true"] { background: var(--a); border-color: #133a24; color: #fbf7f0; }
.side-pick .b[aria-pressed="true"] { background: var(--b); border-color: #6a1a12; color: #fbf7f0; }
/* the ticket's board: a slip of dusk sky, ash at the top and peach at the foot, with the wire across its top and the
   figures in rook-black ink */
.tboard { position: relative; gap: 10px; padding: 16px 18px 13px; border: 1.5px solid var(--rook); border-radius: 6px;
  background: linear-gradient(#dfe3e5, #ece6dd 55%, #f1d6b8); box-shadow: inset 0 -10px 0 -6px #3a2f29, 0 6px 12px -10px rgba(24, 22, 27, .7); }
.tboard::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.4px; background: var(--rook); opacity: .75; }
.tboard span { font: 700 13px var(--sans); color: var(--muted); }
.tboard .flaps { --ff: 31px; }
.tboard .flaps > b, .tboard .flaps.am > b { color: var(--fg); }
.tboard .flaps.am > b { color: var(--plum); }
.flaps.am > b { color: var(--fg); }
#tk-margin { font: 700 29px var(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.quick { gap: 6px; border: 0; }
.quick button { border: 1px solid var(--ink-3); border-radius: var(--r); font: 800 16px var(--sans); font-variant-numeric: tabular-nums lining-nums; background: var(--paper); }
.quick button:hover { border-color: var(--fg); background: #fffdf8; }
.lev-head output { font: 700 42px/1 var(--display); letter-spacing: -.02em; color: var(--plum); font-variant-numeric: tabular-nums lining-nums; }
/* the leverage slider: a plum feather-edge up to your leverage; the thumb is a round rook-black bead with a sheen */
#tk-lev::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(#a777b0, var(--plum) 55%, var(--plum-dk)) 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, #fffdf8; }
#tk-lev::-moz-range-track { height: 8px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(#a777b0, var(--plum) 55%, var(--plum-dk)) 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, #fffdf8; }
#tk-lev::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; background: radial-gradient(circle at 36% 28%, #8a7aa6 0, #3d3646 28%, #18161b 62%, #0b0a0c 100%); border: 1.5px solid #070608; border-radius: 50%; box-shadow: 0 2px 3px rgba(24, 22, 27, .4); clip-path: none; }
#tk-lev::-moz-range-thumb { width: 24px; height: 24px; background: radial-gradient(circle at 36% 28%, #8a7aa6 0, #3d3646 28%, #18161b 62%, #0b0a0c 100%); border: 1.5px solid #070608; border-radius: 50%; box-shadow: 0 2px 3px rgba(24, 22, 27, .4); clip-path: none; }
.lev-ticks { font: 800 13.5px 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: var(--down-soft); border-radius: 2px; }

/* account pages */
.summary { border-bottom: var(--edge); }
.sum-main span { font: 700 13px var(--sans); color: var(--muted); }
.sum-main strong { font: 700 clamp(52px, 7.6vw, 104px)/.95 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums lining-nums; }
.pos { background: var(--paper); border: var(--edge); border-radius: var(--r); box-shadow: inset 0 -3px 0 var(--ink-2); }
.pos-out { font: 800 12.5px var(--sans); }
.empty-state { border: 1.5px dashed var(--ink-3); border-radius: var(--r); background: var(--paper); }
.empty-state .es-mark { width: 64px; height: 64px; margin-bottom: 6px; }
.empty-state b { font: 700 28px var(--display); letter-spacing: -.01em; }
.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(--display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.big-num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.addr { border: 1px solid var(--ink-3); border-radius: var(--r); background: #fffdf8; font-family: var(--addr); font-size: 12.5px; }
.pick { border: var(--edge); border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(24, 22, 27, .55); background: var(--paper); }
.pick::backdrop { background: rgba(24, 22, 27, .42); }
.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(--plum); }
.toast { background: var(--rook); color: #f6f0e6; border-left: 5px solid var(--plum-lt); border-radius: var(--r); font: 600 15.5px var(--sans); }

/* loading: the lead rook climbs up out of the field as the books come in */
.stage-empty .flaps { display: none; }
.stage-empty p:first-of-type { font: 700 26px var(--display); color: var(--fg); letter-spacing: -.01em; }
.stage-empty #load-count { font-family: var(--sans); font-weight: 800; font-variant-numeric: tabular-nums lining-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(--plum); }

/* the coin in the top bar */
.coin > * { border-left: 1px solid var(--ink-3); padding: 0 12px; }
.coin-tk { font: 700 20px var(--display); color: var(--fg); letter-spacing: -.01em; box-shadow: inset 0 -4px 0 var(--peach); }
.coin-ca { font: 400 12px var(--addr); color: var(--muted); }
.coin-ca:hover, .coin-pump:hover { background: rgba(255, 255, 255, .5); color: var(--fg); }
.coin-pump { font: 700 13px var(--sans); color: var(--muted); }

@media (max-width: 760px) {
  .coin { border-top: var(--hair); }
  .top::before { right: 18px; width: 24px; height: 25px; }
  .tabs a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--plum); }
  .logo { font-size: 27px; } .logo .mark { width: 34px; height: 34px; }
  .duel-price.flaps { --ff: 31px; }
  .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: 13px 14px; }
  .omz { margin-top: 10px; }
  .omz.wait { width: 260px; }
  h1 { font-size: 26px; }
}

/* the base layout sets labels in spaced capitals; Omen 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; }
h1, .empty-state b, .stage-empty p:first-of-type { letter-spacing: -.01em; }
.btn.cta { letter-spacing: -.01em; }
.net, .stage-empty { font-family: var(--sans); font-weight: 700; }
.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; }
@media (max-width: 760px) { .cta-bar .btn { white-space: normal; text-wrap: balance; line-height: 1.15; } }

/* the main button reads as a sentence, not spaced capitals; 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); }
