/* Aperion. Old master paintings behind; a quiet, dark, modern interface in front. */
:root{
  color-scheme: dark;
  --panel: rgba(15, 16, 20, .9);
  --panel-2: rgba(22, 23, 28, .94);
  --raise: rgba(255, 255, 255, .045);
  --raise-2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #f3f1ec;
  --text-2: #c6c2b9;
  --muted: #8f8a81;
  --ink: #111318;
  --ink-2: #2b2e36;
  --gold: #dcbc78;
  --long: #5fd394;
  --short: #f07167;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --r: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .65);
  --gutter: clamp(16px, 3.4vw, 40px);
}

*{ box-sizing: border-box; }
html{ background: #0f1014; scroll-behavior: smooth; }
body{
  margin: 0;
  min-height: 100vh;
  background: #0f1014;
  color: var(--text);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; }
a{ color: inherit; }
button{ font: inherit; color: inherit; }
[hidden]{ display: none !important; }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 2px; }
.num{ font-variant-numeric: tabular-nums; }
.up{ color: var(--long); }
.down{ color: var(--short); }
.flat{ color: var(--muted); }

/* The heavens */
.heavens{ position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #c3cbd3; --p: 0; }
.heavens > div{ position: absolute; inset: 0; }
.heavens .olympus{
  bottom: auto;
  height: max(100vh, 143.85vw);
  background: url(../assets/olympus.jpg) center top / cover no-repeat;
  transform: translate3d(0, calc(-.62 * min(var(--p) * 1.7, 1) * (max(100vh, 143.85vw) - 100vh)), 0);
  will-change: transform;
}
.heavens .gild{
  background: radial-gradient(130% 95% at 50% 0%, #ffe3a6 0%, #e9ad62 48%, #9b5a2a 100%);
  mix-blend-mode: soft-light;
  opacity: clamp(0, (var(--p) - .16) * 2.4, .95);
}
.heavens .glow{
  background: radial-gradient(70% 60% at 50% 8%, rgba(255, 236, 190, .85), rgba(255, 214, 150, 0) 70%);
  mix-blend-mode: screen;
  opacity: clamp(0, (var(--p) - .3) * 2, .7);
}

.top, main, .foot, #toast{ position: relative; z-index: 1; }

/* Header */
.top{
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px var(--gutter);
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
body:not([data-route="home"]) .top,
.top.solid{
  background: rgba(13, 14, 18, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 400 27px/1 var(--display);
  letter-spacing: -.01em;
}
.wordmark svg{ flex: none; }
.nav{ display: flex; gap: 6px; }
.nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover{ background: rgba(127, 127, 127, .14); }
.nav a[aria-current="page"]{ background: rgba(127, 127, 127, .2); }
.top .spacer{ flex: 1; }
.walletwrap{ position: relative; }
.walletmenu{
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 230px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  color: var(--text);
}
.walletmenu button{
  display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; text-align: left; font-weight: 500;
}
.walletmenu button:hover{ background: var(--raise-2); }
.walletmenu img{ border-radius: 6px; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn[disabled]{ opacity: .45; cursor: not-allowed; }
.btn.white{ background: #fff; color: #0d0e11; }
.btn.white:hover{ background: #e9e7e2; }
.btn.dark{ background: var(--ink); color: #fff; }
.btn.dark:hover{ background: var(--ink-2); }
.btn.line{ background: transparent; border-color: currentColor; }
.top .btn.line{ border-color: rgba(127, 127, 127, .45); }
.btn.big{ min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn .pumpmark{ border-radius: 5px; }

/* Shared */
.wrap{ width: 100%; max-width: 1220px; margin: 0 auto; padding-inline: var(--gutter); }
.panel{
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 40px);
}
h1, h2, h3{ margin: 0; text-wrap: balance; }
h1, h2{ font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h2{ font-size: clamp(34px, 3.4vw, 46px); line-height: 1; }
h3{ font: 600 17px/1.3 var(--sans); }
.label{ font-size: 13px; font-weight: 500; color: var(--muted); }
.amt{ display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sol{ flex: none; }
.mk{ border-radius: 50%; flex: none; object-fit: cover; background: #fff; }
.mk.mono{
  width: var(--mk); height: var(--mk);
  display: inline-grid; place-items: center;
  background: #2a2c33; color: var(--text);
  font: 600 calc(var(--mk) * .3)/1 var(--sans);
}
.side{ font: 700 12px/1 var(--sans); letter-spacing: .08em; }
.side.long{ color: var(--long); }
.side.short{ color: var(--short); }
.trade{ display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.trade .tk{ font-weight: 600; }
.coinimg{ border-radius: 50%; object-fit: cover; flex: none; background: var(--raise-2); }
.ext{ display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; color: var(--text-2); }
.ext:hover{ color: var(--text); }
.ext svg{ opacity: .7; }

/* Hero */
.hero{
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: 64px 96px;
  color: var(--ink);
}
.hero .say{ position: relative; width:100%; max-width:960px; margin-inline:auto; text-align:center; }
.hero .say::before{
  content: '';
  position: absolute;
  inset: -60px -80px;
  background: radial-gradient(closest-side, rgba(244, 240, 232, .72), rgba(244, 240, 232, .4) 55%, rgba(244, 240, 232, 0));
  z-index: -1;
  pointer-events: none;
}
.hero h1{ font-size:clamp(48px,6.4vw,88px); line-height:1.02; letter-spacing:-.025em; }
.hero h1 em{ font-style: italic; }
.hero .ctas{ display: flex; justify-content:center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero .btn.line{ color: var(--ink); border-color: rgba(17, 19, 24, .35); background: rgba(255, 255, 255, .35); }
.hero .btn.line:hover{ background: rgba(255, 255, 255, .6); }
.featured-coin{ min-width:0; padding-left:clamp(28px,4vw,52px); border-left:1px solid var(--line); }
.featured-header{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; }
.featured-actions{ display:flex; align-items:center; gap:16px; }
.featured-identity{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.featured-identity > span{ min-width:0; }
.featured-identity b{ display:block; font:400 28px/1.1 var(--display); overflow-wrap:anywhere; }
.featured-identity small{ display:block; margin-top:4px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.featured-body{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:24px; margin-top:26px; }
.featured-body > div{ min-width:0; }
.featured-funding,.featured-result{ display:flex; flex-direction:column; align-items:flex-start; }
.featured-funding{ padding-right:24px; }
.featured-position{ grid-column:1 / -1; padding-bottom:18px; border-bottom:1px solid var(--line); }
.featured-trade{ display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:14px; }
.featured-leverage{ margin-left:auto; padding:3px 8px; border:1px solid var(--line-2); border-radius:6px; font-size:12px; }
.featured-chart{ margin-top:16px; }
.featured-chart-heading{ display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; }
.featured-chart svg{ display:block; width:100%; height:auto; margin-top:8px; overflow:visible; }
.featured-chart svg text{ fill:var(--muted); font:10px var(--sans); }
.featured-chart-line{ fill:none; stroke:var(--gold); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.featured-chart-dot{ fill:var(--gold); stroke:#17181c; stroke-width:1.5; }
.featured-chart-entry{ stroke:var(--line-2); stroke-width:1; stroke-dasharray:3 4; }
.featured-chart-grid{ stroke:var(--line); stroke-width:1; }
.featured-chart-empty{ display:grid; place-items:center; min-height:150px; color:var(--muted); font-size:12px; }
.featured-result{ padding-left:24px; border-left:1px solid var(--line); }
.featured-body .label{ font-size:12px; }
.featured-total{ margin-top:8px; max-width:100%; font:400 clamp(34px,3.3vw,46px)/1.15 var(--display); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.featured-total .amt{ max-width:100%; flex-wrap:wrap; white-space:normal; overflow-wrap:anywhere; }
.featured-total .sol{ width:22px; height:22px; }
.featured-burn{ margin-top:8px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.featured-link{ display:flex; align-items:center; justify-content:flex-end; gap:12px; min-height:44px; width:max-content; margin:12px 0 0 auto; color:var(--text-2); font-size:13px; font-weight:500; text-decoration:none; }
.featured-link:hover,.featured-identity:hover b{ text-decoration:underline; text-underline-offset:4px; }
.platform-token-head{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.platform-token-head .meta{ display:flex; gap:12px; align-items:center; margin-top:16px; color:var(--muted); }
.platform-summary{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; }
.platform-summary p{ margin:16px 0 0; color:var(--text-2); line-height:1.7; }
.platform-policy{ margin-top:24px; }
.platform-activity{ margin-top:24px; }
.platform-activity .activity-more{ margin-top:20px; }

/* Home sections */
.section{ padding-bottom: clamp(48px, 7vw, 96px); }
.panel > header{ display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.flow{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.flow li{ background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.flow .icon{ width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raise-2); margin-bottom: 18px; }
.flow h3{ margin-bottom: 6px; }
.flow p{ margin: 0; color: var(--text-2); font-size: 15px; }
.split{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split p{ margin: 18px 0 0; color: var(--text-2); font-size: 16.5px; max-width: 52ch; }
.facts{ margin: 0; }
.facts > div{ display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.facts > div:last-child{ border-bottom: 1px solid var(--line); }
.facts dt{ color: var(--muted); font-size: 14.5px; }
.facts dd{ margin: 0; font-weight: 500; }

/* Label and value rows */
.rows{ display: grid; margin: 0; align-content: start; }
.rows > div{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows dt{ color: var(--muted); font-size: 14.5px; }
.rows dd{ margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* Tables */
.tablebox{ overflow-x: auto; margin-inline: -10px; scrollbar-width: none; }
.tablebox::-webkit-scrollbar{ display: none; }
table.coins{ width: 100%; border-collapse: collapse; min-width: 780px; font-variant-numeric: tabular-nums; }
.coins th{ text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 10px 12px; white-space: nowrap; }
.coins td{ padding: 12px 10px; border-top: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.coins tbody tr{ cursor: pointer; }
.coins tbody tr:hover td{ background: var(--raise); }
.coins tbody tr:hover td:first-child{ border-radius: 12px 0 0 12px; }
.coins tbody tr:hover td:last-child{ border-radius: 0 12px 12px 0; }
.coins .num{ text-align: right; }
.coins .coin{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.coins .coin b{ font-weight: 600; }
.coins .coin small{ display: block; font-size: 12.5px; color: var(--muted); }
.empty{ padding: 28px 0 6px; color: var(--muted); }

/* Pills */
.seg{ display: inline-flex; gap: 4px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button{ border: 0; background: transparent; cursor: pointer; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.seg button[aria-pressed="true"]{ background: #fff; color: #0d0e11; }
.filters{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.foot{ padding-block: 8px 40px; }
.footbar{
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 18px clamp(20px, 3vw, 30px);
}
.footbar .links{ display: flex; gap: 20px; }
.footbar a{ text-decoration: none; color: var(--text-2); }
.footbar a:hover{ color: var(--text); }
.footbar .wordmark{ color: var(--text); font-size: 22px; }
.footbar .ca{ margin-left: auto; font-size: 14px; }

/* Pages */
.page{ padding-top: clamp(22px, 3vw, 36px); padding-bottom: 80px; }
.page h1{ font-size: clamp(40px, 4.4vw, 56px); line-height: 1; }

/* Launch: form on the left, the coin as it will look on the right */
.launchbox{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.launchbox form{ padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; align-content: start; }
.launchbox .side-preview{ background: rgba(255, 255, 255, .03); border-left: 1px solid var(--line); border-radius: 0 26px 26px 0; padding: clamp(24px, 3vw, 40px); }
.launchbox h1{ font-size: clamp(36px, 3.4vw, 46px); }
.group{ display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.group > .gh h3{ font-size: 15px; }
.two{ display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.three{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field{ display: grid; gap: 7px; min-width: 0; }
.field > span{ font-size: 13.5px; font-weight: 600; color: var(--text); }
.input{
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04); color: var(--text);
  font: 400 15.5px/1.3 var(--sans);
}
textarea.input{ min-height: 86px; resize: vertical; }
.input::placeholder{ color: #6f6b64; }
.input:focus{ outline: none; border-color: rgba(220, 188, 120, .7); box-shadow: 0 0 0 3px rgba(220, 188, 120, .18); }
.input.upper{ text-transform: uppercase; }
.suffix{ position: relative; }
.suffix .input{ padding-right: 46px; font-variant-numeric: tabular-nums; }
.suffix > .sol{ position: absolute; right: 15px; top: 50%; translate: 0 -50%; }
.filepick{
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .02); cursor: pointer; position: relative;
}
.filepick.over{ border-color: var(--gold); background: rgba(220, 188, 120, .06); }
.filepick .thumb{ width: 46px; height: 46px; border-radius: 10px; background: var(--raise-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.filepick .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.filepick b{ font-weight: 600; font-size: 15px; }
.filepick input{ position: absolute; inset: 0; opacity: 0; cursor: pointer; }
details.more summary{ cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
details.more summary::-webkit-details-marker{ display: none; }
details.more summary::after{ content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -2px; }
details.more[open] summary::after{ rotate: 225deg; translate: 0 2px; }
details.more .three{ margin-top: 12px; }
.pickhead{ display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pickt{ font-size: 13.5px; font-weight: 600; }
.pickhead .input{ flex: 1 1 200px; min-height: 42px; border-radius: 999px; }
.markets{ display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.mkt{
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; text-align: left;
  padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise); cursor: pointer;
}
.mkt .mk{ grid-row: span 2; }
.mkt b{ font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.mkt small{ font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mkt:hover{ border-color: var(--line-2); }
.mkt[aria-pressed="true"]{ border-color: #fff; box-shadow: inset 0 0 0 1px #fff; background: var(--raise-2); }
.mk.drawn{ background: none; }
.siderow{ display: flex; align-items: center; gap: 14px; }
.siderow > span{ font-size: 13.5px; font-weight: 600; }
.sides{ display: inline-flex; gap: 4px; background: var(--raise); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sidebtn{
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.sidebtn svg{ opacity: .8; }
.sidebtn.long[aria-pressed="true"]{ background: rgba(95, 211, 148, .16); color: var(--long); }
.sidebtn.short[aria-pressed="true"]{ background: rgba(240, 113, 103, .16); color: var(--short); }
.sidebtn[data-lev][aria-pressed="true"]{ background: #fff; color: #0d0e11; }
.siderow > span{ min-width: 64px; }
.submit{ display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.submit .btn{ width: 100%; }
.status{ font-size: 14.5px; min-height: 20px; margin: 0; color: var(--text-2); }
.status.err{ color: var(--short); }
.status.ok{ color: var(--long); }

/* Composites */
.seg.tabs{ justify-self: start; }
.group > .seg.tabs{ width: fit-content; }
.legs{ display: grid; gap: 8px; }
.leg{
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--raise);
}
.leg .lt b{ display: block; font-size: 14.5px; }
.sides.mini .sidebtn{ padding: 5px 10px; font-size: 13px; }
.wtin{ display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.wtin .input{ width: 58px; min-height: 34px; padding: 6px 8px; text-align: right; border-radius: 10px; font-variant-numeric: tabular-nums; }
.leg .x{ border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.leg .x:hover{ color: var(--text); background: var(--raise-2); }
.legfoot{ display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 0; font-size: 13.5px; }
.legfoot .ok{ color: var(--muted); }
.legfoot .off{ color: var(--short); font-weight: 600; }
.linkbtn{ border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; font-weight: 600; font-size: 13.5px; }
.linkbtn:hover{ color: var(--text); }
.stack{ display: inline-flex; align-items: center; }
.stack > * + *{ margin-left: -8px; }
.stack > *{ box-shadow: 0 0 0 2px rgba(20, 21, 26, 1); }
.side.comp{ color: var(--gold); padding: 7px 12px; border-radius: 999px; background: var(--raise-2); font-size: 13px; }
table.coins.legtable{ min-width: 0; margin: 4px 0 18px; }
.legtable td, .legtable th{ padding-left: 6px; padding-right: 6px; }
.legtable tbody tr{ cursor: default; }
.legtable tbody tr:hover td{ background: none; }
.pv .lines{ display: grid; gap: 8px; }
.pv .tradeline .wt{ margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.pv .tradeline .wt + .side{ margin-left: 8px; }
.pv .id .kind{ font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }

/* The live preview */
.pv{ position: sticky; top: 92px; display: grid; gap: 16px; }
.pv .art{
  aspect-ratio: 1; width: 100%; border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); font-size: 22px;
}
.pv .art img{ width: 100%; height: 100%; object-fit: cover; }
.pv .id{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pv .id b{ font: 400 34px/1 var(--display); overflow-wrap: anywhere; }
.pv .id span{ font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.pv .desc{ margin: -6px 0 0; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.pv .tradeline{ display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.pv .tradeline .tk{ font-weight: 600; font-size: 17px; }
.pv .tradeline .side{ margin-left: auto; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--raise-2); }

/* Coin page */
.coinhead{ display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.coinhead .title{ display: grid; gap: 8px; min-width: 0; }
.coinhead h1{ font-size: clamp(38px, 4vw, 54px); line-height: 1; }
.coinhead .meta{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.coinhead .meta .sym{ font-weight: 600; color: var(--text-2); }
.coinhead .right{ margin-left: auto; display: flex; gap: 32px; }
.kv{ display: grid; gap: 4px; }
.kv b{ font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.copy{ border: 1px solid var(--line); background: var(--raise); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.copy:hover{ background: var(--raise-2); }
.coingrid{ display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.bigtrade{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bigtrade .side{ font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--raise-2); }
.bigtrade .tk{ font-size: 26px; font-weight: 600; }
.bigtrade .nm{ color: var(--muted); font-size: 16px; }
.bigpnl{ display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; flex-wrap: wrap; }
.bigpnl b{ font-size: clamp(48px, 5vw, 66px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bigpnl span{ font-size: 18px; font-weight: 500; }
.cols2{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.proofs{ display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; font-size: 15px; }
.proofs .none{ color: var(--muted); }
.activity{ list-style: none; margin: 0; padding: 0; }
.activity li{ display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.activity li:first-child{ border-top: 0; }
.activity .ic{ width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--raise-2); }
.activity .ic.buyback{ color: #f0a35e; }
.activity .ic.fees{ color: #9db8ff; }
.activity .ic.order{ color: var(--text-2); }
.activity .what{ font-size: 15px; }
.activity .what small{ display: block; color: var(--muted); font-size: 13px; }
.activity .amt{ font-size: 14.5px; font-variant-numeric: tabular-nums; }
.activity a{ text-decoration: none; color: var(--text-2); }
.loading{ color: var(--text); font-size: 17px; padding: 40px 0; }
.err-panel{ max-width: 560px; }

/* Share sheet */
.sheet{ position: fixed; inset: 0; z-index: 9; background: rgba(6, 7, 10, .62); display: grid; place-items: center; padding: 20px; }
.sheetbox{ width: min(100%, 760px); background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
.sheethead{ display: flex; align-items: center; justify-content: space-between; }
.sheethead .x{ border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sheethead .x:hover{ color: var(--text); background: var(--raise-2); }
.sheetacts{ display: flex; gap: 10px; flex-wrap: wrap; }
.cardwrap{ position: relative; aspect-ratio: 1200 / 630; border-radius: 12px; overflow: hidden; background: #0b0c0f; max-width: 100%; }
.cardwrap .card{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cardwrap .loading{ position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0; color: var(--muted); }
.coinhead .meta .btn{ min-height: 34px; padding: 7px 14px; font-size: 14px; }

#toast{
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 10;
  background: #fff; color: #0d0e11; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow);
}

@media (max-width: 980px){
  .flow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .coingrid, .launchbox{ grid-template-columns: minmax(0, 1fr); }
  .launchbox .side-preview{ border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 26px 26px; }
  .pv{ position: static; }
  .coinhead .right{ margin-left: 0; }
}
@media (max-width: 620px){
  .top{ gap: 12px; flex-wrap: wrap; }
  .hero .say::before{ inset: -50px -30px; }
  .flow{ grid-template-columns: minmax(0, 1fr); }
  .two, .three, .cols2{ grid-template-columns: minmax(0, 1fr); }
  .facts > div{ grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footbar .ca{ margin-left: 0; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn, .top{ transition: none; }
}

/* Discovery, public proof and responsive controls */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link{ position:fixed; left:16px; top:-80px; z-index:20; padding:12px 20px; background:#fff; color:var(--ink); border-radius:12px; }
.skip-link:focus{ top:12px; }
h1[tabindex="-1"]:focus{ outline:none; }
.header-actions{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.live-status{ display:inline-flex; gap:7px; align-items:center; font-size:12px; color:var(--muted); white-space:nowrap; }
.live-status::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--muted); flex:none; }
.live-status[data-state="live"]::before{ background:var(--long); box-shadow:0 0 0 4px rgba(95,211,148,.09); }
.live-status[data-state="reconnecting"],.live-status[data-state="delayed"]{ color:var(--gold); }
.live-status[data-state="preview"]::before{ background:var(--gold); }
.hero-description{ max-width:54ch; margin:26px auto 0; color:var(--ink-2); font-size:18px; line-height:1.65; }
.elysium-credit{ display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 12px; margin-top:24px; padding:8px 0; color:var(--ink-2); font-size:14px; line-height:1.5; text-decoration:none; }
.elysium-credit strong{ color:var(--ink); font-weight:600; }
.elysium-credit:hover strong{ text-decoration:underline; text-underline-offset:4px; }
.how-it-works > header{ padding-bottom:28px; border-bottom:1px solid var(--line); margin-bottom:0; }
.how-layout{ padding-top:32px; }
.how-layout.has-example{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr); gap:clamp(28px,4vw,48px); }
.cycle{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; margin:0; }
.cycle li{ padding:32px 28px 4px; }
.cycle li:first-child{ padding-left:0; }
.cycle li:last-child{ padding-right:0; }
.cycle li + li{ border-left:1px solid var(--line); }
.cycle-number{ display:block; color:var(--gold); font:400 26px/1 var(--display); margin-bottom:20px; }
.cycle h3{ font:400 clamp(26px,2.5vw,32px)/1.15 var(--display); }
.cycle p{ margin:16px 0 0; color:var(--text-2); font-size:15px; line-height:1.75; max-width:34ch; }
.has-example .cycle{ grid-template-columns:minmax(0,1fr); align-content:start; }
.has-example .cycle li{ display:grid; grid-template-columns:28px minmax(0,1fr); column-gap:16px; row-gap:10px; padding:24px 0; }
.has-example .cycle li:first-child{ padding-top:0; }
.has-example .cycle li:last-child{ padding-bottom:0; }
.has-example .cycle li + li{ border-left:0; border-top:1px solid var(--line); }
.has-example .cycle-number{ grid-column:1; grid-row:1 / 3; padding-top:5px; margin:0; font-size:20px; }
.has-example .cycle h3{ grid-column:2; font-size:27px; }
.has-example .cycle p{ grid-column:2; margin:0; max-width:34ch; }
.creator-filter{ display:inline-flex; gap:8px; align-items:center; margin-top:12px; color:var(--muted); font-size:14px; }
.tablebox{ scrollbar-width:thin; scrollbar-color:var(--line-2) transparent; }
.tablebox::-webkit-scrollbar{ display:block; height:6px; }
.tablebox::-webkit-scrollbar-thumb{ background:var(--line-2); border-radius:4px; }
.coins .coin b{ display:block; max-width:230px; overflow:hidden; text-overflow:ellipsis; }
.trade-leverage{ display:inline-block; margin-left:8px; color:var(--muted); font-size:12px; }
.coin-cards{ display:none; }
.coin-card{ display:block; padding:20px; border:1px solid var(--line); background:var(--raise); border-radius:16px; text-decoration:none; min-width:0; }
.coin-card:hover{ background:var(--raise-2); }
.card-identity{ display:flex; align-items:center; gap:12px; min-width:0; }
.card-identity > span:not(.card-age){ min-width:0; }
.card-identity b{ display:block; overflow-wrap:anywhere; line-height:1.25; }
.card-identity small{ color:var(--muted); font-size:12px; }
.card-age{ margin-left:auto; font-size:11px; color:var(--muted); white-space:nowrap; }
.card-trade{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-block:16px; font-size:14px; }
.card-trade > span:last-child{ margin-left:auto; color:var(--text-2); font-variant-numeric:tabular-nums; }
.card-metrics{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin:0; }
.card-metrics dt{ color:var(--muted); font-size:12px; margin-bottom:3px; }
.card-metrics dd{ margin:0; font-size:16px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.browse-filters{ display:grid; grid-template-columns:1.7fr 1fr 1.3fr .8fr 1fr; gap:12px; }
.filter-field{ display:grid; gap:7px; min-width:0; }
.filter-field > span{ font-size:12px; color:var(--muted); }
select.input{ padding-right:22px; cursor:pointer; }
select.input option{ background:#17181d; color:var(--text); }
.list-summary{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:24px 0; font-size:13px; color:var(--muted); }
.list-summary > span{ margin-right:auto; }
.list-summary .linkbtn{ min-height:36px; }
.load-more{ display:flex; justify-content:center; margin-top:24px; }
.load-more:has(button[hidden]){ display:none; }
.empty-state{ text-align:center; padding:40px 16px; }
.empty-state > .btn,.err-panel > .header-actions{ margin-top:24px; }
#load-error,#coin-refresh-error{ color:var(--gold); font-size:14px; }
[aria-busy="true"] .discovery-table,[aria-busy="true"] .coin-cards{ opacity:.65; }
.walletmenu a,.walletmenu button{ display:flex; align-items:center; width:100%; min-height:44px; padding:10px 12px; text-decoration:none; font-size:14px; border-radius:8px; }
.walletmenu a:hover{ background:var(--raise-2); }
.wallet-info{ display:grid; gap:4px; padding:12px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.wallet-info span{ color:var(--muted); font-size:12px; }
.wallet-dialog{ max-width:420px; }
.wallet-options{ display:grid; gap:8px; }
.wallet-option{ display:flex; gap:12px; align-items:center; border:1px solid var(--line); background:var(--raise); border-radius:12px; padding:14px; cursor:pointer; text-align:left; }
.wallet-option:hover{ background:var(--raise-2); }
.wallet-option:disabled{ opacity:.5; cursor:wait; }
.wallet-option img{ border-radius:8px; }
.wallet-options p{ color:var(--text-2); }
.dialog-open{ overflow:hidden; }
.sheet{ overflow-y:auto; padding:max(20px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom)); }
.sheetbox{ max-height:calc(100dvh - 40px); overflow-y:auto; }
.filepick:focus-within{ outline:2px solid var(--gold); outline-offset:3px; }
.sides,.seg{ flex-wrap:wrap; max-width:100%; }
.siderow .sides{ min-width:0; border-radius:18px; }
.trade-notice:empty{ display:none; }
.trade-notice{ color:var(--gold); }
.back-link{ display:inline-block; margin-bottom:20px; text-decoration:none; color:var(--text-2); font-size:14px; }
.coinhead .title{ flex:1; }
.coinhead h1{ overflow-wrap:anywhere; }
.coin-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.return-strip{ display:grid; grid-template-columns:1.3fr 1fr 1fr; margin-top:20px; border:1px solid rgba(220,188,120,.3); border-radius:var(--r); background:rgba(21,22,26,.95); overflow:hidden; }
.return-strip > div{ padding:24px 28px; display:grid; gap:9px; border-left:1px solid var(--line); }
.return-strip > div:first-child{ border-left:0; background:rgba(220,188,120,.06); }
.return-strip > div > span{ color:var(--text-2); font-size:13px; }
.return-strip b{ font-size:clamp(24px,2.8vw,36px); font-variant-numeric:tabular-nums; font-weight:500; overflow-wrap:anywhere; }
.return-strip > div:first-child b{ color:var(--gold); }
.return-strip .sol{ width:22px; height:22px; }
#buyback-shortcut{ font-size:12px; color:var(--text-2); }
#buyback-shortcut a{ text-decoration:none; }
#buyback-shortcut a:hover{ color:var(--gold); }
.position-breakdown{ margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.position-breakdown summary{ cursor:pointer; color:var(--text-2); font-size:13px; padding:4px 0; }
.coin-layout{ display:grid; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); gap:20px; margin-top:20px; align-items:start; }
.coin-main,.coin-aside{ display:grid; gap:20px; min-width:0; }
.coin-layout .panel{ padding:clamp(20px,2.4vw,30px); }
.trade-heading{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.leverage-label{ font-size:14px; color:var(--text-2); border:1px solid var(--line); border-radius:8px; padding:4px 8px; }
.coin-page .bigpnl{ margin-top:20px; }
.coin-page .bigpnl b{ font-size:clamp(36px,4vw,56px); overflow-wrap:anywhere; }
.performance-panel{ margin-top:28px; }
.performance-top{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-items:start; }
.performance-top > div{ display:grid; gap:8px; min-width:0; }
.performance-top strong{ font-size:clamp(30px,3.8vw,48px); line-height:1.15; font-weight:500; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.performance-top .label{ font-size:12px; color:var(--text-2); }
.performance-gain strong{ font-size:clamp(28px,3vw,38px); }
.performance-gain > span:last-child{ font-size:13px; }
.performance-note{ color:var(--muted); font-size:12px; line-height:1.6; margin:0; }
.execution-panel{ padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.execution-heading{ display:flex; align-items:center; gap:10px; font-size:15px; }
.execution-heading strong{ font-weight:500; }
.status-dot{ height:7px; width:7px; flex-shrink:0; border-radius:50%; background:var(--gold); }
.execution-panel[data-state="waiting"] .status-dot,.execution-panel[data-state="paused"] .status-dot{ background:var(--muted); }
.funding-progress{ margin-top:18px; }
.funding-progress > div{ display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--text-2); }
.funding-progress b{ font-weight:500; font-variant-numeric:tabular-nums; white-space:nowrap; }
.funding-progress progress{ appearance:none; border:0; display:block; width:100%; height:5px; margin:10px 0; border-radius:4px; overflow:hidden; background:var(--raise-2); }
.funding-progress progress::-webkit-progress-bar{ background:var(--raise-2); }
.funding-progress progress::-webkit-progress-value{ background:var(--gold); }
.funding-progress progress::-moz-progress-bar{ background:var(--gold); }
.funding-progress small{ font-size:12px; color:var(--muted); line-height:1.6; }
.coin-money-panel .account-row:first-child .account-link{ color:var(--gold); }
.account-row{ display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); }
.account-row .account-link{ flex:1; min-width:0; border:0; flex-wrap:wrap; gap:6px 12px; }
.account-row .copy{ flex-shrink:0; min-width:36px; min-height:40px; }
@media(max-width:560px){
  .performance-top{ grid-template-columns:minmax(0,1fr); gap:22px; }
  .performance-top strong{ font-size:40px; }
  .performance-gain strong{ font-size:30px; }
}
.chart-tools{ display:flex; justify-content:space-between; align-items:end; gap:16px; flex-wrap:wrap; margin:28px 0 10px; }
.chart-tools > label{ display:grid; gap:6px; font-size:12px; color:var(--muted); }
.chart-market-name{ display:grid; gap:6px; font-size:12px; color:var(--muted); }
.chart-market-name strong{ font-size:15px; font-weight:500; color:var(--text); }
.chart-tools .input{ min-height:38px; padding:7px 12px; }
.chart-tools .seg button{ font-size:12px; padding:7px 12px; }
.price-chart{ min-width:0; }
.price-chart svg{ display:block; width:100%; height:auto; overflow:visible; }
.price-chart svg text{ fill:var(--muted); font:12px var(--sans); }
.chart-grid{ stroke:rgba(255,255,255,.08); }
.chart-line{ fill:none; stroke:var(--gold); stroke-width:2.3; stroke-linejoin:round; }
.chart-area{ fill:rgba(220,188,120,.07); }
.chart-cursor{ stroke:rgba(220,188,120,.4); stroke-dasharray:4 4; }
.chart-dot{ fill:var(--gold); }
.chart-caption{ min-height:22px; color:var(--text); font-size:13px; font-variant-numeric:tabular-nums; }
.chart-empty{ min-height:180px; display:grid; place-items:center; border:1px dashed var(--line); border-radius:12px; padding:24px; text-align:center; color:var(--muted); font-size:14px; }
.position-details{ margin-top:26px; gap:0 24px; }
.position-details .rows dt{ font-size:13px; }
.position-details .rows dd{ font-size:14px; }
.leg-details{ display:grid; gap:10px; margin-top:24px; }
.leg-summary{ padding:14px; border:1px solid var(--line); border-radius:12px; }
.leg-summary .card-trade{ padding:0 0 12px; }
.coin-description{ white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-2); font-size:15px; }
.social-links{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.social-links .btn{ min-height:38px; font-size:13px; padding:8px 12px; }
.coin-aside .ext{ margin-top:12px; font-size:13px; }
.account-link{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 0; border-bottom:1px solid var(--line); text-decoration:none; font-size:14px; }
.account-link:hover{ color:var(--gold); }
.account-address{ display:flex; align-items:center; gap:10px; min-width:0; overflow-wrap:anywhere; color:var(--muted); font-size:13px; }
.bigpnl > div{ display:grid; gap:8px; }
.bigpnl > div > .label{ font-size:12px; color:var(--muted); }
.bigpnl{ align-items:end; gap:28px; margin-bottom:28px; }
.token-meta{ margin-top:20px; }
.token-meta dd{ font-size:14px; }
.token-meta a{ text-decoration:none; }
.token-meta a:hover{ color:var(--gold); }
.state-badge{ display:inline-block; border:1px solid var(--line); border-radius:6px; padding:5px 8px; font-size:12px; color:var(--muted); }
.wallet-state{ display:flex; align-items:center; gap:12px; }
.status:empty{ display:none; }
.shared-wallet{ margin-top:24px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--raise); min-width:0; }
.shared-wallet .address{ display:block; margin:12px 0 18px; font:13px/1.7 Consolas,monospace; }
.shared-wallet .header-actions{ flex-wrap:wrap; }
.shared-wallet .btn{ font-size:13px; min-height:44px; white-space:normal; text-align:center; }
.footbar .links{ flex-wrap:wrap; }
.address{ overflow-wrap:anywhere; }
.activity-filter .input{ min-height:40px; padding:8px 12px; font-size:13px; }
.recent-activity > header{ margin-bottom:8px; gap:12px; align-items:center; }
.recent-activity > header h3{ font-size:16px; }
.recent-activity #activity-toggle{ font-size:12px; min-height:40px; }
.recent-activity .activity-filter{ display:flex; justify-content:flex-end; margin:8px 0; }
.recent-activity .activity li{ grid-template-columns:26px minmax(0,1fr) auto; gap:10px; padding:12px 0; }
.recent-activity .activity .ic{ width:26px; height:26px; border-radius:8px; }
.recent-activity .activity .what{ font-size:14px; }
.recent-activity .activity .amt{ font-size:13px; }
.activity-more{ margin-top:20px; }
.activity .what{ overflow-wrap:anywhere; }
.activity .amt{ min-height:40px; }
#toast{ max-width:calc(100vw - 32px); width:max-content; border-radius:16px; text-align:center; }

@media (max-width:1100px){
  .browse-filters{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .search-field{ grid-column:1 / -1; }
  .coin-layout{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .position-details{ grid-template-columns:1fr; }
}
@media (max-width:980px){
  .how-layout.has-example{ grid-template-columns:minmax(0,1fr); gap:32px; }
  .featured-coin{ padding:32px 0 0; border-left:0; border-top:1px solid var(--line); }
  .featured-chart{ max-width:540px; margin-inline:auto; }
  .hero{ padding-block:64px 80px; }
  .coin-layout{ grid-template-columns:minmax(0,1fr); }
  .coin-aside{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .position-details{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
  .featured-total{ font-size:clamp(30px,7vw,42px); }
  .platform-summary{ grid-template-columns:minmax(0,1fr); }
  .cycle{ grid-template-columns:minmax(0,1fr); }
  .cycle li,.cycle li:first-child,.cycle li:last-child{ padding:24px 0; }
  .cycle li:last-child{ padding-bottom:0; }
  .cycle li + li{ border-left:0; border-top:1px solid var(--line); }
  .cycle-number{ margin-bottom:12px; }
  .cycle p{ max-width:none; }
  .discovery-table{ display:none; }
  .coin-cards{ display:grid; gap:12px; }
  .browse-filters{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .coin-aside{ grid-template-columns:minmax(0,1fr); }
  .return-strip{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .return-strip > div:first-child{ grid-column:1 / -1; border-bottom:1px solid var(--line); }
  .return-strip > div:nth-child(2){ border-left:0; }
  .return-strip > div{ padding:20px; }
  .coinhead .title{ flex-basis:calc(100% - 90px); }
  .coin-actions{ width:100%; }
  .coin-actions .btn:first-child{ flex:1; }
}
@media (max-width:620px){
  .featured-header{ gap:12px; }
  .featured-identity b{ font-size:25px; }
  .featured-coin .live-status{ font-size:11px; }
  .featured-funding{ padding-right:16px; }
  .featured-result{ padding-left:16px; }
  .featured-body .label{ font-size:11px; }
  .has-example .cycle h3{ font-size:25px; }
  .top{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding-block:10px; }
  .top > .wordmark{ grid-area:1 / 1; }
  .top > .walletwrap{ grid-area:1 / 2; }
  .top > .nav{ grid-area:2 / 1 / 3 / 3; flex-wrap:wrap; }
  .top > .spacer{ display:none; }
  .nav a{ padding:10px 14px; min-height:44px; }
  .top .btn{ min-height:44px; padding-inline:16px; }
  .hero{ min-height:calc(100svh - 132px); padding-block:48px 64px; }
  .hero h1{ font-size:clamp(44px,11vw,64px); }
  .hero .ctas .btn{ flex:1; }
  .panel{ padding:22px 18px; }
  .launchbox form,.launchbox .side-preview{ padding:24px 18px; }
  .seg,.sides{ border-radius:18px; }
  .seg button,.sidebtn,.sides.mini .sidebtn{ min-height:44px; }
  .siderow{ align-items:flex-start; }
  .siderow > span{ padding-top:12px; min-width:58px; }
  .leg{ grid-template-columns:28px minmax(0,1fr) auto; gap:8px; }
  .leg > .sides{ grid-row:2; grid-column:1 / 3; justify-self:start; }
  .leg > .wtin{ grid-row:2; grid-column:3; }
  .leg > .x{ grid-row:1; grid-column:3; justify-self:end; min-width:40px; min-height:40px; }
  .wtin .input{ min-height:44px; width:54px; }
  .position-details{ grid-template-columns:minmax(0,1fr); }
  .sheet{ padding:12px; }
  .sheetbox{ max-height:calc(100dvh - 24px); padding:16px; }
  .sheethead .x{ min-width:44px; min-height:44px; }
  .sheetacts .btn{ flex:1; min-height:44px; }
  .coinhead{ gap:14px; }
  .coinhead h1{ font-size:36px; }
  .coinhead .meta{ gap:10px; }
  .chart-tools .seg{ width:100%; }
  .chart-tools .seg button{ flex:1; padding-inline:8px; }
  .coin-page .bigpnl{ gap:10px; }
  .card-metrics dd{ font-size:15px; }
}

/* Documentation and externally launched coins */
.docs-intro{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; margin:20px 0 32px; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:clamp(24px,3vw,40px); }
.docs-intro h1{ font-size:clamp(40px,5vw,64px); }
.docs-layout{ display:grid; grid-template-columns:210px minmax(0,1fr); gap:24px; align-items:start; }
.docs-nav{ position:sticky; top:92px; display:grid; gap:4px; border-radius:16px; padding:12px; background:var(--panel); border:1px solid var(--line); }
.docs-nav a{ padding:10px 12px; color:var(--text-2); text-decoration:none; font-size:14px; border-radius:10px; }
.docs-nav a:hover,.docs-nav a:focus-visible{ color:var(--text); background:var(--raise-2); }
.docs-body{ display:grid; gap:24px; min-width:0; }
.docs-body section{ scroll-margin-top:100px; min-width:0; }
.docs-body h2{ font-size:36px; line-height:1.1; }
.docs-body h2[tabindex]:focus{ outline:none; }
.docs-body p,.doc-steps{ color:var(--text-2); font-size:15px; line-height:1.75; }
.docs-body p a{ color:var(--gold); text-underline-offset:3px; }
.doc-steps{ padding-left:22px; }
.doc-steps li{ padding:7px 0 7px 6px; }
.doc-steps b{ color:var(--text); }
.docs-body code{ font-family:Consolas,monospace; font-size:12.5px; overflow-wrap:anywhere; }
.docs-body p code,.doc-steps code{ padding:2px 5px; border:1px solid var(--line); border-radius:5px; background:var(--raise); color:var(--text); }
.doc-callout{ border-left:2px solid var(--gold); padding:16px 20px; background:rgba(220,188,120,.06); border-radius:0 12px 12px 0; margin-block:24px; }
.doc-callout p{ margin:8px 0 0; }
.doc-code{ margin-block:24px; border:1px solid var(--line); border-radius:12px; overflow:hidden; min-width:0; }
.doc-code > div{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; background:var(--raise); font-size:12px; color:var(--muted); }
.doc-code button{ min-height:32px; }
.doc-code pre{ margin:0; padding:20px; overflow-x:auto; background:rgba(0,0,0,.25); font-size:12.5px; line-height:1.8; scrollbar-width:thin; tab-size:2; }
.api-endpoints{ margin-top:28px; }
.api-endpoints dt{ font:600 13px Consolas,monospace; color:var(--gold); overflow-wrap:anywhere; margin-top:24px; }
.api-endpoints dd{ margin:10px 0 0; font-size:15px; color:var(--text-2); line-height:1.7; }
.register-layout{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:24px; align-items:start; }
#register-form{ display:grid; gap:16px; margin-top:28px; }
#register-form > button{ justify-self:start; }
#register-strategy{ display:grid; gap:18px; padding:24px 0 0; margin:0; border:0; border-top:1px solid var(--line); min-width:0; }
#register-strategy legend{ padding:0 0 16px; font-weight:600; }
.registration-terms{ font-size:14px; color:var(--text-2); background:var(--raise); border-radius:12px; padding:16px; margin:0; }
.registration-token{ border:1px solid var(--line); border-radius:12px; padding:18px; background:var(--raise); font-size:14px; }
.registration-token b{ font-size:18px; }
.registration-token b span,.registration-token p{ color:var(--text-2); }
.registration-token .address{ display:block; margin-top:8px; }
.registration-token .rows{ margin-top:16px; }
.registration-token .rows > div{ align-items:start; flex-wrap:wrap; }
.registration-token .rows .address{ margin:0; font-size:13px; }
.register-facts{ margin:24px 0; }
.register-facts dd{ font-size:14px; }
.register-layout aside .btn{ white-space:normal; text-align:center; }
@media(max-width:980px){
  .docs-layout{ grid-template-columns:minmax(0,1fr); }
  .docs-nav{ position:static; display:flex; flex-wrap:wrap; }
  .register-layout{ grid-template-columns:minmax(0,1fr); }
}
@media(max-width:620px){
  .docs-intro{ margin-bottom:24px; }
  .docs-body section{ scroll-margin-top:160px; }
  .docs-body h2{ font-size:30px; }
  .doc-code pre{ padding:14px; }
  .docs-nav a{ min-height:44px; }
  .footbar .links{ flex-wrap:wrap; gap:14px; }
}
