@font-face { font-family: 'Heading'; src: url('/fonts/heading.woff2') format('woff2'); font-display: swap; }
:root { --bg:#fff; --fg:#000; --mut:#6b6b6b; --line:#000; --soft:#f2f2f2; --h:'Heading', 'Helvetica Neue', Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 18px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
@media (pointer: fine) { body.has-cursor, body.has-cursor * { cursor: none !important; } }

.cursor { position: fixed; z-index: 1000; left: 0; top: 0; width: 14px; height: 14px; border: 2px solid #000; border-radius: 50%; background: #fff; pointer-events: none; transform: translate(-50%,-50%); display: none; }
body.has-cursor .cursor { display: block; }

.intro { position: fixed; inset: 0; z-index: 900; background: #fff; display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .5s; }
.intro.out { opacity: 0; pointer-events: none; }
.intro canvas { width: min(560px, 90vw); height: auto; }
.intro-word { font-family: var(--h); font-size: clamp(48px, 8vw, 96px); margin: -10px 0 0; letter-spacing: -.03em; opacity: 0; transition: opacity .6s; }
.intro-sub { margin: 0; color: var(--mut); opacity: 0; transition: opacity .6s .2s; }
.intro #enter { opacity: 0; transform: translateY(8px); transition: opacity .5s .4s, transform .5s .4s; pointer-events: none; }
.intro.ready .intro-word, .intro.ready .intro-sub { opacity: 1; }
.intro.ready #enter { opacity: 1; transform: none; pointer-events: auto; }

.btn { border: 2px solid #000; background: #fff; padding: 10px 18px; border-radius: 0; font-weight: 700; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-ghost:hover { background: #000; color: #fff; }
.btn-xl { padding: 14px 28px; font-size: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.bg-lines { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 2px solid #000; padding: 34px 28px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.brand { font-family: var(--h); font-size: 38px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand .logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.nav { display: grid; gap: 4px; }
.nav { gap: 8px; }
.nav a { text-decoration: none; padding: 12px 16px; font-size: 21px; border: 2px solid transparent; }
.nav a:hover { border-color: #000; }
.nav a.on { background: #000; color: #fff; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.snd { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 2px; font-size: 15px; text-align: left; }
.snd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.snd .x { display: none; } .snd.off .x { display: inline; } .snd.off .w { display: none; } .snd.off { color: var(--mut); }
.ca { display: flex; gap: 8px; align-items: center; border: 2px solid #000; background: #fff; padding: 10px 12px; font-size: 16px; text-align: left; overflow: hidden; }
.ca span { color: var(--mut); }
.ca b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xlink { display: flex; gap: 8px; align-items: center; text-decoration: none; font-size: 17px; padding: 4px 2px; }
#wallet { font-size: 17px; padding: 12px 16px; }

.main { padding: 40px 48px 60px; min-width: 0; width: 100%; max-width: 1480px; justify-self: center; }
.pg-head { margin-bottom: 28px; }
.pg-title { font-family: var(--h); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; margin: 0 0 12px; letter-spacing: -.03em; padding-left: 4%; }
.lede { margin: 0; color: var(--mut); max-width: 60ch; padding-left: 4%; }

.launch { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 36px; align-items: start; }
.paint { border: 2px solid #000; background: var(--soft); padding: 10px; user-select: none; }
.pbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.tools, .sizes, .acts { display: flex; gap: 4px; }
.pbar button { width: 36px; height: 36px; border: 2px solid #000; background: #fff; display: grid; place-items: center; padding: 0; }
.pbar button.on { background: #000; color: #fff; }
.pbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pbar button.wide { width: auto; padding: 0 12px; gap: 6px; display: flex; font-size: 15px; font-weight: 700; }
.pbar button:disabled { opacity: .35; cursor: not-allowed; }
.sizes i { display: block; background: currentColor; border-radius: 50%; }
.stage { position: relative; aspect-ratio: 1; border: 2px solid #000; background: #fff; touch-action: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#ov { pointer-events: none; }
.pfoot { display: flex; gap: 10px; margin-top: 10px; align-items: center; }
.cur { position: relative; width: 44px; height: 44px; flex: none; }
.sw { position: absolute; width: 26px; height: 26px; border: 2px solid #000; }
.sw-fg { left: 0; top: 0; z-index: 1; }
.sw-bg { right: 0; bottom: 0; }
.palette { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; flex: 1; }
.palette button { aspect-ratio: 1; border: 1.5px solid #000; padding: 0; min-width: 0; }
.btn-save { width: calc(100% - 6px); margin: 10px 0 6px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; font-size: 20px; letter-spacing: .02em; box-shadow: 6px 6px 0 #000; transition: transform .12s, box-shadow .12s, background .15s, color .15s; }
.btn-save svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-save:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.btn-save:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #000; }
.btn-save.saved { background: #fff; color: #000; }
.check.pulse .preview { animation: pv .6s ease; }
@keyframes pv { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--mut); }

.form { display: grid; gap: 14px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; }
.field em { font-style: normal; color: var(--mut); font-weight: 400; }
.field input, .field textarea { border: 2px solid #000; padding: 10px 12px; background: #fff; outline: none; resize: vertical; width: 100%; }
.field input:focus, .field textarea:focus { box-shadow: 4px 4px 0 #000; }
.check { background: #fff; display: flex; gap: 18px; align-items: center; border: 2px solid #000; padding: 14px; }
.preview { width: 96px; height: 96px; border: 2px solid #000; border-radius: 50%; overflow: hidden; flex: none; background: var(--soft); }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview img:not([src]) { display: none; }
.check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check li::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid #000; margin-right: 10px; vertical-align: -1px; }
.check li.ok::before { background: #000; }
.check li.ok { color: var(--mut); text-decoration: line-through; }
.fee { margin: 0; font-size: 14px; color: var(--mut); }
.err { margin: 0; min-height: 1.4em; font-weight: 700; }
.done { border: 2px solid #000; padding: 16px; display: grid; gap: 10px; }
.done a { font-weight: 700; }

.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 1200px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { background: #fff; counter-increment: s; border: 2px solid #000; padding: 14px 16px 14px 60px; position: relative; display: grid; gap: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps span { color: var(--mut); }
.faq details { background: #fff; border: 2px solid #000; border-bottom-width: 0; padding: 14px 16px; }
.faq details:last-child { border-bottom-width: 2px; }
.faq summary { font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--mut); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #000; color: #fff; padding: 10px 18px; opacity: 0; pointer-events: none; transition: .25s; z-index: 950; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


.game { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 360px); gap: 36px; align-items: start; }
.g-cv { cursor: crosshair; touch-action: none; }
.g-side { display: grid; gap: 16px; }
.g-stats { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #000; background: #fff; }
.g-stats div { padding: 12px 14px; display: grid; border-bottom: 2px solid #000; }
.g-stats div:nth-child(odd) { border-right: 2px solid #000; }
.g-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.g-stats span { font-size: 13px; color: var(--mut); }
.g-stats b { font-family: var(--h); font-size: 30px; }
.g-msg { margin: 0; font-weight: 700; min-height: 1.5em; }
.g-btns { display: flex; gap: 10px; }
.g-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.g-log li { display: flex; justify-content: space-between; border: 2px solid #000; background: #fff; padding: 6px 12px; }
/* launched coins */
.launches { margin-top: 90px; scroll-margin-top: 30px; }
.ln-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 36px; }
.ln-title { font-family: var(--h); font-size: clamp(30px, 3vw, 44px); margin: 0; letter-spacing: -.02em; }
.ln-count { color: var(--mut); }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 32px; padding: 0 6px 40px; }
.pol { background: #fff; border: 2px solid #000; padding: 14px 14px 16px; box-shadow: 6px 6px 0 #000; transform: rotate(var(--r)); transition: transform .2s, box-shadow .2s; }
.pol:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 10px 12px 0 #000; z-index: 2; position: relative; }
.pol-photo { display: block; aspect-ratio: 1; border: 2px solid #000; overflow: hidden; background: #fff; }
.pol-photo img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.pol-cap { padding-top: 14px; display: grid; gap: 8px; }
.pol-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pol-name { font-family: var(--h); font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pol-sym { font-size: 14px; font-weight: 700; color: var(--mut); flex: none; }
.pol-desc { margin: 0; font-size: 14px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pol-mkt { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid #000; }
.pol-mkt div { padding: 6px 8px; }
.pol-mkt div + div { border-left: 2px solid #000; }
.pol-mkt dt { font-size: 11px; color: var(--mut); }
.pol-mkt dd { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pol-mkt .up { color: #008000; } .pol-mkt .down { color: #d00000; }
.pol-foot { display: flex; justify-content: space-between; align-items: center; }
.pol-links { display: flex; gap: 10px; }
.pol-links a { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #000; }
.pol-links a:hover { background: #000; color: #fff; }
.pol-age { font-size: 13px; color: var(--mut); }
.pol-btns { display: flex; gap: 8px; }
.pol-btns .btn { flex: 1; text-align: center; text-decoration: none; padding: 8px 10px; }
.pol-empty { color: var(--mut); }

.more { position: fixed; left: calc(50% + 150px); bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-weight: 700; font-size: 15px; transition: opacity .3s; }
.more span { background: #000; color: #fff; padding: 8px 14px; }
.more svg { width: 30px; height: 30px; fill: none; stroke: #000; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.1s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.more.gone, .more.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 1100px) { .game, .launch, .docs { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 2px solid #000; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; }
  .nav { display: flex; }
  .side-foot { margin: 0; width: 100%; grid-template-columns: 1fr 1fr; }
  .side-foot #wallet { grid-column: 1 / -1; }
  .main { padding: 24px 16px; }
  .more { left: 50%; }
  .frow { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(7, 1fr); }
}
