/* starknet.fun · post-quantum launchpad preview */
:root {
  color-scheme: dark;
  --navy: #101224;
  --navy-2: #191c30;          /* raised panels */
  --navy-3: #25283f;          /* inputs, hover */
  --navy-deep: #101120;       /* wells */
  --ivory: #fff4e8;
  --dim: rgba(255, 244, 232, .66);
  --faint: rgba(255, 244, 232, .57);
  --line: rgba(255, 244, 232, .09);
  --line-2: rgba(255, 244, 232, .16);
  --coral: #ff785f;
  --coral-soft: rgba(255, 120, 95, .14);
  --ice: #9eaeca;
  --ice-soft: rgba(158, 174, 202, .14);
  --up: var(--coral);         /* price up, buy */
  --down: var(--ice);         /* price down, sell */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 9px;
  --page: 1280px;
  font-family: var(--sans);
  color: var(--ivory);
  background: var(--navy);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 300px; background: var(--navy); }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
main { flex: 1; outline: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.02;
  text-wrap: balance;
}
.display-fill { color: var(--ivory); }
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
}
.label-coral { color: var(--coral); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: #ff8b80; }
.btn-ice { background: var(--ice); color: var(--navy); }
.btn-ice:hover { background: #b0b9ff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ivory); }
.btn-ghost:hover { border-color: rgba(255, 244, 232, .4); }
.btn-block { width: 100%; height: 50px; font-size: 13.5px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: default; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(16, 18, 36, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.05em; }
.nav { display: flex; gap: 22px; }
.nav a { position: relative; text-decoration: none; color: var(--dim); font-weight: 500; font-size: 14px; padding: 6px 0; }
.nav a:hover { color: var(--ivory); }
.nav a[aria-current="page"] { color: var(--ivory); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--coral);
}
.search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 30vw);
}
.search svg { position: absolute; left: 13px; width: 15px; height: 15px; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--navy-2);
  font-family: var(--mono);
  font-size: 12.5px;
  outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: rgba(255, 120, 95, .6); }
.wallet-slot { flex-shrink: 0; }
.wallet-chip {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: none;
  font-family: var(--mono); font-size: 12.5px;
}
.wallet-chip .bal { color: var(--ivory); }
.wallet-chip .addr { padding: 5px 10px; border-radius: 999px; background: var(--navy-3); color: var(--dim); }

/* Live trade tape */
.tape { display: flex; align-items: center; height: 34px; border-top: 1px solid var(--line); max-width: 100%; overflow: hidden; }
.tape-live {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  height: 100%;
  padding: 0 16px 0 24px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--coral);
  border-right: 1px solid var(--line);
}
.tape-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
.tape-window { flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tape-track { display: flex; height: 100%; align-items: center; white-space: nowrap; }
.tape-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-decoration: none;
  border-right: 1px solid var(--line);
}
.tape-item:hover { color: var(--ivory); }
.tape-item .emblem { width: 16px; height: 16px; border-radius: 4px; }
.tape-item b { font-weight: 500; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Layout ---------- */
.page { max-width: var(--page); margin: 0 auto; padding: 32px 24px 64px; }
.panel { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); }

/* Emblems (token images) */
.emblem { display: block; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--navy-3); }
.emblem svg, .emblem img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Progress toward graduation: coral line with the brand's dot at its head */
.orbit { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 244, 232, .1); }
.orbit > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--coral); transition: width .6s var(--ease); }
.orbit > span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--navy-2); }
.orbit .star { position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; fill: var(--faint); }
.orbit.done > span::after { display: none; }
.orbit.done .star { fill: var(--ivory); }

/* ---------- Board ---------- */
.launch-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(310px, 36vw, 420px);
  margin-bottom: 30px;
  background: #121527;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.launch-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(90deg, #121527 0%, #121527 28%, rgba(18, 21, 39, .9) 38%, transparent 62%), url("assets/quantum-banner.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}
.launch-intro { padding: clamp(24px, 4vw, 56px); }
.launch-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.3vw, 91px);
  font-weight: 650;
  line-height: .93;
  letter-spacing: -.068em;
}
.launch-intro h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.065em; }
.launch-intro p { max-width: 36ch; margin: 22px 0; color: var(--dim); line-height: 1.5; }
.research-link { text-underline-offset: .18em; text-decoration-color: var(--line-2); }
.research-link:hover { color: var(--ivory); text-decoration-color: var(--coral); }
.launch-intro .btn span { font-size: 19px; line-height: 1; }

.hill { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 0 40px; border-bottom: 1px solid var(--line); }
.hill-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hill-tag .star { width: 12px; height: 12px; fill: var(--coral); }
.hill-id { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.hill-id .emblem { width: 76px; height: 76px; border-radius: 18px; }
.hill-name { font-size: clamp(30px, 4.2vw, 58px); }
.hill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.ticker { font-family: var(--mono); color: var(--coral); }
.hill-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 28px 0 26px; }
.stat-value { display: block; margin-top: 6px; font-family: var(--mono); font-size: 18px; color: var(--ivory); }
.hill-actions { display: flex; align-items: center; gap: 12px; }
.trajectory { width: 100%; height: auto; overflow: visible; }
.trajectory .curve-track { fill: none; stroke: rgba(255, 244, 232, .14); stroke-width: 2; }
.trajectory .curve-done { fill: none; stroke: var(--coral); stroke-width: 3.2; stroke-linecap: round; }
.trajectory .gl { stroke: rgba(255, 244, 232, .06); }
.trajectory .axis { font-family: var(--mono); font-size: 10px; fill: var(--faint); letter-spacing: .12em; text-transform: uppercase; }
.trajectory .now { fill: var(--coral); }
.trajectory .now-ring { fill: none; stroke: var(--coral); stroke-opacity: .35; }
.trajectory .goal { fill: var(--ivory); }

.filters { display: flex; align-items: center; gap: 4px; margin: 28px 0 18px; flex-wrap: wrap; }
.filter {
  position: relative;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font-weight: 500;
  font-size: 14px;
}
.filter:hover { color: var(--ivory); }
.filter[aria-pressed="true"] { background: var(--navy-2); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line); }
.filter[aria-pressed="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: 2px; }
.filters .count { margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(255, 120, 95, .45); }
.card-head { display: flex; gap: 14px; min-width: 0; }
.card-head .emblem { width: 58px; height: 58px; }
.card-title { min-width: 0; }
.card-name { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { display: flex; gap: 10px; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card-desc { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 12px; }
.card-mcap { font-family: var(--mono); font-size: 14px; }
.card-mcap small { display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.card-change { font-family: var(--mono); font-size: 13px; }
.card .orbit { grid-column: 1 / -1; }
.card-pct { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: -4px; }
.card.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { border-color: rgba(255, 120, 95, .9); } 100% { border-color: var(--line); } }
.card.flash-down { animation: flash-down 1s var(--ease); }
@keyframes flash-down { 0% { border-color: rgba(158, 174, 202, .9); } 100% { border-color: var(--line); } }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 244, 232, .08); color: var(--ivory);
}
.badge .star { width: 10px; height: 10px; fill: currentColor; }
.empty { padding: 64px 0; text-align: center; color: var(--dim); }
.empty p { margin: 0 0 18px; }

/* ---------- Token page ---------- */
.token-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "top aside" "activity aside";
  gap: 22px;
  align-items: start;
}
.area-top { grid-area: top; min-width: 0; }
.area-activity { grid-area: activity; min-width: 0; }
.aside { grid-area: aside; }
.token-title { flex: 1; min-width: 0; }
.token-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.token-head .emblem { width: 64px; height: 64px; border-radius: 16px; }
.token-name { font-size: clamp(24px, 3vw, 38px); }
.token-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--dim); font-family: var(--mono); font-size: 12.5px; }
.copy:hover { color: var(--ivory); }
.copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.socials { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 11px; }
.icon-btn:hover { color: var(--ivory); border-color: var(--line-2); }
.icon-btn svg { width: 14px; height: 14px; fill: currentColor; }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 18px 20px 0; }
.price-big { font-family: var(--mono); font-size: 26px; }
.price-big small { font-size: 13px; color: var(--faint); margin-left: 6px; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv b { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 0; }
.ohlc { font-family: var(--mono); font-size: 11.5px; color: var(--faint); min-height: 1.2em; }
.ohlc b { font-weight: 500; color: var(--dim); margin-right: 10px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--navy-deep); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
.seg button[aria-pressed="true"] { background: var(--navy-3); color: var(--ivory); }
.chart { height: 380px; margin: 6px 6px 8px; position: relative; }
.chart canvas { display: block; cursor: crosshair; }

.tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.tab { position: relative; height: 48px; padding: 0 12px; border: 0; background: none; color: var(--dim); font-weight: 500; font-size: 14px; }
.tab:hover { color: var(--ivory); }
.tab[aria-selected="true"] { color: var(--ivory); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--coral); border-radius: 2px; }
.tab-count { margin-left: 6px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.table-wrap { max-height: 520px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
th { position: sticky; top: 0; background: var(--navy-2); text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding: 12px 20px; border-bottom: 1px solid var(--line); }
td { padding: 11px 20px; border-bottom: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
th.r, td.r { text-align: right; }
tr.mine td { background: rgba(255, 120, 95, .06); }
tr.new td { animation: rowin 1.2s var(--ease); }
@keyframes rowin { from { background: rgba(255, 244, 232, .08); } to { background: transparent; } }
.who { color: var(--ivory); }
.you { margin-left: 8px; padding: 1px 6px; border-radius: 4px; background: var(--coral); color: var(--navy); font-size: 10px; letter-spacing: .1em; }
.share { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.share i { display: block; width: 70px; height: 3px; border-radius: 3px; background: rgba(255, 244, 232, .1); position: relative; }
.share i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--ice); }
.share.curve i::after { background: var(--coral); }
.about { padding: 22px 20px 26px; display: grid; gap: 22px; }
.about p { margin: 0; color: var(--dim); max-width: 64ch; }
.about dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; font-family: var(--mono); font-size: 12.5px; }
.about dt { color: var(--faint); }
.about dd { margin: 0; color: var(--ivory); word-break: break-all; }

/* Trade panel */
.aside { display: grid; gap: 16px; position: sticky; top: 118px; }
.trade { padding: 16px; }
.side-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--navy-deep); border: 1px solid var(--line); margin-bottom: 18px; }
.side-switch button { height: 38px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.side-switch button[aria-pressed="true"][data-side="buy"] { background: var(--coral); color: var(--navy); }
.side-switch button[aria-pressed="true"][data-side="sell"] { background: var(--ice); color: var(--navy); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.linkish { padding: 0; border: 0; background: none; color: var(--dim); font-family: var(--mono); font-size: 11.5px; }
.linkish:hover { color: var(--ivory); }
.amount { display: flex; align-items: center; height: 58px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-deep); }
.amount:focus-within { border-color: rgba(255, 120, 95, .6); }
.amount input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-family: var(--mono); font-size: 22px; }
.amount input::placeholder { color: rgba(255, 244, 232, .25); }
.amount .unit { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 16px; }
.quick button { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.quick button:hover { color: var(--ivory); border-color: var(--line-2); }
.quote { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px dashed var(--line-2); font-family: var(--mono); font-size: 12px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); }
.quote div span:last-child { color: var(--dim); text-align: right; }
.quote .receive span:last-child { color: var(--ivory); font-size: 14px; }
.quote .warn span:last-child { color: var(--coral); }
.slip { display: inline-flex; gap: 4px; }
.slip button { height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.slip button[aria-pressed="true"] { border-color: var(--line-2); color: var(--ivory); background: var(--navy-3); }
.form-error { margin: 10px 0 0; font-family: var(--mono); font-size: 12px; color: var(--coral); min-height: 1em; }
.holding { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.holding b { font-weight: 500; color: var(--ivory); }

.bond { padding: 18px 18px 16px; }
.bond-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.bond-pct { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 28px; }
.bond p { margin: 12px 0 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.bond .trajectory { margin-top: 6px; }
.graduated-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--navy-deep); color: var(--dim); font-size: 13.5px; }
.graduated-note .star { flex-shrink: 0; width: 18px; height: 18px; fill: var(--ivory); margin-top: 2px; }

/* ---------- Create ---------- */
.create { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.create-title { font-size: clamp(30px, 4vw, 52px); margin-bottom: 10px; }
.create-lede { margin: 0 0 30px; color: var(--dim); max-width: 52ch; }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 180px; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 14px; }
.field .hint { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.input, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy-deep);
  padding: 0 14px;
  height: 48px;
  outline: none;
  font-size: 15px;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: rgba(255, 120, 95, .6); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--coral); }
.input.mono-in { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.drop {
  display: flex; align-items: center; gap: 18px;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--coral); }
.drop .emblem { width: 72px; height: 72px; border-radius: 16px; }
.drop strong { display: block; font-weight: 500; }
.drop-text small { display: block; margin-top: 2px; color: var(--faint); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
.socials-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.socials-row .input { font-family: var(--mono); font-size: 12.5px; }
.summary { padding: 18px; }
.summary h2 { margin: 0 0 14px; }
.summary .quote { border-top: 0; padding: 0; margin: 0 0 18px; }
.preview-label { margin: 0 0 10px; }
.create-aside { display: grid; gap: 16px; position: sticky; top: 118px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.footer-brand img { border-radius: 50%; }
.footer-x { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; color: var(--dim); }
.footer-x svg { width: 16px; height: 16px; fill: currentColor; }
.footer-x:hover { color: var(--coral); }

/* ---------- Modal & toasts ---------- */
.modal { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--navy-2); color: var(--ivory); }
.modal::backdrop { background: rgba(6, 6, 30, .72); backdrop-filter: blur(4px); }
.modal-body { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h2 { font-size: 18px; }
.close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--navy-3); color: var(--dim); font-size: 18px; line-height: 1; }
.wallet-list { display: grid; gap: 10px; }
.wallet-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--navy-deep);
}
.wallet-opt:hover { border-color: rgba(255, 120, 95, .55); }
.wallet-opt .mono-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-3); font-family: var(--display); font-stretch: 125%; font-weight: 800; }
.wallet-opt strong { display: block; font-weight: 600; }
.wallet-opt small { color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
.wallet-opt .state { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--coral); }
.modal-note { margin: 16px 0 0; color: var(--faint); font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--navy-3);
  box-shadow: 0 18px 40px rgba(5, 5, 30, .45);
  font-size: 14px;
  animation: toast-in .35s var(--ease);
}
.toast .dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--coral); }
.toast small { display: block; color: var(--faint); font-family: var(--mono); font-size: 11.5px; margin-top: 2px; word-break: break-all; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .create { grid-template-columns: 1fr; }
  .token-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "aside" "activity"; }
  .aside, .create-aside { position: static; }
  .hill { gap: 22px; }
}
@media (max-width: 760px) {
  .topbar { position: relative; }
  .topbar-inner { height: auto; flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
  .nav { order: 3; width: 100%; gap: 18px; }
  .search { order: 4; width: 100%; margin: 0; }
  .wallet-slot { margin-left: auto; }
  .wallet-chip .bal { display: none; }
  .tape-live { padding-left: 16px; }
  .page { padding: 22px 16px 48px; }
  .launch-hero { min-height: 350px; align-items: flex-end; }
  .launch-intro { padding: 24px; }
  .launch-intro h1 { font-size: clamp(44px, 8vw, 62px); }
  .launch-art { background-position: 72% center; background-image: linear-gradient(90deg, rgba(18,21,39,.97), rgba(18,21,39,.85) 35%, rgba(18,21,39,.2)), url("assets/quantum-banner.webp"); }
  .launch-intro p { max-width: 27ch; margin: 14px 0 16px; }
  .hill { grid-template-columns: minmax(0, 1fr); }
  .hill > :last-child { max-width: 550px; width: 100%; margin: auto; }
  .hill-stats { grid-template-columns: repeat(2, auto); gap: 14px 28px; }
  .hill-id .emblem { width: 60px; height: 60px; }
  .chart { height: 300px; }
  .price-row, .chart-bar { padding-left: 14px; padding-right: 14px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .form-row, .socials-row { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding: 16px; }
  .socials { margin-left: 0; width: 100%; }
  .token-head { gap: 14px; }
  .token-head .emblem { width: 52px; height: 52px; border-radius: 14px; }
}
@media (max-width: 600px) {
  .launch-hero { display: block; min-height: 0; }
  .launch-art {
    position: relative;
    height: 145px;
    background-image: linear-gradient(0deg, #121527, transparent 30%), url("assets/quantum-banner.webp");
    background-position: center, right center;
    background-size: cover, auto 156px;
  }
  .launch-intro { padding: 4px 24px 24px; }
  .launch-intro p { max-width: 32ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
