/* ACT. everything here is priced in dollars, so the page borrows from the banknote: engraved lines, a seal, serials, a ledger.
   ink = deep green-black paper; bill = pale ink; mint for buys; seal gold for the crown; coral for sells. */
:root {
  --ink: #0c1210; --ink2: #0f1714; --paper: #131c18; --paper2: #182521; --rule: #223229; --rule2: #2f463a;
  --bill: #e7efe4; --muted: #8ea396; --dim: #5f7669;
  --mint: #5fe3a1; --mint-ink: #052616; --seal: #e9c46a; --coral: #ff7d6b; --sky: #8ec5ff;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--bill); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; margin: 0; font-variation-settings: "opsz" 72; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "opsz" 40; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.up { color: var(--mint); } .down { color: var(--coral); } .gold { color: var(--seal); } .arc { color: var(--sky); }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px 72px; }
::selection { background: rgba(233,196,106,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--rule2); border-radius: 8px; border: 2px solid var(--ink); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: rgba(12,18,16,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .02em; }
.logo .mark { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--seal); box-shadow: 0 0 0 2px rgba(233,196,106,.18); }
.chainpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--rule2); border-radius: 999px; font-size: 12px; color: var(--muted); }
.chainpill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.chainpill.mock i { background: var(--seal); }
.nav { display: flex; gap: 2px; margin-left: 4px; white-space: nowrap; }
.nav a { padding: 6px 10px; border-radius: var(--radius); color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--bill); background: var(--paper2); }
.search { flex: 1; max-width: 400px; margin-left: auto; position: relative; }
.search input { width: 100%; padding: 8px 12px 8px 34px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); outline: none; color: var(--bill); }
.search input:focus { border-color: var(--seal); }
.search .ic { position: absolute; left: 11px; top: 8px; color: var(--dim); }
.search .kbd { position: absolute; right: 9px; top: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--rule2); border-radius: 4px; padding: 0 5px; }
.search .results { position: absolute; top: 42px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--rule2); border-radius: var(--radius); overflow: hidden; display: none; z-index: 5; }
.search .results.open { display: block; }
.search .results a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.search .results a:hover, .search .results a.sel { background: var(--paper2); }
.search .results img { width: 28px; height: 28px; border-radius: 50%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--rule2); background: var(--paper2); color: var(--bill); font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--seal); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--seal); color: var(--ink); border-color: var(--seal); font-weight: 600; }
.btn.primary:hover { background: #f2d382; }
.btn.buy { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); font-weight: 600; }
.btn.sell { background: var(--coral); color: #2a0a06; border-color: var(--coral); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.wallet { display: flex; align-items: center; gap: 8px; }
.wallet .bal { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--seal), #6b4e10); }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.livedot.on { background: var(--mint); }

/* ---- tape (live trades) ---- */
.tape { display: flex; align-items: center; gap: 12px; height: 36px; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--ink2); padding: 0 24px; }
.tape .lbl { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex: none; }
.tape .lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tape .lane { flex: 1; display: flex; gap: 6px; overflow: hidden; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font-size: 12px; white-space: nowrap; animation: slidein .35s ease; flex: none; }
.chip img { width: 20px; height: 20px; border-radius: 50%; }
.chip .w { font-family: var(--mono); color: var(--dim); }
.chip .amt { font-family: var(--mono); color: var(--bill); }
@keyframes slidein { from { transform: translateX(-24px); opacity: 0; } }

/* ---- hero: the bill + the ledger ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); gap: 16px; margin: 20px 0 8px; align-items: stretch; }
.bill { position: relative; border: 1px solid rgba(233,196,106,.55); border-radius: 8px; background: var(--paper); overflow: hidden; padding: 10px; display: flex; }
.bill::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background:
    repeating-radial-gradient(circle at 18% 62%, transparent 0 6px, rgba(233,196,106,.075) 6px 7px),
    repeating-radial-gradient(circle at 88% 22%, transparent 0 8px, rgba(95,227,161,.05) 8px 9px);
  mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.35) 45%, rgba(0,0,0,.8)); }
.bill-frame { position: relative; flex: 1; border: 1px solid rgba(233,196,106,.35); border-radius: 5px; padding: 22px 24px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 250px; }
.bill-frame::after { content: "the bearer of this coin is owed nothing but the curve"; position: absolute; right: 18px; bottom: 6px; font-family: var(--display); font-style: italic; font-size: 11px; color: rgba(233,196,106,.45); }
.portrait { width: 150px; height: 150px; border-radius: 50%; padding: 6px; border: 1px solid rgba(233,196,106,.6); background: radial-gradient(circle, rgba(233,196,106,.12), transparent 70%); display: block; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bill-legend { font-size: 12px; color: var(--seal); display: flex; align-items: center; gap: 8px; }
.bill-legend .crown { font-size: 14px; }
.bill-name { font-size: 34px; line-height: 1.05; margin-top: 4px; }
.bill-name span { color: var(--seal); font-size: 18px; font-family: var(--mono); font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.bill-desc { color: var(--muted); margin: 8px 0 14px; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bill-denom { display: flex; align-items: baseline; gap: 10px; }
.bill-denom .denom { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: 1; color: var(--seal); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 144; }
.bill-denom .lbl { color: var(--muted); }
.bill-denom .chg { margin-left: auto; font-family: var(--mono); font-size: 14px; }
.fill { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.fill i { display: block; height: 100%; background: var(--mint); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.fill.gold i { background: var(--seal); } .fill.done i { background: var(--mint); }
.bill .fill { margin-top: 14px; height: 8px; }
.bill-row { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.bill-row b { color: var(--bill); font-weight: 500; }
.bill-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 12px; }
.serial { font-family: var(--mono); font-size: 11px; color: rgba(233,196,106,.7); letter-spacing: .08em; }
.bill .btn.buy { padding: 12px 20px; font-size: 15px; }

.ledger { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.ledger h3 { font-size: 17px; }
.ledger h3 small { font-family: var(--sans); color: var(--dim); font-size: 12px; margin-left: 8px; }
.contender { display: grid; grid-template-columns: 30px minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dotted var(--rule2); }
.contender:last-child { border-bottom: 0; }
.contender img { width: 30px; height: 30px; border-radius: 50%; }
.contender b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contender small { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.contender .pct { text-align: right; font-family: var(--display); font-size: 18px; color: var(--seal); font-variant-numeric: tabular-nums; }
.contender .fill { height: 3px; margin-top: 4px; }
.ledger dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.ledger dl div { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ledger dt { color: var(--muted); display: flex; flex: 1; align-items: baseline; gap: 6px; }
.ledger dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--rule2); transform: translateY(-4px); }
.ledger dd { margin: 0; font-family: var(--display); font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---- tabs / tools ---- */
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); flex: 1; min-width: 0; overflow-x: auto; }
.tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tab:hover { color: var(--bill); }
.tab.on { color: var(--bill); border-bottom-color: var(--seal); }
.tab .n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.tools .right { display: flex; gap: 8px; align-items: center; }
.toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.toggle button { border: 0; background: var(--paper); color: var(--muted); padding: 6px 10px; }
.toggle button.on { background: var(--paper2); color: var(--bill); }
.filter { padding: 7px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); outline: none; width: 170px; }
.filter:focus { border-color: var(--seal); }
.check { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.check input { accent-color: var(--seal); }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card { position: relative; display: block; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--rule2); border-radius: var(--radius); padding: 14px 14px 12px; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--rule2); border-left-color: var(--seal); }
.card.graduating { border-left-color: var(--seal); }
.card.graduated { border-left-color: var(--mint); }
.card.flash-up { animation: flashUp 1.2s ease; } .card.flash-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: rgba(95,227,161,.16); } 100% { background: var(--paper); } }
@keyframes flashDown { 0% { background: rgba(255,125,107,.16); } 100% { background: var(--paper); } }
.card.enter { animation: enter .5s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { transform: translateY(-8px); opacity: 0; } }
.card .spark { position: absolute; right: 0; bottom: 30px; width: 46%; height: 54px; opacity: .5; pointer-events: none; }
.card.graduated .spark { opacity: .25; }
.card-head { display: flex; gap: 12px; align-items: flex-start; }
.card-head img { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--paper2); }
.card-title { flex: 1; min-width: 0; }
.card-name { font-family: var(--display); font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name .tick { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 6px; }
.card-by { color: var(--dim); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-by .mono { color: var(--dim); }
.card-chg { font-family: var(--mono); font-size: 13px; flex: none; }
.card-desc { color: var(--muted); font-size: 12.5px; margin: 10px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; max-width: 60%; }
.card-nums { display: flex; gap: 18px; margin-bottom: 10px; position: relative; }
.card-nums .n { font-family: var(--display); font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; display: block; }
.card-nums .n.big { font-size: 24px; }
.card-nums .l { font-size: 11px; color: var(--dim); display: block; }
.card-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }
.stamp { position: absolute; right: 14px; bottom: 40px; transform: rotate(-10deg); padding: 3px 10px; border: 2px double var(--mint); border-radius: 3px; color: var(--mint); font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; pointer-events: none; }
.stamp.seal { border-color: var(--seal); color: var(--seal); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--rule2); color: var(--muted); }
.badge.live { color: var(--sky); border-color: rgba(142,197,255,.35); }
.badge.graduating { color: var(--seal); border-color: rgba(233,196,106,.45); }
.badge.graduated { color: var(--mint); border-color: rgba(95,227,161,.45); }
.badge.dev { color: var(--seal); }
.badge.king { color: var(--ink); background: var(--seal); border-color: var(--seal); }

/* ---- table ---- */
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); }
.table th, .table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.table th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--ink2); }
.table td:first-child, .table th:first-child { text-align: left; }
.table tr:hover td { background: var(--paper2); }
.table .coin { display: flex; align-items: center; gap: 10px; }
.table .coin img { width: 28px; height: 28px; border-radius: 50%; }
.table .coin b { display: block; font-weight: 500; } .table .coin small { color: var(--dim); font-family: var(--mono); }
.table td.mono { font-family: var(--mono); }
.table .fill { width: 100px; display: inline-block; vertical-align: middle; height: 4px; }
.tablewrap { overflow-x: auto; }
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.section-h h2 { font-size: 22px; }
.section-h .sub { color: var(--muted); font-size: 13px; }
.empty { padding: 40px; text-align: center; color: var(--dim); border: 1px dashed var(--rule2); border-radius: var(--radius); }

/* ---- how it works ---- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how div { border-top: 1px solid var(--rule2); padding-top: 12px; }
.how h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 18px; }
.how h4 span { color: var(--seal); margin-right: 8px; }
.how p { margin: 0; color: var(--muted); font-size: 13px; max-width: 42ch; }

/* ---- coin page ---- */
.paper { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; }
.paper h3 { font-size: 16px; margin-bottom: 10px; }
.paper h3 small { font-family: var(--sans); font-size: 12px; color: var(--dim); margin-left: 8px; }
.coin-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 14px; flex-wrap: wrap; }
.coin-head img.big { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--rule2); }
.coin-head h1 { font-size: 30px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-head h1 .sym { font-family: var(--mono); color: var(--muted); font-size: 15px; font-weight: 400; }
.coin-head .sub { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.coin-head .sub .addr { font-family: var(--mono); cursor: pointer; } .coin-head .sub .addr:hover { color: var(--bill); }
.coin-head .kpis { margin-left: auto; display: flex; gap: 22px; }
.kpi .k { font-size: 12px; color: var(--dim); }
.kpi .v { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 14px; align-items: start; }
.chart-panel { padding: 0; overflow: hidden; }
.chart-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.chart-bar .price { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; }
.ivs { display: inline-flex; gap: 2px; background: var(--ink2); border-radius: var(--radius); padding: 2px; }
.ivs button { border: 0; background: transparent; color: var(--muted); padding: 4px 8px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.ivs button.on { background: var(--paper2); color: var(--bill); }
canvas.chart { width: 100%; height: 380px; display: block; }
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); padding: 0 6px; }
.subtabs button { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button.on { color: var(--bill); border-bottom-color: var(--seal); }
.trades { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.trades td, .trades th { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.trades th { color: var(--dim); font-weight: 400; font-size: 11.5px; font-family: var(--sans); }
.trades td:first-child, .trades th:first-child { text-align: left; }
.trades tr.buy td:first-child { color: var(--mint); } .trades tr.sell td:first-child { color: var(--coral); }
.trades tr.new { animation: rowin .6s ease; }
@keyframes rowin { from { background: rgba(233,196,106,.2); } }
.holders .row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12.5px; }
.holders .row .w { flex: 1; } .holders .row .bar { width: 120px; height: 4px; background: var(--rule); border-radius: 999px; overflow: hidden; } .holders .row .bar i { display: block; height: 100%; background: var(--seal); }
.thread { padding: 12px; }
.msg { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--rule2); }
.msg .who { font-family: var(--mono); font-size: 12px; color: var(--sky); } .msg .when { color: var(--dim); font-size: 11px; margin-left: 8px; }
.msg p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.compose { display: flex; gap: 8px; margin-top: 12px; } .compose input { flex: 1; padding: 10px 12px; background: var(--ink2); border: 1px solid var(--rule); border-radius: var(--radius); outline: none; }
.trade { position: sticky; top: 66px; }
.ticket { border-top: 3px solid var(--seal); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--ink2); border-radius: var(--radius); margin-bottom: 12px; }
.seg button { border: 0; padding: 9px; border-radius: 4px; background: transparent; color: var(--muted); font-weight: 600; }
.seg button.buy.on { background: var(--mint); color: var(--mint-ink); } .seg button.sell.on { background: var(--coral); color: #2a0a06; }
.amount { display: flex; align-items: center; background: var(--ink2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 4px 12px; }
.amount:focus-within { border-color: var(--seal); }
.amount input { flex: 1; border: 0; background: transparent; outline: none; font-family: var(--display); font-size: 24px; padding: 6px 0; width: 100px; min-width: 0; font-variant-numeric: tabular-nums; }
.amount .unit { font-family: var(--mono); color: var(--muted); }
.chips { display: flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap; }
.chips button { flex: 1; border: 1px solid var(--rule); background: var(--paper2); border-radius: 4px; padding: 6px 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chips button:hover { color: var(--bill); border-color: var(--rule2); }
.quote { font-family: var(--mono); font-size: 12.5px; display: grid; gap: 6px; padding: 10px 12px; background: var(--ink2); border-radius: var(--radius); margin-bottom: 12px; }
.quote div { display: flex; justify-content: space-between; gap: 10px; } .quote .k { color: var(--dim); }
.quote .big { font-family: var(--display); font-size: 17px; }
.note { font-size: 12px; color: var(--muted); }
.curvebox { margin-top: 14px; }
.curvebox .big { font-family: var(--display); font-size: 30px; font-variant-numeric: tabular-nums; color: var(--seal); }
.socials { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.socials a { padding: 5px 10px; border-radius: 4px; background: var(--paper2); border: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.socials a:hover { color: var(--bill); border-color: var(--rule2); }

/* ---- forms ---- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field label b { color: var(--bill); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; background: var(--ink2); border: 1px solid var(--rule); border-radius: var(--radius); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--seal); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { border: 1px dashed var(--rule2); border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; background: var(--ink2); }
.drop:hover, .drop.over { border-color: var(--seal); }
.drop img { width: 72px; height: 72px; border-radius: 50%; background: var(--paper2); }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; margin-top: 18px; }
.preview .card { pointer-events: none; }
input[type=range] { width: 100%; accent-color: var(--seal); }
.cost { font-family: var(--mono); font-size: 13px; display: grid; gap: 6px; padding: 12px; background: var(--ink2); border-radius: var(--radius); }
.cost div { display: flex; justify-content: space-between; } .cost .k { color: var(--dim); }
.prose { max-width: 820px; } .prose h1 { font-size: 36px; } .prose h2 { margin: 34px 0 8px; font-size: 24px; } .prose p, .prose li { color: #c7d3c9; line-height: 1.65; max-width: 72ch; }
.prose code { font-family: var(--mono); background: var(--paper2); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 13px; vertical-align: top; } .prose th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.footer { margin-top: 56px; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--dim); font-size: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer a:hover { color: var(--bill); }
.stat { padding: 10px 12px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.stat .k { font-size: 12px; color: var(--dim); }
.stat .v { font-family: var(--display); font-size: 22px; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---- toasts ---- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { padding: 10px 14px; border-radius: var(--radius); background: var(--paper2); border: 1px solid var(--rule2); animation: enter .3s ease; max-width: 360px; font-size: 13px; }
.toast.ok { border-color: var(--mint); } .toast.err { border-color: var(--coral); } .toast.info { border-color: var(--seal); }
.spin { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--paper) 25%, var(--paper2) 50%, var(--paper) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

@media (max-width: 1100px) { .hero { grid-template-columns: 1fr; } .coin-layout { grid-template-columns: 1fr; } .trade { position: static; } .create-layout { grid-template-columns: 1fr; } .how { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 8px; } .nav { order: 5; width: 100%; overflow-x: auto; } .search { max-width: none; order: 4; flex: 0 0 100%; margin: 0; } .top > .btn.primary { margin-left: auto; }
  .bill-frame { grid-template-columns: 1fr; padding: 18px; } .portrait { width: 96px; height: 96px; } .bill-side { flex-direction: row; align-items: center; justify-content: space-between; } .bill-denom .denom { font-size: 40px; }
  .grid { grid-template-columns: 1fr; } .coin-head .kpis { margin-left: 0; width: 100%; justify-content: space-between; } .two { grid-template-columns: 1fr; } .wrap { padding: 0 14px 40px; }
}

/* ---- wallet picker ---- */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(6,10,8,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--rule2); border-radius: 10px; padding: 18px 18px 16px; animation: enter .25s ease; }
.modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-h h3 { font-size: 20px; }
.modal-x { border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 4px; }
.modal-x:hover { color: var(--bill); background: var(--paper2); }
.modal .note { margin: 0 0 12px; }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-top: 6px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ink2); color: var(--bill); text-align: left; }
.wrow:hover { border-color: var(--seal); }
.wrow.demo { border-style: dashed; }
.wrow img, .wicon { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.wicon { display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: hsl(var(--h) 45% 22%); color: hsl(var(--h) 80% 78%); }
.wname { flex: 1; font-weight: 500; display: flex; flex-direction: column; }
.wname small { color: var(--dim); font-weight: 400; font-size: 11.5px; }
.wstate { font-size: 12px; color: var(--dim); }
.wstate.on { color: var(--mint); }
.wrow.busy { opacity: .7; }
.wallet { position: relative; }
.btn.wrong { border-color: var(--coral); color: var(--coral); }
.wmenu { position: absolute; right: 0; top: 44px; min-width: 220px; background: var(--paper); border: 1px solid var(--rule2); border-radius: 8px; padding: 6px; display: grid; z-index: 40; }
.wmenu .note { padding: 6px 10px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.wmenu a, .wmenu button { text-align: left; padding: 8px 10px; border: 0; background: transparent; color: var(--bill); border-radius: 4px; font-size: 13px; }
.wmenu a:hover, .wmenu button:hover { background: var(--paper2); }
.wmenu[hidden], .modal-wrap[hidden], [hidden] { display: none !important; }
