:root {
  --bg: #071114;
  --panel: #0f1a1f;
  --panel-2: #14222a;
  --line: #22343b;
  --text: #f6fefd;
  --mute: #8fa09d;
  --acc: #50d2c1;
  --acc-hi: #97fce4;
  --acc-dim: rgba(80, 210, 193, 0.14);
  --loss: #ed7088;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 4vw, 48px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-image:
    radial-gradient(900px 520px at 85% -5%, rgba(151, 252, 228, 0.09), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(80, 210, 193, 0.05), transparent 60%);
}
body.locked { overflow: hidden; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { margin: 0; }
::selection { background: var(--acc); color: #04110f; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* ---------- nav ---------- */
.topnav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 800 17px/1 var(--display); letter-spacing: .02em; }
.brand b { color: var(--acc); font-weight: 800; }
.topnav nav { display: flex; gap: clamp(10px, 3vw, 28px); }
.topnav nav a { text-decoration: none; color: var(--mute); font-weight: 500; font-size: 15px; transition: color .2s; }
.topnav nav a:hover { color: var(--text); }
.topnav .nav-buy { color: var(--acc); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn small { font: 500 11px/1 var(--mono); opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.btn.primary { background: var(--acc); color: #04110f; }
.btn.primary:hover { background: var(--acc-hi); transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(151,252,228,.6); }
.btn.ghost { border-color: #2a3e45; color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--acc); transform: translateY(-2px); }
.btn.big { padding: 18px 30px; font-size: 18px; }
.btn[data-ready="false"] { background: transparent; color: var(--acc); border: 1px dashed var(--acc); box-shadow: none; }
.btn[data-ready="false"]:hover { background: var(--acc-dim); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm {
  font: 600 13px/1 var(--body);
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #2a3e45;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); }
.btn-sm:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm.danger:hover { border-color: var(--loss); color: var(--loss); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) var(--pad) clamp(30px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}
.onair {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(80,210,193,.5);
  border-radius: 999px;
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em;
  color: var(--acc-hi);
  background: rgba(80,210,193,.07);
}
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 10px var(--acc-hi); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.wordmark {
  font: 900 clamp(3rem, 8.6vw, 7rem)/.9 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.wordmark span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--acc) 10%, var(--acc-hi) 60%, #e9fffa);
  -webkit-background-clip: text; background-clip: text;
}
.ticker { margin: 16px 0 0; font: 600 17px/1 var(--mono); color: var(--acc); letter-spacing: .1em; }
.hook { margin: 20px 0 0; max-width: 520px; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; font-weight: 500; color: #dbe8e6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.feed { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font: 400 13px/1.4 var(--mono); color: var(--mute); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3c4c52; }
.dot.live { background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: pulse 1.6s infinite; }
.dot.sim { background: #d8b45a; }

.hero-screen { margin: 0; min-width: 0; animation: lift .9s .15s ease both; }
.hero-screen figcaption { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--mute); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hero-screen .monitor { box-shadow: 0 50px 120px -40px rgba(80,210,193,.45), 0 0 0 1px #2b3b41; }
@keyframes lift { from { opacity: 0; transform: translateY(26px) scale(.98); } }
.rec { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--loss); animation: pulse 1.3s infinite; }

/* ---------- monitor ---------- */
.monitor {
  position: relative;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1c292e, #121c20);
  border: 1px solid #2b3b41;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s, border-color .25s;
}
.monitor::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--acc); opacity: .7;
}
.monitor:hover { border-color: rgba(80,210,193,.6); }
.stand { position: relative; width: 12%; height: 16px; margin: 0 auto 5px; background: linear-gradient(180deg, #0d1518, #1a272c); }
.stand::before { content: ""; position: absolute; left: -110%; right: -110%; bottom: -5px; height: 5px; border-radius: 5px 5px 2px 2px; background: #1a272c; }

.hl-frame { position: relative; aspect-ratio: 760 / 475; overflow: hidden; border-radius: 6px; background: #0f1a1f; }

/* ---------- the Hyperliquid-style desktop (designed at 760x475, scaled) ---------- */
.hl {
  position: absolute; left: 0; top: 0;
  width: 760px; height: 475px;
  transform-origin: 0 0;
  display: flex; flex-direction: column;
  background: #0f1a1f;
  color: #f6fefd;
  font: 400 9px/1.25 var(--body);
  overflow: hidden;
  user-select: none;
}
.hl b { font-weight: 600; }
.hl .pos { color: var(--acc); }
.hl .neg { color: var(--loss); }
.hl .mute { color: #949e9c; }
.hl-boot { position: absolute; inset: 0; display: grid; place-items: center; background: #0f1a1f; font: 500 14px var(--mono); color: var(--acc); z-index: 5; }
.hl.ready .hl-boot { display: none; }

.hl-browser { flex: none; height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: #0a1215; border-bottom: 1px solid #1d2a30; }
.hl-browser .dots { display: flex; gap: 5px; }
.hl-browser .dots i { width: 8px; height: 8px; border-radius: 50%; background: #2c3a40; }
.hl-browser .dots i:first-child { background: #ed7088; }
.hl-tab { display: flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px 6px 0 0; background: #0f1a1f; color: #c9d6d4; max-width: 170px; white-space: nowrap; overflow: hidden; }
.hl-tab svg, .hl-logo svg { width: 11px; height: 11px; color: var(--acc-hi); flex: none; }
.hl-url { flex: 1; padding: 3px 10px; border-radius: 6px; background: #142026; color: #94a3a1; font-family: var(--mono); font-size: 8.5px; white-space: nowrap; overflow: hidden; }
.hl-live { font: 600 8.5px var(--mono); color: var(--acc); }
.hl-live.sim { color: #d8b45a; }

.hl-nav { flex: none; height: 30px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid #1d2a30; color: #949e9c; font-size: 9.5px; }
.hl-logo { display: flex; align-items: center; gap: 5px; color: #f6fefd; font: 600 12px/1 var(--body); letter-spacing: -.01em; margin-right: 6px; }
.hl-logo svg { width: 14px; height: 14px; }
.hl-nav .on { color: var(--acc-hi); }
.hl-wallet { margin-left: auto; padding: 5px 9px; border-radius: 6px; background: rgba(80,210,193,.12); color: var(--acc-hi); font: 500 8.5px var(--mono); }

.hl-mkt { flex: none; height: 40px; display: flex; align-items: center; gap: 18px; padding: 0 12px; border-bottom: 1px solid #1d2a30; white-space: nowrap; }
.hl-mkt small { display: block; color: #949e9c; font-size: 8px; text-decoration: underline dotted #3a4a50; }
.hl-mkt b { display: block; margin-top: 2px; font: 500 9.5px var(--mono); }
.hl-pair { display: flex; align-items: center; gap: 6px; padding-right: 6px; }
.hl-pair b { font: 600 13px var(--body); margin: 0; }
.hl-pair em { font-style: normal; padding: 2px 5px; border-radius: 4px; background: rgba(80,210,193,.15); color: var(--acc-hi); font-size: 8.5px; }

.hl-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 152px 168px; border-bottom: 1px solid #1d2a30; }
.hl-chart { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #1d2a30; }
.hl-tf { flex: none; height: 22px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border-bottom: 1px solid #1d2a30; color: #949e9c; font-size: 8.5px; white-space: nowrap; overflow: hidden; }
.hl-tf .on { color: var(--acc-hi); }
.hl-tf i { width: 1px; height: 10px; background: #2a3a40; }
.hl-tf .ohlc { margin-left: auto; font-family: var(--mono); font-size: 8px; color: #949e9c; }
.hl-tf .ohlc b { color: #f6fefd; font-weight: 500; }
.hl-cv { position: relative; flex: 1; min-height: 0; }
.hl-cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hl-xh { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.hl-xh.on { opacity: 1; }
.hl-xh .v { position: absolute; left: 0; top: 0; bottom: 18px; width: 0; border-left: 1px dashed rgba(246,254,253,.35); }
.hl-xh .h { position: absolute; left: 0; right: 0; top: 0; height: 0; border-top: 1px dashed rgba(246,254,253,.35); }
.hl-xh .h b { position: absolute; right: 1px; top: -8px; width: 56px; padding: 2px 4px; background: #2a3a40; color: #f6fefd; font: 500 8.5px var(--mono); }

.hl-book { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #1d2a30; font-family: var(--mono); font-size: 8.5px; }
.hl-bt { flex: none; height: 22px; display: flex; align-items: center; gap: 12px; padding: 0 8px; border-bottom: 1px solid #1d2a30; font-family: var(--body); color: #949e9c; }
.hl-bt .on { color: #f6fefd; box-shadow: inset 0 -2px 0 var(--acc); padding: 5px 0; }
.hl-bh, .hl-book p, .hl-spread { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 4px; padding: 0 8px; }
.hl-bh { height: 18px; align-items: center; color: #949e9c; font-family: var(--body); font-size: 8px; }
.hl-bh span:not(:first-child), .hl-book p span:not(:first-child), .hl-spread span:not(:first-child) { text-align: right; }
.hl-asks, .hl-bids { flex: none; }
.hl-book p { position: relative; margin: 0; height: 16px; align-items: center; transition: background .15s; }
.hl-book p::before { content: ""; position: absolute; right: 0; top: 1px; bottom: 1px; width: var(--w); opacity: .16; }
.hl-book p.ask::before { background: var(--loss); }
.hl-book p.bid::before { background: var(--acc); }
.hl-book p.ask span:first-child { color: var(--loss); }
.hl-book p.bid span:first-child { color: var(--acc); }
.hl-book p.hov { background: rgba(246,254,253,.07); }
.hl-spread { height: 20px; align-items: center; background: #142026; color: #949e9c; font-size: 8px; }

.hl-form { display: flex; flex-direction: column; gap: 6px; padding: 7px 9px; min-width: 0; }
.hl-lev, .hl-tabs, .hl-side { display: grid; gap: 4px; }
.hl-lev { grid-template-columns: repeat(3, 1fr); }
.hl-lev span { padding: 4px 0; text-align: center; border-radius: 5px; background: #1b2b31; font-size: 8.5px; }
.hl-tabs { grid-template-columns: repeat(3, 1fr); color: #949e9c; text-align: center; border-bottom: 1px solid #1d2a30; }
.hl-tabs span { padding: 3px 0 5px; }
.hl-tabs .on { color: #f6fefd; box-shadow: inset 0 -2px 0 var(--acc); }
.hl-side { grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 6px; background: #1b2b31; }
.hl-side span { padding: 5px 0; text-align: center; border-radius: 5px; color: #949e9c; transition: background .2s, color .2s; }
.hl-side [data-buy].on { background: var(--acc); color: #04110f; font-weight: 600; }
.hl-side [data-sell].on { background: var(--loss); color: #1a0509; font-weight: 600; }
.hl-row { display: flex; justify-content: space-between; gap: 6px; font-size: 8.5px; }
.hl-row small { color: #949e9c; font-size: 8.5px; }
.hl-row b { font: 500 8.5px var(--mono); white-space: nowrap; }
.hl-input { position: relative; display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid #2a3a40; border-radius: 6px; transition: border-color .2s; }
.hl-input small { color: #949e9c; font-size: 8.5px; margin-right: auto; }
.hl-input span { font: 500 10px var(--mono); }
.hl-input em { font-style: normal; color: #949e9c; font-size: 8.5px; }
.hl-input .caret { width: 1px; height: 11px; background: #f6fefd; opacity: 0; }
.hl-input.focus { border-color: var(--acc); }
.hl-input.focus .caret { opacity: 1; animation: pulse .9s steps(1) infinite; }
.hl-input.hov { border-color: #4a5c62; }
.hl-slider { position: relative; height: 4px; margin: 4px 4px; border-radius: 2px; background: #2a3a40; }
.hl-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--acc); transition: width .5s ease; }
.hl-slider b { position: absolute; top: -3px; left: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #f6fefd; border: 2px solid var(--acc); transition: left .5s ease; }
.hl-checks { display: flex; gap: 10px; color: #949e9c; font-size: 8.5px; }
.hl-checks i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; vertical-align: -1px; border: 1px solid #4a5c62; border-radius: 2px; }
.hl-place { display: block; padding: 8px 0; border-radius: 6px; text-align: center; font-weight: 600; font-size: 10px; transition: filter .15s, transform .1s; }
.hl-place.buy { background: var(--acc); color: #04110f; }
.hl-place.sell { background: var(--loss); color: #1a0509; }

.hl-bottom { flex: none; height: 82px; display: flex; flex-direction: column; }
.hl-btabs { height: 24px; display: flex; align-items: center; gap: 14px; padding: 0 10px; border-bottom: 1px solid #1d2a30; color: #949e9c; }
.hl-btabs .on { color: #f6fefd; box-shadow: inset 0 -2px 0 var(--acc); padding: 7px 0; }
.hl-eq { margin-left: auto; }
.hl-eq b { color: #f6fefd; font-family: var(--mono); }
.hl-ph, .hl-pr { display: grid; grid-template-columns: 1fr 1.1fr 1fr .9fr .9fr 1.3fr .9fr 1fr; gap: 6px; padding: 0 10px; align-items: center; white-space: nowrap; }
.hl-ph { height: 20px; color: #949e9c; font-size: 8px; }
.hl-pr { flex: 1; font: 400 8.5px var(--mono); }
.hl-pr span { overflow: hidden; text-overflow: ellipsis; }
.hl-pr .coin { font-family: var(--body); font-weight: 600; padding-left: 6px; border-left: 2px solid; }
.hl-pr .coin.long { border-color: var(--acc); }
.hl-pr .coin.short { border-color: var(--loss); }
.hl-pr .coin em { font-style: normal; color: var(--acc-hi); font-weight: 500; }
.hl-pr .empty { grid-column: 1 / -1; color: #949e9c; font-family: var(--body); text-align: center; }
.hl-close { color: var(--acc-hi); font-weight: 500; }

.hl-note {
  position: absolute; right: 12px; top: 104px; z-index: 3;
  max-width: 300px; padding: 9px 12px; border-radius: 8px;
  background: #1b2b31; border: 1px solid #2a3a40; border-left: 3px solid var(--acc);
  font: 500 10px/1.3 var(--body); color: #f6fefd;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.hl-note.neg { border-left-color: var(--loss); }
.hl-note.show { opacity: 1; transform: none; }
.hl.liq { animation: liqflash 1.4s ease; }
@keyframes liqflash { 15%, 45% { box-shadow: inset 0 0 0 4px var(--loss); } }

.hl-rip { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.hl-rip i { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--acc-hi); animation: rip .6s ease-out forwards; }
@keyframes rip { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.hl-cursor { position: absolute; left: 0; top: 0; z-index: 7; width: 15px; height: 20px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.hl-cursor path { transition: transform .12s; transform-origin: 2px 2px; }
.hl-cursor.down path { transform: scale(.82); }

/* ---------- sections ---------- */
section { scroll-margin-top: 50px; }
.wall-sec, .board-sec, .build-sec, .how-sec, .lore-sec, .buy-sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--pad);
}
.wall-sec { padding-top: 20px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head h2 { font: 800 clamp(1.9rem, 4.6vw, 3.2rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.sec-head p { margin: 12px 0 0; color: var(--mute); max-width: 580px; }
.session { margin: 0; font-size: 12px; color: var(--mute); }

/* ---------- screen wall ---------- */
.wall {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: #2a3a40 transparent;
}
.mon {
  scroll-snap-align: start;
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,34,42,.7), rgba(15,26,31,.4));
  border: 1px solid var(--line);
  opacity: 0;
  translate: 0 14px;
  animation: rise .6s ease forwards;
  transition: border-color .25s, box-shadow .25s;
}
.mon:hover { border-color: #33505a; box-shadow: 0 24px 60px -30px rgba(80,210,193,.45); }
.mon:hover .monitor { transform: translateY(-2px); }
.mon.is-user { border-color: rgba(80,210,193,.4); }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.mon-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.mon-head h3 { font: 800 16px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-head .tag { font: 600 12px/1 var(--mono); color: var(--acc); }
.mon-head .rank { margin-left: auto; flex: none; font: 600 11px/1 var(--mono); color: var(--text); background: #1b2b31; padding: 5px 8px; border-radius: 5px; }
.mon-head .rank.first { background: var(--acc); color: #04110f; }
.yours { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; background: var(--acc-dim); color: var(--acc); }
.mon .stand { margin-bottom: 14px; }
.mon-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mon-stats small { display: block; font: 400 10px/1.2 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.mon-stats b { display: block; margin-top: 3px; font: 600 14px/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-thought {
  margin: 10px 0 0; min-height: 2.8em;
  font: 400 12px/1.4 var(--mono);
  color: #b4c7c3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mon-thought::before { content: "› "; color: var(--acc); }
.mon-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: auto; }
.mon-foot span { font-size: 13px; color: var(--mute); line-height: 1.35; min-width: 0; }

.pos { color: var(--acc); }
.neg { color: var(--loss); }

/* ---------- board ---------- */
.board-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font: 500 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .1em; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.board td { padding: 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr { transition: background .2s; cursor: pointer; }
.board tbody tr:hover { background: var(--panel-2); }
.board .num { text-align: right; }
.board .who { font-family: var(--body); font-weight: 600; }
.board .who small { display: block; font: 400 11px/1.3 var(--mono); color: var(--mute); }
.board .rk { color: var(--mute); width: 40px; }
.board tr.top .rk { color: var(--acc); font-weight: 600; }
.board td:last-child { text-align: right; width: 1%; }

/* ---------- builder ---------- */
.builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--panel), #0b1519);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wide { grid-column: 1 / -1; }
.field label { font: 500 13px/1.3 var(--body); color: #c6d4d2; display: flex; justify-content: space-between; gap: 8px; }
.opt { color: var(--mute); font-weight: 400; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  font: 400 15px/1.4 var(--mono);
  color: var(--text);
  background: #081215;
  border: 1px solid #253a41;
  border-radius: 10px;
  padding: 12px 13px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 60px; font-size: 16px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.field input.bad { border-color: var(--loss); }
.field input[type="range"] { accent-color: var(--acc); width: 100%; margin: 10px 0 0; }
.field output { color: var(--acc); }
.parsed { margin: 0; min-height: 1.4em; font-size: 12px; color: var(--acc); }
.rules { border-top: 1px dashed #253a41; padding-top: 18px; }
.hint { margin: 0; font-size: 12px; color: var(--mute); }
.preview { margin: 8px 0 0; font-size: 17px; font-weight: 500; max-width: 820px; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fine { margin: 0; color: var(--mute); font-size: 13px; }

/* ---------- lore ---------- */
.big-quote { font: 800 clamp(1.7rem, 4.2vw, 3.4rem)/1.08 var(--display); text-transform: uppercase; letter-spacing: -.01em; max-width: 1050px; }
.big-quote span { color: var(--acc); }
.lore-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 36px; max-width: 900px; color: #c2d0ce; font-size: 17px; }
.lore-body p { margin: 0; }

/* ---------- rundown ---------- */
.rundown { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rundown li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; }
.rundown li:hover { background: linear-gradient(90deg, var(--acc-dim), transparent 60%); padding-left: 12px; }
.rundown .t { color: var(--acc); font-size: 14px; padding-top: 4px; }
.rundown h3 { font: 700 19px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0; }
.rundown p { margin: 6px 0 0; color: var(--mute); max-width: 640px; }

/* ---------- buy ---------- */
.buy-sec { text-align: center; }
.buy-sec h2 { font: 900 clamp(2.4rem, 7vw, 5.2rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.buy-sub { color: var(--mute); font-size: 18px; margin: 16px 0 0; }
.buy-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ca-box {
  display: flex; align-items: center; gap: 12px;
  max-width: 620px; margin: 26px auto 0;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  text-align: left;
}
.ca-label { color: var(--acc); font-weight: 600; }
#ca { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mute); font-size: 14px; }
#ca.set { color: var(--text); }

.foot { max-width: var(--max); margin: 0 auto; padding: 30px var(--pad) 50px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.foot b { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- desk modal ---------- */
.screen { position: fixed; inset: 0; z-index: 10000; overflow-y: auto; padding: clamp(8px, 3vw, 36px); }
.screen[hidden] { display: none; }
.screen-backdrop { position: fixed; inset: 0; background: rgba(2, 8, 10, .85); backdrop-filter: blur(6px); }
.computer {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  border: 1px solid #2b3b41; border-radius: 16px; overflow: hidden;
  background: #0b1418;
  box-shadow: 0 40px 120px -30px rgba(80,210,193,.3);
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.menubar { display: flex; align-items: center; gap: 16px; padding: 8px 14px; background: #121e23; border-bottom: 1px solid #22343b; font-size: 12px; color: #c6d4d2; }
.mb-logo { color: var(--acc); }
.menubar b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.mb-close { background: none; border: 1px solid #2b3b41; color: var(--text); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 13px; }
.mb-close:hover { border-color: var(--acc); color: var(--acc); }
.desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px; padding: 12px;
  background: radial-gradient(800px 400px at 20% 0%, rgba(80,210,193,.07), transparent 60%), #081013;
}
.desk-win { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.desk-win .hl-frame { border-radius: 0; }
.fills-win { grid-column: 1 / -1; }
.win { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0c161a; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--mute); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3a40; }
.win-bar i:first-child { background: var(--acc); }
.win-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); }
.pos-grid div { background: var(--panel); padding: 12px 14px; min-width: 0; }
.pos-grid dt { font: 400 10px/1.2 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.pos-grid dd { margin: 5px 0 0; font: 600 15px/1.2 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-rules { margin: 0; padding: 14px; font-size: 13px; line-height: 1.5; color: #c2d0ce; border-top: 1px solid var(--line); }
.scr-rules b { color: var(--acc); font-weight: 600; }
.log { height: 330px; overflow-y: auto; padding: 12px 14px; font-size: 12px; line-height: 1.55; background: #071013; color: #a5b8b4; }
.log p { margin: 0 0 2px; overflow-wrap: anywhere; }
.log .ts { color: #4c615d; margin-right: 6px; }
.log .trade { color: var(--text); }
.log .gain { color: var(--acc); }
.log .loss { color: var(--loss); }
.log .sys { color: #69807b; font-style: italic; }
.log .quirk { color: var(--acc-hi); }
.fills-wrap { height: 200px; overflow: auto; }
.fills { width: 100%; border-collapse: collapse; font-size: 12px; }
.fills th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 400; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.fills td { padding: 7px 10px; border-bottom: 1px solid #162429; white-space: nowrap; }
.fills .num { text-align: right; }
.fills .empty { color: var(--mute); text-align: center; padding: 30px 10px; white-space: normal; }
.dock { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #121e23; border-top: 1px solid #22343b; font-size: 12px; color: var(--mute); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10001;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px);
  background: var(--acc); color: #04110f; font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: 10px;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .wall { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 22px; }
}
@media (min-width: 1180px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-screen { max-width: 720px; }
}
@media (max-width: 900px) {
  .builder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .log { height: 220px; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .lore-body { grid-template-columns: 1fr; gap: 16px; }
  .rundown li { grid-template-columns: 1fr; gap: 6px; }
  .board td, .board th { padding: 12px 10px; }
  .topnav nav a:not(.nav-buy):nth-child(2) { display: none; }
  .monitor { padding: 5px; border-radius: 10px; }
}
@media (max-width: 460px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .buy-actions .btn { flex: 1 1 100%; }
  .ca-box { padding-left: 14px; }
  .dock .btn-sm { flex: 1; }
  .dock #scr-rank { order: -1; width: 100%; text-align: center; }
  .brand span { font-size: 14px; }
  .topnav nav a:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mon, .reveal, .hero-screen { opacity: 1; transform: none; translate: none; }
}
