/* Oryxis — shared styles. Palette sampled from the logo. */
:root {
  --z: .8;
  --vh: calc(100vh / var(--z));
  --bg: #f4efe6;
  --bg2: #ece5d8;
  --card: #fbf8f2;
  --ink: #121218;
  --ink2: #4d4a45;
  --mute: #8d877c;
  --line: #ddd4c4;
  --acc: #ff6a1a;
  /* logo mid-tone */
  --acc-hi: #ff9a4d;
  /* logo highlight */
  --acc-deep: #c43d00;
  /* logo deep */
  --acc-shadow: #3a1200;
  /* logo shadow */
  --acc-soft: #ffe4d1;
  --acc-tint: #ffc9a6;
  --r: 30px;
  --r-sm: 20px;
  --rail: 196px;
  --tick: 50px;
  --font: 'Bricolage Grotesque', system-ui, sans-serif;
}

html {
  zoom: var(--z);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

input, textarea, select {
  cursor: text;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
}

::selection {
  background: var(--acc);
  color: #fff;
}

.acc {
  color: var(--acc);
}

.mute {
  color: var(--mute);
}

.mono {
  font-variant-numeric: tabular-nums;
}

/* ---------- layout ---------- */
.main {
  padding: 0 calc(var(--rail) + 56px) calc(var(--tick) + 40px) 56px;
  min-height: var(--vh);
}

.section {
  padding: 120px 0;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc-deep);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.h-xl {
  font-size: 168px;
}

.h-l {
  font-size: 112px;
}

.h-m {
  font-size: 72px;
}

.h-s {
  font-size: 40px;
}

.lead {
  font-size: 26px;
  color: var(--ink2);
  max-width: 640px;
  font-weight: 500;
}

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  background: var(--card);
  border: 2px solid var(--ink);
}

.pill:hover {
  background: var(--ink);
  color: var(--bg);
}

.pill.fill {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.pill.fill:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.pill.ink {
  background: var(--ink);
  color: var(--bg);
}

.pill.ink:hover {
  background: var(--acc);
  border-color: var(--acc);
}

.pill.big {
  height: 68px;
  padding: 0 34px;
  font-size: 21px;
}

.pill:active {
  transform: scale(.97);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg2);
  color: var(--ink2);
  white-space: nowrap;
}

.chip.acc {
  background: var(--acc);
  color: #fff;
}

.chip.soft {
  background: var(--acc-soft);
  color: var(--acc-deep);
}

.chip.ink {
  background: var(--ink);
  color: var(--bg);
}

.chip.line {
  background: transparent;
  border: 2px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.dot.pulse {
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 34px;
  border: 2px solid var(--line);
}

.up {
  color: var(--acc);
}

.down {
  color: var(--ink2);
}

/* ---------- header (wordmark + top-right cluster) ---------- */
.brand {
  position: absolute;
  top: 26px;
  left: 56px;
  z-index: 40;
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -.05em;
  color: var(--acc);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 62px;
  height: 62px;
  transition: transform .7s cubic-bezier(.2, .9, .3, 1.4);
}

.brand:hover img {
  transform: rotate(180deg);
}

.cluster {
  position: fixed;
  top: 26px;
  right: calc(var(--rail) + 48px);
  z-index: 60;
  display: flex;
  gap: 10px;
}

.cluster .pill {
  height: 50px;
  box-shadow: 0 6px 20px rgba(18, 18, 24, .08);
}

.cluster .x {
  width: 50px;
  padding: 0;
  justify-content: center;
}

.cluster .x svg {
  width: 19px;
  height: 19px;
}

.cluster .ca {
  font-variant-numeric: tabular-nums;
}

.cluster .ca b {
  color: var(--acc);
}

.cluster .ca:hover b {
  color: var(--acc-tint);
}

/* ---------- right rail nav ---------- */
.rail {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: calc(var(--tick) + 20px);
  width: var(--rail);
  z-index: 70;
  background: var(--ink);
  border: 2px solid #2a2930;
  color: var(--bg);
  border-radius: 38px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(58, 18, 0, .12);
}

.rail-logo {
  display: grid;
  place-items: center;
  padding: 6px 0 10px;
}

.rail-logo img {
  width: 108px;
  height: 108px;
  transition: transform .6s cubic-bezier(.2, .9, .3, 1.4);
}

.rail-logo:hover img {
  transform: rotate(180deg) scale(1.06);
}

.tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 20px;
  flex: 1 1 0;
  min-height: 82px;
  border-radius: 26px;
  background: #1f1e25;
  transition: background .2s, color .2s, transform .25s cubic-bezier(.2, .9, .3, 1.4);
}

.tab small {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--mute);
}

.tab span {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.tab:hover {
  background: var(--bg);
  color: var(--ink);
  transform: translateX(-6px);
}

.tab:hover small {
  color: var(--acc-deep);
}

.tab.on {
  background: var(--acc);
  color: #fff;
}

.tab.on small {
  color: var(--acc-tint);
}

.rail-live {
  border-radius: 26px;
  background: #1f1e25;
  border: 2px solid var(--acc);
  color: var(--bg);
  padding: 14px 16px;
}

.rail-live .lv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acc);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rail-live .cd {
  font-size: 26px;
  font-weight: 900;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.rail-live .wk {
  font-size: 13px;
  color: var(--mute);
  font-weight: 700;
}

/* ---------- ticker ---------- */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tick);
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 26px 26px 0 0;
}

.ticker .tag {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  background: var(--acc);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .08em;
  border-radius: 0 26px 26px 0;
  flex: none;
}

.mq {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  position: relative;
}

.mq-track {
  display: inline-flex;
  will-change: transform;
}

.mq-copy {
  display: inline-flex;
  flex: none;
}

.tk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.tk b {
  font-weight: 900;
}

.tk .c {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 900;
}

.tk .c.p {
  background: var(--acc);
  color: #fff;
}

.tk .c.n {
  background: #2b2a30;
  color: #bdb6a8;
}

.tk i {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #8a8578;
}

/* ---------- progress + cursor ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  z-index: 90;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--acc);
  border-radius: 0 999px 999px 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.cur-dot, .cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  will-change: transform;
}

.cur-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--acc);
}

.cur-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  display: grid;
  place-items: center;
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s;
}

.cur-ring span {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
  letter-spacing: .02em;
}

.cur-ring.big {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--acc);
  border-color: var(--acc);
}

.cur-ring.big span {
  opacity: 1;
}

.cur-hide .cur-dot, .cur-hide .cur-ring {
  opacity: 0;
}

/* ---------- rolling digits ---------- */
.roll {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  overflow: hidden;
  vertical-align: bottom;
}

.rd {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  position: relative;
}

.rs {
  display: flex;
  flex-direction: column;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}

.rs span {
  height: 1em;
  line-height: 1;
  text-align: center;
}

.rc {
  display: inline-block;
  line-height: 1;
}

/* ---------- reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- leaderboard ---------- */
.board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .3s, background .2s;
  will-change: transform;
  position: relative;
}

.row:hover {
  border-color: var(--acc);
  box-shadow: 0 18px 40px rgba(255, 106, 26, .14);
}

.row-main {
  display: grid;
  grid-template-columns: 84px 1.6fr 150px 1fr 1fr 130px;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 14px 14px;
  min-height: 82px;
}

.rk {
  width: 62px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--bg2);
  font-weight: 900;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.row[data-rank="1"] .rk {
  background: var(--acc);
  color: #fff;
}

.row[data-rank="2"] .rk, .row[data-rank="3"] .rk {
  background: var(--ink);
  color: var(--bg);
}

.who b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.who span {
  font-size: 14px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.pnl {
  font-size: 28px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--ink2);
}

.delta.u {
  background: var(--acc);
  color: #fff;
}

.delta.flash {
  animation: flash .9s;
}

@keyframes flash {
  0% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.row-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1);
}

.row:hover .row-more, .row.open .row-more {
  grid-template-rows: 1fr;
}

.row-more>div {
  overflow: hidden;
}

.positions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 22px 20px 116px;
}

.pos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  background: var(--bg);
  border: 2px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pos .s {
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 900;
}

.pos.long .s {
  background: var(--acc);
  color: #fff;
}

.spark {
  display: block;
  width: 100%;
  height: 46px;
}

/* category colours (shades of the accent) */
.cat-stock {
  --cc: var(--acc);
}

.cat-perp {
  --cc: var(--acc-deep);
}

.cat-meme {
  --cc: var(--acc-hi);
}

.cat-major {
  --cc: var(--acc-shadow);
}

.cdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cc, var(--acc));
  display: inline-block;
  flex: none;
}

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink2);
}

.input {
  height: 62px;
  border-radius: 22px;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 0 22px;
  font: 700 19px var(--font);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 5px var(--acc-soft);
}

.input.bad {
  border-color: var(--ink);
  box-shadow: 0 0 0 5px var(--bg2);
}

.err {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-height: 18px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  font-weight: 800;
  transition: .2s;
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle.on, .toggle:has(input:checked) {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.check {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.check .box {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--card);
  flex: none;
  transition: .2s;
}

.check input {
  display: none;
}

.check input:checked+.box {
  background: var(--acc);
  border-color: var(--acc);
}

.check input:checked+.box::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------- tables ---------- */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-variant-numeric: tabular-nums;
}

.tbl th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0 16px;
}

.tbl td {
  background: var(--card);
  padding: 16px;
  font-weight: 700;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.tbl td:first-child {
  border-left: 2px solid var(--line);
  border-radius: 20px 0 0 20px;
}

.tbl td:last-child {
  border-right: 2px solid var(--line);
  border-radius: 0 20px 20px 0;
}

.tbl .r {
  text-align: right;
}

/* ---------- footer ---------- */
.foot {
  margin: 80px 0 0;
  padding: 40px;
  border-radius: 34px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}

.foot .fw {
  font-size: 54px;
  font-weight: 900;
  color: var(--acc-hi);
  letter-spacing: -.04em;
  line-height: 1;
}

.foot a:hover {
  color: var(--acc-tint);
}

.foot h4 {
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.src-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: #23222a;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.src-pill .dot {
  background: var(--acc-hi);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tick) + 30px);
  transform: translate(-50%, 30px);
  opacity: 0;
  z-index: 150;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
  transition: .35s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: none;
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- page head (inner pages) ---------- */
.phead {
  padding: 150px 0 40px;
}

.phead h1 {
  font-size: 140px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 28px 30px;
}

.stat small {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}

.stat .v {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.stat.acc {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}

.stat.acc small {
  color: var(--acc-tint);
}

.stat.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.empty {
  padding: 40px;
  text-align: center;
  color: var(--mute);
  font-weight: 700;
  border: 2px dashed var(--line);
  border-radius: var(--r);
}

.skel {
  height: 82px;
  border-radius: 28px;
  background: linear-gradient(90deg, var(--bg2), var(--card), var(--bg2));
  background-size: 200% 100%;
  animation: sk 1.4s infinite linear;
}

@keyframes sk {
  to { background-position: -200% 0; }
}
