@font-face { font-family: "Departure Mono"; src: url("/assets/fonts/departure-mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #07080b;
  --bg2: #0a0c10;
  --panel: #0e1015;
  --panel2: #13161d;
  --line: #1c2029;
  --line2: #2a303c;
  --ink: #eceef3;
  --mute: #8b91a1;
  --dim: #5a6070;
  --brand: #7cf5c4;
  --brand-ink: #04140e;
  --bad: #ff5b4a;
  --cult: #ffcf5a;
  --kid: #9db4ff;
  --px: "Departure Mono", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.px { font-family: var(--px); letter-spacing: .02em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* themed scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4252; }
::selection { background: var(--brand); color: var(--brand-ink); }

/* ------------------------------------------------------------------ top bar */
.top { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 22px;
  background: rgba(7, 8, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 19px; letter-spacing: .08em; }
.brand img { width: 95px; height: 31px; }
@media (max-width: 440px) { .brand .wm { display: none; } }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--mute); font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--panel2); }
.nav a.on { color: var(--ink); }
.top .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--line2); background: var(--panel); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s, transform .1s; }
.btn:hover { border-color: #3c4454; background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn.ink { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ink:hover { background: #95ffd4; border-color: #95ffd4; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(124, 245, 196, .15); }
.walmenu { position: absolute; right: 22px; top: 54px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; min-width: 200px;
  display: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.walmenu.open { display: block; }
.walmenu a, .walmenu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.walmenu a:hover, .walmenu button:hover { background: var(--panel2); }
.burger { display: none; }

/* ------------------------------------------------------------------ pages */
main.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 44px 22px 90px; flex: 1; }
.eyebrow { font-family: var(--px); font-size: 12px; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
h2 { font-size: 24px; }
h3 { font-size: 16px; }
.lead { color: var(--mute); font-size: 17px; max-width: 620px; margin: 12px 0 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.grid { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.pill.cult { color: var(--cult); border-color: rgba(255, 207, 90, .35); background: rgba(255, 207, 90, .06); }
.pill.kid { color: var(--kid); border-color: rgba(157, 180, 255, .3); background: rgba(157, 180, 255, .06); }
.pill.brand { color: var(--brand); border-color: rgba(124, 245, 196, .3); background: rgba(124, 245, 196, .06); }
.stat .k { font-size: 12px; color: var(--mute); }
.stat .v { font-family: var(--px); font-size: 22px; margin-top: 2px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr.link { cursor: pointer; }
table.t tr.link:hover td { background: var(--panel2); }
table.t .r { text-align: right; }
.tablewrap { overflow-x: auto; }
.empty { padding: 34px; text-align: center; color: var(--mute); }
.av { width: 34px; height: 34px; border-radius: 9px; background: var(--panel2); flex: none; overflow: hidden; }
.av canvas, .av img { width: 100%; height: 100%; object-fit: cover; }
.foot { border-top: 1px solid var(--line); padding: 22px; color: var(--dim); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel2); border: 1px solid var(--line2);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .2s; z-index: 90; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* wallet picker */
.wpick { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 80; display: grid; place-items: center; padding: 20px; }
.wpick-in { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; }
.wpick-in h3 { font-size: 18px; }
.wpick-in p { color: var(--mute); font-size: 14px; margin: 6px 0 16px; }
.wpick .list { display: grid; gap: 8px; }
.wpick .list button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); text-align: left; }
.wpick .list button:hover { border-color: var(--brand); }
.wpick .list img { width: 28px; height: 28px; border-radius: 7px; }
.wpick .list button.wait { opacity: .6; }
.wpick .nw { color: var(--mute); font-size: 14px; }
.wpick .nw a { color: var(--brand); }
.wstatus { font-size: 13px; color: var(--mute); margin: 12px 0 0 !important; }
.wstatus.bad { color: var(--bad); }

/* ------------------------------------------------------------------ the Field */
body.field-page { overflow: hidden; height: 100vh; }
.field { position: relative; flex: 1; min-height: 0; overflow: hidden; background:
  radial-gradient(1200px 700px at 50% 45%, #0d1117 0%, #08090c 60%, #060709 100%); }
.field canvas.world { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.field canvas.world.hover { cursor: pointer; }
.field canvas.world.dragging { cursor: grabbing; }
.draghint { margin-top: 4px; font-size: 12px; color: var(--dim); }
.hud.zr { right: 20px; bottom: 92px; }
.zoom { display: flex; flex-direction: column; background: rgba(14, 16, 21, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zoom button { width: 36px; height: 34px; display: grid; place-items: center; background: none; border: 0; border-top: 1px solid var(--line);
  color: var(--mute); font: 18px/1 var(--mono); transition: color .15s, background .15s; }
.zoom button:first-child { border-top: 0; }
.zoom button:hover { color: var(--ink); background: var(--panel2); }
.hud { position: absolute; z-index: 5; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud.tl { left: 20px; top: 18px; width: 300px; }
/* the On the Field drawer: off the screen by default, a tab at the right edge slides it in */
.hud.drawer { right: 0; top: 18px; display: flex; align-items: flex-start; transform: translateX(300px); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.hud.drawer.open { transform: translateX(-20px); }
.hud.drawer .panel { width: 300px; }
.drawer-tab { position: relative; width: 34px; height: 44px; margin-right: 8px; display: grid; place-items: center; color: var(--mute);
  background: rgba(14, 16, 21, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-right: 0; border-radius: 10px 0 0 10px; transition: color .15s, background .15s; }
.drawer.open .drawer-tab { border-right: 1px solid var(--line); border-radius: 10px; }
.drawer-tab:hover { color: var(--ink); background: var(--panel2); }
.drawer-tab svg { transition: transform .28s; }
.drawer.open .drawer-tab svg { transform: rotate(180deg); }
.drawer-tab .new { position: absolute; top: 7px; left: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(124, 245, 196, .18); }
.hud.bl { left: 20px; bottom: 18px; }
.hud.bc { right: 20px; bottom: 22px; text-align: right; }
.hud.tc { left: 50%; top: 16px; transform: translateX(-50%); }
.hud.tc .sample { margin-top: 0; background: rgba(7, 8, 11, .7); }
.panel { background: rgba(14, 16, 21, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.panel h4 { margin: 0 0 8px; font-family: var(--px); font-size: 11px; letter-spacing: .14em; color: var(--mute); font-weight: 400; display: flex; align-items: center; gap: 8px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.feed { max-height: 290px; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.feed div { font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--mute); }
.feed div:first-child { border-top: 0; padding-top: 0; }
.feed b { color: var(--ink); font-weight: 500; }
.feed .t { float: right; color: var(--dim); font-size: 12px; margin-left: 8px; }
.stats { display: flex; gap: 26px; }
.stats .stat .v { font-size: 18px; }
.tagline { font-family: var(--px); font-size: 13px; letter-spacing: .1em; color: var(--mute); }
.sample { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--cult); border: 1px dashed rgba(255, 207, 90, .4); padding: 3px 9px; border-radius: 99px; }

/* hover card */
.hcard { position: absolute; z-index: 20; width: 286px; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .12s, transform .12s;
  background: rgba(14, 16, 21, .96); border: 1px solid var(--line2); border-radius: 14px; padding: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.hcard.on { opacity: 1; transform: none; }
.hcard .hd { display: flex; gap: 12px; align-items: center; }
.hcard .hd .av { width: 46px; height: 46px; border-radius: 11px; }
.hcard .nm { font-weight: 600; font-size: 16px; line-height: 1.2; }
.hcard .tk { font-family: var(--px); font-size: 13px; color: var(--brand); }
.hcard .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 14px; }
.hcard .kv .k { font-size: 11px; color: var(--dim); }
.hcard .kv .v { font-family: var(--px); font-size: 15px; }
.hcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hcard .hint { margin-top: 12px; font-size: 12px; color: var(--dim); }
.hcard .cultbar { height: 4px; background: var(--line2); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.hcard .cultbar i { display: block; height: 100%; background: var(--cult); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.f label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 7px; }
.f input, .f textarea, .f select { width: 100%; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); padding: 11px 13px; font: inherit; outline: none; transition: border-color .15s; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--brand); }
.f textarea { min-height: 92px; resize: vertical; }
.f .help { font-size: 12px; color: var(--dim); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); }
.seg button b { display: block; font-size: 15px; font-weight: 600; }
.seg button span { display: block; font-size: 13px; color: var(--mute); margin-top: 3px; }
.seg button.on { border-color: var(--brand); background: rgba(124, 245, 196, .05); }
.drop { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line2); border-radius: 12px; cursor: pointer; }
.drop:hover { border-color: var(--brand); }
.f label.drop { display: flex; margin: 0; color: var(--ink); font-size: 14px; }
.drop .pv { width: 72px; height: 72px; border-radius: 14px; background: var(--panel2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--dim); font-size: 12px; }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.msg { display: none; padding: 11px 14px; border-radius: 10px; background: rgba(255, 91, 74, .08); border: 1px solid rgba(255, 91, 74, .3); color: #ffb3a9; font-size: 14px; }
.msg.on { display: block; }
.steps { display: grid; gap: 8px; }
.steps div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--dim); }
.steps i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.steps .on { color: var(--ink); } .steps .on i { background: var(--brand); animation: pulse 1.2s infinite; }
.steps .ok { color: var(--mute); } .steps .ok i { background: var(--brand); }
.steps .bad { color: var(--bad); } .steps .bad i { background: var(--bad); }
.done { padding: 16px; border-radius: 12px; background: rgba(124, 245, 196, .06); border: 1px solid rgba(124, 245, 196, .25); display: grid; gap: 8px; }
.done .links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.picklist { max-height: 250px; overflow: auto; border: 1px solid var(--line2); border-radius: 10px; margin-top: 8px; }
.picklist button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.picklist button:last-child { border-bottom: 0; }
.picklist button:hover, .picklist button.on { background: var(--panel2); }
.picklist .av { width: 28px; height: 28px; border-radius: 7px; }
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 30px; align-items: start; }
.kvlist { display: grid; gap: 10px; font-size: 14px; }
.kvlist div { display: flex; justify-content: space-between; gap: 12px; }
.kvlist span:first-child { color: var(--mute); }

/* ------------------------------------------------------------------ coin page */
.chead { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.chead .big { width: 104px; height: 104px; border-radius: 22px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line2); position: relative; }
.chead .big canvas { width: 100%; height: 100%; }
.chead .big img.coinimg { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--panel); object-fit: cover; }
.chead .tk { font-family: var(--px); color: var(--brand); font-size: 16px; }
.statrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.statrow .card { padding: 14px 16px; }
.sec { margin-top: 34px; }
.sec > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.mult { display: inline-flex; align-items: center; gap: 6px; }
.mult .bar { width: 58px; height: 5px; border-radius: 5px; background: var(--line2); overflow: hidden; }
.mult .bar i { display: block; height: 100%; background: var(--brand); }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kids a { display: flex; gap: 10px; align-items: center; padding: 12px; }
.kids a:hover { border-color: var(--line2); }

/* ------------------------------------------------------------------ how */
.rules { display: grid; gap: 14px; margin-top: 30px; }
.rule { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px; }
.rule h3 { font-size: 17px; }
.rule .n { font-family: var(--px); color: var(--brand); font-size: 12px; letter-spacing: .12em; margin-bottom: 6px; }
.rule p { margin: 0 0 10px; color: #c5cad6; }
.rule p:last-child { margin-bottom: 0; }
.formula { font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; color: var(--ink); overflow-x: auto; white-space: pre; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { grid-template-columns: 1fr; gap: 8px; }
  .hud.drawer .panel { width: min(300px, calc(100vw - 70px)); }
  .hud.drawer { transform: translateX(min(300px, calc(100vw - 70px))); }
  .hud.drawer.open { transform: translateX(-12px); }
  .hud.bc { display: none; }
  .hud.zr { bottom: 20px; }
}
@media (max-width: 980px) {
  .top { gap: 12px; padding: 0 14px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 14px 14px; }
  .nav.open { display: flex; }
  .burger { display: inline-flex; padding: 0 12px; }
}
@media (max-width: 720px) {
  .top .btn.launch { display: none; }
  .hud.tl { width: auto; right: 14px; left: 14px; top: 12px; }
  .hud.bl { display: none; }
  .two, .three { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  main.page { padding: 28px 16px 70px; }
}
