/* fatsats: a dark room, an old CRT, an anonymous cat, and a phosphor
   terminal inside the screen. Monochrome throughout; emphasis is carried by
   weight and inversion. The cat's eyes are the only warm thing in the room. */

:root {
  --bg: #08080a;
  --surface: #0e0e11;
  --surface-2: #131317;
  --surface-3: #1a1a1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #dfe6df;
  --text-2: #aeb6ae;
  --muted: #78807a;
  --faint: #485049;
  --inverse: #0a0a0b;
  --eye: #f0a43c;

  /* Display face is the CRT bitmap font; everything else is Anonymous Pro. */
  --display: "VT323", "Anonymous Pro", ui-monospace, monospace;
  --mono: "Anonymous Pro", ui-monospace, "SF Mono", Menlo, monospace;
  --glow: 0 0 1px rgba(223, 230, 223, 0.55), 0 0 12px rgba(223, 230, 223, 0.14);

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--mono);
  -webkit-font-smoothing: antialiased;
}
body.landing { overflow: hidden; }
::selection { background: var(--text); color: var(--inverse); text-shadow: none; }
a { color: inherit; }
button { font-family: inherit; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.mark { width: 30px; height: 30px; border-radius: 7px; display: block; }
.wordmark { font: 700 15px/1 var(--mono); letter-spacing: 0.02em; }

/* ======================================================================
   Landing: the room
   ====================================================================== */
.stage { position: fixed; inset: 0; z-index: 1; background: #050506; }
.stage canvas { display: block; width: 100%; height: 100%; }
.landing-ui {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 28px 30px; transition: opacity 0.6s ease;
}
body.entering .landing-ui, body.inside .landing-ui { opacity: 0; }
body.inside .landing-ui, body.inside .stage { visibility: hidden; }
.landing-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.landing-tag { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.landing-bottom {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  margin: 0 -28px -30px; padding: 60px 28px 30px;
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 6, 0.85) 55%);
}
.landing-line { margin: 0; font: 400 clamp(22px, 2.8vw, 32px)/1.1 var(--display); color: var(--text-2); text-shadow: var(--glow); }
.landing-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.jack-in {
  pointer-events: auto; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--text);
  font: 400 13px/1 var(--mono); letter-spacing: 0.05em;
  padding: 11px 18px; border-radius: 999px; backdrop-filter: blur(6px);
  transition: background .15s, color .15s, border-color .15s;
}
.jack-in:hover, body.hover-monitor #jack-in { background: var(--text); color: var(--inverse); border-color: var(--text); }
.jack-in.ghosted { color: var(--text-2); border-style: dashed; }
.jack-in.lit {
  background: var(--text); color: var(--inverse); border-color: var(--text);
  box-shadow: 0 0 22px rgba(223, 230, 223, 0.28); animation: beacon 3.2s ease-in-out infinite;
}
.jack-in.lit:hover { background: #fff; }
.jack-in .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 14px rgba(223,230,223,.18); } 50% { box-shadow: 0 0 30px rgba(223,230,223,.42); } }
body.no-stage .stage, body.no-stage .landing-ui { display: none; }

/* ======================================================================
   Inside: the terminal
   ====================================================================== */
.terminal {
  position: fixed; inset: 0; z-index: 10;
  background: radial-gradient(1200px 700px at 50% 0%, rgba(223, 230, 223, 0.05), transparent 70%), #060707;
  text-shadow: var(--glow); transform-origin: 50% 50%;
}
.terminal .crt { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; scrollbar-color: var(--faint) transparent; }
.crt-lines, .crt-vignette { position: absolute; inset: 0; pointer-events: none; }
.crt-lines { z-index: 3; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.2) 2px 3px); animation: flicker 6s infinite steps(60); }
.crt-vignette { z-index: 4; background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.6) 100%); box-shadow: inset 0 0 120px rgba(0,0,0,.7); }
@keyframes flicker { 0%, 100% { opacity: .85; } 47% { opacity: .85; } 48% { opacity: 1; } 49% { opacity: .8; } }
.terminal.power-on { animation: power-on .75s cubic-bezier(.2,.7,.2,1) both; }
.terminal.power-off { animation: power-off .45s cubic-bezier(.6,0,.8,.4) both; }
@keyframes power-on {
  0% { transform: scale(.6, .004); filter: brightness(4); opacity: .9; }
  35% { transform: scale(1, .004); filter: brightness(3); opacity: 1; }
  70% { transform: scale(1, 1); filter: brightness(1.6); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}
@keyframes power-off {
  0% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
  55% { transform: scale(1, .004); filter: brightness(3); opacity: 1; }
  100% { transform: scale(0, .004); filter: brightness(5); opacity: 0; }
}

/* ---------- top bar ---------- */
.top { width: 100%; max-width: var(--max); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.whoami { margin-left: 14px; font: 400 12px/1 var(--mono); color: var(--faint); }
.status { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px;
  border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  font: 400 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .03em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.08); animation: blink 2s steps(1) infinite; }
.connect-pill { cursor: pointer; background: var(--text); color: var(--inverse); border-color: var(--text); text-shadow: none; font-weight: 700; }
.connect-pill:hover { background: #fff; }
.eject { cursor: pointer; color: var(--text-2); }
.eject:hover { color: var(--inverse); background: var(--text); border-color: var(--text); text-shadow: none; }

/* ---------- hero ---------- */
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero { padding: 40px 0 34px; }
.bootlog { margin: 0 0 26px; min-height: 7.5em; font: 400 13px/1.5 var(--mono); color: var(--muted); white-space: pre-wrap; }
h1 { margin: 0; font: 400 clamp(46px, 7vw, 88px)/.95 var(--display); color: var(--text); }
h1 em { font-style: normal; background: var(--text); color: var(--inverse); padding: 0 .12em; box-shadow: 0 0 18px rgba(223,230,223,.25); text-shadow: none; }
.lede { max-width: 600px; margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.redact { background: var(--text-2); color: transparent; border-radius: 2px; padding: 0 2px; user-select: none; text-shadow: none; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-stats div { padding: 16px 18px; display: grid; gap: 4px; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats > div > span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.hero-stats b { font: 400 34px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stats small { font: 400 13px var(--mono); color: var(--faint); }
.recent { margin-top: 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.recent-label { font: 400 11px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.recent-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font: 400 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip i { font-style: normal; color: var(--faint); margin-left: 6px; }

/* ---------- tabs ---------- */
.modes { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 0; margin: 6px 0 18px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.mode-btn { background: transparent; border: 0; color: var(--muted); font: 400 13px/1 var(--mono); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; text-shadow: inherit; }
.mode-btn:hover { color: var(--text); }
.mode-btn.on { background: var(--text); color: var(--inverse); text-shadow: none; }
.tab { padding-bottom: 72px; animation: tab-in .35s ease both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- panels & fields ---------- */
.panel { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 120px), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.section-head.pad { padding: 22px 24px 0; }
.section-head h2 { margin: 0; font: 400 34px/1 var(--display); }
.section-head .sub { font-size: 12px; color: var(--faint); }

.field {
  display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 0 14px; transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: rgba(255,255,255,.32); box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.field .prompt { font: 700 13px/1 var(--mono); color: var(--faint); margin-right: 10px; min-width: 10px; }
.field input, .field textarea {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text);
  font: 400 15px/1.4 var(--mono); padding: 13px 0; resize: vertical; text-shadow: inherit;
}
.field.area { align-items: flex-start; }
.field.area .prompt { margin-top: 15px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.knobs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-left: 4px; }
.knobs label { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); color: var(--muted); }
.knobs select, .knob-num {
  appearance: none; background: transparent; border: 0; border-bottom: 1px dashed var(--faint);
  color: var(--text); font: 700 12.5px/1 var(--mono); padding: 4px 2px; cursor: pointer; text-shadow: inherit;
}
.knob-num { width: 64px; cursor: text; outline: 0; }
.knobs select option { background: var(--surface-2); }
.knob-note { font-size: 11.5px; color: var(--faint); }

/* ---------- launch ---------- */
.launch-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.form-panel, .split-panel { padding: 24px; display: grid; gap: 14px; }
.form-top { display: grid; grid-template-columns: 132px 1fr; gap: 14px; }
.form-top-fields { display: grid; gap: 10px; align-content: start; }
.row.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upload {
  height: 132px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  overflow: hidden; background: var(--surface-2); transition: border-color .15s, background .15s;
}
.upload:hover, .upload.drag { border-color: var(--text-2); background: var(--surface-3); }
.upload img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); }
.upload-empty { display: grid; gap: 4px; text-align: center; color: var(--text-2); font-size: 13px; }
.upload-empty small { color: var(--faint); font-size: 11px; }

.split-panel { position: sticky; top: 16px; }
.big-pct { font: 400 96px/.8 var(--display); display: flex; align-items: baseline; gap: 10px; }
.big-pct small { font: 400 14px var(--mono); color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) calc(var(--v, 50) * 1%), var(--line-2) 0); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--text); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 22px; margin-top: -10px; border-radius: 3px; background: var(--text); box-shadow: 0 0 12px rgba(223,230,223,.5); }
input[type=range]::-moz-range-thumb { width: 14px; height: 22px; border: 0; border-radius: 3px; background: var(--text); }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.presets button { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font: 400 12px/1 var(--mono); padding: 9px 0; border-radius: 8px; cursor: pointer; text-shadow: inherit; }
.presets button:hover { border-color: var(--text-2); color: var(--text); }
.presets button.on { background: var(--text); color: var(--inverse); border-color: var(--text); text-shadow: none; }
.ascii-split { margin: 0; font: 400 13px/1.5 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.ladder { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ladder div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.ladder div + div { border-top: 1px dashed var(--line-2); }
.ladder b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.persona { margin: 0; font-size: 12.5px; color: var(--text-2); min-height: 1.4em; }
.cta {
  width: 100%; border: 0; border-radius: 10px; padding: 16px; cursor: pointer;
  background: var(--text); color: var(--inverse); font: 700 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 22px rgba(223,230,223,.22); transition: background .15s;
}
.cta:hover { background: #fff; }
.cta:disabled { opacity: .5; cursor: progress; }
.msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--text-2); }
.msg.err { color: #e9b4ad; }
.fine { margin: 0; font-size: 12px; color: var(--faint); }

/* ---------- coins ---------- */
.coin-tools { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.coin-tools .search { flex: 1; min-width: 240px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.coin { padding: 18px; display: grid; gap: 14px; cursor: pointer; transition: border-color .15s, transform .15s; }
.coin:hover { border-color: var(--line-2); transform: translateY(-2px); }
.coin-top { display: flex; gap: 12px; align-items: center; }
.coin-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; font: 400 22px/1 var(--display); color: var(--text-2); flex: none; filter: grayscale(.5) contrast(1.05); }
.coin-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.coin-sym { font-size: 12px; color: var(--muted); }
.tag { margin-left: auto; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.inv { background: var(--text); color: var(--inverse); border-color: var(--text); text-shadow: none; }
.coin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-stats div { font-size: 11px; color: var(--faint); display: grid; gap: 2px; }
.coin-stats b { font: 400 24px/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.bar { font: 400 12px/1 var(--mono); color: var(--text-2); white-space: pre; overflow: hidden; }
.spark { width: 100%; height: 30px; display: block; }
.spark path { fill: none; stroke: var(--text); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.spark .area { fill: rgba(223,230,223,.07); stroke: none; }
.empty { color: var(--faint); text-align: center; padding: 48px 0; }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
th { font: 400 11px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
tbody tr:first-child td:first-child { color: var(--inverse); }
tbody tr:first-child td:first-child span { background: var(--text); padding: 2px 6px; border-radius: 4px; text-shadow: none; }
.td-coin { display: flex; gap: 10px; align-items: center; }
.td-coin .coin-img { width: 30px; height: 30px; font-size: 16px; border-radius: 7px; }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; align-items: start; }
.photo { margin: 0; overflow: hidden; position: sticky; top: 16px; }
.photo img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; filter: contrast(1.05); }
.photo figcaption { padding: 14px 18px; font-size: 12px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { padding: 20px 22px; display: grid; grid-template-columns: 54px 1fr; gap: 14px; }
.step .num { font: 400 40px/1 var(--display); color: var(--faint); }
.step h3 { margin: 0 0 6px; font: 400 30px/1 var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step b { color: var(--text); }
.flow { margin: 14px 0 0; padding: 22px 24px; font: 400 13px/1.7 var(--mono); color: var(--text-2); overflow-x: auto; white-space: pre; }
.flow b { background: var(--text); color: var(--inverse); padding: 0 4px; text-shadow: none; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 400 26px/1.1 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '[+]'; font: 400 13px var(--mono); color: var(--faint); }
.faq details[open] summary::after { content: '[–]'; color: var(--text); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
.foot { width: 100%; max-width: var(--max); margin: 0 auto; padding: 26px 24px 34px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.foot p { margin: 0 0 8px; }
.foot-meta { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- modal ---------- */
.modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: #0b0c0c; color: var(--text); text-shadow: var(--glow); }
.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: power-on .5s cubic-bezier(.2,.7,.2,1) both; }
.modal-inner { padding: 26px; position: relative; }
.close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.close:hover { color: var(--text); }
.m-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.m-head .coin-img { width: 60px; height: 60px; font-size: 28px; }
.m-head h3 { margin: 0; font: 400 40px/1 var(--display); }
.m-desc { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.m-links { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.m-links a { text-decoration: none; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.m-grid div { padding: 12px 14px; font-size: 11px; color: var(--faint); display: grid; gap: 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-grid b { font: 400 26px/1 var(--display); color: var(--text); }
.m-addr { display: grid; gap: 6px; font-size: 12px; color: var(--muted); word-break: break-all; margin-bottom: 16px; }
.m-addr button { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 5px; font: 400 10px var(--mono); padding: 1px 6px; margin-left: 6px; cursor: pointer; }
.m-addr button:hover { color: var(--inverse); background: var(--text); text-shadow: none; }
.m-edit { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; display: grid; gap: 10px; margin-bottom: 16px; }
.m-edit-row { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.m-edit-row input { flex: 1; }
.m-edit-row output { width: 44px; text-align: right; color: var(--text); }
.m-edit .cta { padding: 12px; }
.m-log { display: grid; max-height: 220px; overflow: auto; font-size: 12.5px; }
.m-log div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); color: var(--text-2); }
.m-log div span:last-child { color: var(--faint); flex: none; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px); opacity: 0; z-index: 60; pointer-events: none;
  background: var(--text); color: var(--inverse); font: 700 13px/1.3 var(--mono); padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 0 30px rgba(223,230,223,.25); transition: all .25s ease; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .launch-grid, .how-grid { grid-template-columns: 1fr; }
  .split-panel, .photo { position: static; }
  .photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .landing-ui { padding: 16px 16px 22px; }
  .landing-bottom { margin: 0 -16px -22px; padding: 60px 16px 22px; }
  .landing-tag, .hide-sm, .whoami { display: none; }
  .top { padding: 16px; }
  main { padding: 0 16px; }
  #mode-pill { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .modes { border-radius: 14px; }
  .mode-btn { padding: 9px 12px; }
  .form-top, .row.three { grid-template-columns: 1fr; }
  .upload { height: 110px; }
  .big-pct { font-size: 76px; }
  th, td { padding: 12px 12px; }
  .hide-col { display: none; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .crt-lines, .jack-in .caret, .jack-in.lit, .pill .dot { animation: none; }
  .terminal.power-on, .terminal.power-off, .modal[open], .tab { animation: none; }
}

/* Grid children must be allowed to shrink below their pre/ascii content. */
.launch-grid > *, .how-grid > *, .coin-grid > *, .form-top > *, .row.three > * { min-width: 0; }
.ascii-split, .bar { text-overflow: clip; max-width: 100%; }
.form-panel, .split-panel { grid-template-columns: minmax(0, 1fr); }
.launch-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 920px) { .launch-grid, .how-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- launch wallet ---------- */
.wallet-box { border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-title { font: 400 26px/1 var(--display); }
.modes.small { margin: 0; }
.modes.small .mode-btn { padding: 7px 12px; font-size: 12px; }
.wb-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.wb-note b { color: var(--text); }
.ghost-btn { justify-self: start; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 10px 16px; font: 400 13px/1 var(--mono); cursor: pointer; text-shadow: inherit; margin-top: 10px; }
.ghost-btn:hover { background: var(--text); color: var(--inverse); border-color: var(--text); text-shadow: none; }
#burner-live { display: grid; gap: 10px; }
.wb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.wb-row > span { width: 78px; flex: none; }
.wb-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 400 12.5px/1.4 var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.wb-row code.masked { letter-spacing: .1em; color: var(--faint); }
.mini { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 6px; font: 400 11px/1 var(--mono); padding: 6px 8px; cursor: pointer; text-shadow: inherit; }
.mini:hover { background: var(--text); color: var(--inverse); text-shadow: none; }
.wb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--text-2); cursor: pointer; }
.wb-check input { accent-color: #dfe6df; margin-top: 2px; }
.wb-fund { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; }
.wb-fund div { padding: 10px 12px; display: grid; gap: 2px; font-size: 11px; color: var(--faint); }
.wb-fund div + div { border-left: 1px solid var(--line); }
.wb-fund b { font: 400 24px/1 var(--display); color: var(--text); }
.wb-fund b.ok { background: var(--text); color: var(--inverse); padding: 0 4px; justify-self: start; text-shadow: none; }
.wb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 600px) { .wb-fund { grid-template-columns: 1fr 1fr; } .wb-fund div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } .wb-row > span { width: 100%; } }

/* ---------- pair picker ---------- */
.pair-pick { position: relative; display: grid; gap: 8px; }
.pp-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.pp-label { font: 400 12px/1 var(--mono); color: var(--muted); }
.pp-current {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
  font: 400 14px/1 var(--mono); text-shadow: inherit; text-align: left;
}
.pp-current:hover, .pp-current[aria-expanded="true"] { border-color: rgba(255,255,255,.32); }
.pp-current b { font-weight: 700; }
.pp-current small { color: var(--muted); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-caret { color: var(--faint); }
.pp-current img, .pp-list img, .pp-fallback { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.pp-fallback { display: grid; place-items: center; font-size: 13px; color: var(--text-2); }
.pp-menu {
  position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 6px; padding: 10px; display: grid; gap: 8px;
  background: #0b0c0c; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.pp-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-cats button { background: transparent; border: 1px solid var(--line-2); color: var(--text-2); border-radius: 999px; padding: 5px 10px; font: 400 11px/1 var(--mono); cursor: pointer; text-shadow: inherit; }
.pp-cats button.on { background: var(--text); color: var(--inverse); border-color: var(--text); text-shadow: none; }
.pp-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; display: grid; gap: 2px; scrollbar-color: var(--faint) transparent; }
.pp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pp-list li:hover, .pp-list li.on { background: rgba(255,255,255,.05); }
.pp-list li b { min-width: 72px; }
.pp-list li span { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-list li i { font-style: normal; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.pp-list .pp-empty { color: var(--faint); cursor: default; }
.pair-tag { color: var(--faint); }
.wb-fund em { font: 400 13px var(--mono); font-style: normal; color: var(--text-2); }
.pp-list li.featured i, .pp-list li i.feat { color: #ff8a1f; }

/* ---------- X (Twitter) link ---------- */
.landing-right { display: inline-flex; align-items: center; gap: 16px; }
.x-link {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; font: 400 12px/1 var(--mono);
  backdrop-filter: blur(6px); transition: background .15s, color .15s, border-color .15s;
}
.x-link svg, .x-pill svg, .foot-x svg { width: 14px; height: 14px; flex: none; }
.x-link:hover { background: var(--text); color: var(--inverse); border-color: var(--text); }
.x-link:hover svg { color: #ff8a1f; }
.x-pill { color: var(--text-2); text-decoration: none; padding: 6px 9px; }
.x-pill:hover { color: var(--inverse); background: var(--text); border-color: var(--text); text-shadow: none; }
.foot-x { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); text-decoration: none; text-transform: none; letter-spacing: 0; }
.foot-x:hover { color: #ff8a1f; }
@media (max-width: 600px) { .landing-right .landing-tag { display: none; } .x-link span { display: none; } .x-link { padding: 8px; } }

/* ---------- official coin ---------- */
.official { margin-top: 18px; padding: 18px 20px; display: grid; gap: 12px; border-color: rgba(255,138,31,.35); box-shadow: 0 0 0 1px rgba(255,138,31,.08), 0 0 40px -18px rgba(255,138,31,.5); }
.off-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.official .tag { margin-left: 0; }
.off-status { font: 400 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.off-main { display: flex; gap: 14px; align-items: center; }
.off-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,138,31,.4); }
.off-id b { display: block; font: 400 36px/1 var(--display); }
.off-id small { color: var(--muted); font-size: 12.5px; }
.off-id a { color: #ff8a1f; }
.off-ca { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.off-ca code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 700 14px/1.4 var(--mono); color: var(--text); background: var(--surface-2); border: 1px dashed rgba(255,138,31,.45); border-radius: 8px; padding: 10px 12px; }
.ca-copy { background: #ff8a1f; color: #0a0a0b; border: 0; border-radius: 8px; padding: 10px 14px; font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; text-shadow: none; }
.ca-copy:hover { background: #ffa04a; }
.off-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.off-stats div { padding: 10px 12px; display: grid; gap: 2px; font-size: 11px; color: var(--faint); }
.off-stats div + div { border-left: 1px solid var(--line); }
.off-stats b { font: 400 24px/1 var(--display); color: var(--text); }
.off-stats b.up { color: #f0c27c; }
.off-links { display: flex; gap: 6px; flex-wrap: wrap; }
.off-links a { text-decoration: none; }
.ca-chip {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px 8px 8px 14px; border: 1px solid rgba(255,138,31,.5); border-radius: 999px; background: rgba(10,10,11,.7); backdrop-filter: blur(6px);
  font: 400 12px/1 var(--mono); color: var(--text-2);
}
.ca-chip .ca-tag { color: #ff8a1f; text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.ca-chip b { color: var(--text); }
.ca-chip code { font: 700 12px/1 var(--mono); color: var(--text); }
.ca-chip .ca-copy { border-radius: 999px; padding: 8px 12px; }
@media (max-width: 600px) { .off-stats { grid-template-columns: repeat(2, 1fr); } .off-stats div:nth-child(3) { border-left: 0; } .off-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
