:root {
  --bg: #070a14;
  --bg2: #0b0e1e;
  --panel: #0d1224;
  --panel2: #111830;
  --line: rgba(57, 255, 136, 0.14);
  --line2: rgba(255, 255, 255, 0.08);
  --mint: #39ff88;
  --mint-dim: #1f9a55;
  --red: #ff4d5e;
  --gold: #f5c451;
  --text: #e9edf7;
  --muted: #8b93ad;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "Silkscreen", monospace;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
b { font-weight: 600; }
.mint { color: var(--mint); }
.red { color: var(--red); }
[hidden] { display: none !important; }

.scan {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.top {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 28px; height: 64px;
  background: rgba(7, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { font-family: var(--pixel); font-size: 13px; letter-spacing: 0.06em; color: #fff; white-space: nowrap; }
.tabs { display: flex; gap: 4px; justify-content: center; }
.tabs a {
  position: relative; padding: 8px 14px; border-radius: var(--radius);
  color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s;
}
.tabs a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.tabs a.on { color: #fff; }
.tabs a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 2px;
  background: var(--mint); box-shadow: 0 0 12px var(--mint);
}
.top-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.top-right .btn, .top-right .chain { white-space: nowrap; flex-shrink: 0; }
.ticker { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ticker span b { color: var(--text); font-weight: 500; margin-left: 5px; }
.ticker span.up b { color: var(--mint); }
.ticker span.down b { color: var(--red); }
.chain {
  background: transparent; border: 1px solid var(--line2); border-radius: 999px;
  padding: 7px 12px; font-size: 13px; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s;
}
.chain::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.chain.live { color: var(--text); border-color: var(--line); }
.chain.live::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.chain.wrong { color: var(--red); border-color: rgba(255,77,94,0.4); }
.chain.wrong::before { background: var(--red); }

.btn {
  --shadow: #0b7a3c;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--mint); color: #05140b; border: 0; border-radius: var(--radius);
  padding: 12px 20px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s, box-shadow .12s, filter .2s;
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left .5s;
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn:disabled { filter: grayscale(0.6) brightness(0.7); cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #1c2a22; }
.btn-ghost { --shadow: #142035; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line2), 4px 4px 0 var(--shadow); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line), 5px 5px 0 var(--shadow); }
.btn-red { --shadow: #7a1d26; background: var(--red); color: #fff; }
.btn-big { padding: 15px 26px; font-size: 16px; }
.btn-small { padding: 8px 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--shadow); }
.btn-wide { width: 100%; }
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading::before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.25); border-top-color: #05140b; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page { display: none; animation: pageIn .5s ease both; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line2); }
.hero-short { min-height: 56vh; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: auto; opacity: 0; transition: opacity 1.2s; }
.hero-video.ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,10,20,0.92) 0%, rgba(7,10,20,0.78) 38%, rgba(7,10,20,0.15) 70%, rgba(7,10,20,0.1) 100%),
              linear-gradient(0deg, rgba(7,10,20,0.9) 0%, transparent 35%);
}
.hero-copy { position: relative; z-index: 2; padding: 90px 28px 70px; max-width: 720px; margin-left: max(0px, calc((100vw - 1240px) / 2)); }
.eyebrow { font-family: var(--pixel); font-size: 11px; letter-spacing: 0.12em; color: var(--mint); text-transform: uppercase; margin-bottom: 18px; animation: rise .6s .05s ease both; }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 700; animation: rise .6s .15s ease both; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: #c9d0e3; max-width: 600px; margin: 0 0 30px; animation: rise .6s .25s ease both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: rise .6s .35s ease both; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; animation: rise .6s .45s ease both; }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b { font-family: var(--mono); font-size: 26px; font-weight: 600; color: #fff; }
.hero-stats span { font-size: 13px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 34px 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-wide-left { grid-template-columns: 1.25fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stack { display: grid; gap: 22px; }
.stats { padding-bottom: 0; }
.stat { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--mono); font-size: 28px; font-weight: 600; color: #fff; }
.stat span { color: var(--muted); font-size: 13px; }

.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px;
  position: relative; transition: border-color .25s, box-shadow .25s;
}
.panel:hover { border-color: var(--line); box-shadow: 0 0 0 1px rgba(57,255,136,0.05), 0 20px 60px rgba(0,0,0,0.35); }
.panel.wide { width: 100%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip.ok { color: var(--mint); border-color: var(--line); }
.chip.bad { color: var(--red); border-color: rgba(255,77,94,0.35); }
.rows { display: grid; gap: 0; border-top: 1px solid var(--line2); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.row span { color: var(--muted); }
.row b { font-family: var(--mono); font-weight: 500; color: #fff; text-align: right; word-break: break-all; }
.row b.ok { color: var(--mint); }
.row b.bad { color: var(--red); }
.fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.empty { color: var(--muted); padding: 30px 10px; text-align: center; font-size: 15px; border: 1px dashed var(--line2); border-radius: var(--radius); }

.qty { display: grid; grid-template-columns: 44px 70px 44px 1fr; align-items: center; gap: 8px; margin: 18px 0 14px; }
.qty button { height: 44px; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--text); font-size: 20px; cursor: pointer; transition: border-color .2s; }
.qty button:hover { border-color: var(--line); }
.qty input { height: 44px; text-align: center; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); font-family: var(--mono); font-size: 18px; }
.qty span { font-family: var(--mono); color: var(--mint); font-size: 16px; text-align: right; }
.minted-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.minted-strip img { width: 84px; height: 84px; border-radius: 4px; border: 1px solid var(--line); image-rendering: pixelated; }

.token-frame { position: relative; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.token-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(57,255,136,0.06) 50%, transparent 60%); pointer-events: none; }
.token-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.attrs span { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line2); border-radius: 4px; padding: 4px 8px; }
.attrs span b { color: var(--text); font-weight: 500; margin-left: 4px; }
.attrs span.up b { color: var(--mint); }
.attrs span.down b { color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 22px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.step:hover { transform: translateY(-3px); border-color: var(--line); }
.step .n { font-family: var(--pixel); font-size: 12px; color: var(--mint); }
.step h3 { margin: 12px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.moods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mood { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mood b { font-size: 16px; }
.mood span { color: var(--muted); font-size: 13px; }

.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tcard { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; transition: border-color .25s, transform .25s; }
.tcard:hover { border-color: var(--line); transform: translateY(-2px); }
.tcard .token-frame { aspect-ratio: 1 / 1; }
.tcard .tid { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); }
.tcard .tid b { font-size: 17px; }
.tcard .tid a { color: var(--muted); font-size: 12px; }
.tcard .tid a:hover { color: var(--mint); }
.tcard .controls { display: grid; gap: 8px; }
.tcard .controls label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.watch4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
select, input[type="text"], input:not([type]), input[type="datetime-local"], textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px 12px; color: var(--text); outline: none; transition: border-color .2s;
}
select:focus, input:focus, textarea:focus { border-color: var(--mint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.head-actions select { width: auto; padding: 7px 30px 7px 10px; font-size: 13px; }
form label, .field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
form label select, form label input, .field select, .field input, .field textarea { color: var(--text); }
.question { font-family: var(--mono); font-size: 14px; color: var(--mint); background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px; margin: 4px 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 9px 14px; color: var(--muted); cursor: pointer; font-size: 13px; border-right: 1px solid var(--line2); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: rgba(57,255,136,0.12); color: var(--mint); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
canvas#fxCanvas { width: 100%; height: auto; border: 1px solid var(--line2); border-radius: var(--radius); background: var(--bg2); }

.markets { display: grid; gap: 14px; }
.mcard { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; transition: border-color .25s; }
.mcard:hover { border-color: var(--line); }
.mcard .mhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mcard .q { font-size: 16px; font-weight: 600; line-height: 1.35; }
.mcard .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.mcard .meta b { color: var(--text); font-weight: 500; }
.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: var(--mono); font-size: 13px; }
.pools div { padding: 8px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line2); display: flex; justify-content: space-between; }
.pools .yes { border-color: rgba(57,255,136,0.3); color: var(--mint); }
.pools .no { border-color: rgba(255,77,94,0.3); color: var(--red); }
.bar { height: 6px; border-radius: 3px; background: rgba(255,77,94,0.5); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.mcard .mactions { display: flex; gap: 8px; flex-wrap: wrap; }
.state { font-family: var(--pixel); font-size: 10px; letter-spacing: 0.08em; padding: 5px 9px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.state.open { color: var(--mint); border-color: var(--line); }
.state.yes { color: #05140b; background: var(--mint); border-color: var(--mint); }
.state.no { color: #fff; background: var(--red); border-color: var(--red); }
.state.window { color: var(--gold); border-color: rgba(245,196,81,0.4); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .55; } }

.board { display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 4px; }
.brow .rank { color: var(--muted); }
.brow.me { border-color: var(--line); }
.brow .sc { color: var(--mint); }

.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rules-grid div { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 16px; }
.rules-grid b { display: block; margin-bottom: 6px; font-size: 15px; color: var(--mint); }
.rules-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.manifesto { display: grid; gap: 24px; max-width: 980px; }
.manifesto article { padding: 26px 28px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); border-left: 3px solid var(--mint); }
.manifesto article h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.01em; }
.manifesto article p { margin: 0; color: #c9d0e3; font-size: 16.5px; }
.never { margin: 0; padding-left: 20px; color: #c9d0e3; display: grid; gap: 8px; font-size: 16px; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num-grid div { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.num-grid b { font-family: var(--mono); font-size: 24px; color: #fff; font-weight: 600; }
.num-grid span { color: var(--muted); font-size: 13px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--mint); font-family: var(--mono); }
.faq details[open] summary::after { content: "-"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.foot { border-top: 1px solid var(--line2); margin-top: 40px; background: var(--bg2); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 30px; align-items: start; padding-top: 34px; padding-bottom: 40px; }
.foot p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--mint); }
.foot-note { color: var(--muted); font-size: 13px; }

#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 60; max-width: 380px; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: rise .3s ease both; }
.toast.err { border-color: rgba(255,77,94,0.4); border-left-color: var(--red); }
.toast a { color: var(--mint); }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(4,6,12,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { width: 100%; max-width: 440px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; animation: rise .25s ease both; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-head .x { background: transparent; border: 1px solid var(--line2); color: var(--muted); width: 32px; height: 32px; border-radius: 4px; cursor: pointer; font-family: var(--mono); }
.modal-body { display: grid; gap: 12px; }
.modal-body .big { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.modal-body .big b { color: var(--text); }

@media (max-width: 1380px) {
  .ticker span:nth-child(2), .ticker span:nth-child(3) { display: none; }
}
@media (max-width: 1100px) {
  .top { grid-template-columns: auto 1fr auto; gap: 14px; padding: 0 16px; }
  .ticker { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .moods { grid-template-columns: repeat(3, 1fr); }
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .top { height: auto; grid-template-columns: 1fr auto; row-gap: 8px; padding: 10px 14px; }
  .tabs { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .tabs a.on::after { bottom: -1px; }
  .brand-name { display: none; }
  .hero { min-height: 70vh; }
  .hero-copy { padding: 60px 18px 40px; }
  .hero-stats { gap: 20px; }
  .grid-2, .grid-wide-left, .grid-3 { grid-template-columns: 1fr; }
  .wrap { padding: 22px 16px; }
  .steps, .moods, .rules-grid, .num-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,10,20,0.95) 0%, rgba(7,10,20,0.6) 55%, rgba(7,10,20,0.25) 100%); }
}

.mkapp { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.rail { position: sticky; top: 84px; display: grid; gap: 14px; }
.rail nav { display: grid; gap: 4px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 8px; }
.rail nav a { padding: 10px 12px; border-radius: 4px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; cursor: pointer; }
.rail nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.rail nav a.on { color: #fff; background: rgba(57,255,136,0.1); box-shadow: inset 3px 0 0 var(--mint); }
.rail-stats { display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 12px; }
.rail-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.rail-stats b { font-family: var(--mono); color: #fff; font-size: 15px; }
.mkview { min-height: 420px; }
.mk-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.mk-toolbar input { flex: 1 1 220px; }
.chips { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.chips button { background: transparent; border: 0; padding: 8px 14px; color: var(--muted); cursor: pointer; font-size: 13px; }
.chips button.on { background: rgba(57,255,136,0.12); color: var(--mint); }
.mk-toolbar select { width: auto; padding: 8px 30px 8px 12px; font-size: 13px; }
.mgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mcard2 { background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .25s, transform .25s; }
.mcard2:hover { border-color: var(--line); transform: translateY(-2px); }
.tile { position: relative; background: linear-gradient(180deg, #0b1020, #0d1224); border-bottom: 1px solid var(--line2); padding: 12px 14px 8px; }
.tile.big { border: 1px solid var(--line2); border-radius: var(--radius); margin-bottom: 4px; }
.tile-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); }
.tile-top b { font-family: var(--pixel); font-size: 20px; letter-spacing: 0.04em; color: #fff; }
.tile.big .tile-top b { font-size: 28px; }
.tile-top span { font-size: 14px; }
.tile canvas { width: 100%; height: auto; display: block; margin-top: 6px; }
.tile-line { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.mbody { padding: 14px; display: grid; gap: 12px; }
.mbody .mhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mbody h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.odds { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; }
.odds.big { font-size: 16px; }
.odds-bar { height: 8px; border-radius: 4px; background: rgba(255,77,94,0.5); overflow: hidden; }
.odds-bar i { display: block; height: 100%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yesno button { border: 0; border-radius: 4px; padding: 10px; font-weight: 700; cursor: pointer; transition: filter .2s; }
.yesno .yes { background: rgba(57,255,136,0.15); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(57,255,136,0.35); }
.yesno .no { background: rgba(255,77,94,0.15); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,77,94,0.35); }
.yesno button:hover { filter: brightness(1.25); }
.mfoot { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.mfoot b { color: var(--text); font-weight: 500; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.back::before { content: "< "; }
.back:hover { color: var(--mint); }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.detail-main { display: grid; gap: 16px; }
.detail-main .mhead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-main h2 { margin: 0; font-size: 26px; line-height: 1.3; }
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.timeline div { background: var(--bg2); border: 1px solid var(--line2); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.timeline span { color: var(--muted); font-size: 12px; }
.timeline b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.timeline b a:hover { color: var(--mint); }
.seg.big { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.seg.big button { padding: 12px; font-size: 15px; font-weight: 700; }
.seg.big button[data-s="0"].on { background: rgba(255,77,94,0.15); color: var(--red); }
.quick { display: flex; gap: 8px; margin: -4px 0 12px; }
.quick button { flex: 1; background: var(--bg2); border: 1px solid var(--line2); border-radius: 4px; padding: 8px; color: var(--muted); cursor: pointer; font-family: var(--mono); }
.quick button:hover { border-color: var(--line); color: var(--text); }
.est { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; min-height: 18px; }
.est b { color: var(--mint); }
.position { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.empty.window { color: var(--gold); border-color: rgba(245,196,81,0.4); }
.activity { display: grid; gap: 6px; }
.act { display: grid; grid-template-columns: 110px 50px 1fr auto; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 4px; }
.act a { color: var(--text); }
.act a:hover { color: var(--mint); }
.act .muted { color: var(--muted); font-size: 12px; }
.compose { display: grid; gap: 8px; margin-bottom: 16px; }
.compose textarea { resize: vertical; }
.compose-row { display: flex; align-items: center; gap: 12px; justify-content: flex-end; font-family: var(--mono); font-size: 12px; }
.compose-row .muted { color: var(--muted); }
.compose-row #postReply { margin-right: auto; }
.compose-row a { color: var(--mint); }
.posts { display: grid; gap: 10px; }
.post { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.post.reply { margin-left: 26px; border-left: 3px solid var(--line); }
.post-head { display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-head b { color: var(--mint); font-weight: 600; }
.post-head a { color: var(--muted); }
.post-head a:hover { color: var(--mint); }
.post-text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.replyBtn { justify-self: start; background: transparent; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0; }
.replyBtn:hover { color: var(--mint); }
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.lb { display: grid; gap: 6px; }
.lb .brow { grid-template-columns: 34px 1fr auto auto; }
.lb .share { color: var(--muted); }
.create .grid-2 label { margin-bottom: 0; }
.create .hint { margin: 12px 0; }
@media (max-width: 1100px) { .mgrid { grid-template-columns: 1fr; } .detail { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .mkapp { grid-template-columns: 1fr; } .rail { position: static; } .rail nav { grid-template-columns: repeat(3, 1fr); } .lb-stats { grid-template-columns: 1fr; } .act { grid-template-columns: 1fr 1fr; } }

/* token page (#/token/<id>): one trader, refreshed by the contract */
.tokpage { padding: 28px 0 40px; }
.tokpage .grid-2 { align-items: start; }
.tokpage .token-frame img { width: 100%; }
.tokpage .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted, #8b93ad); font-size: 13px; }
.toggle input { accent-color: #39ff88; }
.tid a { color: inherit; text-decoration: none; }
.tid a:hover { color: #39ff88; }
