/* The launchpad pages. Shares tokens, type and controls with style.css. */
body:not([data-page="home"]) { overflow-x: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu a { position: relative; padding: 4px 0; text-decoration: none; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; }
.menu-sheet { position: fixed; inset: 0; z-index: 19; background: #000; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--pad); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.menu-sheet.open { opacity: 1; visibility: visible; }
.menu-sheet a { font-family: var(--serif); font-size: clamp(44px, 12vw, 84px); line-height: 1.05; letter-spacing: -.02em; text-decoration: none; }
.menu-sheet a:nth-child(odd) { font-style: italic; }
@media (max-width: 820px) {
  .menu a, .menu #sound { display: none; }
  .menu-btn { display: inline-block; }
  body.menu-open .menu #sound { display: inline-block; }
}

/* once a page scrolls, the header gets a solid ground so it never sits on top of text */
body:not([data-page="home"]) .top { transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; background-origin: border-box; }
body.scrolled:not([data-page="home"]) .top { background: rgba(0, 0, 0, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--faint); padding-bottom: 22px; }

/* The stage: a full-screen 3D view with copy over its bottom-left corner */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.chipgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 75% at 0% 100%, rgba(0,0,0,.85), rgba(0,0,0,.5) 45%, rgba(0,0,0,0) 72%), radial-gradient(ellipse 34% 40% at 100% 100%, rgba(0,0,0,.85), rgba(0,0,0,0) 80%), linear-gradient(to top, #000 0%, rgba(0,0,0,0) 22%); }
.stage-copy { position: absolute; left: var(--pad); bottom: clamp(36px, 9vh, 96px); z-index: 2; width: min(600px, calc(100vw - var(--pad) * 2)); }
.stage-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.4vw, 148px); line-height: .9; padding-bottom: .16em; letter-spacing: -.03em; font-optical-sizing: auto; }
.stage-copy h1.display { font-style: italic; letter-spacing: -.04em; }
.stage-copy p { color: rgba(246, 243, 236, .72); max-width: 32em; margin-top: 20px; }
.stage-copy .k { color: var(--ink); font-size: 13px; margin: 0 0 14px; }
.stage-copy .tick { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); color: var(--ink); margin-top: 8px; }
.stage-stats { position: absolute; right: var(--pad); bottom: clamp(36px, 9vh, 96px); z-index: 2; display: grid; min-width: 240px; font-size: 13px; }
.stage-stats div { display: flex; justify-content: space-between; gap: 32px; padding: 8px 0; border-top: 1px solid var(--faint); }
.stage-stats dt { color: var(--dim); }
.stage-stats dd { font-variant-numeric: tabular-nums; }

/* Ranked lists */
.list { padding: clamp(64px, 12vh, 140px) var(--pad) 120px; }
.list-head { display: flex; align-items: baseline; gap: 36px; flex-wrap: wrap; margin-bottom: 28px; }
.list-head h2, .block h2, .token-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.tabs { display: flex; gap: 24px; font-size: 14px; }
.tabs button { color: var(--dim); padding: 4px 0; border-bottom: 1px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.search { margin-left: auto; }
.search input { background: transparent; border: 0; border-bottom: 1px solid var(--faint); color: var(--ink); font: inherit; font-size: 15px; padding: 6px 0; width: 220px; outline: none; }
.search input:focus { border-bottom-color: var(--ink); }
.rank { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank th { font-weight: 500; font-size: 12px; color: var(--dim); text-align: left; padding: 0 16px 10px 0; border-bottom: 1px solid rgba(246, 243, 236, .3); }
.rank td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--faint); vertical-align: middle; font-variant-numeric: tabular-nums; }
.rank th:last-child, .rank td:last-child { padding-right: 0; }
.rank th.num, .rank td.num { text-align: right; }
.rank .n { width: 44px; color: var(--dim); }
.rank tbody tr[data-href] { cursor: pointer; transition: background .2s; }
.rank tbody tr[data-href]:hover { background: rgba(246, 243, 236, .04); }
.rank tbody tr[data-href]:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.coinc { display: flex; align-items: center; gap: 14px; }
.mono { width: 36px; height: 36px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; border: 1px solid var(--faint); }
.nm { font-family: var(--serif); font-size: 20px; line-height: 1.1; display: block; }
.coinc small { color: var(--dim); font-size: 12px; }
.spk { width: 120px; height: 30px; display: block; }
.mini { display: grid; grid-template-columns: repeat(16, 3px); gap: 1px; align-items: end; height: 22px; }
.mini i { background: rgba(246, 243, 236, .32); }
.mini i.peak { background: var(--ink); }
.tr-s { color: var(--dim); font-size: 13px; margin-left: 6px; }
.empty { color: var(--dim); padding: 40px 0; }
.empty a { color: var(--ink); }
.job { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* Coin page */
.coin-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 96px); padding: clamp(56px, 10vh, 120px) var(--pad) 120px; }
.block { padding: 40px 0 48px; border-top: 1px solid rgba(246, 243, 236, .3); min-width: 0; }
.block.span2 { grid-column: 1 / -1; }
.block h2 { font-size: clamp(30px, 3vw, 46px); margin-bottom: 22px; }
.block h3 { font-size: 12px; font-weight: 500; color: var(--dim); margin: 28px 0 10px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.block-head p { color: var(--dim); font-size: 14px; }
.eqchart { width: 100%; height: clamp(200px, 30vw, 360px); display: block; overflow: visible; }
.eqaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 10px; font-variant-numeric: tabular-nums; }
.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
.rows th { font-weight: 500; font-size: 12px; color: var(--dim); text-align: left; padding: 0 12px 8px 0; border-bottom: 1px solid var(--faint); }
.rows td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--faint); font-variant-numeric: tabular-nums; }
.rows th:last-child, .rows td:last-child { padding-right: 0; }
.rows .num { text-align: right; }
.dialbars { display: grid; gap: 14px; margin-bottom: 18px; }
.dialbar { display: grid; grid-template-columns: 70px 1fr 110px; align-items: center; gap: 16px; font-size: 14px; }
.dialbar .track { height: 1px; background: var(--faint); position: relative; }
.dialbar .track i { position: absolute; top: -5px; width: 11px; height: 11px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.dialbar span:last-child { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.facts { display: grid; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--faint); }
.facts dt { color: var(--dim); }
.facts dd { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts a { color: var(--ink); }

/* Launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 560px); min-height: 100vh; }
.launch-chip { position: sticky; top: 0; height: 100vh; order: 1; }
.launch-chip .chipgl { position: absolute; inset: 0; }
.launch-chip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 18%), linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 25%); }
.seat-tag { position: absolute; left: var(--pad); bottom: 40px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: 26px; }
.launch-form { order: 2; padding: 120px var(--pad) 120px clamp(24px, 3vw, 48px); border-left: 1px solid var(--faint); }
.launch-form h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5vw, 80px); line-height: .95; letter-spacing: -.025em; }
.lede-s { color: var(--dim); margin: 18px 0 8px; max-width: 30em; }
.launch fieldset { border: 0; padding: 40px 0 8px; margin: 0; display: grid; gap: 20px; border-bottom: 1px solid var(--faint); }
.launch legend { font-family: var(--serif); font-size: 30px; line-height: 1; padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.launch legend + * { clear: both; }
.hint-s { color: var(--dim); font-size: 14px; }
.seats { display: flex; flex-wrap: wrap; gap: 8px; }
.seats button { font-size: 13px; padding: 8px 12px; border: 1px solid var(--faint); color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.seats button:hover { color: var(--ink); border-color: rgba(246, 243, 236, .5); }
.seats button[aria-checked="true"] { color: #000; background: var(--ink); border-color: var(--ink); }
.launch .circuit { margin-top: 4px; }
.launch .verdict { font-size: 22px; }
.error { color: var(--down); font-size: 14px; }
.launch .solid { margin-top: 8px; }

/* Rounds */
.rounds-hero { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); align-items: end; min-height: 100vh; padding: 120px var(--pad) 64px; }
.rh-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 7vw, 120px); line-height: .92; letter-spacing: -.03em; }
.rh-copy p { color: var(--dim); margin-top: 20px; max-width: 30em; }
.rh-copy .k { color: var(--ink); font-size: 13px; margin: 0 0 14px; }
.rh-copy .next { color: var(--ink); font-size: 18px; }
.rh-copy .next strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.qmap svg { width: 100%; height: auto; display: block; }
.qmap figcaption { color: var(--dim); font-size: 13px; margin-top: 14px; max-width: 46em; }
.qmap .edge { stroke: rgba(246, 243, 236, .16); stroke-width: 1; }
.qmap .seat { fill: transparent; stroke: rgba(246, 243, 236, .0); stroke-width: 1; cursor: pointer; transition: stroke .2s; }
.qmap .seat.owned { stroke: rgba(246, 243, 236, .35); }
.qmap .seat:hover { stroke: var(--ink); }
.qmap .lab { fill: var(--dim); font: 10px var(--sans); pointer-events: none; }

/* $QUANT */
.token-body { padding: clamp(56px, 10vh, 120px) var(--pad) 120px; display: grid; gap: 96px; }
.token-body h2 { margin-bottom: 24px; }
.fee p { color: var(--dim); max-width: 40em; margin-bottom: 26px; }
.feebar { display: flex; height: 120px; border-top: 1px solid rgba(246, 243, 236, .3); }
.feebar div { position: relative; padding: 22px 16px 0 0; border-right: 1px solid var(--faint); }
.feebar div::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px; background: rgba(246, 243, 236, .35); }
.feebar div:last-child::before { background: var(--ink); }
.feebar div:last-child { border-right: 0; }
.feebar b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 64px); line-height: 1; letter-spacing: -.02em; }
.feebar span { color: var(--dim); font-size: 13px; }
.token-body .faq details { border-bottom: 1px solid var(--faint); max-width: 860px; }
.token-body .faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); display: flex; justify-content: space-between; gap: 20px; }
.token-body .faq summary::-webkit-details-marker { display: none; }
.token-body .faq summary::after { content: "+"; font-family: var(--sans); color: var(--dim); }
.token-body .faq details[open] summary::after { content: "\2212"; }
.token-body .faq details p { color: var(--dim); padding: 0 0 24px; max-width: 44em; }

/* Footer */
.foot { display: grid; grid-template-columns: auto 1fr; gap: 18px 48px; align-items: baseline; padding: 48px var(--pad) 56px; border-top: 1px solid var(--faint); color: var(--dim); font-size: 13px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot p { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .launch { grid-template-columns: 1fr; }
  .launch-chip { position: relative; height: 62vh; order: 0; }
  .launch-form { border-left: 0; padding-top: 40px; }
  .rounds-hero { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 820px) {
  .stage-stats { display: none; }
  .coin-body { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .feebar { height: auto; flex-direction: column; }
  .feebar div { border-right: 0; border-bottom: 1px solid var(--faint); padding: 14px 0; width: 100% !important; }
}
@media (max-width: 560px) {
  .hide-s { display: none; }
  .nm { font-size: 17px; }
  .rank td { padding: 14px 10px 14px 0; }
  .dialbar { grid-template-columns: 56px 1fr 92px; gap: 10px; }
}

/* Launch, launchpad parts */
.pin { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; align-items: flex-end; gap: 0; opacity: 0; transition: opacity .4s; will-change: transform; }
.pin.on { opacity: 1; }
.pin i { width: 1px; height: 64px; background: linear-gradient(var(--ink), rgba(246, 243, 236, 0)); transform-origin: bottom; order: 0; }
.pin span { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; padding: 0 0 52px 10px; text-shadow: 0 2px 18px #000; white-space: nowrap; }
.stepper { list-style: none; display: flex; gap: 0; margin: 34px 0 0; border-top: 1px solid rgba(246, 243, 236, .3); position: sticky; top: 74px; z-index: 5; background: #000; counter-reset: st; }
.stepper li { flex: 1; counter-increment: st; }
.stepper a { display: block; padding: 12px 10px 12px 0; font-size: 13px; color: var(--dim); text-decoration: none; border-top: 2px solid transparent; margin-top: -1px; transition: color .2s, border-color .2s; }
.stepper a::before { content: counter(st); font-family: var(--serif); font-style: italic; font-size: 18px; margin-right: 8px; }
.stepper a.done { color: var(--ink); }
.stepper a.done::after { content: " \2713"; color: var(--up); }
.stepper a.here { color: var(--ink); border-top-color: var(--ink); }
.preview { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 22px; margin: 30px 0 6px; padding: 22px; border: 1px solid var(--faint); background: radial-gradient(ellipse at 0% 0%, rgba(246, 243, 236, .06), rgba(0, 0, 0, 0) 60%); }
.preview figcaption { position: absolute; top: -9px; left: 16px; background: #000; padding: 0 8px; font-size: 11px; color: var(--dim); }
.pv-img { width: 112px; height: 112px; border: 1px solid var(--faint); display: grid; place-items: center; overflow: hidden; background: #0b0b0b; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-img span { font-family: var(--serif); font-style: italic; font-size: 52px; color: var(--dim); }
.pv-k { font-size: 12px; color: var(--dim); }
.pv-name { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin-top: 4px; overflow-wrap: anywhere; }
.pv-tick { font-family: var(--serif); font-style: italic; font-size: 20px; margin-top: 2px; }
.pv-line { color: var(--dim); font-size: 14px; margin-top: 8px; }
.pv-plan { font-size: 13px; margin-top: 10px; }
.pv-plan em { font-style: normal; color: var(--ink); }
.drop { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px dashed rgba(246, 243, 236, .28); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--ink); background: rgba(246, 243, 236, .03); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 1px solid var(--ink); outline-offset: 3px; }
.drop-img { width: 88px; height: 88px; border: 1px solid var(--faint); background: #0b0b0b center / cover no-repeat; }
.drop-txt b { display: block; font-weight: 600; }
.drop-txt small { color: var(--dim); font-size: 13px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field.small input { font-family: var(--sans); font-size: 15px; padding: 8px 0 8px; }
.tick-field { position: relative; }
.tick-field .dollar { position: absolute; left: 0; bottom: 10px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--dim); }
.tick-field input { padding-left: 18px; }
.link-quiet.inline { margin-left: 8px; font-size: 14px; }
.buy { display: grid; gap: 14px; }
.buy-l { font-size: 12px; color: var(--dim); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { font-size: 14px; padding: 10px 14px; border: 1px solid var(--faint); color: var(--dim); transition: color .2s, border-color .2s, background .2s; font-variant-numeric: tabular-nums; }
.presets button:hover { color: var(--ink); border-color: rgba(246, 243, 236, .5); }
.presets button[aria-checked="true"] { color: #000; background: var(--ink); border-color: var(--ink); }
.est { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.est small { display: block; font-family: var(--sans); font-size: 12px; color: var(--dim); margin-top: 4px; }
.solid.big { height: 64px; font-size: 16px; }
.recent { margin-top: 80px; }
.recent h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin-bottom: 18px; }
@media (max-width: 1100px) { .stepper { top: 70px; } }
@media (max-width: 560px) {
  .preview { grid-template-columns: 76px 1fr; padding: 16px; gap: 14px; }
  .pv-img { width: 76px; height: 76px; }
  .pv-name { font-size: 26px; }
  .two, .three { grid-template-columns: 1fr; }
}

/* nothing on these pages may push the page sideways */
html:has(body:not([data-page="home"])), body:not([data-page="home"]) { overflow-x: clip; }
.launch > * { min-width: 0; }
.launch-form { min-width: 0; }
.field input { width: 100%; min-width: 0; }
.two > *, .three > *, .drop > * { min-width: 0; }

.mono img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* buy and sell, on the coin page */
.trade { margin-top: 26px; width: min(420px, 100%); }
.trade-side { display: flex; align-items: baseline; gap: 22px; margin-bottom: 6px; }
.trade-side button { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--dim); padding: 0 0 3px; border-bottom: 1px solid transparent; }
.trade-side button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.trade-have { margin-left: auto; font-size: 12px; color: var(--dim); }
.trade-row { display: flex; align-items: flex-end; gap: 14px; }
.trade-amt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--faint); }
.trade-amt:focus-within { border-bottom-color: var(--ink); }
.trade-amt input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: none; color: var(--ink); font-family: var(--serif); font-size: 30px; padding: 4px 0 6px; }
.trade-amt span { font-size: 13px; color: var(--dim); }
.trade-row .solid { width: auto; min-width: 128px; height: 50px; padding: 0 22px; }
.trade-row .solid:disabled { opacity: .55; cursor: progress; }
.trade-quick { display: flex; gap: 16px; margin-top: 10px; }
.trade-quick button { font-size: 13px; color: var(--dim); padding: 0 0 2px; border-bottom: 1px solid var(--faint); }
.trade-quick button:hover { color: var(--ink); border-color: var(--ink); }
.trade-msg { margin-top: 10px; font-size: 13px; color: var(--dim); }
.trade-msg a { color: var(--ink); }
.trade-msg.bad { color: var(--down); }

/* a 3D scene loading: it cools down, then fades away (pages.js cooling) */
.gl-cool { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; pointer-events: none; transition: opacity .8s ease; }
.gl-cool.done { opacity: 0; }
.gl-cool-k { font-size: 12px; letter-spacing: .02em; color: var(--dim); font-variant-numeric: tabular-nums; }
.gl-cool-c { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(48px, 7vw, 112px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 14px 0 16px; font-optical-sizing: auto; }
.gl-cool-note { font-size: 13px; color: var(--dim); }
