@font-face { font-family: "Shoulders"; src: url("/fonts/shoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("/fonts/instrument-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --ink: #eef6f8;
  --dim: rgba(214, 233, 240, 0.66);
  --faint: rgba(214, 233, 240, 0.28);
  --ember: #ffb45e;
  --abyss: #01060c;
  --gutter: clamp(16px, 3.2vw, 44px);
  /* Two typefaces. The serif speaks, the sans does everything else. */
  --serif: "Instrument", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: var(--sans);
  --shoulders: "Shoulders", "Arial Narrow", Impact, sans-serif; /* the Buyout page's big number only */
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--abyss); }
body { min-height: 100%; background: transparent; color: var(--ink); overflow-x: hidden; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
html.fixed, html.fixed body { height: 100%; overflow: hidden; }
html.fixed .foot { display: none; }
body { font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

#ocean, #poster { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -1; pointer-events: none; }
#poster { background: var(--abyss) url("/poster.webp") center / cover no-repeat; transition: opacity 0.9s ease; pointer-events: none; }
#poster.gone { opacity: 0; }
@media (orientation: portrait) { #poster { background-image: url("/poster-tall.webp"); } }
html.rec *, html.rec *::before { transition: none !important; animation: none !important; }
html.bare .top, html.bare .gauge, html.bare .hud, html.bare .after, html.bare .bench { display: none !important; }

.devnet { position: sticky; top: 0; z-index: 5; text-align: center; font: 600 11px/1 var(--sans); letter-spacing: 0.08em; color: #071018; background: var(--ember); padding: 6px 8px; padding-top: calc(env(safe-area-inset-top) + 6px); }
html.fixed .devnet { position: fixed; left: 0; right: 0; }
.top { position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter) 0; }
html.fixed .top { position: fixed; top: 24px; }
.grow { flex: 1; }
.mark { font: italic 400 30px/1 var(--serif); color: var(--ink); text-decoration: none; }
.plain { font-size: 13px; color: var(--dim); padding: 8px 4px; white-space: nowrap; }
.plain:hover { color: var(--ink); }
.plain[aria-pressed="true"] { color: var(--ember); }
.wallet { color: var(--ink); border: 1px solid var(--faint); border-radius: 4px; padding: 7px 11px; }
a { color: inherit; }
code { font: inherit; }

.hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + 22px); pointer-events: none; transition: opacity 0.35s ease; }
.hud::before { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; background: linear-gradient(to top, rgba(1, 6, 12, 0.72), transparent); pointer-events: none; z-index: -1; }
.hud button, .hud a { pointer-events: auto; }
.hud.hidden { opacity: 0; }

.pct { font: 800 min(40vh, 25vw)/0.82 var(--shoulders); letter-spacing: -0.012em; font-variant-numeric: tabular-nums; text-shadow: 0 0 60px rgba(120, 210, 255, 0.28); }
.pct span { font-size: 0.52em; vertical-align: 0.54em; margin-left: 0.04em; color: var(--dim); }
.raised { margin-top: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.raised b { color: var(--ink); font-weight: 600; }
.sep { opacity: 0.4; margin: 0 4px; }

.terms { width: min(330px, 34vw); flex: none; }
.term { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--faint); color: var(--dim); font-size: 14px; }
.term b { color: var(--ink); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.term .addr { font: 600 14px/1.35 var(--sans); }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.primary { display: inline-block; text-align: center; text-decoration: none; background: var(--ink); color: #04121c; font: 600 17px/1 var(--sans); padding: 17px 24px; border-radius: 4px; transition: background 0.15s ease, transform 0.08s ease; }
.primary:hover:not(:disabled) { background: var(--ember); }
.primary:disabled, .ghost:disabled { opacity: 0.38; cursor: default; }
.wide { width: 100%; display: block; }
.primary:active { transform: translateY(1px); }
.ghost { color: var(--ink); text-align: center; text-decoration: none; padding: 14px 16px; border: 1px solid var(--faint); border-radius: 4px; transition: border-color 0.15s ease; }
.ghost:hover { border-color: var(--ink); }

.gauge { position: fixed; z-index: 2; right: var(--gutter); top: 14vh; height: 44vh; width: 34px; border-right: 1px solid var(--faint); pointer-events: none; transition: opacity 0.35s ease; }
.tick { position: absolute; right: -1px; bottom: var(--at); width: 9px; height: 1px; background: var(--faint); }
.tick i { position: absolute; right: 15px; top: -7px; font: 500 11px/14px var(--sans); font-style: normal; color: var(--dim); }
.level { position: absolute; right: -2px; bottom: 0; width: 3px; height: var(--fill, 0%); background: linear-gradient(to top, transparent, var(--ember)); box-shadow: 0 0 14px var(--ember); transition: height 0.5s ease; }

.after { position: fixed; z-index: 2; left: 0; right: 0; bottom: 9vh; text-align: center; padding: 0 var(--gutter); animation: rise 0.9s ease both; }
.after[hidden] { display: none; }
.line { font: italic 400 clamp(38px, 6.2vw, 84px)/1 var(--serif); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5); }
.deal { margin: 12px 0 18px; color: var(--dim); font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.status { font-size: 13px; color: var(--dim); padding-top: 8px; min-height: 8px; }
.status:empty { display: none; }
.share-row { display: flex; gap: 14px; justify-content: flex-end; margin-top: 6px; pointer-events: auto; }
.share-row[hidden] { display: none; }
.after-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.after-actions .primary { padding: 14px 20px; font-size: 16px; }
.after-actions .ghost { padding: 11px 14px; }

/* Pages that scroll. */
#view { position: relative; min-height: calc(100svh - 62px); }
.hero { min-height: calc(100svh - 24px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; padding: 90px var(--gutter) clamp(28px, 7vh, 72px); background: linear-gradient(to top, rgba(1, 6, 12, 0.78), transparent 58%); }
h1 { font: italic 400 clamp(54px, 10.6vw, 148px)/0.96 var(--serif); letter-spacing: -0.012em; text-shadow: 0 2px 44px rgba(0, 0, 0, 0.42); }
.lede { max-width: 34em; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.4; color: rgba(233, 244, 248, 0.86); }
.example { min-height: 76px; }
.example-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--dim); }
.who-line { font-size: 14px; line-height: 1.4; }
.vs { font: 600 clamp(21px, 2.6vw, 30px)/1.2 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.vs .bad, .bad { color: #ff7a59; }
.hero-go { margin-top: 6px; }

.board { padding: 56px var(--gutter) 40px; background: var(--abyss); }
h2 { font: italic 400 clamp(34px, 4vw, 46px)/1.04 var(--serif); margin-bottom: 12px; }
h2 small { font: 400 15px/1 var(--sans); color: var(--dim); margin-left: 6px; }
h3 { font-size: 14px; font-weight: 600; color: var(--dim); margin: 18px 0 8px; }
#live { padding-bottom: 0; }
#live[hidden] { display: none; }
.live-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(214, 233, 240, 0.11); color: var(--ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.live-row span { color: var(--dim); flex: 1; }
.paste { display: flex; gap: 8px; margin-bottom: 14px; max-width: 620px; }
input, select { flex: 1; min-width: 0; font: 400 15px/1.2 var(--sans); color: var(--ink); background: rgba(214, 233, 240, 0.06); border: 1px solid var(--faint); border-radius: 4px; padding: 12px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.row { display: grid; grid-template-columns: minmax(120px, 1.6fr) 0.9fr 0.8fr 0.9fr 0.9fr 0.9fr 0.8fr 0.8fr 0.7fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(214, 233, 240, 0.11); color: var(--ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.row.head { color: var(--dim); font-size: 12px; border-top: 0; }
a.row:hover { background: rgba(214, 233, 240, 0.04); }
.coin { display: flex; align-items: center; gap: 8px; min-width: 0; }
.coin b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.coin img, .noicon { width: 26px; height: 26px; border-radius: 50%; flex: none; background: rgba(214, 233, 240, 0.08); display: block; }
.up { color: #6fe3b1; }
.down { color: #ff8f73; }
em { font-style: normal; font-size: 12px; color: var(--dim); }
.live { color: #071018; background: var(--ember); padding: 3px 6px; border-radius: 3px; font-weight: 600; }
.note { font-size: 13px; line-height: 1.45; color: var(--dim); margin-top: 10px; }
.notice { font-size: 14px; line-height: 1.45; border-left: 3px solid var(--ember); padding: 8px 12px; margin: 12px 0; background: rgba(255, 180, 94, 0.08); }

.panel { width: min(520px, calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: var(--gutter); padding: 84px 0 34px; }
.panel .note, .panel h3, .stats, .compare { text-shadow: 0 1px 10px rgba(1, 6, 12, 0.8); }
.coin-panel, .open-panel, .offer-panel { background: linear-gradient(to left, rgba(1, 6, 12, 0.84), rgba(1, 6, 12, 0.66) 72%, transparent); width: min(600px, 100%); margin-right: 0; padding-left: 56px; padding-right: var(--gutter); min-height: 100svh; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--dim); }
.stats b { color: var(--ink); font-weight: 600; }
.whales { display: grid; gap: 4px; }
.whale-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 12px; text-align: left; border: 1px solid transparent; border-radius: 4px; background: rgba(214, 233, 240, 0.05); font-size: 14px; }
.whale-row[aria-checked="true"] { border-color: var(--ember); background: rgba(255, 180, 94, 0.09); }
.whale-row span { color: var(--dim); font-size: 13px; }
#go { margin-top: 14px; }
form label { display: block; font-size: 13px; color: var(--dim); margin-top: 14px; }
.field { position: relative; display: flex; margin-top: 6px; }
.field input { padding-right: 86px; }
.field i { position: absolute; right: 12px; top: 13px; font-style: normal; font-size: 13px; color: var(--dim); max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
select { width: 100%; margin-top: 6px; appearance: none; }
.compare { min-height: 72px; margin: 16px 0 12px; }
.compare p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 7px 0; border-top: 1px solid var(--faint); font-size: 14px; color: var(--dim); }
.compare b { color: var(--ink); }
.compare small { width: 100%; text-align: right; font-size: 12px; }
.offer-terms div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--faint); }
dt { color: var(--dim); font-size: 14px; }
dd { margin: 0; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.offer-panel .primary { margin-top: 16px; }

.foot { position: relative; display: flex; gap: 20px; padding: 18px var(--gutter) calc(env(safe-area-inset-bottom) + 20px); font-size: 13px; color: var(--dim); background: var(--abyss); }

.sheet { position: fixed; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; background: rgba(1, 6, 12, 0.6); padding: 12px; }
.sheet-card { width: min(420px, 100%); background: #071724; border: 1px solid var(--faint); border-radius: 8px; padding: 18px; display: grid; gap: 10px; max-height: 92svh; overflow-y: auto; }
.sheet-title { font: italic 400 30px/1 var(--serif); }
.sheet-note { font-size: 13px; line-height: 1.4; color: var(--dim); }
.wallet-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--faint); border-radius: 4px; text-align: left; text-decoration: none; color: var(--ink); font-weight: 600; }
.wallet-row span { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--dim); }
.bar { height: 6px; background: rgba(214, 233, 240, 0.14); border-radius: 3px; overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; background: var(--ember); }
.clip-preview { width: 100%; max-height: 52svh; background: #000; border-radius: 4px; }
#toast { position: fixed; z-index: 9; left: 50%; top: 74px; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); background: var(--ink); color: #04121c; padding: 11px 15px; border-radius: 4px; font-size: 14px; transition: opacity 0.2s ease, transform 0.2s ease; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* The text pages. */
.page { width: min(680px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 84px 0 40px; font-size: 16px; line-height: 1.55; }
.page h1 { font-size: clamp(46px, 8vw, 78px); margin-bottom: 18px; }
.page h2 { font-size: 30px; margin: 30px 0 8px; }
.page p, .page li { color: rgba(233, 244, 248, 0.86); margin-bottom: 10px; }
.page ol, .page ul { padding-left: 20px; }
.page code { word-break: break-all; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.page td, .page th { text-align: left; padding: 7px 8px 7px 0; border-top: 1px solid var(--faint); vertical-align: top; }
.bench { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding: 6px var(--gutter) calc(env(safe-area-inset-bottom) + 6px); font: 500 12px/1 var(--mono); color: var(--ember); overflow-x: auto; scrollbar-width: none; }
.bench span { padding-right: 8px; }
.bench button { padding: 11px 10px; color: var(--dim); white-space: nowrap; }
.bench button:hover { color: var(--ink); }

@media (max-width: 900px) {
  .row { grid-template-columns: minmax(84px, 1.5fr) 0.9fr 0.8fr 0.7fr 0.55fr; }
  .row .wide { display: none; }
  .panel { margin: 0 auto; width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
  .coin-panel, .open-panel, .offer-panel { background: linear-gradient(to top, rgba(1, 6, 12, 0.92), rgba(1, 6, 12, 0.66) 62%, rgba(1, 6, 12, 0.2)); width: 100%; padding-top: 42vh; padding-left: var(--gutter); padding-right: var(--gutter); }
  .open-panel, .offer-panel { padding-top: 84px; }
}

@media (max-width: 760px) {
  .hud { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: calc(env(safe-area-inset-bottom) + 10px); }
  .hud::before { height: 66vh; }
  .pct { font-size: min(35vw, 21vh); }
  .raised { margin-top: 6px; font-size: 13px; }
  .terms { width: auto; }
  .term { padding: 6px 0; font-size: 13px; }
  .gauge { top: 11vh; height: 30vh; }
  .share-row { justify-content: flex-start; margin-top: 0; }
}

/* A phone on its side: short and wide. */
@media (max-height: 480px) and (min-width: 561px) {
  .hud { padding-bottom: calc(env(safe-area-inset-bottom) + 8px); }
  .hud::before { height: 80vh; }
  .pct { font-size: 34vh; }
  .raised { font-size: 12px; margin-top: 4px; }
  .terms { width: 300px; }
  .term { padding: 3px 0; font-size: 12px; }
  .actions { margin-top: 6px; }
  .primary { padding: 12px 0; font-size: 15px; }
  .ghost { padding: 8px 14px; }
  .gauge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
