@font-face { font-family: Inter; src: url(/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: JBM; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #0a0c10; --panel: #11141a; --panel-2: #161a21; --panel-3: #1c212a; --line: #1f242d; --line-2: #2a303b; --line-3: #3a4250;
  --text: #eef1f6; --soft: #c3c9d3; --muted: #8b93a1; --faint: #5a6170;
  --holo: linear-gradient(120deg, rgba(255,255,255,.55), rgba(143,179,255,.45) 35%, rgba(255,213,154,.4) 65%, rgba(255,255,255,.5)); --up: #3ecf8e; --down: #f0616d; --warn: #f2c14e;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9dde3 38%, #8a919c 52%, #eef1f5 64%, #aab1bb 100%);
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; display: flex; flex-direction: column; background:
  radial-gradient(1100px 520px at 85% -8%, rgba(120,150,255,.11), transparent 60%),
  radial-gradient(800px 420px at 5% -5%, rgba(255,190,120,.06), transparent 60%), var(--bg); background-repeat: no-repeat; }
h1, h2, h3, .brand { font-family: Sora, Inter, sans-serif; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.mono { font-family: JBM, ui-monospace, monospace; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 14px; height: 14px; flex: none; }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .up { color: var(--up); } .down { color: var(--down); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* nav */
.nav { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,12,16,.78); backdrop-filter: blur(10px); z-index: 30; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand b { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.links { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); }
.links a[aria-current] { color: var(--text); font-weight: 600; }
.links a:hover { color: var(--text); }
.nav-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-ca { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 11.5px; cursor: pointer; color: var(--soft); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle .i { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font: 600 13px Inter; border: 0; cursor: pointer; white-space: nowrap; transition: opacity .15s, background .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-w { background: linear-gradient(180deg, #ffffff 0%, #dde2e9 55%, #b7bfca 100%); color: #0a0c10; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255,255,255,.12), 0 6px 20px rgba(143,179,255,.12); }
.btn-w:hover:not(:disabled) { filter: brightness(1.06); }
.btn-g { background: rgba(28,33,42,.8); color: var(--text); border: 1px solid var(--line-2); }
.btn-g:hover:not(:disabled) { background: #2d2d2d; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding: 56px 0 40px; }
h1 { font-size: 54px; line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 500 11px JBM; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 8px; background: rgba(17,20,26,.7); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.lede { margin-top: 22px; color: var(--soft); font-size: 15.5px; line-height: 1.6; max-width: 540px; }
.cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.stats { display: flex; gap: 48px; margin-top: 42px; flex-wrap: wrap; }
.stat small, .label { display: block; font: 500 10.5px JBM; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.stat strong { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 700 22px JBM; letter-spacing: -.02em; }
.stat strong em { font: 500 12px JBM; color: var(--muted); font-style: normal; }
.sol { width: 18px; height: 14px; flex: none; }
.sol.sm { width: 13px; height: 10px; }

.orbit { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-left: auto; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #1d2230; }
.ring.r2 { inset: 17%; border-color: #232a38; border-style: dashed; }
.seal { position: absolute; inset: 24%; width: 52%; height: 52%; animation: spin 80s linear infinite reverse; overflow: visible; }
.seal text { font: 600 7.2px JBM; letter-spacing: .3em; fill: #7d8697; }
.spin { position: absolute; inset: 0; animation: spin 120s linear infinite; }
.spin.s2 { inset: 17%; animation-duration: 90s; animation-direction: reverse; }
.tile { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #131720; border: 1px solid #2a3140; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.spin .tile { animation: spin 120s linear infinite reverse; }
.spin.s2 .tile { animation: spin 90s linear infinite; }
.tile img { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin, .spin .tile, .core .swirl { animation: none !important; } }
.core { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; background:
  radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 40%),
  conic-gradient(from 200deg, #0d0f14, #1b2230, #3a2a4a, #10151d, #2a3a48, #0d0f14);
  border: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 0 0 7px #0f1218, 0 0 0 8px rgba(255,255,255,.12), 0 0 80px rgba(143,179,255,.2); display: grid; place-items: center; }
.core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.core .swirl { position: absolute; inset: -20%; background:
  radial-gradient(ellipse 60% 20% at 50% 60%, rgba(255,210,150,.35), transparent 70%),
  radial-gradient(ellipse 50% 14% at 40% 35%, rgba(140,180,255,.35), transparent 70%);
  filter: blur(6px); animation: spin 30s linear infinite; }
.core .ph { position: relative; text-align: center; }
.core .ph b { display: block; font-size: 44px; font-weight: 800; letter-spacing: .04em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.core .ph span { display: block; margin-top: 2px; font: 500 9.5px JBM; letter-spacing: .18em; color: #aab; text-transform: uppercase; }

/* sections */
.sec-h { display: flex; align-items: baseline; gap: 8px; margin: 34px 0 14px; }
.sec-h h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.sec-h small { font: 500 12px JBM; color: var(--muted); }
.page-h { padding: 44px 0 22px; }
.page-h h1 { font-size: 40px; }
.page-h p { margin-top: 12px; color: var(--soft); max-width: 640px; line-height: 1.6; font-size: 15px; }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 12px Inter; height: 28px; padding: 0 13px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.seg button[aria-pressed=true] { background: #232a36; color: var(--text); }
.seg .live { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; height: 36px; padding: 0 14px; width: 280px; color: var(--faint); }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: 12.5px; color: var(--text); }
.chips { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.chips button { display: flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font: 600 11.5px JBM; height: 28px; padding: 0 9px; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed=true] { background: #232a36; color: var(--text); }
.chips img { width: 13px; height: 13px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; padding-bottom: 80px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty .btn { margin-top: 14px; }

/* lab logo */
.lab { display: inline-grid; place-items: center; flex: none; }
.lab img { width: 100%; height: 100%; }
.lab.txt { border-radius: 4px; background: #333; font: 700 8px JBM; color: #ddd; }

/* coin card */
.coin { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, transform .15s; display: block; }
.coin:hover { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--holo) border-box; transform: translateY(-2px); }
.coin .wm { position: absolute; right: -26px; bottom: -26px; width: 130px; height: 130px; opacity: .07; pointer-events: none; }
.c-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.c-top > div { min-width: 0; }
.c-img { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 800 14px Inter; color: #ddd; background: var(--panel-3); overflow: hidden; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-top b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-model { display: inline-flex; align-items: center; gap: 6px; background: #171b23; border: 1px solid #262c38; border-radius: 999px; padding: 4px 10px 4px 7px; font-size: 11.5px; font-weight: 600; max-width: 100%; }
.pill-model span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .pill-model { margin-top: 12px; }
.c-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 14px; }
.c-stats small { display: block; font: 500 9.5px JBM; letter-spacing: .12em; color: var(--muted); }
.c-stats strong { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font: 700 14.5px JBM; flex-wrap: wrap; }
.c-stats em { font: 500 11px JBM; font-style: normal; }
.curve { height: 4px; background: #1c212a; border-radius: 4px; margin-top: 14px; overflow: hidden; }
.curve i { display: block; height: 100%; background: linear-gradient(90deg, #8fb3ff, #fff 60%, #ffd59a); border-radius: 4px; }
.c-foot { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10.5px JBM; color: var(--faint); }

/* side feed */
.side { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 76px; }
.side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side-h b { font-size: 14px; }
.side-h a { font-size: 12px; color: var(--muted); }
.feed { list-style: none; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 11px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed b { font-size: 13px; }
.feed .m { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.feed .m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .amt { font: 700 12.5px JBM; text-align: right; }
.feed .t { font: 500 10.5px JBM; color: var(--faint); text-align: right; }
.feed .t a:hover { color: var(--text); }
.feed-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.card h3 { font-size: 15px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 18px; }
.kv strong { display: block; margin-top: 5px; font: 700 14px JBM; }
.big { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 700 34px JBM; letter-spacing: -.03em; }
.big .sol { width: 26px; height: 20px; }
.sub { margin-top: 4px; font: 500 12px JBM; color: var(--muted); }
.link-row { margin-top: 16px; font: 500 11.5px JBM; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.link-row a:hover { color: var(--text); }

/* coin page */
.coin-h { display: flex; gap: 18px; align-items: center; padding: 36px 0 22px; }
.coin-h .c-img { width: 72px; height: 72px; border-radius: 14px; font-size: 20px; }
.coin-h h1 { font-size: 34px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-h h1 small { font: 600 12px Inter; letter-spacing: 0; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--muted); padding: 4px 9px; border-radius: 999px; }
.coin-h .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); font: 500 11.5px JBM; color: var(--soft); cursor: pointer; }
.tag:hover { color: var(--text); border-color: var(--line-3); }
.coin-desc { color: var(--soft); font-size: 14px; line-height: 1.6; max-width: 820px; margin: -8px 0 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card .wm { position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; opacity: .06; pointer-events: none; }
.model-h { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.model-h .lab-box { width: 44px; height: 44px; border-radius: 50%; background: #131720; border: 1px solid #2a3140; display: grid; place-items: center; }
.model-h b { font-size: 16px; display: block; }
.model-h span { font-size: 12px; color: var(--muted); }
.coin-main { display: grid; grid-template-columns: 1fr 340px; gap: 14px; margin: 14px 0 80px; align-items: start; }

/* terminal */
.term { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 520px; overflow: hidden; }
.term-h { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.term-h b { font-weight: 700; }
.term-h .muted { font-size: 12px; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 11px JBM; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.on { color: var(--up); border-color: rgba(62,207,142,.35); }
.status.on i { background: var(--up); box-shadow: 0 0 8px var(--up); }
.status.off { color: var(--warn); border-color: rgba(242,193,78,.35); }
.status.off i { background: var(--warn); }
.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 18px; max-height: 620px; font-size: 13.5px; line-height: 1.6; }
.msg .who { display: flex; align-items: center; gap: 7px; font: 600 11px JBM; color: var(--muted); margin-bottom: 5px; }
.msg .who time { color: var(--faint); font-weight: 500; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user .body { color: var(--text); background: #1a2030; border: 1px solid var(--line-2); padding: 9px 12px; border-radius: 12px; display: inline-block; max-width: 100%; }
.msg.si .body { color: var(--soft); font-family: JBM, monospace; font-size: 12.5px; }
.msg.si .who { color: var(--text); }
.msg .cost { margin-top: 5px; font: 500 10.5px JBM; color: var(--faint); }
.caret::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }
.log-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13px; max-width: 360px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; min-height: 42px; max-height: 160px; outline: 0; }
.composer textarea:focus { border-color: var(--line-3); }
.composer .btn { height: 42px; width: 42px; padding: 0; border-radius: 12px; }
.composer-note { padding: 0 14px 10px; font: 500 10.5px JBM; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }

/* tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 80px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font: 500 10.5px JBM; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: JBM, monospace; }
.model-cell { display: flex; align-items: center; gap: 10px; }
.model-cell b { font-weight: 600; }
.model-cell small { display: block; color: var(--faint); font: 500 11px JBM; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: #151922; }

/* launch */
.launch { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; padding-bottom: 80px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-h .n { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg,#fff,#b7bfca); color: #0a0c10; display: grid; place-items: center; font: 700 11px JBM; }
.step-h h3 { font-size: 15px; }
.step-h .muted { margin-left: auto; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mtile { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; min-width: 0; }
.mtile:hover { border-color: var(--line-3); }
.mtile[aria-pressed=true] { border-color: transparent; background: linear-gradient(#1a1f28, #1a1f28) padding-box, var(--holo) border-box; }
.mtile .lab-box { width: 32px; height: 32px; border-radius: 50%; background: #0f1218; display: grid; place-items: center; flex: none; }
.mtile b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile small { display: block; font: 500 10.5px JBM; color: var(--muted); }
.mtile > span:last-child { min-width: 0; }
.picker { margin-top: 12px; }
.picker .search { width: 100%; margin: 0; }
.results { margin-top: 8px; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.results button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.results button:last-child { border-bottom: 0; }
.results button:hover, .results button[aria-pressed=true] { background: #171c25; }
.results b { font-size: 13px; font-weight: 600; }
.results small { margin-left: auto; font: 500 11px JBM; color: var(--muted); white-space: nowrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 10.5px JBM; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.input { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; height: 40px; padding: 0 12px; font-size: 13.5px; outline: 0; width: 100%; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 84px; line-height: 1.5; }
.input:focus { border-color: var(--line-3); }
.hint { font-size: 11.5px; color: var(--faint); }
.drop { display: flex; gap: 14px; align-items: center; border: 1px dashed var(--line-3); border-radius: 12px; padding: 14px; cursor: pointer; }
.drop.drag { border-color: #fff; }
.drop .prev { width: 64px; height: 64px; border-radius: 12px; background: var(--panel-3); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.drop .prev img { width: 100%; height: 100%; object-fit: cover; }
.drop b { font-size: 13px; }
.drop p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.summary { position: sticky; top: 76px; }
.summary .rows { margin-top: 14px; display: grid; gap: 10px; font-size: 13px; }
.summary .rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary .rows span:last-child { font-family: JBM, monospace; font-size: 12.5px; text-align: right; }
.split { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 16px; }
.split i:first-child { background: linear-gradient(90deg, #8fb3ff, #fff); }
.split i:last-child { background: #3a4250; }
.checklist { list-style: none; margin: 16px 0; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; }
.checklist li.ok { color: var(--text); }
.checklist li.ok .i { color: var(--up); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; width: 100%; max-width: 440px; }
.modal-box h3 { font-size: 18px; }
.modal-box > p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.progress { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.progress li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.progress li .st { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; font: 600 10.5px JBM; flex: none; }
.progress li small { display: block; font: 500 11px JBM; color: var(--faint); margin-top: 2px; overflow-wrap: anywhere; }
.progress li.active { color: var(--text); }
.progress li.active .st { border-color: #fff; }
.progress li.done { color: var(--text); }
.progress li.done .st { background: var(--up); border-color: var(--up); color: #0b2a1c; }
.progress li.error .st { background: var(--down); border-color: var(--down); color: #fff; }
.progress li.error small { color: var(--down); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* docs */
.docs { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-bottom: 80px; }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.toc a:hover { color: var(--text); }
.prose { max-width: 780px; }
.prose section { padding-top: 12px; margin-bottom: 36px; scroll-margin-top: 76px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.prose h3 { font-size: 15px; margin: 18px 0 8px; }
.prose p, .prose li { color: var(--soft); font-size: 14.5px; line-height: 1.7; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.prose code { font: 500 12.5px JBM; background: var(--panel-3); padding: 1px 6px; border-radius: 5px; }
.prose pre { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: 500 12.5px/1.6 JBM; color: var(--soft); margin-top: 10px; }
.prose table { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose td { white-space: normal; color: var(--soft); font-size: 13.5px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.trio .card p { font-size: 13px; margin-top: 6px; }
.method { display: inline-block; font: 700 10.5px JBM; padding: 3px 7px; border-radius: 6px; background: linear-gradient(180deg,#fff,#c3cad4); color: #0a0c10; margin-right: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.foot-links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 20px; color: var(--faint); font-size: 11.5px; line-height: 1.6; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: #eef1f6; color: #0a0c10; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; transition: all .2s; z-index: 80; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--down); color: #fff; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .orbit { margin: 10px auto 0; max-width: 420px; }
  .layout, .coin-main, .launch { grid-template-columns: 1fr; }
  .side, .summary { position: static; }
  .grid, .cards3 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #0d1015; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 16px 12px; }
  .links.open { display: flex; }
  .links a { padding: 11px 0; font-size: 15px; }
  .menu-toggle { display: block; }
  .nav-ca { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 38px; }
  .page-h h1 { font-size: 30px; }
  .stats { gap: 22px 30px; }
  .grid, .cards3, .trio { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .search { width: 100%; margin-left: 0; }
  .coin-h h1 { font-size: 26px; }
  .orbit { max-width: 340px; }
  .tile { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .tile img { width: 18px; height: 18px; }
}


/* turfwar. A war map made of pixels: black ground, hard edges, one lime accent. No rounded corners anywhere. */
:root {
  --bg: #07080a; --panel: #0e1013; --panel-2: #14171b; --panel-3: #1b1f24; --line: #23272d; --line-2: #2f343c; --line-3: #454c57;
  --text: #f3f3ee; --soft: #c9ccd0; --muted: #8d939c; --faint: #5d636c;
  --lime: #c6ff3d; --lime-ink: #07080a; --hot: #ff4d6d; --up: #c6ff3d; --down: #ff4d6d; --warn: #ffd60a;
  --radius: 0px;
}
html { background: var(--bg); }
body { background:
  linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 16px 16px,
  linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 16px 16px, var(--bg); background-repeat: repeat; }
h1, h2, h3, .brand { font-family: JBM, ui-monospace, monospace; text-transform: lowercase; }
h1 { font-weight: 800; letter-spacing: -.05em; }
::selection { background: var(--lime); color: var(--lime-ink); }

.nav { background: rgba(7,8,10,.9); border-bottom: 2px solid var(--line); }
.brand { font-weight: 800; font-size: 17px; letter-spacing: -.04em; }
.brand svg { width: 24px; height: 24px; }
.links { font-family: JBM, monospace; font-size: 12.5px; text-transform: lowercase; }
.links a[aria-current] { color: var(--lime); }
.nav-ca, .btn, .seg, .seg button, .search, .chips, .tag, .input, .card, .side, .step, .modal-box, .toast, .table-wrap, .empty, .drop, .drop .prev, .c-img, .coin-h .c-img, .prose pre, .prose code, .prose table, .status, .eyebrow { border-radius: 0; }
.btn { font-family: JBM, monospace; font-weight: 700; text-transform: lowercase; letter-spacing: -.01em; }
.btn-w { background: var(--lime); color: var(--lime-ink); box-shadow: 3px 3px 0 rgba(198,255,61,.28); }
.btn-w:hover:not(:disabled) { filter: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(198,255,61,.4); }
.btn-w:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(198,255,61,.4); }
.btn-g { background: var(--panel-2); border: 2px solid var(--line-2); }
.btn-g:hover:not(:disabled) { background: var(--panel-3); border-color: var(--line-3); }
.btn .dot { border-radius: 0; background: var(--lime); }
.card, .side, .step, .table-wrap { border: 2px solid var(--line); background: var(--panel); }
.label, .stat small { color: var(--muted); }
.eyebrow { border: 2px solid var(--line-2); color: var(--lime); }
.eyebrow i { border-radius: 0; background: var(--lime); box-shadow: none; }
.step-h .n { border-radius: 0; background: var(--lime); }
.split { border-radius: 0; height: 10px; }
.split i:first-child { background: var(--lime); }
.split i#split-creator { background: #64d2ff; }
.split i:last-child { background: var(--line-3); }
.toast { background: var(--lime); color: var(--lime-ink); font-family: JBM, monospace; }
.checklist li.ok .i { color: var(--lime); }
.progress li .st { border-radius: 0; }
.progress li.done .st { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.method { border-radius: 0; background: var(--lime); }
th { color: var(--muted); }
tr.row-link:hover td { background: var(--panel-2); }
.c-img { background: var(--panel-3); }
a.inline { color: var(--lime); }
a.inline:hover { text-decoration: underline; }

/* ---- the war page ---- */
.war-h { padding: 30px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.war-h h1 { font-size: 40px; line-height: 1; }
.war-h h1 em { font-style: normal; color: var(--lime); }
.war-h p { margin-top: 12px; color: var(--soft); font-size: 14.5px; line-height: 1.55; max-width: 640px; }
.war-h .cta { margin-top: 0; }
.war { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding-bottom: 60px; }

.board { border: 2px solid var(--line); background: var(--panel); }
.board-bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 2px solid var(--line); font: 500 11.5px JBM, monospace; color: var(--muted); flex-wrap: wrap; }
.board-bar b { color: var(--text); font-weight: 700; }
.board-bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); }
.board-bar .live i { width: 8px; height: 8px; background: var(--lime); animation: blink 1.4s steps(1) infinite; }
.zoom { margin-left: auto; display: flex; gap: 0; }
.zoom button { width: 34px; height: 26px; background: var(--panel-2); border: 2px solid var(--line-2); border-left-width: 0; color: var(--muted); font: 700 11px JBM, monospace; cursor: pointer; }
.zoom button:first-child { border-left-width: 2px; }
.zoom button[aria-pressed=true] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.board-view { position: relative; overflow: auto; background: #050607; aspect-ratio: 1; max-height: calc(100vh - 150px); overscroll-behavior: contain; }
.board-view canvas { display: block; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; cursor: crosshair; touch-action: pan-x pan-y; }
.board-view.z2 canvas { width: 200%; }
.board-view.z4 canvas { width: 400%; }
.board-view.placing canvas { touch-action: none; }
.board-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.board-empty div { pointer-events: auto; background: rgba(7,8,10,.86); border: 2px solid var(--line-2); padding: 22px 26px; max-width: 360px; }
.board-empty b { display: block; font: 800 16px JBM, monospace; }
.board-empty p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--bg); border: 2px solid var(--line-3); padding: 6px 9px; font: 600 11.5px JBM, monospace; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tip i, .sw { width: 10px; height: 10px; flex: none; display: inline-block; }
.board-foot { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 10px 12px; border-top: 2px solid var(--line); font: 500 11px JBM, monospace; color: var(--muted); }
.board-foot b { color: var(--soft); font-weight: 600; }

.side-col { display: grid; gap: 14px; }
.clock { padding: 16px; }
.clock .digits { margin-top: 8px; font: 800 52px/1 JBM, monospace; letter-spacing: -.05em; color: var(--lime); }
.clock .pot { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.clock .pot strong { font: 800 24px JBM, monospace; letter-spacing: -.03em; }
.clock .pot em { font: 500 12px JBM, monospace; color: var(--muted); font-style: normal; }
.clock p { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.clock p b { color: var(--text); }

.rank { padding: 14px 0 6px; }
.rank h3, .mine h3, .feedbox h3 { padding: 0 16px; font-size: 13px; display: flex; justify-content: space-between; align-items: baseline; }
.rank h3 small, .mine h3 small, .feedbox h3 small { font: 500 10.5px JBM, monospace; color: var(--muted); text-transform: none; }
.rank ol { list-style: none; margin-top: 10px; }
.rank li a { display: grid; grid-template-columns: 22px 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 16px; position: relative; }
.rank li a:hover { background: var(--panel-2); }
.rank li .meter { position: absolute; left: 0; bottom: 0; height: 2px; }
.rank .n { font: 600 11px JBM, monospace; color: var(--faint); }
.rank .who { min-width: 0; }
.rank .who b { display: block; font: 700 13px JBM, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .who small { display: block; font: 500 10.5px JBM, monospace; color: var(--muted); }
.rank .pts { text-align: right; font: 700 12.5px JBM, monospace; }
.rank .pts small { display: block; font: 500 10.5px JBM, monospace; color: var(--muted); }
.rank li.lead .n { color: var(--lime); }
.rank .none { padding: 6px 16px 12px; color: var(--muted); font-size: 12.5px; }

.mine, .feedbox { padding: 14px 0 12px; }
.mine .body { padding: 10px 16px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mine .row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 16px; border-top: 2px solid var(--line); margin-top: 10px; }
.mine .row b { font: 700 13px JBM, monospace; }
.mine .row small { display: block; font: 500 10.5px JBM, monospace; color: var(--muted); }
.mine .row .btn { height: 30px; padding: 0 11px; font-size: 11.5px; }
.placebar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--lime); color: var(--lime-ink); font: 700 12px JBM, monospace; flex-wrap: wrap; }
.placebar span { margin-right: auto; }
.placebar .btn { height: 30px; padding: 0 12px; font-size: 11.5px; background: var(--lime-ink); color: var(--lime); box-shadow: none; }
.placebar .btn.ghost { background: transparent; color: var(--lime-ink); border: 2px solid var(--lime-ink); }

.feedbox ul { list-style: none; margin-top: 8px; }
.feedbox li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 16px; border-top: 2px solid var(--line); font-size: 12.5px; }
.feedbox li b { font: 700 12px JBM, monospace; }
.feedbox li .t { font: 500 10.5px JBM, monospace; color: var(--faint); text-align: right; }
.feedbox li p { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; }
.feedbox li p em { font-style: normal; color: var(--text); }
.feedbox .none { padding: 6px 16px 0; color: var(--muted); font-size: 12.5px; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--line); margin: 0 0 60px; background: var(--panel); }
.how div { padding: 18px; border-left: 2px solid var(--line); }
.how div:first-child { border-left: 0; }
.how em { font: 800 11px JBM, monospace; color: var(--lime); font-style: normal; }
.how b { display: block; margin-top: 8px; font: 800 15px JBM, monospace; letter-spacing: -.02em; }
.how p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* tables on the coins and rounds pages */
.sq { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 8px; }
.cellname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cellname .c-img { width: 30px; height: 30px; font-size: 11px; }
.cellname b { font: 700 13px JBM, monospace; }
.cellname small { display: block; color: var(--faint); font: 500 11px JBM, monospace; }
.share { display: inline-block; width: 80px; height: 8px; background: var(--panel-3); vertical-align: middle; margin-right: 8px; }
.share i { display: block; height: 100%; }
.round { border: 2px solid var(--line); background: var(--panel); margin-bottom: 12px; }
.round-h { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; font: 500 12px JBM, monospace; color: var(--muted); }
.round-h b { color: var(--text); font-size: 14px; }
.round-h .win { color: var(--lime); font-weight: 700; }
.round-h .potv { margin-left: auto; color: var(--text); font-weight: 700; }
.round-t { display: flex; height: 10px; }
.round-t i { display: block; height: 100%; }
.round-l { display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 10px 16px 12px; font: 500 11px JBM, monospace; color: var(--muted); }

/* coin page */
.coin-h h1 { font-size: 30px; }
.coin-h h1 .sq { width: 18px; height: 18px; margin: 0; }
.mini { border: 2px solid var(--line); background: #050607; }
.mini canvas { display: block; width: 100%; image-rendering: pixelated; }
.kv strong.lime { color: var(--lime); }
.rows2 { margin-top: 14px; display: grid; gap: 9px; font-size: 13px; }
.rows2 div { display: flex; justify-content: space-between; gap: 12px; }
.rows2 span:last-child { font-family: JBM, monospace; font-size: 12.5px; text-align: right; }
.list { list-style: none; margin-top: 12px; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 2px solid var(--line); font: 500 12px JBM, monospace; color: var(--soft); }
.list li:first-child { border-top: 0; }
.list li span:last-child { color: var(--faint); }
.list .none { color: var(--muted); font-family: Inter, sans-serif; }

.prose table { border: 2px solid var(--line); border-radius: 0; }
.prose pre { border: 2px solid var(--line); }
.foot { border-top: 2px solid var(--line); }
.modal-box { border: 2px solid var(--line-3); }

@media (max-width: 1000px) {
  .war { grid-template-columns: 1fr; }
  .board-view { max-height: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .how div:nth-child(3) { border-left: 0; }
  .how div:nth-child(n+3) { border-top: 2px solid var(--line); }
}
@media (max-width: 640px) {
  .war-h h1 { font-size: 30px; }
  .clock .digits { font-size: 44px; }
  .how { grid-template-columns: 1fr; }
  .how div { border-left: 0; border-top: 2px solid var(--line); }
  .how div:first-child { border-top: 0; }
  .links { background: var(--bg); }
}
.coin-h h1 { text-transform: none; }
