/* SPOTTED app pages: coins, coin (trade), launch, screens, spot, profile, docs. Loaded after
   styles.css: same frame, grain, type and colour roles as the landing. Panels are hairline boxes
   on the dark surface; lime means live / go, green money in, --down money out. */

:root {
  --panel: #0d1117;
  --panel-2: #121722;
  --down: #f04f58;
}

[hidden] { display: none !important; }

.app-main { min-height: calc(100svh - var(--inset) * 2); padding: 96px var(--gutter) 0; }

/* ---------- Chrome: wallet button, bottom nav on phones ---------- */

.wallet-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #0d1118;
  box-shadow: 0 0 0 7px var(--bg); /* same notch as the app icon */
  font: 600 14px/1 var(--font-display);
  transition: border-color 0.15s ease;
}

.wallet-btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.wallet-btn:not(.is-on) { border-color: transparent; background: var(--lime); color: #0a0d05; }
.wallet-btn:not(.is-on):hover { background: #c9ff2a; }
.wallet-addr,
.wallet-eth { font: 500 13px/1 var(--font-mono); }
.wallet-eth { color: var(--muted); }

.wallet-menu {
  position: fixed;
  top: 64px;
  right: 10px;
  z-index: 50;
  display: grid;
  min-width: 232px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0d1118;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.wallet-menu-head { display: grid; gap: 6px; margin-bottom: 4px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); }
.wallet-menu-head span { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.wallet-menu-head b { font: 700 24px/1 var(--font-display); }
.wallet-menu-head small { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.wallet-menu a,
.wallet-menu button { padding: 10px 12px; border-radius: 8px; font-size: 14px; text-align: left; color: var(--muted); }
.wallet-menu a:hover,
.wallet-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.wallet-menu button:disabled { cursor: default; opacity: 0.45; }
.wallet-menu button:disabled:hover { background: none; color: var(--muted); }

/* The wallet and the network switch share the top-right corner, each cut into the frame. */
.corner { position: fixed; top: 10px; right: 10px; z-index: 45; display: flex; gap: 8px; }
.corner .wallet-btn { position: static; }

.net-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #0d1118;
  box-shadow: 0 0 0 7px var(--bg);
  font: 500 13px/1 var(--font-mono);
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.net-btn:hover,
.net-btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.net-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.net-btn.is-live i { background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.wallet-menu.is-net { width: 300px; }
.wallet-menu.is-net button { display: grid; gap: 5px; }
.wallet-menu.is-net button b { font: 600 14px/1.2 var(--font-display); color: var(--text); }
.wallet-menu.is-net button small { font: 400 12px/1.45 var(--font-body); color: var(--dim); }
.wallet-menu.is-net button[aria-checked="true"] b::after { content: " ●"; color: var(--lime); font-size: 10px; vertical-align: 2px; }


/* ---------- Buttons, panels, fields ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0d1118;
  font: 600 14px/1 var(--font-display);
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.btn:hover { border-color: rgba(255, 255, 255, 0.32); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-lime { border-color: transparent; background: var(--lime); color: #0a0d05; }
.btn-lime:hover { border-color: transparent; background: #c9ff2a; }
.btn-buy { border-color: transparent; background: var(--green); color: #04130b; }
.btn-buy:hover { border-color: transparent; background: #4be39a; }
.btn-sell { border-color: transparent; background: var(--down); color: #1c0507; }
.btn-sell:hover { border-color: transparent; background: #ff6770; }
.btn-block { width: 100%; height: 48px; border-radius: 12px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }

.label,
.panel-title {
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.field { display: grid; gap: 8px; }
.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 500 11px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field-label small { font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: var(--dim); }
.field-hint { font: 400 12px/1.5 var(--font-mono); color: var(--dim); }
.field-error { font: 400 12px/1.4 var(--font-mono); color: var(--down); }

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  outline: 0;
  background: var(--panel-2);
  color: var(--text);
  font: 400 15px/1 var(--font-body);
  transition: border-color 0.15s ease;
}

.input:focus { border-color: rgba(255, 255, 255, 0.5); }
.input::placeholder { color: var(--dim); }
.input[aria-invalid="true"] { border-color: var(--down); }
textarea.input { height: auto; min-height: 92px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }

.affix { position: relative; display: flex; align-items: center; }
.affix .input { padding-left: 64px; }
.affix > span { position: absolute; left: 14px; font: 400 14px/1 var(--font-mono); color: var(--dim); pointer-events: none; }

.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 12px/1 var(--font-mono);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.chip-btn:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.chip-btn[aria-pressed="true"] { border-color: var(--text); color: var(--text); }

.badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.badge-sm.is-grad { background: rgba(50, 213, 131, 0.12); color: var(--green); }
.badge-sm.is-curve { background: rgba(245, 184, 61, 0.12); color: var(--gold); }
.badge-sm.is-live { background: rgba(184, 244, 0, 0.1); color: var(--lime); }
.badge-sm.is-demo { background: none; border: 1px dashed var(--line-2); }

.up { color: var(--green); }
.down { color: var(--down); }

/* Tables (trades, holders, screens, pots). */
.rows { border-top: 1px solid var(--line); font: 400 13px/1.3 var(--font-mono); }
.rows > li,
.rows > .row { display: grid; align-items: center; gap: 16px; min-height: 44px; padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--muted); }
.rows b { color: var(--text); font-weight: 500; }
.rows .th { min-height: 34px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.rows .num { text-align: right; font-variant-numeric: tabular-nums; }
.rows a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rows .is-new { animation: row-in 1.2s ease-out; }

@keyframes row-in { from { background: rgba(184, 244, 0, 0.07); } }

.mini-art { display: inline-block; flex: none; width: 32px; height: 32px; border-radius: 4px; background-color: #151924; background-repeat: no-repeat; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { display: block; font-size: 11px; color: var(--dim); }

.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 16px;
  text-align: center;
  font: 400 14px/1.5 var(--font-mono);
  color: var(--muted);
}

/* ---------- Modal and toasts ---------- */

.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #0c1016;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.modal.is-wide { width: min(560px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(3, 4, 7, 0.74); backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-title { font: 700 20px/1 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; }
.modal-x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.modal-x:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.modal-body { padding: 20px; }

.wallets { display: grid; gap: 8px; }

.wallet-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  font: 600 15px/1 var(--font-display);
  text-align: left;
  transition: border-color 0.15s ease;
}

.wallet-opt:hover { border-color: rgba(255, 255, 255, 0.3); }
.wallet-opt:disabled { cursor: default; opacity: 0.5; }
.wallet-opt.is-busy { opacity: 1; border-color: var(--lime); }
.wallet-opt i,
.wallet-opt img { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--c); }
.wallet-opt > span { display: grid; gap: 4px; }
.wallet-opt small { font: 400 12px/1.2 var(--font-mono); color: var(--dim); }
.wallet-opt svg { flex: none; width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--dim); stroke-width: 2; }
.wallet-opt.is-busy svg { stroke: var(--lime); animation: nudge 0.8s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }
.wallets-note { margin-top: 10px; font: 400 12px/1.5 var(--font-mono); color: var(--dim); }
.wallets-empty { padding: 18px 16px; border: 1px dashed var(--line-2); border-radius: 12px; font: 400 14px/1.5 var(--font-body); color: var(--muted); }

/* Transaction steps (launch, claim). */
.tx-steps { display: grid; gap: 2px; }
.tx-steps li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; min-height: 46px; font: 400 14px/1.3 var(--font-body); color: var(--dim); }
.tx-steps li small { font: 400 12px/1 var(--font-mono); color: var(--dim); }
.tx-steps i { width: 14px; height: 14px; margin-left: 4px; border: 2px solid var(--line-2); border-radius: 50%; }
.tx-steps li.is-doing { color: var(--text); }
.tx-steps li.is-doing i { border-color: var(--lime) transparent var(--lime) var(--lime); animation: spin 0.8s linear infinite; }
.tx-steps li.is-done { color: var(--muted); }
.tx-steps li.is-done i { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px #0c1016; }
.tx-steps li.is-failed { color: var(--text); }
.tx-steps li.is-failed i { border-color: var(--down); background: var(--down); box-shadow: inset 0 0 0 3px #0c1016; }
.tx-steps li small a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tx-result { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tx-result.is-bad p { font: 400 14px/1.5 var(--font-body); color: var(--down); }

@keyframes spin { to { transform: rotate(360deg); } }

.toasts { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }

.toast {
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0d1118;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  font: 400 14px/1.3 var(--font-body);
  white-space: nowrap;
  animation: toast-in 0.25s ease-out;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast b { font-weight: 600; }
.toast.is-ok { border-color: rgba(50, 213, 131, 0.45); }
.toast.is-bad { border-color: rgba(240, 79, 88, 0.5); }
.toast.is-out { opacity: 0; transform: translateY(8px); }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Page heads ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.page-head .kicker { margin-bottom: 12px; }
.page-head .lede { margin-top: 12px; }

.head-stats { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.head-stats dt,
.stat dt { margin-bottom: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.head-stats dd { font: 700 var(--t-stat)/1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--text); }

.section-title { margin-bottom: 14px; font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; }
.app-section { margin-top: clamp(44px, 5vw, 64px); }

/* ---------- Coins (explore) ---------- */

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  height: 260px;
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.spotlight-scene { display: block; width: 100%; height: 100%; min-height: 0; }
.spotlight-copy { display: grid; align-content: center; justify-items: start; gap: 14px; padding: 24px 32px; border-left: 1px solid var(--line); }
.spotlight-coin { display: flex; align-items: center; gap: 14px; }
.spotlight-coin .mini-art { width: 48px; height: 48px; border-radius: 6px; }
.spotlight-coin b { display: block; font: 700 32px/0.9 var(--font-display); letter-spacing: -0.03em; }
.spotlight-coin small { font: 400 12px/1.4 var(--font-mono); color: var(--dim); }
.spotlight-stats { display: flex; gap: 28px; }
.spotlight-stats dd { font: 700 18px/1 var(--font-display); }
.spotlight-note { font: 400 12px/1.5 var(--font-mono); color: var(--dim); }
.spotlight-note b { color: var(--muted); font-weight: 500; }

.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.board-bar .tabs { justify-content: flex-start; }
.board-right { display: flex; align-items: center; gap: 20px; }
.board-right .search { width: 260px; }

.quiet-btn { white-space: nowrap; }
.quiet-btn b { margin-left: 4px; color: var(--dim); font-weight: 400; }

.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.view-toggle button { height: 30px; padding: 0 12px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.view-toggle button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.coin-table .row { grid-template-columns: 36px minmax(0, 2.2fr) minmax(0, 1fr) 70px minmax(0, 1fr) 80px minmax(0, 1.3fr) 44px; }
.ct-level { color: var(--text); }
.ct-curve { display: flex; align-items: center; gap: 10px; }
.ct-curve i { position: relative; flex: 1; max-width: 120px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.ct-curve i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: var(--text); }
.ct-curve.is-almost { color: var(--gold); }
.ct-curve.is-almost i::after { background: var(--gold); }
.ct-curve.is-grad { color: var(--green); }
.ct-curve.is-grad i::after { background: var(--green); }

/* ---------- Coin (trade) ---------- */

.coin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 20px; }
.coin-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.coin-id-art { flex: none; width: 64px; height: 64px; border-radius: 8px; background-color: #151924; background-repeat: no-repeat; }
.coin-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 700 clamp(26px, 2.4vw, 34px)/0.95 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; }
.coin-title span { font: 500 14px/1 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.coin-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font: 400 12px/1 var(--font-mono); color: var(--dim); }
.coin-meta a { color: var(--muted); }
.coin-meta a:hover { color: var(--text); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/1 var(--font-mono); color: var(--muted); }
.copy-btn:hover { color: var(--text); }
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "chart side" "tabs side";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 16px 20px;
}

.chart-card { grid-area: chart; padding: 18px 18px 12px; }
/* Sticks under the nav when it fits the window; when taller, it scrolls until its bottom shows,
   then sticks there (--side-h is set from JS). */
.trade-side { position: sticky; top: min(88px, calc(100svh - var(--side-h, 0px) - 28px)); grid-area: side; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.coin-tabs { grid-area: tabs; }

.chart-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.price-big { font: 700 32px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-sub { display: flex; gap: 10px; margin-top: 8px; font: 400 13px/1 var(--font-mono); color: var(--dim); }
.price-sub b { font-weight: 500; }

.range { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.range button { height: 28px; padding: 0 11px; border-radius: 999px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--dim); }
.range button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.chart-wrap { position: relative; height: 320px; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.chart-tip {
  position: absolute;
  top: 8px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(10, 13, 19, 0.92);
  font: 400 12px/1.5 var(--font-mono);
  pointer-events: none;
  white-space: nowrap;
}

.chart-tip b { display: block; font: 700 16px/1.2 var(--font-display); }

/* Trade box */
.trade-box { padding: 14px; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--panel-2); }
.side-toggle button { height: 36px; border-radius: 9px; font: 700 15px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--dim); transition: background-color 0.15s ease, color 0.15s ease; }
.side-toggle button[aria-pressed="true"][data-side="buy"] { background: rgba(50, 213, 131, 0.14); color: var(--green); }
.side-toggle button[aria-pressed="true"][data-side="sell"] { background: rgba(240, 79, 88, 0.14); color: var(--down); }

.amount { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); transition: border-color 0.15s ease; }
.amount:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.amount-top { display: flex; justify-content: space-between; font: 400 12px/1 var(--font-mono); color: var(--dim); }
.amount-top button { color: var(--muted); }
.amount-top button:hover { color: var(--text); }
.amount-main { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.amount-main input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 700 26px/1 var(--font-display); letter-spacing: -0.01em; }
.amount-main input::placeholder { color: rgba(255, 255, 255, 0.2); }
.amount-unit { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font: 600 14px/1 var(--font-display); white-space: nowrap; }
.amount-unit i { width: 22px; height: 22px; border-radius: 50%; background: #627eea; background-repeat: no-repeat; background-size: cover; }
.amount-usd { margin-top: 6px; font: 400 12px/1 var(--font-mono); color: var(--dim); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.quick button { height: 32px; border: 1px solid var(--line); border-radius: 8px; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.quick button:hover { border-color: var(--line-2); color: var(--text); }

.quote { display: grid; gap: 8px; margin: 14px 0; font: 400 12px/1.3 var(--font-mono); color: var(--dim); }
.quote div { display: flex; justify-content: space-between; gap: 12px; }
.quote dd { color: var(--muted); text-align: right; }
.quote .is-out dd { font-weight: 500; color: var(--text); }
.slip-btn { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.trade-note { margin-top: 10px; font: 400 11px/1.5 var(--font-mono); color: var(--dim); text-align: center; }

/* Curve and screens boxes */
.curve-box,
.screen-box { padding: 16px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.curve-pct { font: 700 26px/1 var(--font-display); letter-spacing: -0.02em; }
.curve-bar { position: relative; height: 6px; margin: 12px 0 10px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.06); }
.curve-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--lime)); transition: width 0.6s ease; }
.curve-box.is-grad .curve-bar i { background: var(--green); }
.box-text { font: 400 12px/1.6 var(--font-mono); color: var(--dim); }
.box-text b { color: var(--muted); font-weight: 500; }

.screen-scene { display: block; width: calc(100% + 32px); height: 180px; margin: 0 -16px 12px; border-block: 1px solid var(--line); background: #080a0f; }
.level-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 10px; }
.level-steps span { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.level-steps span.is-on { background: var(--lime); }
.level-steps span.is-next { background: linear-gradient(90deg, var(--lime) var(--p), rgba(255, 255, 255, 0.08) var(--p)); }
.box-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.box-stats dd { font: 700 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.harvest { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.harvest > div { display: grid; gap: 2px; }

/* The creator panel (creator.js): claim, hand the role over, take back a dormant coin's funds. */
.creator-box { padding: 16px; }
.creator-box .box-head { margin-bottom: 4px; }
.creator-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.creator-line + .creator-line { border-top: 1px solid var(--line); }
.creator-line .btn { flex: none; }
.creator-claim { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; }
.creator-claim span { grid-column: 1 / -1; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.creator-claim b { font: 700 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.creator-claim small { font: 400 12px/1 var(--font-mono); color: var(--dim); }
.creator-cta { margin-top: 12px; }

/* Handing the creator role over, and pointing a coin's fees (the modals of creator.js and adopt.js). */
.handover { display: grid; gap: 14px; }
.handover-text { font: 400 14px/1.55 var(--font-body); color: var(--muted); }
.handover-text b { color: var(--text); font-weight: 600; }
.handover-list { display: grid; border-top: 1px solid var(--line); }
.handover-list li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); font: 400 12px/1.5 var(--font-mono); color: var(--dim); }
.handover-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1px; background: var(--lime); }
.handover-list b { color: var(--text); font-weight: 500; }

/* Tabs under the chart */
.coin-tabs .tabs { justify-content: flex-start; margin: 10px 0 4px; }
.trades-rows > li { grid-template-columns: 56px 64px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 90px; }
.holders-rows > li { grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 2fr) 70px; }
.screens-rows > li { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 90px; }
.hold-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.hold-bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--muted); }
.tag-side { font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; padding-top: 16px; }
.about p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.spot-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding-top: 14px; }
.spot-mini canvas { display: block; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 4px; background: #0b0e14; }

.grad-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid rgba(50, 213, 131, 0.35); border-radius: 12px; background: rgba(50, 213, 131, 0.07); font: 400 14px/1.4 var(--font-body); }
.grad-banner b { color: var(--green); }

/* ---------- Launch ---------- */

.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); align-items: start; gap: 28px 40px; }
.launch-form { display: grid; gap: 14px; }

.step { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.step legend { float: left; display: flex; align-items: baseline; gap: 12px; width: 100%; margin-bottom: 16px; padding: 0; font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; text-transform: uppercase; }
.step legend span { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--lime); }
.step-body { clear: both; display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.drop {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.drop:hover,
.drop.is-over { border-color: var(--lime); background: rgba(184, 244, 0, 0.04); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-thumb { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 8px; background: #1a1f2b center / cover no-repeat; }
.drop-thumb svg { width: 28px; height: 28px; fill: none; stroke: var(--dim); stroke-width: 1.6; }
.drop.has-image .drop-thumb svg { display: none; }
.drop b { display: block; margin-bottom: 4px; font: 600 15px/1.2 var(--font-display); }
.drop small { font: 400 12px/1.5 var(--font-mono); color: var(--dim); }

.range-field input[type="range"] {
  --fill: 40%;
  width: 100%;
  height: 2px;
  margin: 14px 0 6px;
  background: linear-gradient(90deg, var(--lime) var(--fill), rgba(255, 255, 255, 0.14) var(--fill));
  appearance: none;
  cursor: pointer;
}

.range-field input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(184, 244, 0, 0.22); appearance: none; }
.range-field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(184, 244, 0, 0.22); }
.range-value { font: 700 18px/1 var(--font-display); color: var(--text); letter-spacing: 0; text-transform: none; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border: 2px solid transparent; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch.is-auto { display: inline-flex; align-items: center; width: auto; padding: 0 12px 0 10px; background: var(--panel-2); border-color: var(--line-2); font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.swatch.is-auto i { width: 14px; height: 14px; margin-right: 8px; border-radius: 4px; background: var(--c); }
.swatch.is-auto[aria-pressed="true"] { border-color: var(--text); color: var(--text); }

.split-mini { display: grid; gap: 0; border-top: 1px solid var(--line); }
.split-mini li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.3 var(--font-mono); color: var(--muted); }
.split-mini li small { display: block; margin-top: 3px; font-size: 11px; color: var(--dim); }
.split-mini b { color: var(--text); font-weight: 500; }
.split-mini li:first-child b { color: var(--lime); }

.summary { display: grid; border-top: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.3 var(--font-mono); color: var(--muted); }
.summary dd { color: var(--text); text-align: right; }
.summary .is-total { font-size: 15px; }
.summary .is-total dt,
.summary .is-total dd { color: var(--text); font-weight: 500; }

.check { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 12px; font: 400 13px/1.5 var(--font-body); color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lime); }

.launch-side { position: sticky; top: min(88px, calc(100svh - var(--side-h, 0px) - 28px)); display: grid; gap: 14px; }
.preview-scene { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 400px; border: 1px solid var(--line); border-radius: 16px; background: #080a0f; }
.preview-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.preview-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 18px; padding: 14px; }
.preview-card .coin-grid { grid-template-columns: 1fr; }
.preview-card .coin-link { cursor: default; }
.preview-text { display: grid; gap: 10px; }
.preview-text p:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); }
.preview-text b { color: var(--text); font-weight: 600; }
.next-steps { display: grid; gap: 0; padding: 2px 16px; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; font: 400 13px/1.5 var(--font-body); color: var(--muted); }
.next-steps li + li { border-top: 1px solid var(--line); }
.next-steps li span:first-child { font: 500 12px/1.6 var(--font-mono); color: var(--lime); }

/* The launch page's two tabs, and bringing a Pons coin (adopt.js). */
.mode-tabs { justify-content: flex-start; margin: -8px 0 16px; }
.adopt-coin { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.adopt-id { display: flex; align-items: center; gap: 12px; }
.adopt-id .mini-art { width: 40px; height: 40px; }
.adopt-id b { display: block; font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; }
.adopt-id small { font: 400 12px/1.4 var(--font-mono); color: var(--dim); }
.adopt-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.adopt-facts dt { margin-bottom: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.adopt-facts dd { overflow: hidden; font: 400 13px/1.2 var(--font-mono); color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.adopt-steps { display: grid; border-top: 1px solid var(--line); }
.adopt-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.adopt-n { font: 500 12px/1 var(--font-mono); color: var(--dim); }
.adopt-what { display: grid; gap: 4px; }
.adopt-what b { font: 600 15px/1.2 var(--font-display); color: var(--muted); }
.adopt-what small { font: 400 12px/1.45 var(--font-mono); color: var(--dim); }
.adopt-step.is-now .adopt-n { color: var(--lime); }
.adopt-step.is-now .adopt-what b { color: var(--text); }
.adopt-step.is-done .adopt-n { color: var(--green); }
.adopt-done { font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
#a-hint a,
.link-btn { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.link-btn { font: inherit; }
.link-btn:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.adopt-info { display: grid; gap: 12px; padding: 16px; }
.adopt-notes { padding: 0; }

/* ---------- Screens ---------- */

.map-wrap { position: relative; margin: 0 calc(var(--pad-x) * -1); border-block: 1px solid var(--line); background: #080a0f; }
.map { display: block; width: 100%; max-width: calc(420px * 240 / 92); max-height: 420px; margin: 0 auto; aspect-ratio: 240 / 92; }
.map-tip { position: absolute; z-index: 2; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 13, 19, 0.94); font: 400 12px/1.5 var(--font-mono); color: var(--muted); pointer-events: none; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.map-tip b { display: block; font: 700 18px/1.2 var(--font-display); color: var(--text); }

.city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.city-chips .chip-btn b { margin-left: 6px; color: var(--dim); font-weight: 400; }
.network-rows > li { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 80px; }
.coin-chip { display: inline-flex; align-items: center; gap: 8px; }
.coin-chip i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }

.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.levels li { display: grid; align-content: start; gap: 8px; padding: 18px 20px 18px 0; }
.levels li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.levels b { font: 700 18px/1 var(--font-display); text-transform: uppercase; }
.levels span { font: 400 13px/1.5 var(--font-mono); color: var(--dim); }
.levels em { font-style: normal; font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps3 li { padding: 20px 28px 0 0; }
.steps3 li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps3 h3 { margin: 12px 0 8px; font: 700 16px/1 var(--font-display); text-transform: uppercase; }
.steps3 p { max-width: 42ch; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Spot & earn ---------- */

.spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px 40px; }
.spot-form { display: grid; gap: 14px; padding: 20px; }
.spot-drop { grid-template-columns: 1fr; min-height: 170px; justify-items: center; align-content: center; text-align: center; }
.spot-drop .drop-thumb { width: 100%; height: 130px; }
.spot-drop.has-image { padding: 8px; }
.verify { display: grid; gap: 14px; }
.verify-result { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid rgba(50, 213, 131, 0.35); border-radius: 12px; background: rgba(50, 213, 131, 0.06); }
.verify-result b { font: 700 22px/1 var(--font-display); color: var(--green); }
.verify-result.is-bad { border-color: rgba(240, 79, 88, 0.4); background: rgba(240, 79, 88, 0.06); }
.verify-result.is-bad b { color: var(--down); }
.verify-result.is-wait { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.verify-result.is-wait b { color: var(--text); }
/* On phones the photo input opens the camera; this one picks from the library instead. */
.spot-library { display: none; position: relative; justify-self: center; font: 400 12px/1.5 var(--font-mono); color: var(--dim); text-decoration: underline; cursor: pointer; }
.spot-library input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (pointer: coarse) { .spot-library { display: block; } }
.rules { display: grid; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.rules li span { font: 500 12px/1.9 var(--font-mono); color: var(--lime); }
.rules li b { color: var(--text); font-weight: 600; }
.pots-rows > li { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 90px 90px 110px; }
.leader-rows > li { grid-template-columns: 36px minmax(0, 1.5fr) 80px 110px; }
.paid-rows > li { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.6fr) 100px 90px; }
.spots-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.spots-wall canvas { display: block; width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: 4px; background: #0b0e14; }

/* ---------- Profile ---------- */

.profile-id { display: flex; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 10px; background: conic-gradient(from 45deg, var(--a), var(--b), var(--a)); }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border-block: 1px solid var(--line); }
.profile-stats div { padding: 16px 20px 16px 0; }
.profile-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.profile-stats dd { font: 700 var(--t-stat)/1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.profile-stats small { display: block; margin-top: 6px; font: 400 12px/1 var(--font-mono); }
.hold-rows > li { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 110px; }
.made-rows > li { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) 70px minmax(0, 1fr) 210px; }
.row-acts { display: flex; justify-content: flex-end; gap: 6px; }
.made-rows > li.is-offer { background: rgba(184, 244, 0, 0.035); }
.act-rows > li { grid-template-columns: 70px 80px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- Docs ---------- */

.docs-grid { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 48px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.toc a { padding: 7px 0 7px 14px; border-left: 1px solid var(--line); font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.04em; color: var(--dim); transition: color 0.15s ease, border-color 0.15s ease; }
.toc a:hover { color: var(--muted); }
.toc a[aria-current="true"] { border-color: var(--lime); color: var(--text); }

.doc { min-width: 0; }
.doc h2 { margin: 48px 0 12px; font: 700 24px/1.05 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin: 24px 0 8px; font: 700 16px/1.2 var(--font-display); text-transform: uppercase; }
.doc p,
.doc li { font-size: 15px; line-height: 1.65; color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul.bullets { display: grid; gap: 6px; margin-top: 12px; }
.doc ul.bullets li { position: relative; padding-left: 20px; }
.doc ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--lime); }
.doc strong { color: var(--text); font-weight: 600; }
.doc code { padding: 2px 6px; border-radius: 4px; background: var(--panel-2); font: 400 13px/1 var(--font-mono); color: var(--text); }
.doc pre { margin-top: 14px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font: 400 13px/1.7 var(--font-mono); color: var(--muted); }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.doc .spec { margin-top: 14px; }
.doc .rows { margin: 14px 0; }
.doc .rows li { font-size: 13px; line-height: 1.4; }
.contract-rows > li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) 32px; }
.contract-rows code { overflow: hidden; background: none; padding: 0; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font: 600 15px/1.3 var(--font-display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--dim); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .trade-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .launch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; }
  .coin-table .row { grid-template-columns: 36px minmax(0, 2fr) minmax(0, 1fr) 60px minmax(0, 1fr) 76px 44px; }
  .coin-table .row > :nth-child(7) { display: none; }
  .docs-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 960px) {
  .trade-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chart" "side" "tabs"; }
  .trade-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .launch-grid,
  .spot-grid { grid-template-columns: 1fr; }
  .launch-side { position: static; order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .launch-side .preview-scene { grid-row: span 3; }
  .adopt-grid .launch-side { order: 0; grid-template-columns: minmax(0, 1fr); }
  .spotlight { grid-template-columns: 1fr; grid-template-rows: 200px auto; height: auto; }
  .spotlight-copy { border-top: 1px solid var(--line); border-left: 0; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels li:nth-child(3) { padding-left: 0; border-left: 0; }
  .levels li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .profile-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
}

@media (max-width: 860px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .board-right { flex-wrap: wrap; }
  .coin-table .row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .coin-table .row > :is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(8)) { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li,
  .steps3 li + li { padding: 22px 0; border-left: 0; }
  .steps3 li + li { border-top: 1px solid var(--line); }
  .spots-wall,
  .spot-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* The nav moves to the bottom of the screen, all links showing; the wallet stays top right. */
  .is-app { padding-bottom: 76px; }
  .is-app .pill-nav { top: auto; bottom: calc(var(--inset) + 12px); height: 44px; }
  .is-app .pill-nav a:nth-child(n + 3) { display: flex; }
  .is-app .pill-nav a { padding: 0 10px; font-size: 12px; }
  .toasts { bottom: 90px; }
  .app-main { padding-top: 84px; }
  .wallet-eth { display: none; }
  .net-btn { padding: 0 12px; }
  .head-stats dd { font-size: 20px; }
  .two,
  .three { grid-template-columns: 1fr; }
  .adopt-facts { grid-template-columns: 1fr 1fr; }
  .adopt-step { grid-template-columns: 22px minmax(0, 1fr); }
  .adopt-act { grid-column: 2; }
  .adopt-act:empty { display: none; }
  .step { padding: 16px 14px; }
  .launch-side { grid-template-columns: 1fr; }
  .launch-side .preview-scene { grid-row: auto; }
  .coin-id-art { width: 52px; height: 52px; }
  .chart-wrap { height: 240px; }
  .chart-card { padding: 14px 12px 10px; }
  .price-big { font-size: 28px; }
  .trades-rows > li { grid-template-columns: 44px 48px minmax(0, 1fr) minmax(0, 1fr); }
  .trades-rows > li > :nth-child(3),
  .trades-rows > li > :nth-child(6) { display: none; }
  .holders-rows > li { grid-template-columns: 24px minmax(0, 1fr) 64px; }
  .holders-rows > li > :nth-child(3) { display: none; }
  .screens-rows > li,
  .network-rows > li { grid-template-columns: minmax(0, 1fr) auto; }
  .screens-rows > li > :is(:nth-child(2), :nth-child(3)),
  .network-rows > li > :is(:nth-child(2), :nth-child(3), :nth-child(4)) { display: none; }
  .about { grid-template-columns: 1fr; }
  .spot-mini,
  .spots-wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pots-rows > li { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pots-rows > li > :is(:nth-child(2), :nth-child(4)) { display: none; }
  .leader-rows > li { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .paid-rows > li { grid-template-columns: minmax(0, 1fr) auto; }
  .paid-rows > li > :is(:nth-child(1), :nth-child(2), :nth-child(5)) { display: none; }
  .leader-rows > li > :nth-child(3) { display: none; }
  .hold-rows > li,
  .made-rows > li,
  .act-rows > li { grid-template-columns: minmax(0, 1fr) auto; }
  .hold-rows > li > :is(:nth-child(2), :nth-child(3), :nth-child(4)),
  .made-rows > li > :is(:nth-child(2), :nth-child(3), :nth-child(4)),
  .act-rows > li > :is(:nth-child(1), :nth-child(4), :nth-child(5)) { display: none; }
  .profile-stats dd { font-size: 20px; }
  .levels { grid-template-columns: 1fr; }
  .levels li,
  .levels li + li { padding: 20px 0; border-left: 0; }
  .levels li + li { border-top: 1px solid var(--line); }
  .spotlight-copy { padding: 18px 16px; }
  .spotlight-coin b { font-size: 28px; }
  .board-right .search { width: 100%; }
  .board-right { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .rows .is-new { animation: none; }
  .tx-steps li.is-doing i { animation: none; }
  .wallet-opt.is-busy svg { animation: none; }
  .curve-bar i { transition: none; }
}
