:root { --bg: #000; --ink: #f4f4f1; --dim: #8c8c88; --faint: #55554f; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16); --pane: #0a0a0a; --g: #00EC97; --red: #ff5d5d; --rail: 72px; --top: 64px;
  --sans: 'Inter', system-ui, sans-serif; --disp: 'Archivo', 'Inter', sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-width: none; }
html::-webkit-scrollbar, *::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; padding: var(--top) 0 34px var(--rail); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
::selection { background: var(--g); color: #000; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* rail */
.rail { position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 17px 0 50px; }
.rail-logo { display: block; margin-bottom: 30px; }
.rail-nav { display: flex; flex-direction: column; gap: 6px; }
.rail-nav a { width: 56px; padding: 9px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 12px; color: var(--faint); font: 500 10px/1 var(--sans); letter-spacing: .01em; transition: color .15s; }
.rail-nav a:hover { color: var(--ink); }
.rail-nav a.on { color: var(--ink); }
.rail-nav a.on svg { stroke: var(--g); }
.rail svg, .search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail svg .fill { fill: currentColor; stroke: none; }
.rail-x { margin-top: auto; color: var(--faint); padding: 10px; transition: color .15s; }
.rail-x:hover { color: var(--ink); }

/* top */
.top { position: fixed; z-index: 19; top: 0; left: var(--rail); right: 0; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px 0 12px; }
.search { display: flex; align-items: center; gap: 10px; width: min(380px, 46vw); height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.045); color: var(--faint); transition: background .15s; }
.search:focus-within { background: rgba(255,255,255,.08); color: var(--ink); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.top-r { display: flex; align-items: center; gap: 16px; }
.net { font: 400 11px var(--mono); color: var(--faint); }

/* buttons: one style, two weights */
.btn { height: 40px; padding: 0 18px; border-radius: 12px; border: 0; background: #fff; color: #000; font: 600 14px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .12s, opacity .15s, background .15s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.ghost { background: rgba(255,255,255,.07); color: var(--ink); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.big { height: 52px; padding: 0 26px; border-radius: 14px; font-size: 15px; }
.btn.wide { width: 100%; }
.connect { background: rgba(255,255,255,.07); color: var(--ink); font: 500 13px var(--mono); padding: 0 16px 0 13px; }
.connect:hover { background: rgba(255,255,255,.12); }
.connect i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: background .2s, box-shadow .2s; }
.connect.on i { background: var(--g); box-shadow: 0 0 10px var(--g); }

/* hero */
.hero { position: relative; height: min(52vh, 520px); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 28px 54px 12px; }
.hero h1 { margin: 0 0 30px; font: italic 800 clamp(54px, 9.2vw, 136px)/.88 var(--disp); font-stretch: 112%; letter-spacing: -.035em; }
.hero h1 em { font-style: inherit; color: var(--g); }

/* coin list */
.list { padding: 0 28px 70px 12px; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) 70px; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; transition: background .15s; }
a.row:hover { background: rgba(255,255,255,.05); }
.row.head { padding-top: 0; padding-bottom: 8px; color: var(--faint); font: 400 11px var(--mono); }
.row > :not(:first-child) { text-align: right; font: 400 13px var(--mono); }
.who { display: flex; align-items: center; gap: 13px; min-width: 0; }
.who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: #111; }
.who b { display: block; font: 600 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { display: block; color: var(--dim); font: 400 12px var(--mono); }
.row .age { color: var(--dim); }
.empty { padding: 60px 14px; color: var(--dim); }
.flash { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { color: var(--g); } 100% { color: inherit; } }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--g); margin-right: 8px; vertical-align: 2px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* page frame for inner pages */
.page { padding: 30px 28px 80px 12px; }
.page h2 { margin: 0 0 26px; font: italic 800 clamp(34px, 4.6vw, 60px)/.95 var(--disp); font-stretch: 112%; letter-spacing: -.03em; }
.page h2 em { font-style: inherit; color: var(--g); }
.card { background: var(--pane); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.narrow { max-width: 560px; }

/* form */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: var(--dim); font-size: 12px; }
.in { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.05); outline: 0; transition: border-color .15s, background .15s; }
textarea.in { height: 84px; padding: 12px 14px; resize: none; }
.in:focus { border-color: var(--line2); background: rgba(255,255,255,.07); }
.in::placeholder { color: var(--faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.launch-top { display: grid; grid-template-columns: 132px 1fr; gap: 18px; margin-bottom: 4px; }
.drop { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 1px dashed var(--line2); display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 12px; cursor: pointer; overflow: hidden; transition: border-color .15s, color .15s; }
.drop:hover, .drop.over { border-color: var(--g); color: var(--ink); }
.drop.has { border-style: solid; border-color: transparent; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { display: none; }
.addr { margin: -6px 0 16px; font: 400 12px var(--mono); color: var(--dim); word-break: break-all; min-height: 18px; }
.addr.bad { color: var(--red); }
.addr b { color: var(--ink); font-weight: 500; }
.more { margin: 2px 0 18px; }
.more summary { cursor: pointer; color: var(--dim); font-size: 13px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--ink); }
.more[open] summary { margin-bottom: 14px; }
.sum { display: flex; justify-content: space-between; margin: 0 0 14px; color: var(--dim); font-size: 13px; }
.sum b { color: var(--ink); font: 500 13px var(--mono); }

/* coin page */
.strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 28px 20px 12px; }
.strip img.logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #111; }
.strip h1 { margin: 0; font: 700 24px/1.1 var(--sans); letter-spacing: -.01em; }
.strip h1 span { color: var(--dim); font: 400 14px var(--mono); margin-left: 8px; }
.strip .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ca { height: 26px; padding: 0 9px; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: var(--dim); font: 400 12px var(--mono); display: inline-flex; align-items: center; gap: 7px; transition: color .15s, background .15s; }
.ca:hover { color: var(--ink); background: rgba(255,255,255,.1); }
.ca svg, .ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255,255,255,.06); color: var(--dim); transition: color .15s; }
.ico:hover { color: var(--ink); }
.ico svg.f { fill: currentColor; stroke: none; }
.stats { margin-left: auto; display: flex; gap: 34px; }
.stats div { text-align: right; }
.stats small { display: block; color: var(--faint); font: 400 11px var(--mono); margin-bottom: 3px; }
.stats b { font: 500 19px var(--mono); letter-spacing: -.02em; }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; padding: 0 28px 80px 12px; align-items: start; }
.chartbox { padding: 12px 12px 6px; }
.chart-bar { display: flex; align-items: center; gap: 4px; padding: 2px 4px 10px; }
.seg { height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--dim); font: 500 12px var(--mono); transition: color .15s, background .15s; }
.seg:hover { color: var(--ink); }
.seg.on { background: rgba(255,255,255,.08); color: var(--ink); }
.chart-bar .sp { flex: 1; }
#chart { height: 420px; }
.trades { margin-top: 14px; padding: 8px 8px 12px; }
.trow { display: grid; grid-template-columns: 70px 1fr 1fr 1fr 1fr 60px; gap: 10px; padding: 9px 12px; font: 400 12.5px var(--mono); border-radius: 10px; align-items: center; }
.trow.head { color: var(--faint); font-size: 11px; }
a.trow:hover { background: rgba(255,255,255,.04); }
.trow > :nth-child(n+3) { text-align: right; }
.trow .buy { color: var(--g); } .trow .sell { color: var(--red); }
.trow .t { color: var(--dim); }
.more-tx { display: block; text-align: center; padding: 10px; color: var(--dim); font-size: 12px; }
.more-tx:hover { color: var(--ink); }

/* swap */
.swap { position: sticky; top: calc(var(--top) + 8px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 16px; }
.tabs button { height: 38px; border: 0; border-radius: 11px; background: none; color: var(--dim); font: 600 14px var(--sans); transition: background .15s, color .15s; }
.tabs button.on { background: #fff; color: #000; }
.amt { border-radius: 14px; background: rgba(255,255,255,.05); padding: 14px 16px; }
.amt-top { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-bottom: 8px; }
.amt-top button { border: 0; background: none; color: var(--dim); font: 400 12px var(--mono); padding: 0; }
.amt-top button:hover { color: var(--ink); }
.amt-main { display: flex; align-items: center; gap: 10px; }
.amt-main input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 28px var(--mono); letter-spacing: -.03em; }
.amt-main input::placeholder { color: var(--faint); }
.unit { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--sans); }
.unit img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 14px; }
.presets button { height: 32px; border-radius: 9px; border: 0; background: rgba(255,255,255,.05); color: var(--dim); font: 500 12px var(--mono); transition: color .15s, background .15s; }
.presets button:hover { color: var(--ink); background: rgba(255,255,255,.09); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0 0 10px; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--g) var(--p), rgba(255,255,255,.1) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--g); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.get { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 12px; color: var(--dim); font-size: 13px; }
.get b { color: var(--ink); font: 500 14px var(--mono); }
.slip { display: flex; align-items: center; gap: 6px; padding: 0 2px 16px; color: var(--dim); font-size: 12px; }
.slip .sp { flex: 1; }
.slip button { height: 26px; padding: 0 9px; border-radius: 8px; border: 0; background: none; color: var(--dim); font: 500 12px var(--mono); }
.slip button.on { background: rgba(255,255,255,.08); color: var(--ink); }
.hold { margin-top: 14px; display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; }
.hold b { color: var(--ink); font: 400 12px var(--mono); }
.about { margin-top: 14px; color: var(--dim); font-size: 13px; }

/* fees */
.owed { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.owed small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 6px; }
.owed b { font: 500 44px/1 var(--mono); letter-spacing: -.04em; }
.owed b span { font-size: 16px; color: var(--dim); letter-spacing: 0; margin-left: 8px; }
.mine { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; }
.mrow img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mrow b { font-weight: 600; }
.mrow span { margin-left: auto; font: 400 13px var(--mono); color: var(--dim); }
.mrow span.has { color: var(--g); }

/* bridge */
.leg { border-radius: 14px; background: rgba(255,255,255,.05); padding: 14px 16px; }
.leg-top { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-bottom: 10px; }
.leg-main { display: flex; align-items: center; gap: 10px; }
.leg-main input, .leg-main output { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 28px var(--mono); letter-spacing: -.03em; }
.pick { position: relative; }
.pick > button { height: 38px; padding: 0 12px 0 8px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--sans); }
.pick > button:hover { background: rgba(255,255,255,.12); }
.pick img { width: 22px; height: 22px; border-radius: 50%; }
.pick > button::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--dim); border-bottom: 1.6px solid var(--dim); transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.pick.fixed > button::after { display: none; }
.pick.fixed > button { cursor: default; padding-right: 12px; }
.menu { position: absolute; z-index: 5; right: 0; top: 44px; min-width: 190px; padding: 6px; border-radius: 14px; background: #111; border: 1px solid var(--line2); display: none; }
.pick.open .menu { display: block; }
.menu button { width: 100%; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; display: flex; align-items: center; gap: 10px; font: 500 13px var(--sans); text-align: left; }
.menu button:hover { background: rgba(255,255,255,.07); }
.menu button small { margin-left: auto; color: var(--dim); font: 400 11px var(--mono); }
.arrow { display: grid; place-items: center; height: 34px; color: var(--faint); }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kv { display: flex; justify-content: space-between; padding: 14px 2px 0; color: var(--dim); font-size: 13px; }
.kv b { color: var(--ink); font: 400 13px var(--mono); }

/* footer + tape + toast */
.foot { display: flex; align-items: center; justify-content: space-between; padding: 26px 28px 30px 12px; color: var(--dim); }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.foot-logo b { font: italic 800 22px/1 var(--disp); font-stretch: 112%; letter-spacing: -.03em; }
.foot-logo b em { font-style: inherit; color: var(--acc, #00EC97); }
.foot a:hover { color: var(--ink); }
.tape { position: fixed; z-index: 18; left: var(--rail); right: 0; bottom: 0; height: 34px; overflow: hidden; background: linear-gradient(180deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
#tape { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 60s linear infinite; }
#tape a { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font: 400 12px var(--mono); color: var(--dim); }
#tape a:hover { color: var(--ink); }
#tape img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
#tape b { color: var(--ink); font-weight: 500; }
@keyframes tape { to { transform: translateX(-50%); } }
#toast { position: fixed; z-index: 50; left: 50%; bottom: 54px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 12px; background: #151515; border: 1px solid var(--line2); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(92vw, 460px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast a { color: var(--g); margin-left: 8px; }

@media (max-width: 900px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .desk > * { min-width: 0; }
  .swap { position: static; order: -1; }
  .stats { margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  .stats div { text-align: left; }
}
@media (max-width: 640px) {
  :root { --rail: 0px; --top: 58px; }
  body { padding-bottom: 96px; }
  .rail { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 62px; flex-direction: row; justify-content: center; padding: 0 8px; background: #000; border-top: 1px solid var(--line); }
  .rail-logo, .rail-x { display: none; }
  .rail-nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .top { padding: 0 14px; } .net { display: none; }
  .hero, .list, .page, .strip, .desk, .foot { padding-left: 14px; padding-right: 14px; }
  .hero { min-height: 300px; height: 44vh; padding-bottom: 34px; }
  .row { grid-template-columns: minmax(0, 1.6fr) 1fr 1fr; padding: 11px 6px; }
  .row > :nth-child(3), .row > :nth-child(5) { display: none; }
  .tape { left: 0; bottom: 62px; }
  .trow { grid-template-columns: 44px 48px 1fr 1fr; } .trow > :nth-child(5), .trow > :nth-child(6) { display: none; }
  .launch-top { grid-template-columns: 1fr; } .drop { margin: 0 auto; }
  .stats b { font-size: 16px; }
  #chart { height: 320px; }
  #toast { bottom: 112px; }
}

/* inner pages sit centred */
main { min-height: calc(100vh - var(--top) - 34px - 86px); }
.page.mid { max-width: 620px; margin: 0 auto; padding-top: 5vh; }
.page.mid .narrow { max-width: none; }
.addr:empty { display: none; }

/* bridge deposit */
.dep { border-radius: 14px; background: rgba(255,255,255,.05); padding: 16px; }
.dep small { display: block; color: var(--dim); font-size: 12px; }
.dep b { display: block; margin: 6px 0 12px; font: 500 24px var(--mono); letter-spacing: -.03em; word-break: break-all; }
.dep-a { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 12px 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--ink); font: 400 13px var(--mono); text-align: left; cursor: pointer; }
.dep-a span { flex: 1; min-width: 0; word-break: break-all; }
.dep-a svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .6; }
.dep-a:hover { background: rgba(255,255,255,.1); }
