:root {
  --bg: #0A0A12; --bg-2: #10101A; --card: rgba(255, 255, 255, .035); --card-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #F2F2F7; --dim: #A3A3B5; --faint: #6B6B80;
  --sol: #9A7BFF; --sol-2: #7B5CFF; --ely: #4FF0C2; --ely-2: #22D3A0; --down: #FF6B8A;
  --grad: linear-gradient(90deg, #9A7BFF 0%, #4FF0C2 100%);
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --max: 1200px; --gut: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--sans); overflow-x: hidden; min-height: 100vh; padding-bottom: 46px; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 600px at 12% -10%, rgba(154, 123, 255, .16), transparent 60%), radial-gradient(800px 600px at 95% 10%, rgba(79, 240, 194, .10), transparent 60%); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 70%); }
header, main, footer { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ely); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); } .muted { color: var(--dim); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- nav (capsule) */
header { position: sticky; top: 0; z-index: 10; padding: 12px var(--gut) 0; }
.nav { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 14, 22, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand .tile { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(145deg, #1D1A33, #0F1D1A); border: 1px solid var(--line-2); }
.brand .tile svg { width: 20px; height: 14px; }
.nav .links { display: flex; gap: 4px; }
.nav .links a { text-decoration: none; color: var(--dim); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 10px; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--text); background: var(--card-2); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: 500 12.5px var(--mono); color: var(--dim); cursor: pointer; }
.ca-chip b { color: var(--text); font-weight: 600; }
.ca-chip .cp { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--card-2); }
.ca-chip svg { width: 12px; height: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; text-decoration: none; color: var(--dim); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .nav .links, .nav .ca-chip { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .15s, filter .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ely); color: #04241B; box-shadow: 0 0 0 1px rgba(79, 240, 194, .3), 0 8px 30px -8px rgba(79, 240, 194, .55); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.violet { background: var(--sol-2); color: #fff; box-shadow: 0 8px 30px -8px rgba(123, 92, 255, .7); }
.btn.ghost { background: var(--card); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--card-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: clamp(40px, 7vw, 88px) 0 30px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--dim); }
.badge .tag { background: rgba(79, 240, 194, .14); color: var(--ely); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.badge .tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ely); box-shadow: 0 0 10px var(--ely); }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 0; }
.hero h1 span { display: block; }
.hero .lede { color: var(--dim); font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; margin: 22px 0 0; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.token-card { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 12px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 100%; }
.token-card .tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #1D1A33, #0F1D1A); border: 1px solid var(--line-2); flex: none; }
.token-card .tile svg { width: 26px; height: 18px; }
.token-card b { display: block; font-size: 15px; }
.token-card small { color: var(--faint); font-size: 12.5px; }
.token-card .ca { font: 500 13px var(--mono); color: var(--dim); padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); display: flex; gap: 8px; align-items: center; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.token-card .ca svg { width: 13px; height: 13px; flex: none; }

/* the hero visual: two glossy coins in a glowing tile, with floating chain chips */
.visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-left: auto; }
.visual .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid var(--line); }
.visual .ring.r2 { inset: 16%; border-color: rgba(255, 255, 255, .05); }
.visual .glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 50%, rgba(154, 123, 255, .45), transparent 55%), radial-gradient(circle at 65% 50%, rgba(79, 240, 194, .35), transparent 55%); filter: blur(30px); }
.visual .tile { position: absolute; inset: 22%; border-radius: 30%; background: linear-gradient(150deg, #191629 0%, #0E1A18 100%); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .8); display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.visual .coins { position: relative; width: 74%; aspect-ratio: 1.55; }
.visual .coin { position: absolute; top: 0; width: 64%; aspect-ratio: 1; border-radius: 50%; }
.visual .coin.s { left: 0; background: radial-gradient(circle at 32% 28%, #D9CCFF 0%, #9A7BFF 32%, #5B3BE0 70%, #2D1C7A 100%); box-shadow: 0 0 60px -10px rgba(154, 123, 255, .8), inset -8px -12px 30px rgba(20, 8, 60, .55); }
.visual .coin.e { right: 0; background: radial-gradient(circle at 32% 28%, #D6FFF3 0%, #4FF0C2 34%, #17B488 70%, #0A5A45 100%); box-shadow: 0 0 60px -10px rgba(79, 240, 194, .7), inset -8px -12px 30px rgba(4, 40, 30, .5); mix-blend-mode: screen; }
.visual .chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(18, 18, 28, .85); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8); }
.visual .chip i { width: 8px; height: 8px; border-radius: 50%; }
.visual .chip small { color: var(--faint); font-weight: 600; }
.visual .c1 { left: 0; top: 18%; animation: float 6s ease-in-out infinite .5s; } .visual .c1 i { background: var(--sol); box-shadow: 0 0 10px var(--sol); }
.visual .c2 { right: 0; top: 30%; animation: float 6.5s ease-in-out infinite 1s; } .visual .c2 i { background: var(--ely); box-shadow: 0 0 10px var(--ely); }
.visual .c3 { left: 10%; bottom: 12%; animation: float 7s ease-in-out infinite 1.6s; }
.visual .c4 { right: 6%; bottom: 20%; animation: float 6.2s ease-in-out infinite .2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .visual .tile, .visual .chip { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .visual { max-width: 400px; margin: 0 auto; } }
@media (max-width: 480px) { .visual .chip { font-size: 12px; padding: 6px 10px; } .visual .c3, .visual .c4 { display: none; } }

/* ---------------------------------------------------------------- sections */
section.block { padding-top: clamp(64px, 9vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ely); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.eyebrow i { width: 16px; height: 2px; background: var(--grad); border-radius: 2px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; margin: 0 0 12px; max-width: 22ch; }
.intro { color: var(--dim); max-width: 60ch; margin: 0 0 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }

/* the tool, on home and on /twin */
.tool { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool .card { padding: 24px; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.tool-head .n { width: 32px; height: 32px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; }
.tool-head .n svg { width: 16px; height: 16px; }
.input-row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(0, 0, 0, .3); }
.input-row:focus-within { border-color: rgba(79, 240, 194, .5); box-shadow: 0 0 0 4px rgba(79, 240, 194, .08); }
.input-row input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 12px; font: 500 14px var(--mono); }
.input-row input::placeholder { font-family: var(--sans); color: var(--faint); }
.msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--dim); }
.msg.err { color: var(--down); }
.msg a { color: var(--ely); }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 18px; }
.pc { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); min-width: 0; }
.pc img, .pc .ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card-2); }
.pc.s img, .pc.s .ph { box-shadow: 0 0 0 2px var(--sol); } .pc.e img, .pc.e .ph { box-shadow: 0 0 0 2px var(--ely); }
.pc .t { min-width: 0; }
.pc b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc small { color: var(--faint); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.pc small i { width: 6px; height: 6px; border-radius: 50%; }
.pc.s small i { background: var(--sol); } .pc.e small i { background: var(--ely); }
.pc.on.s { border-color: rgba(154, 123, 255, .4); background: rgba(154, 123, 255, .06); } .pc.on.e { border-color: rgba(79, 240, 194, .35); background: rgba(79, 240, 194, .05); }
.arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--dim); }
.arrow svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .pairs { grid-template-columns: minmax(0, 1fr); } .arrow { margin: 0 auto; transform: rotate(90deg); } }
.field { margin-top: 20px; }
.field > label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field > label output { font-family: var(--mono); color: var(--dim); font-weight: 500; }
.amount { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 16px; background: rgba(0, 0, 0, .3); }
.amount:focus-within { border-color: rgba(79, 240, 194, .5); }
.amount input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 22px; font-weight: 800; outline: none; }
.amount b { color: var(--dim); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--dim); }
.chip[aria-pressed="true"] { border-color: rgba(79, 240, 194, .5); color: var(--ely); background: rgba(79, 240, 194, .08); }
.fine { font-size: 13px; color: var(--faint); margin: 10px 0 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row:first-child { border-top: 0; }
.row span { color: var(--dim); } .row b { white-space: nowrap; }
.row.total { font-size: 17px; } .row.total b { color: var(--ely); }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(154, 123, 255, .1); border: 1px solid rgba(154, 123, 255, .2); margin-top: 14px; font-size: 14px; color: var(--dim); }
.notice a { color: var(--text); }
.notice.ok { background: rgba(79, 240, 194, .08); border-color: rgba(79, 240, 194, .25); }
.notice.err { background: rgba(255, 107, 138, .1); border-color: rgba(255, 107, 138, .25); color: var(--down); }
.progress { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 14px; }
.progress li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.progress li.done { color: var(--text); } .progress li.done i { background: var(--ely); border-color: var(--ely); }
.progress li.now { color: var(--text); font-weight: 700; } .progress li.now i { border-color: var(--sol); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(154, 123, 255, .2); } }

/* latest twins list (beside the tool) */
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.list-head a { color: var(--dim); font-size: 14px; text-decoration: none; font-weight: 600; }
.trow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; border: 1px solid transparent; }
.trow:hover { background: var(--card-2); border-color: var(--line); }
.duo { display: flex; flex: none; }
.duo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.duo img:first-child { box-shadow: 0 0 0 2px var(--sol); } .duo img:last-child { box-shadow: 0 0 0 2px var(--ely); margin-left: -10px; }
.trow .t { min-width: 0; flex: 1; } .trow b { display: block; font-size: 15px; } .trow small { color: var(--faint); font-size: 12.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--dim); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--ely); background: rgba(79, 240, 194, .1); }
.status.funding, .status.launching, .status.snapshot, .status.paid { color: var(--sol); background: rgba(154, 123, 255, .12); }
.empty-mini { text-align: center; padding: 34px 16px; color: var(--dim); font-size: 14px; border: 1px dashed var(--line-2); border-radius: 14px; }

/* steps, sim, guarantees, fees, faq */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; font-size: 15px; margin-bottom: 16px; border: 1px solid var(--line-2); }
.step.s1 .n { color: var(--sol); background: rgba(154, 123, 255, .1); } .step.s2 .n { color: var(--text); background: var(--card-2); } .step.s3 .n { color: var(--ely); background: rgba(79, 240, 194, .1); }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .sim { grid-template-columns: minmax(0, 1fr); } }
input[type="range"] { width: 100%; accent-color: var(--ely); }
.sim .s input[type="range"] { accent-color: var(--sol); }
.result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.result .big { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.guarantees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guarantees .card p { margin: 0; color: var(--dim); font-size: 14.5px; }
.guarantees .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 14px; color: var(--ely); }
.guarantees .ic svg { width: 17px; height: 17px; }
@media (max-width: 1000px) { .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guarantees { grid-template-columns: minmax(0, 1fr); } }
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fees .card .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 6px; }
.fees .card p { margin: 0; color: var(--dim); font-size: 14px; }
@media (max-width: 1000px) { .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fees { grid-template-columns: minmax(0, 1fr); } }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.faq details { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--dim); margin: 10px 0 0; font-size: 15px; }
.cta-band { margin-top: clamp(64px, 9vw, 110px); padding: clamp(30px, 5vw, 56px); border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 0% 0%, rgba(154, 123, 255, .22), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(79, 240, 194, .16), transparent 60%), var(--bg-2); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* ---------------------------------------------------------------- pages */
.page-head { padding: clamp(36px, 6vw, 64px) 0 26px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 14px 0 10px; }
.page-head p { color: var(--dim); margin: 0; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tcard { display: block; text-decoration: none; }
.tcard:hover { border-color: var(--line-2); background: var(--card-2); }
.tcard .duo img { width: 48px; height: 48px; }
.tcard .nm { font-size: 20px; font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.tcard .meta { display: flex; justify-content: space-between; align-items: center; color: var(--faint); font-size: 13.5px; margin-top: 8px; }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: 20px; }
.empty h3 { font-size: 22px; margin: 0 0 6px; }
.twinhead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 720px) { .twinhead { grid-template-columns: minmax(0, 1fr); } .twinhead .arrow { margin: 0 auto; transform: rotate(90deg); } }
.twinhead .pc { padding: 18px; }
.twinhead .pc img, .twinhead .pc .ph { width: 56px; height: 56px; }
.addr { font: 500 12.5px var(--mono); color: var(--faint); overflow-wrap: anywhere; margin-top: 8px; }
.addr a { color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--faint); font-size: 13px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twinbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 860px) { .twinbody { grid-template-columns: minmax(0, 1fr); } }
.text { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, .3); padding: 12px 14px; font: 500 14px var(--mono); outline: none; }
.text:focus { border-color: rgba(79, 240, 194, .5); }
.logrow { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.logrow a, .logrow .when { color: var(--faint); white-space: nowrap; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 44px; }
.prose p, .prose li { color: var(--dim); }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--card-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td { border-top: 1px solid var(--line); padding: 12px 8px 12px 0; vertical-align: top; color: var(--dim); }
.prose td:first-child { color: var(--text); font-weight: 600; width: 45%; }

/* ---------------------------------------------------------------- footer, ticker, modal, toast */
footer { margin-top: 90px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding-top: 26px; padding-bottom: 30px; color: var(--faint); font-size: 14px; }
footer a { text-decoration: none; color: var(--dim); } footer a:hover { color: var(--text); }
footer .sp { margin-left: auto; }
@media (max-width: 640px) { footer .sp { margin-left: 0; width: 100%; } }
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; height: 38px; border-top: 1px solid var(--line); background: rgba(10, 10, 18, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; display: flex; align-items: center; font-size: 12.5px; color: var(--dim); }
.ticker .live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 100%; border-right: 1px solid var(--line); color: var(--ely); font-weight: 700; background: var(--bg); position: relative; z-index: 1; }
.ticker .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ely); box-shadow: 0 0 8px var(--ely); }
.ticker .track { display: flex; gap: 0; padding-left: 8px; white-space: nowrap; animation: tick 40s linear infinite; }
.ticker .track span { padding: 0 22px; border-right: 1px solid var(--line); }
.ticker .track b { color: var(--text); font-family: var(--mono); font-weight: 500; margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }
.modal { position: fixed; inset: 0; background: rgba(4, 4, 10, .7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal .box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; width: min(400px, 100%); }
.modal h3 { font-size: 20px; margin: 0 0 14px; }
.wlist { display: grid; gap: 8px; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; text-decoration: none; }
.wlist button:hover { border-color: var(--line-2); }
.wlist img { width: 28px; height: 28px; border-radius: 8px; }
.toast { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); background: var(--text); color: var(--bg); font-weight: 700; padding: 11px 18px; border-radius: 12px; z-index: 30; max-width: calc(100% - 32px); }
/* $TWINNED house coin, pinned first */
.tcard.house, .trow.house { border-color: rgba(154, 123, 255, .35); background: linear-gradient(160deg, rgba(154, 123, 255, .10), rgba(79, 240, 194, .05)); }
.trow.house { border: 1px solid rgba(154, 123, 255, .3); margin-bottom: 4px; }
.duo img:only-child { margin-left: 0; box-shadow: 0 0 0 2px var(--sol), 0 0 0 4px rgba(79, 240, 194, .5); }
.status.house { color: var(--sol); background: rgba(154, 123, 255, .14); }
/* tool modes + launch form */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; color: var(--dim); font-weight: 700; font-size: 14.5px; padding: 9px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.lgrid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.pick { width: 120px; height: 120px; border-radius: 22px; border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .3); display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--faint); font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.pick:hover { border-color: rgba(79, 240, 194, .5); color: var(--dim); }
.pick img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.lfields .field > label, .field > label { align-items: baseline; }
textarea.text { font-family: var(--sans); resize: vertical; min-height: 64px; }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.socials .text { font-family: var(--sans); font-size: 14px; }
@media (max-width: 560px) { .lgrid { grid-template-columns: 1fr; } .pick { width: 100%; height: 160px; } .socials { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
#l-name, #l-sym { font-family: var(--sans); font-size: 16px; font-weight: 600; }
/* launch mode picker (inside the Launch tab) */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.modes button { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text); transition: border-color .15s, background .15s; }
.modes button:hover { border-color: var(--line-2); }
.modes button[aria-checked="true"] { border-color: rgba(79, 240, 194, .55); background: linear-gradient(160deg, rgba(154, 123, 255, .10), rgba(79, 240, 194, .07)); box-shadow: 0 0 0 4px rgba(79, 240, 194, .07); }
.modes .mi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); color: var(--dim); flex: none; }
.modes button[aria-checked="true"] .mi { color: var(--ely); border-color: rgba(79, 240, 194, .4); }
.modes .mi svg { width: 17px; height: 17px; }
.modes b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.modes small { display: block; color: var(--dim); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }
@media (max-width: 640px) { .modes { grid-template-columns: minmax(0, 1fr); } }
