/* MileUp. Monochrome: ink on black (or black on white), glass cards over slow-drifting blobs. The accent is the ink itself. */
:root {
  --bg: #000000; --solid: #0E0E0E; --card: rgba(255,255,255,.045); --glass: rgba(14,14,14,.6); --sunk: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.22); --ink: #FFFFFF; --muted: #9A9A9A; --faint: #6E6E6E;
  --tile1: #F2F2F2; --tile2: #B8B8B8; --tilefg: #000; --blob: rgba(255,255,255,.07); --onink: #000;
  --accent: #FFFFFF; --accent-soft: rgba(255,255,255,.1); --onaccent: #000; --up: #2EBD85; --up-soft: rgba(46,189,133,.14); --down: #F6465D; --down-soft: rgba(246,70,93,.14); --bad: #FF6B6B;
  --hi: inset 0 1px 0 rgba(255,255,255,.05); --lift: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -32px rgba(0,0,0,.9);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --solid: #FAFAFA; --card: rgba(255,255,255,.7); --glass: rgba(255,255,255,.62); --sunk: rgba(0,0,0,.05);
  --line: rgba(0,0,0,.08); --line2: rgba(0,0,0,.2); --ink: #0A0A0A; --muted: #5C5C5C; --faint: #8C8C8C;
  --tile1: #2A2A2A; --tile2: #0A0A0A; --tilefg: #fff; --blob: rgba(0,0,0,.06); --onink: #fff;
  --accent: #0A0A0A; --accent-soft: rgba(0,0,0,.06); --onaccent: #fff; --up: #0E9F6E; --up-soft: rgba(14,159,110,.1); --down: #E5394B; --down-soft: rgba(229,57,75,.09); --bad: #D43C3C;
  --hi: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.04); --lift: 0 1px 2px rgba(0,0,0,.04), 0 24px 50px -30px rgba(0,0,0,.25);
  color-scheme: light;
}

/* Type system. One sans (Inter) for all UI text and every number (tabular figures); JetBrains Mono is a third voice used only
   for eyebrow labels, addresses, hashes and key hints. Sizes come from this scale and nothing else. */
:root {
  --num: var(--font);
  --t-nano: 10px; --t-micro: 11px; --t-caption: 12px; --t-small: 13px; --t-body: 14px; --t-ui: 15px; --t-lead: 16px;
  --t-h3: 20px; --t-h2: 24px; --t-h1: 32px; --t-num-xl: 40px;
  --ls-tight: -.03em; --ls-snug: -.015em; --ls-caps: .08em;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; font-feature-settings: "cv11", "ss01", "tnum"; font-optical-sizing: auto; }
input, button, textarea, select { font-family: inherit; font-feature-settings: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: var(--t-small); } .tiny { font-size: var(--t-caption); }
.up { color: var(--up); } .down { color: var(--down); } .acc { color: var(--accent); }
.err { color: var(--bad); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.live { animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: .3; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(120px, 60px) scale(1.15); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-140px, -40px) scale(.9); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -120px) scale(1.1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- background ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; background: var(--blob); }
.blobs i:nth-child(1) { left: 10%; top: -10%; width: 52vw; height: 52vw; filter: blur(90px); animation: drift1 26s ease-in-out infinite; }
.blobs i:nth-child(2) { right: -10%; top: 20%; width: 46vw; height: 46vw; filter: blur(100px); animation: drift2 32s ease-in-out infinite; }
.blobs i:nth-child(3) { left: 30%; bottom: -20%; width: 40vw; height: 40vw; filter: blur(90px); animation: drift3 29s ease-in-out infinite; }

/* ---------- shell: sidebar + column ---------- */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

#side { position: sticky; top: 0; height: 100vh; width: 248px; flex: none; border-right: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; flex-direction: column; padding: 16px 14px 18px; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 var(--t-lead) var(--font); letter-spacing: var(--ls-snug); padding: 8px 12px 34px; }
.brand svg { width: 25px; height: 22px; flex: none; }
#nav { display: flex; flex-direction: column; gap: 6px; }
#nav a { display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 12px; border-radius: 11px; text-decoration: none; font-weight: 500; font-size: var(--t-ui); color: var(--muted); }
#nav a:hover { color: var(--ink); background: var(--sunk); }
#nav a { position: relative; transition: color .12s, background .12s; }
#nav a.on { color: var(--ink); background: var(--sunk); }
#nav a.on::before { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--accent); }
#nav a svg { width: 20px; height: 20px; flex: none; }
#nav a .navbadge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 var(--t-micro) var(--num); color: var(--muted); }
.side-cta { margin-top: 28px; height: 46px; font-size: var(--t-body); border-radius: 11px; }
.side-cta svg { width: 16px; height: 16px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.themes { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); gap: 2px; margin-top: 6px; }
.themes button { flex: 1; height: 34px; border: 0; border-radius: 7px; cursor: pointer; font-size: var(--t-small); font-weight: 500; background: transparent; color: var(--muted); }
.themes button.on { background: var(--sunk); color: var(--ink); }
.chainline { display: flex; align-items: center; gap: 8px; padding: 12px 10px 0; font: 500 var(--t-micro) var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; }
.chainline .cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chainline .px { margin-left: auto; flex: none; color: var(--muted); }
.chainline .dot { animation: pulse 2s ease-in-out infinite; }

#top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); }
.bar { padding: 0 28px; height: 60px; display: flex; align-items: center; gap: 20px; }
.search { position: relative; display: block; width: 100%; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--faint); }
.search input { height: 40px; width: 100%; border-radius: 10px; padding: 0 44px 0 34px; border: 1px solid var(--line); background: var(--card); outline: none; font-size: var(--t-body); }
.search input:focus { border-color: var(--line2); }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 500 var(--t-nano) var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.pill b { color: var(--ink); font: 500 var(--t-small) var(--num); }
.menubtn, .brand.mob { display: none; }
.menubtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; padding: 0; }
.menubtn svg { width: 18px; height: 18px; }
.scrim { display: none; }

@media (max-width: 900px) {
  #side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s ease; background: var(--solid); }
  body.menu #side { transform: none; }
  body.menu .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.5); }
  .menubtn { display: grid; } .brand.mob { display: flex; padding: 0; }
  .bar { padding: 0 16px; gap: 12px; }
  .search { order: 5; flex-basis: 100%; max-width: none; width: 100%; margin-bottom: 10px; }
  .bar { flex-wrap: wrap; height: auto; padding-top: 12px; }
  .search kbd { display: none; }
}
@media (max-width: 560px) { .pill { display: none; } }
@media (min-width: 901px) { .bar .search { flex: 1; max-width: 560px; margin: 0 auto; } }
/* with the right rail showing, the wallet button and the pot total move into it, and the search sits dead centre */
@media (min-width: 1280px) {
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px) minmax(0, 1fr); }
  .bar .search { grid-column: 2; max-width: none; }
  .bar .right { grid-column: 3; justify-self: end; }
  .bar #potpill { display: none; }
}

/* ---------- layout ---------- */
main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 28px 80px; min-height: 70vh; }
@media (max-width: 900px) { main { padding: 0 16px 60px; } }
.page { padding-top: 28px; }
.page.narrow { max-width: 760px; margin: 0 auto; }
.page.mid { max-width: 980px; margin: 0 auto; }
.back { color: var(--muted); text-decoration: none; font-size: var(--t-body); }
.back:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 600; }
h1 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: var(--ls-tight); }
h2 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: var(--ls-snug); }
h3 { font-size: var(--t-body); }
.lede { margin: 6px 0 0; color: var(--muted); font-size: var(--t-body); max-width: 640px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.sticky { position: sticky; top: 76px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } .sticky { position: static; } }

.card { border-radius: 16px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 16px; min-width: 0; box-shadow: var(--hi); }
.card.pad { padding: 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-h h3 { font-size: var(--t-body); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-weight: 500; font-size: var(--t-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, opacity .12s; }
.btn:hover { background: var(--sunk); }
.btn:active:not([disabled]) { transform: scale(.98); }
.btn .dot { margin-right: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--onaccent); font-weight: 600; }
.btn.primary:hover { opacity: .88; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--onink); font-weight: 600; }
.btn.ghost { border-color: transparent; }
.btn.quiet { border-color: var(--line); color: var(--muted); }
.btn.quiet:hover { color: var(--ink); }
.btn.lg { height: 50px; padding: 0 24px; border-radius: 12px; font-size: var(--t-ui); }
.btn.md { height: 44px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: var(--t-small); border-radius: 8px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { margin: 0; }
.field > label, .label { display: block; font-size: var(--t-small); font-weight: 500; margin-bottom: 6px; }
.label .faint, .field > label .faint { font-weight: 400; }
.input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); padding: 0 12px; outline: none; transition: border-color .12s; }
.input:focus { border-color: var(--line2); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: 76px; padding: 10px 12px; resize: vertical; }
.prefix { position: relative; flex: 1; min-width: 0; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.prefix > .input { padding-left: 28px; }
.suffix { position: relative; }
.suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: var(--t-small); color: var(--muted); font-weight: 500; pointer-events: none; }
.hint { font-size: var(--t-small); color: var(--faint); margin: 6px 0 0; }
.seg { display: flex; background: var(--sunk); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 500; font-size: var(--t-small); cursor: pointer; background: transparent; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--accent); color: var(--onaccent); }
.seg.trade button { font-weight: 600; font-size: var(--t-body); }
.seg.trade button.on[data-s="buy"] { background: var(--up); color: #fff; }
.seg.trade button.on[data-s="sell"] { background: var(--down); color: #fff; }
.tfs { display: inline-flex; gap: 2px; }
.tfs button { border: 0; height: 26px; padding: 0 9px; border-radius: 7px; font: 500 var(--t-caption) var(--num); cursor: pointer; background: transparent; color: var(--muted); }
.tfs button.on { background: var(--sunk); color: var(--ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 500; font-size: var(--t-small); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line2); }
.chip.on { background: var(--accent); color: var(--onaccent); border-color: var(--accent); }
.chip.mono { font: 500 var(--t-small) var(--mono); }
.chips .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: transparent; font: 500 var(--t-caption) var(--num); color: var(--muted); cursor: pointer; }
.quick button:hover { color: var(--ink); border-color: var(--line2); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 3px; background: var(--line2); border-radius: 3px; outline: none; width: 100%; margin: 12px 0 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-micro); font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.on { border-color: var(--accent); color: var(--accent); }

/* ---------- avatars / tiles ---------- */
.avatar { flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-weight: 600; color: var(--tilefg); background: linear-gradient(145deg, var(--tile1), var(--tile2)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.round { border-radius: 50%; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding: 64px 0 0; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); font-size: var(--t-small); color: var(--muted); animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { margin: 22px auto 0; max-width: 760px; font: 600 clamp(34px, 4.4vw, 58px)/1.04 var(--font); letter-spacing: -.045em; text-wrap: balance; animation: rise .9s .08s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span { color: var(--accent); }
.hero p.big { margin: 18px auto 0; max-width: 540px; color: var(--muted); font-size: var(--t-lead); line-height: 1.5; text-wrap: pretty; animation: rise .9s .16s cubic-bezier(.2,.7,.2,1) both; }
.hero .ctas { display: flex; gap: 10px; margin-top: 32px; justify-content: center; flex-wrap: wrap; animation: rise .9s .24s cubic-bezier(.2,.7,.2,1) both; }
.hero .ctas .btn.primary { box-shadow: 0 10px 30px -14px var(--accent); }
.hero .ctas .btn:not(.primary) { background: var(--card); backdrop-filter: blur(12px); }
@media (max-width: 640px) { .hero { padding-top: 44px; } .hero p.big { font-size: var(--t-lead); } }

.mountain { position: relative; height: 460px; margin-top: 56px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow: hidden; text-align: left; animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both; box-shadow: 0 40px 100px -50px rgba(0,0,0,.5); }
.mountain .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 95%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 95%); opacity: .6; }
.mountain > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mountain .lvl { position: absolute; left: 16px; transform: translateY(-50%); font: 500 var(--t-micro) var(--num); color: var(--muted); background: var(--solid); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.bubble { position: absolute; display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); animation: fadein 1s both; }
.bubble .ball { border-radius: 50%; display: grid; place-items: center; font: 600 var(--t-caption) var(--font); color: var(--tilefg); background: linear-gradient(145deg, var(--tile1), var(--tile2)); border: 2px solid var(--bg); box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: float 5s ease-in-out infinite; overflow: hidden; }
.bubble .ball img { width: 100%; height: 100%; object-fit: cover; }
.bubble.hold .ball { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 30px var(--line2); }
.bubble .name { font-size: var(--t-caption); font-weight: 500; background: var(--solid); border: 1px solid var(--line); border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.bubble .name span { color: var(--muted); }
.bubble.edge .name { transform: translateX(-32%); }
.bubble.edgel .name { transform: translateX(32%); }
.featured { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-decoration: none; color: var(--ink); }
.featured:hover { border-color: var(--ink); }
.featured .t { flex: 1; min-width: 0; }
.featured .t > div:first-child { font-size: var(--t-body); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured .t .s { color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.featured .big { font: 500 var(--t-h1)/1 var(--num); letter-spacing: var(--ls-tight); flex: none; color: var(--accent); }
.mountain .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
@media (max-width: 640px) { .mountain { height: 380px; margin-top: 36px; } .featured .big { font-size: var(--t-h3); } .featured .t .s { display: none; } }

.tape { margin-top: 14px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); overflow: hidden; position: relative; text-align: left; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; opacity: .8; }
.tape::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tape::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.tape .run { display: flex; width: max-content; height: 40px; align-items: center; animation: tick 40s linear infinite; }
.tape .run:hover { animation-play-state: paused; }
.tape .it { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; font: 500 var(--t-caption) var(--num); color: var(--muted); white-space: nowrap; text-decoration: none; }
.tape .it b { color: var(--ink); font-weight: 500; }
.tape .it::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin-left: 12px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; text-align: left; }
.stats > div { box-shadow: var(--hi); padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); min-width: 0; }
.stats .v { font: 500 var(--t-h2)/1 var(--num); letter-spacing: var(--ls-tight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats .v small { font-size: var(--t-body); color: var(--muted); }
.stats .k { color: var(--muted); font-size: var(--t-small); margin-top: 8px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } .stats .v { font-size: var(--t-h3); } }

.section-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; }
.section-h p { margin: 6px 0 0; color: var(--muted); font-size: var(--t-body); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: start; }
.cols2 h2 { font-size: var(--t-lead); letter-spacing: var(--ls-snug); margin-bottom: 12px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- coin table ---------- */
.table { box-shadow: var(--hi); margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow-x: auto; }
.table .in { min-width: 780px; }
.trow { display: grid; grid-template-columns: minmax(200px, 1.3fr) 140px minmax(190px, 1.2fr) 110px 140px; gap: 16px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .12s; }
.trow:last-child { border-bottom: 0; }
a.trow:hover { background: var(--sunk); }
.trow.hold { background: var(--accent-soft); }
.trow.head { padding: 12px 20px; font-size: var(--t-caption); color: var(--faint); font-weight: 500; }
.trow .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trow .who > div { min-width: 0; }
.trow .nm { font-weight: 600; font-size: var(--t-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .nm span { color: var(--muted); font-weight: 500; }
.trow .sub { color: var(--muted); font-size: var(--t-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .mcv { font: 500 var(--t-ui) var(--num); }
.trow .mcs { font: 500 var(--t-caption) var(--num); margin-top: 2px; color: var(--muted); }
.trow .pg { display: flex; justify-content: space-between; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.bar4 { height: 4px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin-top: 6px; }
.bar4 i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .6s ease; }
.trow .pot { font: 500 var(--t-body) var(--num); white-space: nowrap; }
.trow .st { font-size: var(--t-small); font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.trow .st.on { color: var(--accent); }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.table .empty { min-width: 0; }
.skel { display: block; border-radius: 16px; background: linear-gradient(90deg, var(--sunk), var(--card), var(--sunk)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- lists ---------- */
.plist { box-shadow: var(--hi); border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.plist > a, .plist > div { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.plist > :first-child { border-top: 0; }
.plist > a:hover { background: var(--sunk); }
.plist .grow { flex: 1; min-width: 0; }
.plist .amt { font: 500 var(--t-body) var(--num); flex: none; }
.steps { box-shadow: var(--hi); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.steps > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.steps > div:first-child { border-top: 0; }
.steps .n { font: 500 var(--t-small) var(--mono); color: var(--muted); }
.steps b { display: block; font-weight: 600; font-size: var(--t-body); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: var(--t-body); }
.steps.lg > div { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; }
.steps.lg b { font-size: var(--t-ui); }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.t { width: 100%; border-collapse: collapse; font: 400 var(--t-small) var(--num); margin-top: 4px; }
table.t th { text-align: left; font: 500 var(--t-micro) var(--font); color: var(--faint); padding: 10px 0 6px; }
table.t td { padding: 9px 0; border-top: 1px solid var(--line); }
table.t td a { text-decoration: none; }
table.t td a:hover { text-decoration: underline; }
table.t .r { text-align: right; }
table.t td + td, table.t th + th { padding-left: 14px; }
table.t td.side { font-weight: 500; }
.tablewrap { overflow-x: auto; }

/* ---------- coin page ---------- */
.coinhead { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.coinhead .t { flex: 1; min-width: 0; }
.coinhead h1 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: var(--ls-snug); }
.coinhead h1 span { color: var(--muted); font-weight: 500; }
.coinhead .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; color: var(--muted); font-size: var(--t-small); }
.coinhead .meta a.creator { color: var(--ink); text-decoration: none; font-weight: 500; }
.coinhead .meta a.creator:hover { text-decoration: underline; }
.copyca { border: 0; background: transparent; padding: 0; font: 500 var(--t-small) var(--mono); color: var(--muted); cursor: pointer; }
.copyca:hover { color: var(--ink); }
.coinhead .links { display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0 14px; }
.kpi { box-shadow: var(--hi); border-radius: 14px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 12px 14px; min-width: 0; }
.kpi .k { color: var(--muted); font-size: var(--t-caption); }
.kpi .v { font: 500 var(--t-h3)/1.2 var(--num); letter-spacing: var(--ls-snug); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.hi { border-color: var(--accent); }
.kpi.hi .k { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis .kpi:last-child { grid-column: span 2; } }
.chartbox { height: 300px; position: relative; margin-top: 12px; }
.chartbox .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

.ms { display: flex; flex-direction: column; margin-top: 8px; }
.msr { display: grid; grid-template-columns: 24px 90px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.msr .d { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); color: var(--muted); display: grid; place-items: center; font-size: var(--t-micro); font-weight: 700; }
.msr.hit .d { background: var(--ink); border-color: var(--ink); color: var(--onink); }
.msr.next .d { border-color: var(--accent); color: var(--accent); }
.msr.next.holding .d { background: var(--accent); color: var(--onaccent); animation: pulse 1.4s ease-in-out infinite; }
.msr .a { font: 500 var(--t-ui) var(--num); }
.msr .s { color: var(--muted); font-size: var(--t-small); min-width: 0; }
.msr .s b { color: var(--ink); font: 500 var(--t-small) var(--num); }
.msr .w { color: var(--faint); font-size: var(--t-small); text-align: right; }
.msr .w.on { color: var(--accent); font-weight: 500; }
.msr .pr { display: flex; align-items: center; gap: 10px; }
.msr .pr .bar3 { flex: 1; height: 3px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.msr .pr .bar3 i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.msr .pr span { font: 500 var(--t-caption) var(--num); color: var(--muted); }
@media (max-width: 560px) { .msr { grid-template-columns: 24px 70px minmax(0, 1fr); } .msr .w { grid-column: 3; text-align: left; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -16px -16px 0; padding: 0 12px; }
.tabs button { border: 0; background: transparent; height: 42px; padding: 0 8px; font-weight: 500; font-size: var(--t-body); cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.hrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) 120px 64px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font: 400 var(--t-small) var(--num); }
.hrow a { text-decoration: none; }
.hrow .tg { color: var(--muted); font-size: var(--t-micro); font-family: var(--font); }
.hrow .bar3 { height: 3px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.hrow .bar3 i { display: block; height: 100%; background: var(--ink); }
@media (max-width: 560px) { .hrow { grid-template-columns: 24px minmax(0, 1fr) 64px; } .hrow .bar3 { display: none; } }
.prow { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.prow .a { font: 500 var(--t-body) var(--num); }
details.winners { padding: 0 0 8px; }
details.winners summary { cursor: pointer; color: var(--muted); font-size: var(--t-small); padding: 0 0 6px; }
details.winners .li { font-family: var(--mono); font-size: var(--t-small); padding: 6px 0; }

.tradebox .lbl { display: flex; justify-content: space-between; margin-top: 14px; font-size: var(--t-small); color: var(--muted); }
.tradebox .amount { position: relative; margin-top: 6px; }
.tradebox .amount .input { height: 50px; font: 500 var(--t-h3) var(--num); padding-right: 80px; }
.quote { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-small); color: var(--muted); }
.quote b, .quote .ink { color: var(--ink); font-weight: 400; }
.quotes { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.potcard .v { font: 500 var(--t-h2)/1.1 var(--num); letter-spacing: var(--ls-tight); margin-top: 8px; }
.potcard p { margin: 12px 0 0; color: var(--muted); font-size: var(--t-small); line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--line); }
.bigclock { font: 500 var(--t-h3)/1 var(--num); color: var(--accent); }
@media (max-width: 980px) {
  .coin-layout { display: flex; flex-direction: column; align-items: stretch; }
  .coin-layout > .stack { display: contents; }
  .coin-layout #chartcard { order: 1; } .coin-layout #trade { order: 2; } .coin-layout #mscard { order: 3; } .coin-layout #potcard { order: 4; } .coin-layout #tabcard { order: 5; } .coin-layout #about { order: 6; }
}

/* ---------- launch ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form .hr { height: 1px; background: var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.handlerow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.namerow { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } .handlerow { grid-template-columns: 1fr; } }
.slab { display: flex; justify-content: space-between; font-size: var(--t-small); }
.slab span { font-weight: 500; }
.slab b { font: 500 var(--t-small) var(--num); }
.imgpick { display: flex; align-items: center; gap: 12px; }
.imgpick label.avatar { width: 64px; height: 64px; border-radius: 12px; border: 1px dashed var(--line2); background: var(--sunk); color: var(--muted); font-size: var(--t-h3); cursor: pointer; }
.imgpick label.avatar:hover { border-color: var(--ink); color: var(--ink); }
.targets { display: flex; flex-direction: column; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); overflow: hidden; }
.targets > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border-top: 1px solid var(--line); font-size: var(--t-body); min-height: 44px; }
.targets > div:first-child { border-top: 0; }
.targets .n { color: var(--faint); font: 500 var(--t-caption) var(--num); }
.targets .v { font: 500 var(--t-body) var(--num); }
.targets .note { color: var(--faint); font-size: var(--t-small); }
.targets button { border: 0; background: transparent; color: var(--faint); cursor: pointer; width: 28px; height: 28px; border-radius: 7px; }
.targets button:hover { color: var(--ink); background: var(--sunk); }
@media (max-width: 560px) { .targets .note:not(.holdsel) { display: none; } .holdsel { font-size: 0; } .holdsel select { font-size: var(--t-small); } }
.numin { width: 64px !important; height: 34px; border-radius: 8px; padding: 0 8px; font: 500 var(--t-small) var(--num); text-align: center; }
.summary .rows { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-small); }
.summary .rows > div { display: flex; justify-content: space-between; gap: 12px; }
.summary .rows > div > span:first-child { color: var(--muted); flex: none; }
.summary .rows > div > span:last-child { text-align: right; min-width: 0; }
.split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 16px; gap: 2px; }
.split i { display: block; }
.split .c { background: var(--ink); } .split .p { background: var(--accent); opacity: .55; } .split .f { background: var(--line2); }
.legend2 { display: flex; gap: 12px; margin-top: 8px; font-size: var(--t-micro); color: var(--muted); flex-wrap: wrap; }
.legend2 span::before { content: "■ "; color: var(--c); }
.prevcoin { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.prevcoin > div { min-width: 0; }
.prevcoin .nm { font-weight: 600; font-size: var(--t-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prevcoin .nm span { color: var(--muted); font-weight: 500; }
.callout { border: 1px solid var(--line2); background: var(--glass); padding: 12px 16px; border-radius: 12px; margin: 18px 0 0; color: var(--muted); font-size: var(--t-body); }
.callout b { color: var(--ink); }

/* ---------- claim ---------- */
.stepper { display: flex; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: var(--t-small); background: var(--glass); backdrop-filter: blur(20px); }
.stepper span { flex: 1; padding: 10px 14px; color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; }
.stepper span:first-child { border-left: 0; }
.stepper span.on { background: var(--accent); color: var(--onaccent); font-weight: 500; }
.stepper span.ok { color: var(--ink); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 640px) { .cards2 { grid-template-columns: 1fr; } .stepper span { padding: 10px; font-size: var(--t-caption); } }
.cards2 .card p { margin: 6px 0 14px; color: var(--muted); font-size: var(--t-small); }
.codebox { font: 500 var(--t-h3) var(--mono); letter-spacing: .02em; background: var(--sunk); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.bigv { font: 500 var(--t-h1)/1.1 var(--num); letter-spacing: var(--ls-tight); margin-top: 6px; }

/* ---------- profile ---------- */
.profhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profhead .t { flex: 1; min-width: 0; }
.profhead h1 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: var(--ls-snug); }
.profhead .s { font-size: var(--t-small); color: var(--muted); margin-top: 3px; }
.profhead .s a { color: var(--muted); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis.three { grid-template-columns: 1fr; } .kpis.three .kpi:last-child { grid-column: auto; } }

/* ---------- prose ---------- */
.prose h2 { margin: 32px 0 8px; font-size: var(--t-lead); letter-spacing: 0; }
.prose p, .prose li { color: var(--muted); font-size: var(--t-body); line-height: 1.65; }
.prose p { margin: 0; }
.prose ul { margin: 0; padding-left: 18px; }
.prose b { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); }

/* ---------- toasts, modal, footer ---------- */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: up .2s ease; pointer-events: auto; max-width: 100%; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--solid); border-radius: 18px; padding: 20px; width: min(440px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line2); }
.modal h3 { margin-bottom: 14px; font-size: var(--t-lead); }
.modal p { color: var(--muted); }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); margin-bottom: 8px; cursor: pointer; font-weight: 500; text-align: left; }
.wallet-opt:hover { border-color: var(--line2); }
.wallet-opt img { width: 28px; height: 28px; border-radius: 7px; }
#foot { border-top: 1px solid var(--line); margin-top: auto; }
#foot .in { max-width: 1240px; margin: 0 auto; padding: 22px 28px 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-small); color: var(--faint); }
#foot .links { display: flex; gap: 14px; }
#foot a { color: var(--muted); text-decoration: none; }
#foot a:hover { color: var(--ink); }
@media (max-width: 900px) { #foot .in { padding: 22px 16px 32px; } }

/* ================= polish ================= */
html { scrollbar-color: var(--line2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#view.enter > * { animation: pagein .35s cubic-bezier(.2,.7,.2,1) both; }
.kicker { display: inline-block; font: 500 var(--t-micro) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.section-h .btn { align-self: flex-end; }
a.trow { position: relative; }
a.trow:hover .nm { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.trow .avatar, .ccard .avatar { box-shadow: 0 0 0 1px var(--line); }

/* empty states */
.emptyst { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px; color: var(--muted); }
.emptyst .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--sunk); color: var(--ink); margin-bottom: 6px; }
.emptyst .ico svg { width: 20px; height: 20px; }
.emptyst b { color: var(--ink); font-weight: 600; font-size: var(--t-ui); }
.emptyst p { margin: 0 0 8px; max-width: 360px; font-size: var(--t-body); }
.plist .emptyst { padding: 28px 16px; display: flex; border: 0; }
.table .empty { padding: 32px 20px; }

/* mountain: empty */
.ghost { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.5px dashed var(--muted); background: var(--solid); opacity: .7; animation: fadein 1s both, float 5s ease-in-out infinite; }
.featured.invite { border-color: var(--line2); border-style: dashed; }
.featured.invite:hover { border-style: solid; }
.featured .btn { flex: none; pointer-events: none; }
.avatar.plus { border: 1px dashed var(--line2); background: var(--sunk); color: var(--ink); font-size: var(--t-lead); border-radius: 10px; }
@media (max-width: 640px) { .featured.invite .btn { display: none; } }

/* call to action band */
.cta-band { margin-top: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--glass); backdrop-filter: blur(20px); box-shadow: var(--lift); }
.cta-band h2 { font-size: var(--t-h3); letter-spacing: var(--ls-tight); }
.cta-band p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }
@media (max-width: 640px) { .cta-band { padding: 22px; } .cta-band h2 { font-size: var(--t-h3); } }

/* explore */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: var(--ls-tight); }
.sumrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px); overflow: hidden; box-shadow: var(--hi); }
.sumrow > div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.sumrow > div:first-child { border-left: 0; }
.sumrow span { display: block; font-size: var(--t-caption); color: var(--muted); }
.sumrow b { display: block; font: 500 var(--t-h3)/1.3 var(--num); letter-spacing: var(--ls-snug); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .sumrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sumrow > div:nth-child(3) { border-left: 0; } .sumrow > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.subhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0 12px; }
.subhead b { font-weight: 600; }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hcard { display: block; text-decoration: none; padding: 16px; border-radius: 16px; border: 1px solid var(--accent); background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%), var(--glass); backdrop-filter: blur(20px); box-shadow: var(--lift); transition: transform .15s ease; }
.hcard:hover { transform: translateY(-2px); }
.hcard .nm { font-weight: 600; } .hcard .nm span { color: var(--muted); font-weight: 500; }
.hcard .sub { font-size: var(--t-small); color: var(--muted); }
.hcard .clk { font: 500 var(--t-num-xl)/1 var(--num); letter-spacing: -.05em; margin: 16px 0 12px; }
.toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 28px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); backdrop-filter: blur(20px); box-shadow: var(--hi); position: sticky; top: 70px; z-index: 5; }
.search.inline { width: 260px; max-width: 100%; flex: 1 1 220px; }
.search.inline input { background: var(--sunk); }
.viewtog { display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; border-radius: 10px; background: var(--sunk); }
.viewtog button { width: 32px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.viewtog button svg { width: 15px; height: 15px; }
.viewtog button.on { background: var(--accent); color: var(--onaccent); }
@media (max-width: 900px) { .toolbar { position: static; } }
@media (max-width: 640px) { .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .toolbar .chips::-webkit-scrollbar { display: none; } .viewtog { margin-left: 0; } }

/* grid cards with the climb track */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 16px; }
.ccard { display: block; text-decoration: none; color: var(--ink); padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); box-shadow: var(--hi); transition: transform .15s ease, border-color .15s ease; min-width: 0; }
.ccard:hover { transform: translateY(-2px); border-color: var(--line2); }
.ccard.hold { border-color: var(--accent); background: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 60%), var(--glass); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-top .t { flex: 1; min-width: 0; }
.cc-top .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cc-top .nm span { color: var(--muted); font-weight: 500; }
.cc-top .sub { font-size: var(--t-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-top .mc { text-align: right; flex: none; } .cc-top .mc b { display: block; font: 500 var(--t-lead) var(--num); } .cc-top .mc span { font-size: var(--t-micro); color: var(--faint); }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.cc-foot b { color: var(--ink); font: 500 var(--t-small) var(--num); }
.cc-foot .st { font-size: var(--t-small); font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; } .cc-foot .st.on { color: var(--accent); }
.track { position: relative; height: 36px; margin: 16px 6px 4px; }
.track .rail { position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: var(--sunk); }
.track .fill { position: absolute; left: 0; top: 7px; height: 3px; border-radius: 3px; background: var(--accent); transition: width .6s ease; }
.track .camp { position: absolute; top: 2px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--solid); border: 1.5px solid var(--line2); }
.track .camp.hit { background: var(--ink); border-color: var(--ink); }
.track .camp.next { border-color: var(--accent); }
.track .camp.next.holding { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.4s ease-in-out infinite; }
.track .lbl { position: absolute; top: 20px; font: 500 var(--t-nano) var(--mono); color: var(--faint); transform: translateX(-50%); white-space: nowrap; }
.track .lbl.last { transform: translateX(-100%); }

/* phones: coin page */
@media (max-width: 640px) {
  .coinhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .coinhead h1 { font-size: var(--t-h3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .coinhead .meta { gap: 6px; }
  .coinhead .links { grid-column: 1 / -1; } .coinhead .links .btn { flex: 1; }
  table.t .hide-m { display: none; }
  table.t td { white-space: nowrap; }
  .msr { grid-template-columns: 24px 64px minmax(0, 1fr); row-gap: 4px; }
  .msr .w { grid-column: 2 / -1; text-align: left; }
  .tfs button { padding: 0 6px; }
  .hero h1 { font-size: var(--t-h1); }
  .section-h { margin-top: 52px; }
}

.table.bare { border: 0; background: none; box-shadow: none; backdrop-filter: none; overflow: visible; }
.table.bare .cgrid { margin-top: 0; }
@media (max-width: 900px) { .toolbar .search.inline { order: -1; flex-basis: 100%; margin: 0; } }

/* ================= content pages: docs, FAQ, legal, 404 ================= */
.sidelinks { display: flex; gap: 2px; flex-wrap: wrap; padding: 0 4px 8px; }
.sidelinks a { padding: 6px 8px; border-radius: 8px; font-size: var(--t-small); color: var(--muted); text-decoration: none; }
.sidelinks a:hover, .sidelinks a.on { color: var(--ink); background: var(--sunk); }
.prose h1 + .lede { margin-bottom: 8px; }
.prose ol { margin: 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose p + table, .prose table + p, .prose .callout + p { margin-top: 12px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose .callout { margin: 16px 0 0; }

/* docs: menu + article */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 20px; }
.toc .tg { font: 500 var(--t-micro) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--faint); margin: 18px 10px 6px; }
.toc .tg:first-child { margin-top: 0; }
.toc a { padding: 7px 10px; border-radius: 8px; font-size: var(--t-body); color: var(--muted); text-decoration: none; border-left: 2px solid transparent; transition: color .12s, background .12s; }
.toc a:hover { color: var(--ink); background: var(--sunk); }
.toc a.on { color: var(--ink); background: var(--sunk); border-left-color: var(--accent); border-radius: 0 8px 8px 0; }
.doc { max-width: 760px; min-width: 0; }
.doc h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: var(--ls-tight); }
.doc section { padding-top: 36px; margin-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc section:first-of-type { border-top: 0; margin-top: 18px; padding-top: 0; }
.doc section h2 { margin: 0 0 12px; font-size: var(--t-h3); letter-spacing: var(--ls-snug); }
.doc p, .doc li { font-size: var(--t-body); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.dcard { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--hi); text-decoration: none !important; transition: border-color .12s, transform .15s; }
.dcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.dcard b { color: var(--ink); font-size: var(--t-body); } .dcard b::after { content: " →"; color: var(--muted); }
.dcard span { color: var(--muted); font-size: var(--t-small); line-height: 1.45; }
table.kv { width: 100%; border-collapse: collapse; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass); font-size: var(--t-body); }
table.kv td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.kv tr:first-child td { border-top: 0; }
table.kv td:first-child { color: var(--ink); font-weight: 500; width: 34%; white-space: nowrap; }
table.kv.api td:first-child { width: 42%; font-weight: 400; font-size: var(--t-small); }
table.kv .mono { font-size: var(--t-small); word-break: break-all; }
dl.gl { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 18px; font-size: var(--t-body); }
dl.gl dt { color: var(--ink); font-weight: 500; } dl.gl dd { margin: 0; color: var(--muted); }
.docnext { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); box-shadow: var(--hi); }
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; flex-direction: row; overflow-x: auto; max-height: none; gap: 6px; padding: 0 0 6px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc .tg { display: none; }
  .toc a { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
  .toc a.on { border-radius: 999px; border-color: var(--accent); }
  .cards3 { grid-template-columns: 1fr; }
  table.kv td:first-child { white-space: normal; }
  dl.gl { grid-template-columns: 1fr; gap: 2px; } dl.gl dd { margin-bottom: 10px; }
}

/* FAQ */
.faq { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px); box-shadow: var(--hi); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 500; font-size: var(--t-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--sunk); }
.faq .pm { position: relative; width: 12px; height: 12px; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--muted); transition: transform .2s; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details > div { padding: 0 18px 16px; }
.faq details[open] > div { animation: pagein .25s ease both; }

/* legal */
.legal h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: var(--ls-tight); }
.legal .updated { margin: 8px 0 0; font: 500 var(--t-caption) var(--mono); color: var(--faint); }
.legal .lead { margin-top: 18px; }
.legal .lead p { font-size: var(--t-ui); color: var(--ink); opacity: .85; }
.ltoc { margin: 24px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); box-shadow: var(--hi); }
.ltoc b { font-size: var(--t-small); font-weight: 600; }
.ltoc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: var(--t-body); }
.ltoc li { break-inside: avoid; margin: 0 0 4px; color: var(--faint); }
.ltoc a { color: var(--muted); text-decoration: none; } .ltoc a:hover { color: var(--ink); }
.legal section { scroll-margin-top: 80px; }
.legal h2 { display: flex; gap: 10px; margin: 32px 0 10px !important; font-size: var(--t-lead) !important; letter-spacing: var(--ls-snug); }
.legal h2 .n { font: 500 var(--t-body)/1.6 var(--num); color: var(--faint); min-width: 26px; }
.legal section > :not(h2) { margin-left: 36px; }
.legalfoot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.legalfoot a { color: var(--ink); }
@media (max-width: 640px) { .ltoc ol { columns: 1; } .legal section > :not(h2) { margin-left: 0; } }

/* 404 */
.nf { text-align: center; padding: 70px 0 30px; }
.nf .code { display: block; font: 600 clamp(80px, 16vw, 140px)/1 var(--mono); letter-spacing: -.06em; background: linear-gradient(180deg, var(--ink), transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin-top: 10px; }
.nf .lede { margin: 8px auto 0; }
.tiny a, .hint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ================= chart: TradingView style ================= */
.chartcard { padding: 0; overflow: hidden; }
.ctools { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ctools::-webkit-scrollbar { display: none; }
.ctools .tfs { flex: none; }
.ctools .tfs.right { margin-left: auto; display: inline-flex; align-items: center; }
.ctools .tfs button { display: inline-grid; place-items: center; min-width: 28px; }
.ctools .tfs button svg { width: 15px; height: 15px; }
.ctools .tfs button:hover { color: var(--ink); background: var(--sunk); }
.vsep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }
.chartwrap { position: relative; }
.chartcard .chartbox { height: 400px; margin: 0; }
.legend { position: absolute; left: 12px; top: 10px; z-index: 3; pointer-events: none; font: 400 var(--t-micro)/1.6 var(--num); color: var(--muted); }
.legend .l1 { display: flex; gap: 8px; align-items: baseline; font-family: var(--font); font-size: var(--t-small); }
.legend .l1 b { color: var(--ink); font-weight: 600; }
.legend .l2 { display: flex; gap: 10px; flex-wrap: wrap; }
.legend .l2 b { color: var(--ink); font-weight: 500; }
.legend .up { color: var(--up); } .legend .dn { color: var(--down); }
.chartcard:fullscreen, .chartcard.max { background: var(--bg); border-radius: 0; display: flex; flex-direction: column; }
.chartcard.max { position: fixed; inset: 0; z-index: 80; }
.chartcard:fullscreen .chartwrap, .chartcard.max .chartwrap { flex: 1; }
.chartcard:fullscreen .chartbox, .chartcard.max .chartbox { height: 100%; }
@media (max-width: 640px) { .chartcard .chartbox { height: 320px; } .legend .l2:last-child { display: none; } }

/* ---- right rail: live activity (wide screens) ---- */
#rail { display: none; position: sticky; top: 0; height: 100vh; width: 300px; flex: none; overflow-y: auto; scrollbar-width: none; border-left: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 0 14px 24px; z-index: 30; }
#rail::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { #rail { display: block; } }
#rail .rtop { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; height: 61px; margin: 0 -14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
#rail .rtop { gap: 10px; }
#rail .raillive { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; font-size: var(--t-small); font-weight: 600; line-height: 1.25; }
#rail .raillive > span:first-of-type { display: inline-flex; align-items: center; }
#rail .raillive { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; }
#rail .raillive .pots { grid-column: 1 / -1; font: 500 var(--t-micro) var(--num); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rail .raillive .pots b { color: var(--ink); font-weight: 600; }
#rail .rtop #account { flex: none; }
#rail .rtop .btn { height: 34px; padding: 0 12px; font-size: var(--t-small); }
#rail .rtop .btn:not(.mono) { background: var(--accent); border-color: var(--accent); color: var(--onaccent); font-weight: 600; }
#rail .rsec { padding: 14px 0 6px; }
#rail .rsec + .rsec { border-top: 1px solid var(--line); }
#rail .rh { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
#rail .rh h3 { font-size: var(--t-micro); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
#rail .rh a { font-size: var(--t-caption); color: var(--muted); text-decoration: none; }
#rail .rh a:hover { color: var(--ink); }
#rail .cnt { font: 600 var(--t-nano)/1 var(--num); color: var(--bg); background: var(--ink); border-radius: 999px; padding: 3px 6px; letter-spacing: 0; }
#rail .ritem { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: var(--t-small); }
#rail .ritem:hover, #rail .rhold:hover { background: var(--card); }
#rail .rt { min-width: 0; flex: 1; line-height: 1.3; }
#rail .sub { font-size: var(--t-micro); color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
#rail .rk { font: 600 var(--t-nano)/1 var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 4px; padding: 2px 4px; }
#rail .rv { text-align: right; font-family: var(--num); font-size: var(--t-small); line-height: 1.25; white-space: nowrap; }
#rail .rv span { display: block; font-size: var(--t-nano); color: var(--muted); }
#rail .rv .up { color: var(--up); }
#rail .rhold { display: block; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); color: var(--ink); text-decoration: none; font-size: var(--t-small); }
#rail .rhold .row { display: flex; align-items: center; gap: 10px; }
#rail .rhold .clk { font: 600 var(--t-ui)/1 var(--num); letter-spacing: var(--ls-snug); }
#rail .rhold .bar4 { margin: 10px 0 8px; background: var(--line); }
#rail .rempty { font-size: var(--t-small); color: var(--muted); padding: 12px; border: 1px dashed var(--line2); border-radius: 12px; text-align: center; }

/* ---- the milestone ladder (signature) ---- */
.ladder { --lp: 34px; }
.lad-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lad-k { font: 600 var(--t-micro) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted); }
.lad-t { font-size: var(--t-lead); margin-top: 4px; letter-spacing: var(--ls-snug); }
.lad-t b { font-family: var(--num); font-weight: 600; }
.lad-st { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: var(--t-small); color: var(--muted); }
.lad-st b { color: var(--ink); font-family: var(--num); }
.lad-st.on { border-color: var(--accent); color: var(--ink); font: 600 var(--t-body) var(--num); }
.lad-track { position: relative; height: 92px; margin: 14px var(--lp) 0; }
.lad-track .rail { position: absolute; left: 0; right: 0; top: 30px; height: 4px; border-radius: 4px; background: var(--line); }
.lad-track .rail i { display: block; height: 100%; border-radius: 4px; background: var(--accent); box-shadow: 0 0 14px var(--line2); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.rung { position: absolute; top: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rung .node { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--t-micro) var(--font); background: var(--bg); border: 2px solid var(--line2); color: var(--muted); }
.rung.start .node { width: 12px; height: 12px; margin: 6px 0; background: var(--accent); border: 0; }
.rung.hit .node { background: var(--accent); border-color: var(--accent); color: var(--onaccent); }
.rung.cur .node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.rung.cur.hold .node { background: var(--accent); color: var(--onaccent); animation: pulse 1.4s ease-in-out infinite; }
.rung .rv { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.rung .rv b { font: 600 var(--t-small) var(--num); }
.rung .rv small { font-size: var(--t-micro); color: var(--muted); }
.rung.cur .rv small { color: var(--ink); }
.rung:not(.hit):not(.cur):not(.start) .rv b { color: var(--muted); }
.lad-track .here { position: absolute; top: 0; transform: translateX(-50%); pointer-events: none; }
.lad-track .here span { display: block; font: 600 var(--t-micro) var(--num); color: var(--onaccent); background: var(--accent); padding: 2px 6px; border-radius: 5px; white-space: nowrap; position: relative; }
.lad-track .here span::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-bottom: 0; border-top-color: var(--accent); }
.lad-note { margin: 4px 0 0; font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.lad-note a { color: var(--ink); }
#ladder:not(:empty) { padding: 16px 18px 14px; border-top: 1px solid var(--line); }
/* compact, inside the home featured strip */
.ladder.compact { --lp: 22px; margin-top: 4px; }
.ladder.compact .lad-track { height: 50px; margin-top: 6px; }
.ladder.compact .lad-track .rail { top: 24px; height: 3px; }
.ladder.compact .rung { top: 16px; gap: 3px; }
.ladder.compact .rung .node { width: 18px; height: 18px; font-size: var(--t-nano); }
.ladder.compact .rung.start .node { width: 9px; height: 9px; margin: 4.5px 0; }
.ladder.compact .rung .rv b { font-size: var(--t-nano); }
.ladder.compact .lad-track .here { top: -2px; }
.ladder.compact .lad-track .here span { font-size: var(--t-nano); padding: 1px 4px; }
.mschip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--accent); color: var(--onaccent); font: 600 var(--t-micro) var(--font); flex: none; }
.featured { align-items: flex-start; }
.featured .big { align-self: center; }
@media (max-width: 640px) { .featured .ladder.compact { display: none; } }
/* home: the signature section */
.sig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin: 56px 0 8px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.sig h2 { font-size: var(--t-h2); letter-spacing: var(--ls-tight); line-height: 1.15; margin: 8px 0 12px; }
.sig p { color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.sig p b { color: var(--ink); font-weight: 600; }
.sig ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-body); color: var(--muted); }
.sig li { padding-left: 18px; position: relative; }
.sig li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sig li b { color: var(--ink); font-weight: 600; }
.sig-demo { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--sunk); }
.sig-coin { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ink); text-decoration: none; font-size: var(--t-body); }
@media (max-width: 1000px) { .sig { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 560px) { .lad-h { flex-direction: column; align-items: flex-start; } .rung .rv small { display: none; } }

/* direction colour on the trade button */
.btn.primary.go-buy { background: var(--up); border-color: var(--up); color: #fff; }
.btn.primary.go-sell { background: var(--down); border-color: var(--down); color: #fff; }
.plist .amt, #rail .rv .up { color: var(--up); }

/* segmented milestone bar (lists) */
.msbar { display: flex; gap: 3px; margin-top: 7px; }
.msbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--sunk); overflow: hidden; }
.msbar b { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.msbar.hold i.cur b { animation: pulse 1.4s ease-in-out infinite; }
.pg .msn { font: 600 var(--t-nano) var(--mono); color: var(--onaccent); background: var(--accent); border-radius: 4px; padding: 1px 4px; margin-right: 6px; letter-spacing: 0; }
/* launch: ladder preview */
.lprev:not(:empty) { margin-top: 16px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.lprev-h { font: 500 var(--t-micro) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted); }
.lprev .ladder.compact .here { display: none; }

/* ---- hero explainer: how a milestone works, animated ---- */
.explain { position: relative; margin-top: 52px; border-radius: 24px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); text-align: left; overflow: hidden; animation: rise .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.ex-top { display: flex; gap: 8px; padding: 16px 18px 0; flex-wrap: wrap; }
.ex-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--solid); font-size: var(--t-caption); color: var(--muted); }
.ex-chip b { color: var(--ink); font: 600 var(--t-body) var(--num); min-width: 54px; }
.ex-chip.pot b { min-width: 62px; }
.ex-potbar { width: 70px; height: 4px; border-radius: 3px; background: var(--sunk); overflow: hidden; display: block; }
.ex-potbar i { display: block; height: 100%; background: var(--up); border-radius: 3px; }
.ex-coin { margin-left: auto; border-style: dashed; }
.ex-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ex-chart { position: relative; height: 300px; margin: 10px 0 0; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50px; }
.ex-chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex-ml { stroke: var(--line2); stroke-width: 1; stroke-dasharray: 4 6; transition: stroke .3s; }
.ex-ml.next { stroke: var(--muted); }
.ex-ml.hold { stroke: var(--accent); stroke-dasharray: none; stroke-width: 1.5; }
.ex-ml.paid { stroke: var(--up); stroke-dasharray: none; opacity: .6; }
.ex-mlab { position: absolute; right: 14px; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--solid); font: 500 var(--t-caption) var(--num); color: var(--muted); transition: all .3s; }
.ex-mlab b { font: 600 var(--t-nano) var(--mono); padding: 1px 4px; border-radius: 4px; background: var(--sunk); color: var(--muted); }
.ex-mlab span:empty { display: none; }
.ex-mlab span { font-size: var(--t-micro); }
.ex-mlab.next { color: var(--ink); border-color: var(--line2); }
.ex-mlab.hold { color: var(--onaccent); background: var(--accent); border-color: var(--accent); }
.ex-mlab.hold b { background: var(--onaccent); color: var(--accent); }
.ex-mlab.paid { color: var(--up); border-color: var(--up); }
.ex-mlab.paid b { background: var(--up); color: #fff; }
.ex-head { position: absolute; width: 0; height: 0; }
.ex-head i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px var(--line2); }
.ex-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ex-step { position: relative; display: flex; gap: 10px; padding: 16px 18px 18px; transition: background .3s; }
.ex-step + .ex-step { border-left: 1px solid var(--line); }
.ex-step .n { font: 500 var(--t-micro) var(--mono); color: var(--faint); padding-top: 2px; }
.ex-step b { display: block; font-size: var(--t-small); font-weight: 600; color: var(--muted); transition: color .3s; }
.ex-step p { margin: 3px 0 0; font-size: var(--t-caption); color: var(--faint); line-height: 1.45; transition: color .3s; }
.ex-step .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.ex-step .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.ex-step.on { background: var(--card); }
.ex-step.on b { color: var(--ink); } .ex-step.on p { color: var(--muted); } .ex-step.on .n { color: var(--ink); }
.ex-step.on .bar i { width: 100%; }
@media (max-width: 900px) { .ex-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-step:nth-child(3) { border-left: 0; } .ex-step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .explain { margin-top: 32px; } .ex-top { flex-wrap: nowrap; padding: 12px 12px 0; } .ex-chip { padding: 0 9px; gap: 6px; } .ex-chip b { min-width: 0; } .ex-chart { height: 240px; } .ex-coin, .ex-potbar { display: none; } .ex-step p { display: none; } .ex-step { padding: 12px 14px; } .ex-mlab { right: 8px; } }

.paying { color: var(--up); }
.paying::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--up); vertical-align: middle; animation: pulse 1s ease-in-out infinite; }

/* explainer callouts: glass pills with an icon, one visual language for holding, reset and payout */
.ex-clock { position: absolute; transform: translate(-50%, calc(-100% - 14px)); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 5px; border-radius: 999px; background: var(--solid); border: 1px solid var(--line2); color: var(--muted); font-size: var(--t-caption); font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .3s, border-color .3s, color .3s; pointer-events: none; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); backdrop-filter: blur(12px); }
.ex-clock.on { opacity: 1; }
.ex-clock .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--onaccent); }
.ex-clock .ic .dot { background: var(--onaccent); }
.ex-clock .ic svg { width: 13px; height: 13px; }
.ex-clock b { font: 600 var(--t-small) var(--num); color: var(--ink); background: var(--sunk); border-radius: 999px; padding: 4px 9px; }
.ex-clock.reset { color: var(--ink); }
.ex-clock.reset .ic { background: var(--down-soft); color: var(--down); animation: exspin .9s cubic-bezier(.3,.7,.2,1); }
.ex-clock.reset b { color: var(--muted); }
@keyframes exspin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.ex-note { position: absolute; transform: translate(-50%, calc(-100% + 6px)) scale(.96); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line2); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1.2); pointer-events: none; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); }
.ex-note.on { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) scale(1); }
.ex-note .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--up); color: #fff; flex: none; box-shadow: 0 0 0 5px var(--up-soft); }
.ex-note .ic svg { width: 15px; height: 15px; }
.ex-note b { display: block; font: 600 var(--t-lead) var(--num); color: var(--up); line-height: 1.1; }
.ex-note small { display: block; font-size: var(--t-micro); color: var(--muted); margin-top: 2px; }
.ex-note.pay { border-color: color-mix(in srgb, var(--up) 45%, transparent); }
/* effects */
.ex-ring { position: absolute; width: 0; height: 0; pointer-events: none; }
.ex-ring::before, .ex-ring::after { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); animation: exring 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.ex-ring::after { animation-delay: .18s; }
.ex-ring.pay::before, .ex-ring.pay::after { border-color: var(--up); }
@keyframes exring { from { transform: scale(1); opacity: .9; } to { transform: scale(5.5); opacity: 0; } }
.ex-spark { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); pointer-events: none; animation: exspark 1.2s cubic-bezier(.15,.7,.3,1) forwards; }
.ex-spark:nth-child(3n) { width: 4px; height: 4px; background: var(--ink); box-shadow: none; }
@keyframes exspark { 0% { transform: translate(0,0) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 30px)) scale(.4); opacity: 0; } }

/* one continuous header line across sidebar, centre and rail; no vertical lines crossing it */
#side { border-right: 0; }
#side::after { content: ""; position: absolute; right: 0; top: 61px; bottom: 0; width: 1px; background: var(--line); }
#side .brand { height: 61px; margin: -16px -14px 22px; padding: 0 22px; border-bottom: 1px solid var(--line); font-size: 0; gap: 0; }
#side .brand svg { width: 30px; height: 27px; }
#rail { border-left: 0; padding-bottom: 0; }
#railbody { margin: 0 -14px; padding: 0 14px 24px; border-left: 1px solid var(--line); min-height: calc(100vh - 61px); }
#rail .rtop { margin: 0 -14px; }
@media (max-width: 900px) { #side::after { top: 0; } }
.ex-clock { transition: opacity .15s, border-color .3s, color .3s; z-index: 2; }
.ex-note { z-index: 3; }
.ex-note.on { transition-delay: .18s, .18s; }

/* launch: a hold time per milestone */
.holdsel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.holdsel select { appearance: none; -webkit-appearance: none; height: 30px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: var(--ink); font: 500 var(--t-small) var(--num); cursor: pointer; }
.holdsel select:focus { outline: none; border-color: var(--ink); }
.targets .n { font: 600 var(--t-nano) var(--mono); color: var(--muted); }
#lmode { flex-wrap: wrap; }

/* sidebar: the next payout, live */
.side-live { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.side-live:empty { display: none; }
.sl-card { display: block; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.sl-card:hover { border-color: var(--line2); }
.sl-card.hold { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sl-k { display: flex; align-items: center; gap: 7px; font: 500 var(--t-nano) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted); }
.sl-coin { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: var(--t-small); min-width: 0; }
.sl-big { margin-top: 12px; font: 600 var(--t-h2)/1 var(--num); letter-spacing: var(--ls-tight); }
.sl-big small { display: block; margin-top: 6px; font: 400 var(--t-micro)/1.35 var(--font); letter-spacing: 0; color: var(--muted); }
.sl-card .bar4 { margin-top: 10px; background: var(--line); }
.sl-pot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--t-caption); color: var(--muted); }
.sl-pot b { color: var(--ink); font: 600 var(--t-small) var(--num); }
.sl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sl-stats > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.sl-stats b { display: block; font: 600 var(--t-lead)/1.1 var(--num); }
.sl-stats span { display: block; margin-top: 3px; font-size: var(--t-nano); color: var(--muted); line-height: 1.3; }
@media (max-height: 760px) { .sl-stats { display: none; } }
@media (max-height: 640px) { .side-live { display: none; } }
/* rail: when a pot pays */
.paysin { color: var(--ink); } .paysin b { font: 600 var(--t-caption) var(--num); color: var(--up); }

/* left menu, a size down: calmer next to the content */
#side { width: 232px; }
#nav { gap: 2px; }
#nav a { height: 38px; padding: 0 10px; gap: 10px; font-size: var(--t-body); border-radius: 9px; }
#nav a.on::before { top: 10px; bottom: 10px; }
#nav a svg { width: 17px; height: 17px; }
#side .brand { margin-bottom: 16px; }
#side .brand svg { width: 26px; height: 23px; }
.side-cta { margin-top: 16px; height: 38px; font-size: var(--t-small); border-radius: 9px; }
.side-cta svg { width: 14px; height: 14px; }
.side-live { margin-top: 16px; gap: 8px; }
.sl-card { padding: 12px; border-radius: 12px; }
.sl-big { font-size: var(--t-h3); }
.sl-stats b { font-size: var(--t-body); }
.sidelinks a { font-size: var(--t-caption); }
.themes button { height: 30px; font-size: var(--t-caption); }
.ex-illu { position: absolute; left: 14px; bottom: 10px; font: 500 var(--t-nano) var(--mono); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--faint); pointer-events: none; }
