/* FAILPAD: dusk after a launch. Warm charcoal with grain, a sunset glow, paper notes taped to the screen,
   brush headlines (Permanent Marker), handwriting (Caveat), Inter for reading. Stamp red is the one action colour. */
:root {
  --bg: #15110e; --surface: #1e1915; --surface-2: #29221c; --input: #110e0b;
  --ink: #f3ebdc; --muted: #ab9f8d; --faint: #75695a;
  --line: rgba(255, 236, 210, 0.08); --line-2: rgba(255, 236, 210, 0.14);
  --acc: #ff2a1f; --acc-2: #ff8a3c; --acc-ink: #fff; --acc-soft: rgba(255, 42, 31, 0.12); --ring: rgba(255, 42, 31, 0.28);
  --paper: #ece3cf; --paper-2: #ddd2b9; --paper-ink: #24201b; --sticky: #f6d35b; --gold: #ffc46b;
  --brush: "Permanent Marker", "Segoe Print", cursive; --hand: "Caveat", "Segoe Print", cursive;
  --red: #e3132c; --ok: #4ade80;
  --err-bg: rgba(227, 19, 44, 0.1); --err-ink: #ff9aa6; --err-line: rgba(227, 19, 44, 0.3);
  --r: 10px; --r-sm: 7px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(900px 520px at 85% -10%, rgba(255, 138, 60, 0.16), transparent 70%), radial-gradient(700px 500px at 30% 110%, rgba(255, 42, 31, 0.08), transparent 70%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#app { position: relative; z-index: 1; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 650; letter-spacing: -0.025em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--acc); color: #fff; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.pg { padding: 40px 0 80px; }
#view { outline: none; min-height: 100vh; display: flex; flex-direction: column; }
#view > .page-in { flex: 1; }
.page-in { animation: pageIn 0.3s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
[data-fade] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-fade].is-in { opacity: 1; transform: none; }

/* ---------- sidebar ---------- */
:root { --side: 268px; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; background: linear-gradient(180deg, #1b1612, #120f0c); border-right: 1px solid var(--line); box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.4); }
.side-in { height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 18px 16px 16px; overflow-y: auto; scrollbar-width: none; }
.brand .logo { transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .logo { transform: rotate(-14deg) scale(1.06); }
/* the "Failed ideas" note and the Failure Day sticky */
.note { position: relative; margin: 6px 4px 0; padding: 16px 16px 12px; color: var(--paper-ink); border-radius: 3px; transform: rotate(-1.4deg); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.8); font-family: var(--hand); background: repeating-linear-gradient(transparent 0 25px, rgba(60, 50, 40, 0.16) 25px 26px) 0 14px, linear-gradient(var(--paper), var(--paper-2)); }
.note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(2deg); background: rgba(236, 227, 207, 0.55); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.note-h { display: block; font-size: 23px; font-weight: 700; line-height: 1; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.note ul { list-style: none; margin: 8px 0 2px; padding: 0; }
.note li a { display: flex; align-items: baseline; gap: 8px; font-size: 19.5px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note li a:hover { color: #b3170f; }
.note li small { font-size: 16px; opacity: 0.7; overflow: hidden; text-overflow: ellipsis; }
.bx { flex: none; width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 2px; transform: translateY(1px); position: relative; }
.bx.on::after { content: ""; position: absolute; left: -2px; top: -6px; width: 16px; height: 10px; border: solid var(--acc); border-width: 0 0 3px 3px; transform: rotate(-48deg); }
.note-f { display: block; text-align: right; font-size: 18px; opacity: 0.75; }
.note-f:hover { opacity: 1; }
.sticky { position: relative; margin: 2px 22px 0 34px; padding: 12px 14px; background: var(--sticky); color: #2a2310; transform: rotate(2.4deg); box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.85); font-family: var(--hand); display: grid; line-height: 1.05; clip-path: polygon(0 0, 100% 0, 100% 84%, 86% 100%, 0 100%); }
.sticky .day-d { font-family: var(--brush); font-size: 15px; color: #d0160c; }
.sticky b { font-size: 22px; font-weight: 700; margin-top: 4px; }
.sticky small { font-size: 17px; opacity: 0.75; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand .logo { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand span { display: grid; line-height: 1.2; }
.brand b { font-family: var(--brush); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; }
.brand small { font-size: 12px; color: var(--muted); }
.side-cta { width: 100%; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav a svg { flex: none; opacity: 0.85; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.nav a.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--acc); }
.nav a.on svg { color: var(--acc); opacity: 1; }
.ca { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: 10px; }
.ca-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ca-h b { font-weight: 500; }
.ca-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ca-addr { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--input); font-size: 12px; cursor: pointer; }
.ca-addr span { font-family: var(--sans); color: var(--acc); font-weight: 500; }
.ca-addr:hover { border-color: rgba(255, 255, 255, 0.22); }
.ca-links { display: flex; gap: 14px; font-size: 12.5px; }
.ca-links a { color: var(--muted); }
.ca-links a:hover { color: var(--ink); }
.side-end { margin-top: auto; display: grid; gap: 10px; }
.side-end .wallet { width: 100%; }
.socials { display: inline-flex; gap: 6px; }
.ib { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink); border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.15s, background 0.15s; }
.ib:hover { border-color: rgba(255, 255, 255, 0.22); background: var(--surface-2); }
.ib img { border-radius: 4px; }
.main { margin-left: var(--side); min-width: 0; }
.main .wrap { width: min(1100px, 100% - 64px); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s, opacity 0.15s; white-space: nowrap; }
.btn:hover { background: #ff4a3f; border-color: #ff4a3f; }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { background: var(--surface-2); border-color: var(--line-2); color: var(--faint); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; height: 46px; font-size: 15px; }
.wallet.on { background: var(--surface); color: var(--ink); border-color: var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color 0.15s; }
.link:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip:hover { background: var(--surface-2); }
.chip.on { border-color: var(--acc); background: var(--acc-soft); color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.sm { gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.led { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.led.on { background: var(--ok); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }

/* ---------- panels ---------- */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 20px; }
.k { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { color: var(--ink); font-weight: 600; }
.empty .btn { margin-top: 8px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 5px 12px 5px 10px; border: 1px solid var(--line-2); border-radius: 99px; }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: 0; line-height: 0.98; }
.hero h1 { margin-top: 26px; font-size: clamp(44px, 5.4vw, 80px); display: grid; transform: rotate(-3deg); transform-origin: left; }
.hero h1 span { display: block; }
.hero h1 .acc { position: relative; margin-left: 0.3em; width: max-content; }
.hero h1 .acc::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.16em; height: 0.2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 90 6, 220 4, 398 8 L 396 12 C 250 10, 120 14, 6 18z' fill='%23ff2a1f'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform-origin: left; animation: swipe 0.8s 0.5s cubic-bezier(.6, .1, .2, 1) both; }
@keyframes swipe { from { transform: scaleX(0); } }
.acc { color: var(--acc); }
.hand { font-family: var(--hand); font-size: 26px; line-height: 1.15; color: var(--ink); transform: rotate(-1.5deg); margin: -10px 0 26px; max-width: 460px; }
.lede { margin: 20px 0 28px; font-size: 17px; color: var(--muted); max-width: 500px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 40px 0 0; }
.stats div { padding: 0 24px; border-left: 1px solid var(--line-2); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 500; }
.hero-r { position: relative; display: flex; justify-content: center; align-items: center; min-height: 540px; }
.hero-r::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 60, 0.25), transparent 62%); }
.launchpic { position: relative; width: 260px; aspect-ratio: 310 / 667; border-radius: 16px; overflow: hidden; transform: rotate(3deg) translateX(56px); box-shadow: 0 30px 60px -24px #000, 0 0 0 1px var(--line-2); animation: lift 6s ease-in-out infinite; }
.launchpic img { width: 100%; height: 100%; object-fit: cover; }
@keyframes lift { 50% { transform: rotate(3deg) translate(56px, -10px); } }
.paper { position: relative; background: linear-gradient(var(--paper), var(--paper-2)); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.9); }
.paper .tape { position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(236, 227, 207, 0.6); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.rp { position: absolute; left: 0; bottom: 30px; width: min(310px, 72%); transform: rotate(-4deg); z-index: 2; padding: 18px 18px 14px; }
.rp-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--paper-ink); padding-bottom: 6px; }
.rp-h b { font-family: var(--brush); font-weight: 400; font-size: 20px; }
.rp-h .mono { font-size: 12px; opacity: 0.6; }
.rp-b { display: grid; gap: 2px; transition: opacity 0.25s, transform 0.25s; }
.rp-b.out { opacity: 0; transform: translateY(4px); }
.rp-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(36, 32, 27, 0.25); font-size: 13px; }
.rp-row span { opacity: 0.6; }
.rp-row b { font-weight: 650; text-align: right; }
.rp-row.col { display: grid; gap: 2px; border-bottom: 0; }
.rp-row.col p { font-family: var(--hand); font-size: 20px; line-height: 1.1; }
.cause-t { color: #c0170d; }
.rp-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.rp-f .mono { font-size: 12px; opacity: 0.6; }
.stamp { display: inline-block; padding: 3px 10px; border: 3px solid var(--acc); border-radius: 6px; color: var(--acc); font: 700 14px/1.1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-9deg); animation: stampIn 0.45s 0.15s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes stampIn { from { transform: rotate(-9deg) scale(1.8); opacity: 0; } }

/* the banner, full width */
.billboard { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px #000, 0 0 0 1px var(--line-2); }
.billboard img { width: 100%; height: auto; }

/* hall of failures: index cards */
.hall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; padding-top: 10px; }
.hl { display: grid; gap: 8px; align-content: start; padding: 20px 18px 16px; transform: rotate(var(--r, 0deg)); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.25s; }
.hl:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 26px 40px -18px #000; }
.hl-h { display: flex; justify-content: space-between; align-items: center; }
.hl-h .mono { font-size: 12px; opacity: 0.55; }
.hl h3 { font-family: var(--brush); font-weight: 400; font-size: 24px; letter-spacing: 0; }
.hl h3 .mono { font-family: var(--mono); font-size: 11.5px; opacity: 0.55; letter-spacing: 0; }
.hl p { font-family: var(--hand); font-size: 21px; line-height: 1.1; }
.hl-go { font-size: 12.5px; font-weight: 600; color: #c0170d; margin-top: 4px; }
.tag.cause { color: #ff8a80; border-color: rgba(255, 42, 31, 0.35); background: var(--acc-soft); }
.paper .tag.cause { background: transparent; border: 1.5px solid #c0170d; color: #c0170d; font-weight: 600; }
.cc-rip { font-family: var(--brush); font-size: 17px; }
.cc-rip .mono { color: var(--acc); font-size: 12px; margin-right: 4px; }
.sec-h h2 { font-family: var(--brush); font-weight: 400; letter-spacing: 0; }

/* ---------- sections ---------- */
.sec { padding: 80px 0 0; }
.sec-h { margin-bottom: 22px; display: grid; gap: 8px; }
.sec-h h2 { font-size: clamp(24px, 2.6vw, 32px); }
.sec-h p { color: var(--muted); max-width: 640px; }
.sec-h.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-h.split > div { display: grid; gap: 8px; }
.h-pg { font-size: clamp(30px, 3.6vw, 46px); font-family: var(--brush); font-weight: 400; letter-spacing: 0; }

/* the rule */
.rule { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; align-items: center; }
.rule-l { display: grid; gap: 14px; }
.rule h2 { font-family: var(--brush); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: 0; transform: rotate(-1.5deg); transform-origin: left; }
.rule p { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.4 2.4L12 5.2' fill='none' stroke='%23ff2a1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* THINK.TXT file */
.file { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--input); overflow: hidden; }
.file-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface); }
.file-b { display: block; margin: 0; width: 100%; padding: 16px; font-size: 14px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; background: transparent; border: 0; resize: vertical; min-height: 110px; }
textarea.file-b:focus { outline: none; }
.file.edit:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--ring); }
.file-b::placeholder { color: var(--faint); }
.file-f { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.step-c { padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.step-c:first-child { border-left: 0; }
.step-c .n { font-size: 12px; color: var(--acc); margin-bottom: 16px; }
.step-c h3 { font-size: 16px; }
.step-c p { font-size: 13.5px; color: var(--muted); }

.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.2vw, 40px); }
.cta { background: linear-gradient(100deg, rgba(255, 42, 31, 0.16), rgba(255, 138, 60, 0.08) 60%, transparent), var(--surface); }
.cta p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- coin cards ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cc { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color 0.15s, background 0.15s; }
.cc:hover { border-color: var(--line-2); background: var(--surface-2); }
.cc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cc-name { display: grid; min-width: 0; flex: 1; }
.cc-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-name .mono { font-size: 12.5px; }
.cc-think { font-size: 13.5px; color: var(--muted); line-height: 1.55; border-left: 2px solid var(--acc); padding-left: 10px; }
.cc-foot { display: flex; justify-content: space-between; font-size: 12.5px; padding-top: 12px; border-top: 1px solid var(--line); }
.cc-foot b { font-weight: 500; }
.av { width: 42px; height: 42px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 68px; height: 68px; border-radius: 12px; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.search { display: flex; gap: 6px; }
.search input { height: 34px; width: 260px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--input); font-size: 13.5px; }
.search input:focus { outline: none; border-color: var(--acc); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; font-size: 13px; }
.field > span:first-child { font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.field em { font-style: normal; color: var(--faint); font-weight: 400; font-size: 12px; }
.field input, .field textarea, .field select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--input); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--ring); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tick-in { position: relative; display: block; }
.tick-in i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-family: var(--mono); }
.tick-in input { padding-left: 26px; font-family: var(--mono); text-transform: uppercase; }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--acc); background: var(--acc-soft); }
.drop.has { border-style: solid; }
.drop .th { width: 46px; height: 46px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; color: var(--muted); overflow: hidden; flex: none; }
.drop .th img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 500; font-size: 13.5px; }
.drop small { color: var(--muted); font-size: 12px; }
.status { padding: 11px 13px; border-radius: var(--r-sm); font-size: 13px; border: 1px solid var(--line); background: var(--input); }
.status.err { border-color: var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.status.ok { border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); color: var(--ink); }

/* ---------- launch ---------- */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.bld-l { display: grid; gap: 12px; }
.step { padding: 20px; display: grid; gap: 14px; }
.step header { display: flex; align-items: baseline; gap: 10px; }
.step .num { font-size: 12px; color: var(--acc); }
.step h2 { font-size: 16px; }
.step small { margin-left: auto; color: var(--faint); font-size: 12px; }
.models { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.model { display: grid; gap: 1px; justify-items: center; padding: 9px 4px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--input); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.model b { font-weight: 600; font-size: 14px; }
.model span { font: 11px var(--mono); color: var(--faint); }
.model:hover { background: var(--surface-2); }
.model.on { border-color: var(--acc); background: var(--acc-soft); }
.model.on span { color: var(--acc); }
.bld-r { position: sticky; top: 24px; }
.preview { padding: 18px; display: grid; gap: 14px; }
.pv-h { display: flex; align-items: center; gap: 12px; }
.pv-h .av { width: 48px; height: 48px; }
.pv-h b { display: block; font-weight: 600; font-size: 15px; }
.pv-h .mono { font-size: 12px; }
.pv-h .tag { margin-left: auto; }
.preview .file-b { min-height: 80px; font-size: 13px; color: var(--muted); }
.check { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.check span { display: inline-flex; align-items: center; gap: 6px; }
.check span.ok { color: var(--ink); }

/* ---------- coin ---------- */
.coin-h { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.coin-h > div { display: grid; gap: 8px; }
.coin-h .share { margin-left: auto; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; }
.coin-img { overflow: hidden; max-width: 420px; }
.coin-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about { margin-top: 8px; color: var(--muted); }
.facts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 500; }
.facts a { color: var(--acc); }
.facts a:hover { text-decoration: underline; }

/* ---------- footer, toasts ---------- */
.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 24px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--ink); }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 10px 15px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 13.5px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7); animation: pageIn 0.25s both; max-width: min(520px, 92vw); }
.toast.err { background: #3d1118; border-color: var(--err-line); }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.4s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .hero-r { order: -1; }
  .bld, .coin-grid { grid-template-columns: 1fr; }
  .bld-r { position: static; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 32px; }
  .lt { width: min(380px, 92%); }
  .rule { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .bld, .coin-grid { grid-template-columns: 1fr; }
  .bld-r { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-c:nth-child(3) { border-left: 0; }
  .step-c:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cgrid, .hall { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .side { position: sticky; top: 0; inset: auto; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); background: #17130f; }
  .side-in { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; overflow: visible; }
  .brand small, .side-cta, .ca, .note, .sticky { display: none; }
  .brand .logo { width: 36px; height: 36px; }
  .side-end { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; }
  .side-end .wallet { width: auto; height: 34px; padding: 0 12px; font-size: 13px; }
  .nav { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; z-index: 50; padding: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 10px 30px -10px #000; }
  .nav a { height: 36px; padding: 0 12px; font-size: 13px; gap: 7px; white-space: nowrap; }
  .nav a.on { box-shadow: none; }
  .main { margin-left: 0; }
  .main .wrap { width: min(1100px, 100% - 32px); }
  .foot { padding-bottom: 70px; }
}
@media (max-width: 720px) {
  .brand b { display: none; }
  .socials .ib:nth-child(n + 3) { display: none; }
  .steps, .cgrid, .fields, .hall { grid-template-columns: 1fr; }
  .hero-r { min-height: 460px; }
  .launchpic { width: 200px; }
  .step-c { border-left: 0; border-top: 1px solid var(--line); }
  .step-c:first-child { border-top: 0; }
  .models { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, auto); gap: 16px 0; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .search, .search input { width: 100%; }
  .cta { padding: 24px; }
  .sec { padding-top: 60px; }
}
@media (max-width: 400px) { .nav a svg { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-fade] { opacity: 1; transform: none; } }

/* launch: causes of death + the paper post-mortem preview */
.models { grid-template-columns: repeat(4, 1fr); }
.model { padding: 11px 6px; }
.model b { font-size: 13px; font-weight: 550; text-align: center; }
.pv-pm { position: relative; left: auto; bottom: auto; width: auto; transform: rotate(-1deg); margin: 6px 2px 4px; }
.pv-pm .rp-row.col p { min-height: 44px; }
.h-pg.brush { font-weight: 400; letter-spacing: 0; transform: rotate(-1.5deg); transform-origin: left; }
@media (max-width: 720px) { .models { grid-template-columns: 1fr 1fr; } .rp { left: -4px; } }
