:root {
  --bg: #0a0a0a;
  --panel: #111113;
  --panel-2: #161618;
  --line: #24262b;
  --line-2: #32353c;
  --ink: #ededed;
  --soft: #b4bac2;
  --dim: #8a919a;
  --amber: #f2c84b;
  --green: #5fd08a;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ol { list-style: none; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::selection { background: var(--amber); color: #0a0a0a; }

/* ------------------------------------------------------------ top bar */
.bar { height: var(--bar); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.bar__left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.bar__mid { display: flex; justify-content: center; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 2px; }
.tabs a { padding: 6px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); background: var(--panel-2); }
.bar__right { justify-self: end; display: flex; align-items: center; gap: 16px; min-width: 0; }
.stat { font: 400 12px var(--mono); color: var(--dim); white-space: nowrap; }
.stat b { color: var(--ink); font-weight: 600; margin-right: 3px; }
.capill { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); font: 400 12px var(--mono); color: var(--dim); }
.capill span { color: var(--ink); font-weight: 600; }
.capill code { font: inherit; color: var(--soft); }
.capill .short { display: none; }
.capill:hover { border-color: var(--soft); }
.capill--soon { border-style: dashed; }
.capill--soon:hover { border-color: var(--line-2); }
.capill em { font-style: normal; }
.cabox { display: none; }
.capill i { font-style: normal; color: var(--amber); }
.icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--ink); }
.buy { height: 32px; padding: 0 14px; display: grid; place-items: center; white-space: nowrap; border-radius: 9px; background: var(--ink); color: #0a0a0a; font-weight: 600; font-size: 13px; }
.buy:hover { background: #fff; }

/* ------------------------------------------------------------ the town view */
main { height: calc(100% - var(--bar)); }
.view { height: 100%; }
.town { display: grid; grid-template-columns: minmax(0, 1fr) 372px; }
.stage { position: relative; overflow: hidden; background: var(--bg); min-height: 0; }
.stage canvas[data-map] { display: block; cursor: grab; touch-action: none; }
.hint { position: absolute; left: 16px; bottom: 16px; max-width: 330px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(17, 17, 19, .9); color: var(--dim); font-size: 12.5px; line-height: 1.5; pointer-events: none; }
.count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; pointer-events: none; }
.zoom { position: absolute; right: 16px; bottom: 16px; display: flex; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); overflow: hidden; }
.zoom button { min-width: 34px; height: 32px; padding: 0 10px; font: 500 13px var(--mono); color: var(--soft); border-left: 1px solid var(--line); }
.zoom button:first-child { border-left: 0; }
.zoom button:hover { color: var(--ink); background: var(--panel-2); }
.banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: min(620px, calc(100% - 32px)); padding: 8px 13px; border: 1px solid rgba(242, 200, 75, .4); border-radius: 9px; background: rgba(24, 21, 10, .94); color: var(--amber); font-size: 12.5px; text-align: center; pointer-events: none; }

.card { position: absolute; top: 14px; left: 16px; width: 276px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(17, 17, 19, .96); z-index: 2; }
.card__close { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; font-size: 18px; color: var(--dim); }
.card__close:hover { color: var(--ink); }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__head canvas { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); flex: none; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card a.mono { font-size: 12px; color: var(--dim); }
.card a.mono:hover { color: var(--ink); }
.card__doing { margin: 12px 0; color: var(--soft); font-size: 13px; min-height: 20px; }
.card__doing::first-letter { text-transform: uppercase; }
.card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
.card__facts div { background: var(--panel); padding: 8px 10px; }
.card__facts dt { font: 400 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.card__facts dd { font: 500 14px var(--mono); margin-top: 2px; }

/* ------------------------------------------------------------ the side column */
.side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.panel { padding: 16px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(95, 208, 138, .16); }
.live.off { background: var(--dim); box-shadow: none; }
.round__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.round__pool { text-align: right; }
.big { font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.big small { font-size: 13px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.round__pool .big { color: var(--amber); }
.sub { font-size: 12px; color: var(--dim); margin-top: 4px; }
.meter { height: 3px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; }
.note { margin-top: 10px; font-size: 12px; color: var(--dim); }
.ca { display: flex; align-items: stretch; margin-top: 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); overflow: hidden; }
.ca code { flex: 1; min-width: 0; padding: 8px 10px; font: 400 11px/1.45 var(--mono); color: var(--soft); word-break: break-all; }
.ca button { padding: 0 12px; border-left: 1px solid var(--line-2); font: 500 12px var(--mono); color: var(--amber); }
.ca button i, .capill i { font-style: normal; }
.ca button:hover { background: var(--panel-2); }

.find form { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); font: 400 12px var(--mono); }
.find input::placeholder { color: var(--dim); }
.find input:focus { outline: none; border-color: var(--soft); }
.btn { height: 36px; padding: 0 15px; border-radius: 9px; background: var(--ink); color: #0a0a0a; font-weight: 600; font-size: 13px; }
.btn:hover { background: #fff; }
.btn--line { width: 100%; background: none; color: var(--ink); border: 1px solid var(--line-2); }
.btn--line:hover { background: var(--panel-2); }
.btn--line.on { border-color: var(--amber); color: var(--amber); }
.find__msg { margin-top: 10px; font-size: 12.5px; color: var(--soft); }
.find__msg b { color: var(--ink); font-weight: 600; }
.find__msg.bad { color: #ff8f7a; }

.board ol { display: grid; gap: 2px; }
.board li { display: grid; grid-template-columns: 20px 26px minmax(0, 1fr) auto 78px; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.board li:hover { background: var(--panel-2); }
.board li.me { background: rgba(242, 200, 75, .08); }
.board .n { font: 400 11px var(--mono); color: var(--dim); }
.board li:first-child .n { color: var(--amber); }
.board canvas { display: block; }
.board .who { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .who small { font: 400 11px var(--mono); color: var(--dim); margin-left: 6px; }
.board .pts { font: 500 13px var(--mono); }
.board .sol { font: 400 12px var(--mono); color: var(--amber); text-align: right; }
.empty { font-size: 12.5px; color: var(--dim); }

.feed { flex: 1; min-height: 240px; display: flex; flex-direction: column; border-bottom: 0; padding-bottom: 0; }
.feed__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.feed__head .eyebrow { margin: 0; }
.chips { display: flex; gap: 2px; }
.chips button { padding: 3px 8px; border-radius: 7px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.chips button:hover { color: var(--ink); }
.chips button.on { background: var(--ink); color: #0a0a0a; }
.feed ol { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -16px; padding: 0 16px 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.feed li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--soft); animation: in .3s ease-out; }
.feed li:first-child { border-top: 0; }
.feed li canvas { cursor: pointer; margin-top: 1px; }
.feed li b { color: var(--ink); font-weight: 600; cursor: pointer; }
.feed li b:hover { text-decoration: underline; }
.feed li time { float: right; font: 400 10.5px var(--mono); color: var(--dim); margin-left: 8px; }
.feed li q { display: block; margin-top: 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); quotes: none; }
.feed li.think q { color: var(--soft); font-style: italic; border-style: dashed; }
.feed li .tag { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; margin-left: 5px; }
.feed li.round { color: var(--ink); }
.feed li.round .tag { color: var(--amber); border-color: rgba(242, 200, 75, .4); }
.feed li .mark { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 11px var(--mono); color: var(--amber); }
@keyframes in { from { opacity: 0; transform: translateY(-4px); } }

/* ------------------------------------------------------------ text pages */
.page { overflow-y: auto; }
.page__in { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.page__in--wide { max-width: 980px; }
.page h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.lead { margin-top: 10px; color: var(--dim); font-size: 15px; max-width: 620px; }
.meta { margin-top: 22px; font-size: 12.5px; color: var(--dim); }
.meta a { color: var(--soft); border-bottom: 1px solid var(--line-2); }
.meta a:hover { color: var(--ink); }
.rules { margin-top: 28px; display: grid; gap: 10px; counter-reset: rule; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 34px 1fr; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rules li::before { content: counter(rule, decimal-leading-zero); font: 400 11px var(--mono); color: var(--dim); grid-row: span 2; padding-top: 3px; }
.rules b { font-weight: 600; font-size: 14.5px; }
.rules span { grid-column: 2; color: var(--dim); margin-top: 3px; font-size: 14px; }
.rules em { font-style: normal; color: var(--soft); }
.fine { margin-top: 30px; font-size: 12px; color: var(--dim); max-width: 560px; }
.table { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow-x: auto; }
.table__head, .table li { display: grid; grid-template-columns: 36px minmax(150px, 1.2fr) minmax(120px, 1fr) 80px 70px 110px 70px; gap: 12px; align-items: center; padding: 10px 16px; min-width: 760px; }
.table__head { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.table li { border-top: 1px solid var(--line); font: 400 13px var(--mono); }
.table li:first-child { border-top: 0; }
.table .who { display: flex; align-items: center; gap: 10px; font: 500 14px var(--sans); }
.table .dim { color: var(--dim); }
.table .sol { color: var(--amber); }
.table a { color: var(--soft); border-bottom: 1px solid var(--line-2); }
.table a:hover { color: var(--ink); }

.cabox .ca { margin-top: 0; }
.cabox .eyebrow span:last-child { color: var(--amber); }
.ca--soon { padding: 9px 11px; border-style: dashed; font: 400 12px var(--mono); color: var(--dim); }
.mtag { font: 500 10px var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.bio { margin-top: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.45; }
.bio::before { content: "Profile, in its own words"; display: block; font: 400 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lookup { display: flex; gap: 8px; margin-top: 22px; max-width: 520px; }
.lookup input { flex: 1; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); font: 400 12px var(--mono); }
.lookup input::placeholder { color: var(--dim); }
.lookup input:focus { outline: none; border-color: var(--soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 18px; }
.split .table { margin-top: 0; }
.table--top .table__head, .table--top li { grid-template-columns: 30px minmax(130px, 1.3fr) 100px 80px 70px 110px; min-width: 560px; }
.table--top li { cursor: pointer; }
.table--top li:hover, .table--top li.on { background: var(--panel-2); }
.table .who small { font: 400 10.5px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.wallet { grid-column: 2; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); position: sticky; top: 16px; }
.split:has(.table[hidden]) .wallet { grid-column: 1; max-width: 420px; }
.wallet h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.wallet a.mono { font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line-2); }
.wallet a.mono:hover { color: var(--ink); }
.wallet .card__head canvas { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); flex: none; }
.wallet__state { margin: 12px 0; font-size: 13px; color: var(--soft); }
.wallet__title { margin: 16px 0 6px; }
.wallet .card__facts div { background: var(--panel-2); }
.pays li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 22px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font: 400 12px var(--mono); }
.pays li:first-child { border-top: 0; }
.pays .dim { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pays .sol { color: var(--amber); }
.pays a { color: var(--soft); border-bottom: 1px solid var(--line-2); }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1400px) { .capill .full { display: none; } .capill .short { display: inline; } }
@media (max-width: 1180px) { .stat:not(.stat--pool) { display: none; } }
@media (max-width: 900px) {
  body { overflow: auto; }
  html, body, main, .view { height: auto; }
  .bar { position: sticky; top: 0; display: flex; gap: 10px; padding: 0 12px; }
  .bar__left { gap: 10px; flex: 1; }
  .bar__mid { display: none; }
  .cabox { display: block; }
  .tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 6px 7px; font-size: 12.5px; }
  .bar__right { gap: 8px; }
  .buy { padding: 0 10px; font-size: 12px; }
  .stat, .capill { display: none; }
  .town { display: block; }
  .stage { height: 62vh; min-height: 380px; border-bottom: 1px solid var(--line); }
  .side { border-left: 0; overflow: visible; }
  .feed ol { max-height: 60vh; }
  .hint { display: none; }
  .count { bottom: 8px; font-size: 9.5px; letter-spacing: .04em; white-space: normal; text-align: center; width: calc(100% - 20px); }
  .zoom { right: 10px; bottom: 44px; }
  .card { left: 10px; right: 10px; top: 10px; width: auto; }
  .page { min-height: calc(100vh - var(--bar)); }
  .page__in { padding: 34px 16px 60px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .wallet { grid-column: 1; grid-row: 1; position: static; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
  .big { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .feed li { animation: none; } }
